H2002-05-09 Daniel Jacobowitz <drow@mvista.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
2
3 * mips-tdep.c (mips_float_register_type): New function.
4 (mips_double_register_type): New function.
5 (mips_print_register): Use them.
6 (do_fp_register_row): Likewise.
7
8 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9
10 * signals/signals.c (signals): Remove conditional compilation around
11 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
12 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
13
14 2002-05-09 Michael Snyder <msnyder@redhat.com>
15
16 * remote-rdp.c (remote_rdp_can_run): Remove.
17
18 2002-05-09 Tom Tromey <tromey@redhat.com>
19
20 * jv-valprint.c (java_val_print): Handle `char' as a special case
21 of TYPE_CODE_INT.
22
23 2002-05-09 Michael Snyder <msnyder@redhat.com>
24
25 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
26 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
27 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
28 str r(0123),[sp,#nn].
29 (arm_skip_prologue): Ditto. Also make disassembly
30 order-independent by placing it in a loop.
31
32 2002-05-06 Michael Snyder <msnyder@redhat.com>
33
34 * stabsread.c (read_type): Add recognition for new attribute:
35 "@V;" means that an array type is actually a vector.
36 This is analogous to the vector flag that's been added to dwarf2.
37
38 2002-05-09 Mark Kettenis <kettenis@gnu.org>
39
40 * i386-tdep.h (i386_abi): New enum.
41 (struct gdbarch_tdep): Replace os_ident member with abi.
42 (i386_gdbarch_register_os_abi): New prototype.
43 * i386-tdep.c (i386_abi_names): New array.
44 (process_note_abi_tag_sections): Removed.
45 (process_note_sections): New function.
46 (i386_elf_abi_from_note, i386_elf_abi): New functions.
47 (struct i386_abi_handler): New struct.
48 (i386_abi_handler_list): New variable.
49 (i386_gdbarch_register_os_abi): New function.
50 (i386_gdbarch_init): Adapt for the changes given above.
51
52 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
53
54 * gregset.h: Say "GNU/Linux".
55
56 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
57
58 * gdbtypes.c : Add new builtin type for 64 bit vectors.
59 (build_gdbtypes): Build builtin_type_v2_float.
60 (_initialize_gdbtypes): Register new builtin type.
61
62 2002-05-08 Andrew Cagney <ac131313@redhat.com>
63
64 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
65 (clear_gdbarch_swap): New function.
66 (initialize_non_multiarch): Call.
67 (gdbarch_update_p): Before calling init(), swap out and clear the
68 existing architecture.
69 * gdbarch.c: Regenerate.
70
71 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
72
73 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
74 alphanbsd-tdep.c.
75
76 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
77
78 * sh-nbsd-nat.c: Rename to...
79 * shnbsd-nat.c: ...this.
80 * sh-nbsd-tdep.c: Rename to...
81 * shnbsd-tdep.c: ...this.
82 * sh-nbsd-tdep.h: Rename to...
83 * shnbsd-tdep.h: ...this.
84 * config/sh/nbsd.mh: Use shnbsd-nat.o.
85 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
86
87 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
88
89 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
90 concatenation for command help messages.
91
92 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
93
94 * NEWS: Note new sh*-*-netbsdelf* configuration.
95 * configure.host: Set gdb_host_cpu to sh for all sh*.
96 (sh*-*-netbsdelf*): New host.
97 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
98 (sh*-*-netbsdelf*): New target.
99 * sh-nbsd-nat.c: New file.
100 * sh-nbsd-tdep.c: New file.
101 * sh-nbsd-tdep.h: New file.
102 * config/sh/nbsd.mh: New file.
103 * config/sh/nbsd.mt: New file.
104 * config/sh/nm-nbsd.h: New file.
105 * config/sh/tm-nbsd.h: New file.
106
107 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
108
109 * sh-tdep.c (sh_osabi_names): Declare.
110 (process_note_abi_tag_sections): New function.
111 (get_elfosabi): Ditto.
112 (sh_gdbarch_register_os_abi): Ditto.
113 (sh_dump_tdep): Ditto.
114 _initialize_sh_tdep): Use gdbarch_register to register
115 sh_gdbarch_init and sh_dump_tdep.
116 * config/sh/tm-sh.h (sh_osabi): Declare.
117 (gdbarch_tdep): Add sh_osabi and osabi_name members.
118
119 2002-05-07 Andrew Cagney <ac131313@redhat.com>
120
121 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
122 (thumb_scan_prologue): Ditto.
123 (arm_find_callers_reg): Ditto.
124 (arm_frame_chain): Ditto.
125 (arm_init_extra_frame_info): Ditto.
126 (arm_frame_saved_pc): Ditto.
127 (arm_pop_frame): Ditto.
128 (arm_push_return_address): New function.
129 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
130 call_dummy_location, call_dummy_breakpoint_offset_p,
131 call_dummy_breakpoint_offset, call_dummy_p,
132 call_dummy_stack_adjust_p, call_dummy_words,
133 sizeof_call_dummy_words, call_dummy_start_offset,
134 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
135 call_dummy_address, push_return_address and push_dummy_frame for
136 generic dummy frames.
137
138 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
139
140 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
141 size computation for alloca.
142 (sh_fp_frame_init_saved_regs): Likewise.
143
144 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
145
146 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
147 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
148 * arm-tdep.c (arm_store_return_value): Use them.
149 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
150 * remote-rdp.c (remote_rdp_fetch_register): Use
151 ARM_MAX_REGISTER_RAW_SIZE.
152 (remote_rdp_store_register): Likewise.
153
154 2002-05-07 Michal Ludvig <mludvig@suse.cz>
155
156 * dwarf2cfi.c: Code cleanup, removed unused variables,
157 added default labels to switch {} statements.
158 * x86-64-tdep.c: Ditto.
159 * x86-64-linux-nat.c: Ditto.
160
161 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
162
163 * solib.h: Protect against multiple inclusion.
164
165 2002-05-06 Jim Blandy <jimb@redhat.com>
166
167 Separate the job of reading the line number info statement program
168 header (...expialidocious) out into its own function.
169 * dwarf2read.c (struct line_head, struct filenames, struct
170 directories): Replace with...
171 (struct line_header): New structure, containing the full
172 contents of the statement program header, including the
173 include directory and file name tables.
174 (read_file_scope): If we have line number info, instead of just
175 calling dwarf_decode_lines to do all the work, call
176 dwarf_decode_line_header first to get a `struct line_header'
177 containing the data in the statement program header, and then
178 pass that to dwarf_decode_lines, which will pick up where that
179 left off. Be sure to clean up the `struct line_header' object.
180 (dwarf_decode_line_header, free_line_header, add_include_dir,
181 add_file_name): New functions.
182 (dwarf_decode_lines): Move all the code to read the statement
183 program header into dwarf_decode_line_header. Take the line
184 header it built as the first argument, instead of the offset to
185 the compilation unit's line number info. Use the new `struct
186 line_header' type instead of the old structures. No need to do
187 cleanups here now, since we don't allocate anything.
188 (dwarf2_statement_list_fits_in_line_number_section,
189 dwarf2_line_header_too_long): New complaints.
190
191 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
192
193 * gdbtypes.c (init_vector_type): New function.
194 (build_builtin_type_vec128): Simplify the representation of SIMD
195 registers.
196 (build_gdbtypes): Initialize new builtin vector types.
197 (_initialize_gdbtypes): Register new vector types with gdbarch.
198 (builtin_type_v4_float, builtin_type_v4_int32,
199 builtin_type_v8_int16, builtin_type_v16_int8,
200 builtin_type_v2_int32, builtin_type_v4_int16,
201 builtin_type_v8_int8): New (renamed) SIMD types.
202
203 2002-05-06 Mark Kettenis <kettenis@gnu.org>
204
205 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
206 (i387_fill_fxsave): Likewise.
207
208 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
209
210 * alpha-tdep.c (alpha_extract_return_value): Don't use
211 non-constant array size in prototype.
212
213 2002-05-04 Andrew Cagney <ac131313@redhat.com>
214
215 From Brian Taylor <briant at model dot com>:
216 * ui-out.c (ui_out_field_core_addr): Use the function
217 longest_local_hex_string_custom'to format addresses > 32 bits
218 wide.
219
220 * ui-out.c (ui_out_field_core_addr): Update comment.
221
222 2002-05-04 Andrew Cagney <ac131313@redhat.com>
223
224 * stack.c (select_and_print_frame): Make static. Delete the
225 parameter `level'.
226 (func_command): Update call.
227 (select_frame_command): Delete code computing the frame level.
228 * frame.h (select_and_print_frame): Delete declaration.
229
230 2002-05-04 Andrew Cagney <ac131313@redhat.com>
231
232 * sparc-tdep.c (sparc_get_saved_register): Comment why
233 get_prev_frame call is safe.
234
235 2002-05-04 Andrew Cagney <ac131313@redhat.com>
236
237 * frame.h (select_frame): Delete level parameter.
238 * stack.c (select_frame): Update. Use frame_relative_level to
239 obtain the frame's level.
240 (select_and_print_frame): Update call.
241 (select_frame_command): Ditto.
242 (up_silently_base): Ditto.
243 (down_silently_base): Ditto.
244 * ocd.c (ocd_start_remote): Ditto.
245 * remote-rdp.c (remote_rdp_open): Ditto.
246 * remote-mips.c (mips_initialize): Ditto.
247 (common_open): Ditto.
248 * remote-e7000.c (e7000_start_remote): Ditto.
249 * m3-nat.c (select_thread): Ditto.
250 * hppa-tdep.c (child_get_current_exception_event): Ditto.
251 (child_get_current_exception_event): Ditto.
252 * varobj.c (varobj_create): Ditto.
253 (varobj_update): Ditto.
254 (c_value_of_root): Ditto.
255 * tracepoint.c (finish_tfind_command): Ditto.
256 * corelow.c (core_open): Ditto.
257 * arch-utils.c (generic_prepare_to_proceed): Ditto.
258 * thread.c (info_threads_command): Ditto.
259 (switch_to_thread): Ditto.
260 * infrun.c (normal_stop): Ditto.
261 (restore_selected_frame): Ditto.
262 (restore_inferior_status): Ditto.
263 * breakpoint.c (insert_breakpoints): Ditto.
264 (watchpoint_check): Ditto.
265 (bpstat_stop_status): Ditto.
266 (do_enable_breakpoint): Ditto.
267 * blockframe.c (flush_cached_frames): Ditto.
268 (reinit_frame_cache): Ditto.
269
270 2002-05-04 Andrew Cagney <ac131313@redhat.com>
271
272 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
273 maintainer.
274
275 2002-05-04 Jim Blandy <jimb@redhat.com>
276
277 * gdbtypes.c (replace_type): Doc fix.
278
279 2002-05-04 Andrew Cagney <ac131313@redhat.com>
280
281 * valprint.c (strcat_longest): Delete commented out function.
282 Update copyright.
283
284 2002-05-04 Andrew Cagney <ac131313@redhat.com>
285
286 * MAINTAINERS: Mark a29k as deleted.
287 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
288 Move new configurations to the top.
289 * configure.tgt: Remove a29k.
290 * config/a29k/tm-vx29k.h: Delete.
291 * config/a29k/vx29k.mt: Delete.
292 * config/a29k/tm-a29k.h: Delete.
293 * config/a29k/a29k-udi.mt: Delete.
294 * config/a29k/a29k.mt: Delete.
295 * a29k-tdep.c: Delete.
296 * remote-udi.c: Delete.
297 * remote-mm.c: Delete.
298 * remote-eb.c: Delete.
299 * remote-adapt.c: Delete.
300 * Makefile.in: Remove obsolete code.
301 * gdbserver/Makefile.in: Ditto.
302 * config/s390/s390x.mt: Ditto.
303 * config/s390/s390.mt: Ditto.
304 * config/sparc/sparclynx.mh: Ditto.
305 * config/sparc/linux.mh: Ditto.
306 * config/pa/hppaosf.mh: Ditto.
307 * config/pa/hppabsd.mh: Ditto.
308 * config/ns32k/nbsd.mt: Ditto.
309 * config/mips/vr5000.mt: Ditto.
310 * config/m68k/sun3os4.mh: Ditto.
311 * config/m68k/nbsd.mt: Ditto.
312 * config/m68k/m68klynx.mh: Ditto.
313 * config/m32r/m32r.mt: Ditto.
314 * config/i386/x86-64linux.mt: Ditto.
315 * config/i386/nbsdelf.mt: Ditto.
316 * config/i386/nbsd.mt: Ditto.
317 * config/i386/i386lynx.mh: Ditto.
318
319 2002-05-04 Andrew Cagney <ac131313@redhat.com>
320
321 * target.c (debug_print_register): New function. Handle oversize
322 registers.
323 (debug_to_fetch_registers): Call.
324 (debug_to_store_registers): Call.
325
326 2002-05-03 Jim Blandy <jimb@redhat.com>
327
328 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
329 (read_type): Doc fix.
330 * gdbtypes.c (replace_type): Doc fix.
331
332 * stabsread.c (multiply_defined_struct): New complaint.
333 (read_struct_type): If the type we were passed isn't empty, or
334 incomplete, don't read the new struct type into it; complain,
335 and return the original type unchanged. Take a new `type_code'
336 argument, which is the type code for the new type.
337 (read_type): Rather than storing the type's type code here, pass
338 it as an argument to read_struct_type, and let that take care of
339 storing it. That way, we don't overwrite the original type code,
340 so read_struct_type can use it to decide whether we're overwriting
341 something we shouldn't.
342 (complain_about_struct_wipeout): New function.
343
344 2002-05-03 Andrew Cagney <ac131313@redhat.com>
345
346 * gdbarch.sh: Assert that gdbarch is non-NULL.
347 * gdbarch.c: Regenerate.
348
349 2002-05-03 Jason Merrill <jason@redhat.com>
350
351 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
352 and return NULL.
353
354 2002-05-03 Michal Ludvig <mludvig@suse.cz>
355
356 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
357 (x86_64_dwarf2gdb_regno_map_length),
358 (x86_64_dwarf2_reg_to_regnum): Added.
359 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
360 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
361 (_initialize_x86_64_tdep): Synced with the change above.
362 (x86_64_skip_prologue): Reformulated message.
363
364 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
365
366 * f-exp.y: Also use new prev_lexptr variable
367 to improve error reporting. Based on Michael Snyder
368 2002-04-24 dated patch to c-exp.y.
369 * jv-exp.y: Likewise.
370 * m2-exp.y: Likewise.
371
372 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
373
374 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
375 we are dealing with vectors.
376
377 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
378
379 * config/m68k/tm-nbsd.h: Obvious fix,
380 correct machine name.
381
382 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
383
384 * p-typeprint.c (pascal_type_print_base): Add support
385 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
386
387 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
388
389 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
390 for fondamental pascal 'char' type.
391
392 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
393
394 * p-lang.h (is_pascal_string_type): Declaration changed,
395 new sixth argument of type char ** added.
396 * p-lang.c (is_pascal_string_type): Implementation
397 changed. Args length_pos, length_size, string_pos, char_size
398 can now be NULL. New argument arrayname set to the field
399 name of the char array. Return value set to char array
400 field index plus one.
401 * p-valprint.c (pascal_val_print): Adapt to new declaration of
402 is_pascal_string_type function.
403
404 2002-05-02 Andrew Cagney <cagney@redhat.com>
405
406 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
407 <cagney@redhat.com> change.
408 * gdbarch.c: Regenerate.
409
410 2002-05-02 Andrew Cagney <cagney@redhat.com>
411
412 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
413 before probing for a new one. Detect errorenous gdbarch_init
414 functions.
415 * gdbarch.c: Regenerate.
416
417 2002-05-01 Andrew Cagney <cagney@redhat.com>
418
419 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
420 * config/mcore/tm-mcore.h: Ditto. Update copyright.
421 * config/v850/tm-v850.h: Ditto. Update copyright.
422
423 2002-04-30 Andrew Cagney <ac131313@redhat.com>
424
425 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
426 current_gdbarch.
427
428 2002-04-30 Michael Snyder <msnyder@redhat.com>
429
430 * arm-tdep.c: Whitespace clean-ups.
431 (arm_skip_prologue): Fix thinko; two lines
432 should have been removed as part of 4/24 change.
433
434 2002-04-30 Kevin Buettner <kevinb@redhat.com>
435
436 * rs6000-tdep.c: Added comment describing how fpscr register
437 numbers were chosen.
438
439 2002-04-30 Michael Snyder <msnyder@redhat.com>
440
441 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
442
443 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
444
445 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
446 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
447 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
448
449 2002-04-29 Kevin Buettner <kevinb@redhat.com>
450
451 From Louis Hamilton <hamilton@redhat.com>:
452 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
453 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
454 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
455 not bfd-private xcoff data, to determine wordsize.
456 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
457
458 2002-04-29 Andrew Cagney <ac131313@redhat.com>
459
460 GDB 5.2 released from 5.2 branch.
461
462 2002-04-29 Michal Ludvig <mludvig@suse.cz>
463
464 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
465 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
466 (x86_64_register_info_table): Added comments with register numbers.
467
468 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
469
470 * rs6000-tdep.c (rs6000_extract_return_value,
471 rs6000_store_return_value): Handle returning vectors.
472 (rs6000_gdbarch_init): Use
473 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
474 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
475 New function.
476 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
477 vectors.
478 (ppc_sysv_abi_push_arguments): Handle vector parameters.
479 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
480
481 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
482
483 * hpread.c (hpread_psymtab_to_symtab_1,
484 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
485 with fprintf_unfiltered (gdb_stderr,...).
486
487 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
488
489 * remote-array.c (printf_monitor, write_monitor,
490 array_insert_breakpoint, array_remove_breakpoint ):
491 Replace fprintf (stderr,...
492 with fprintf_unfiltered (gdb_stderr,....
493 * remote-es.c: Likewise.
494 * remote-os9k.c: Likewise.
495 * remote-st.c: Likewise.
496
497 2002-04-28 Andreas Schwab <schwab@suse.de>
498
499 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
500 linux-proc.o and gcore.o.
501
502 2002-04-26 Michal Ludvig <mludvig@suse.cz>
503
504 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
505 code without frame pointers.
506
507 2002-04-26 Andrew Cagney <ac131313@redhat.com>
508
509 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
510 ON_STACK is needed.
511
512 2002-04-26 Ben Elliston <bje@redhat.com>
513
514 * target.c (do_xfer_memory): Correct reference to the new option
515 "trust-readonly-sections".
516
517 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
518
519 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
520 * gdbtypes.c (recursive_dump_type): Output the vector flag.
521 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
522 vectors.
523 (read_array_type): Record the fact that this array type is really a
524 vector (i.e. are passed in by value).
525
526 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
527
528 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
529 * alpha-tdep.c (alpha_sigcontext_addr): New function.
530 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
531 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
532 * alpha-linux-tdep.c: Include frame.h.
533 (alpha_linux_sigcontext_addr): New function.
534 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
535 alpha_linux_sigcontext_addr.
536 * alpha-osf1-tdep.c: Include gdbcore.h.
537 (alpha_osf1_sigcontext_addr): New function.
538 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
539 alpha_osf1_sigcontext_addr.
540 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
541 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
542
543 2002-04-26 Andrew Cagney <ac131313@redhat.com>
544
545 * stack.c (selected_frame_level):
546 (select_frame): Do not set selected_frame_level.
547 * frame.h (selected_frame_level): Delete declaration.
548
549 2002-04-26 Andrew Cagney <ac131313@redhat.com>
550
551 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
552 convert_from_func_ptr-addr when AIX / PowerOpen.
553
554 2002-04-25 Andrew Cagney <ac131313@redhat.com>
555
556 * valops.c (hand_function_call): Call
557 generic_save_call_dummy_addr.
558 * frame.h (generic_save_call_dummy_addr): Declare.
559 * blockframe.c (struct dummy_frame): Add fields call_lo and
560 call_hi.
561 (generic_find_dummy_frame): Check for PC in range call_lo to
562 call_hi instead of entry_point_address.
563 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
564 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
565 (generic_save_call_dummy_addr): New function.
566
567 2002-04-24 David S. Miller <davem@redhat.com>
568
569 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
570 sparc_skip_prologue.
571 (sparc_skip_prologue): Kill frameless_p arg, and use line number
572 information to find prologue when possible.
573 (sparc_prologue_frameless_p): Call examine_prologue directly.
574 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
575 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
576 second argument.
577 (SKIP_PROLOGUE): Likewise.
578
579 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
580
581 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
582 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
583 indicate that the condition it was testing is always true.
584 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
585 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
586 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
587
588 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
589
590 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
591 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
592 tdep->jb_pc and tdep->jb_elt_size.
593 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
594 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
595 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
596 * alpha-nat.c (get_longjmp_target): Remove.
597 (JB_ELEMENT_SIZE): Ditto.
598 (JB_PC): Ditto.
599 * alpha-tdep.c (alpha_get_longjmp_target): New function.
600 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
601 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
602 to alpha_get_longjmp_target.
603 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
604 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
605 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
606
607 2002-04-25 Andrew Cagney <ac131313@redhat.com>
608
609 * README: Update to GDB 5.2.
610
611 2002-04-25 Andrew Cagney <ac131313@redhat.com>
612
613 * gdbarch.sh (LC_ALL): Set to `c'.
614
615 2002-04-25 Theodore A. Roth <troth@verinet.com>
616
617 * avr-tdep.c: Ran through gdb_indent.sh.
618
619 2002-04-25 Theodore A. Roth <troth@verinet.com>
620
621 * MAINTAINERS: Add myself as AVR maintainer.
622 * NEWS: Note new target avr.
623
624 2002-04-25 Theodore A. Roth <troth@verinet.com>
625
626 * Makefile.in: Add support for AVR target.
627 * configure.tgt: Add support for AVR target.
628 * avr-tdep.c: New file
629 * config/avr/avr.mt: New file.
630
631 2002-04-25 Theodore A. Roth <troth@verinet.com>
632
633 * MAINTAINERS: Add myself to write-after-approval.
634
635 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
636
637 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
638 with fprintf_unfiltered (gdb_stderr,....
639
640 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
641
642 Fix PR gdb/508.
643 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
644
645 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
646
647 * p-exp.y: Also use new prev_lexptr variable
648 to improve error reporting. Based on Michael Snyder
649 2002-04-24 dated patch to c-exp.y.
650
651 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
652
653 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
654 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
655 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
656 to 0.
657 * config/alpha/tm-alpha.h: Remove forward decls of struct type
658 and struct value.
659 (FUNCTION_START_OFFSET): Remove.
660 (BREAKPOINT): Ditto.
661
662 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
663
664 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
665 * NEWS: Ditto.
666
667 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
668
669 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
670 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
671 alpha_linux_pc_in_sigtramp.
672 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
673 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
674 alpha_osf1_pc_in_sigtramp.
675 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
676 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
677 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
678 alphafbsd_pc_in_sigtramp.
679 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
680 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
681 alphanbsd_pc_in_sigtramp.
682 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
683 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
684
685 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
686
687 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
688
689 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
690
691 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
692 alphanbsd-tdep.c.
693 (alphanbsd-nat.o): New dependency list.
694 (alphanbsd-tdep.o): Ditto.
695 * NEWS: Note new native NetBSD/alpha configuration.
696 * alphanbsd-nat.c: New file.
697 * alphanbsd-tdep.c: Ditto.
698 * configure.host (alpha*-*-netbsd*): New host.
699 * configure.tgt (alpha*-*-netbsd*): New target.
700 * config/alpha/nbsd.mh: New file.
701 * config/alpha/nbsd.mt: Ditto.
702 * config/alpha/nm-nbsd.h: Ditto.
703 * config/alpha/tm-nbsd.h: Ditto.
704
705 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
706
707 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
708 (alpha-osf1-tdep.o): New dependency list.
709 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
710 and skip_sigtramp_frame members.
711 * alpha-linux-tdep.c: Include gdbcore.h.
712 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
713 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
714 * alpha-osf1-tdep.c: New file.
715 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
716 alpha-osf1-dep.c.
717 (alpha_frame_past_sigtramp_frame): New function.
718 (alpha_dynamic_sigtramp_offset): Ditto.
719 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
720 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
721 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
722 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
723 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
724 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
725 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
726 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
727 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
728 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
729 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
730 to find_solib_trampoline_target.
731 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
732 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
733 (SKIP_TRAMPOLINE_CODE): Remove.
734 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
735 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
736 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
737 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
738 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
739 (PROC_SIGTRAMP_MAGIC): Ditto.
740 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
741 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
742 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
743 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
744 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
745
746 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
747
748 * NEWS: Note that Alpha targets are now multi-arch.
749
750 2002-04-24 Michael Snyder <msnyder@redhat.com>
751
752 * parser-defs.h (prev_lexptr): New external variable.
753 * parse.c (parse_exp_1): Set prev_lexptr to null before
754 calling the language-specific parser.
755 * c-exp.y (yylex): Set prev_lexptr to start of current token.
756 (yyerror): Use prev_lexptr in error reporting.
757
758 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
759
760 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
761 * gregset.h: If FILL_FPXREGSET is defined, provide
762 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
763 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
764 is defined, call fill_fpxregset.
765
766 2002-04-24 Roland McGrath <roland@frob.com>
767
768 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
769 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
770 (supply_gregset, supply_fpregset): New functions.
771
772 * gnu-nat.c (gnu_find_memory_regions): New function.
773 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
774 (gnu_xfer_memory): Add a cast.
775
776 2002-04-24 Michael Snyder <msnyder@redhat.com>
777
778 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
779 loop. Add handling for "str lr, [sp, #-4]!" and for saves
780 of argument regs ("str r(0123), [r11, #-nn"]).
781 (arm_skip_prologue): Better handling for frameless functions.
782 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
783 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
784
785 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
786
787 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
788 NUM_PSEUDO_REGS can be used.
789
790 2002-04-24 Andrew Cagney <ac131313@redhat.com>
791
792 * arch-utils.h: Update copyright.
793
794 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
795 * gdbarch.h, gdbarch.c: Re-generate.
796
797 * inferior.h (IN_SIGTRAMP): Delete definition.
798 * arch-utils.c (legacy_pc_in_sigtramp): New function.
799 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
800
801 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
802 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
803 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
804 (find_proc_framesize): Ditto.
805 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
806 (alpha_init_extra_frame_info): Ditto.
807 * infrun.c (handle_inferior_event): Ditto.
808 (handle_inferior_event): Ditto.
809 (check_sigtramp2): Ditto.
810 * blockframe.c (create_new_frame): Ditto.
811 (get_prev_frame): Ditto.
812 * ppc-linux-tdep.c: Update comments.
813 * i386-linux-tdep.c: Update comments.
814 * breakpoint.c (bpstat_what): Update comment.
815
816 2002-04-24 Michal Ludvig <mludvig@suse.cz>
817
818 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
819 (regsets_store_inferior_registers): Removed cast to int from
820 ptrace() calls.
821 * gdbserver/regcache.h: Added declaration of struct inferior_info.
822
823 2002-04-24 David S. Miller <davem@redhat.com>
824
825 * i960-tdep.c (register_in_window_p): New function.
826 (i960_find_saved_register): Use it instead of
827 REGISTER_IN_WINDOW_P.
828 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
829
830 * symtab.h (find_stab_function_addr): Kill extern.
831 * minsyms.c (find_stab_function_addr): Remove from here...
832 * dbxread.c: ... to here, and mark it static.
833
834 2002-04-20 David S. Miller <davem@redhat.com>
835
836 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
837 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
838
839 2002-04-21 David S. Miller <davem@redhat.com>
840
841 * remote-vxsparc.c (vx_read_register): Fix typo, we want
842 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
843 (vx_write_register): Likewise.
844
845 2002-04-23 J. Brobecker <brobecker@gnat.com>
846
847 * source.c (is_regular_file): New function.
848 (openp): Check wether file to open is a regular file
849 to avoid opening directories.
850
851 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
852
853 * findvar.c (extract_signed_integer): Cast printf argument
854 to suppress format warning.
855 (extract_unsigned_integer): Likewise.
856 * infcmd.c (registers_info): Likewise.
857 * top.c (get_prompt_1): Likewise.
858 * valops.c (value_assign): Likewise.
859 * valprint.c (print_decimal): Likewise.
860
861 2002-04-22 H.J. Lu (hjl@gnu.org)
862
863 * c-exp.y (typebase): Support
864
865 [long|long long|short] [signed|unsigned] [int|]
866
867 and
868
869 signed [long|long long|short] int
870
871 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
872
873 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
874 and vax-tdep.h.
875 * vax-tdep.h: New file.
876 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
877 Make several routines static.
878 (vax_get_saved_register): New function.
879 (vax_gdbarch_init): New function.
880 (_initialize_vax_tdep): Register vax_gdbarch_init.
881 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
882 Remove macros now under the control of gdbarch.
883
884 2002-04-22 Michael Snyder <msnyder@redhat.com>
885
886 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
887 Some whitespace and coding standards tweaks.
888
889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
890
891 * vax-tdep.c: Include regcache.h.
892 (vax_call_dummy_words): New.
893 (sizeof_vax_call_dummy_words): New.
894 (vax_fix_call_dummy): New function.
895 (vax_saved_pc_after_call): Ditto.
896 * config/vax/tm-vax.h: Don't include regcache.h.
897 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
898 (CALL_DUMMY): Remove.
899 (CALL_DUMMY_WORDS): Define.
900 (SIZEOF_CALL_DUMMY_WORDS): Define.
901 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
902
903 2002-04-18 Michael Snyder <msnyder@redhat.com>
904
905 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
906
907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
908
909 * vax-tdep.c (vax_frame_chain): New function.
910 (vax_push_dummy_frame): Ditto.
911 (vax_pop_frame): Ditto.
912 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
913 (FRAMELESS_FUNCTION_INVOCATION): Use
914 generic_frameless_function_invocation_not.
915 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
916 (POP_FRAME): Use vax_pop_frame.
917
918 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
919
920 * vax-tdep.c (vax_store_struct_return): New function.
921 (vax_extract_return_value): Ditto.
922 (vax_store_return_value): Ditto.
923 (vax_extract_struct_value_address): Ditto.
924 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
925 vax_store_struct_return.
926 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
927 (STORE_RETURN_VALUE): Use vax_store_return_value.
928 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
929
930 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
931
932 * vax-tdep.c (vax_frame_saved_pc): New function.
933 (vax_frame_args_address_correct): Ditto.
934 (vax_frame_args_address): Ditto.
935 (vax_frame_locals_address): Ditto.
936 (vax_frame_num_args): Move code to be in proximity to
937 other frame-related functions.
938 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
939 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
940 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
941 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
942 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
943
944 2002-04-22 H.J. Lu (hjl@gnu.org)
945
946 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
947 includedir.
948
949 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
950
951 * vax-tdep.c (vax_frame_init_saved_regs): New function.
952 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
953 (FRAME_INIT_SAVED_REGS): New macro.
954
955 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
956
957 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
958
959 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
960
961 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
962 where needed.
963 (fetch_osf_core_registers): Likewise.
964 (supply_gregset): Likewise.
965
966 2002-04-22 J. Brobecker <brobecker@gnat.com>
967
968 * symfile.h (get_section_index): Define.
969 * symfile.c (get_section_index): New function.
970 * mdebugread.c (SC_IS_SBSS): New macro.
971 (SC_IS_BSS): Return true for the scBss storage class only, as
972 the scSBss storage class refers to the .sbss section.
973 (parse_partial_symbols): Discard the symbols which associated
974 section does not exist.
975 Make sure to use the .sbss section index for symbols which
976 storage class is scBss, rather than using the .bss section index.
977
978 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
979
980 * vax-tdep.c: Update copyright years.
981 (vax_register_name): New function.
982 (vax_register_byte): Ditto.
983 (vax_register_raw_size): Ditto.
984 (vax_register_virtual_size): Ditto.
985 (vax_register_virtual_type): Ditto.
986 * config/vax/tm-vax.h: Update copyright years.
987 (REGISTER_NAMES): Remove.
988 (REGISTER_NAME): Define.
989 (REGISTER_BYTE): Use vax_register_byte.
990 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
991 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
992 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
993
994 2002-04-21 Andrew Cagney <ac131313@redhat.com>
995
996 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
997 declaration
998 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
999
1000 2002-04-21 David S. Miller <davem@redhat.com>
1001
1002 * arch-utils.c (generic_prologue_frameless_p): Kill
1003 SKIP_PROLOGUE_FRAMELESS_P code.
1004 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1005 references.
1006 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
1007 * arc-tdep.c (arc_prologue_frameless_p): Implement.
1008 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
1009 references.
1010 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
1011 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
1012 (sparc_gdbarch_init): Pass it to
1013 set_gdbarch_prologue_frameless_p.
1014
1015 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1016
1017 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
1018 (alphabsd-nat.o): New dependency list.
1019
1020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1021
1022 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
1023 alphafbsd-tdep.c.
1024 (alpha-linux-tdep.o): New dependency list.
1025 (alphafbsd-tdep.o): Likewise.
1026
1027 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1028
1029 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
1030 to here...
1031 * alpha-tdep.c: ...from here.
1032 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
1033
1034 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1035
1036 * config/alpha/tm-alpha.h: Move alpha_software_single_step
1037 prototype from here...
1038 * alpha-tdep.h: ...to here.
1039
1040 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1041
1042 * frame.h (selected_frame_level): Document as deprecated.
1043 (frame_relative_level): Declare.
1044 * stack.c (frame_relative_level): New function.
1045 (selected_frame_level): Document as deprecated.
1046 (select_frame): Do not set the selected_frame_level.
1047
1048 * stack.c (frame_info, record_selected_frame): Update.
1049 (frame_command, current_frame_command): Update.
1050 (up_silently_base, up_command, down_silently_base): Update.
1051 (down_command): Update.
1052 * inflow.c (kill_command): Update.
1053 * tracepoint.c (finish_tfind_command): Update.
1054 * corelow.c (core_open): Update.
1055 * thread.c (info_threads_command): Update.
1056 (do_captured_thread_select): Update.
1057 * infcmd.c (finish_command): Update.
1058 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
1059
1060 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1061
1062 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
1063
1064 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1065
1066 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
1067 type const.
1068
1069 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1070
1071 * alphafbsd-tdep.c: Update copyright years. Include
1072 alpha-tdep.h.
1073 (alphafbsd_use_struct_convention): Make static.
1074 (alphafbsd_init_abi): New function.
1075 (_initialize_alphafbsd_tdep): New function.
1076 * config/alpha/tm-fbsd.h: Update copyright years.
1077 (USE_STRUCT_CONVENTION): Remove.
1078
1079 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1080
1081 * alpha-tdep.c (alpha_abi_handler): New structure to describe
1082 an Alpha ABI variant.
1083 (alpha_abi_handler_list): Declare.
1084 (alpha_gdbarch_register_os_abi): New function.
1085 (alpha_gdbarch_init): Give registered ABI variant handlers a
1086 chance to tweak the gdbarch once we have set up defaults.
1087 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
1088
1089 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1090
1091 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
1092 to standard_coerce_float_to_double.
1093 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
1094
1095 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1096
1097 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
1098 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
1099 from gdbarch_tdep rather than a constant.
1100 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
1101 the default text address for all Alpha Unix ABIs.
1102 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
1103 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
1104
1105 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
1106
1107 * alpha-tdep.h: New file. Includes several Alpha target constants
1108 taken from...
1109 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
1110 let gdbarch deal with.
1111 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
1112 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
1113 to dependency list.
1114 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
1115 Alpha target register names.
1116 * alphabsd-nat.c: Likewise.
1117 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
1118 Alpha target register names. Make serveral routines static.
1119 (alpha_get_saved_register): New function.
1120 (alpha_abi_names): New.
1121 (process_note_abi_tag_sections): New function.
1122 (get_elfosabi): New function.
1123 (alpha_gdbarch_init): New function.
1124 (alpha_dump_tdep): New function.
1125 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
1126
1127 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1128
1129 * frame.c (find_saved_register): Delete #ifdef
1130 HAVE_REGISTER_WINDOWS code.
1131 * config/sparc/tm-sparc.h: Update comments.
1132 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
1133
1134 2002-04-21 Andrew Cagney <ac131313@redhat.com>
1135
1136 * i960-tdep.c (i960_find_saved_register): New function.
1137 (i960_get_saved_register): New function.
1138 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
1139 (i960_get_saved_register): Declare.
1140 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
1141
1142 2002-04-20 David S. Miller <davem@redhat.com>
1143
1144 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
1145
1146 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1147
1148 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
1149 instead of NUM_PSEUDO_REGS.
1150
1151 2002-04-20 David S. Miller <davem@redhat.com>
1152
1153 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
1154 GDB_MULTI_ARCH_PARTIAL
1155 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
1156 define, let tm-sp64.h do it.
1157
1158 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
1159
1160 * frame.c (find_saved_register): Avoid a NULL pointer
1161 dereference and actually walk the frame list.
1162
1163 2002-04-20 Andrew Cagney <ac131313@redhat.com>
1164
1165 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
1166 sorted in most most-recent-used order. Document.
1167 * gdbarch.h, gdbarch.c: Regenerate.
1168
1169 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1170
1171 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
1172 (add_inferior): Call create_register_cache.
1173 (clear_inferiors): Call free_register_cache.
1174 (inferior_regcache_data, set_inferior_regcache_data): New functions.
1175 * gdbserver/regcache.c (struct inferior_regcache_data): New.
1176 (registers): Remove.
1177 (get_regcache): New function.
1178 (create_register_cache, free_register_cache): New functions.
1179 (set_register_cache): Don't initialize the register cache here.
1180 (registers_to_string, registers_from_string, register_data): Call
1181 get_regcache.
1182 * gdbserver/regcache.h: Add prototypes.
1183 * gdbserver/server.h: Likewise.
1184
1185 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
1186
1187 * gdbserver/mem-break.c: New file.
1188 * gdbserver/mem-break.h: New file.
1189 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
1190 dependencies.
1191 * gdbserver/inferiors.c (struct inferior_info): Add target_data
1192 member.
1193 (clear_inferiors): Free target_data member if set.
1194 (inferior_target_data, set_inferior_target_data): New functions.
1195 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
1196 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
1197 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
1198 (struct inferior_linux_data): New.
1199 (linux_create_inferior): Use set_inferior_target_data.
1200 (linux_attach): Likewise. Call add_inferior.
1201 (linux_wait_for_one_inferior): New function.
1202 (linux_wait): Call it.
1203 (linux_write_memory): Add const.
1204 (initialize_low): Call set_breakpoint_data.
1205 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
1206 handling members.
1207 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
1208 call.
1209 * gdbserver/server.h: Include mem-break.h. Update inferior.c
1210 prototypes.
1211 * gdbserver/target.c (read_inferior_memory)
1212 (write_inferior_memory): New functions.
1213 * gdbserver/target.h (read_inferior_memory)
1214 (write_inferior_memory): Change macros to prototypes.
1215 (struct target_ops): Update comments. Add const to write_memory
1216 definition.
1217
1218 2002-04-19 Andrew Cagney <ac131313@redhat.com>
1219
1220 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
1221 instead of ->prev.
1222 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
1223 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
1224 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
1225 instead of ->prev.
1226
1227 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
1228
1229 Fix PR gdb/471.
1230 * gdbtypes.c (init_simd_type): Rewrite using new functions.
1231 (build_builtin_type_vec128): Ditto.
1232 (append_composite_type_field): Fix calculation of type length in
1233 union case.
1234
1235 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
1236
1237 * config/djgpp/README: Update.
1238
1239 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
1240 compiler warnings.
1241
1242 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
1243
1244 * alpha-tdep.c (setup_arbitrary_frame): Rename...
1245 (alpha_setup_arbitrary_frame): ...to this.
1246 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
1247 for alpha_setup_arbitrary_frame.
1248
1249 2002-04-18 Andrew Cagney <cagney@redhat.com>
1250
1251 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
1252 * gdbarch.h, gdbarch.c: Regenerate.
1253
1254 * defs.h (breakpoint_from_pc_fn): Delete type definition.
1255 * target.h (memory_breakpoint_from_pc): Update declaration.
1256 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
1257
1258 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
1259 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
1260 * mem-break.c (memory_breakpoint_from_pc): Ditto.
1261 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
1262 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
1263 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
1264 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
1265 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
1266 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
1267 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
1268 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
1269 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
1270
1271 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
1272 const pointer.
1273 * monitor.c (monitor_insert_breakpoint): Ditto.
1274 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
1275
1276 * config/mcore/tm-mcore.h: Update copyright.
1277 * mem-break.c: Ditto.
1278 * xstormy16-tdep.c: Ditto.
1279
1280 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
1281
1282 * p-exp.y: Add precedence rule for '^' token.
1283 This removes the shift/reduce conflicts.
1284 Remove the comment concerning these shift/reduce conflicts.
1285
1286 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
1287
1288 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
1289 (registers_powerpc_nofp): New register set for processors
1290 without floating point unit.
1291
1292 2002-04-18 David S. Miller <davem@redhat.com>
1293
1294 * MAINTAINERS: Add myself to write-after-approval.
1295
1296 2002-04-17 Michael Snyder <msnyder@redhat.com>
1297
1298 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
1299
1300 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1301
1302 * rs6000-tdep.c (frame_initial_stack_address): Use
1303 frame_register_read to read the alloca_reg.
1304
1305 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1306
1307 * frame.c (find_saved_register): Find saved registers in the next
1308 not prev frame.
1309 Fix PR gdb/365.
1310
1311 2002-04-17 Andrew Cagney <ac131313@redhat.com>
1312
1313 * gdbarch.sh (LANG): Set to ``c''.
1314
1315 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1316
1317 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
1318
1319 2002-04-15 Andrew Cagney <ac131313@redhat.com>
1320
1321 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
1322 Update copyright.
1323
1324 * hpread.c (hpread_get_lntt): Add declaration.
1325 Also fix PR gdb/391.
1326
1327 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1328
1329 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
1330 * aclocal.m4, configure: Re-generate.
1331 Fix PR gdb/391.
1332
1333 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1334
1335 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
1336 instead of tm_print_insn.
1337
1338 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
1339
1340 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
1341
1342 2002-04-14 Andrew Cagney <ac131313@redhat.com>
1343
1344 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
1345 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
1346 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
1347
1348 2002-04-12 Don Howard <dhoward@redhat.com>
1349
1350 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
1351 max_user_call_depth.
1352 (init_cmd_lists): Initialize the new value;
1353 * cli/cli-script.c (execute_user_command): Limit the call depth of
1354 user defined commands. This avoids a core-dump when user commands
1355 are infinitly recursive.
1356
1357 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1358
1359 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
1360 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
1361 from tdep struct instead of DEFAULT_LR_SAVE.
1362 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
1363 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
1364 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
1365
1366 2002-04-12 Michael Snyder <msnyder@redhat.com>
1367
1368 * Remote.c: Spelling fix.
1369 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
1370 If no symbol found for "sbrk", try "_sbrk".
1371 (make_output_phdrs): Use bfd_section_name.
1372 (gcore_copy_callback): Use bfd_section_name.
1373 * eval.c: Indentation fix-ups.
1374 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
1375 in case it gets applied to an address that is already
1376 in the instruction space.
1377 * cli/cli-decode.c (help_list): Allow long lines to wrap.
1378 * symfile.c: Fix indentation, long lines.
1379 * source.c: White space fix-up.
1380
1381 2002-04-12 Andrew Cagney <cagney@redhat.com>
1382
1383 * defs.h (read_relative_register_raw_bytes): Delete declaration.
1384 * frame.c (frame_register_read): New function. Return non-zero on
1385 success.
1386 (read_relative_register_raw_bytes_for_frame): Delete.
1387 (read_relative_register_raw_bytes): Delete.
1388 * frame.h (frame_register_read): Declare.
1389 * d30v-tdep.c: Update Copyright. Use frame_register_read.
1390 * sh-tdep.c: Ditto.
1391 * infcmd.c (do_registers_info): Ditto.
1392 * hppa-tdep.c: Ditto.
1393 * rs6000-tdep.c: Ditto.
1394 * h8500-tdep.c: Ditto.
1395 * mips-tdep.c: Ditto.
1396 * h8300-tdep.c: Ditto.
1397 * z8k-tdep.c: Ditto.
1398
1399 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1400
1401 From Jimi X <jimix@watson.ibm.com>:
1402 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
1403 64-bit SysV ABI.
1404
1405 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1406
1407 From Jimi X <jimix@watson.ibm.com>:
1408 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
1409 bfd info.
1410
1411 2002-04-12 Kevin Buettner <kevinb@redhat.com>
1412
1413 From Jimi X <jimix@watson.ibm.com>:
1414 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
1415 register sets for these processor variants.
1416
1417 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
1418
1419 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
1420 registers which are allowed to fail to store.
1421 * gdbserver/linux-low.h (linux_target_ops): Likewise.
1422 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
1423 (ppc_cannot_store_register): FPSCR may not be storable.
1424 * regformats/reg-ppc.dat: Support FPSCR.
1425
1426 2002-04-11 Kevin Buettner <kevinb@redhat.com>
1427
1428 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
1429 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1430 Add fpscr as an invalid/unfetchable register.
1431 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
1432 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
1433 (fill_fpregset): Add support for register fpscr.
1434 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
1435 (fill_gregset): Account for the fact that register ``mq'' might
1436 not exist.
1437 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
1438 (registers_power): Add fpscr to register set at slot 71.
1439 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
1440 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
1441
1442 2002-04-11 Michael Snyder <msnyder@redhat.com>
1443
1444 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
1445 * configure: Regenerate.
1446 * config.in: Regenerate.
1447 * acconfig.h: Add define for _SYSCALL32.
1448 * core-sol2.c: Remove #define _SYSCALL32.
1449 * solib-legacy.c: Remove #define _SYSCALL32.
1450
1451 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1452
1453 * stack.c (select_frame): Cleanup internal error message, do not
1454 use %p.
1455
1456 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1457
1458 * stack.c (select_frame): Check that selected_frame and the
1459 specified level are as expected.
1460 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
1461 Update copyright.
1462 * frame.h (struct frame_info): Add field `level'. Update
1463 copyright.
1464 Work-in-progress PR gdb/464.
1465
1466 2002-04-10 Andrew Cagney <ac131313@redhat.com>
1467
1468 * maint.c (maint_print_section_info): Rename print_section_info.
1469 (print_bfd_section_info, print_objfile_section_info): Update.
1470 * inferior.h (struct gdbarch): Add opaque declaration.
1471 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
1472 * gdbarch.h: Regenerate.
1473
1474 2002-04-10 Michal Ludvig <mludvig@suse.cz>
1475
1476 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
1477 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
1478 (kernel_u_size): Added.
1479 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
1480 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
1481
1482 2002-04-04 Jim Ingham <jingham@apple.com>
1483
1484 * valarith.c (find_size_for_pointer_math): New function, either returns
1485 the size for a pointer's target, returns 1 for void *, or errors for
1486 incomplete types.
1487 (value_add, value_sub): use find_size_for_pointer_math.
1488
1489 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1490
1491 * linux-low.c (linux_look_up_symbols): New hook.
1492 (linux_target_ops): Add linux_look_up_symbols.
1493 * remote-utils.c (decode_address): New function.
1494 (look_up_one_symbol): New function.
1495 * server.c (handle_query): Call target look_up_symbols hook.
1496 * server.h (look_up_one_symbol): Add prototype.
1497 * target.h (struct target_ops): Add look_up_symbols hook.
1498
1499 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1500
1501 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
1502 * ChangeLog: Correct paths in last ChangeLog entry.
1503
1504 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1505
1506 * gdbserver/linux-low.h: Remove obsolete prototypes.
1507 (struct linux_target_ops): New.
1508 (extern the_low_target): New.
1509 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
1510 (register_addr): Use the_low_target explicitly.
1511 (fetch_register): Likewise.
1512 (usr_fetch_inferior_registers): Likewise.
1513 (usr_store_inferior_registers): Likewise.
1514 * gdbserver/linux-arm-low.c (num_regs): Remove.
1515 (arm_num_regs): Define.
1516 (arm_regmap): Renamed from regmap, made static.
1517 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
1518 made static.
1519 (arm_cannot_store_register): Renamed from cannot_store_register,
1520 made static.
1521 (the_low_target): New.
1522 * gdbserver/linux-i386-low.c (num_regs): Remove.
1523 (i386_num_regs): Define.
1524 (i386_regmap): Renamed from regmap, made static.
1525 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
1526 made static.
1527 (i386_cannot_store_register): Renamed from cannot_store_register,
1528 made static.
1529 (the_low_target): New.
1530 * gdbserver/linux-ia64-low.c (num_regs): Remove.
1531 (ia64_num_regs): Define.
1532 (ia64_regmap): Renamed from regmap, made static.
1533 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
1534 made static.
1535 (ia64_cannot_store_register): Renamed from cannot_store_register,
1536 made static.
1537 (the_low_target): New.
1538 * gdbserver/linux-m68k-low.c (num_regs): Remove.
1539 (m68k_num_regs): Define.
1540 (m68k_regmap): Renamed from regmap, made static.
1541 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
1542 made static.
1543 (m68k_cannot_store_register): Renamed from cannot_store_register,
1544 made static.
1545 (the_low_target): New.
1546 * gdbserver/linux-mips-low.c (num_regs): Remove.
1547 (mips_num_regs): Define.
1548 (mips_regmap): Renamed from regmap, made static.
1549 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
1550 made static.
1551 (mips_cannot_store_register): Renamed from cannot_store_register,
1552 made static.
1553 (the_low_target): New.
1554 * gdbserver/linux-ppc-low.c (num_regs): Remove.
1555 (ppc_num_regs): Define.
1556 (ppc_regmap): Renamed from regmap, made static.
1557 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
1558 made static.
1559 (ppc_cannot_store_register): Renamed from cannot_store_register,
1560 made static.
1561 (the_low_target): New.
1562 * gdbserver/linux-s390-low.c (num_regs): Remove.
1563 (s390_num_regs): Define.
1564 (s390_regmap): Renamed from regmap, made static.
1565 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
1566 made static.
1567 (s390_cannot_store_register): Renamed from cannot_store_register,
1568 made static.
1569 (the_low_target): New.
1570 * gdbserver/linux-sh-low.c (num_regs): Remove.
1571 (sh_num_regs): Define.
1572 (sh_regmap): Renamed from regmap, made static.
1573 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
1574 made static.
1575 (sh_cannot_store_register): Renamed from cannot_store_register,
1576 made static.
1577 (the_low_target): New.
1578 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
1579 (the_low_target): New.
1580
1581 2002-04-09 Andrew Cagney <ac131313@redhat.com>
1582
1583 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
1584 override FP_REGNUM with frame->fp. Update copyright.
1585 * parse.c (num_std_regs, std_regs): Delete.
1586 (target_map_name_to_register): Do not search std_regs. Update
1587 function description.
1588 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
1589 declarations. Update copyright.
1590 Fix PR gdb/251.
1591
1592 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1593
1594 * gdbserver/Makefile.in: Add stamp-h target.
1595 * gdbserver/configure.in: Create stamp-h.
1596 * gdbserver/configure: Regenerated.
1597
1598 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1599
1600 * gdbserver/inferiors.c: New file.
1601 * gdbserver/target.c: New file.
1602 * gdbserver/target.h: New file.
1603 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
1604 dependencies.
1605 * gdbserver/linux-low.c (inferior_pid): New static variable,
1606 moved from server.c.
1607 (linux_create_inferior): Renamed from create_inferior.
1608 Call add_inferior. Return 0 on success instead of a PID.
1609 (linux_attach): Renamed from myattach.
1610 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
1611 (linux_thread_alive): Renamed from mythread_alive.
1612 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
1613 child dies.
1614 (linux_resume): Renamed from myresume. Add missing ``return 0''.
1615 (regsets_store_inferior_registers): Correct error message.
1616 Add missing ``return 0''.
1617 (linux_fetch_registers): Renamed from fetch_inferior_registers.
1618 (linux_store_registers): Renamed from store_inferior_registers.
1619 (linux_read_memory): Renamed from read_inferior_memory.
1620 (linux_write_memory): Renamed from write_inferior_memory.
1621 (linux_target_ops): New structure.
1622 (initialize_low): Call set_target_ops ().
1623 * gdbserver/remote-utils.c (unhexify): New function.
1624 (hexify): New function.
1625 (input_interrupt): Send signals to ``signal_pid''.
1626 * gdbserver/server.c (inferior_pid): Remove.
1627 (start_inferior): Update create_inferior call.
1628 (attach_inferior): Call add_inferior.
1629 (handle_query): New function.
1630 (main): Call handle_query for `q' packets.
1631 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
1632 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
1633
1634 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1635
1636 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
1637 dependencies.
1638 * gdbserver/configure.in: Check for <string.h>
1639 * gdbserver/configure: Regenerate.
1640 * gdbserver/config.in: Regenerate.
1641 * gdbserver/gdbreplay.c: Include needed system headers.
1642 (remote_open): Remove strchr prototype.
1643 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
1644 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
1645 (supply_register_by_name): Likewise.
1646 (collect_register): Change buf argument to void *.
1647 (collect_register_by_name): Likewise.
1648 * gdbserver/regcache.h: Add missing prototypes.
1649 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1650 * gdbserver/server.c (handle_query): New function.
1651 (attached): New static variable, moved out of main.
1652 (main): Quiet longjmp clobber warnings.
1653 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1654 * gdbserver/utils.c (error): Remove NORETURN.
1655 (fatal): Likewise.
1656
1657 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
1658
1659 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1660 after the last symbol in a block.
1661
1662 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1663
1664 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1665 is non zero as a found symbol.
1666
1667 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1668
1669 * findvar.c: Include "builtin-regs.h".
1670 (value_of_register): Call value_of_builtin_reg when applicable.
1671 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1672 (target_map_name_to_register): Call
1673 builtin_reg_map_name_to_regnum.
1674 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1675 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1676 (builtin_regs_h): Define.
1677 (builtin-regs.o): New target.
1678 (findvar.o): Add $(builtin_regs_h).
1679 * builtin-regs.c, builtin-regs.h: New files.
1680 * std-regs.c: New file.
1681 Partial fix for PR gdb/251.
1682
1683 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1684
1685 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1686 it's no longer required.
1687
1688 2002-04-08 Andrew Cagney <ac131313@redhat.com>
1689
1690 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1691
1692 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1693
1694 From Jimi X <jimix@watson.ibm.com>:
1695 * rs6000-tdep.c (rs6000_software_single_step): Use
1696 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1697 and size. Use target_insert_breakpoint() and
1698 target_remove_breakpoint() to insert and remove breakpoints
1699 instead of explicit memory reads and writes.
1700
1701 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1702
1703 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1704 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1705 ELF_OBJECT_FORMAT ifdef.
1706
1707 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1708
1709 From Jimi X <jimix@watson.ibm.com>:
1710 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1711
1712 2002-04-08 Kevin Buettner <kevinb@redhat.com>
1713
1714 From Jimi X <jimix@watson.ibm.com>:
1715 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1716 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1717
1718 2002-04-07 Mark Kettenis <kettenis@gnu.org>
1719
1720 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1721 s/asprintf/xasprintf/.
1722 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1723
1724 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1725
1726 I believe Jeff Law denies responsability for this one:
1727 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1728 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1729 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1730 Work-around for PR gdb/366.
1731
1732 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1733
1734 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1735 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1736 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1737
1738 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
1739
1740 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1741 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1742 information.
1743
1744 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1745
1746 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1747 maintainer.
1748
1749 2002-04-07 Andrew Cagney <ac131313@redhat.com>
1750
1751 * README (Reporting Bugs in GDB): Document the bug web page as the
1752 prefered way of submitting bugs.
1753 Fix PR gdb/402.
1754
1755 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1756
1757 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1758 -1. Update comment.
1759 * gdbarch.h, gdbarch.c: Re-generate.
1760
1761 2002-04-07 Andreas Schwab <schwab@suse.de>
1762
1763 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1764 buffer to regcache_collect.
1765
1766 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1767
1768 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1769 * gdbarch.c, gdbarch.h: Re-generate.
1770
1771 2002-04-06 Andrew Cagney <ac131313@redhat.com>
1772
1773 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1774 declaration. Fix -Werror.
1775
1776 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
1777
1778 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1779 * gdbarch.c: Regenerate.
1780
1781 2002-04-05 Michael Snyder <msnyder@redhat.com>
1782
1783 * breakpoint.c (clear_command): Rewrite middle section to
1784 combine two loops with identical control conditions.
1785 Add a cleanup to eliminate a memory leak.
1786 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1787
1788 2002-04-05 H.J. Lu (hjl@gnu.org)
1789
1790 * solib-svr4.c (bkpt_names): Add "__start".
1791
1792 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1793
1794 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1795 as test for 64 bit target.
1796
1797 2002-04-05 Andrew Cagney <ac131313@redhat.com>
1798
1799 * h8500-tdep.c (h8500_write_fp): Delete function.
1800 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1801 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1802 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1803 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1804 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1805 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1806 (s390_write_fp):
1807 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1808 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1809 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1810 (d10v_write_fp): Delete function.
1811 * inferior.h (write_fp, generic_target_write_fp): Delete
1812 declarations.
1813 * regcache.c (generic_target_write_fp): Delete function.
1814 (write_fp): Delete function.
1815 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1816 * gdbarch.h, gdbarch.c: Regenerate.
1817 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1818 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1819 (sparc64_write_fp): Delete declaration.
1820 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1821 (h8500_write_fp): Delete declaration.
1822
1823 2002-04-04 Andrew Cagney <ac131313@redhat.com>
1824
1825 * sparc-tdep.c (sparc64_write_fp): Delete.
1826 (sparc_push_dummy_frame): Replace write_fp call with code to store
1827 the FP directly.
1828 (sparc_gdbarch_init): Do not initialize write_fp.
1829
1830 2002-04-05 Kevin Buettner <kevinb@redhat.com>
1831
1832 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1833 clause.
1834
1835 2002-03-29 Jim Blandy <jimb@redhat.com>
1836
1837 * stack.c (get_selected_block): Add new argument `addr_in_block',
1838 used to return the exact code address we used to select the block,
1839 not just the block.
1840 * blockframe.c (get_frame_block, get_current_block): Same.
1841 * frame.h (get_frame_block, get_current_block,
1842 get_selected_block): Update declarations.
1843 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1844 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1845
1846 2002-04-05 Michael Snyder <msnyder@redhat.com>
1847
1848 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1849 warning message.
1850
1851 2002-04-05 J. Brobecker <brobecker@gnat.com>
1852
1853 * utils.c (xfullpath): New function.
1854 * defs.h (xfullpath): Add declaration.
1855 * source.c (openp): Use xfullpath in place of gdb_realpath to
1856 avoid resolving the basename part of filenames when the
1857 associated file is a symbolic link. This fixes a potential
1858 inconsistency between the filenames known to GDB and the
1859 filenames it prints in the annotations.
1860 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1861 to be able to match a filename with either the real filename, or
1862 the name of any symbolic link to this file.
1863 (lookup_partial_symtab): Ditto.
1864
1865 2002-04-04 Michael Snyder <msnyder@redhat.com>
1866
1867 * breakpoint.c: Add support for hardware breakpoints in overlays.
1868 (overlay_events_enabled): New state variable.
1869 (insert_breakpoints): Use overlay_events_enabled to decide
1870 whether to attempt to set a breakpoint at the overlay load addr.
1871 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1872 (remove_breakpoint): Use overlay_events_enabled to decide
1873 whether breakpoints need to be removed from overlay load addr.
1874 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1875 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1876 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1877 disable_overlay_breakpoints): Update overlay_events_enabled.
1878
1879 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
1880
1881 * dwarf2read.c (struct function_range): New.
1882 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1883 (check_cu_functions): New.
1884 (read_file_scope): Initialize global function lists.
1885 Call dwarf_decode_line after processing children.
1886 (read_func_scope): Add to global function list.
1887 (dwarf_decode_lines): Call check_cu_functions everywhere
1888 record_line is called. Call record_line with a linenumber
1889 of 0 to mark sequence ends.
1890
1891 2002-04-04 Michal Ludvig <mludvig@suse.cz>
1892
1893 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1894 change sync with glibc.
1895
1896 2002-04-03 Jim Blandy <jimb@redhat.com>
1897
1898 * configure.in: Call AC_C_INLINE.
1899 * configure: Regenerated.
1900
1901 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1904 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1905
1906 2002-03-31 Mark Kettenis <kettenis@gnu.org>
1907
1908 * NEWS: Mention gcore support on FreeBSD/i386.
1909
1910 * fbsd-proc.c: New file.
1911 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1912 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1913
1914 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1915 while statement.
1916
1917 2002-03-29 Jim Blandy <jimb@redhat.com>
1918
1919 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1920 unescaped newlines in string literals, but newer ones don't. So
1921 escape them.
1922
1923 2002-03-26 Michael Snyder <msnyder@redhat.com>
1924 Andrew Cagney <cagney@redhat.com>
1925
1926 * cli/cli-dump.c: New file. Dump memory to file,
1927 restore file to memory.
1928 * cli/cli-dump.h: New file.
1929 * Makefile.in: Add rules, dependencies for cli-dump.o.
1930 * NEWS: Mention new commands.
1931
1932 2002-03-28 Michael Snyder <msnyder@redhat.com>
1933
1934 * symfile.c (symbol_file_add): Move test for null symbols to later.
1935
1936 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1937
1938 From veksler at il.ibm.com:
1939 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1940 the xstrduped original path.
1941 Fix PR gdb/417.
1942
1943 2002-03-27 Michael Snyder <msnyder@redhat.com>
1944
1945 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1946 * infcmd.c (_initialize_infcmd): Ditto.
1947 * language.c (_initialize_language): Ditto.
1948 * symfile.c (_initialize_symfile): Ditto.
1949 * top.c (_init_main): Ditto.
1950 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1951
1952 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
1953
1954 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1955 vector registers handling.
1956 (skip_prologue): Handle new AltiVec instructions. Fill in new
1957 fields of frame data.
1958 (frame_get_saved_regs): Fill in information for AltiVec registers.
1959
1960 2002-03-27 Jim Blandy <jimb@redhat.com>
1961
1962 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1963 a function; leave this macro here to invoke that function.
1964 (symbol_init_mangled_name): Declaration for that function.
1965 * symtab.c (symbol_init_mangled_name): New function.
1966
1967 2002-03-27 Andrew Cagney <ac131313@redhat.com>
1968
1969 * valarith.c: Replace strerror with safe_strerror.
1970 * tracepoint.c: Ditto.
1971 * lin-lwp.c: Ditto.
1972 * go32-nat.c: Ditto.
1973 * inflow.c: Ditto.
1974 * gnu-nat.c: Ditto.
1975
1976 2002-03-27 Andreas Schwab <schwab@suse.de>
1977
1978 * event-top.c (command_line_handler): Remove useless if.
1979
1980 2002-03-27 Andreas Jaeger <aj@suse.de>
1981
1982 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1983 comment.
1984
1985 2002-03-27 Michal Ludvig <mludvig@suse.cz>
1986
1987 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1988 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1989 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1990 (x86_64_linux_dr_get_status, supply_gregset),
1991 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1992 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1993 (x86_64_register_info_table): Add.
1994 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1995 (x86_64_register_raw_size, x86_64_register_virtual_type),
1996 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1997 general x86_64_register_info_table.
1998 (i386_gdbarch_init): gdbarch_register_bytes is now set
1999 dynamicaly during initialization.
2000 * regformats/reg-x86-64.dat: Synced with changes to registers above.
2001 * gdbserver/linux-x86-64-low.c: Ditto.
2002
2003 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2004
2005 * gdbserver/server.c (main): Call target_signal_to_host_p
2006 and target_signal_to_host on signals received from the remote.
2007 * gdbserver/remote-utils.c (prepare_resume_reply): Call
2008 target_signal_from_host on signals sent to the remote.
2009 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
2010 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
2011
2012 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * signals/signals.c: Include "server.h" in gdbserver build.
2015 (target_signal_from_name): Don't use STREQ.
2016 (_initialize_signals): Likewise. Don't include function in
2017 gdbserver build.
2018
2019 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
2020
2021 * signals.c: Moved to...
2022 * signals/signals.c: Here.
2023 * Makefile (signals.o): Update.
2024
2025 2002-03-26 Jeff Law (law@redhat.com)
2026
2027 * somread.c (som_symtab_read): Remove some commented out code and
2028 updated related comments. Do not set the minimal symbol table to
2029 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
2030 in a dynamic executable.
2031 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
2032 where we are unable to find the minimal symbol for the given
2033 PC value.
2034
2035 2002-03-25 Jeff Law (law@redhat.com)
2036
2037 * linux-proc.c (read_mapping): Scan up to end of line for filename.
2038
2039 2002-03-25 Michal Ludvig <mludvig@suse.cz>
2040
2041 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
2042
2043 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2044
2045 * command.h: Update copyright.
2046 (struct cmd_list_element): Replace definition with opaque
2047 declaration.
2048 (enum cmd_types): Document that it will eventually be moved to
2049 cli/cli-decode.h
2050 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
2051 (MALLOCED_REPLACEMENT): Delete macro.
2052 * Makefile.in (cli_decode_h): Add $(command_h).
2053 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
2054 * top.c: Include "cli/cli-decode.h".
2055 * completer.c: Include "cli/cli-decode.h".
2056 * maint.c: Include "cli/cli-decode.h".
2057 * cli/cli-decode.h: Include "command.h".
2058 (enum command_class): Delete.
2059 (enum cmd_types): Comment out.
2060 (enum cmd_auto_boolean): Delete.
2061 (enum var_types): Delete.
2062
2063 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2064
2065 * cli/cli-decode.c: Include "gdb_assert.h".
2066 (add_set_or_show_cmd): New static function.
2067 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
2068 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
2069 all fields, such as func, from the set command.
2070
2071 2002-03-23 Andrew Cagney <ac131313@redhat.com>
2072
2073 * MAINTAINERS (sh-elf): Change warning flag to -w.
2074
2075 2002-03-23 Andrew Cagney <cagney@redhat.com>
2076
2077 * defs.h (error): Add printf format attribute.
2078 * thread-db.c (thread_from_lwp): Fix error format string.
2079 * stack.c (parse_frame_specification): Ditto.
2080 * cli/cli-decode.c (undef_cmd_error): Ditto.
2081 * scm-lang.c (scm_lookup_name): Ditto.
2082 * tracepoint.c (trace_error): Ditto.
2083 * remote-utils.c (usage): Ditto.
2084 * remote.c (compare_sections_command): Ditto.
2085 Fix PR gdb/328.
2086
2087 2002-03-22 Andrew Cagney <ac131313@redhat.com>
2088
2089 * gdbtypes.c (append_composite_type_field): New function.
2090 (init_composite_type): New function.
2091 * gdbtypes.h (append_composite_type_field): Declare.
2092 (init_composite_type): Ditto.
2093
2094 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
2095
2096 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
2097 function.
2098 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
2099 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
2100 structure returning convention for SYSV ABI case, but not
2101 for GNU/Linux, FreeBSD, or NetBSD.
2102
2103 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
2104
2105 * symtab.h (lookup_block_symbol): Add mangled_name argument
2106 to prototype.
2107
2108 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
2109 with new mangled_name argument.
2110 * linespec.c (decode_line_1): Likewise.
2111 * valops (value_of_this): Likewise.
2112 * symtab.c (lookup_transparent_type): Likewise.
2113 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
2114 (lookup_symbol): If we are given a mangled name, pass it down
2115 to lookup_symbol_aux.
2116 (lookup_block_symbol): If we are given a mangled name to check
2117 against, only return symbols which match it.
2118
2119 2002-03-22 Christopher Faylor <cgf@redhat.com>
2120
2121 * win32-nat.c (child_create_inferior): Check for proper shell to use
2122 here, in case the user changes it on the fly.
2123 (_initialize_inftarg): Remove shell path considerations.
2124
2125 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
2126
2127 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
2128 for gdbarch_max_register_raw_size and max_register_virtual_size.
2129 Adjust copyright year.
2130
2131 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
2132
2133 * dbxread.c (process_one_symbol): Extend the first N_SLINE
2134 in a function to cover the entire beginning of the function
2135 as well if it does not already.
2136
2137 2002-03-21 Tom Rix <trix@redhat.com>
2138
2139 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
2140 (rs6000_ptrace64): Renamed from ptrace64.
2141
2142 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2143
2144 * gdbserver/remote-utils.c (remote_open): Don't call
2145 getprotobyname, we're all using TCP here so just use
2146 IPPROTO_TCP.
2147 * gdbserver/gdbreplay.c (remote_open): Ditto.
2148
2149 2002-03-20 Martin M. Hunt <hunt@redhat.com>
2150
2151 * regcache.c (_initialize_regcache): No need to call
2152 build_regcache() at this time; it gets called whenever
2153 the gdbarch changes.
2154
2155 2002-03-20 David O'Brien <obrien@FreeBSD.org>
2156
2157 * sparc-nat.c: Include sys/param.h where possible.
2158
2159 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
2160
2161 Fix PR gdb/422.
2162 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
2163 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
2164 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
2165 complex types.
2166 * stabsread.c (rs6000_builtin_type): Likewise.
2167 (read_sun_floating_type): Likewise.
2168
2169 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2170
2171 * stabsread.c (read_member_functions): Remove skip code for duplicate
2172 constructor/destructor methods. Use standard parsing for these
2173 methods and just do not chain them to the list of methods after
2174 parsing.
2175
2176 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
2177
2178 * coffread.c: Remove redundant static declarations. Replace
2179 occurrences of `PTR' with `void *'.
2180 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
2181 * top.h (quit_cover): Likewise.
2182 * defs.h (catch_errors): Likewise.
2183
2184 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2185
2186 * defs.h (XMALLOC): Define.
2187 * gdb-events.sh (XMALLOC): Delete macro.
2188 * gdb-events.c, gdb-events.h: Regenerate.
2189 * gdbarch.sh (XMALLOC): Delete macro.
2190 * gdbarch.c: Regenerate.
2191 * serial.c (XMALLOC): Delete macro.
2192 * ui-file.c (XMALLOC): Ditto.
2193 * ser-unix.h (XMALLOC): Ditto.
2194 * sh-tdep.c (XMALLOC): Ditto.
2195 * ui-out.c (XMALLOC): Ditto.
2196 * utils.c (XMALLOC): Ditto.
2197 * i386-tdep.c (XMALLOC): Ditto.
2198 * gdb-events.c (XMALLOC): Ditto.
2199 * d10v-tdep.c (XMALLOC): Ditto.
2200 * cli-out.c (XMALLOC): Ditto.
2201
2202 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
2203 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
2204 * ui-file.c, ui-out.c: Ditto.
2205
2206 2002-03-18 Andrew Cagney <ac131313@redhat.com>
2207
2208 * command.h (struct cmd_list_element): Add field context.
2209 (set_cmd_context, get_cmd_context): Declare.
2210 * cli/cli-decode.h: Ditto.
2211 * cli/cli-decode.c (get_cmd_context): New function.
2212 (set_cmd_context): New function.
2213 (add_cmd): Initialize context.
2214 Part of fixing PR gdb/145 and PR gdb/146.
2215
2216 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2217
2218 * cli/cli-decode.c (cmd_type): New function.
2219 * command.h (cmd_type): Declare.
2220 * infrun.c (set_schedlock_func): Call function cmd_type.
2221 * kod.c (kod_set_os): Call cmd_type.
2222 * cris-tdep.c (cris_version_update): Use function cmd_type.
2223 (cris_mode_update, cris_abi_update): Ditto.
2224
2225 * command.h: (execute_cmd_post_hook): Declare.
2226 (execute_cmd_pre_hook): Declare.
2227 * cli/cli-script.c (clear_hook_in_cleanup): New function.
2228 (execute_cmd_post_hook, execute_cmd_pre_hook): New
2229 functions. Execute pre/post hook while ensuring that afterwords
2230 hook_in is cleared.
2231 * top.c (execute_command): Use execute_cmd_post_hook, and
2232 execute_cmd_pre_hook to execute pre/post commands.
2233 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
2234 hook_stop_stub.
2235 (hook_stop_stub): Call execute_cmd_pre_hook.
2236
2237 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2238
2239 * kod.c (kod_set_os): Revert previous change. Is called by ``info
2240 set'' and this leads to a core dump. Move xstrdup of
2241 operating_system to after check that it is not NULL.
2242
2243 2002-03-17 Andrew Cagney <ac131313@redhat.com>
2244
2245 * kod.c (kod_set_os): Remove unnecessary check that
2246 ``command->type'' is set_cmd.
2247
2248 * valprint.c (set_input_radix): Use input_radix.
2249 (set_output_radix): Use output_radix.
2250 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
2251 isn't reverted.
2252
2253 2002-03-16 Andrew Cagney <ac131313@redhat.com>
2254
2255 * value.h (struct value): Delete field ``substring_addr''. Change
2256 aligner fields to force_doublest_align, force_longest_align,
2257 force_core_addr_align and force_pointer_aligh.
2258
2259 * value.h (struct value): Fix typo in above change.
2260
2261 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2262
2263 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
2264 to fix internal_error from ``maintenance print architecture''.
2265
2266 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2267
2268 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
2269 for gcc versions after gcc-2.8.1.
2270
2271 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2272
2273 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
2274 for method resolution. Restore adjustment of ``this'' pointer after
2275 calling value_struct_elt, which was accidentally removed during the
2276 HP merge.
2277
2278 2002-03-15 Andrew Cagney <ac131313@redhat.com>
2279
2280 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
2281 value_of_register.
2282 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
2283 get_saved_register.
2284 * value.h (value_of_register): Update.
2285
2286 2002-03-14 Richard Henderson <rth@redhat.com>
2287
2288 * configure.in: Detect declaration for canonicalize_file_name.
2289 * utils.c (canonicalize_file_name): Declare, if needed.
2290 (gdb_realpath): Prefer realpath if available and usable.
2291 * config.in, configure: Rebuild.
2292
2293 2002-03-14 Richard Henderson <rth@redhat.com>
2294
2295 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
2296 a constant array bound.
2297
2298 * MAINTAINERS: Add myself to write-after-approval.
2299
2300 2002-03-14 Michael Snyder <msnyder@redhat.com>
2301
2302 * symfile.c (syms_from_objfile): Return immediately if no syms.
2303 (symbol_file_add): Return immediately if no syms.
2304 (find_sym_fns): Return immediately if no syms.
2305
2306 2002-03-13 Michal Ludvig <mludvig@suse.cz>
2307
2308 * gdbserver/remote-util.c (remote_open): Print remote-side's
2309 IP address when remote debugging over the network.
2310
2311 2002-03-12 David O'Brien <obrien@FreeBSD.org>
2312
2313 * config/sparc/fbsd.mh: Fix copyright.
2314 * config/sparc/fbsd.mt: Likewise.
2315
2316 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
2317
2318 * MAINTAINERS: Fix typo in name of gdb warnings option.
2319 (x86-64): Fix formating so that this can be parsed by awk.
2320
2321 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2322
2323 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
2324 * defs.h: Include "gdb/signals.h".
2325 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
2326
2327 2002-03-10 Michal Ludvig <mludvig@suse.cz>
2328
2329 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
2330 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
2331 from x86-64-tdep.h
2332
2333 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
2334 Don Howard <dhoward@redhat.com>
2335
2336 * mips-tdep.c (ST0_FR): Define.
2337 (mips2_fp_compat): New function, temporarily disabled.
2338 (mips_read_fp_register_single): New function.
2339 (mips_read_fp_register_double): New function.
2340 (mips_print_register): Use them.
2341 (do_fp_register_row): Likewise.
2342
2343 2002-03-09 Andrew Cagney <ac131313@redhat.com>
2344
2345 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
2346 approval''.
2347
2348 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2349
2350 * stabsread.c (read_member_functions): Fix is_stub test for
2351 static member functions, improve comment.
2352
2353 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
2354
2355 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
2356 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
2357 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
2358 commands that set boolean values.
2359 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
2360 (arm_rdi_resume): Always initialize PC.
2361 (arm_rdi_open): Don't use rslt as a boolean.
2362 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
2363 (arm_rdi_fetch_registers, arm_rdi_store_registers)
2364 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
2365 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
2366
2367 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
2368
2369 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
2370 * configure: Rebuilt.
2371
2372 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2373
2374 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
2375 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
2376
2377 2002-03-06 Andrew Cagney <ac131313@redhat.com>
2378
2379 * cli/cli-decode.c (set_cmd_completer): New function.
2380 * command.h (set_cmd_completer): Declare.
2381 * cli/cli-decode.h (set_cmd_completer): Ditto.
2382
2383 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
2384 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2385 * win32-nat.c (_initialize_inftarg): Ditto.
2386 * remote-rdi.c (_initialize_remote_rdi): Ditto.
2387 * proc-api.c (_initialize_proc_api): Ditto.
2388 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
2389 * source.c (_initialize_source): Ditto.
2390 * exec.c (_initialize_exec): Ditto.
2391 * solib.c (_initialize_solib): Ditto.
2392 * top.c (init_main): Ditto.
2393 * tracepoint.c (_initialize_tracepoint): Ditto.
2394 * symfile.c (_initialize_symfile): Ditto.
2395 * printcmd.c (_initialize_printcmd): Ditto.
2396 * infcmd.c (_initialize_infcmd): Ditto.
2397 * corefile.c (_initialize_core): Ditto.
2398
2399 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2400
2401 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
2402
2403 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2404
2405 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
2406
2407 2002-03-05 Andrew Cagney <ac131313@redhat.com>
2408
2409 * NEWS: Update headings, 5.2 has branched.
2410
2411 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
2412
2413 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
2414 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
2415 (register_addr, REGISTER_RAW_SIZE): Likewise.
2416 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
2417 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
2418
2419 2002-03-03 Michal Ludvig <mludvig@suse.cz>
2420
2421 * MAINTAINERS (x86-64): Add myself.
2422 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
2423 changed value_ptr -> struct value *
2424
2425 2002-03-01 David O'Brien <obrien@FreeBSD.org>
2426
2427 * configure.host (sparc64-*-freebsd): Add.
2428 * configure.tgt: Likewise.
2429 * config/sparc/fbsd.mh: New file.
2430 * config/sparc/fbsd.mt: Likewise.
2431 * config/sparc/nm-fbsd.h: Likewise.
2432 * config/sparc/tm-fbsd.h: Likewise.
2433
2434 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
2435
2436 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
2437 regformats/reg-s390x.dat.
2438
2439 2002-03-01 Andrew Cagney <ac131313@redhat.com>
2440
2441 * utils.c: Add FIXME explaining true/false problem.
2442
2443 2002-02-28 Andrew Cagney <ac131313@redhat.com>
2444
2445 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
2446
2447 2002-02-28 Michael Chastain <mec@shout.net>
2448
2449 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
2450
2451 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
2452
2453 * gdbserver/linux-s390-low.c: New file.
2454 * regformats/reg-s390.dat: New file.
2455 * regformats/reg-s390x.dat: New file.
2456 * gdbserver/configure.srv: Add S/390.
2457 * gdbserver/Makefile.in: Add S/390.
2458 * configure.tgt: Enable gdbserver for S/390.
2459
2460 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
2461
2462 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
2463 first line of the doc string for "info dos", except at the end of
2464 the sentence, since the short help stops at the first period.
2465
2466 2002-02-28 Jason Merrill <jason@redhat.com>
2467
2468 * dwarf2read.c (dwarf_cfi_name): Add new codes.
2469
2470 2002-02-27 Fred Fish <fnf@redhat.com>
2471
2472 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
2473 comment (dumy -> dummy).
2474
2475 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2476
2477 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
2478
2479 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
2480
2481 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
2482
2483 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2484
2485 * gdbserver/acconfig.h: New file.
2486 * gdbserver/i387-fp.c: New file.
2487 * gdbserver/i387-fp.h: New file.
2488 * gdbserver/linux-x86-64.c: New file.
2489 * regformats/reg-x86-64.dat: New file.
2490 * configure.tgt: Add x86_64-*-linux* gdbserver support.
2491 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
2492 * gdbserver/configure.in: Add support for regsets.
2493 * gdbserver/config.in: Regenerate.
2494 * gdbserver/configure: Regenerate.
2495 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
2496 * gdbserver/linux-low.h: New file.
2497 * gdbserver/linux-low.c: Include "linux-low.h". Add support
2498 for regsets.
2499 * gdbserver/linux-arm-low.c: Include "linux-low.h".
2500 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
2501 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
2502 * gdbserver/linux-mips-low.c: Include "linux-low.h".
2503 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
2504 * gdbserver/linux-sh-low.c: Include "linux-low.h".
2505 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
2506 "i387-fp.h". Add PTRACE_GETREGS and friends.
2507 * gdbserver/regcache.c (supply_register): New function.
2508 (supply_register_by_name): New function.
2509 (collect_register): New function.
2510 (collect_register_by_name): New function.
2511
2512 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2513
2514 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
2515 (config.status): Add configure.srv dependency.
2516 (server_h): Add config.h dependency.
2517
2518 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
2519
2520 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
2521 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
2522 * gdbserver/configure.srv: Change i386-*-linux* to use
2523 reg-i386-linux.o.
2524
2525 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2526
2527 * x86-64-tdep.c: Re-indent. Update copyright date.
2528
2529 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2530
2531 From Michal Ludvig <mludvig@suse.cz>:
2532 * x86-64-tdep.c (value.h): Delete.
2533 (gdb_assert.h): Include.
2534 (x86_64_register_convert_to_virtual,
2535 x86_64_register_convert_to_raw ): Add check which lets only
2536 floating-point values to be converted.
2537 (value_push): Delete.
2538 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
2539 (i386_gdbarch_init): Number of register_bytes fixed.
2540
2541 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2542
2543 * MAINTAINERS: Add x86-64 target.
2544
2545 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2546
2547 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
2548 * osfsolib.c (solib_map_sections): Ditto.
2549 * irix5-nat.c (solib_map_sections): Ditto.
2550 * corelow.c (gdb_check_format): Ditto.
2551 * symfile.c (symfile_bfd_open): Ditto.
2552 * solib.c (solib_map_sections): Ditto.
2553 Fix PR gdb/354.
2554
2555 2002-02-26 Andrew Cagney <ac131313@redhat.com>
2556
2557 * remote.c (_initialize_remote): By default, disable ``e'' and
2558 ``E'' step out-of-range packets.
2559
2560 2002-02-26 Andreas Schwab <schwab@suse.de>
2561
2562 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
2563 m68k_linux_frame_saved_pc.
2564 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
2565 in_sigtramp.
2566 (SIGCONTEXT_PC_OFFSET): Remove.
2567 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
2568 m68k_linux_sigtramp_saved_pc): New functions.
2569 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
2570 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
2571 (UCONTEXT_PC_OFFSET): Define.
2572 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
2573 non-RT and RT signal trampolines.
2574
2575 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
2576
2577 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
2578 (TARGET_NBPG, STACK_END_ADDR): Delete
2579 (VARIABLES_INSIDE_BLOCK): Delete.
2580
2581 2002-02-25 Andrew Cagney <ac131313@redhat.com>
2582
2583 * utils.c (perror_with_name): Make string parameter constant.
2584 (print_sys_errmsg): Ditto.
2585 (query): Ditto.
2586 * defs.h (perror_with_name): Update.
2587 (print_sys_errmsg): Update.
2588 (query): Update.
2589
2590 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
2591
2592 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
2593 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
2594
2595 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2596
2597 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
2598 if it already matches the current architecture from the exec file.
2599 Include arch-utils.h for gdbarch_info_init prototype.
2600 * Makefile.in (rs6000-nat.o): Update dependencies.
2601
2602 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
2603
2604 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
2605 list of exported variables.
2606
2607 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
2608
2609 * gdbserver/configure.srv: New file.
2610 * gdbserver/configure.in: Use configure.srv instead
2611 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
2612 from it.
2613 * gdbserver/configure: Regenerated.
2614 * gdbserver/terminal.h: New file.
2615 * gdbserver/Makefile.in: Update for configure changes. Remove
2616 more unneeded include paths.
2617
2618 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2619
2620 From wiz at danbala:
2621 * config/sparc/tm-sp64.h: Fix grammar and typos.
2622 Fix PR gdb/287.
2623
2624 2002-02-24 Andrew Cagney <ac131313@redhat.com>
2625
2626 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
2627 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
2628 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
2629 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
2630 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
2631 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
2632 * s390-tdep.c: Ditto.
2633 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
2634 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
2635 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
2636 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
2637 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
2638 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
2639 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
2640 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
2641 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
2642 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
2643 Fix PR gdb/378.
2644
2645 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2646
2647 * lin-thread.c: Delete file.
2648 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
2649 to gdb_proc_service.h.
2650 * configure: Re-generate.
2651
2652 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2653 * serial.c (serial_open): Delete check for "ocd".
2654 Fix PR gdb/349.
2655
2656 * Makefile.in (linux-thread.o): Delete target.
2657 * linux-thread.c: Delete file.
2658
2659 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2660 renamed SH files to be consistent.
2661
2662 * symtab.c (sort_search_symbols): Use xfree.
2663
2664 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2665
2666 * arm-linux-tdep.c (arm_linux_init_abi): Register
2667 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2668 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2669 definition with undef, since we don't want the sysvr4 definition.
2670 (SKIP_TRAMPOLINE_CODE): Likewise.
2671
2672 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2673
2674 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2675
2676 * configure.in: (AC_CHECK_FUNCS) Added test for
2677 canonicalize_file_name Regenerated.
2678 * config.in, configure: Regenerated.
2679 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2680 defined use canonicalize_file_name.
2681
2682 2002-02-23 Michael Chastain <mec@shout.net>
2683
2684 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2685
2686 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2687
2688 * README: Remove references to cygnus.com.
2689 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2690 dot com'' form. Remove references to cygnus.com and sourceware.
2691
2692 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2693
2694 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2695 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2696 1003.1-2001 no longer allows "head -1".
2697 * gdb/Makefile.in (version.c): Likewise.
2698 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2699 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2700 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2701
2702 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2703
2704 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2705 * command.h (cmd_cfunc_eq): Declare.
2706 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2707
2708 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2709 ``struct cmd_list_element *''.
2710 * cli/cli-cmds.c (is_complete_command): Update. Use
2711 cmd_cfunc_eq.
2712 * top.c (execute_command): Pass the command to
2713 is_complete_command.
2714 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2715
2716 2002-02-23 Andrew Cagney <ac131313@redhat.com>
2717
2718 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2719 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2720 architecture defines.
2721 * s390-tdep.c (s390_gdbarch_init): Likewise.
2722
2723 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2724
2725 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2726 (arm_linux_push_arguments): Likewise.
2727 (arm_linux_init_abi): Register them. Also register linux-specific
2728 call_dummy_words.
2729 (find_minsym_and_objfile): Use strcmp, not STREQ.
2730 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2731 (arm_linux_call_dummy_words): Delete declaration.
2732 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2733 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2734 declarations.
2735 (LOWEST_PC): Delete.
2736
2737 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2738
2739 * maint.c (print_section_info): Do not prepend `0x' to filepos
2740 output, it will be handled by local_hex_string_custom.
2741
2742 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
2743
2744 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2745 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2746 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2747
2748 2002-02-22 Jim Blandy <jimb@redhat.com>
2749
2750 Indicate that the bcache functions don't change the strings
2751 they're passed.
2752 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2753 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2754
2755 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2756
2757 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2758
2759 2002-02-21 Christopher Faylor <cgf@redhat.com>
2760
2761 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2762 find the complete path to a loaded DLL.
2763
2764 2002-02-21 Fred Fish <fnf@redhat.com>
2765
2766 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2767 that marks the end of the range of a function, enter a line number
2768 entry that has a line number of zero and a PC offset that matches
2769 the end of the function. This starts a range of PC's for which no
2770 line number information is known.
2771 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2772 PC's for which no line number info is found (line number is zero)
2773 then we didn't find any valid line information.
2774 * symtab.h: Document use of zero line number entry.
2775
2776 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
2777
2778 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2779 (have_ptrace_getvrregs): Define for run time checks.
2780 (gdb_vrregset_t): New type for Altivec register handling.
2781 (fetch_register, store_register): Fetch/store altivec register
2782 when needed.
2783 (fetch_altivec_register, store_altivec_register): New functions.
2784 (supply_vrregset, fill_vrregset): New functions.
2785 (fetch_altivec_registers, store_altivec_registers): New functions.
2786 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2787 registers as well.
2788
2789 2002-02-21 Jiri Smid <smid@suse.cz>
2790
2791 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2792
2793 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2794
2795 * Makefile.in (armnbsd-nat.o): Update dependencies.
2796 * armnbsd-nat.c (supply_gregset): New function. Common code to
2797 supply the integer register set.
2798 (supply_fparegset): New function. Similar for FPA registers.
2799 (fetch_regs, fetch_fp_regs): Use them.
2800 (fetch_core_registers): Likewise.
2801 (fetch_elfcore_registers): New function.
2802 (arm_netbsd_elfcore_fns): New core-file type specification.
2803 (_initialize_arm_netbsd_nat): Register it.
2804
2805 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
2806
2807 * armnbsd-nat.c: Include gdbcore.h.
2808 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2809 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2810 'void' to declaration, to shut up ARI.
2811 (fetch_core_registers): Make static. Rewrite using supply_register.
2812 (arm_netbsd_core_fns): New core-file type specification.
2813 (_initialize_arm_netbsd_nat): New function.
2814
2815 2002-02-21 Christopher Faylor <cgf@redhat.com>
2816
2817 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2818 value.
2819
2820 2002-02-20 Christopher Faylor <cgf@redhat.com>
2821
2822 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2823 fails.
2824
2825 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * jv-exp.y (parse_number): Change type of implicit longs
2828 to builtin_type_uint64.
2829
2830 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2831
2832 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2833 to be an integer instead of a `union wait'.
2834
2835 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2836
2837 * mips-linux-nat.c: Call the operating system GNU/Linux.
2838 * mips-linux-tdep.c: Likewise.
2839 * mips-tdep.c: Likewise.
2840
2841 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2842
2843 Fix PR gdb/265.
2844 * jv-exp.y (parse_number): Handle 64-bit integers.
2845
2846 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
2847
2848 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2849 AC_STDC_HEADERS to AC_HEADER_STDC.
2850 * gdbserver/configure: Regenerated.
2851
2852 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2853
2854 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2855 is defined.
2856 * sparc-tdep.c (get_longjmp_target): Likewise.
2857
2858 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
2859
2860 * News: Add news about ARM and Multi-arch. Mention the new target
2861 arm*-*-netbsd*.
2862
2863 2002-02-19 Jim Blandy <jimb@redhat.com>
2864
2865 * stabsread.c (error_type_complaint): Improve error message.
2866
2867 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
2868
2869 * gdbserver/README: Update documentation.
2870 * gdbserver/configure.in: Update configury to match documentation.
2871 * gdbserver/Makefile.in: Likewise.
2872 * gdbserver/configure: Regenerated.
2873 * gdbserver/aclocal.m4: New file, generated by aclocal.
2874 * gdbserver/config.in: New file, generated by autoheader.
2875
2876 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2877
2878 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2879 armnbsd-nat.c.
2880
2881 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2882
2883 * arm-tdep.h (enum arm_float_model): New enum.
2884 (struct gdbarch_tdep): Add fp_model.
2885 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2886 up floating-point conversions until we know the floating-point model
2887 in use by the inferior. Don't complain about being unable to
2888 determine the ABI of the inferior when we don't have one.
2889 (arm_extract_return_value): Support different floating-point models.
2890 (arm_store_return_value): Likewise.
2891 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
2892 ARM_FLOAT_SOFT.
2893 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2894
2895 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2896
2897 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2898 of ``current_gdbarch''.
2899
2900 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2901
2902 * armnbsd-nat.c : ANSIfy all function declarations.
2903 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2904 (fetch_inferior_registers): Re-implement in terms of above.
2905 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2906 (store_inferior_registers): Re-implement in terms of above.
2907
2908 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2909
2910 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
2911 kernel.
2912 * arm-linux-tdep.c: Likewise.
2913 * config/arm/tm-linux.h: Likewise.
2914
2915 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2916
2917 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2918 * config/arm/nbsd.mt (TM_FILE): Delete.
2919 * config/arm/tm-nbsd.h: Delete.
2920
2921 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2922
2923 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2924 Initialize CALL_DUMMY_LENGTH.
2925
2926 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
2927
2928 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2929 function.
2930 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
2931 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
2932 defines one thing and that is incorrect for this port.
2933 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2934
2935 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2936
2937 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2938
2939 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2940
2941 * win32-nat.c (display_selector): New function. Displays information
2942 about the information returned by GetThreadSelectorEntry API function.
2943 (display_selectors): New function. Displays the infomation of
2944 the selector given as argument, or of CS, DS ans FS selectors
2945 if no argument is given.
2946 ( _initialize_inftarg): Add "w32" as info prefix command.
2947 Add "info w32 selector" as command calling display_selectors.
2948
2949 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2950
2951 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2952 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2953 if not defined.
2954
2955 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2956
2957 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2958
2959 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2960
2961 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2962 (arm_fix_call_dummy): Call it.
2963 (arm_call_dummy_breakpoint_offset): Delete.
2964 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2965 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2966
2967 2002-02-18 Andrew Cagney <ac131313@redhat.com>
2968
2969 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2970 Default to func_frame_chain_valid.
2971 * gdbarch.h, gdbarch.c: Re-generate.
2972 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2973
2974 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
2975
2976 * ppc-linux-nat.c: Update copyright.
2977 (fetch_register, store_register): Add tid parameter, don't compute
2978 tid here.
2979 (fetch_ppc_registers, store_ppc_registers): Add tid
2980 parameter. Pass it along to callees.
2981 (fetch_inferior_registers, store_inferior_registers): Compute tid
2982 here, and pass it to calleed functions.
2983 (fill_gregset, supply_fpregset): Clean up formatting.
2984
2985 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2986
2987 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2988 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2989
2990 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
2991
2992 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2993 * gdbarch.c gdbarch.h: Regenerate.
2994 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2995 function.
2996 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2997 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2998 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2999
3000 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
3001 * arm-tdep.c (arm_get_longjmp_target): New function.
3002 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
3003 this to a positive value register arm_get_longjmp_target as the
3004 longjmp handler.
3005 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
3006 (arm_linux_init_abi): Set up longjmp description in tdep.
3007 * armnbsd-nat.c (get_longjmp_target): Delete.
3008 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
3009 description in tdep.
3010 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
3011 (get_longjmp_target): Delete declaration.
3012 (GET_LONGJMP_TARGET): Delete.
3013 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
3014 (GET_LONGJMP_TARGET): Delete.
3015
3016 2002-02-17 Kevin Buettner <kevinb@redhat.com>
3017
3018 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
3019 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
3020 of ``current_gdbarch''.
3021
3022 2002-02-17 Tom Tromey <tromey@redhat.com>
3023
3024 * cli/cli-cmds.c (compare_strings): New function.
3025 (complete_command): Only print each unique item once.
3026 * completer.h (complete_line): Declare.
3027 * completer.c (complete_line): New function.
3028 (line_completion_function): Use it.
3029
3030 2002-02-16 Andrew Cagney <ac131313@redhat.com>
3031
3032 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
3033 * gdbarch.h, gdbarch.c: Re-generate.
3034
3035 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3036
3037 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
3038
3039 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
3040
3041 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
3042 * valops.c (value_arg_coerce): Don't take the address of a reference
3043 to convert an argument to a reference.
3044
3045 2002-02-15 Christopher Faylor <cgf@redhat.com>
3046
3047 * win32-nat.c (get_image_name): New function.
3048 (handle_load_dll): Use get_image_name function.
3049 (get_child_debug_event): Avoid registering debug events until possibly
3050 execed process is started.
3051 (child_create_inferior): Allow invocation via shell so that command
3052 line redirection, etc. works ok.
3053 (_initialize_inftarg): Add new command: "set shell" to control whether
3054 a shell is used to start a process.
3055
3056 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3057
3058 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
3059 instead of find_register_by_number.
3060 (cannot_store_register): Likewise.
3061
3062 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
3063
3064 * dwarf2read.c: Replace fprintf (stderr, ...) by
3065 fprintf_unfiltered (gdb_stderr, ...).
3066
3067 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
3068
3069 * gdbserver/gdbserver.1: Document --attach.
3070
3071 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3072
3073 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
3074 descriptions.
3075 * arm-tdep.c (arm_default_arm_le_breakpoint)
3076 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
3077 (arm_default_thumb_be_breakpoint): New. Initialize them from
3078 traditional breakpoint defines.
3079 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
3080 (arm_gdbarch_init): Initialize new breakpoint variables.
3081 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
3082 (arm_linux_init_abi): Initialize linux-specific breakpoint.
3083 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
3084 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
3085 code out to ...
3086 (arm_netbsd_init_abi_common): ... here; new function.
3087 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
3088 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
3089 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
3090 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
3091
3092 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
3093
3094 * arm-tdep.h (enum arm_abi): New enum.
3095 (struct gdbarch_tdep): New structure.
3096 (LOWEST_PC): Provide a default.
3097 (arm_gdbarch_register_os_abi): Declare new function.
3098 * arm-tdep.c (arm_abi_names): New array.
3099 (process_note_abi_tag_sections): New function.
3100 (get_elfosabi): New function.
3101 (arm_gdbarch_register_os_abi): New function.
3102 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
3103 support for that ABI has been built in, then call the appropriate
3104 configuration routine. Use gdbarch_num_regs() to get the number
3105 of registers.
3106 (arm_dump_tdep): New function.
3107 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
3108 place-holder functions.
3109 (_initialize_arm_tdep): Register them.
3110 * config/arm/tm-arm.h (LOWEST_PC): Delete.
3111
3112 * armnbsd-tdep.c: New file.
3113 * Makefile.in (armnbsd-tdep.o): Add dependencies.
3114 * config/arm/nbsd.mt (TDEPFILES): Add it.
3115 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
3116
3117 * armnbsd-nat.c: Include regcache.h.
3118 * Makefile.in (armnbsd-nat.o): Update dependency list.
3119
3120 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
3121
3122 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3123
3124 * gdbserver/Makefile.in: Fix typos in target rules.
3125
3126 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3127
3128 Fix part of PR gdb/267.
3129 * linespec.c (find_methods): Handle constructors specially for now.
3130
3131 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
3132
3133 * arm-tdep.c (arm_push_arguments): Eliminate special float type
3134 handling.
3135 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
3136 standard_coerce_float_to_double().
3137
3138 2002-02-14 Christopher Faylor <cgf@redhat.com>
3139
3140 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
3141 GDBINIT_FILENAME.
3142
3143 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
3144
3145 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
3146 find_variant_by_name, because it confuses the multiarch
3147 framework. Return NULL if there isn't an architecture with the
3148 user supplied name, instead of forcing a different one without
3149 recording the change with the multiarch machinery.
3150 (find_variant_by_name): Delete.
3151
3152 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3153
3154 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
3155 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
3156
3157 2002-02-13 Martin M. Hunt <hunt@redhat.com>
3158
3159 * stack.c (print_frame_info_base): When calling
3160 print_frame_info_listing_hook, set current_source_symtab.
3161
3162 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3163
3164 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
3165 and remove unused $(INCLUDE_DIR).
3166 Add regcache.c to OBS.
3167 Add generated register protocol files to clean target.
3168 Update dependencies for new objects, obsolete old target code.
3169
3170 * gdbserver/linux-low.c: Remove all platform-specific code to
3171 new files. Remove various dead code. Update to use regcache
3172 functionality.
3173 * gdbserver/remote-utils.c (fromhex): Add return statement
3174 to quiet warning.
3175 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
3176 constant.
3177 (input_interrupt): Add integer parameter to match prototype
3178 of a signal handler.
3179 (outreg): Use register_data ().
3180 (prepare_resume_reply): Use gdbserver_expedite_regs.
3181 * gdbserver/server.c (main): Dynamically allocate own_buf because
3182 PBUFSIZ is no longer constant. Use registers_to_string () and
3183 registers_from_string ().
3184 * gdbserver/server.h: No longer include "defs.h". Add prototypes
3185 for error (), fatal (), and warning (). Update definition of
3186 PBUFSIZ to use regcache functionality. Add include guard.
3187 * gdbserver/utils.c (fatal): Add missing ``const''.
3188 (warning): New function.
3189
3190 * regformats/regdat.sh: Include "regcache.h" in generated files.
3191 Provide init_registers () function.
3192 * regformats/regdef.h: Add prototype for set_register_cache ().
3193 Add include guard.
3194
3195 * gdbserver/linux-arm-low.c: New file.
3196 * gdbserver/linux-i386-low.c: New file.
3197 * gdbserver/linux-ia64-low.c: New file.
3198 * gdbserver/linux-m68k-low.c: New file.
3199 * gdbserver/linux-mips-low.c: New file.
3200 * gdbserver/linux-ppc-low.c: New file.
3201 * gdbserver/linux-sh-low.c: New file.
3202
3203 * gdbserver/regcache.c: New file.
3204 * gdbserver/regcache.h: New file.
3205
3206 * gdbserver/low-linux.c: Removed obsolete file.
3207
3208 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3209
3210 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
3211 * config/i386/linux.mt: Likewise.
3212 * config/ia64/linux.mt: Likewise.
3213 * config/m68k/linux.mh: Likewise.
3214 * config/powerpc/linux.mh: Likewise.
3215 * config/mips/linux.mt: Likewise.
3216
3217 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
3218
3219 * config/i386/i386lynx.mh: Mark gdbserver variables
3220 as (currently) obsolete for this target.
3221 * config/i386/nbsd.mt: Likewise.
3222 * config/i386/nbsdelf.mt: Likewise.
3223 * config/m32r/m32r.mt: Likewise.
3224 * config/m68k/m68klynx.mh: Likewise.
3225 * config/m68k/nbsd.mt: Likewise.
3226 * config/m68k/sun3os4.mh: Likewise.
3227 * config/mips/vr5000.mt: Likewise.
3228 * config/ns32k/nbsd.mt: Likewise.
3229 * config/pa/hppabsd.mh: Likewise.
3230 * config/pa/hppaosf.mh: Likewise.
3231 * config/powerpc/nbsd.mt: Likewise.
3232 * config/rs6000/rs6000lynx.mh: Likewise.
3233 * config/s390/s390.mt: Likewise.
3234 * config/s390/s390x.mt: Likewise.
3235 * config/sparc/sparclynx.mh: Likewise.
3236 * config/sparc/sun4os4.mh: Likewise.
3237 * config/i386/x86-64linux.mt: Likewise.
3238 * config/sparc/linux.mh: Likewise.
3239
3240 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * configure.tgt: Configure gdbserver only for known working
3243 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
3244 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
3245 SUBDIRS if it is configured. Update comment for ${nativefile}.
3246 * configure: Regenerated.
3247
3248 2002-02-13 Michael Snyder <msnyder@redhat.com>
3249
3250 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
3251
3252 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
3253 (default_gcore_mach): Just return 0, work around a problem in bfd.
3254 (default_gcore_target): OK to return NULL if exec_bfd is null.
3255 (make_mem_sec): Use a cast, avoid a warning.
3256
3257 * procfs.c (find_memory_regions_callback): Use a cast instead of
3258 calling host_pointer_to_address (which complains if
3259 sizeof (host pointer) != sizeof (target pointer)).
3260 (procfs_make_note_section): Avoid overflow in psargs string.
3261
3262 * procfs.c (procfs_make_note_section): Make the default
3263 implementation return an error.
3264
3265 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
3266
3267 * procfs.c (procfs_make_note_section): Provide a default definition
3268 (for alpha-dec-osf4.0f). Fix typos.
3269
3270 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
3271
3272 * linux-proc.c: Add include of regcache.h.
3273 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
3274
3275 2002-02-13 Andrew Cagney <ac131313@redhat.com>
3276
3277 From 2002-01-18 Greg McGary <greg@mcgary.org>:
3278 * memattr.c (create_mem_region): Disallow useless empty region.
3279 Regions are half-open intervals, so allow [A..B) [B..C) as
3280 non-overlapping.
3281
3282 2002-02-13 Michael Chastain <mec@shout.net>
3283
3284 * defs.h: Kill CONST_PTR.
3285 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
3286 * c-lang.c (c_builtin_types): Likewise.
3287 * ch-lang.c (ch_builtin_types): Likewise.
3288 * f-lang.c (f_builtin_types): Likewise.
3289 * language.c (unknown_builtin_types): Likewise.
3290 * m2-lang.c (m2_builtin_types): Likewise.
3291 * p-lang.c (pascal_builtin_types): Likewise.
3292 * scm-lang.c (c_builtin_types): Likewise.
3293
3294 2002-02-13 Keith Seitz <keiths@redhat.com>
3295
3296 * arm-tdep.h (arm_get_next_pc): Add declaration.
3297
3298 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
3299
3300 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
3301 with other related struct-returning functions.
3302 (arm_extract_struct_value_address): New function.
3303 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
3304 initialize float_format, double_format and long_double_format as
3305 appropriate to the endianness of the target.
3306 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
3307 (arm_use_struct_convention): Delete declaration.
3308 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3309
3310 2002-02-13 Keith Seitz <keiths@redhat.com>
3311
3312 * defs.h (core_addr_to_string_nz): New function.
3313
3314 2002-02-13 Mark Kettenis <kettenis@gnu.org>
3315
3316 Apply missing bits of 2002-01-15 patch.
3317 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
3318 (fill_fpregset): Use i387_fill_fsave.
3319
3320 2002-02-12 Keith Seitz <keiths@redhat.com>
3321
3322 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
3323 (core_addr_to_string_nz): New function.
3324
3325 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3326
3327 * arm-linux-nat.c: Really include arm-tdep.h.
3328 * config/arm/tm-linux.h (struct type, struct value): Declare.
3329
3330 2002-02-11 Michael Snyder <msnyder@redhat.com>
3331
3332 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
3333 (gcore section): Ifdef for Solaris and Unixware only.
3334 (procfs_do_thread_registers): Unixware needs one lwpstatus
3335 per thread (not one prstatus or pstatus).
3336 (procfs_make_note_section): Iterate only over kernel threads (lwps),
3337 not over all gdb threads. For unixware, call elfcore_write_pstatus
3338 once before iterating over threads.
3339
3340 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3341
3342 * arm-tdep.h: New file.
3343 * arm-tdep.c: Include arm-tdep.h.
3344 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3345 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3346 (arm_print_float_info, arm_register_type, convert_to_extended)
3347 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3348 (arm_extract_return_value, arm_register_name): Make static.
3349 (arm_software_single_step): Similarly. Fix types in declaration.
3350 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
3351 (arm_store_return_value, arm_store_struct_return): New functions.
3352 (arm_gdbarch_init): Register the above functions. Also register
3353 call_dummy_start_offset, sizeof_call_dummy_words,
3354 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
3355 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
3356 max_register_virtual_size, register_size. Set up
3357 prologue_cache.saved_regs here, rather than ...
3358 (_initialize_arm_tdep): ... here.
3359 * config/arm/tm-arm.h (struct type, struct value): Delete forward
3360 declarations.
3361 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
3362 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
3363 (arm_print_float_info, arm_register_type, convert_to_extended)
3364 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
3365 (arm_extract_return_value, arm_register_name): Delete declarations.
3366 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
3367 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
3368 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
3369 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
3370 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3371 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
3372 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
3373 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
3374 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
3375 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
3376 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
3377 (arm_get_next_pc): No-longer static -- these are needed by the RDI
3378 interface.
3379 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
3380 * remote-rdi.c remote-rdp.c: Likewise.
3381 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
3382 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
3383 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
3384 definition.
3385
3386 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
3387 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
3388 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
3389 from non-ARM_ prefixed definitions.
3390 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
3391 all uses of above.
3392 * remote-rdi.c remote-rdp.c: Likewise.
3393 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
3394
3395 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
3396
3397 * arm-tdep.c (arm_frameless_function_invocation)
3398 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3399 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3400 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3401 (arm_pop_frame, arm_get_next_pc): Make static.
3402 (arm_gdbarch_init): Register above in gdbarch structure.
3403 (arm_read_fp): Renamed from arm_target_read_fp.
3404 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
3405 * config/arm/tm-arm.h (arm_frameless_function_invocation)
3406 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
3407 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
3408 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
3409 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
3410 (arm_pc_is_thumb_dummy): Delete declarations.
3411 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
3412 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
3413 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
3414 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
3415
3416 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
3417
3418 * symtab.c (compare_search_syms): New function.
3419 (sort_search_symbols): New function.
3420 (search_symbols): Sort symbols after searching rather than
3421 before.
3422
3423 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3424
3425 * NEWS: Linux -> GNU/Linux.
3426
3427 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3428
3429 * gdbarch.sh: For for level one methods, disallow a definition
3430 when partially multi-arched. Add comments explaining rationale.
3431 * gdbarch.h: Re-generate.
3432
3433 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3434
3435 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
3436 multi-arch partial.
3437
3438 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3439
3440 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
3441 field. Use diff -u.
3442 * gdbarch.c: Re-generate.
3443
3444 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3445
3446 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
3447 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
3448 partial.
3449
3450 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3451
3452 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
3453 multi-arch partial.
3454 (PUSH_ARGUMENTS): Switch to using predefault.
3455 * gdbarch.c: Regenerate.
3456
3457 2002-02-10 Andrew Cagney <ac131313@redhat.com>
3458
3459 * valops.c (PUSH_ARGUMENTS): Delete definition.
3460 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
3461 partial. Default to default_push_arguments.
3462 * gdbarch.h, gdbarch.c: Regenerate.
3463
3464 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3465
3466 * defs.h (throw_exception): Rename return_to_top_level. Update
3467 comments.
3468 * utils.c (error_stream, internal_verror, quit): Ditto.
3469 * top.c (throw_exception, catcher): Ditto.
3470 * sparclet-rom.c (sparclet_load): Ditto.
3471 * remote.c (interrupt_query, minitelnet): Ditto.
3472 * remote-sds.c (interrupt_query): Ditto.
3473 * remote-mips.c (mips_error, mips_kill): Ditto.
3474 * ocd.c (interrupt_query): Ditto.
3475 * monitor.c (monitor_interrupt_query): Ditto.
3476 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
3477 * target.h: Update comment.
3478
3479 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
3480
3481 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3482
3483 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
3484 default_double_format.
3485 * gdbarch.h, gdbarch.c: Re-generate.
3486 * findvar.c (floatformat_unknown): Delete variable definition.
3487 * doublest.h (floatformat_unknown): Delete variable declaration.
3488
3489 2002-02-09 Jim Blandy <jimb@redhat.com>
3490
3491 * stabsread.c (read_type): Add code to parse Sun's syntax for
3492 prototyped function types.
3493
3494 2002-02-09 Andrew Cagney <ac131313@redhat.com>
3495
3496 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
3497 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
3498
3499 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3500
3501 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
3502 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
3503 now _initialize_xcoffsolib gets called again and overrides the
3504 commands from solib.c in a native configuration.
3505
3506 2002-02-09 Mark Kettenis <kettenis@gnu.org>
3507
3508 * doublest.c (store_typed_floating): Don't try to return a value.
3509 Fixes PR gdb/290.
3510
3511 2002-02-08 Jim Blandy <jimb@redhat.com>
3512
3513 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
3514 is prototyped and has no arguments, print its argument list as
3515 `(void)'.
3516
3517 2002-02-08 Chris Demetriou <cgd@broadcom.com>
3518
3519 * MAINTAINERS (write-after-approval): Add myself.
3520 (paper-trail): I've escaped!
3521
3522 2002-02-08 Christopher Faylor <cgf@redhat.com>
3523
3524 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
3525 changes.
3526 (_initialize_check_for_gdb_ini): Ditto.
3527
3528 2002-02-08 Martin M. Hunt <hunt@redhat.com>
3529
3530 * win32-nat.c (cygwin_pid_to_str): Fix typo.
3531 xaprintf -> xasprintf.
3532
3533 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
3534
3535 * win32-nat.c: Remove use of printf and sprintf functions.
3536
3537 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
3538
3539 * arm-tdep.c (arm_frame_chain_valid): Make static.
3540 (arm_push_arguments): Likewise.
3541 (arm_gdbarch_init): New function.
3542 (_initialize_arm_tdep): Call it.
3543 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
3544 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
3545 (FRAME_CHAIN_VALID): Delete.
3546 (arm_frame_chain_valid): Delete declaration.
3547 (PUSH_ARGUMENTS): Delete.
3548 (arm_push_arguments): Delete declaration.
3549 (CALL_DUMMY_P): Delete.
3550
3551 2002-02-08 Andrew Cagney <ac131313@redhat.com>
3552 Corinna Vinschen <vinschen@redhat.com>
3553
3554 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
3555 on builtin float types.
3556
3557 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
3558
3559 * utils.c: Include <curses.h> before "bfd.h".
3560 * tui/tui-hooks.c: Likewise.
3561 * tui/tui.c: Likewise.
3562 * tui/tuiCommand.c: Likewise.
3563 * tui/tuiData.c: Likewise.
3564 * tui/tuiDataWin.c: Likewise.
3565 * tui/tuiDisassem.c: Likewise.
3566 * tui/tuiGeneralWin.c: Likewise.
3567 * tui/tuiIO.c: Likewise.
3568 * tui/tuiLayout.c: Likewise.
3569 * tui/tuiRegs.c: Likewise.
3570 * tui/tuiSource.c: Likewise.
3571 * tui/tuiSourceWin.c: Likewise.
3572 * tui/tuiStack.c: Likewise.
3573 * tui/tuiWin.c: Likewise.
3574
3575 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
3576
3577 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
3578 to include space for pseudoregs as well. Update loops accordingly.
3579 (sh_fp_frame_init_saved_regs): Ditto.
3580 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
3581
3582 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3583
3584 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
3585 Add Richard Earnshaw to Arm maintainers.
3586
3587 2002-02-07 Andrew Cagney <ac131313@redhat.com>
3588
3589 * defs.h (warning_begin): Delete declaration.
3590
3591 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
3592 Delete macro.
3593
3594 2002-02-07 Michael Snyder <msnyder@redhat.com>
3595
3596 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
3597 Logic bug, remove misplaced else.
3598
3599 2002-02-07 Klee Dienes <klee@apple.com>
3600
3601 * fork-inferior.c (fork_inferior): Add '!' to the list of
3602 characters that need to be quoted when building a string for the
3603 shell. Quote '!' specifically with a backslash, since CSH chokes
3604 when trying to evaluate "str!str".
3605
3606 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
3607
3608 * rdi-share/host.h: Only provide a typedef for bool if it is not
3609 defined.
3610
3611 2002-02-04 Michael Snyder <msnyder@redhat.com>
3612
3613 * breakpoint.h (enum bptype): Add new overlay event bp type.
3614 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
3615
3616 * breakpoint.c (create_internal_breakpoint): New function.
3617 (internal_breakpoint_number): Moved into create_internal_breakpoint.
3618 (create_longjmp_breakpoint): Use create_internal_breakpoint.
3619 (create_thread_event_breakpoint): Ditto.
3620 (create_solib_event_breakpoint): Ditto.
3621 (create_overlay_event_breakpoint): New function.
3622 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
3623 (update_breakpoints_after_exec): Delete and re-initialize
3624 overlay event breakpoints after an exec. Add FIXME comment
3625 about longjmp breakpoint.
3626 (print_it_typical): Ignore overlay event breakpoints.
3627 (print_one_breakpoint): Ditto.
3628 (mention): Ditto.
3629 (bpstat_what): Do not stop for overlay event breakpoints.
3630 (delete_breakpoint): Don't delete overlay event breakpoints.
3631 (breakpoint_re_set_one): Delete the overlay event breakpoint.
3632 (breakpoint_re_set): Re-create overlay event breakpoint.
3633
3634 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
3635 (overlay_manual_command): Disable overlay breakpoints.
3636 (overlay_off_command): Disable overlay breakpoints.
3637
3638 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3639
3640 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
3641 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
3642 to here from config/tm-arm.h.
3643 (coff_sym_is_thumb): Make static.
3644 (arm_elf_make_msymbol_special): New function.
3645 (arm_coff_make_msymbol_special): New function.
3646 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
3647 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
3648 (coff_sym_is_thumb): Delete declaration.
3649 (arm_elf_make_msymbol_special): Declare.
3650 (arm_coff_make_msymbol_special): Declare.
3651 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3652 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3653
3654 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3655
3656 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3657
3658 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
3659
3660 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3661 * gdbarch.c gdbarch.h: Regenerate.
3662 * arch-utils.c (default_print_float_info): New function.
3663 * arch-utils.h (default_print_float_info): Prototype it.
3664 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3665 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3666 (PRINT_FLOAT_INFO): Document it.
3667
3668 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3669 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3670 (PRINT_FLOAT_INFO): Define.
3671
3672 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3673
3674 * win32-nat.c (_initialize_check_for_gdb_ini):
3675 Add typecast to sprintf argument to suppress a warning.
3676
3677 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3678
3679 * win32-nat.c (last_sig): Changed type of variable to target_signal,
3680 to allow easier handling of pass state.
3681 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3682 that gives exception name and address.
3683 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
3684 and set last_sig value to ourstatus->value.sig. Some missing
3685 exceptions added.
3686 (child_continue): Correctly report continue_status.
3687 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
3688 TARGET_SIGNAL_0 (new default value).
3689 (child_resume): consider sig argument passed to decide if
3690 the exception should be passed to debuggee or not.
3691
3692 2002-02-05 Michael Snyder <msnyder@redhat.com>
3693
3694 * regcache.c (fetch_register): Call target_fetch_register
3695 only if we don't call FETCH_PSEUDO_REGISTER.
3696 (store_register): Call target_store_register only if we
3697 don't call STORE_PSEUDO_REGISTER.
3698
3699 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
3700
3701 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3702 ELF_MAKE_MSYMBOL_SPECIAL.
3703 * gdbarch.c, gdbarch.h: Regenerate.
3704 * arch-utils.c (default_make_msymbol_special): New function.
3705 * arch-utils.h (default_make_msymbol_special): Export.
3706 * elfread.c (elf_symtab_read): Compile use of
3707 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3708 multiarched.
3709 * coffread.c (coff_symtab_read): Ditto, for
3710 COFF_MAKE_MSYMBOL_SPECIAL.
3711
3712 2002-02-05 Jim Blandy <jimb@redhat.com>
3713
3714 * solib-svr4.c (svr4_truncate_ptr): New function.
3715 (svr4_relocate_section_addresses): Do the address arithmetic with
3716 the appropriate truncation for target addresses, even when
3717 CORE_ADDR is larger than a target address.
3718
3719 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3722 to (int *).
3723
3724 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3725
3726 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3727 code.
3728
3729 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3730
3731 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3732
3733 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3734
3735 * gdbserver/linux-low.c: Remove unused include files.
3736
3737 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3738
3739 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3740 (read_inferior_memory): Use it.
3741 (write_inferior_memory): Likewise.
3742
3743 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3744
3745 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3746 grubbing through sys_errlist.
3747
3748 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
3749
3750 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3751
3752 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3753 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3754
3755 2002-02-04 Andrew Cagney <ac131313@redhat.com>
3756
3757 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3758 (do_sfunc, set_cmd_sfunc): New functions.
3759
3760 * command.h (struct cmd_list_element): Add field func.
3761 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3762 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3763 * cli/cli-decode.h: Ditto.
3764
3765 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3766 (help_all, help_cmd_list): Ditto.
3767 (find_cmd, complete_on_cmdlist): Ditto.
3768 * top.c (execute_command): Ditto.
3769
3770 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3771 function.sfunc.
3772
3773 * infcmd.c (notice_args_read): Fix function signature.
3774
3775 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3776 * cli/cli-decode.c (add_set_cmd): Ditto.
3777 * utils.c (initialize_utils): Ditto.
3778 * maint.c (_initialize_maint_cmds): Ditto.
3779 * infrun.c (_initialize_infrun): Ditto.
3780 * demangle.c (_initialize_demangler): Ditto.
3781 * remote.c (add_packet_config_cmd): Ditto.
3782 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3783 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3784 * proc-api.c (_initialize_proc_api): Ditto.
3785 * kod.c (_initialize_kod): Ditto.
3786 * valprint.c (_initialize_valprint): Ditto.
3787 * top.c (init_main): Ditto.
3788 * infcmd.c (_initialize_infcmd): Ditto.
3789 * corefile.c (_initialize_core): Ditto.
3790 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3791 * arch-utils.c (initialize_current_architecture): Ditto.
3792 (_initialize_gdbarch_utils): Ditto.
3793 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3794
3795 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3796 * wince.c (_initialize_inftarg): Ditto.
3797 * symfile.c (_initialize_symfile): Ditto.
3798 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3799 * language.c (_initialize_language): Ditto.
3800 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3801
3802 2002-02-04 Michael Snyder <msnyder@redhat.com>
3803
3804 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3805
3806 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3807
3808 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3809 Add rules for building the register data files.
3810
3811 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3812
3813 * regformats/regdat.sh: Add braces to the definition of
3814 expedite_regs_${arch}.
3815
3816 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
3817
3818 * regformats/regdef.h (struct reg): Add comment describing the
3819 requirements for offset and size fields.
3820
3821 2002-02-04 Andreas Schwab <schwab@suse.de>
3822
3823 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3824 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3825
3826 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
3827
3828 * gdbarch.sh (copyright): Update years in generated header.
3829 (SMASH_TEXT_ADDRESS): Add rule.
3830 * gdbarch.h, gdbarch.c: Re-generate.
3831 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3832 * dbxread.c: Likewise.
3833 * dwarfread.c: Likewise.
3834 * elfread.c: Likewise.
3835 * somread.c: Likewise.
3836
3837 * arm-tdep.c (arm_smash_text_address): New function.
3838 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3839
3840 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3841
3842 Add support for hardware watchpoints on win32 native.
3843 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
3844 CONTEXT_DEBUG_REGISTERS.
3845 (dr variable): New variable. Static array containing a local copy
3846 of debug registers.
3847 (debug_registers_changed): New variable. Reflects when debug registers
3848 are changed and need to be written to inferior.
3849 (debug_registers_used): New variable. Reflects when any debug register
3850 was set, used when new threads are created.
3851 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3852 i386-nat code.
3853 (thread_rec): Set dr array if id is the thread of current_event .
3854 (child_continue, child_resume): Change the debug registers for all
3855 threads if debug_registers_changed.
3856 (child_add_thread): Change the debug registers if debug_registers_used.
3857 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3858 Link nm.h to new nm-cygwin.h file.
3859 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3860 of hardware registers.
3861
3862 2002-02-03 Andrew Cagney <ac131313@redhat.com>
3863
3864 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3865 Restore behavour broken by 2002-01-20 Andrew Cagney
3866 <ac131313@redhat.com> IEEE_FLOAT removal.
3867
3868 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3869
3870 * c-valprint.c (c_val_print): Pass a proper valaddr to
3871 cp_print_class_method.
3872 * valops.c (search_struct_method): If there is only one method
3873 and args is NULL, return that method.
3874
3875 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3876
3877 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3878 accessing tag_name directly.
3879
3880 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3881
3882 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3883 of accessing tag_name directly.
3884
3885 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
3886
3887 PR gdb/280
3888 * gdbtypes.c (replace_type): New function.
3889 * gdbtypes.h (replace_type): Add prototype.
3890 * stabsread.c (read_type): Use replace_type.
3891
3892 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
3893
3894 * Makefile.in (memattr.o): Add missing dependencies rule.
3895
3896 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3897
3898 * breakpoint.c (break_at_finish_command): Really export.
3899 (break_at_finish_at_depth_command): Ditto.
3900 (tbreak_at_finish_command): Ditto.
3901 * hppa-tdep.c: Include completer.h.
3902 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3903 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3904
3905 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3906
3907 * utils.c (do_write): New function.
3908 (error_stream): Rewrite combining the code from error_begin and
3909 verror.
3910 (verror): Rewrite using error_stream.
3911 (error_begin): Delete function.
3912
3913 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3914
3915 * utils.c (error_begin): Make static.
3916 * defs.h (error_begin): Delete declaration.
3917
3918 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3919 (decode_line_1): Use cplusplus_error instead of error_begin,
3920 cplusplus_hint and return_to_top_level.
3921 * coffread.c (coff_symfile_read): Use error instead of error_begin
3922 and return_to_top_level.
3923 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3924
3925 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3926
3927 * language.h (type_error, range_error): Make string parameter
3928 constant.
3929 * language.c (warning_pre_print): Delete extern declaration.
3930 * dwarfread.c (warning_pre_print): Ditto.
3931 * language.c (type_error, range_error): Rewrite to use verror and
3932 vwarning instead of warning_begin.
3933
3934 2002-02-01 Michael Snyder <msnyder@redhat.com>
3935
3936 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3937 (set_ignore_count): Move misplaced comment back where it belongs.
3938
3939 2002-02-01 Andrew Cagney <ac131313@redhat.com>
3940
3941 * command.h (NO_FUNCTION): Delete macro.
3942 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3943 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3944 * tracepoint.c (_initialize_tracepoint): Ditto.
3945 * cli/cli-decode.c (add_set_cmd): Ditto.
3946 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3947
3948 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3949
3950 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3951 Update ``this'' pointer when calling virtual functions.
3952
3953 2002-02-01 Michael Snyder <msnyder@redhat.com>
3954
3955 * breakpoint.c (create_temp_exception_breakpoint): Delete.
3956 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3957
3958 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
3959
3960 * regformats/reg-arm.dat: New file.
3961 * regformats/reg-i386.dat: New file.
3962 * regformats/reg-ia64.dat: New file.
3963 * regformats/reg-m68k.dat: New file.
3964 * regformats/reg-mips.dat: New file.
3965 * regformats/reg-ppc.dat: New file.
3966 * regformats/reg-sh.dat: New file.
3967 * regformats/regdef.h: New file.
3968 * regformats/regdat.sh: New file.
3969
3970 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
3971
3972 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3973 (arm_frame_args_address, arm_frame_locals_address): New functions.
3974 (arm_frame_num_args): New function.
3975 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3976 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3977 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3978
3979 2002-01-31 Michael Snyder <msnyder@redhat.com>
3980
3981 * breakpoint.c (break_at_finish_command): Export.
3982 (break_at_finish_at_depth_command): Export.
3983 (tbreak_at_finish_command): Export.
3984 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3985 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3986 "tbreak" commands, which are HPPA specific.
3987
3988 * printcmd.c (disassemble_command): Remove an ancient
3989 artifact of an old merge.
3990
3991 * symfile.h (enum overlay_debugging_state):
3992 Define enum constant values for overlay mode.
3993 * symfile.c (overlay_debugging): Use enums instead of literals.
3994 (overlay_is_mapped, overlay_auto_command,
3995 overlay_manual_command): Ditto.
3996
3997 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3998 breakpoint_here_p, breakpoint_inserted_here_p,
3999 breakpoint_thread_match, bpstat_stop_status,
4000 describe_other_breakpoints, check_duplicates, clear_command):
4001 Coding standard fixes.
4002
4003 * target.c (target_xfer_memory): Add spaces, coding standard.
4004 (do_xfer_memory): Add missing line to trust-readonly
4005 code: check bfd SEC_READONLY flag for section.
4006
4007 2002-01-31 Andrew Cagney <ac131313@redhat.com>
4008
4009 * PROBLEMS: Fix typo, 5.1->5.1.1.
4010
4011 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
4012
4013 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
4014 data symbols, since we search based on textlow and texthigh.
4015 (find_pc_sect_symtab): Likewise.
4016
4017 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4018
4019 * defs.h (vwarning): Declare.
4020 * utils.c (vwarning): New function.
4021 (warning): Call vwarning.
4022 (warning_begin): Delete function.
4023
4024 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
4025 the warning message.
4026 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
4027 warning_begin.
4028
4029 2002-01-30 Michael Snyder <msnyder@redhat.com>
4030
4031 * NEWS: Mention "set trust-readonly-sections" command.
4032 Mention generate-core-file command.
4033
4034 2002-01-15 Michael Snyder <msnyder@redhat.com>
4035
4036 * target.c: New command, "set trust-readonly-sections on".
4037 (do_xfer_memory): Honor the suggestion to trust readonly sections
4038 by reading them from the object file instead of from the target.
4039 (initialize_targets): Register command "set trust-readonly-sections".
4040
4041 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4042
4043 * parse.c (target_map_name_to_register): Simplify, search regs and
4044 pseudo-regs using a single loop.
4045
4046 2002-01-30 Andrew Cagney <ac131313@redhat.com>
4047
4048 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
4049
4050 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
4051
4052 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
4053 * config/i386/i386v42mp.mh: Add i387-nat.o .
4054 * i386v4-nat.c: Include i387-nat.h.
4055 (supply_fpregset): Use i387_supply_fsave.
4056 (fill_fpregset): Use i387_fill_fsave.
4057
4058 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
4059
4060 * arm-tdep.c (arm_call_dummy_words): Define.
4061 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
4062 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
4063 (CALL_DUMMY_WORDS): Define.
4064 (arm_call_dummy_words): Declare.
4065 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
4066 (arm_linux_call_dummy_words): Declare.
4067
4068 2002-01-30 Andreas Schwab <schwab@suse.de>
4069
4070 * m68klinux-nat.c: Fix last change to use regcache_collect
4071 instead of referencing registers[] directly.
4072
4073 2002-01-29 Andrew Cagney <ac131313@redhat.com>
4074
4075 * parse.c (target_map_name_to_register): Delete code wrapped in
4076 #ifdef REGISTER_NAME_ALIAS_HOOK.
4077
4078 2002-01-28 Michael Snyder <msnyder@redhat.com>
4079
4080 * regcache.c (legacy_read_register_gen): Need to be able to
4081 read pseudo-register as well as real register.
4082 (legacy_write_register_gen): Ditto.
4083
4084 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4085
4086 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4087 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
4088 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
4089 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
4090 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
4091 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
4092 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
4093 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
4094 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
4095 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
4096 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
4097 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
4098 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
4099 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
4100 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
4101 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
4102 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
4103 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
4104 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
4105 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
4106
4107 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4108
4109 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
4110 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
4111 (initialize_current_architecture): Update target_byte_order using
4112 information from BFD.
4113 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
4114 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
4115
4116 2002-01-28 Andrew Cagney <ac131313@redhat.com>
4117
4118 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
4119 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
4120
4121 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
4122 #ifdef INVALID_FLOAT.
4123 * infcmd.c (do_registers_info): Ditto.
4124 * values.c (unpack_double): Ditto. Add comment.
4125
4126 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
4127 already commented out.
4128
4129 2002-01-26 Andreas Schwab <schwab@suse.de>
4130
4131 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4132 * m68klinux-nat.c: Update ptrace interface for fetching/storing
4133 registers and add support for PTRACE_GETREGS.
4134
4135 2002-01-24 Andrew Cagney <ac131313@redhat.com>
4136
4137 GDB 5.1.1 released from 5.1 branch.
4138 * NEWS: Add 5.1.1 news.
4139 * README: Sync with 5.1 branch.
4140
4141 2002-01-23 Fred Fish <fnf@redhat.com>
4142
4143 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
4144 stabstring on initial malloc. Reallocing will copy it for us,
4145 if necessary.
4146
4147 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4148
4149 * Makefile.in (hpread_h): Delete.
4150 (HFILES_NO_SRCDIR): Remove hpread.h.
4151 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
4152 (hpread.o): Update dependencies.
4153 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
4154
4155 * hp-psymtab-read.c: Remove file.
4156 * hp-symtab-read.c: Remove file.
4157 * hpread.h: Remove file.
4158
4159 * hpread.c: Merge all contents of hp-psymtab-read.c,
4160 hp-symtab-read.c and hpread.h into this file, as it was prior to
4161 January 1999.
4162
4163 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
4164 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
4165 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
4166 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
4167
4168 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
4169
4170 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
4171 fill_gregset): Call gdbarch_tdep() just once, assign result to
4172 variable and use that, instead of calling the function several
4173 times.
4174
4175 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4176
4177 * configure.host: Accept sparcv9 as alias for sparc64.
4178 * configure.tgt: Likewise.
4179
4180 2002-01-22 Kevin Buettner <kevinb@redhat.com>
4181
4182 * solib-aix5.c (build_so_list_from_mapfile)
4183 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
4184 arguments is not reversed.
4185 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
4186 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
4187
4188 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
4189
4190 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
4191 modified version of obsolete sh_fetch_pseudo_register.
4192 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
4193 (sh4_register_read): New function.
4194 (sh_pseudo_register_write): New function. Renamed and modified
4195 version of obsolete sh_store_pseudo_register.
4196 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
4197 (sh4_register_write): New function.
4198 (sh_gdbarch_init): Remove setting of gdbarch function
4199 fetch_pseudo_register and store_pseudo_register. Remove setting of
4200 register_convert_to_raw, register_convert_to_virtual,
4201 register_convertible.
4202 (sh_sh4_register_convertible): Delete. No longer needed. All is
4203 taken care by architecture specific functions
4204 register_read/register_write.
4205 (sh_sh4_register_convert_to_virtual): Make static.
4206 (sh_sh4_register_convert_to_raw): Ditto.
4207
4208 2002-01-22 Andrew Cagney <ac131313@redhat.com>
4209
4210 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
4211 (floatformat_is_nan, floatformat_mantissa): Ditto.
4212
4213 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
4214 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
4215 builtin_type_ieee_double_little,
4216 builtin_type_ieee_double_littlebyte_bigword,
4217 builtin_type_m68881_ext, builtin_type_i960_ext,
4218 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
4219 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
4220 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
4221 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
4222
4223 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
4224
4225 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
4226 parameter. Set frameless flag if it exists and depended of
4227 whether the scanned function is frameless or not.
4228 (xstormy16_skip_prologue): If function is frameless, return
4229 result of xstormy16_scan_prologue().
4230 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
4231 call.
4232
4233 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
4234
4235 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
4236 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
4237 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
4238 sh_sh4_register_byte, sh_sh4_register_raw_size,
4239 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
4240 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
4241 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
4242 sh_store_pseudo_register, sh_do_pseudo_register): Call
4243 gdbarch_tdep() just once, assign result to variable and use that,
4244 instead of calling the function several times.
4245
4246 2002-01-20 Mark Kettenis <kettenis@gnu.org>
4247
4248 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
4249 macros instead of LAST_FPU_CTRL_REGNUM.
4250 (store_register): Likewise.
4251
4252 2002-01-21 Jim Blandy <jimb@redhat.com>
4253
4254 * infcmd.c (run_command): Check that the `exec' target layer's BFD
4255 is up-to-date before running the program, not just when a program
4256 exits.
4257
4258 2002-01-21 Fred Fish <fnf@redhat.com>
4259
4260 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
4261 when we have found all instructions we are looking for.
4262
4263 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4264
4265 * arm-tdep.c (arm_register_name): New function.
4266 (arm_registers_names): Make static.
4267 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
4268 (arm_register_name): Declare.
4269 (REGISTER_NAME): Use it.
4270
4271 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
4272 Kevin Buettner <kevinb@redhat.com>
4273
4274 Convert arm targets to new FRAME interface.
4275 * arm-tdep.c (struct frame_extra_info): Remove fsr.
4276 (arm_frame_find_save_regs): Delete.
4277 (arm_frame_init_saved_regs): New.
4278 (arm_init_extra_frame_info): Alloacte saved_regs as required.
4279 Allocate extra_info as required. Convert all uses of fsr.regs
4280 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
4281 to use extra_info.
4282 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
4283 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
4284 (check_prologue_cache, save_prologue_cache): Likewise.
4285 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
4286 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
4287 (FRAME_FIND_SAVED_REGS): Delete.
4288 (arm_frame_find_saved_regs): Delete prototype.
4289 (arm_frame_init_saved_regs): New prototype.
4290 (FRAME_INIT_SAVED_REGS): Define.
4291
4292 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4293
4294 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
4295
4296 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4297
4298 From Jeff Law <law@redhat.com>:
4299 * infttrace.c: Include <sys/pstat.h>.
4300 (child_pid_to_exec_file): Revamp. Use pstat call to get the
4301 exec file if the ttrace equivalent fails.
4302
4303 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4304
4305 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
4306 (closeLogFile): Ditto.
4307
4308 2002-01-20 Michael Chastain <mec@shout.net>
4309
4310 * top.c (print_gdb_version): Bump copyright year to 2002.
4311
4312 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4313
4314 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
4315 Zannoni and Eli Zaretskii.
4316
4317 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4318
4319 * buildsym.c: Update copyright years.
4320 * c-typeprint.c: Likewise.
4321 * dwarf2read.c: Likewise.
4322 * f-typeprint.c: Likewise.
4323 * gdbtypes.c: Likewise.
4324 * gdbtypes.h: Likewise.
4325 * hp-symtab-read.c: Likewise.
4326 * hpread.c: Likewise.
4327 * mdebugread.c: Likewise.
4328 * p-typeprint.c: Likewise.
4329
4330 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4331
4332 * remote-sim.c (gdbsim_open): Simplify code testing the macro
4333 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
4334 byte-order selectable.
4335 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
4336 * arch-utils.c: Ditto.
4337 (set_endian): Ditto.
4338 (set_endian_from_file): Ditto.
4339 * gdbserver/low-sim.c (create_inferior): Ditto.
4340 * gdbarch.sh: Ditto.
4341 * gdbarch.h: Re-generate.
4342 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4343 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
4344 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
4345 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4346 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4347 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
4348 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
4349 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
4350 macro definition.
4351 * config/mips/tm-wince.h: Remove #undef of macro
4352 TARGET_BYTE_ORDER_SELECTABLE.
4353 * config/sh/tm-wince.h: Ditto.
4354
4355 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4356
4357 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
4358 member function fields. Add accessor macro
4359 TYPE_FN_FIELD_ARTIFICIAL.
4360 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
4361 * c-typeprint.c (c_type_print_base): Skip artificial member
4362 functions.
4363
4364 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4365
4366 * f-typeprint.c: Delete unused function f_type_print_args.
4367 * p-typeprint.c: Delete unused function pascal_type_print_args.
4368
4369 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
4370
4371 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
4372 comment. Add ``artificial'' to ``union field_location''.
4373
4374 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
4375
4376 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
4377 * mdebugread.c (parse_symbol): Likewise.
4378 * stabsread.c (define_symbol): Likewise.
4379 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
4380 initializing TYPE_FIELD_BITPOS to n (obsolete).
4381 (hpread_doc_function_type): Likewise.
4382 * hpread.c (hpread_function_type): Likewise.
4383
4384 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4385
4386 * configure.in (host_makefile_frag): Only require a host makefile
4387 fragment when a native build.
4388 * configure: Re-generate.
4389
4390 2002-01-20 Andrew Cagney <ac131313@redhat.com>
4391
4392 * doublest.h (floatformat_from_type): Declare.
4393 * doublest.c (floatformat_from_type): New function.
4394 (convert_typed_floating): Use.
4395
4396 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
4397 call to function floatformat_from_type.
4398
4399 * gdbarch.sh (IEEE_FLOAT): Delete.
4400 * gdbarch.h, gdbarch.c: Re-generate.
4401 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
4402 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
4403 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
4404 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
4405 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
4406 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
4407 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
4408 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
4409 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
4410 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
4411 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
4412 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
4413
4414 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
4415 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
4416 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4417 * sh-tdep.c (sh_gdbarch_init): Ditto.
4418 * mips-tdep.c (mips_gdbarch_init): Ditto.
4419 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4420 * cris-tdep.c (cris_gdbarch_init): Ditto.
4421
4422 2002-01-20 Jiri Smid <smid@suse.cz>
4423
4424 * configure.host, configure.tgt: Support x86-64.
4425 * NEWS: Note new target x86-64.
4426
4427 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
4428 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
4429 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
4430 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
4431 x86-64-linux-nat.o): Fix dependencies.
4432
4433 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4434
4435 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
4436 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
4437 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
4438 * config/sparc/xm-sun4os4.h: Delete file.
4439 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
4440
4441 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4442
4443 * config/sparc/sparclynx.mh (XM_FILE): Delete.
4444 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
4445 * config/m68k/m68klynx.mh (XM_FILE): Delete.
4446 * config/i386/i386lynx.mh (XM_FILE): Delete.
4447 * config/rs6000/xm-rs6000ly.h: Delete file.
4448 * config/sparc/xm-sparclynx.h: Delete file.
4449 * config/m68k/xm-m68klynx.h: Delete file.
4450 * config/i386/xm-i386lynx.h: Delete file.
4451 * config/xm-lynx.h: Delete file.
4452 * config/djgpp/fnchange.lst: Update.
4453
4454 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4455
4456 * alpha-tdep.c (alpha_register_byte): New function.
4457 (alpha_register_raw_size): Ditto.
4458 (alpha_register_virtual_size): Ditto.
4459 (alpha_skip_prologue_internal): Renamed from
4460 alpha_skip_prologue.
4461 (alpha_skip_prologue): New version that calls
4462 alpha_skip_prologue_internal.
4463 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
4464 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
4465 second argument from alpha_skip_prologue.
4466 (REGISTER_BYTE): Use alpha_register_byte.
4467 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
4468 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
4469 (FRAMELESS_FUNCTION_INVOCATION): Use
4470 generic_frameless_function_invocation_not.
4471 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
4472 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
4473
4474 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4475
4476 * config/mips/xm-news-mips.h: Delete file.
4477 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
4478
4479 * config/m88k/xm-m88k.h: Delete file.
4480 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
4481 * config/m88k/xm-delta88v4.h: Ditto.
4482 * config/m88k/xm-delta88.h: Ditto.
4483
4484 * config/alpha/xm-fbsd.h: Delete file.
4485 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
4486
4487 * config/sparc/xm-sparc.h: Delete file.
4488 * Makefile.in (xm-sun4os4.h): Delete dependency.
4489 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
4490 * config/sparc/xm-sun4os4.h: Ditto.
4491 * config/sparc/xm-linux.h: Ditto.
4492
4493 * config/i386/xm-windows.h: Delete file.
4494
4495 2002-01-19 Andrew Cagney <ac131313@redhat.com>
4496
4497 * utils.c: Include <sys/param.h> for MAXPATHLEN.
4498 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
4499
4500 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4501
4502 * alpha-tdep.c (alpha_call_dummy_words): New.
4503 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
4504 (CALL_DUMMY_P): Define.
4505 (CALL_DUMMY_WORDS): Define.
4506 (SIZEOF_CALL_DUMMY_WORDS): Define.
4507
4508 2002-01-19 Per Bothner <per@bothner.com>
4509
4510 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4511 isn't NULL, which can happen with some gcj-3.x-produced code.
4512
4513 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
4514
4515 * alpha-tdep.c (alpha_register_virtual_type): New function.
4516 (alpha_init_frame_pc_first): Ditto.
4517 (alpha_fix_call_dummy): Ditto.
4518 (alpha_store_struct_return): Ditto.
4519 (alpha_extract_struct_value_address): Ditto.
4520 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
4521 alpha_register_virtual_type.
4522 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
4523 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
4524 alpha_extract_struct_value_address.
4525 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
4526 (INIT_FRAME_PC): Use init_frame_pc_noop.
4527 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
4528
4529 2002-01-19 Mark Kettenis <kettenis@gnu.org>
4530
4531 * i386gnu-nat.c: Include "i386-tdep.h".
4532 (fetch_fpregs): Simplify code dealing with uninitialized floating
4533 point states such that it doesn't require FP7_REGNUM.
4534
4535 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4536
4537 * alpha-tdep.c (frame_extra_info): New.
4538 (alpha_find_saved_regs): Make static. Use
4539 frame->extra_info.
4540 (alpha_frame_init_saved_regs): New function.
4541 (alpha_frame_saved_pc): Use frame->extra_info.
4542 (temp_saved_regs): Don't declare as struct frame_saved_regs.
4543 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
4544 (init_extra_frame_info): Rename to...
4545 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
4546 (alpha_print_extra_frame_info): New function.
4547 (alpha_frame_locals_address): Ditto.
4548 (alpha_frame_args_address): Ditto.
4549 (alpha_pop_frame): Use frame->extra_info.
4550 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
4551 alpha_frame_args_address.
4552 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
4553 (alpha_find_saved_regs): Remove prototype.
4554 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
4555 (EXTRA_FRAME_INFO): Remove.
4556 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
4557 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
4558
4559 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4560
4561 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
4562 (alpha_cannot_fetch_register): Ditto.
4563 (alpha_cannot_store_register): Ditto.
4564 (alpha_register_convertible): Ditto.
4565 (alpha_use_struct_convention): Ditto.
4566 * config/alpha/tm-alpha.h: Update copyright years.
4567 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
4568 (INNER_THAN): Use core_addr_lessthan.
4569 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
4570 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
4571 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
4572 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
4573 (FRAME_CHAIN): Remove unnecessary cast.
4574
4575 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4576
4577 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
4578 obsolete.
4579
4580 2002-01-18 Andrew Cagney <ac131313@redhat.com>
4581
4582 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
4583 * monitor.c, remote-array.c, remote-bug.c: Ditto.
4584 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
4585 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
4586 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
4587 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
4588 * x86-64-linux-nat.c: Ditto.
4589
4590 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4591
4592 * alpha-tdep.c (alpha_register_name): New function.
4593 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
4594 (REGISTER_NAME): Define.
4595
4596 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4597
4598 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
4599
4600 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4601
4602 * alpha-tdep.c: Update copyright years.
4603 (alpha_next_pc): New function.
4604 (alpha_software_single_step): Ditto.
4605 * config/alpha/tm-alpha.h: Add prototype for
4606 alpha_software_single_step.
4607
4608 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
4609
4610 * alphabsd-nat.c: Update copyright years.
4611 (fill_gregset): Use regcache_collect.
4612 (fill_fpregset): Likewise.
4613 (fetch_inferior_registers): Only fetch integer registers
4614 if requested to do so.
4615 (store_inferior_registers): Only store integer registers
4616 if requested to do so.
4617
4618 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4619
4620 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
4621 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
4622 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
4623 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
4624 * config/alpha/fbsd.mh (XDEPFILES): Delete.
4625 * config/arm/linux.mh (XDEPFILES): Delete.
4626 * config/arm/nbsd.mh (XDEPFILES): Delete.
4627 * config/i386/i386dgux.mh (XDEPFILES): Delete.
4628 * config/i386/i386sol2.mh (XDEPFILES): Delete.
4629 * config/i386/i386m3.mh (XDEPFILES): Delete.
4630 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
4631 * config/i386/i386gnu.mh (XDEPFILES): Delete.
4632 * config/i386/fbsd.mh (XDEPFILES): Delete.
4633 * config/i386/i386bsd.mh (XDEPFILES): Delete.
4634 * config/i386/i386sco5.mh (XDEPFILES): Delete.
4635 * config/i386/i386v4.mh (XDEPFILES): Delete.
4636 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
4637 * config/i386/i386sco4.mh (XDEPFILES): Delete.
4638 * config/i386/i386aix.mh (XDEPFILES): Delete.
4639 * config/i386/go32.mh (XDEPFILES): Delete.
4640 * config/i386/cygwin.mh (XDEPFILES): Delete.
4641 * config/i386/i386lynx.mh (XDEPFILES): Delete.
4642 * config/i386/i386mach.mh (XDEPFILES): Delete.
4643 * config/i386/i386v32.mh (XDEPFILES): Delete.
4644 * config/i386/linux.mh (XDEPFILES): Delete.
4645 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
4646 * config/i386/ncr3000.mh (XDEPFILES): Delete.
4647 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
4648 * config/i386/i386sco.mh (XDEPFILES): Delete.
4649 * config/i386/i386v.mh (XDEPFILES): Delete.
4650 * config/i386/nbsd.mh (XDEPFILES): Delete.
4651 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4652 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4653 * config/i386/symmetry.mh (XDEPFILES): Delete.
4654 * config/i386/obsd.mh (XDEPFILES): Delete.
4655 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4656 * config/ia64/linux.mh (XDEPFILES): Delete.
4657 * config/ia64/aix.mh (XDEPFILES): Delete.
4658 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4659 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4660 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4661 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4662 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4663 * config/m68k/linux.mh (XDEPFILES): Delete.
4664 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4665 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4666 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4667 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4668 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4669 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4670 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4671 * config/m88k/delta88.mh (XDEPFILES): Delete.
4672 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4673 * config/m88k/m88k.mh (XDEPFILES): Delete.
4674 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4675 * config/mips/linux.mh (XDEPFILES): Delete.
4676 * config/mips/irix6.mh (XDEPFILES): Delete.
4677 * config/mips/irix5.mh (XDEPFILES): Delete.
4678 * config/mips/irix4.mh (XDEPFILES): Delete.
4679 * config/mips/irix3.mh (XDEPFILES): Delete.
4680 * config/mips/decstation.mh (XDEPFILES): Delete.
4681 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4682 (NATDEPFILES): Move core-aout.o to here.
4683 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4684 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4685 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4686 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4687 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4688 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4689 * config/pa/hpux11.mh (XDEPFILES): Delete.
4690 * config/powerpc/aix.mh (XDEPFILES): Delete.
4691 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4692 * config/powerpc/linux.mh (XDEPFILES): Delete.
4693 * config/romp/rtbsd.mh: Rename XDEPFILES.
4694 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4695 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4696 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4697 * config/s390/s390.mh (XDEPFILES): Delete.
4698 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4699 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4700 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4701 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4702 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4703 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4704 * config/sparc/linux.mh (XDEPFILES): Delete.
4705 * config/vax/vaxult.mh (XDEPFILES): Delete.
4706 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4707 * Makefile.in (DEPFILES): Remove XDEPFILES.
4708
4709 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4710
4711 * utils.c (internal_verror): Fix comments, default is yes not no.
4712 Update queries to match. Default to quit and dump core.
4713
4714 2002-01-17 Andrew Cagney <ac131313@redhat.com>
4715
4716 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4717 copyright.
4718 * defs.h, event-top.c, gdbcmd.h: Ditto.
4719 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4720 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4721 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4722 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4723 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4724 * mi/mi-main.c:Ditto.
4725
4726 * stack.c, symfile.c: Update copyright.
4727
4728 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4729
4730 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4731 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4732 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4733 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
4734
4735 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
4736
4737 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4738 * gdbserver/low-lynx.c (myattach): Likewise.
4739 * gdbserver/low-nbsd.c (myattach): Likewise.
4740 * gdbserver/low-sim.c (myattach): Likewise.
4741 * gdbserver/low-sparc.c (myattach): Likewise.
4742 * gdbserver/low-sun3.c (myattach): Likewise.
4743
4744 * gdbserver/low-linux.c (myattach): New function.
4745
4746 * gdbserver/server.c (attach_inferior): New function.
4747 (main): Handle "--attach".
4748
4749 2002-01-16 Andrew Cagney <ac131313@redhat.com>
4750
4751 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4752 maintainer.
4753
4754 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
4755
4756 * c-typeprint.c (is_type_conversion_operator): Add additional
4757 check for non-conversion operators.
4758
4759 2002-01-15 Michael Snyder <msnyder@redhat.com>
4760
4761 * linux-proc.c: Add "info proc" command, a la procfs.c.
4762 (read_mapping): New function, abstract and re-use code.
4763 (linux_find_memory_regions): Use new func read_mapping.
4764 (linux_info_proc_cmd): New function, implement "info proc".
4765 (_initialize_linux_proc): Add new command "info proc".
4766
4767 2002-01-15 Michael Snyder <msnyder@redhat.com>
4768
4769 * symfile.c (generic_load): Use bfd_map_over_sections method
4770 instead of manipulating bfd structure members directly.
4771 (add_section_size_callback): New function, bfd sections callback
4772 used by generic_load.
4773 (load_sections_callback): New function, bfd sections callback
4774 used by generic_load.
4775
4776 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
4777
4778 [Based on work by Jim Blandy]
4779 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4780 (builtin_type_vec128): Export.
4781 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4782 types.
4783 (builtin_type_vec128): New builtin type for 128 bit vector
4784 registers.
4785 (build_gdbtypes): Initialize builtin_type_v16qi and
4786 builtin_type_v8hi. Create the vec128 register builtin type
4787 structure.
4788 (build_builtin_type_vec128): New function.
4789 (_initialize_gdbtypes): Register builtin_type_v16qi and
4790 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4791 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4792 AltiVec register to new builtin type.
4793
4794 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
4795
4796 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4797 to make_cv_type.
4798
4799 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4800
4801 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4802 CLEAN_UP_REGISTER_VALUE.
4803 * regcache.c (supply_register): Update only call.
4804
4805 2002-01-14 Andrew Cagney <ac131313@redhat.com>
4806
4807 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4808 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4809 a29k-*-vxworks* targets as obsolete.
4810
4811 2002-01-14 Michael Snyder <msnyder@redhat.com>
4812
4813 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4814 until we can resolve portability issues.
4815 * gregset.h: Remove references to fpxregs.
4816 * gcore.c (gcore_command): Initialize note_sec to NULL.
4817
4818 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4819
4820 * signals.c (target_signal_to_name): Rewrite. Only use
4821 signals[].name when in bounds and non-NULL.
4822
4823 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4824
4825 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4826 * signals.c (target_signal_to_name): Verify that SIG is within the
4827 bounds of the signals array.
4828
4829 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4830
4831 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4832
4833 2002-01-13 Keith Seitz <keiths@redhat.com>
4834
4835 * stack.c (print_frame_info_base): Print the frame's pc
4836 only if when print_frame_info_listing_hook is not defined.
4837
4838 2002-01-13 Keith Seitz <keiths@redhat.com>
4839
4840 * varobj.c (varobj_set_value): Make sure that there were no
4841 errors evaluating the object before attempting to set its
4842 value.
4843 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4844 so this offset adjustment is no longer necessary.
4845 (create_child): Don't set the error flag if the child is
4846 a CPLUS_FAKE_CHILD.
4847 (value_of_child): If value_fetch_lazy fails, return NULL
4848 so that callers will be notified that an error occurred.
4849 (c_value_of_variable): Delay check of variable's validity
4850 until later. We actually want all structs and unions to have
4851 the value "{...}".
4852 Do not return "???" for variables which could not be evaluated.
4853 This error condition must be returned to the caller so that it
4854 can get the error condition from gdb.
4855 (cplus_name_of_child): Adjust index for vptr before figuring
4856 out the name of the child.
4857 (cplus_value_of_child): If a child's (real) parent is not valid,
4858 don't even bother trying to give a value for it. Just return
4859 an error. Change all instances in this function.
4860 (cplus_type_of_child): If our parent is one of the "fake"
4861 parents, we need to get at the type of the real parent, and
4862 derive the child's true type using this information.
4863
4864 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4865
4866 From 2002-01-09 John Marshall <johnm@falch.net>:
4867 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4868 sources.redhat.com, and tweak some related URLs which had
4869 suffered from linkrot.
4870
4871 2002-01-13 Andrew Cagney <ac131313@redhat.com>
4872
4873 From Jeff law:
4874 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4875 structures passed in registers.
4876
4877 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4878
4879 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4880 white space which prevented compilation. Reported by DSK
4881 <dsk@student.unsw.edu.au>.
4882
4883 2002-01-11 Michael Snyder <msnyder@redhat.com>
4884
4885 * symfile.c (build_section_addr_info_from_section_tab):
4886 Use bfd access method instead of manipulating bfd directly.
4887 (syms_from_objfile): Ditto.
4888 (simple_overlay_update_1): Ditto.
4889 (simple_overlay_update): Ditto.
4890 (generic_load): Ditto.
4891 (overlay_unmapped_address): FIXME comment, bfd access methods.
4892 (sections_overlap): FIXME comment, bfd access methods.
4893 (pc_in_mapped_range): FIXME comment, bfd access methods.
4894 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4895 (section_is_mapped): FIXME comment, bfd access methods.
4896 (section_is_overlay): FIXME comment, bfd access methods.
4897
4898 * symfile.c (generic_load): Whitespace and long line cleanups.
4899 Remove duplicate variable, change several local variables to
4900 more appropriate data types.
4901 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4902
4903 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4904
4905 From Peter Schauer:
4906 * language.c (longest_local_hex_string_custom): Use phex_nz to
4907 convert NUM to a hex string.
4908
4909 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
4910
4911 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4912 the function.
4913 Update Copyright year.
4914
4915 2002-01-12 Andrew Cagney <ac131313@redhat.com>
4916
4917 * language.c (longest_raw_hex_string): Delete unused function.
4918
4919 2002-01-11 Petr Sorfa <petrs@caldera.com>
4920
4921 * MAINTAINERS (write-after-approval): Add myself.
4922 * dwarf2read.c (read_tag_string_type): Handling of
4923 DW_AT_byte_size.
4924 (read_tag_string_type): FORTRAN fix to prevent propagation of
4925 first string size.
4926 (set_cu_language): Handling of DW_LANG_Fortran95
4927
4928 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
4929
4930 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4931 GETPID(inferior_ptid).
4932 (store_inferior_registers): Likewise.
4933
4934 2002-01-10 Jason Merrill <jason@redhat.com>
4935
4936 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4937 Fix DW_OP_minus.
4938
4939 2002-01-10 Andrew Cagney <ac131313@redhat.com>
4940
4941 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4942 and bfd/elf32-sh-nbsd.c.
4943
4944 2002-01-10 Michael Snyder <msnyder@redhat.com>
4945
4946 * NEWS: Mention --pid and corefile/proc-id behavior change.
4947
4948 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4949 * gcore.c: Include cli/cli-decode.h instead of command.h.
4950
4951 * main.c (captured_main): Add new command line option "--pid".
4952 If the second command line argument (following the symbol-file)
4953 begins with a digit, try to attach to it before trying to open
4954 it as a corefile.
4955 (print_gdb_help): Document the "--pid" argument.
4956
4957 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4958
4959 * completer.c (command_completer): New function.
4960
4961 * completer.h <command_completer>: Add prototype.
4962
4963 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4964 completer for the "help" command.
4965
4966 2002-01-09 Jason Merrill <jason@redhat.com>
4967
4968 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4969
4970 2002-01-09 Michael Snyder <msnyder@redhat.com>
4971
4972 * i386-linux-nat.c (fill_fpxregset): Make global.
4973 (store_fpxregset): Ditto.
4974
4975 * gregset.h (gdb_fpxregset_t): Define.
4976 (supply_fpxregset): Prototype.
4977 (fill_fpxregset): Prototype.
4978
4979 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4980
4981 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4982
4983 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4984 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4985 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4986
4987 2002-01-09 Andrew Cagney <ac131313@redhat.com>
4988
4989 * MAINTAINERS: Update target maintainer rules so that any
4990 Maintainer can approve a tested patch for a maintenance-only
4991 target.
4992
4993 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
4994
4995 * MAINTAINERS (write-after-approval): Add myself.
4996
4997 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
4998 IN_SIGTRAMP.
4999
5000 2002-01-08 Michael Snyder <msnyder@redhat.com>
5001
5002 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
5003 real name of the executable, rather than the /proc name.
5004
5005 2002-01-03 Michael Snyder <msnyder@redhat.com>
5006
5007 Implement a "generate-core-file" command in gdb, save target state.
5008 * gcore.c: New file. Implement new command 'generate-core-file'.
5009 Save a corefile image of the current state of the inferior.
5010 * linux-proc.c: Add linux-specific code for saving corefiles.
5011 * target.h (struct target_ops): Add new target vectors for saving
5012 corefiles; to_find_memory_regions and to_make_corefile_notes.
5013 (target_find_memory_regions): New macro.
5014 (target_make_corefile_notes): New macro.
5015 * target.c (update_current_target): Inherit new target methods.
5016 (dummy_find_memory_regions): New place-holder method.
5017 (dummy_make_corefile_notes): New place-holder method.
5018 (init_dummy_target): Initialize new dummy target vectors.
5019 * exec.c (exec_set_find_memory_regions): New function.
5020 Allow the exec_ops vector for memory regions to be taken over.
5021 (exec_make_note_section): New function, target vector method.
5022 * defs.h (exec_set_find_memory_regions): Export prototype.
5023 * procfs.c (proc_find_memory_regions): New function, corefile method.
5024 (procfs_make_note_section): New function, corefile method.
5025 (init_procfs_ops): Set new target vector pointers.
5026 (find_memory_regions_callback): New function.
5027 (procfs_do_thread_registers): New function.
5028 (procfs_corefile_thread_callback): New function.
5029 * sol-thread.c (sol_find_memory_regions): New function.
5030 (sol_make_note_section): New function.
5031 (init_sol_thread_ops): Initialize new target vectors.
5032 * inftarg.c (inftarg_set_find_memory_regions): New function.
5033 Allow to_find_memory_regions vector to be taken over.
5034 (inftarg_set_make_corefile_notes): New function.
5035 Allow to_make_corefile_notes vector to be taken over.
5036 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
5037 interface layer if not target_has_execution (may be a corefile).
5038 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
5039 * config/sparc/sun4sol2.mh: Ditto.
5040 * config/alpha/alpha-linux.mh: Ditto.
5041 * config/arm/linux.mh: Ditto.
5042 * config/i386/x86-64linux.mh: Ditto.
5043 * config/ia64/linux.mh: Ditto.
5044 * config/m68k/linux.mh: Ditto.
5045 * config/mips/linux.mh: Ditto.
5046 * config/powerpc/linux.mh: Ditto.
5047 * config/sparc/linux.mh: Ditto.
5048
5049 2002-01-07 Michael Snyder <msnyder@redhat.com>
5050
5051 * arm-linux-nat.c: Remove references to regcache.c internal data
5052 (registers[] and register_valid[]).
5053
5054 2002-01-07 Michael Snyder <msnyder@redhat.com>
5055
5056 * linux-proc.c: New file. Implement child_pid_to_exec_file,
5057 so that attaching to a pid will automatically read the process's
5058 symbol file and shlibs.
5059 * Makefile.in: Add rule for linux-proc.o.
5060 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
5061 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
5062 * config/arm/linux.mh: Ditto.
5063 * config/i386/linux.mh: Ditto.
5064 * config/i386/x86-64linux.mh: Ditto.
5065 * config/ia64/linux.mh: Ditto.
5066 * config/m68k/linux.mh: Ditto.
5067 * config/mips/linux.mh: Ditto.
5068 * config/powerpc/linux.mh: Ditto.
5069 * config/sparc/linux.mh: Ditto.
5070
5071 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
5072
5073 * win32-nat.c: Add i386-tdep.h dependency.
5074
5075 2002-01-07 Michael Snyder <msnyder@redhat.com>
5076
5077 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
5078 instead of bfd_get_arch_size. Don't bail out just because
5079 there's no exec_bfd.
5080
5081 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
5082 * p-valprint.c (pascal_object_print_value): Ditto.
5083 * somread.c (som_symtab_read): Ditto.
5084 * symfile.c (simple_free_overlay_region_table): Ditto.
5085 * valops.c (value_assign): Ditto.
5086
5087 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
5088 use tilde_expand and strerror for opening save-tracepoints file.
5089
5090 * thread-db.c (thread_db_new_objfile): Indendation fix.
5091
5092 * infptrace.c (GDB_MAX_ALLOCA): New define.
5093 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
5094 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
5095 can be overridden with whatever value is appropriate to the host).
5096 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
5097 alloca to allocate potentially large buffer.
5098 * rs6000-nat.c (child_xfer_memory): Ditto.
5099 * symm-nat.c (child_xfer_memory): Ditto.
5100 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
5101
5102 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
5103
5104 From Nick Clifton <nickc@redhat.com>
5105 * d10v-tdep.c: Set STACK_START to 0x200bffe.
5106
5107 2002-01-07 Michael Snyder <msnyder@redhat.com>
5108
5109 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
5110 Don't use exec_bfd if it's NULL.
5111
5112 2002-01-06 Mark Kettenis <kettenis@gnu.org>
5113
5114 * valops.c (value_arg_coerce): Fix formatting.
5115
5116 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5117
5118 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
5119 * gnu-nat.c: Ditto.
5120
5121 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5122
5123 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
5124 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
5125 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
5126 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
5127 z8k-coff have not been multi-arched. Update z8k-coff build
5128 status.
5129
5130 2002-01-06 Andrew Cagney <ac131313@redhat.com>
5131
5132 * MAINTAINERS: Mark a29k target as obsolete.
5133 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
5134 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
5135 comments.
5136 * NEWS: Note that a29k targets are obsolete.
5137 * a29k-tdep.c: Mark as obsolete.
5138 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5139 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5140 a29k-*-vxworks* targets as obsolete.
5141 * remote-adapt.c: Obsolete.
5142 * remote-eb.c: Obsolete.
5143 * remote-mm.c: Obsolete.
5144 * remote-udi.c: Obsolete.
5145 * config/a29k/a29k-udi.mt: Obsolete.
5146 * config/a29k/a29k.mt: Obsolete.
5147 * config/a29k/tm-a29k.h: Obsolete.
5148 * config/a29k/tm-vx29k.h: Obsolete.
5149 * config/a29k/vx29k.mt: Obsolete.
5150
5151 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5152
5153 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
5154 with BFD_ENDIAN_BIG.
5155
5156 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5157
5158 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
5159 * configure, config.in: Re-generate.
5160 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
5161 * defs.h: Do not include <endian.h>.
5162
5163 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
5164
5165 * acconfig.h (HAVE_PT_GETXMMREGS): New.
5166 * config.in: Regenerate.
5167 * configure.in: Update copyright years.
5168 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
5169 * configure: Regenerate.
5170 * i386bsd-nat.c: Update copyright years.
5171 (fill_gregset): Use regcache_collect.
5172 (fetch_inferior_registers): Only fetch integer registers
5173 if requested to do so. Add support for XMM registers
5174 using PT_GETXMMREGS.
5175 (store_inferior_registers): Only store integer registers
5176 if requested to do so. Add support for XMM registers
5177 using PT_SETXMMREGS.
5178 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
5179 (store_inferior_registers): Remove.
5180 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
5181 (fetch_elfcore_registers): New function.
5182 (i386nbsd_elfcore_fns): New.
5183 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
5184 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
5185 i386bsd-nat.o.
5186 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5187 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
5188 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
5189 * config/i386/tm-nbsd.h: Update copyright years.
5190 (HAVE_SSE_REGS): Define.
5191 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
5192 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
5193 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
5194 (SIGCONTEXT_PC_OFFSET): Remove.
5195 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
5196
5197 2002-01-05 Andrew Cagney <ac131313@redhat.com>
5198
5199 * configure.tgt: Remove powerpc-*-macos* target.
5200 * config/m68k/xm-mpw.h: Delete file.
5201 * config/xm-mpw.h: Delete file.
5202 * ser-mac.c: Delete file.
5203 * mpw-make.sed: Delete file.
5204 * mpw-config.in: Delete file.
5205 * mac-xdep.c: Delete file.
5206 * mac-gdb.r: Delete file.
5207 * mac-defs.h: Delete file.
5208 * mac-nat.c: Delete file.
5209 * config/powerpc/macos.mh: Delete file.
5210 * config/powerpc/macos.mt: Delete file.
5211 * config/powerpc/nm-macos.h: Delete file.
5212 * config/powerpc/tm-macos.h: Delete file.
5213 * source.c (openp, open_source_file): Remove obsolete code.
5214 * top.c (gdb_readline): Ditto.
5215 * utils.c (query): Ditto.
5216 * event-top.c (display_gdb_prompt): Ditto.
5217 * Makefile.in (ser-mac.o): Delete obsolete target.
5218 * NEWS: Update.
5219
5220 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5221
5222 * defs.h (BIG_ENDIAN): Delete macro definition.
5223 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
5224 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
5225 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
5226 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
5227 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
5228 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
5229 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
5230 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
5231 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
5232 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
5233 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
5234 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
5235 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5236 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
5237 * gdbarch.c: Re-generate.
5238
5239 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5240
5241 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
5242 for core files.
5243
5244 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5245
5246 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
5247
5248 2002-01-04 Andrew Cagney <ac131313@redhat.com>
5249
5250 * value.h (value_ptr): Delete typedef.
5251
5252 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5253
5254 * i386nbsd-nat.c: Update copyright years.
5255 Include i386-tdep.h.
5256
5257 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
5258
5259 * stabsread.c: Update copyright years.
5260
5261 From Debashis Mahata <debashis.mahata@wipro.com>:
5262 (read_struct_fields): Deal with Sun C compiler erroneous stab
5263 output for structs and unions.
5264 Fix PR gdb/269.
5265
5266 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5267
5268 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
5269 prototype.
5270
5271 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5272
5273 * cp-abi.c: Fix whitespace.
5274 (baseclass_offset): New wrapper function.
5275 * cp-abi.h (baseclass_offset): Add prototype.
5276 (struct cp_abi_ops): Add baseclass_offset pointer.
5277
5278 * valops.c (vb_match): Move to...
5279 * gnu-v2-abi.c (vb_match): here.
5280 * valops.c (baseclass_offset): Move to...
5281 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
5282
5283 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
5284
5285 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
5286 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
5287 * hpacc-abi.c (init_hpacc_ops): Likewise.
5288
5289 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5290
5291 * valops.c (find_overload_match): Accept obj as a
5292 reference parameter. Update it before returning.
5293 * value.h (find_overload_match): Update prototype.
5294 * eval.c (evaluate_subexp_standard): Pass object to
5295 find_overload_match by reference.
5296
5297 2002-01-03 Andrew Cagney <ac131313@redhat.com>
5298
5299 * valarith.c: Replace value_ptr with struct value pointer. Remove
5300 register attribute from value declarations.
5301 * valops.c: Ditto.
5302 * value.h: Ditto.
5303 * scm-lang.c (scm_lookup_name): Ditto.
5304
5305 2002-01-03 Michael Snyder <msnyder@redhat.com>
5306
5307 Abstract the functionality of iterating over mapped memory
5308 regions into a general purpose iterator function.
5309 * procfs.c (iterate_over_mappings): New function, general purpose
5310 iterator for memory sections.
5311 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
5312 (solib_mappings_callback): New function, callback for above.
5313 (info_proc_mappings): Reimpliment using iterate_over_mappings.
5314 (info_mappings_callback): New function, callback for above.
5315
5316 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
5317
5318 2002-01-01 Mark Kettenis <kettenis@gnu.org>
5319
5320 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
5321 * i386-tdep.c: Include "elf-bfd.h".
5322 (process_note_abi_tag_sections): New function.
5323 (i386_gdbarch_init): Add code to recognize various OS/ABI
5324 combinations.
5325
5326 * maint.c (_initialize_maint_cmds): Add missing \ in
5327 string-literal.
5328
5329 For older changes see ChangeLog-2001
5330 \f
5331 Local Variables:
5332 mode: change-log
5333 left-margin: 8
5334 fill-column: 74
5335 version-control: never
5336 End: