1 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
6 2002-09-17 Andrew Cagney <ac131313@redhat.com>
8 * NEWS: Mention that MIPS $fp behavior changed.
9 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
10 reference to FP_REGNUM.
11 (mipsnbsd_cannot_store_register): Ditto.
12 * mips-linux-nat.c: Update copyright.
13 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
14 (mips_linux_cannot_store_register): Ditto.
15 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
16 * config/mips/tm-mips.h: Update copyright.
17 (FP_REGNUM): Delete macro.
18 (MIPS_REGISTER_NAMES): Replace "fp" with "".
19 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
20 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
21 (mips_r3041_reg_names, mips_r3051_reg_names)
22 (mips_r3081_reg_names): Replace "fp" with "".
25 2002-09-17 Theodore A. Roth <troth@verinet.com>
27 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
28 generic_read_register_dummy() (PR gdb/703).
29 (avr_push_return_address): #if 0 out unused vars.
30 (avr_gdbarch_init): Enable use of avr_push_return_address().
32 2002-09-17 Michael Snyder <msnyder@redhat.com>
34 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
35 RTE will take care of it.
37 2002-09-17 Andrew Cagney <ac131313@redhat.com>
39 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
40 invalid, return SP_REGNUM.
42 2002-09-17 Michael Snyder <msnyder@redhat.com>
44 * mips-tdep.c (mips_pop_frame): Read saved values of floating
45 point registers without sign extension.
47 2002-09-17 Andrew Cagney <cagney@redhat.com>
49 * blockframe.c (deprecated_read_register_dummy): Rename
50 generic_read_register_dummy.
51 * frame.c (frame_unwind_signed_register): New function.
52 (frame_unwind_unsigned_register): New function.
53 * frame.h (frame_unwind_signed_register): Declare.
54 (frame_unwind_unsigned_register): Declare.
55 (deprecated_read_register_dummy): Rename
56 generic_read_register_dummy.
58 * h8300-tdep.c (h8300_frame_chain): Update.
59 (h8300_frame_saved_pc): Update.
60 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
61 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
62 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
63 (s390_frame_chain): Update.
64 * v850-tdep.c (v850_find_callers_reg): Update.
65 (v850_frame_saved_pc): Update.
66 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
67 (m32r_find_callers_reg): Update.
68 (m32r_frame_saved_pc): Update.
69 * sh-tdep.c (sh_find_callers_reg): Update.
70 (sh64_get_saved_pr): Update.
71 (sh_init_extra_frame_info): Update.
72 (sh_init_extra_frame_info): Update.
73 (sh64_init_extra_frame_info): Update.
74 (sh64_init_extra_frame_info): Update.
75 * mcore-tdep.c (mcore_find_callers_reg): Update.
76 (mcore_frame_saved_pc): Update.
77 (mcore_init_extra_frame_info): Update.
78 * i386-tdep.c (i386_frame_saved_pc): Update.
79 * ia64-tdep.c (ia64_frame_saved_pc): Update.
80 (ia64_init_extra_frame_info): Update.
81 (ia64_init_extra_frame_info): Update.
82 * d10v-tdep.c (d10v_frame_saved_pc): Update.
83 * cris-tdep.c (cris_init_extra_frame_info): Update.
84 * avr-tdep.c (avr_frame_chain): Update.
85 (avr_init_extra_frame_info): Update.
86 (avr_frame_saved_pc): Update.
87 * arm-tdep.c (arm_find_callers_reg): Update.
88 (arm_init_extra_frame_info): Update.
89 (arm_frame_saved_pc): Update.
91 2002-09-17 Tom Tromey <tromey@redhat.com>
93 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
96 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
98 * MAINTAINERS: Remove "non multi-arched" text from h8300.
99 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
101 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
104 2002-09-16 Joel Brobecker <brobecker@gnat.com>
106 * osfsolib.c: Remove file, replaced by solib-osf.c.
107 * Makefile.in: Remove compilation rules for osfsolib.c.
109 2002-09-16 David Carlton <carlton@math.stanford.edu>
111 * cp-valprint.c (cp_print_class_method): Correct args to
112 check_stub_method_group.
114 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
116 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
117 `set architecture'. Unify naming convention of functions.
118 (h8300_skip_prologue): Improve prologue analysis.
119 (h8300_push_arguments): Rewritten to more closely match GCC's
120 bizarre argument-passing behavior, along with the comment describing
122 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
123 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
124 sim, remote-e7000.c, remote-hms.c and remote.c
126 2002-09-15 Mark Kettenis <kettenis@gnu.org>
128 * i386-tdep.c (gdb_print_insn_i386): Removed.
129 (i386_print_insn): New function.
130 (i386_gdbarch_init): Set print_insn to i386_print_insns.
131 (_initialize_i386_tdep): Don't initialize tm_print_insn and
134 2002-09-14 Mark Kettenis <kettenis@gnu.org>
136 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
139 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
141 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
142 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
143 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
145 2002-09-13 Christopher Faylor <cgf@redhat.com>
147 * win32-nat.c (child_create_inferior): Honor 'tty' command.
149 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
151 * gdbtypes.c (check_stub_method): Make static.
152 (check_stub_method_group): New function.
153 * gdbtypes.h: Update prototypes.
154 * cp-support.c: New file.
155 * cp-support.h: New file.
157 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
158 (update_method_name_from_physname): New function.
159 (read_member_functions): Correct method names for operators
160 and v3 constructors/destructors. Separate v2 constructors and
162 * Makefile.in (stabsread.o): Update dependencies.
163 (SFILES): Add cp-support.c.
164 (COMMON_OBS): Add cp-support.o.
165 (cp_support_h, cp-support.o): Add.
167 * cp-valprint.c (cp_print_class_method): Call
168 check_stub_method_group instead of check_stub_method. Remove
170 * p-valprint.c (pascal_object_print_class_method): Likewise.
171 * valops.c (search_struct_method): Likewise.
172 (find_method_list, value_struct_elt_for_reference): Likewise.
174 2002-09-13 Andrew Cagney <cagney@redhat.com>
176 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
177 * gdbarch.h, gdbarch.c: Regenerate.
179 2002-09-13 Andrew Cagney <ac131313@redhat.com>
181 * frame.c (find_saved_register): Delete function.
182 * frame.h (find_saved_register): Delete declaration.
185 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
187 * mips-tdep.c (read_next_frame_reg): Re-hack using
188 frame_register_unwind.
190 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
192 * mips-tdep.c (mips_get_saved_register): Re-hack using
193 frame_register_unwind.
195 2002-09-12 Joel Brobecker <brobecker@gnat.com>
197 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
198 vector. Will be useful for Interix.
199 * gdbarch.h, gdbarch.c: Regenerate.
201 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
202 name of the malloc function by NAME_OF_MALLOC.
204 2002-09-12 Joel Brobecker <brobecker@gnat.com>
206 * value.h (find_function_in_inferior): Add const keyword to
207 one of the parameters. Allows us to invoke this function with
209 * valops.c (find_function_in_inferior): Likewise.
211 2002-09-12 Joel Brobecker <brobecker@gnat.com>
213 * exec.c (xfer_memory): Fix compilation warning with old versions
215 * tracepoint.c (trace_find_tracepoint_command): Likewise.
217 2002-09-12 David Carlton <carlton@math.stanford.edu>
219 * symtab.h: Run through gdb_indent.h.
220 Add 2002 to Copyright year list.
222 2002-09-12 Alan Modra <amodra@bigpond.net.au>
224 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
226 * MAINTAINERS: Add myself to write after approval list.
228 2002-09-11 J. Brobecker <brobecker@gnat.com>
230 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
232 2002-09-11 J. Brobecker <brobecker@gnat.com>
234 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
237 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
239 * procfs.c (do_detach): Clear current signal, not just fault.
240 Corrects problem with breakpoint trap signal leaking to detached
243 2002-09-10 Michael Snyder <msnyder@redhat.com>
245 * buildsym.c (finish_block): Protect against null pointer.
247 2002-09-10 Andrew Cagney <cagney@redhat.com>
249 * infcmd.c (default_print_registers_info): Send all output to
250 ``file'' instead of ``gdb_stdout''.
252 2002-09-10 Michael Snyder <msnyder@redhat.com>
254 * mips-tdep.c (mips_extract_struct_value_address): Make val a
255 LONGEST, and use signed register read (addresses are sign-
258 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
260 * event-loop.c (gdb_do_one_event): Make public.
261 * event-loop.h (gdb_do_one_event): Declare.
263 2002-09-10 Jeff Law <law@redhat.com>
265 * infttrace.c (child_resume): Simplify and rework to avoid
268 2002-09-09 Fred Fish <fnf@intrinsity.com>
270 * printcmd.c (print_scalar_formatted): "len" is the number of
271 target bytes, NOT the number of target bits.
273 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
275 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
276 * top.c (init_main): Set rl_terminal_name.
278 2002-09-08 Aidan Skinner <aidan@velvet.net>
280 * ada-lang.c (ada_array_bound, ada_type_match,
281 _initialize_ada_language): Fix K&R definitions.
282 * ada-tasks.c (get_current_task): Fix K&R definitions.
283 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
285 2002-09-07 Christopher Faylor <cgf@redhat.com>
287 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
290 2002-09-06 Mark Kettenis <kettenis@gnu.org>
292 * i386-tdep.c (i386_register_virtual_type,
293 i386_register_convertible, i386_register_convert_to_virtual,
294 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
295 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
296 (i386_gdbarch_init): Fix comment. Add comments on calls that set
297 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
298 Don't set push_arguments twice.
300 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
301 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
302 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
303 sigtramp_end to NULL.
304 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
306 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
308 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
311 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
312 * gdbarch.h, gdbarch.c: Re-generate.
313 * blockframe.c (find_pc_sect_partial_function): Convert to use
314 SIGTRAMP_START_P predicate.
316 2002-09-05 Michael Snyder <msnyder@redhat.com>
318 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
319 generic_dummy_frame method and old method. Also distinguish
320 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
321 (arm_extract_return_value): Use new regcache method.
323 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
324 adjustment that doesn't conform to the ABI.
325 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
326 saved regcache, not from current regcache.
328 2002-09-05 Andrew Cagney <ac131313@redhat.com>
330 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
333 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
335 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
336 if arm_apcs_32 is false.
338 2002-09-04 Andrew Cagney <ac131313@redhat.com>
340 GDB 5.3 branch created.
342 2002-09-03 Theodore A. Roth <troth@verinet.com>
344 * gdb/avr-tdep.c (avr_gdbarch_init): Use
345 generic_unwind_get_saved_register.
347 2002-09-03 David Carlton <carlton@math.stanford.edu>
349 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
350 argument (PR gdb/653). Update call to smash_to_method_type.
351 (read_structure_scope): Update call to dwarf2_add_member_fn.
353 2002-09-03 Michal Ludvig <mludvig@suse.cz>
355 * x86-64-linux-tdep.c: Include gdb_string.h
356 * x86-64-linux-nat.c: Ditto.
358 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
360 * ada-exp.y (yyname, yyrule): Remap global variables that appear
361 when YYDEBUG is set to 1.
364 * jv-exp.y: Likewise.
365 * m2-exp.y: Likewise.
368 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
370 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
372 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
373 solib_svr4_fetch_link_map_offsets to
374 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
375 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
376 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
377 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
378 solib-svr4.o, and solib-legacy.o.
379 * config/i386/tm-nbsd.h: Include solib.h.
381 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
383 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
384 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
385 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
386 comment noting that this needs its own target configuration.
387 * config/i386/nbsd.mt: New file.
388 * config/i386/nbsdaout.mt: Remove.
389 * config/i386/nbsdelf.mt: Ditto.
390 * config/i386/tm-nbsdaout.h: Ditto.
392 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
394 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
395 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
396 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
398 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
399 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
400 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
402 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
404 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
405 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
406 * i386-tdep.h (i386bsd_init_abi): New prototype.
407 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
408 function declaration.
409 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
410 for NetBSD-a.out or NetBSD-ELF.
411 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
412 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
413 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
414 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
416 (i386nbsd_pc_in_sigtramp): New function.
417 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
418 i386nbsd_pc_in_sigtramp.
419 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
420 and i386nbsdelf_init_abi OS ABI handlers.
421 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
422 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
424 2002-09-02 Mark Kettenis <kettenis@gnu.org>
426 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
427 registers if the target really has them.
429 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
431 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
434 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
436 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
438 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
439 (alphanbsd_skip_sigtramp_frame): New functions.
440 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
441 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
442 to alphanbsd_sigcontext_addr.
444 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
446 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
448 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
449 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
451 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
452 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
453 * nbsd-tdep.c: Include gdb_string.h.
454 (nbsd_pc_in_sigtramp): New function.
455 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
456 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
457 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
458 ppcnbsd_pc_in_sigtramp.
459 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
460 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
461 shnbsd_pc_in_sigtramp.
462 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
463 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
464 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
466 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
468 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
470 (insert_breakpoints): set val field of watchpoints if NULL.
473 2002-08-29 Jim Blandy <jimb@redhat.com>
475 * symtab.c (lookup_symbol_aux): In the cases where we find a
476 minimal symbol of an appropriate name and use its address to
477 select a symtab to read and search, use `name' (as passed to us)
478 as the demangled name when searching the symtab's global and
479 static blocks, not the minsym's name.
481 2002-08-29 Keith Seitz <keiths@redhat.com>
483 * stack.c (print_frame_info_base): Always set current_source_symtab
484 and current_source_line.
486 2002-08-29 Donn Terry <donnte@microsoft.com>
488 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
490 2002-08-28 Keith Seitz <keiths@redhat.com>
492 * stack.c (select_frame): Add FIXME concerning selected-frame
494 (select_frame_command): Send selected-frame-level-changed
495 event notification, but only if the level actually changed.
496 (up_silently_base): Add selected-frame-level-changed event
498 (down_silently_base): Likewise.
500 2002-08-28 Andrew Cagney <ac131313@redhat.com>
502 * Makefile.in: Update dependencies for all gdb/*.c files.
504 2002-08-27 Tom Tromey <tromey@redhat.com>
506 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
507 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
509 * i387-tdep.c: Include gdb_string.h.
511 * i386-linux-nat.c: Likewise.
512 * lin-lwp.c: Likewise.
513 * ax-gdb.c: Likewise.
514 * signals/signals.c: Likewise.
515 * jv-valprint.c: Likewise.
516 * p-lang.c: Likewise.
517 * c-valprint.c: Likewise.
518 * cp-abi.c: Likewise.
520 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
522 * cli/cli-script.h (copy_command_lines): Export.
523 * breakpoint.c: Include cli/cli-script.h.
524 * Makefile.in (breakpoint.o): Update dependencies.
526 2002-08-26 Michael Snyder <msnyder@redhat.com>
528 * breakpoint.c (insert_breakpoints): Protect all references
529 to 'process_warning'. Shorten long lines.
531 2002-08-26 Joel Brobecker <brobecker@gnat.com>
533 * cli/cli-script.c (copy_command_lines): New function.
534 * defs.h (copy_command_lines): Export.
535 * testsuite/gdb.base/commands.exp: New tests for commands
536 attached to a temporary breakpoint, and for commands that
537 delete the breakpoint they are attached to.
539 2002-08-26 Michael Snyder <msnyder@redhat.com>
541 * breakpoint.c (bpstat_stop_status): Instead of copying the
542 pointer to the breakpoint commands struct, make a new copy
543 of the struct and point to that.
544 (bpstat_clear): Free the commands struct.
545 (bpstat_clear_actions): Free the commands struct.
546 (bpstat_do_actions): Free the command actions. Also execute
547 the local cleanups, instead of deleting them.
548 (delete_breakpoint): Leave the commands field of the bpstat
549 chain alone -- it will be freed later.
551 2002-08-26 Kevin Buettner <kevinb@redhat.com>
553 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
554 deleted in 2002-08-20 commit. This function is still used by
557 2002-08-26 Keith Seitz <keiths@redhat.com>
559 * gdb-events.sh: Add selected-frame-level-changed event.
560 * gdb-events.c: Regenerated.
561 * gdb-events.h: Regenerated.
563 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
566 * inflow.c (terminal_save_ours): New function to save terminal
568 * inferior.h (terminal_save_ours): Declare.
569 * target.c (debug_to_terminal_save_ours): New function.
570 (cleanup_target): Defaults to_terminal_save_ours.
571 (update_current_target): Inherit to_terminal_save_ours.
572 (setup_target_debug): Set to_terminal_save_ours.
573 * target.h (target_terminal_save_ours): New to save terminal settings.
574 (target_ops): New member to_terminal_save_ours.
575 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
576 * hpux-thread.c (init_hpux_thread_ops): Likewise.
577 * inftarg.c (init_child_ops): Likewise.
578 * m3-nat.c (init_m3_ops): Likewise.
579 * procfs.c (init_procfs_ops): Likewise.
580 * wince.c (init_child_ops): Likewise.
581 * win32-nat.c (init_child_ops): Likewise.
582 * sol-thread.c (init_sol_thread_ops): Likewise.
584 2002-08-26 Mark Kettenis <kettenis@gnu.org>
586 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
587 use regcache_* functions.
588 (i386_gdbarch_init): Set store_return_value instead of
589 deprecated_store_return_value.
591 * regcache.c (regcache_raw_write_signed,
592 regcache_raw_write_unsigned): New functions.
593 * regcache.h (regcache_raw_write_signed,
594 regcache_raw_write_unsigned): New prototypes.
596 2002-08-25 Andrew Cagney <ac131313@redhat.com>
598 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
599 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
600 source file dependencies. Cleanup corresponding generator rules.
602 2002-08-25 Andrew Cagney <ac131313@redhat.com>
604 * regcache.h (register_offset_hack): Declare.
605 (regcache_cooked_read_using_offset_hack): Declare.
606 (regcache_cooked_write_using_offset_hack): Declare.
608 * regcache.c (register_offset_hack): New function.
609 (regcache_cooked_read_using_offset_hack): New function.
610 (regcache_cooked_write_using_offset_hack): New function.
611 (regcache_dump): Check that the registers, according to their
612 offset, are packed hard against each other.
613 (cooked_xfer_using_offset_hack): New function.
615 2002-08-25 Andrew Cagney <ac131313@redhat.com>
617 * regcache.c (struct regcache_descr): Add field register_type.
618 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
620 (init_regcache_descr): Initialize register_type. Pass the descr
621 to init_legacy_regcache_descr. Use register_type instead of
622 REGISTER_VIRTUAL_TYPE.
623 (register_type): New function.
624 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
625 * regcache.h (register_type): Declare.
627 2002-08-25 Andrew Cagney <ac131313@redhat.com>
629 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
630 instead of deprecated_store_return_value. Fix fallout from
631 2002-08-23 Andrew Cagney <cagney@redhat.com>.
633 2002-08-25 Andrew Cagney <ac131313@redhat.com>
635 * regcache.c (max_register_size): New function.
636 (init_legacy_regcache_descr): Ensure that max_register_size is
637 large enough for REGISTER_VIRTUAL_SIZE.
638 * regcache.h (max_register_size): Declare.
640 2002-08-24 Andrew Cagney <ac131313@redhat.com>
642 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
644 (e500_extract_return_value): Change type of valbuf pointer to
647 2002-08-24 Mark Kettenis <kettenis@gnu.org>
649 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
652 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
653 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
654 long long) to prevent compiler warning on 64-bit systems.
656 2002-08-23 Andrew Cagney <cagney@redhat.com>
658 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
659 (DEPRECATED_STORE_RETURN_VALUE): New method.
660 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
661 * gdbarch.h, gdbarch.c: Re-generate.
663 * values.c (set_return_value): Pass current_regcache to
665 * arch-utils.h (legacy_store_return_value): Declare.
666 * arch-utils.c (legacy_store_return_value): New function.
667 (legacy_extract_return_value): Update parameters.
669 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
671 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
672 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
673 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
674 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
675 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
676 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
677 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
678 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
679 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
680 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
683 * i386-tdep.c (i386_extract_return_value): Update.
684 * arch-utils.c (legacy_extract_return_value): Update.
685 * frv-tdep.c (frv_gdbarch_init): Update.
686 * cris-tdep.c (cris_gdbarch_init): Update.
687 * d10v-tdep.c (d10v_gdbarch_init): Update.
688 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
689 * m68k-tdep.c (m68k_gdbarch_init): Update.
690 * mcore-tdep.c (mcore_gdbarch_init): Update.
691 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
692 * s390-tdep.c (s390_gdbarch_init): Update.
693 * sparc-tdep.c (sparc_gdbarch_init): Update.
694 * sh-tdep.c (sh_gdbarch_init): Update.
695 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
696 * v850-tdep.c (v850_gdbarch_init): Update.
697 * avr-tdep.c (avr_gdbarch_init): Update.
698 * ia64-tdep.c (ia64_gdbarch_init): Update.
699 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
700 * vax-tdep.c (vax_gdbarch_init): Update.
701 * alpha-tdep.c (alpha_gdbarch_init): Update.
702 * arm-tdep.c (arm_gdbarch_init): Update.
703 * mips-tdep.c (mips_gdbarch_init): Update.
704 * i386-tdep.c (i386_gdbarch_init): Update.
706 2002-08-23 Andrew Cagney <ac131313@redhat.com>
708 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
709 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
711 2002-08-24 Mark Kettenis <kettenis@gnu.org>
713 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
716 2002-08-23 Joel Brobecker <brobecker@gnat.com>
718 * infrun.c (handle_inferior_event): Move a comment outside of a
719 function call, in order to avoid indent reformatting this part
720 of the code in an unreadable way.
722 2002-08-23 Grace Sainsbury <graces@redhat.com>
724 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
725 when breakpoints fail. Move general breakpoint error messages to
727 * breakpoint.c (insert_breakpoints): Change warnings when
728 breakpoints are nto inserted to specify the type. Remove call to
729 memory_error when hardware breakpoints can't be inserted. Remove
730 multiple calls to warning so all messages are sent to the user at
732 (delete_breakpoints): Make insert error messsages more explicit.
734 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
736 * ChangeLog: Move gdbserver entries after GDB 5.2 to
739 2002-08-23 Mark Kettenis <kettenis@gnu.org>
741 * i386-tdep.c: Include "objfiles.h".
742 (i386_svr4_init_abi): Set in_solib_call_trampoline and
743 skip_trampoline_code.
744 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
745 (CPLUS_MARKER): Define to '.'.
747 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
749 (linux_corefile_thread_callback): Increase args->num_notes.
750 (linux_make_note_section): Initialize thread_args.num_notes, and
751 use it to determine whether notes for any threads were created.
753 2002-08-23 Donn Terry <donnte@microsoft.com>
755 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
756 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
758 (write_with_trace): Conditionalize out the switch branch handling
759 PCSHOLD if the corresponding macro is not defined. Likewise for
761 This change will be needed by the Interix port.
763 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
765 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
766 write_register wherever possible instead of manipulating the
767 register bytes directly.
768 Assign VALUE_CONTENTS to a variable and use that.
769 The GPR numbers are now dependent on the architecture.
771 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
773 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
775 (skip_prologue): Add support for BookE/e500 instructions.
776 (e500_extract_return_value): New function.
777 (frame_get_saved_regs): Add support for saving ev registers and
779 (e500_store_return_value): New function.
780 (rs6000_gdbarch_init): Move up default intializations of
781 deprecated_extract_return_value and store_return_value. Overwrite
782 init of store_return_value with e500 specific version.
783 Set extract_return_value for e500.
785 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
787 * blockframe.c (generic_call_dummy_register_unwind): Use
788 regcache_cooked_read to catch cases in which the variable is
789 stored in a pseudo register.
791 2002-08-22 Andrew Cagney <cagney@redhat.com>
793 * NEWS: Mention that the i960 has been made obsolete.
794 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
796 (remote-nrom.o): Obsolete target.
797 (remote-nindy.o, i960-tdep.o): Ditto.
798 * remote-nrom.c: Make file obsolete.
799 * remote-nindy.c, remote-vx960.c: Ditto.
800 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
801 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
802 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
803 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
804 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
805 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
806 i960-*-vxworks* obsolete.
807 * MAINTAINERS: Note that the i960 is obsolete.
809 2002-08-21 Corinna Vinschen <vinschen@redhat.com
811 * aix-thread.c (aix_thread_detach): Disable thread debugging on
812 detach to allow reinitialization.
814 2002-08-22 Andrew Cagney <ac131313@redhat.com>
816 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
819 2002-08-22 Jim Blandy <jimb@redhat.com>
821 * coffread.c (coff_symfile_read): Don't try to read the line
822 number table from disk if the image file doesn't have a symbol
823 table; we'll never actually look at the info anyway, and Windows
824 ships DLL's with bogus file offsets for the line number data.
826 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
828 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
831 2002-08-21 Michael Snyder <msnyder@redhat.com>
833 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
834 (MSYMBOL_SIZE): Replace macro with function.
835 (DEFAULT_MIPS_TYPE): Delete unused macro.
836 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
837 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
839 2002-08-21 Jim Blandy <jimb@redhat.com>
841 * valops.c (value_cast): Simplify and correct logic for doing a
842 static cast from a pointer to a base class to a pointer to a
845 2002-08-21 Andrew Cagney <ac131313@redhat.com>
847 * infcmd.c (default_print_registers_info): Replace
849 (registers_info): Use gdbarch_print_registers_info instead of
851 * inferior.h (default_print_registers_info): Replace
853 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
854 (DO_REGISTERS_INFO): Change to a predicate function.
855 * gdbarch.h, gdbarch.c: Regenerate.
857 2002-08-21 Keith Seitz <keiths@redhat.com>
859 * gdb-events.sh: Add target-changed event.
860 * gdb-events.c: Regenerated.
861 * gdb-events.c: Regenerated.
862 * valops.c (value_assign): Add target-changed event notification
863 to inlval_register, lval_memory, and lval_reg_frame_relative.
865 2002-08-21 Joel Brobecker <brobecker@gnat.com>
867 * NEWS: Add an entry regarding the improvement of the next/step
868 operation on Alpha Tru64 multi-processor machines.
870 2002-08-21 Andrew Cagney <ac131313@redhat.com>
872 * Makefile.in: Update dependencies for mi/ cli/ and tui/
874 * Makefile.in: Update all _h macro definitions.
875 * Makefile.in (install-gdbtk): Move to install section.
876 (rdi-share/libangsd.a): Move to end of file.
878 2002-08-19 Andrew Cagney <ac131313@redhat.com>
880 * frame.c (frame_register_unwind): When a register, set addrp to
883 2002-08-20 Michael Snyder <msnyder@redhat.com>
885 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
886 used locally, so move them from the target machine header to here.
887 (mips_set_processor_type, mips_register_name, mips32_next_pc,
888 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
890 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
892 2002-08-20 Andrew Cagney <cagney@redhat.com>
894 * NEWS: Mention that the Apollo line was made obsolete.
895 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
896 m68*-hp-hpux* obsolete.
897 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
898 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
899 * buildsym.c (make_blockvector): Make static.
900 * buildsym.h (make_blockvector): Make extern declaration obsolete.
901 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
902 (ALLDEPFILES): Remove dstread.c.
903 (dstread.o): Obsolete make rule.
904 * dstread.c: Makefile obsolete.
906 * config/m68k/hp300hpux.mt: Ditto.
907 * config/m68k/hp300hpux.mh: Ditto.
908 * config/m68k/hp300bsd.mt: Ditto.
909 * config/m68k/hp300bsd.mh: Ditto.
910 * config/m68k/apollo68b.mt: Ditto.
911 * config/m68k/apollo68v.mh: Ditto.
912 * config/m68k/apollo68b.mh: Ditto.
914 2002-08-20 Michael Snyder <msnyder@redhat.com>
916 * mips-tdep.c (mips_in_return_stub): Make static.
917 (mips_gdbarch_init): Set in_solib_return_trampoline.
918 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
920 2002-08-20 Michael Snyder <msnyder@redhat.com>
922 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
923 * gdbarch.c, gdbarch.h: Regenerate.
924 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
926 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
928 2002-08-20 Michael Snyder <msnyder@redhat.com>
930 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
931 (mips_gdbarch_init): Set skip_trampoline_code,
932 in_solib_call_trampoline.
933 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
934 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
936 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
938 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
940 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
941 vector type for ev registers.
942 (e500_pseudo_register_read): New function.
943 (e500_pseudo_register_write): New function.
944 (e500_dwarf2_reg_to_regnum): New function.
945 (PPC_UISA_NOFP_SPRS): New macro.
946 (PPC_EV_REGS): New macro.
947 (PPC_GPRS_PSEUDO_REGS): New macro.
948 (registers_e500): New register set for e500.
949 (variants): Add e500 variant.
950 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
951 before setting architectural dependent variations. Initialize ev
952 registers numbers. Add case for e500 architecture. Set the
953 number of pseudo registers.
955 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
957 * rs6000-tdep.c: Clean up comments.
959 2002-08-20 Andrew Cagney <cagney@redhat.com>
961 * h8300-tdep.c: Re-indent file.
963 2002-08-20 Jim Blandy <jimb@redhat.com>
965 * Makefile.in (LDFLAGS): Allow the configure script to establish a
968 2002-08-20 Keith Seitz <keiths@redhat.com>
970 * breakpoints.c (watch_command_1): Use internal breakpoint
971 when setting a watchpoint_scope breakpoint.
973 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
975 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
976 (build_builtin_type_vec64i): Ditto.
977 (build_builtin_type_vec128): Ditto.
978 (build_builtin_type_vec128i): Ditto.
980 2002-08-19 Michael Snyder <msnyder@redhat.com>
982 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
983 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
984 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
985 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
986 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
987 CALL_DUMMY_ADDRESS): Delete.
988 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
989 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
990 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
991 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
993 (mips_register_raw_size, mips_eabi_use_struct_convention,
994 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
995 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
996 mips_init_extra_frame_info, mips_eabi_push_arguments,
997 mips_n32n64_push_arguments, mips_push_return_address,
998 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
999 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
1001 2002-08-19 Michael Snyder <msnyder@redhat.com>
1003 * mips-tdep.c (mips_frame_num_args): New function.
1004 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
1005 frame_saved_pc, frame_args_address, frame_locals_address,
1006 frame_num_args, and frame_args_skip.
1007 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
1008 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
1009 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
1010 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
1012 2002-08-20 Michael Snyder <msnyder@redhat.com>
1014 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
1015 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
1016 * mips-tdep.c (mips_store_struct_return): New function.
1017 (mips_extract_struct_value_address): New function.
1018 (mips_gdbarch_init): Set store_struct_return and
1019 extract_struct_value_address.
1021 2002-08-20 David Carlton <carlton@math.stanford.edu>
1023 * dwarf2read.c (dwarf2_build_psymtabs): Check that
1024 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
1025 (read_file_scope): Check that line_header is nonzero before
1026 decoding macro information.
1028 2002-08-20 Mark Kettenis <kettenis@gnu.org>
1030 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
1031 flag the general-purpose registers as floating-point on targets
1032 that don't support the floating-point registers.
1034 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1036 * rs6000-tdep.c (altivec_register_p): Delete.
1037 (rs6000_do_altivec_registers): Delete.
1038 (rs6000_altivec_registers_info): Delete.
1039 (rs6000_do_registers_info): Delete.
1040 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
1041 (rs6000_gdbarch_init): Remove setting of do_registers_info.
1043 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
1045 * infcmd.c (do_registers_info): Print vector registers in hex
1047 (print_vector_info): Check that printing registers
1049 (print_float_info): Ditto.
1051 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1053 * mips-tdep.c (mips_gdbarch_init): Update.
1054 (mips_o32_extract_return_value): Rewrite.
1055 (mips_o32_store_return_value): Rewrite.
1056 (mips_o32_xfer_return_value): New function.
1057 (mips_xfer_register): Tweak debug print message. Allow for
1058 buf_offset when dumping the value transfered.
1060 2002-08-20 Andrew Cagney <ac131313@redhat.com>
1062 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
1063 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
1064 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
1065 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
1066 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
1068 2002-08-14 Michael Snyder <msnyder@redhat.com>
1070 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
1072 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1074 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
1076 (P): New macro to define a register as a pseudo register.
1077 (R, R4, R8, R16, FR32, R64, R0): Updated.
1078 (struct variant): Add new fields for number of pseudo registers
1079 and number of total registers.
1080 (tot_num_registers): New macro replacing....
1081 (num_registers): ...deleted macro.
1082 (num_registers): New function.
1083 (num_pseudo_registers): New function.
1084 (variants): Update all variants to intialize new fields correctly.
1085 Postpone initialization of number of pseudo regs and real regs.
1086 (init_variants): New function.
1087 (rs6000_gdbarch_init): Initialize variants. Update calculation of
1090 2002-08-19 David Carlton <carlton@math.stanford.edu>
1092 * valops.c (search_struct_field): Change error message to treat
1093 return value of 0 from value_static_field as meaning that field is
1095 (value_struct_elt_for_reference): Ditto.
1096 * values.c (value_static_field): Treat an unresolved location the
1097 same as a nonexistent symbol. Fix PR gdb/635.
1098 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
1099 enclosed. Fix PR gdb/574.
1100 * MAINTAINERS: Add self to Write After Approval list.
1102 2002-08-19 Andrew Cagney <ac131313@redhat.com>
1104 * mips-tdep.c (mips_xfer_register): New function.
1105 (mips_n32n64_extract_return_value): Rewrite.
1106 (mips_gdbarch_init): For N32 and N64, set extract_return_value
1107 instead of deprecated_extract_return_value.
1109 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
1111 * rs6000-tdep.c (TDEP): Delete macro.
1112 (branch_dest): Replace use of TDEP macro with its body.
1113 (rs6000_pop_frame): Ditto.
1114 (rs6000_push_arguments): Ditto.
1115 (rs6000_skip_trampoline_code): Ditto.
1116 (rs6000_frame_saved_pc): Ditto.
1117 (rs6000_frame_chain): Ditto.
1118 (rs6000_register_name): Ditto.
1119 (rs6000_register_byte): Ditto.
1120 (rs6000_register_raw_size): Ditto.
1121 (rs6000_register_virtual_type): Ditto.
1122 (rs6000_register_convertible): Ditto.
1123 (rs6000_convert_from_func_ptr_addr): Ditto.
1125 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
1127 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
1129 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
1130 MIPS_LINUX_JB_ELEMENT_SIZE.
1131 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
1132 for MAX_REGISTER_RAW_SIZE arrays.
1133 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
1134 MIPS_LINUX_JB_ELEMENT_SIZE.
1136 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
1138 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
1140 2002-08-19 Aidan Skinner <aidan@velvet.net>
1142 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
1143 ada-valprint.c ada-tasks.c.
1144 (YYFILES): Add ada-exp.y.
1145 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
1146 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
1147 (ada-exp.tab.o): New target.
1149 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1151 * regcache.c (regcache_xfer_part): New function.
1152 (regcache_raw_read_part): New function.
1153 (regcache_raw_write_part): New function.
1154 (regcache_cooked_read_part): New function.
1155 (regcache_cooked_write_part): New function.
1156 * regcache.h (regcache_raw_read_part): Declare.
1157 (regcache_raw_write_part): Declare.
1158 (regcache_cooked_read_part): Declare.
1159 (regcache_cooked_write_part): Declare.
1161 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
1163 * remote.c (remote_open_1): Add async_p.
1164 (remote_async_open_1): Delete.
1165 (open_remote_target): Delete.
1166 (remote_open, extended_remote_open): Update calls to remote_open_1.
1167 (remote_async_open, extended_remote_async_open): Call
1168 remote_open_1 instead of remote_async_open_1.
1170 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1172 * blockframe.c: Fix a few coding standard violations.
1174 2002-08-19 Mark Kettenis <kettenis@gnu.org>
1176 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
1178 * config/i386/tm-i386sco5.h: ... here. File removed.
1179 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
1181 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
1182 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
1183 (TM_FILE): Set to tm-i386.h.
1184 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
1185 * config/i386/tm-i386v.h: Remove file.
1186 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
1187 instead of "i386/tm-i386v.h".
1188 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1189 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
1191 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
1192 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
1195 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1197 * config/i386/nm-i386v.h: Add protection against
1199 (i386_register_u_addr): Remove prototype.
1200 (register_u_addr): New prototype.
1201 (REGISTER_U_ADDR): Redefine accordingly.
1202 * i386v-nat.c: Improve several comments.
1203 (i386_register_u_addr): Change signature and rename to
1204 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
1207 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1209 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1210 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1211 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1212 deprecated_extract_return_value.
1213 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1214 rename mips_o32o64_push_arguments.
1215 (mips_gdbarch_init): Update.
1216 (mips_extract_return_value): Delete.
1217 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1218 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1219 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1220 (mips_n32n64_extract_return_value): Clone
1221 mips_extract_return_value.
1222 (mips_store_return_value): Delete.
1223 (mips_o32_store_return_value): Clone mips_store_return_value.
1224 (mips_o64_store_return_value): Clone mips_store_return_value.
1225 (mips_eabi_store_return_value): Clone mips_store_return_value.
1226 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1228 2002-08-18 Aidan Skinner <aidan@velvet.net>
1230 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1231 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1233 2002-08-18 Aidan Skinner <aidan@velvet.net>
1235 * ada-lang.c: Run through gdb_indent.sh.
1236 * ada-lang.h: Run through gdb_indent.sh.
1237 * ada-tasks.c: Run through gdb_indent.sh.
1238 * ada-typeprint.c: Run through gdb_indent.sh.
1239 * ada-valprint.c: Run through gdb_indent.sh.
1241 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1243 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1246 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1248 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1250 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1251 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1253 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1254 write_register_gen instead of write_register_bytes.
1256 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1257 i[3456]-*-osf1mk* configurations have been made obsolete.
1258 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1259 i[3456]86-*-osf1mk* hosts obsolete.
1260 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1262 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1263 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1264 config/i386/i386m3.mt, config/i386/nm-m3.h,
1265 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1266 config/i386/i386mk.mh, config/i386/i386mk.mt,
1267 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1269 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1270 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1271 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1273 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1275 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1276 (hppa_value_returned_from_stack): Declare.
1277 (hppa_extract_return_value): Declare.
1278 * config/pa/hppa.mt: New file.
1279 * configure.tgt: Recognize hppa*-*-*.
1280 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1282 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1284 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1287 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1289 * top.c (gdb_rl_operate_and_get_next): Make sure
1290 operate-and-get-next functions correctly even when the history
1291 list is completely filled.
1293 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1295 * MAINTAINERS (Target Instruction Set Architectures): Rename
1296 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1297 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1298 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1299 already listed under Host/Native.
1301 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1302 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1305 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1307 * config/ia64/ia64.mt: New file.
1308 * config/alpha/alpha.mt: New file.
1309 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1310 ia64-linux-gnu. Mention that ia64-elf is broken.
1311 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1313 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1315 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1316 generic_func_frame_valid instead of func_frame_valid.
1318 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1320 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1321 procfs appears to be broken when debugging on multi-processor
1322 machines. So enable software single stepping in order to avoid
1323 using the procfs interface to do next/step operations, using
1324 internal breakpoints instead.
1326 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1327 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1328 make this pc address equal to the value it would have if the
1329 system stepping capability was used. Also set a new flag used
1330 to ensure that we don't readjust the PC one more time later.
1332 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1333 address by DECR_PC_AFTER_BREAK when software single step is
1334 in use for this architecture, as this has already been taken
1335 care of in handle_inferior_event().
1337 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1339 * infrun.c (handle_inferior_event): Minor reformatting, to make
1340 a rather long condition expression easier to read.
1342 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1344 * Makefile.in (gdbtk.o): Move to end of file.
1345 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1346 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1347 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1348 (gdbtk-wrapper.o, gdbres.o): Ditto.
1350 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1352 * Makefile.in (copying.o): Separate out compile rule.
1353 (hpux-thread.o, procfs.o, signals.o): Ditto.
1354 (v850ice.o, z8k-tdep.o): Ditto.
1355 (tui-file.o): Move to TUI section.
1356 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1357 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1359 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1361 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1362 skip_trampoline_code, for better namespace-proofing.
1364 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1366 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1368 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1370 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1372 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1373 signal, check whether we hit a breakpoint before checking for a
1374 single step breakpoint. Otherwise, GDB fails to notice that a
1375 breakpoint has been hit when stepping onto a breakpoint.
1377 2002-08-16 Keith Seitz <keiths@redhat.com>
1379 * gdb-events.sh (clear_gdb_event_hooks): New function.
1380 * gdb-events.c: Regenerate.
1381 * gdb-events.h: Regenerate.
1383 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1385 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1386 not_a_sw_breakpoint.
1387 * breakpoint.h (bpstat_stop_status): Add parameter names.
1389 2002-08-16 Grace Sainsbury <graces@redhat.com>
1391 * remote.c (remote_insert_hw_breakpoint)
1392 (remote_remove_hw_breakpoint): Fix calculation of length field
1395 2002-08-15 Michael Snyder <msnyder@redhat.com>
1397 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1398 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1399 (supply_fpregset): Ditto.
1401 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1402 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1403 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1404 (TARGET_READ_SP): Delete.
1405 (DO_REGISTERS_INFO): Delete.
1406 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1408 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1409 from macros to functions.
1411 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1412 (mips_register_convertible, mips_register_convert_to_virtual,
1413 mips_register_convert_to_raw): Make static.
1414 (mips_read_sp): New function.
1415 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1416 (mips_do_registers_info): Make static.
1417 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1418 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1419 (mips_register_convert_from_type, mips_register_convert_to_type):
1421 (mips_gdbarch_init): Set up function_start_offset,
1422 register_virtual_size, pc_in_sigtramp.
1424 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1426 * infcmd.c (vector_info): New function.
1427 (_initialize_infcmd): Add command "info vector".
1428 (print_vector_info): New function.
1430 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1431 * gdbarch.h, gdbarch.c: Regenerate.
1433 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1435 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1436 ``print_all''. Only print vector registers when ``print_all''.
1438 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1440 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1441 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1443 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1444 Add `args' parameter.
1445 * gdbarch.h, gdbarch.c: Regenerate.
1447 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1449 * infcmd.c (float_info): Call print_float_info.
1450 (print_float_info): New function. By default, print the
1451 floating-point registers.
1453 * arch-utils.h (default_print_float_info): Delete declaration.
1454 * arch-utils.c (default_print_float_info): Delete function.
1456 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1458 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1461 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1464 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1465 * configure.host: Make i[3456]86-*-aix host obsolete.
1466 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1467 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1468 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1469 config/i386/xm-i386aix.h: Make files obsolete.
1470 * i386aix-nat.c: Make file obsolete.
1471 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1472 (i386aix-nat.o): Make target obsolete.
1474 * config/i386/nm-gnu.h: Removed.
1475 * config/i386/nm-i386gnu.h: New file.
1476 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1477 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1479 * config/i386/tm-i386gnu.h: ... here. Removed.
1480 * config/i386/xm-i386gnu.h: Removed.
1481 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1482 (NAT_FILE): Set to nm-i386gnu.h.
1483 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1484 * i386-tdep.c: New file.
1485 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1486 (i386gnu-tdep.o): Specify dependencies.
1488 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1490 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1491 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1492 Adjust a few comments to reflect reality a bit closer.
1493 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1494 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1495 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1496 target_insert_watchpoint, target_remove_watchpoint):
1498 * config/i386/nm-i386sco5.h: ... here.
1499 (kernel_u_size): Add prototype. Improve a few comments and add
1500 protection against multiple inclusion.
1502 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1505 * uw-thread.c (SP_ARG0): Define if not already defined.
1506 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1508 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1510 * config/i386/tm-i386.h: Don't include "regcache.h".
1512 * i387-tdep.h (i387_print_float_info): New prototype.
1513 * i387-tdep.c (print_i387_value, print_i387_ext,
1514 print_i387_status_word, print_i387_control_word): Add `struct
1515 ui_file *' argument and use it for output.
1516 (i387_print_float_info): Renamed from i387_float_info. Add
1517 `struct gdbarch *' and `struct ui_file *' arguments and use the
1519 * i386-tdep.c: Include "i387-tdep.h".
1520 (i386_gdbarch_init): Set print_float_info.
1521 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1522 (FLOAT_INFO): Remove define.
1524 2002-08-13 Michael Snyder <msnyder@redhat.com>
1526 * mips-tdep.c (mips_push_arguments): Rename to
1527 mips_eabi_push_arguments, and tune for EABI.
1528 (MIPS_REGS_HAVE_HOME_P): Delete.
1529 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1530 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1531 Delete references to mips_regs_have_home_p.
1533 2002-08-14 Keith Seitz <keiths@redhat.com>
1535 * Makefile.in (install-gdbtk): Create insight plugin directory.
1536 Install plugins.tcl file.
1538 2002-08-14 Keith Seitz <keiths@redhat.com>
1540 * configure.in: Move SUBDIRS to near top of the file so that
1541 --enable options may add things to it.
1542 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1543 * configure: Regenerate.
1545 2002-08-13 Michael Snyder <msnyder@redhat.com>
1547 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1548 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1549 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1551 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1553 * vax-tdep.c (vax_get_saved_register): Delete function.
1554 (vax_gdbarch_init): Update.
1555 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1556 (ns32k_gdbarch_init): Update.
1557 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1558 (alpha_gdbarch_init): Update.
1560 2002-08-13 Andrew Cagney <cagney@redhat.com>
1562 * regcache.c (init_regcache_descr): Overallocate the
1563 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1564 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1566 (set_register_cached): Add range checking assertions. Use
1569 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1571 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1572 numbers for MMX registers.
1574 2002-08-13 Andrew Cagney <cagney@redhat.com>
1576 * i386-tdep.c (i386_gdbarch_init): Use
1577 generic_unwind_get_saved_register.
1579 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1581 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1582 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1584 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1585 Delete. Add comment regarding this now-deleted target method.
1587 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1589 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1590 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1591 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1592 real PC and the page number (if it's within the memory bank window).
1593 (m68hc11_pseudo_register_write): Likewise when saving.
1594 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1595 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1596 (m68hc11_register_raw_size): And use 32-bit for it.
1597 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1598 16K memory bank is used by the prog; also use the virtual pc.
1600 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1602 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1603 (m68hc11_gdbarch_init): Install it in gdbarch.
1604 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1605 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1606 (MSYMBOL_SIZE): New for documentation.
1607 (insn_return_kind): Enum to specify how a function returns.
1608 (frame_extra_info): Cleanup and record the return mode.
1609 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1610 register in address computation.
1611 (m68hc11_get_return_insn): New to obtain the return instruction used
1613 (m68hc11_frame_init_saved_regs): Take into account the return
1614 instruction used by the function for far and interrupt functions.
1615 (m68hc11_init_extra_frame_info): Take into account page register.
1616 (m68hc11_frame_args_address): Adjust according to the return mode.
1617 (show_regs): Print page register only when it's used.
1619 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1621 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1622 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1623 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1625 (m68hc11_register_raw_size): Likewise.
1627 2002-08-13 Andrew Cagney <cagney@redhat.com>
1629 * i386-tdep.c (i386_register_name): Handle mmx registers.
1630 (mmx_regnum_p): New function.
1631 (i386_mmx_names): New array.
1632 (mmx_num_regs): New variable.
1633 (i386_pseudo_register_read): New function.
1634 (i386_pseudo_register_write): New function.
1635 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1637 * regcache.c (regcache_raw_read_unsigned): New function.
1638 (regcache_raw_read_signed): New function.
1639 * regcache.h (regcache_raw_read_unsigned): Declare.
1640 (regcache_raw_read_signed): Declare.
1642 2002-08-13 Andrew Cagney <cagney@redhat.com>
1644 * regcache.c (regcache_raw_read_as_address): Delete function.
1645 (regcache_cooked_read_signed): New function.
1646 (regcache_cooked_read_unsigned): New function.
1647 * regcache.h (regcache_cooked_read_signed): Declare.
1648 (regcache_cooked_read_unsigned): Declare.
1649 (regcache_raw_read_as_address): Delete declaration.
1651 * blockframe.c (generic_read_register_dummy): Use
1652 regcache_cooked_read_unsigned.
1653 * i386-tdep.c (i386_extract_struct_value_address): Use
1654 regcache_cooked_read_unsigned.
1656 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1658 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1659 double sizes according to ELF ABI flags.
1660 (gdbarch_tdep): Record elf_flags.
1662 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1664 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1665 (m6812_prolog): They can appear in 68HC12 function prologue.
1666 (m68hc11_frame_chain): Cleanup.
1668 2002-08-12 Andrew Cagney <cagney@redhat.com>
1670 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1672 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1673 (i386_linux_register_raw_size): Delete function.
1674 (i386_linux_init_abi): Update.
1675 * i386-tdep.c (i386_register_raw_size): Delete function.
1676 (i386_register_byte): Delete function.
1677 (i386_gdbarch_init): Update.
1678 (i386_register_size): Delete array.
1679 (i386_register_offset): Delete array.
1681 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1682 (REGISTER_RAW_SIZE): Delete macro.
1683 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1684 (REGISTER_BYTE): Delete macro.
1686 2002-08-11 Aidan Skinner <aidan@velvet.net>
1688 * ada-lang.c (ada_lookup_partial_symbol)
1689 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1690 prototype names so that grep ^func works properly.
1692 * ada-lang.c (ada_array_element_type)
1693 (ada_lookup_partial_symbol): Fix typos in parameter list.
1695 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1696 Fix prototype names so that grep ^func works properly.
1698 2002-08-10 Andrew Cagney <cagney@redhat.com>
1699 Elena Zannoni <ezannoni@redhat.com>
1700 Martin M. Hunt <hunt@redhat.com>
1702 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1703 (build_builtin_type_vec128i): Set the vector bit.
1704 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1705 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1706 (build_builtin_type_vec64): New function.
1707 (build_builtin_type_vec64i): New function.
1708 (build_gdbtypes): Initialize builtin_type_vec64 and
1709 builtin_type_vec64i.
1711 2002-08-09 Andrew Cagney <cagney@redhat.com>
1713 * regcache.c (regcache_dump): Compare the register offset
1715 * arch-utils.c (generic_register_byte): New function.
1716 * arch-utils.h (generic_register_byte): Declare.
1717 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1718 * gdbarch.h, gdbarch.c: Regenerate.
1720 2002-08-09 Andrew Cagney <cagney@redhat.com>
1722 * regcache.c: Include "gdbcmd.h"
1723 (_initialize_regcache): Add commands "maintenance print
1724 registers", "maintenance print raw-registers" and "maintenance
1725 print cooked-registers".
1726 (enum regcache_dump_what): Define.
1727 (dump_endian_bytes): New function.
1728 (regcache_dump): New function.
1729 (regcache_print): New function.
1730 (maintenance_print_registers): New function.
1731 (maintenance_print_raw_registers): New function.
1732 (maintenance_print_cooked_registers): New function.
1733 * Makefile.in (regcache.o): Update dependencies.
1735 2002-08-09 Michael Snyder <msnyder@redhat.com>
1737 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1738 (mips_push_arguments): Correct some comments. Use paddr_nz
1739 for printing addresses in debug output. Replace static
1740 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1741 (mips_n32n64_push_arguments): New function, cloned from
1742 mips_push_arguments and tuned for the n32/n64 ABI.
1743 (mips_push_register): Buffer needs dynamic allocation.
1744 (mips_print_register): Ditto.
1745 (do_gp_register_row): Ditto.
1746 (mips_store_return_value): Ditto.
1747 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1749 2002-08-09 Don Howard <dhoward@redhat.com>
1751 * memattr.c (mem_info_command): Print special case of upper bound
1752 as max CORE_ADDR + 1.
1754 2002-08-08 Michael Snyder <msnyder@redhat.com>
1756 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1757 returns structs by ref if they're too big to fit in two registers.
1759 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1761 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1763 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1764 mips_find_saved_regs().
1765 (mips_pop_frame): Likewise.
1767 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1769 * blockframe.c (frame_saved_regs_register_unwind): Revise
1770 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1773 2002-08-09 Grace Sainsbury <graces@redhat.com>
1775 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1776 T-packets; the 'a' is not taken as a register number.
1777 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1778 (remote_stopped_data_address): New functions; add to target
1780 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1781 prototypes to match other implementations of this
1782 function. replace integer argument with pointer -- the length
1783 field in the Z-packet is the length of what is pointed to or 1 if
1784 pointer is null. Add to target vector.
1785 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1789 * remote.c (remote_wait): Add support to extract optional
1790 watchpoint information from T-packet. Ignore unrecognized
1791 optional info in T-packet.
1792 (remote_async_wait): Ditto.
1794 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1796 * cli/cli-dump.c: Change fopen modes to use binary open modes
1797 as defined in include/fopen-bin.h throughout.
1799 2002-08-08 Michael Snyder <msnyder@redhat.com>
1801 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1803 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1805 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1806 assertion failure by returning early after a warning.
1808 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1810 * mips-tdep.c (mips_find_saved_regs): Make static.
1811 (mips_frame_init_saved_regs): New function.
1812 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1813 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1814 (mips_find_saved_regs): Delete declaration.
1816 2002-08-08 Grace Sainsbury <graces@redhat.com>
1818 * remote.c (remote_wait, remote_async_wait): Change
1819 thread_num from int to ULONGEST.
1820 (unpack_varlen_hex): Change result parameter from
1821 int * to ULONGEST *.
1823 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1825 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1826 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1828 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1830 2002-08-08 Andrew Cagney <cagney@redhat.com>
1832 * gcore.c (override_derive_stack_segment): Delete variable.
1833 (preempt_derive_stack_segment): Delete function.
1834 (derive_stack_segment): Delete function.
1835 (default_derive_stack_segment): Renamed to derive_stack_segment.
1836 (override_derive_heap_segment): Delete variable.
1837 (preempt_derive_heap_segment): Delete function.
1838 (derive_heap_segment): Delete function.
1839 (default_derive_heap_segment): Rename to derive_heap_segment.
1841 2002-08-06 Michael Snyder <msnyder@redhat.com>
1843 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1844 * mips-tdep.c (mips_EABI_use_struct_convention,
1845 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1846 New functions. (mips_use_struct_convention): Delete.
1847 (mips_gdbarch_init): set use_gdbarch_convention.
1849 2002-08-06 Michael Snyder <msnyder@redhat.com>
1851 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1852 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1853 mips_o32_reg_struct_has_addr): New functions.
1854 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1856 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1858 * regcache.c (pseudo_register): Delete function.
1859 (fetch_register): Delete function.
1860 (store_register): Delete function.
1861 (regcache_raw_read, legacy_read_register_gen): Use
1862 target_fetch_registers instead of fetch_register.
1863 (legacy_write_register_gen, regcache_raw_write): Use
1864 target_store_register instead of store_register.
1865 (write_register_bytes): Ditto.
1867 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1868 (STORE_PSEUDO_REGISTER): Delete.
1869 * gdbarch.h, gdbarch.c: Regenerate.
1871 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1873 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1874 write dump file binary.
1876 2002-08-05 Michael Snyder <msnyder@redhat.com>
1878 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1879 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1880 (mips_gdbarch_init): Set N32 target to be mips64.
1882 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1884 * frame.c (find_saved_register): Break out of loop once saved
1885 register address is found. Don't mention sparc in loop comment
1888 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1890 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1891 mips_default_saved_regsize to 8.
1893 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1895 * gcore.c: Do not include <sys/procfs.h>.
1896 * Makefile.in (gcore.o): Update dependencies.
1898 2002-08-06 Andrew Cagney <cagney@redhat.com>
1900 * configure.tgt: Make arc-*-* obsolete.
1901 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1902 * MAINTAINERS: Make arc-elf obsolete.
1903 * arc-tdep.c: Make file obsolete.
1904 * config/arc/arc.mt: Ditto.
1905 * config/arc/tm-arc.h: Ditto.
1907 2002-08-05 Theodore A. Roth <troth@verinet.com>
1909 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1911 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1913 * mcore-tdep.c (mcore_gdbarch_init): Use
1914 generic_unwind_get_saved_register instead of
1915 generic_get_saved_register.
1916 * v850-tdep.c (v850_gdbarch_init): Ditto.
1917 * frv-tdep.c (frv_gdbarch_init): Ditto.
1918 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1919 * s390-tdep.c (s390_gdbarch_init): Ditto.
1920 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1921 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1922 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1924 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1926 * objfiles.h: Add missing #include "symfile.h"
1928 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1930 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1932 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1933 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1936 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1938 * NEWS: Cleanup and nitpick.
1940 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1942 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1944 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1946 * Makefile.in (gdbtk-bp.o): Update dependencies.
1947 (gdbtk-register.o): Ditto.
1948 (gdbtk-varobj.o): Ditto.
1950 2002-08-03 Andrew Cagney <cagney@redhat.com>
1952 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1953 m68hc11_fetch_pseudo_register.
1954 (m68hc11_pseudo_register_write): Replace
1955 m68hc11_store_pseudo_register.
1956 (m68hc11_gdbarch_init): Update.
1958 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1960 * gdbarch.sh: Include "gdb_string.h".
1961 * gdbarch.c: Regenerate.
1963 * regcache.c: Include "gdb_string.h".
1964 * ax-general.c: Ditto.
1966 * std-regs.c: Ditto.
1967 * fbsd-proc.c: Ditto.
1970 * Makefile.in (regcache.o): Update dependencies.
1971 (thread.o, gdbarch.o): Ditto.
1972 (ax-general.o, gdbarch.o): Ditto.
1973 (varobj.o, std-regs.o): Ditto.
1974 (fbsd-proc.o): Specify dependencies.
1976 2002-08-02 Andrew Cagney <cagney@redhat.com>
1978 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1980 (regcache_cooked_write): Ditto.
1982 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1984 * regcache.c (regcache_cooked_read): New function.
1985 (regcache_cooked_write): New function.
1986 (read_register_gen): Rewrite using regcache_cooked_read.
1987 (write_register_gen): Rewrite using regcache_cooked_write.
1989 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1992 2002-08-02 Andrew Cagney <cagney@redhat.com>
1994 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1995 Replace the architecture methods register_read and register_write.
1996 * gdbarch.h, gdbarch.c: Regenerate.
1997 * regcache.c (init_regcache_descr): Update.
1998 (read_register_gen): Update.
1999 (write_register_gen): Update.
2000 (supply_register): Update comment.
2002 * sh-tdep.c (sh_gdbarch_init): Update.
2003 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
2004 `regcache' and `gdbarch' parameters. Make `buffer' a void
2005 pointer. Update code.
2006 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
2007 `regcache' and `gdbarch' parameters. Make `buffer' a constant
2008 void pointer. Update code.
2009 (sh64_register_write): Delete.
2010 (sh4_register_read): Delete.
2011 (sh64_register_read): Delete.
2012 (sh4_register_write): Delete.
2013 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
2014 void pointer, `to' parameter a void pointer.
2015 (sh_sh64_register_convert_to_raw): Ditto.
2017 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2019 * mips-tdep.c (mips_register_virtual_type): Use architecture
2020 invariant return values.
2022 2002-08-01 Andrew Cagney <cagney@redhat.com>
2024 * linux-proc.c: Include "gdb_string.h".
2025 * Makefile.in (linux-proc.o): Update dependency list.
2027 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2029 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
2032 2002-08-01 Grace Sainsbury <graces@redhat.com>
2034 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2035 to_insert_watchpoint, to_remove_watchpoint,
2036 to_stopped_by_watchpoint, to_stopped_data_address,
2037 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
2038 target vecctor. Define their corresponding macros so they call
2041 * target.c: Add default and debug versions of for
2042 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
2043 to_insert_watchpoint, to_remove_watchpoint,
2044 to_stopped_by_watchpoint, to_stopped_data_address,
2045 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
2047 2002-08-01 Kevin Buettner <kevinb@redhat.com>
2049 * mips-tdep.c (mips_register_virtual_type): New function.
2050 (mips_gdbarch_init): Register mips_register_virtual_type()
2051 with gdbarch machinery.
2052 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
2053 this file instead of tm-bigmips.h.
2054 (MIPS_REGSIZE): Delete this macro.
2055 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
2056 multiarch version in mips-tdep.c will be found.
2058 2002-08-01 Andrew Cagney <cagney@redhat.com>
2060 * NEWS: Menion that CHILL has been made obsolete.
2062 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
2063 * stabsread.c (read_range_type): Ditto.
2064 * gdbtypes.h: Ditto.
2065 * language.c (binop_type_check): Ditto.
2066 (binop_result_type): Ditto.
2067 (integral_type): Ditto.
2068 (character_type): Ditto.
2069 (string_type): Ditto.
2070 (boolean_type): Ditto.
2071 (structured_type): Ditto.
2072 (lang_bool_type): Ditto.
2073 (binop_type_check): Ditto.
2074 * language.h (_LANG_chill): Ditto.
2075 * dwarfread.c (set_cu_language): Ditto.
2076 * dwarfread.c (CHILL_PRODUCER): Ditto.
2077 * dwarfread.c (handle_producer): Ditto.
2078 * expression.h (enum exp_opcode): Ditto.
2079 * eval.c: Ditto for comments.
2080 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
2081 * expprint.c (print_subexp): Ditto.
2082 (print_subexp): Ditto.
2083 * valops.c (value_cast): Ditto.
2084 (search_struct_field): Ditto.
2085 * value.h (COERCE_VARYING_ARRAY): Ditto.
2086 * symfile.c (init_filename_language_table): Ditto.
2087 (add_psymbol_with_dem_name_to_list): Ditto.
2088 * valarith.c (value_binop): Ditto.
2090 * valops.c (value_slice): Ditto.
2091 * symtab.h (union language_specific): Ditto.
2092 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
2093 (SYMBOL_DEMANGLED_NAME): Ditto.
2094 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
2095 * defs.h (enum language): Ditto.
2096 * symtab.c (got_symtab): Ditto.
2097 * utils.c (fprintf_symbol_filtered): Ditto.
2099 * ch-typeprint.c: Make file obsolete.
2100 * ch-valprint.c: Make file obsolete.
2101 * ch-lang.h: Make file obsolete.
2102 * ch-exp.c: Make file obsolete.
2103 * ch-lang.c: Make file obsolete.
2105 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
2107 (TARGET_FLAGS_TO_PASS): Ditto.
2108 (CHILLFLAGS): Obsolete.
2110 (CHILL_FOR_TARGET): Obsolete.
2111 (CHILL_LIB): Obsolete.
2112 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
2114 (HFILES_NO_SRCDIR): Remove ch-lang.h.
2115 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
2117 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
2120 2002-07-31 Joel Brobecker <brobecker@gnat.com>
2122 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
2123 This does not change anything at the moment, but will be helpful
2124 later when full Ada support is integrated.
2126 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2128 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
2131 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2133 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
2134 and save it in a local variable. Use variable in later test.
2136 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2138 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
2139 test. (Thanks to Daniel Jacobowitz.)
2141 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2143 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
2144 (mips_abi_strings): Add "n64".
2145 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
2147 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2149 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
2150 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
2152 2002-07-31 Kevin Buettner <kevinb@redhat.com>
2154 * utils.c (host_pointer_to_address, address_to_host_pointer):
2155 Use gdb_assert() instead of explicit call to internal_error().
2157 2002-07-30 Kevin Buettner <kevinb@redhat.com>
2159 * Makefile.in (rs6000-nat.o): Update dependencies.
2161 From Nicholas Duffek:
2162 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
2163 (aix-thread.o): New rule.
2164 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
2165 * config/powerpc/aix432.mh: New file.
2167 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2169 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
2170 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
2171 (fetch_core_registers, ppc_linux_supply_gregset)
2172 (ppc_linux_supply_fpregset): New functions.
2173 (ppc_linux_regset_core_fns): New.
2174 (_initialize_ppc_linux_tdep): Call add_core_fns.
2175 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
2176 and ppc_linux_supply_gregset.
2177 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
2178 (supply_fpregset): Call ppc_linux_supply_fpregset.
2179 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
2181 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
2183 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
2185 * symtab.c (lookup_symbol): Demangle before lowercasing.
2187 2002-07-30 Andrew Cagney <ac131313@redhat.com>
2189 * symtab.h: Replace #include "gdb_obstack.h" with opaque
2191 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
2192 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
2193 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
2194 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
2196 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
2197 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
2198 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
2199 (avr-tdep.o, mon960-rom.o): Ditto.
2200 (aout_stabs_gnu_h): Define.
2201 (symtab_h): Remove $(gdb_obstack_h).
2203 2002-07-30 Jim Blandy <jimb@redhat.com>
2205 Patch from David Carlton <carlton@math.stanford.edu>:
2206 * gdbinit.in: Move the `dir' commands that add GDB's own source
2207 directory to the search path to the end, so that the `gdb' source
2208 directory will be searched first.
2210 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2212 * gdb_obstack.h: New file.
2213 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2214 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2215 * objfiles.h: Include "gdb_obstack.h".
2216 * Makefile.in (gdb_obstack_h): Define.
2217 (symtab_h): Add $(gdb_obstack_h).
2218 (objfiles_h): Add $(gdb_obstack_h).
2220 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2221 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2222 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2223 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2224 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2225 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2226 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2227 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2229 * Makefile.in (bcache.o): Update dependencies.
2230 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2231 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2232 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2233 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2234 (stabsread.o, symfile.o, symmisc.o): Ditto.
2235 (symtab.o, typeprint.o, macroexp.o): Ditto.
2236 (macrotab.o, mdebugread.o): Ditto.
2237 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2238 (coff_ecoff_h, aout_aout64_h): Define.
2239 (aout_stabs_gnu_h, libaout_h): Define.
2241 2002-07-29 Andrew Cagney <cagney@redhat.com>
2243 * regcache.c (struct regcache_descr): Rename nr_registers to
2244 nr_cooked_registers. Revise comments describing the structure
2246 (init_regcache_descr): Update.
2247 (init_legacy_regcache_descr): Update.
2248 (read_register_gen, write_register_gen): When a cooked register in
2249 the raw register range, directly access the value from the raw
2252 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2254 * z8k-tdep.c: Do not include "obstack.h".
2255 * h8300-tdep.c, h8500-tdep.c: Ditto.
2256 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2257 * valprint.c, v850-tdep.c: Ditto.
2258 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2259 * mn10200-tdep.c: Ditto.
2261 * Makefile.in (z8k-tdep.o): Update dependencies.
2262 (m68hc11-tdep.o, valprint.o): Ditto.
2263 (v850-tdep.o, d10v-tdep.o): Ditto.
2264 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2265 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2266 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2267 (sh_opc_h, gdb_sim_sh_h): Define.
2268 (elf_sh_h, elf_bfd_h): Define.
2269 (opcode_m68hc11_h): Define.
2270 (OPCODES_SRC, OPCODES_DIR): define.
2271 (OPCODES): Use $(OPCODES_DIR).
2272 (gdb_sim_d10v_h): Rename sim_d10v_h.
2273 (gdb_sim_arm_h): Rename sim_arm_h.
2275 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2277 * utils.c (host_pointer_to_address, address_to_host_pointer):
2278 Change internal_error() message to indicate function responsible
2281 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2283 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2284 calls to local_hex_string_custom().
2286 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2288 * irix5-nat.c: Move IRIX shared library support from here...
2289 * solib-irix.c: ...to here. Revised substantially to work with
2290 generic solib framework.
2292 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2293 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2294 * mips-irix-tdep.c: New file.
2296 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2297 (mips-irix-tdep.o, solib-irix.o): New rules.
2298 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2300 * config/mips/irix6.mt (TDEPFILES): Likewise.
2301 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2303 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2305 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2306 disabled (via ``#if 0'') includes.
2308 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2310 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2311 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2312 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2313 Add support for the fpscr register.
2314 * rs6000-nat.c (regmap, fetch_inferior_registers)
2315 (store_inferior_registers, fetch_core_registers): Likewise.
2317 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2319 * rs6000-nat.c (language.h): Include.
2320 (special_regs): Delete this array.
2321 (regmap): New function.
2322 (fetch_register, store_register): Use regmap() to map gdb
2323 register numbers to ptrace register numbers. Also, use
2324 outputs from regmap() to make decisions regarding type of
2325 ptrace() call to make. In particular, don't compare against
2326 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2327 (fetch_inferior_registers, store_inferior_registers): Where
2328 possible, obtain register numbers from tdep struct. Don't
2329 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2330 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2331 (LAST_UISA_SP_REGNUM): Delete.
2333 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2335 * rs6000-nat.c (ppc-tdep.h): Include.
2336 (fetch_registers, store_register, fetch_core_registers): Don't
2337 access registers[] directly. Instead, use supply_register() or
2338 regcache_collect() as appropriate.
2339 (find_toc_address): Format hex address with local_hex_string().
2341 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2343 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2346 2002-07-24 Tom Tromey <tromey@redhat.com>
2348 * jv-exp.y: Marked all strings with _().
2349 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2351 (MethodInvocation, CastExpression, parse_number, yyerror,
2352 java_type_from_name, push_expression_name, yylex): Typo fixes.
2354 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2356 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2357 (tee_file_flush, tee_file_write, tee_file_fputs)
2358 (tee_file_isatty): New.
2359 * ui-file.h (tee_file_new): Add prototype.
2361 2002-07-24 Aidan Skinner <aidan@velvet.net>
2363 * ada-lang.c: Change k&r style function definitions to prototyped
2365 * ada-typeprint.c: Change k&r style function definitions to prototyped
2367 * ada-valprint.c: Change k&r style function definitions to prototyped
2370 2002-07-24 Andrew Cagney <cagney@redhat.com>
2372 * README: Remove reference to remote-bug.
2373 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2375 (m88k-nat.o): Delete rule.
2376 (m88k-tdep.o): Delete rule.
2377 (remote-bug.o): Delete rule.
2378 * MAINTAINERS: Mark as obsolete.
2379 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2380 * m88k-tdep.c: Make file obsolete.
2381 * config/m88k/m88k.mh: Ditto.
2382 * config/m88k/delta88v4.mh: Ditto.
2383 * config/m88k/delta88v4.mt: Ditto.
2384 * config/m88k/delta88.mt: Ditto.
2385 * config/m88k/delta88.mh: Ditto.
2386 * remote-bug.c: Ditto.
2387 * config/m88k/tm-delta88.h: Ditto.
2388 * config/m88k/nm-delta88v4.h: Ditto.
2389 * config/m88k/xm-delta88.h: Ditto.
2390 * config/m88k/xm-dgux.h: Ditto.
2391 * config/m88k/tm-m88k.h: Ditto.
2392 * config/m88k/nm-m88k.h: Ditto.
2393 * config/m88k/tm-delta88v4.h: Ditto.
2394 * m88k-nat.c: Ditto.
2395 * cxux-nat.c: Ditto.
2396 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2397 and m88*-*-* obsolete.
2398 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2401 2002-07-24 Andrew Cagney <cagney@redhat.com>
2403 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2404 constant. Same for local pointer variables.
2405 (extract_signed_integer): Ditto.
2406 * defs.h (extract_unsigned_integer): Update.
2407 (extract_signed_integer): Update.
2409 2002-07-24 Andrew Cagney <cagney@redhat.com>
2411 * regcache.c (regcache_raw_write): Change buf parameter to a
2412 constant void pointer.
2413 (regcache_raw_read): Change buf parameter to a void pointer.
2414 (legacy_write_register_gen): Change myaddr parameter a constant
2416 (supply_register): Change val parameter to a const void pointer.
2417 * regcache.h (regcache_raw_write): Update declaration.
2418 (regcache_raw_read): Update declaration.
2419 (supply_register): Update declaration.
2421 2002-07-24 Tom Tromey <tromey@redhat.com>
2423 * defs.h (gdb_readline_wrapper): Declare.
2424 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2425 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2426 * top.c (gdb_readline_wrapper): New function.
2427 (command_line_input): Use it.
2429 2002-07-24 Andrew Cagney <cagney@redhat.com>
2431 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2432 regcache_read and regcache_write.
2433 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2434 * regcache.c: Update.
2435 * sh-tdep.c (sh64_push_arguments): Update comment.
2436 (sh_pseudo_register_read): Update.
2437 (sh_pseudo_register_write): Update.
2438 (sh4_register_read): Update.
2439 (sh4_register_write): Update.
2440 (sh64_pseudo_register_read): Update.
2441 (sh64_pseudo_register_write): Update.
2442 (sh64_register_read): Update.
2443 (sh64_register_write): Update.
2444 * i386-tdep.c (i386_extract_return_value): Update.
2445 (i386_extract_struct_value_address): Update.
2446 (i386_extract_return_value): Update.
2447 * blockframe.c (generic_read_register_dummy): Update.
2448 (generic_call_dummy_register_unwind): Update
2449 * infrun.c (write_inferior_status_register): Update.
2451 2002-07-23 Jim Blandy <jimb@redhat.com>
2453 * parser-defs.h (expression_context_pc): Make this extern.
2454 (Thanks to Michael Snyder.)
2456 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2458 GDB 5.2.1 released from 5.2 branch.
2459 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2460 * README: Update to mention 5.2.1.
2462 2002-07-23 Mark Salter <msalter@redhat.com>
2464 * remote.c (remote_read_bytes): Fix check for error.
2466 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2468 * aix-thread.c (language.h): Include.
2469 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2470 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2471 Print newlines at end of debug messages.
2472 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2473 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2475 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2477 * aix-thread.c (ppc-tdep.h): Include.
2478 (special_register_p): New function.
2479 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2480 (store_regs_user_thread): Use register number information from
2481 gdbarch_tdep struct instead of hardcoded offsets relative to
2482 FIRST_UISA_SP_REGNUM.
2483 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2484 special_register_p() instead of using FPLAST_REGNUM and
2485 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2486 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2487 will be MQ's register number.
2489 2002-07-22 Michael Snyder <msnyder@redhat.com>
2491 * aix-thread.c (ops): Rename to aix_thread_ops.
2492 (base_ops): Rename to base_target.
2493 (ops_attach): Rename to aix_thread_attach.
2494 (ops_detach): Rename to aix_thread_detach.
2495 (ops_resume): Rename to aix_thread_detach.
2496 (ops_wait): Rename to aix_thread_wait.
2497 (ops_kill): Rename to aix_thread_kill.
2498 (init_ops): Rename to init_aix_thread_ops.
2499 (ops_fetch_register): Rename to aix_thread_fetch_register.
2500 (ops_store_register): Rename to aix_thread_store_register.
2501 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2502 (ops_thread_alive): Rename to aix_thread_thread_alive.
2503 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2504 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2505 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2506 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2507 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2508 (store_regs_lib): Rename to store_regs_user_thread.
2509 (store_regs_kern): Rename to store_regs_kernel_thread.
2511 2002-07-22 Michael Snyder <msnyder@redhat.com>
2513 * aix-thread.c (ops_prepare_to_store): Eliminate.
2514 (init_ops): Don't initialize ops.prepare_to_store.
2515 (store_regs_kern): Pre-fetch register buffers from child,
2516 because some registers may not be in the cache. Copy
2517 regs from register cache only if they are cached.
2518 (store_regs_lib): Copy regs from register cache only
2520 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2521 fill_gprs64): Ditto.
2523 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2525 * aix-thread.c (gdb_assert.h): Include.
2526 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2527 register sizes (from register cache) match size of buffer holding
2529 (fill_sprs32): Change parameter types to match those in the ptrace()
2531 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2532 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2534 2002-07-22 Michael Snyder <msnyder@redhat.com>
2536 * aix-thread.c (supply_sprs64): Cosmetic change.
2537 (supply_sprs32): Cosmetic change.
2538 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2539 (fill_sprs64): Use regcache_collect instead of read_register.
2540 (store_regs_lib): Use regcache_collect instead of
2541 read_register. Use fill_sprs32 instead of fill_sprs64,
2542 if debugging a 32-bit architecture.
2543 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2544 out of the register cache, instead of passing a pointer into
2545 the register cache directly to ptrace. Use regcache_collect
2546 insteaad of read_register.
2547 (ops_prepare_to_store): Use target_read_registers instead
2548 of read_register_bytes.
2550 2002-07-20 Aidan Skinner <aidan@velvet.net>
2552 * MAINTAINERS: Add self under write after approval.
2554 2002-07-20 Aidan Skinner <aidan@velvet.net>
2556 * ada-tasks.c: Change k&r style function definitions to prototyped
2559 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2561 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2562 * x86-64-tdep.c: Include "objfiles.h".
2563 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2564 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2566 2002-07-17 Michal Ludvig <michal@suse.cz>
2568 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2569 (update_context): Initialise cfa variable.
2571 2002-07-17 Michael Snyder <msnyder@redhat.com>
2573 * aix-thread.c: Shorten some long lines.
2574 Bring comments into line with code spec.
2576 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2578 * infrun.c: Re-indent using gdb_indent.sh.
2580 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2582 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2583 Leave the indentation temporarily untouched, to minimize the diffs.
2585 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2587 * stabsread.c: Make os9k sections of the code obsolete,
2589 * stabsread.h: Make os9k sections of the code obsolete.
2591 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2593 * linux-low.c (regsets_store_inferior_registers): Add free()
2594 at the end of a loop to prevent memory leak.
2595 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2596 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2597 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2599 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2601 2002-07-17 Jim Blandy <jimb@redhat.com>
2603 * macrocmd.c (info_macro_command): Remove newline from error
2606 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2608 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2609 (sh_gdbarch_init): Use it for sh-dsp.
2611 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2613 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2614 64-bit DWARF2 format.
2616 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2618 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2619 <sys/proc.h> when not available.
2621 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2623 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2624 * stabsread.c: Make os9k sections of the code obsolete.
2625 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2626 * config/i386/i386os9k.mt: Make file obsolete.
2627 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2628 (COMMON_OBS): Remove os9kread.o
2629 (SFILES): Remove os9kread.c.
2630 (os9kread.o, remote-os9k.o): Make target obsolete.
2631 * remote-os9k.c: Make file obsolete.
2632 * os9kread.c: Make file obsolete.
2635 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2637 * NEWS: Mention that the FR30 has been made obsolete.
2638 * fr30-tdep.c: Make file obsolete.
2639 * config/fr30/tm-fr30.h: Ditto.
2640 * config/fr30/fr30.mt: Ditto.
2641 * configure.tgt: Make fr30-*-elf obsolete.
2642 * MAINTAINERS: Make fr30-elf obsolete.
2644 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2646 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2647 found is not inside a section.
2649 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2651 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2653 (pdc_realloc): Use xrealloc() instead of realloc().
2655 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2657 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2658 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2659 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2662 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2664 * aix-thread.c (ptrace_check): Eliminate goto.
2665 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2668 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2670 * aix-thread.c (gdbcmd.h): Include.
2671 (DEBUG, DBG, DBG2, dbg): Eliminate.
2672 (debug_aix_thread): New static global.
2673 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2674 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2675 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2676 invocations to DBG and DBG2 macros to test against
2677 ``debug_aix_thread'' and call fprintf_unfiltered().
2678 (_initialize_aix_thread): Add new command "set debug aix-thread".
2680 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2682 From Gerhard Tonn <TON@de.ibm.com>:
2683 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2684 instead of supply_register.
2686 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2688 * dwarf2cfi.c: Include "gdb_assert.h".
2689 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2691 (update_context): Do not use __func__. Add missing ``break''.
2692 (update_context): Do not use __func__.
2694 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2696 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2697 and its setting. Set gdbarch instruction printing functions
2698 directly. For non-rs6000 case use new function
2699 gdb_print_insn_powerpc.
2700 (gdb_print_insn_powerpc): New function.
2702 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2704 * NEWS: Mention that the d30v has been marked obsolete.
2705 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2706 * configure.tgt: Mark d30v-*-* as obsolete.
2707 * d30v-tdep.c: Mark file as obsolete.
2708 * config/d30v/d30v.mt: Ditto.
2709 * config/d30v/tm-d30v.h: Ditto.
2711 2002-07-13 Aidan Skinner <aidan@velvet.net>
2713 * ada-tasks.c (add_task_entry): replace calls to
2714 malloc() with xmalloc
2715 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2717 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2718 ada_finish_decode_line_1, all_sals_for_line
2719 ada_breakpoint_rewrite): replace calls to free() with xfree()
2721 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2723 From Nicholas Duffek (with minor changes by Martin Hunt,
2724 Louis Hamilton, and Kevin Buettner):
2725 * aix-thread.c: New file.
2727 2002-07-12 Petr Sorfa <petrs@caldera.com>
2729 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2730 complaint for invalid attribute class or form.
2731 (read_func_scope): DW_AT_frame_base
2732 better handling of DW_AT_block*.
2733 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2734 better handling of DW_AT_block*.
2735 (read_common_block): DW_AT_location
2736 better handling of DW_AT_block*.
2737 (read_partial_die): DW_AT_location better handling
2739 (new_symbol): DW_AT_external better handling of
2740 DW_AT_block*. Proper initialization of variable
2742 (attr_form_is_block): New function that returns true
2743 if the attribute's form is of DW_FORM_block*.
2745 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2747 * valops.c (find_method_list): Remove comment about
2748 removed STATIC_MEMFUNCP argument.
2749 (value_find_oload_method_list): Likewise.
2751 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2753 From Nicholas Duffek:
2754 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2755 target_new_objfile_hook.
2757 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2759 From Nicholas Duffek:
2760 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2763 2002-07-12 Andrew Cagney <cagney@redhat.com>
2765 * MAINTAINERS: Mention --enable-sim-build-warnings.
2766 (m68hc11-elf): Disable sim build warnings.
2767 (m32r-elf): Mark as broken obsolete candidate.
2768 (x86_64-linux-gnu): Mark as buildable with -Werror.
2769 (arm-elf): Change -w to ``,'' which enables warnings but not
2772 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2774 * bcache.h: Update copyright.
2775 (struct bstring, struct bcache): Move definition to "bcache.c".
2776 Replaced by opaque declaration.
2777 (bcache_xfree): Replace free_bcache.
2778 (bcache_xmalloc, bcache_memory_used): Declare.
2780 * bcache.c: Update copyright.
2781 (struct bstring, struct bcache): Moved to here from "bcache.h".
2783 (bcache_xmalloc, bcache_memory_used): New functions.
2784 (bcache_xfree): Replace function free_bcache.
2786 * Makefile.in (objfiles.o): Add $(bcache_h).
2787 (objfiles_h): Remove $(bcache_h).
2788 (symfile.o): Add $(bcache_h).
2790 * symmisc.c: Update copyright.
2791 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2792 (print_objfile_statistics): Use bcache_memory_used.
2794 * symfile.c: Include "bcache.h".
2795 (reread_symbols): Use bcache_xfree.
2796 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2797 (add_psymbol_to_list): Pass psymbol_cache by value.
2798 (add_psymbol_with_dem_name_to_list): Ditto.
2800 * objfiles.h: Update copyright.
2801 (struct bcache): Declare opaque. Do not include "bcache.h".
2802 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2804 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2806 * objfiles.c: Include "bcache.h". Update copyright.
2807 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2809 (free_objfile): Use bcache_xfree.
2811 2002-07-11 Grace Sainsbury <graces@redhat.com>
2813 * monitor.c (monitor_fetch_register): Make name a constant.
2814 (monitor_store_register): Same.
2816 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2818 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2819 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2820 (finish_block) For non-function blocks, hash the symbol table. For
2821 function blocks, mark the symbol table as unhashed.
2822 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2823 (msymbol_hash_iw): Likewise.
2824 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2826 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2827 (lookup_minimal_symbol): Likewise for both.
2828 * symtab.h (struct block): Add `hashtable' flag. Comment the
2830 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2831 (ALL_BLOCK_SYMBOLS): Update.
2832 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2833 (struct symbol): Add `hash_next' pointer.
2834 * symtab.c (lookup_block_symbol): Search using the hash table when
2836 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2837 (search_symbols, find_addr_symbol): Likewise.
2839 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2840 (read_dst_symtab): Likewise.
2841 * jv-lang.c (get_java_class_symtab): Likewise.
2842 * mdebugread.c: Include "gdb_assert.h".
2843 (shrink_block): Assert that the block being modified is not hashed.
2844 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2845 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2847 (dump_symtab): Recognize hashed blocks.
2848 * printcmd.c (print_frame_args): Assert that function blocks do not
2849 have hashed symbol tables.
2850 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2851 (fill_in_ada_prototype, debug_print_block): Likewise.
2852 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2854 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2856 * stack.c (print_frame): Use result of frame_address_in_block()
2857 instead of fi->pc when evaluating symbols.
2858 (backtrace_command_1): Ditto.
2860 2002-07-11 Andrew Cagney <cagney@redhat.com>
2862 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2865 * arm-tdep.c (arm_register_name): Make return type constant.
2867 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2869 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2871 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2872 * s390-tdep.c (s390_fp_regnum): Ditto.
2873 (s390_read_fp): Ditto.
2874 (s390_pop_frame): Ditto.
2875 (_initialize_s390_tdep): Ditto.
2876 * remote.c (get_remote_state): Ditto.
2877 * procfs.c (mappingflags): Ditto.
2878 * memattr.c (_initialize_mem): Ditto.
2879 * mcore-tdep.c (mcore_pop_frame): Ditto.
2880 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2881 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2882 * language.c (set_case_str): Ditto.
2883 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2884 * frv-tdep.c (new_variant): Ditto.
2885 (frv_stopped_data_address): Ditto.
2886 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2887 (context_alloc): Ditto.
2888 (frame_state_alloc): Ditto.
2889 (unwind_tmp_obstack_init): Ditto.
2890 (unwind_tmp_obstack_free): Ditto.
2891 (cfi_read_fp): Ditto.
2892 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2893 (cris_pop_frame): Ditto.
2894 * c-lang.c (scanning_macro_expansion): Ditto.
2895 (finished_macro_expansion): Ditto.
2896 (c_preprocess_and_parse): Ditto.
2897 * gdbarch.sh: Ditto.
2898 * gdbarch.h, gdbarch.c: Regenerate.
2899 * config/mn10200/tm-mn10200.h: Adjust indentation.
2900 * target.c: Adjust indentation.
2901 * symtab.h: Adjust indentation.
2902 * stabsread.h: Adjust indentation.
2903 * remote-es.c: Adjust indentation.
2904 * os9kread.c: Adjust indentation.
2906 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2908 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2909 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2911 2002-07-10 Grace Sainsbury <graces@redhat.com>
2913 * NEWS: Mention m68k, mcore multi-arching.
2914 * MAINTAINERS: Change status of m68k, mcore to reflect
2917 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2919 * valops.c (find_overload_match): Free oload_syms.
2921 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2923 Define HAVE_SYS_PROC_H if sys/proc.h exists
2924 * configure.in: Add check for sys/proc.h
2925 * config.in: Regenerate.
2926 * configure: Regenerate.
2928 2002-07-09 Grace Sainsbury <graces@redhat.com>
2930 * config/m68k/tm-m68k.h: Remove macros wrapped in
2931 #if !GDB_MULTI_ARCH.
2933 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2935 * config.in, configure: Regenerate.
2937 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2939 * dwarf2cfi.c: Include "gcore.h".
2940 (execute_stack_op): Fix implementation of the
2941 DW_OP_deref and DW_OP_deref_size operators by letting do their
2942 lookup in the target.
2944 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2946 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2947 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2950 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2952 Fix PR gdb/595, gdb/602
2953 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2954 Don't call value_cast, just read the vtable pointer; update comments
2957 2002-07-05 Grace Sainsbury <graces@redhat.com>
2959 * config/mcore/tm-mcore.h: Remove file.
2960 * config/mcore/mcore.mt: Remove definition of TM_FILE
2961 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2963 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2965 * i386bsd-tdep.c: Include "gdb_string.h".
2967 2002-07-04 Grace Sainsbury <graces@redhat.com>
2969 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2970 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2972 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2973 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2974 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2975 (RETVAL_REGNUM): Move macros from tm-mcore.h
2976 (mcore_reg_struct_has_addr): New function.
2977 (mcore_gdbarch_init): Added initializations for the macros removed
2980 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2982 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2983 traditonal string branding within the ELF header.
2985 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2987 * symtab.c (remove_params): New function.
2988 (make_symbol_overload_list): Use it instead of cplus_demangle.
2989 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2991 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2993 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2995 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2997 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2998 and tdep->sigtramp_end.
2999 * i386obsd-nat.c: New file.
3000 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
3002 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
3003 Don't call get_current_frame().
3005 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
3007 * i386-nat.c (child_post_startup_inferior): New function
3008 calling i386_cleanup_dregs if
3009 I386_USE_GENERIC_WATCHPOINTS is defined.
3010 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
3011 conditional to acknowledge that i386-nat.c has its
3012 own child_post_startup_inferior function.
3014 2002-07-04 Mark Kettenis <kettenis@gnu.org>
3016 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
3017 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
3018 instead of MAX_REGISTER_RAW_SIZE.
3019 (i386_extract_return_value, i386_extract_struct_value_address):
3020 Convert to use regcache.
3021 (i386_gdbarch_init): Set max_register_raw_size and
3022 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
3023 Set extract_return_value and extract_struct_value_address instead
3024 of their deprecated variants.
3026 Convert i386 target to generic dummy frames.
3027 * i386-tdep.c: Include "symfile.h".
3028 (i386_frameless_signal_p): Consider a function to be frameless if
3029 the pc points at the first instruction of the function.
3030 (i386_frame_chain): Handle (generic) call dummies.
3031 (i386_frame_saved_pc): Likewise.
3032 (i386_frame_init_saved_regs): Remove code dealing with call
3033 dummies on the stack.
3034 (i386_push_dummy_frame): Removed.
3035 (i386_call_dummy_words): Removed.
3036 (i386_fix_call_dummy): Removed.
3037 (i386_push_return_address): New function.
3038 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
3039 parameter, and don't call get_current_frame.
3040 (i386_pop_frame): New function.
3041 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
3042 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
3043 entry_point_address, set call_dummy_breakpoint_offset to 0, set
3044 call_dummy_length to 0, set call_dummy_words to NULL, set
3045 sizeof_call_dummy_words to 0, set fix_call_dummy to
3046 generic_fix_call_dummy, set pc_in_call_dummy to
3047 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
3048 generic_push_dummy_frame, set push_return_address to
3049 i386_push_return_address and set frame_chain_valid to
3050 generic_file_frame_chain_valid.
3052 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3054 * gdbarch.sh (struct regcache): Add opaque declaration.
3055 (EXTRACT_RETURN_VALUE): New architecture method.
3056 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
3057 * gdbarch.h, gdbarch.c: Regenerate.
3058 * arch-utils.c (legacy_extract_return_value): New function.
3059 * arch-utils.h (legacy_extract_return_value): Declare.
3060 * values.c (value_being_returned): Re-enable code handling
3061 EXTRACT_STRUCT_VALUE_ADDRESS. Move
3062 deprecated_grub_regcache_for_registers call to block handling
3063 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3064 (EXTRACT_RETURN_VALUE): Do not define.
3066 2002-07-03 Grace Sainsbury <graces@redhat.com>
3068 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
3069 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
3070 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
3071 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
3072 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
3073 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
3074 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
3075 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
3076 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
3077 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
3078 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
3079 argument so the function fits the prototype in the architecture
3081 (mcore_pop_frame): Remove argument so the function fits the
3082 prototype. Use get_current_frame instead of the argument.
3083 (mcore_push_arguments): Change type of struct_return so the
3084 function can be used in the architecture vector.
3085 (mcore_store_struct_return): Add.
3086 (mcore_frame_init_saved_regs): Add.
3087 (mcore_gdbarch_init): Add function calls to replace the macros
3088 removed from tm-mcore.h
3090 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3092 * infcmd.c (print_return_value): Remove compatibility code calling
3093 deprecated_grub_regcache_for_registers.
3095 * values.c: Include "regcache.h".
3096 (value_being_returned): Update. Use
3097 deprecated_grub_regcache_for_registers to extract the register
3099 * value.h (value_being_returned): Change ``retbuf'' parameter to a
3100 ``struct regcache''.
3101 * Makefile.in (values.o): Add dependency on $(regcache_h).
3103 * inferior.h (run_stack_dummy): Change type of second parameter to
3104 a ``struct regcache''.
3105 * valops.c (hand_function_call): Change type of retbuf to ``struct
3106 regcache''. Allocate using regcache_xmalloc, clean using
3107 make_cleanup_regcache_xfree.
3108 * infcmd.c (run_stack_dummy): Update. Use
3109 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
3111 * regcache.c (do_regcache_xfree): New function.
3112 (make_cleanup_regcache_xfree): New function.
3113 * regcache.h (make_cleanup_regcache_xfree): Declare.
3115 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3117 * event-top.c (command_line_handler): Don't read past
3118 beginning of buffer.
3120 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3122 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
3124 (varobj_create): Store frame_id for root.
3125 (varobj_gen_name): Use xasprintf.
3126 (varobj_update): Save and restore frame using get_frame_id() and
3128 (create_child): Use xasprintf.
3129 (new_root_variable): Initialize frame_id.
3130 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
3131 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
3132 to prevent memory leak.
3134 2002-07-03 Andrew Cagney <ac131313@redhat.com>
3136 * valops.c (hand_function_call): Move declaration of retbuf to
3137 start of function, allocate using malloc, add a cleanup but before
3138 the inf_status cleanup, cleanup the buffer. Rename local variable
3139 old_chain to inf_status_cleanup.
3141 2002-07-03 Martin M. Hunt <hunt@redhat.com>
3143 * top.c (execute_command): Use cmd_func() and cmd_func_p().
3145 * cli/cli-decode.c (cmd_func_p): New function.
3146 (cmd_func): New function.
3148 * command.h: Add cmd_func() and cmd_func_p().
3150 2002-07-03 Grace Sainsbury <graces@redhat.com>
3152 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
3153 (REGISTER_SIZE): Remove.
3154 (MAX_REGISTER_RAW_SIZE): Remove.
3155 (REGISTER_VIRTUAL_TYPE): Remove.
3156 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
3157 (REGISTER_NAME): Remove.
3158 (USE_GENERIC_DUMMY_FRAMES): Remove.
3159 (CALL_DUMMY): Remove.
3160 (CALL_DUMMY_START_OFFSET): Remove.
3161 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3162 (CALL_DUMMY_LOCATION): Remove.
3163 (FIX_CALL_DUMMY): Remove.
3164 (CALL_DUMMY_ADDRESS): Remove.
3165 (SIZEOF_CALL_DUMMY_WORDS): Remove.
3166 (SAVE_DUMMY_FRAME_TOS): Remove.
3167 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
3168 (mcore_register_virtual_type): New function.
3169 (mcore_register_byte): New function.
3170 (mcore_register_size): New function.
3171 (mcore_register_name): New function.
3172 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
3173 macros removed from tm-mcore.h.
3174 (mcore_dump_tdep): Add.
3175 (_initialize_mcore_tdep): Add gdbarch_register call.
3177 2002-07-03 Mark Kettenis <kettenis@gnu.org>
3179 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
3180 frameless_look_for_prologue, such that we actually call this
3183 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3185 * frame.h (frame_address_in_block): New function.
3187 * blockframe.c (frame_address_in_block): New function extracted
3188 from get_frame_block().
3189 (get_frame_block): Use frame_address_in_block().
3190 (block_innermost_frame): Use frame_address_in_block() to match
3191 the frame pc address against the block boundaries rather than
3192 the frame pc directly. This prevents a failure when a frame pc
3193 is actually a return-address pointing immediately after the end
3196 2002-07-02 Grace Sainsbury <graces@redhat.com>
3198 * MAINTAINERS: Add self under write after approval.
3200 2002-07-02 Grace Sainsbury <graces@redhat.com>
3202 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
3203 used in architecture vector. The default is
3204 m68k_local_breakpoint_from_pc.
3205 (m68k_local_breakpoint_from_pc): Add.
3206 (enum): Add register numbers from tm-m68k.h.
3207 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
3209 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3210 GDB_MULTI_ARCH_PARTIAL.
3211 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3212 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3214 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3215 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3216 to enum in m68k-tdep.c
3218 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3220 * solib-osf.c (open_map): Compute the list of shared libraries
3221 loaded by the inferior, rather than the list of libraries loaded
3222 by GDB itself. Otherwise, GDB ends up reading the symbols from
3223 the wrong shared libraries...
3225 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3227 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3228 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3230 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3232 (FRAMELESS_SIGNAL): Remove function.
3233 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3234 i386_linux_saved_pc_after_call): Removed.
3235 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3236 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3237 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3239 * i386-tdep.c (i386_frameless_signal_p): New function.
3240 (i386_frame_chain): Deal with frameless signals.
3241 (i386_sigtramp_saved_sp): New function.
3242 (i386_frame_saved_pc): Deal with frameless signals.
3243 (i386_saved_pc_after_call): Make sure the correct value is
3244 returned just after entry into a sigtramp.
3245 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3246 i386fbsd4_sc_sp_offset): New variables.
3247 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3248 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3249 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3250 similiar to what we already did for sc_pc_offset.
3251 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3254 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3256 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3258 * config/i386/tm-x86-64linux.h: New.
3259 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3261 * config/i386/nm-x86-64.h: Rename to ...
3262 * config/i386/nm-x86-64linux.h: ... this one.
3263 * config/i386/x86-64linux.mh: Reflect the above change.
3265 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3267 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3268 with sigcontext_addr. Add sc_sp_offset.
3269 (i386bsd_sigtramp_saved_pc): Remove prototype.
3270 (i386bsd_sicontext_addr): Add prototype.
3271 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3272 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3273 (i386_svr4_sigtramp_saved_pc): Removed.
3274 (i386_svr4_sigcontext_addr): New function.
3275 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3276 Initialize tdep->sigcontext_addr instead. Initialize
3277 tdep->sc_pc_offset and tdep->sc_sp_offset.
3278 (i386_gdbarch_init): Likewise.
3279 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3281 (i386bsd_sigtramp_saved_pc): Remove function.
3282 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3283 Initialize tdep->sigcontext_addr instead. Initialize
3285 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3286 of tdep->sigtramp_saved_pc.
3287 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3288 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3291 * i386-tdep.c (i386_frameless_function_invocation,
3292 i386_frame_num_args, i386_frame_init_saved_regs,
3293 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3294 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3295 i386_extract_return_value, i386_store_return_value,
3296 i386_extract_struct_value_address, i386_register_virtual_type,
3297 i386_register_convertible, i386_register_convert_to_virtual,
3298 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3299 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3302 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3304 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3306 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3307 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3308 this macro. Include "value.h".
3310 2002-06-30 Aidan Skinner <aidan@velvet.net>
3312 * ada-exp.tab.c: remove as it's a generated file
3313 * ada-lex.c: remove as it's a generated file
3315 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3317 * config/i386/tm-i386.h (struct frame_info, struct
3318 frame_saved_regs, struct value, struct type): Remove forward
3321 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3322 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3323 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3324 (FILL_FPXREGSET): Define.
3326 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3328 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3329 i[3456]86-*-netbsd* case.
3330 * config/i386/tm-obsd.h: Removed.
3331 * config/i386/obsd.mt: Removed.
3332 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3334 (MH_CFLAGS): Add -DYYDEBUG=0.
3336 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3337 i386nbsd_sc_pc_offset on OpenBSD too.
3339 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3340 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3341 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3343 * i386bsd-tdep.c: Include "arch-utils.h".
3344 (i386bsd_aout_in_solib_call_trampoline): New function.
3345 (i386bsd_init_abi): Set in_solib_call_trampoline to
3346 i386bsd_aout_in_solib_call_trampoline.
3347 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3348 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3350 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3352 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3353 (struct obstack, struct bcache): Add opaque declarations.
3354 * Makefile.in (macrotab_h): Update
3356 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3358 * blockframe.c (generic_find_dummy_frame): Change return type to
3359 ``struct regcache''.
3360 (struct dummy_frame): Replace field ``registers'' with regcache, a
3361 struct regcache object.
3362 (generic_find_dummy_frame): Update.
3363 (generic_push_dummy_frame): Update. Use regcache_xfree,
3364 regcache_xmalloc and regcache_cpy.
3365 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3367 (deprecated_generic_find_dummy_frame): Update.
3368 (generic_read_register_dummy): Update. Use
3369 regcache_read_as_address.
3370 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3371 (generic_get_saved_register): Update. Use regcache_read.
3373 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3375 * Makefile.in (objfiles_h): Add $(bcache_h).
3376 * objfiles.h: Include "bcache.h".
3378 * Makefile.in (symtab_h): Remove $(bcache_h).
3379 * symtab.h: Do not include "bcache.h".
3381 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3383 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3384 generic_func_frame_chain_valid.
3386 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3388 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3389 * config/i386/tm-fbsd.h: Likewise.
3391 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3393 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3394 generic_unwind_get_saved_register.
3396 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3398 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3399 * regcache.c (supply_register): Add missing argument to
3400 register_buffer call.
3402 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3404 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3405 Solaris /bin/grep does not not like it. From Peter Schauer.
3407 2002-06-26 Tom Tromey <tromey@redhat.com>
3409 * command.h (add_setshow_cmd): Declare.
3410 (add_setshow_cmd_full): Declare.
3411 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3412 returns void. Use add_setshow_cmd_full.
3413 (add_setshow_cmd_full): New function.
3414 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3415 (add_setshow_boolean_cmd): Likewise.
3417 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3419 * config/vax/tm-vax.h: Protect from multiple inclusion.
3420 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3421 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3422 * config/vax/tm-vaxbsd.h: ...here. New file.
3423 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3425 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3427 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3428 (BELIEVE_PCC_PROMOTION): Remove.
3429 (AP_REGNUM): Move to...
3430 * config/vax/nm-vax.h: ...here.
3431 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3432 (vax_breakpoint_from_pc): New function.
3433 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3434 and gdbarch_believe_pcc_promotion.
3436 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3438 * Makefile.in (vax_tdep_h): Define.
3439 (vax-tdep.o): Use $(vax_tdep_h).
3440 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3441 (vax_dump_tdep): New function.
3442 (_initialize_vax_tdep): Register vax_dump_tdep.
3443 * vax-tdep.h: Include osabi.h.
3444 (struct gdbarch_tdep): New.
3446 2002-06-26 Andrew Cagney <cagney@redhat.com>
3448 * frame.h (deprecated_generic_find_dummy_frame): Rename
3449 generic_find_dummy_frame.
3450 * blockframe.c (generic_find_dummy_frame): Make static.
3451 (deprecated_generic_find_dummy_frame): New function.
3452 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3453 generic_find_dummy_frame with deprecated_find_dummy_frame.
3454 (sh64_nofp_frame_init_saved_regs): Ditto.
3455 (sh_fp_frame_init_saved_regs): Ditto.
3456 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3457 (s390_frame_chain): Ditto.
3458 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3460 2002-06-26 Grace Sainsbury <graces@redhat.com>
3462 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3463 gdbarch vector are at the top.
3465 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3466 (FRAME_ARGS_ADDRESS): Remove.
3467 (FRAME_LOCALS_ADDRESS): Remove.
3468 (FRAME_NUM_ARGS): Remove.
3469 (FRAME_ARGS_SKIP): Remove.
3470 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3471 (m68k_gdbarch_init): Add gdbarch initializations for macros
3472 undefined in tm-m68k.h
3474 2002-06-26 Grace Sainsbury <graces@redhat.com>
3476 * monitor.h: Add the function regname to monitor_ops
3477 structure. This way NUM_REGS does not have to be a constant.
3478 * monitor.c (monitor_fetch_register): Added support for regname
3479 function. The function is called if the array regnames is NULL.
3480 (monitor_store_register): Same.
3481 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3483 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3484 cpu32bug_cmds.regname to point to new function.
3485 * abug-rom.c (abug_regname): Same as above.
3486 (init_abug_cmds): Same.
3487 * dbug-rom.c (dbug_regname): Same as above.
3488 (init_dbug_cmds): Same.
3489 * remote-est.c (est_regname): Same.
3490 (init_est_cmds): Same.
3491 * rom68k-rom.c (rom68k_regname): Same.
3492 (init_rom68k_cmds): Same.
3494 2002-06-25 Tom Tromey <tromey@redhat.com>
3496 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3498 2002-06-25 Andrew Cagney <cagney@redhat.com>
3500 * infrun.c (stop_registers): Change variable's type to ``struct
3502 (xmalloc_inferior_status): Delete function.
3503 (free_inferior_status): Delete function.
3504 (normal_stop): Use regcache_cpy.
3505 (struct inferior_status): Change type of fields ``stop_registers''
3506 and ``registers'' to ``struct regcache''.
3507 (write_inferior_status_register): Use regcache_write.
3508 (save_inferior_status): Instead of calling
3509 xmalloc_inferior_status, allocate the inf_status buffer directly.
3510 Use regcache_dup_no_passthrough and regcache_dup to save the
3512 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3513 Replace the stop_registers regcache instead of overriding it. Use
3514 regcache_xfree. Instead of calling free_inferior_status, xfree
3515 the buffer directly.
3516 (discard_inferior_status): Use regcache_xfree. Instead of calling
3517 free_inferior_status, xfree the buffer directly.
3518 (build_infrun): Use regcache_xmalloc.
3519 (_initialize_infrun): Delete redundant call to build_infrun.
3521 * Makefile.in (infcmd.o): Add $(regcache_h).
3523 * infcmd.c: Include "regcache.h".
3524 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3525 obtain the address of `stop_registers' register buffer.
3526 (print_return_value): Ditto.
3528 * inferior.h (struct regcache): Add opaque declaration.
3529 (stop_registers): Change variable's declared type to ``struct
3532 2002-06-24 Tom Tromey <tromey@redhat.com>
3534 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3535 * target.c (initialize_targets): Fixed typo in
3536 trust-readonly-sections `show' documentation.
3538 * main.c: Marked all strings with _().
3540 2002-06-24 Don Howard <dhoward@redhat.com>
3542 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3543 that means max CORE_ADDR+1.
3544 (lookup_mem_region): Ditto.
3545 (mem_info_command): Ditto.
3547 2002-06-24 Grace Sainsbury <graces@redhat.com>
3549 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3550 (REGISTER_BYTES_OK): Remove.
3551 (REGISTER_BYTES): Remove.
3552 (STORE_STRUCT_RETURN): Remove.
3553 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3554 (STORE_RETURN_VALUE): Remove.
3555 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3556 (FRAME_CHAIN): Remove.
3557 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3558 (FRAME_SAVED_PC): Remove.
3559 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3560 (m68k_store_struct_return): Add.
3561 (m68k_deprecated_extract_return_value): Add.
3562 (m68k_deprecated_extract_struct_value_address): Add.
3563 (m68k_store_return_value): Add.
3564 (m68k_frame_chain): Add.
3565 (m68k_frameless_function_invocation): Add.
3566 (m68k_frame_saved_pc): Add.
3567 (m68k_gdbarch_init): added set_gdbarch calls for new
3568 functions and deleted macros.
3570 2002-06-23 Tom Tromey <tromey@redhat.com>
3572 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3573 (ALLDEPFILES): Likewise.
3574 (udiheaders): Removed.
3575 (udip2soc.o): Likewise.
3576 (udi2go32.o): Likewise.
3578 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3580 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3582 * infrun.c (_initialize_infrun): Delete unnecessary call to
3585 * regcache.h: Update comments describing the regcache_cpy family
3587 (regcache_save, regcache_restore): Delete declaration.
3588 (regcache_save_no_passthrough): Delete declaration.
3589 (regcache_restore_no_passthrough): Delete declaration.
3590 * regcache.c (regcache_save): Delete function.
3591 (regcache_save_no_passthrough): Delete function.
3592 (regcache_restore): Delete function.
3593 (regcache_restore_no_passthrough): Delete function.
3595 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3597 * config/m68k/tm-m68k.h: Fix typo.
3598 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3599 (m68k_frame_init_saved_regs): Declare.
3601 2002-06-21 Jim Blandy <jimb@redhat.com>
3603 Remove some vestiges of Harris 88k support.
3604 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3605 register numbering quirk.
3606 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3607 odd symbols occurring in Harris 88k ELF targets.
3609 2002-06-21 Tom Tromey <tromey@redhat.com>
3611 * gdb_locale.h: New file.
3612 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3613 (defs_h): Added gdb_locale.h.
3614 * configure, config.in: Rebuilt.
3615 * configure.in (PACKAGE): Define.
3616 * defs.h: Include gdb_locale.h.
3617 * main.c (captured_main): Call setlocale, bindtextdomain,
3620 2002-06-21 Dave Brolley <brolley@redhat.com>
3622 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3623 * config/frv/frv.mt: New file.
3624 * config/frv/tm-frv.h: New file.
3625 * configure.tgt: Support frv-*-*.
3626 * Makefile.in (frv-tdep.o): New target.
3627 * frv-tdep.c: New file.
3628 * NEWS: Mention frv.
3630 2002-06-21 Dave Brolley <brolley@redhat.com>
3632 * MAINTAINERS: Add self to "Write After Approval" list.
3634 2002-06-21 Grace Sainsbury <graces@redhat.com>
3636 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3637 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3638 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3639 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3640 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3642 * m68k-tdep.c: Include arch-utils.h
3643 (m68k_register_raw_size): Add.
3644 (m68k_register_virtual_size): Add.
3645 (m68k_register_virtual_type): Add.
3646 (m68k_register_name): Add.
3647 (m68k_stack_align): Add.
3648 (m68k_register_byte): Add.
3649 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3652 2002-06-21 Grace Sainsbury <graces@redhat.com>
3654 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3655 m68k_find_saved_regs.
3656 (m68k_pop_frame): Removed saved_regs structure, and replaced
3657 references to it with frame->saved_regs.
3658 (m68k_gdbarch_init): Added function calls to initialize the
3660 (m68k_fix_call_dummy): Add.
3661 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3662 (CALL_DUMMY): Remove.
3663 (CALL_DUMMY_LENGTH): Remove.
3664 (CALL_DUMMY_START_OFFSET): Remove.
3665 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3666 (FIX_CALL_DUMMY): Remove.
3667 (PUSH_DUMMY_FRAME): Remove.
3668 (POP_FRAME): Remove.
3670 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3672 * parse.c (parse_fprintf): New function used to avoid calls to
3673 fprintf in bison parser generated debug code.
3674 * parser-defs.h: Declaration of new parse_fprintf function.
3675 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3676 Set YYDEBUG to 1 by default.
3677 Set YYFPRINTF as parse_fprintf.
3679 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3681 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3683 (pointer_encoding, enum ptr_encoding): New.
3684 (execute_cfa_program): Take care about pointer encoding.
3685 (dwarf2_build_frame_info): Only call parse_frame_info for
3686 .debug_frame and .eh_frame.
3687 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3688 fixed augmentation handling, added relative addressing,
3689 ignore duplicate FDEs. Added comments.
3690 * dwarf2cfi.c: Reindented.
3692 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3694 * event-top.c (command_handler): Don't use space_at_cmd_start
3695 unless there is sbrk() on the host. Assign time and space data
3696 to union fields of the appropriate length.
3698 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3700 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3701 x86_64_register_name. Return type changed to 'const char *'.
3702 (x86_64_register_name2nr): Rename to x86_64_register_number.
3703 (x86_64_gdbarch_init): Update to reflect the change.
3704 * x86-64-tdep.h: Ditto.
3705 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3706 (supply_fpregset): Ditto.
3708 2002-06-19 Andrew Cagney <cagney@redhat.com>
3710 * regcache.h: Update copyright.
3711 (struct regcache, struct gdbarch): Add opaque declarations.
3712 (current_regcache): Declare global variable.
3713 (regcache_read, regcache_write): Add gdbarch parameter.
3714 (regcache_save, regcache_save_no_passthrough)
3715 (regcache_restore, regcache_restore_no_passthrough)
3716 (regcache_dup, regcache_dup_no_passthrough)
3717 (regcache_cpy, regcache_cpy_no_passthrough)
3718 (deprecated_grub_regcache_for_registers)
3719 (deprecated_grub_regcache_for_register_valid)
3720 (regcache_valid_p): Add function declarations.
3722 * regcache.c: Update copyright.
3723 (regcache_descr_handle): New global variable.
3724 (struct regcache_descr): Define.
3725 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3726 (regcache_descr, xfree_regcache_descr): New functions.
3727 (struct regcache): Define.
3728 (regcache_xmalloc, regcache_xfree): New functions.
3729 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3730 (regcache_dup, regcache_dup_no_passthrough): New functions.
3731 (regcache_valid_p, regcache_read_as_address): New functions.
3732 (deprecated_grub_regcache_for_registers): New function.
3733 (deprecated_grub_regcache_for_register_valid): New function.
3734 (current_regcache): New global variable.
3735 (register_buffer): Add regcache parameter. Update calls.
3736 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3737 (read_register_gen, write_register_gen): Update register_buffer
3738 call. Test for legacy_p instead of gdbarch_register_read_p or
3739 gdbarch_register_write_p.
3740 (regcache_collect): Update register_buffer call.
3741 (build_regcache): Rewrite. Use deprecated grub functions.
3742 (regcache_save, regcache_save_no_passthrough): New functions.
3743 (regcache_restore, regcache_restore_no_passthrough): New
3745 (_initialize_regcache): Create the regcache_data_handle. Swap
3746 current_regcache global variable.
3748 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3749 parameter to regcache_read and regcache_write calls.
3750 (sh4_register_read): Ditto.
3751 (sh64_pseudo_register_read): Ditto.
3752 (sh64_register_read): Ditto.
3753 (sh_pseudo_register_write): Ditto.
3754 (sh4_register_write): Ditto.
3755 (sh64_pseudo_register_write): Ditto.
3756 (sh64_register_write): Ditto.
3758 * defs.h (XCALLOC): Define.
3760 2002-06-19 Grace Sainsbury <graces@redhat.com>
3762 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3763 * m68k-tdep.c (m68k_gdbarch_init): Added.
3764 (m68k_dump_tdep): Added.
3766 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3768 * ada-lang.c (fill_in_ada_prototype): Update comment.
3770 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3772 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3774 (mips_abi_string, mips_abi_strings): New.
3775 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3776 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3777 tdep->mips_abi_string. Honor mips_abi_string. Default to
3778 O32 if no ABI is found.
3779 (mips_dump_tdep): Use mips_abi_strings.
3780 (mips_abi_update): New function.
3781 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3782 ``set mips abi'' and ``show mips abi''. Check the size of
3785 2002-06-19 Andrew Cagney <cagney@redhat.com>
3787 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3790 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3792 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3793 current frame using only the first stack size adjustment. All
3794 subsequent size adjustments are not considered to be part of
3795 the "static" part of the current frame.
3796 Compute the address of the saved registers relative to the
3797 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3798 in use in this frame.
3800 2002-06-18 Don Howard <dhoward@redhat.com>
3802 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3803 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3804 suggesting this solution.
3806 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3808 * config/romp/xm-rtbsd.h: Delete file.
3809 * config/romp/rtbsd.mh: Delete file.
3811 2002-06-18 Keith Seitz <keiths@redhat.com>
3813 * breakpoint.c (condition_command): Post breakpoint_modify
3814 when a condition is added to an existing breakpoint.
3815 (commands_command): Likewise for commands.
3816 (set_ignore_count): Likewise for ignore counts.
3817 If no tty, do not simply return, still need to send event
3819 (ignore_command): Only print a newline if the command came
3821 Don't call breakpoints_changed, since this is now properly
3822 handled by set_ignore_count.
3824 2002-06-18 Andrew Cagney <cagney@redhat.com>
3826 * MAINTAINERS: Note that cris-elf target can be compiled with
3828 * cris-tdep.c (cris_register_name): Make return type constant.
3829 (cris_breakpoint_from_pc): Ditto.
3831 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3833 * frame.h (struct frame_info): Change type of context to
3836 2002-06-17 Andrew Cagney <cagney@redhat.com>
3838 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3840 * gdbarch.h, gdbarch.c: Regenerate.
3841 * config/mips/tm-mips.h (mips_register_name): Update.
3842 * i386-tdep.h (i386_register_name): Update.
3843 * mips-tdep.c (mips_register_name): Update
3844 * alpha-tdep.c (alpha_register_name): Update.
3845 * arch-utils.c (legacy_register_name): Update.
3846 * arch-utils.h (legacy_register_name): Update.
3847 * avr-tdep.c (avr_register_name): Update.
3848 * ia64-tdep.c (ia64_register_name): Update.
3849 * i386-tdep.c (i386_register_name): Update.
3850 * sparc-tdep.c (sparc32_register_name): Update.
3851 (sparc64_register_name): Update.
3852 (sparclite_register_name): Update.
3853 (sparclet_register_name): Update.
3854 * sh-tdep.c (sh_generic_register_name): Update.
3855 (sh_sh_register_name): Update.
3856 (sh_sh3_register_name): Update.
3857 (sh_sh3e_register_name): Update.
3858 (sh_sh_dsp_register_name): Update.
3859 (sh_sh3_dsp_register_name): Update.
3860 (sh_sh4_register_name): Update.
3861 (sh_sh64_register_name): Update.
3862 * s390-tdep.c (s390_register_name): Update.
3863 * rs6000-tdep.c (rs6000_register_name): Update.
3864 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3865 (ns32k_register_name_32382): Update.
3866 * d10v-tdep.c (d10v_ts2_register_name): Update.
3867 (d10v_ts3_register_name): Update.
3868 * xstormy16-tdep.c (xstormy16_register_name): Update.
3869 * vax-tdep.c (vax_register_name): Update.
3870 * v850-tdep.c (v850_register_name): Update.
3871 * m68hc11-tdep.c (m68hc11_register_name): Update.
3872 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3873 (am33_register_name): Update.
3875 2002-06-17 Grace Sainsbury <graces@redhat.com>
3877 * m68k-tdep.c: Reindented.
3879 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3881 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3882 list of predefined types.
3884 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3886 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3887 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3888 REGISTER_CONVERT_TO_RAW): Remove defines.
3889 (i386_register_virtual_type, i386_register_convertible,
3890 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3892 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3893 macros mentioned above.
3895 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3896 (i386lynx_saved_pc_after_call): Remove prototype.
3897 * i386ly-tdep.c: Include "i386-tdep.h".
3898 (i386lynx_saved_pc_after_call): Make static. Use
3899 read_memory_nobpt instead of read_memory. Use
3900 read_memory_unsigned_integer instead of read_memory_integer.
3901 (i386lynx_init_abi): New function.
3902 (i386lynx_coff_osabi_sniffer): New function.
3903 (_initialize_i386bsd_tdep): New function.
3905 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3906 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3907 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3908 (i386_fix_call_dummy): Remove prototype.
3909 * i386-tdep.c (i386_call_dummy_words): New variable.
3910 (i386_gdbarch_init): Adjust for removal of the
3911 macros mentioned above.
3913 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3915 * command.h (add_setshow_auto_boolean_cmd): Replace
3916 add_set_auto_boolean_cmd.
3917 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3918 add_set_auto_boolean_cmd.
3919 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3920 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3921 mask-address'' command.
3922 (show_mask_address): Add cmd parameter.
3923 * remote.c (add_packet_config_cmd): Update. Change type of
3924 set_func and show_func to cmd_sfunc_ftype.
3925 (_initialize_remote): Update `set remote Z-packet'
3926 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3927 (show_remote_protocol_e_packet_cmd): Ditto.
3928 (show_remote_protocol_E_packet_cmd): Ditto.
3929 (show_remote_protocol_P_packet_cmd): Ditto.
3930 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3931 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3932 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3933 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3934 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3935 (show_remote_protocol_Z_packet_cmd): Ditto.
3936 (show_remote_protocol_binary_download_cmd): Ditto.
3937 (show_remote_cmd): Pass NULL to all of above.
3939 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3941 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3942 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3943 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3944 POP_FRAME): Remove defines.
3945 (i386_push_arguments, i386_store_struct_return,
3946 i386_extract_return_value, i386_store_return_value,
3947 i386_extract_struct_value_address, i386_push_dummy_frame,
3948 i386_pop_frame): Renove prototypes.
3949 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3950 macros mentioned above.
3952 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3954 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3955 add_set_boolean_cmd.
3956 (add_setshow_cmd): New function.
3957 * command.h (add_setshow_boolean_cmd): Replace
3958 add_set_boolean_cmd.
3959 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3960 and ``set rdiromatzero''.
3961 * maint.c (_initialize_maint_cmds): Update commented out code.
3962 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3963 * target.c (initialize_targets): Update `set
3964 trust-readonly-sections'.
3965 * remote.c (_initialize_remote): Update `set remotebreak'.
3967 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3969 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3970 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3971 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3972 fit into multi-arch framework.
3973 (i386_breakpoint_from_pc): New function.
3974 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3977 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3978 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3979 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3980 (i386_frameless_function_invocation, i386_frame_num_args,
3981 i386_frame_init_saved_regs): Remove prototypes.
3982 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3983 macros mentioned above.
3985 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3987 * cli/cli-decode.c (set_cmd_cfunc): Update.
3988 (set_cmd_sfunc): Update.
3989 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3990 (set_cmd_sfunc, set_cmd_cfunc): Update.
3991 * cli/cli-decode.h: Update.
3993 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3995 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3996 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3998 2002-06-15 Andrew Cagney <ac131313@redhat.com>
4000 * defs.h (auto_boolean): Declare enum.
4001 * command.h (cmd_auto_boolean): Delete enum.
4002 * mips-tdep.c (mask_address_var): Update.
4003 (mips_mask_address_p): Update.
4004 (show_mask_address): Update.
4005 * remote.c (struct packet_config): Update.
4006 (update_packet_config): Update.
4007 (show_packet_config_cmd): Update.
4008 (packet_ok): Update.
4009 (add_packet_config_cmd): Update.
4010 (_initialize_remote):
4011 * command.h: Update.
4012 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
4013 (do_setshow_command): Update.
4014 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
4015 * cli/cli-decode.h: Update.
4017 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4019 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
4020 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
4021 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
4022 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
4023 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
4024 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
4026 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
4027 list of DJGPP COFF targets.
4029 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
4030 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
4031 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
4032 (FP0_REGNUM): Remove define.
4033 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
4034 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
4035 (i386_register_virtual_size): Remove protoype.
4036 * i386-tdep.c (i386_register_virtual_size): Removed.
4037 (i386_extract_return_value, i386_store_return_value): Use
4038 FP0_REGNUM instead of NUM_FREGS to determine whether the
4039 floating-point registers are available.
4040 (i386_gdbarch_init): Tweak FIXME about FPU registers.
4041 Adjust for removal of macros mentioned above.
4043 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4045 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
4047 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
4049 (supply_gregset, fill_gregset): Remove use of register keyword and
4050 remove declaration for regmap. Use I386_NUM_GREGS instead of
4051 NUM_REGS and NUM_FREGS.
4052 (FPREGSET_FSAVE_OFFSET): Remove.
4053 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
4054 NUM_FREGS to determine whether the floating-point registers are
4057 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
4058 gnu_store_registers): Replace usage of NUM_GREGS with
4061 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
4062 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
4063 usage of NUM_GREGS with I386_NUM_GREGS.
4065 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
4067 * i386bsd-nat.c: Include "i386-tdep.h".
4068 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
4071 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
4072 and associated comment. They no longer make any sense, since we
4073 don't use this file anymore on Linux.
4075 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
4076 * i386-tdep.c (i386_register_offset, i386_register_size): Use
4077 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
4078 elements in these arrays.
4079 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
4082 2002-06-15 Mark Kettenis <kettenis@gnu.org>
4084 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
4085 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
4087 2002-06-14 Andrew Cagney <cagney@redhat.com>
4089 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
4090 EXTRACT_RETURN_VALUE.
4091 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
4092 EXTRACT_STRUCT_VALUE_ADDRESS.
4093 * gdbarch.h, gdbarch.c: Regenerate.
4095 * values.c (value_being_returned): Handle
4096 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
4097 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
4099 * arm-linux-tdep.c (arm_linux_init_abi): Update.
4100 * arm-tdep.c (arm_gdbarch_init): Update.
4101 * avr-tdep.c (avr_gdbarch_init): Update.
4102 * cris-tdep.c (cris_gdbarch_init): Update.
4103 * d10v-tdep.c (d10v_gdbarch_init): Update.
4104 * ia64-tdep.c (ia64_gdbarch_init): Update.
4105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4106 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4107 * s390-tdep.c (s390_gdbarch_init): Update.
4108 * sh-tdep.c (sh_gdbarch_init): Update.
4109 * s390-tdep.c (s390_gdbarch_init): Update.
4110 * sparc-tdep.c (sparc_gdbarch_init): Update.
4111 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4112 * v850-tdep.c (v850_gdbarch_init): Update.
4113 * vax-tdep.c (vax_gdbarch_init): Update.
4114 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4115 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4117 * config/arc/tm-arc.h: Update.
4118 * config/d30v/tm-d30v.h: Update.
4119 * config/fr30/tm-fr30.h: Update.
4120 * config/h8300/tm-h8300.h: Update.
4121 * config/h8500/tm-h8500.h: Update.
4122 * config/i386/tm-i386.h: Update.
4123 * config/i386/tm-ptx.h: Update.
4124 * config/i386/tm-symmetry.h: Update.
4125 * config/i960/tm-i960.h: Update.
4126 * config/m32r/tm-m32r.h: Update.
4127 * config/m68k/tm-delta68.h: Update.
4128 * config/m68k/tm-linux.h: Update.
4129 * config/m68k/tm-m68k.h: Update.
4130 * config/m88k/tm-m88k.h: Update.
4131 * config/mcore/tm-mcore.h: Update.
4132 * config/mips/tm-mips.h: Update.
4133 * config/mn10200/tm-mn10200.h: Update.
4134 * config/pa/tm-hppa.h: Update.
4135 * config/pa/tm-hppa64.h: Update.
4136 * config/sparc/tm-sp64.h: Update.
4137 * config/sparc/tm-sparc.h: Update.
4138 * config/sparc/tm-sparclet.h: Update.
4139 * config/z8k/tm-z8k.h: Update.
4141 2002-06-14 Andrew Cagney <cagney@redhat.com>
4143 * Makefile.in (i386_linux_tdep_h): Define.
4144 (i386_tdep_h, i387_tdep_h): Define.
4145 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
4146 $(i386_tdep_h) and $(i387_tdep_h).
4147 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4149 2002-06-14 Mark Kettenis <kettenis@gnu.org>
4151 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
4152 Already covered by the default.
4154 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
4155 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
4156 (i386_gdbarch_init): Initialize long_double_format and long_double
4159 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
4160 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
4162 * config/i386/i386sol2.mh: ... here.
4163 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
4164 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
4165 (SIGCONTEXT_PC_OFFSET): Remove define.
4166 (IN_SIGTRAMP): Remove define.
4167 * i386-sol2-tdep.c: New file.
4169 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
4170 * config/i386/tm-i386nw.h: Removed.
4172 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
4173 USE_STRUCT_CONVENTION): Remove defines.
4174 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4175 (get_longjmp_target): Remove prototype.
4176 (IN_SIGTRAMP): Remove define.
4177 (i386bsd_in_sigtramp): Remove prototype.
4178 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4179 function. Update comment accordingly
4180 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4181 (FRAME_SAVED_PC): Remove define.
4182 (i386bsd_frame_saved_pc): Remove prototype.
4183 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
4184 GET_LONGJMP_TARGET): Remove defines.
4185 (get_longjmp_target): Remove prototype.
4186 (IN_SIGTRAMP): Remove define.
4187 (i386bsd_in_sigtramp): Remove prototype.
4188 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
4189 function. Update comment accordingly
4190 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
4191 (FRAME_SAVED_PC): Remove define.
4192 (i386bsd_frame_saved_pc): Remove prototype.
4193 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
4195 (USE_STRUCT_CONVENTION): Remove prototype.
4196 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
4198 (_initialize_i386bsd_nat): Revise logic to determine some
4199 constants at compile time when compiling a native GDB. Warn if
4200 things don't match up with what we expect.
4201 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
4203 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
4204 to use date stored in `struct gdbarch_tdep'.
4205 (i386bsd_sigcontext_offset): Remove varaible.
4206 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
4207 stored in `struct gdbarch_tdep'.
4208 (i386bsd_frame_saved_pc): Make static.
4209 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4210 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4211 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4212 i386fbsd4_sc_pc_offset): New variables.
4213 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4214 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4216 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4218 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4219 Modify the value of i386fbsd_sigtramp_start and
4220 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4221 i386fbsd_sigtramp_end.
4222 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4225 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4226 define to i386-linux-tdep.h.
4227 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4228 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4230 (i386_linux_register_name, i386_linux_register_byte,
4231 i386_linux_register_raw_size): Remove prototypes.
4232 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4233 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4234 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4235 TARGET_WRITE_PC): Remove defines.
4236 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4237 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4238 i386_linux_write_pc): Remove prototypes.
4239 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4240 (get_longjmp_target): Remove prototype.
4241 * i386-linux-tdep.h: New file.
4242 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4243 * i386-linux-tdep.c: Include "i386-tdep.h" and
4244 "i386-linux-tdep.h".
4245 (i386_linux_register_name, i386_linux_register_byte,
4246 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4247 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4249 (i386_linux_init_abi): New function.
4250 (_initialize_i386_linux_tdep): New function.
4252 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4253 (i386_saved_pc_after_call): Remove prototype.
4254 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4255 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4256 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4257 (i386_register_name, i386_stab_reg_to_regnum,
4258 i386_dwarf_reg_to_regnum): Remove prototypes.
4259 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4260 SIZEOF_SSE_REGS): Remove defines.
4261 (REGISTER_BYTES): Remove define.
4262 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4263 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4264 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4265 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4266 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4267 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4268 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4269 (get_longjmp_target): Remove prototype.
4270 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4271 (sigtramp_saved_pc): Remove define.
4272 (i386v4_sigtramp_saved_pc): Remove prototype.
4273 * config/i386/tm-go32.h (FRAME_CHAIN,
4274 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4275 (i386go32_frame_saved_pc): Remove prototype.
4276 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4277 (get_longjmp_target): Remove prototype.
4278 * i386-tdep.h: Include "osabi.h".
4279 (enum i386_abi): Removed.
4280 (enum struct_return): New enum.
4281 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4282 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4283 sc_pc_offset members.
4284 (i386_gdbarch_register_os_abi): Remove prototype.
4285 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4286 I386_SSE_NUM_REGS): New defines.
4287 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4288 I386_SSE_SIZEOF_REGS): New defines.
4289 (i386_register_name, i386_register_byte, i386_register_raw_size):
4291 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4292 (i386bsd_sigtramp_saved_pc): New prototype.
4293 * i386-tdep.c: Don't include "elf-bfd.h".
4294 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4295 i386_frame_chain, i386_saved_pc_after_call): Make static.
4296 (i386_frame_saved_pc): Rewrite to call architecture dependent
4297 function to deal with signal handlers. Make static.
4298 (i386go32_frame_saved_pc): Removed.
4299 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4301 (i386_get_longjmp_target): New function.
4302 (default_struct_convention, pcc_struct_convention,
4303 reg_struct_convention, valid_conventions, struct_convention): New
4305 (i386_use_struct_convention): New function.
4306 (i386v4_sigtramp_saved_pc): Renamed to
4307 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4308 (i386_pc_in_sigtramp): New function.
4309 (i386_abi_names): Removed.
4310 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4311 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4313 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4314 i386_gdbarch_register_os_abi): Removed.
4315 (struct i386_abi_handler): Removed.
4316 (i386_abi_handler_list): Removed.
4317 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4319 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4320 i386_nw_init_abi): New functions.
4321 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4322 Use set_gdbarch_xxx() calls instead of relying on macros for a
4324 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4325 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4326 Register the various architecture variants defined in this file.
4328 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4330 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4331 (struct main_type): Remove arg_types member. Update comments for
4333 (TYPE_ARG_TYPES): Remove.
4334 (TYPE_FN_FIELD_ARGS): Update.
4335 (smash_to_method_type): Update prototype.
4337 * c-typeprint.c (cp_type_print_method_args): Take method type
4338 instead of argument list. Use new argument layout. Simplify.
4339 (c_type_print_args): Use new argument layout. Simplify.
4340 (c_type_print_base): Update call to cp_type_print_method_args.
4341 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4342 argument; use die->type instead. Update call to
4343 smash_to_method_type.
4344 (read_structure_scope): Update call to dwarf2_add_member_fn.
4345 * gdbtypes.c (allocate_stub_method): Update comment.
4346 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4347 Use new argument layout.
4348 (check_stub_method): Use new argument layout. Don't count
4349 void as an argument.
4350 (print_arg_types): Update comments. Use new argument layout.
4351 (recursive_dump_type): Don't print arg_types member.
4352 * hpread.c (hpread_read_struct_type): Use new argument layout.
4353 (fixup_class_method_type): Likewise.
4354 (hpread_type_lookup): Likewise.
4355 * stabsread.c (read_type): Update calls to read_args and
4356 smash_to_method_type.
4357 (read_args): Use new argument layout. Simplify.
4358 * valops.c (typecmp): Use new argument layout. Update parameters
4359 and comments. Simplify.
4360 (hand_function_call): Use new argument layout.
4361 (search_struct_method): Update call to typecmp.
4362 (find_overload_match): Use new argument layout.
4364 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4366 * NEWS: Mention multithreaded debug support for gdbserver.
4368 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4370 * MAINTAINERS: Mention NEWS.
4372 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4374 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4375 (struct mips_objfile_private, compare_pdr_entries): New.
4376 (non_heuristic_proc_desc): Read the ".pdr" section if it
4379 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4381 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4382 (arm_debug): New static variable.
4383 (_initialize_arm_tdep): Add ``set debug arm'' command.
4385 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4387 * Makefile.in (sim_arm_h): Define.
4388 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4389 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4390 (arm_register_sim_regno): New function, map an internal REGNUM
4391 onto a simulator register number.
4392 (arm_gdbarch_init): Set register_sim_regno.
4394 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4396 * MAINTAINERS: Add self.
4398 2002-06-11 Jim Blandy <jimb@redhat.com>
4400 * source.c (source_info): Mention whether the symtab has
4401 information about preprocessor macros.
4403 Call the command `info macro', not `show macro'.
4404 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4406 (_initialize_macrocmd): Register `info_macro_command' in
4407 `infolist', not `showlist'.
4409 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4411 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4412 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4413 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4414 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4415 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4417 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4418 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4419 (_initialize_mips_tdep): Remove dead code.
4420 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4421 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4422 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4423 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4424 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4425 MIPS_LAST_FP_ARG_REGNUM): Remove.
4427 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4429 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4430 (unwind_tmp_obstack_free, parse_frame_info)
4431 (update_context, cfi_read_fp, cfi_write_fp)
4432 (cfi_frame_chain, cfi_init_extra_frame_info)
4433 (cfi_virtual_frame_pointer): Use the above function.
4434 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4436 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4438 * v850-tdep.c (v850_type_is_scalar): New function.
4439 (v850_use_struct_convention): Match current gcc implementation
4440 as close as possible.
4441 (v850_push_arguments): Fix stack_offset handling. Don't write
4442 struct_addr into register. This is done by v850_store_struct_return.
4443 (v850_extract_return_value): Care for structs.
4444 (v850_store_return_value): Ditto.
4445 (v850_store_struct_return): Actually write address.
4447 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4449 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4450 without debug information too.
4452 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4454 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4455 Make multi-arch pure.
4456 * gdbarch.h, gdbarch.c: Re-generate.
4457 * arm-tdep.c (arm_print_float_info): Update.
4458 * arch-utils.h (default_print_float_info): Update.
4459 * arch-utils.c (default_print_float_info): Update.
4460 * infcmd.c (float_info): Update call.
4462 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4464 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4465 the front of the initialize list.
4467 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4469 * infrun.c (struct inferior_status): Replace fields
4470 selected_frame_address and selected_level with field
4472 (save_inferior_status): Update. Use get_frame_id.
4473 (struct restore_selected_frame_args): Delete.
4474 (restore_selected_frame): Update. Use frame_find_by_id.
4475 (restore_inferior_status): Update.
4477 * breakpoint.h (struct breakpoint): Change type of
4478 watchpoint_frame to frame_id.
4479 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4480 call to get_current_frame.
4481 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4483 (watchpoint_check): Use frame_find_by_id.
4485 * frame.h (record_selected_frame): Delete declaration.
4486 * stack.c (record_selected_frame): Delete function.
4488 * frame.h (struct frame_id): Define.
4489 (get_frame_id): Declare.
4490 (frame_find_by_id): Declare.
4491 * frame.c (frame_find_by_id): New function.
4492 (get_frame_id): New function.
4494 2002-06-10 Andrey Volkov <avolkov@transas.com>
4496 * ser-e7kpc.c: Fix duplicated define and call of
4497 _initialize_ser_e7000pc
4499 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4501 * signals/signals.c (target_signal_from_host): Fix #ifdef
4503 (do_target_signal_to_host): Likewise.
4505 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4507 * mips-tdep.c (mips_find_abi_section): New function.
4508 (mips_gdbarch_init): Call it.
4510 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4512 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4513 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4514 after Andrew's 2002-06-08 gdbarch change.
4516 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4518 * i386-linux-nat.c (suppy_gregset): Don't supply
4519 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4521 (fill_gregset): Don't fetch it under the same circumstances.
4523 2002-06-09 Andrew Cagney <cagney@redhat.com>
4525 * Makefile.in (callback_h): Define.
4526 (remote_sim_h): Update path to remote-sim.h.
4527 (remote-rdp.o): Add $(callback_h).
4528 (remote-sim.o): Use $(callback_h).
4529 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4530 * remote-rdp.c: Include "gdb/callback.h".
4532 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4534 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4535 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4537 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4539 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4540 * rdi-share/serpardr.c: Ditto.
4541 * rdi-share/unixcomm.c: Ditto.
4542 * rdi-share/serdrv.c: Ditto.
4543 * rdi-share/hostchan.h: Ditto.
4544 * rdi-share/hostchan.c: Ditto.
4545 * rdi-share/host.h: Ditto.
4546 * rdi-share/devsw.c: Ditto.
4548 * objfiles.h: Change type of obj_private to void pointer.
4549 * pa64solib.c: Update copyright. Don't include "assert.h", use
4550 strcmp instead of STREQ, use LONGEST, do not use PTR
4551 * somsolib.c: Ditto.
4553 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4554 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4555 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4557 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4559 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4560 (default_get_saved_register): Delete function.
4561 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4562 generic_unwind_get_saved_register.
4563 * gdbarch.h, gdbarch.c: Re-generate.
4565 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4567 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4568 generic_func_frame_chain_valid.
4569 * gdbarch.h, gdbarch.c: Re-generate.
4570 * blockframe.c (generic_func_frame_chain_valid): Only check
4571 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4572 passing FP to PC_IN_CALL_DUMMY.
4575 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4577 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4578 (register_gdbarch_data): Initialize init_p.
4579 (gdbarch_data): Initialize data pointer using the init function.
4580 (init_gdbarch_data): Delete function.
4581 (gdbarch_update_p): Update.
4582 (initialize_non_multiarch): Update.
4583 (struct gdbarch): Add field initialized_p.
4584 * gdbarch.h, gdbarch.c: Re-generate.
4586 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4588 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4589 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4590 better do the things actually here.
4591 * x86-64-tdep.c (x86_64_register_name2nr): New.
4592 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4593 (x86_64_gdbarch_init): Respect the above change.
4594 * x86-64-tdep.h (x86_64_register_name2nr)
4595 (x86_64_register_nr2name): Add prototypes.
4596 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4598 2002-06-06 Michael Snyder <msnyder@redhat.com>
4600 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4601 Delete extra braces and re-indent.
4602 (d10v_store_return_value): Char return values
4603 must be shifted over by one byte in R0.
4604 (d10v_extract_return_value): Delete extra braces, re-indent.
4606 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4608 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4609 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4610 (d10v_integer_to_address): Rewrite.
4611 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4612 the d10v specific functions which take care of converting to the
4615 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4617 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4618 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4620 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4622 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4624 * config/tm-linux.h: Ditto.
4625 * config/alpha/tm-alphalinux.h: Ditto.
4626 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4627 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4628 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4629 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4630 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4631 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4632 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4633 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4634 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4635 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4636 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4637 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4638 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4639 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4640 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4641 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4642 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4643 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4644 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4645 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4646 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4647 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4648 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4649 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4650 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4651 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4652 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4653 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4654 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4655 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4656 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4657 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4658 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4659 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4660 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4661 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4662 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4664 2002-05-04 Aidan Skinner <aidan@velvet.net>
4666 * ada-exp.tab.c: New file
4667 * ada-exp.y: New file
4668 * ada-lang.c: New file
4669 * ada-lang.h: New file
4670 * ada-lex.c: New file
4671 * ada-lex.l: New file
4672 * ada-tasks.c: New file
4673 * ada-typeprint.c: New file
4674 * ada-valprint.c: New file
4676 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4678 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4679 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4681 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4683 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4684 insetead of ppc-linux-tdep.o.
4685 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4686 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4688 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4690 2002-05-07 Christian Groessler <chris@groessler.org>
4691 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4692 bit register contents for little endian hosts.
4694 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4696 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4699 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4701 * gdbarch.h: Regenerate.
4703 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4705 * MAINTAINERS: Add everyone to write-after-approval list.
4707 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4709 * stack.c (frame_info): Use frame_register_unwind instead of
4710 saved_regs. Mention when the SP is on the stack or in a register.
4712 * frame.h (frame_register_unwind_ftype): Define. Document.
4713 (struct frame_info): Add field register_unwind and
4714 register_unwind_cache.
4715 (frame_register_unwind): Declare.
4716 (generic_unwind_get_saved_register): Declare.
4718 * frame.c (frame_register_unwind): New function.
4719 (generic_unwind_get_saved_register): New function.
4721 * blockframe.c (generic_call_dummy_register_unwind): New function.
4722 (frame_saved_regs_register_unwind): New function.
4723 (set_unwind_by_pc): New function.
4724 (create_new_frame): New function.
4725 (get_prev_frame): New function.
4727 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4729 * a29k-share/: Delete directory.
4730 * remote-vx29k.c: Delete file.
4732 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4734 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4735 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4737 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4739 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4740 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4743 (sparcnbsd-tdep.o): New dependency lists.
4744 * NEWS: Note new UltraSPARC NetBSD native configuration.
4745 * configure.host (sparc64-*-netbsd*): New host.
4746 * configure.tgt (sparc-*-netbsdelf*)
4747 (sparc-*-netbsd*): Set gdb_target to nbsd.
4748 (sparc64-*-netbsd*): New target.
4749 * sparc64nbsd-nat.c: New file.
4750 * sparcnbsd-nat.c: New file.
4751 * sparcnbsd-tdep.c: New file.
4752 * sparcnbsd-tdep.h: New file.
4753 * config/sparc/nbsd.mt: New file.
4754 * config/sparc/nbsd64.mh: New file.
4755 * config/sparc/nbsd64.mt: New file.
4756 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4757 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4759 * config/sparc/nbsdaout.mt: Remove.
4760 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4761 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4763 * config/sparc/nbsdelf.mt: Remove.
4764 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4765 sparc-nat.c compatiblity defines.
4766 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4767 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4768 * config/sparc/tm-nbsd64.h: New file.
4769 * config/sparc/tm-nbsdaout.h: Remove.
4770 * config/sparc/xm-nbsd.h: Remove.
4772 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4774 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4775 * sparc-tdep.c: Include osabi.h.
4776 (gdbarch_tdep): Add osabi member.
4777 (_initialize_sparc_tdep): Use gdbarch_register.
4778 (sparc_gdbarch_init): Use generic OS ABI framework.
4779 (sparc_dump_tdep): New function.
4781 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4783 * corefile.c (do_captured_read_memory_integer): Return non-zero
4785 (safe_read_memory_integer): Copy result of memory read when
4786 status is non-zero. Also, add comments.
4788 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4790 * Makefile.in (ppc_tdep_h): Define.
4793 (rs6000-tdep.o): Use $(ppc_tdep_h).
4796 (ppcnbsd-tdep.o): New dependency lists.
4797 * ppc-tdep.h: Use generic OS ABI framework.
4798 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4799 (ppc_linux_init_abi): New functions.
4800 (ppc_sysv_abi_broken_use_struct_convention)
4801 (ppc_sysv_abi_use_struct_convention)
4802 (ppc_sysv_abi_push_arguments): Move to...
4803 * ppc-sysv-tdep.c: ...here.
4804 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4805 * rs6000-tdep.c (process_note_abi_tag_sections)
4806 (get_elfosabi): Remove.
4807 (rs6000_gdbarch_init): Use generic OS ABI framework.
4808 (rs6000_dump_tdep): New function.
4809 (_initialize_rs6000_tdep): Use gdbarch_register.
4810 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4811 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4812 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4813 of ppc-linux-tdep.o.
4814 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4815 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4816 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4817 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4818 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4819 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4821 2002-05-29 Jim Blandy <jimb@redhat.com>
4823 * macroscope.c (default_macro_scope): Put `void' in empty argument
4826 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4828 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4829 * arch-utils.c: Include "sim-regno.h".
4830 * gdbarch.sh: Don't include "sim-regno.h".
4831 * gdbarch.h, gdbarch.c: Regenerate.
4832 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4834 * arch-utils.h (legacy_register_sim_regno): To here.
4835 * remote-sim.c (legacy_register_sim_regno): Move function from
4837 * arch-utils.c (legacy_register_sim_regno): To here.
4839 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4841 * sim-regno.h: New file.
4842 * Makefile.in (sim_regno_h): Define.
4843 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4844 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4845 (legacy_register_sim_regno): New function.
4846 (one2one_register_sim_regno): New function.
4847 (gdbsim_fetch_register): Rewrite.
4848 (gdbsim_store_register): Only store a register when
4849 REGISTER_SIM_REGNO is valid.
4850 * d10v-tdep.c: Include "sim-regno.h".
4851 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4852 (d10v_ts3_register_sim_regno): Ditto.
4853 * gdbarch.sh: Include "sim-regno.h".
4854 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4855 * gdbarch.h, gdbarch.c: Regenerate.
4856 * arch-utils.h (default_register_sim_regno): Delete declaration.
4857 * arch-utils.c (default_register_sim_regno): Delete function.
4859 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4861 * ppcnbsd-nat.c: Rewrite.
4862 * ppcnbsd-tdep.c: New file.
4863 * ppcnbsd-tdep.h: New file.
4864 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4865 solib.o, and solib-svr4.o.
4866 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4867 nbsd-tdep.o, and corelow.o.
4869 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4871 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4872 `tr' and `sed'. Mention that `broken' targets are not expected to
4875 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4877 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4878 Let PC point right after the prologue before looking up symbols.
4880 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4882 * i386-tdep.c (i386_register_virtual_type): Return
4883 builtin_type_vec128i for SSE registers.
4885 * gdbtypes.h (builtin_type_vec128i): Declare.
4887 * gdbtypes.c (build_builtin_type_vec128i): New function.
4888 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4889 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4890 (build_gdbtypes): Initialize new builtin vector types.
4891 (_initialize_gdbtypes): Register new vector types with gdbarch.
4893 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4895 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4896 since it has been multi-arch'd.
4897 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4898 Move Alpha and VAX multi-arch news entries to same section
4899 as other multi-arch news.
4901 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4903 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4904 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4905 static. Rename some register numbers to put them in ns32k-tdep
4907 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4908 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4910 (_initialize_ns32k_tdep): Use gdbarch_register.
4911 * ns32k-tdep.h: New file.
4912 * ns32knbsd-tdep.c: New file.
4913 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4914 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4915 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4916 REGISTER_BYTES, REGISTER_BYTE): Remove.
4917 * config/ns32k/tm-ns32k.h: New file.
4918 * config/ns32k/tm-umax.h: Remove.
4920 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4922 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4923 ns32k_store_struct_return, ns32k_extract_return_value,
4924 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4926 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4927 ns32k_saved_pc_after_call.
4928 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4929 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4930 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4931 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4932 ns32k_extract_struct_value_address.
4934 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4936 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4937 ns32k_fix_call_dummy): New.
4938 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4939 ns32k_call_dummy_words.
4940 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4941 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4942 CALL_DUMMY_NARGS): Remove.
4943 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4945 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4947 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4948 ns32k_frame_saved_pc, ns32k_frame_args_address,
4949 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4950 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4951 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4952 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4953 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4954 (BREAKPOINT): Remove..
4955 (FRAME_CHAIN): Define as ns32k_frame_chain.
4956 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4957 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4958 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4959 (FRAME_FIND_SAVED_REGS): Remove.
4960 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4961 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4962 (POP_FRAME): Define as ns32k_pop_frame.
4964 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4966 * ns32k-tdep.c (ns32k_register_byte_32082,
4967 ns32k_register_byte_32382, ns32k_register_raw_size,
4968 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4970 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4971 ns32k_register_byte_32382.
4972 * config/ns32k/tm-umax.h: Update copyright years.
4973 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4974 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4975 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4976 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4977 (ns32k_get_enter_addr): Fix prototype.
4979 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4981 * ns32k-tdep.c: Update copyright years.
4982 (ns32k_register_name_32082): New function.
4983 (ns32k_register_name_32382): Ditto.
4984 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4985 (REGISTER_NAME): Define as ns32k_register_name_32382.
4986 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4987 (REGISTER_NAME): Define as ns32k_register_name_32082.
4989 2002-05-24 Jim Blandy <jimb@redhat.com>
4991 * dwarf2read.c (free_line_header): Use xfree, not free.
4993 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4995 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4996 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4998 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5000 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
5002 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5004 From Ross Alexander at NEC Europe:
5005 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
5007 2002-05-23 Michael Snyder <msnyder@redhat.com>
5009 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
5010 for input, rather than parse_and_eval_address.
5012 2002-05-23 Andrew Cagney <ac131313@redhat.com>
5014 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
5015 * Makefile.in (sim_d10v_h): Update definition.
5017 2002-05-24 Andrew Cagney <cagney@redhat.com>
5019 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
5020 change `2002-05-22 Michael Snyder' below.
5021 (d10v_push_arguments): Ditto.
5022 (d10v_extract_return_value): Ditto.
5024 2002-05-23 Jim Blandy <jimb@redhat.com>
5026 * macrotab.c (check_for_redefinition): Don't complain if the new
5027 definition is the same as the previous one. Take more arguments
5028 to allow the comparison.
5029 (macro_define_object, macro_define_function): Pass more arguments
5030 to check_for_redefinition.
5032 2002-05-22 Michael Snyder <msnyder@redhat.com>
5034 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
5035 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
5036 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
5037 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
5038 Don't bail if return_pc is PC_IN_CALL_DUMMY.
5039 Add a temp variable to save a call (and a memory read).
5040 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
5041 if possible (so that PC_IN_CALL_DUMMY will work).
5043 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
5045 * MAINTAINERS: Remove status `OBSOLETE' from v850.
5047 2002-05-22 Michal Ludvig <mludvig@suse.cz>
5049 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
5051 (dwarf2_build_frame_info): Corrected handling of eh_frame.
5052 (dwarf2_build_frame_info): Add offset to fde->initial_location
5053 so that frames of shared libraries are mapped correctly.
5054 (execute_stack_op): Change type of 'result' from ULONGEST to
5057 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5059 * config/alpha/tm-nbsd.h: Include solib.h.
5061 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5063 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
5064 assumptions about the host's byte order.
5066 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5068 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
5070 * alphanbsd-tdep.c: Include solib-svr4.h.
5071 * shnbsd-tdep.c: Ditto.
5073 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
5075 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
5076 nbsd-tdep.h to dependency list.
5077 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
5078 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
5079 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
5080 nbsdaout.mh and nbsdelf.mh consistently.
5081 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
5082 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
5083 nbsdaout.mt and nbsdelf.mh consistently.
5084 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
5085 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
5086 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5087 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
5088 a.out shared library stuff from here...
5089 * config/nm-nbsdaout.h: ...to here.
5090 * config/tm-nbsd.h: Remove.
5091 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
5092 * config/arm/nbsd.mh: Remove.
5093 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
5095 * config/arm/nbsdaout.mh: New file.
5096 * config/arm/nbsdelf.mh: New file.
5097 * config/arm/nm-nbsdaout.h: New file.
5098 * config/i386/nbsd.mh: Remove.
5099 * config/i386/nbsd.mt: Remove.
5100 * config/i386/nbsdaout.mh: New file.
5101 * config/i386/nbsdaout.mt: New file.
5102 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5103 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
5104 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
5105 i386_register_u_addr): Remove.
5106 * config/i386/nm-nbsdaout.h: New file.
5107 * config/i386/nm-nbsdelf.h: Remove.
5108 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
5109 (USE_STRUCT_CONVENTION): Remove.
5110 * config/i386/tm-nbsdaout.h: New file.
5111 * config/i386/tm-nbsdelf.h: Remove.
5112 * config/m68k/nbsd.mh: Remove.
5113 * config/m68k/nbsd.mt: Remove.
5114 * config/m68k/nbsdaout.mh: New file.
5115 * config/m68k/nbsdaout.mt: New file.
5116 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
5117 * config/m68k/nm-nbsdaout.h: New file.
5118 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5119 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5120 * config/ns32k/nbsd.mh: Remove.
5121 * config/ns32k/nbsd.mt: Remove.
5122 * config/ns32k/nbsdaout.mh: New file.
5123 * config/ns32k/nbsdaout.mt: New file.
5124 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
5125 * config/ns32k/nm-nbsdaout.h: New file.
5126 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
5127 (IN_SOLIB_CALL_TRAMPOLINE): Define.
5128 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
5129 (SVR4_SHARED_LIBS): Remove.
5130 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
5131 * config/sparc/nbsd.mh: Remove.
5132 * config/sparc/nbsd.mt: Remove.
5133 * config/sparc/nbsdaout.mh: New file.
5134 * config/sparc/nbsdaout.mt: New file.
5135 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
5136 * config/sparc/nbsdelf.mt: New file.
5137 * config/sparc/nm-nbsdaout.h: New file.
5138 * config/sparc/nm-nbsdelf.h: Remove.
5139 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
5140 * config/sparc/tm-nbsdaout.h: New file.
5142 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5144 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
5146 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
5148 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5150 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
5152 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
5154 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5156 * NEWS: Note new MIPS NetBSD native configuration.
5157 * configure.host (mips*-*-netbsd*): New host.
5158 * configure.tgt (mips*-*-netbsd*): New target.
5159 * mipsnbsd-nat.c: New file.
5160 * mipsnbsd-tdep.c: New file.
5161 * mipsnbsd-tdep.h: New file.
5162 * config/mips/nbsd.mh: New file.
5163 * config/mips/nbsd.mt: New file.
5164 * config/mips/nm-nbsd.h: New file.
5165 * config/mips/tm-nbsd.h: New file.
5167 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
5169 * Makefile.in (SFILES): Add osabi.c.
5170 (COMMON_OBS): Add osabi.o.
5171 (osabi.o): New dependency list.
5172 * osabi.c: New file.
5173 * osabi.h: New file.
5174 * doc/gdbint.texinfo: Document new generic OS ABI framework.
5176 * Makefile.in (alpha_tdep_h): Define and use instead of
5178 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
5179 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
5181 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
5182 * alpha-tdep.h: Include osabi.h.
5183 (alpha_abi): Remove.
5184 (gdbarch_tdep): Use generic OS ABI framework.
5185 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
5186 gdbarch_register_osabi.
5187 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
5188 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
5189 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
5191 * Makefile.in (sh_tdep_h): Add osabi.h.
5192 * sh-tdep.h (sh_osabi): Remove.
5193 (gdbarch_tdep): Use generic OS ABI framework.
5194 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
5195 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
5196 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
5197 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
5199 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
5200 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
5201 gdbarch_register_osabi.
5202 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
5203 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
5204 (get_elfosabi): Rename to...
5205 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
5206 ABI framework support routines.
5207 (arm_gdbarch_init): Use generic OS ABI framework.
5208 (arm_dump_tdep): Likewise.
5209 (_initialize_arm_tdep): Likewise.
5210 * arm-tdep.h: Include osabi.h.
5212 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5214 (arm_gdbarch_register_os_abi): Remove prototype.
5215 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5216 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5218 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5219 * mips-tdep.c: Include osabi.h.
5220 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5223 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5225 * h8300-tdep.c: Fix formatting.
5227 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5229 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5230 printing vector registers.
5232 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5234 From Fernando Nasser:
5235 * remote.c (remote_async_open_1): Re-throw the exception when the
5237 (remote_cisco_open): Ditto.
5238 (remote_open_1): Ditto.
5240 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5242 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5243 (remote_start_remote): Add uiout parameter. Pass through to
5244 remote_start_remote_dummy.
5245 (remote_open_1): Use catch_exception instead of catch_errors.
5246 (remote_async_open_1): Ditto.
5247 (remote_cisco_open): Ditto.
5249 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5251 * remote.c (remote_start_remote): Replace PTR with void pointer.
5252 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5255 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5257 * gdb_indent.sh: Allow the script to be run in the sim directory.
5259 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5261 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5262 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5264 * corelow.c (core_open): Only call set_gdbarch_from_file if
5267 2002-05-17 Andrey Volkov <avolkov@transas.com>
5269 * h8300-tdep.c: Add support of EXR register
5270 * config/h8300/tm-h8300.h: Ditto.
5272 2002-05-17 Andrey Volkov <avolkov@transas.com>
5274 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5276 2002-05-17 Andrey Volkov <avolkov@transas.com>
5278 * h8300-tdep.c: Change literal regnums to REGNO.
5280 2002-05-17 Jim Blandy <jimb@redhat.com>
5282 * NEWS: Note addition of macro support.
5284 Expand preprocessor macros in C expressions.
5285 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5286 (scan_macro_expansion, scanning_macro_expansion,
5287 finished_macro_expansion): New function declarations.
5288 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5289 variable declarations.
5290 * parser-defs.h (expression_context_pc): New declaration.
5291 * parse.c (expression_context_pc): New variable.
5292 (parse_exp_1): Set expression_context_pc, as well as
5293 expression_context_block.
5294 * c-exp.y (yylex): If we're not already reading the result of a
5295 macro expansion, try to macro-expand the next token. When we're
5296 done scanning a macro expansion, switch back to the mainline text.
5297 Commas and `if's in a macro's expansion don't terminate the input.
5298 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5299 (macro_original_text, macro_expanded_text,
5300 expression_macro_lookup_func, expression_macro_lookup_baton): New
5302 (scan_macro_expansion, scanning_macro_expansion,
5303 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5304 c_preprocess_and_parse): New functions.
5305 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5306 c_preprocess_and_parse, instead of c_parse.
5307 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5308 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5310 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5312 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5313 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5314 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5316 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5318 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5320 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5322 * Makefile.in (sh_tdep_h): Define and use.
5323 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5324 register enum): Move to...
5325 * * sh-tdep.h: ...here.
5326 * sh-tdep.c: Include sh-tdep.h.
5327 * sh3-rom.c: Likewise.
5328 * shnbsd-tdep.c: Likewise.
5330 2002-05-16 Michael Snyder <msnyder@redhat.com>
5332 * arm-tdep.c: Spelling fix in comment.
5334 2002-05-16 Jim Blandy <jimb@redhat.com>
5336 Add commands for manually expanding macros and showing their
5338 * macrocmd.c, macroscope.c, macroscope.h: New files.
5339 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5340 (macroscope_h): New variable.
5341 (HFILES_NO_SRCDIR): Add macroscope.h.
5342 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5343 (macroscope.o, macrocmd.o): New rules.
5345 Teach the Dwarf 2 reader to read macro information.
5346 * dwarf2read.c: #include "macrotab.h".
5347 (dwarf_macinfo_buffer): New variable.
5348 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5350 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5351 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5352 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5353 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5354 dwarf2_macro_spaces_in_definition): New complaints.
5355 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5356 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5357 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5358 the partial symbol table.
5359 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5360 from what's recorded in the partial symbol table.
5361 (read_file_scope): If the compilation unit has a
5362 `DW_AT_macro_info' attribute, read its macro information.
5363 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5365 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5368 * ser-tcp.c: Don't include <netinet/udp.h>.
5370 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5372 * MAINTAINERS: Update my email address.
5374 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5376 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5377 include file of the same name.
5379 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5381 * configure.tgt: Mark v850 as multi-arched.
5382 * config/v850/tm-v850.h: Remove file.
5383 * config/v850/v850.mt: Eliminate TM_FILE.
5385 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5387 * v850-tdep.c: Full multi-arch.
5388 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5389 Define GDB_MULTI_ARCH to 2.
5391 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5393 * p-exp.y (current_type): New static variable.
5394 Carries the type of the expression at the position that is parsed.
5395 (push_current_type, pop_current_type): Two new functions. Used
5396 to store/restore current_type in expression on specific tokens.
5397 (search_field): New static variable. Set to one after parsing a point
5398 as at that point only a FIELDNAME token should be searched.
5399 (FIELDNAME): New token. After a point only a token belonging to
5400 current_type type definition is allowed.
5401 (all over token rules): reset and change current_type according
5403 (exp '[' rule): insert implicit array index field if
5404 exp is a pascal string type.
5406 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5408 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5409 frame info. Use frame_info's saved_regs instead of matching member
5410 in extra_frame_info throughout.
5411 (v850_frame_init_saved_regs): New function.
5412 (v850_init_extra_frame_info): Move most functionality into
5413 v850_frame_init_saved_regs().
5414 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5415 (v850_frame_find_saved_regs): Remove declaration.
5416 (FRAME_FIND_SAVED_REGS): Remove definition.
5417 (v850_frame_init_saved_regs): Add declaration.
5418 (FRAME_INIT_SAVED_REGS): Add definition.
5420 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5422 * v850-tdep.c: Begin multi-arch'ing v850.
5423 (v850_target_architecture_hook): Remove function.
5424 (v850_gdbarch_init): New function. Add code previously in
5425 v850_target_architecture_hook().
5426 (_initialize_v850_tdep): Don't set target_architecture_hook.
5427 Call register_gdbarch_init() instead.
5429 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5431 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5432 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5433 (fixup_class_method_type): Likewise.
5435 2002-05-15 Jim Blandy <jimb@redhat.com>
5437 Add macro structures to GDB's symbol tables. Nobody puts anything
5439 * symtab.h (struct symtab): New member: `macro_table'.
5440 * buildsym.h (pending_macros): New global variable.
5441 * buildsym.c: #include "macrotab.h".
5442 (buildsym_init): Initialize `pending_macros'.
5443 (end_symtab): If we found macro information while reading a CU's
5444 debugging info, do build a symtab structure for it. Make the
5445 symtab point to the macro information, and clear the
5446 `pending_macros' pointer which held it while we were reading the
5448 (really_free_pendings): Free any pending macro table.
5449 * objfiles.h (struct objfile): New member: `macro_cache'.
5450 * objfiles.c (allocate_objfile): Set allocate and free functions
5451 for the macro cache's objstack.
5452 (free_objfile): Empty the macro cache's obstack.
5453 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5454 set new allocate and free functions for it.
5455 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5456 free functions for the macro cache's objstack. (Why is this
5457 function building its own objfile?)
5458 * symmisc.c (print_objfile_statistics): Print statistics on the
5460 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5462 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5464 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5465 (REGISTER_U_ADDR): Delete definition.
5466 (arm_register_u_addr): Delete declaration.
5468 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5470 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5471 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5473 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5475 * regcache.c (register_valid): Revise comments refering to "Not
5476 available" and "unavailable".
5477 * frame.c (frame_register_read): Ditto.
5478 * findvar.c (value_of_register): Ditto.
5480 2002-05-15 Andrew Cagney <cagney@redhat.com>
5482 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5483 (remote-sim.o): Update dependencies.
5484 (d10v-tdep.o): Specify dependencies.
5485 (sim_d10v_h): Define.
5487 2002-05-14 Jim Blandy <jimb@redhat.com>
5489 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5490 * macrotab.c (macro_lookup_inclusion, find_definition,
5491 new_macro_table): Same.
5493 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5494 not `! strcmp ()'. This is a dubious improvement.
5495 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5497 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5498 although it's not necessary, to avoid a warning.
5500 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5502 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5503 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5504 TYPE_INSTANCE_FLAGS.
5505 (struct main_type): New.
5506 (struct type): Move most members to struct main_type. Change
5507 cv_type and as_type to new type_chain member. Add instance_flags.
5508 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5509 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5510 (finish_cv_type): Remove prototype.
5511 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5513 (alloc_type_instance): New function.
5514 (smash_type): New function.
5515 (make_pointer_type, make_reference_type, make_function_type)
5516 (smash_to_member_type, smash_to_method_type): Call smash_type.
5517 (make_qualified_type): New function.
5518 (make_type_with_address_space): Call make_qualified_type.
5519 (make_cv_type): Likewise.
5520 (finish_cv_type): Remove unnecessary function.
5521 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5522 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5523 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5524 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5525 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5526 * hpread.c (hpread_read_struct_type): Likewise.
5527 * stabsread.c (read_struct_type): Likewise.
5529 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5531 * configure.tgt: Add a catch all sh* target, for cases like
5532 sh[2,3,4]-elf and sh-hms.
5534 2002-05-14 Keith Seitz <keiths@redhat.com>
5536 * event-loop.c (create_file_handler): Don't do anything but
5537 update data when we are given a fd which we are already
5540 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5542 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5543 (update_context): Use __func__ in warnings.
5545 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5547 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5548 and tcp_close to net_open and net_close.
5549 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5550 using UDP if requested. Don't try to disable Nagle on UDP
5552 * remote.c (remote_serial_open): New function. Warn about UDP.
5553 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5555 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5557 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5559 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5561 * configure.tgt: Remove sh-hms target.
5562 * MAINTAINERS: Don't list sh-hms as a separate target.
5564 2002-05-13 Jim Blandy <jimb@redhat.com>
5566 Add first preprocessor macro-expansion files.
5567 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5568 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5569 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5570 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5571 (COMMON_OBS): Add macrotab.o, macroexp.o.
5572 (macroexp.o, macrotab.o): New rules.
5574 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5576 * config/m88k/tm-m88k.h: Update copyright.
5577 (m88k_target_write_pc): Declare
5578 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5579 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5580 (SHIFT_INST_REGS): Update definition.
5581 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5582 using old definition of TARGET_WRITE_PC.
5583 * regcache.c (generic_target_write_pc): Delete code handling
5585 * gdbarch.sh (NNPC_REGNUM): Delete.
5586 * gdbarch.h, gdbarch.c: Regenerate.
5588 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5590 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5593 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5595 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5596 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5597 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5599 * c-typeprint.c (cp_type_print_method_args): Likewise.
5600 (c_type_print_args): Likewise.
5601 * d10v-tdep.c (d10v_push_arguments): Likewise.
5602 (d10v_extract_return_value): Likewise.
5603 * expprint.c (print_subexp): Likewise.
5604 * gdbtypes.c (lookup_primitive_typename): Likewise.
5605 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5606 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5607 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5608 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5609 (TYPE_VECTOR): Likewise.
5610 * hpread.c (hpread_read_struct_type)
5611 (fix_static_member_physnames, fixup_class_method_type)
5612 (hpread_type_lookup): Likewise.
5613 * mdebugread.c (parse_symbol, parse_type): Likewise.
5614 * p-lang.c (is_pascal_string_type): Likewise.
5615 * valops.c (hand_function_call): Likewise.
5616 * x86-64-tdep.c (classify_argument): Likewise.
5618 * hpread.c (hpread_read_function_type)
5619 (hpread_read_doc_function_type): Call replace_type.
5620 * dstread.c (create_new_type): Delete.
5621 (decode_dst_structure, process_dst_function): Call alloc_type.
5622 Use type access macros.
5624 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5626 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5627 the're not supported by the current architecture.
5628 (i387_fill_fxsave): Likewise.
5630 2002-05-12 Fred Fish <fnf@redhat.com>
5632 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5633 sect_index_xxx members to index the first slot in section_offsets
5634 if all of the section_offsets are zero.
5636 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5638 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5639 checked in with last change.
5641 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5643 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5644 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5647 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5649 * Makefile.in: Update dependencies.
5651 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5653 * language.c (local_hex_string_custom): Simplify. Do not depend
5654 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5656 * memattr.c (mem_info_command): Replace calls to
5657 longest_local_hex_string and longest_local_hex_string_custom.
5658 * buildsym.c (make_blockvector): Ditto.
5659 * solib.c (info_sharedlibrary_command): Ditto.
5660 * tracepoint.c (tracepoints_info): Ditto.
5661 * symtab.c (print_msymbol_info): Ditto.
5663 * language.c (local_hex_string): Delete.
5664 (local_hex_string_custom): Delete.
5665 (longest_local_hex_string): Rename to local_hex_string.
5666 (longest_local_hex_string_custom): Rename to
5667 local_hex_string_custom.
5668 * language.h (local_hex_string): Change parameter type to LONGEST.
5669 (local_hex_string_custom): Ditto.
5670 (longest_local_hex_string): Delete declaration.
5671 (longest_local_hex_string_custom): Ditto.
5673 * solib.c: Update copyright.
5674 * memattr.c: Update copyright.
5676 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5678 * arch-utils.h (legacy_register_to_value): Declare.
5679 (legacy_value_to_register): Declare.
5680 (legacy_convert_register_p): Declare.
5681 * arch-utils.c (legacy_register_to_value): New function.
5682 (legacy_value_to_register): New function.
5683 (legacy_convert_register_p): New function.
5685 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5686 (VALUE_TO_REGISTER): Define.
5687 (CONVERT_REGISTER_P): Define.
5688 * gdbarch.h, gdbarch.c: Regenerate.
5690 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5692 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5695 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5696 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5698 * Makefile.in: Update dependencies for valops.c.
5699 * valops.c: Include "gdb_assert.h".
5700 (typecmp): Skip THIS parameter to methods.
5701 (find_method_list): Remove static_memfuncp argument,
5702 update callers. Check for stub methods.
5703 (find_value_oload_method_list): Don't set *static_memfuncp.
5704 (find_overload_match): Don't check for stub methods. Assert
5705 that methods are not stubbed. Handle static methods.
5706 (value_find_oload_method_list): Remove static_memfuncp argument.
5707 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5708 to the argument list for static stub methods.
5709 * value.h (value_find_oload_method_list): Update prototype.
5711 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5713 * arch-utils.h (generic_register_size): Declare.
5714 (generic_register_raw_size, generic_register_virtual_size): Delete
5716 * arch-utils.c (generic_register_raw_size): Delete.
5717 (generic_register_size): New function.
5718 (generic_register_virtual_size): Delete.
5720 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5721 default generic_register_size.
5722 * gdbarch.h, gdbarch.c: Re-generate.
5724 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5725 register_virtual_size.
5726 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5727 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5729 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5731 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5732 * gdbarch.h, gdbarch.c: Regenerate.
5733 * gnu-v3-abi.c: Update copyright.
5734 (vtable_address_point_offset): Update.
5735 (gnuv3_rtti_type): Update.
5736 (gnuv3_baseclass_offset): Update.
5737 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5738 (init_fetch_link_map_offsets): Update.
5739 * remote.c (get_remote_state): Update.
5741 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5743 * TODO: Remove value_headof/value_from_vtable_info comment.
5744 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5745 * values.c (value_headof, value_from_vtable_info): Delete.
5746 * value.h (value_from_vtable_info): Delete prototype.
5748 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5750 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5751 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5753 (gdb_assert_h): Define.
5754 (gdb_wait_h): Define.
5755 (gdb_regex_h): Define.
5757 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5759 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5760 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5762 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5764 * nbsd-tdep.c: Fix comment.
5766 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5768 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5769 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5770 (nbsd-tdep.o): New dependency list.
5771 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5773 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5774 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5775 * nbsd-tdep.c: New file.
5776 * nbsd-tdep.h: New file.
5777 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5779 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5780 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5781 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5782 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5784 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5786 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5787 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5788 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5789 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5790 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5791 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5793 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5795 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5796 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5797 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5798 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5799 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5800 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5801 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5803 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5805 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5806 fetch_elfcore_registers to...
5807 * i386nbsd-tdep.c: ...here.
5808 (i386nbsd_use_struct_convention): Rename to...
5809 (i386nbsd_aout_use_struct_convention): ...this.
5810 (i386nbsd_supply_reg): New function.
5811 (i386nbsd_fill_reg): New function.
5812 (fetch_core_registers): Use i386nbsd_supply_reg.
5813 (fetch_elfcore_registers): Likewise.
5814 (_initialize_i386nbsd_tdep): New function.
5815 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5816 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5817 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5818 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5819 (i386nbsd_aout_use_struct_convention): ...this.
5821 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5823 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5824 (store_inferior_registers): Use shnbsd_fill_reg.
5825 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5826 sh_nbsd_supply_register): Collapse into...
5827 (shnbsd_supply_reg): ...this.
5828 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5829 (shnbsd_fill_reg): ...this.
5830 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5831 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5832 (fetch_core_registers): Use shnbsd_supply_reg.
5833 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5834 (sh_nbsd_core_fns): Rename to...
5835 (shnbsd_core_fns): ...this.
5836 (sh_nbsd_elfcore_fns): Rename to...
5837 (shnbsd_elfcore_fns): ...this.
5838 (sh_nbsd_init_abi): Rename to...
5839 (shnbsd_init_abi): ...this.
5840 (_initialize_sh_nbsd_tdep): Rename to...
5841 (_initialize_shnbsd_tdep): ...this.
5842 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5843 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5844 sh_nbsd_fill_register): Remove prototypes.
5845 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5847 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5849 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5850 (i387-nat.o): Delete dependency list.
5851 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5852 (x86-64-linux-nat.o): Likewise.
5853 * i387-nat.c: Delete file, moving contents to...
5854 * i387-tdep.c: ...here.
5855 * i387-nat.h: Rename...
5856 * i387-tdep.h: ...to this.
5857 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5858 * i386-linux-nat.c: Likewise.
5859 * i386bsd-nat.c: Likewise.
5860 * i386gnu-nat.c: Likewise.
5861 * i386nbsd-nat.c: Likewise.
5862 * i386v4-nat.c: Likewise.
5863 * x86-64-linux-nat.c: Likewise.
5864 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5865 * config/i386/go32.mh (NATDEPFILES): Likewise.
5866 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5867 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5868 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5869 * config/i386/linux.mh (NATDEPFILES): Likewise.
5870 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5871 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5872 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5873 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5875 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5877 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5878 (alphanbsd-nat.o): Remove dependency list.
5879 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5880 * alphanbsd-nat.c: Delete. Contents moved to...
5881 * alphanbsd-tdep.c: ...here.
5882 (_initialize_alphanbsd_tdep): Register core functions.
5883 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5885 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5887 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5888 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5889 (alphanbsd-nat.o): Likewise.
5890 (alphabsd-tdep.o): New dependency list.
5891 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5892 (fill_gregset): Use alphabsd_fill_reg.
5893 (supply_fpregset): Use alphabsd_supply_fpreg.
5894 (fill_fpregset): Use alphabsd_fill_fpreg.
5895 (fetch_inferior_registers): Use struct reg and struct fpreg
5896 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5897 and alphabsd_supply_fpreg.
5898 (store_inferior_registers): Use struct reg and struct fpreg
5899 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5900 and alphabsd_fill_fpreg.
5901 * alphabsd-tdep.c: New file.
5902 * alphabsd-tdep.h: New file.
5903 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5904 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5905 alphabsd_supply_fpreg.
5906 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5907 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5909 2002-05-11 Eric Christopher <echristo@redhat.com>
5911 * mips-tdep.c (mips_double_register_type): Fix thinko.
5912 (mips_single_register_type): Ditto.
5913 * MAINTAINERS: Add self.
5915 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5917 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5918 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5919 right thing on architectures with different endianness and/or
5922 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5924 From Christian Limpach <chris@Pin.LU>
5925 * configure.in: Change sed expression which comments out
5926 NATDEPFILES to also comment out continuation lines.
5927 * configure: Regenerate.
5929 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5931 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5934 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5936 * sh-tdep.c: Include correct file.
5938 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5940 New support for sh64-elf (sh5) target.
5942 * configure.tgt: For sh64-elf target, default to sh-elf.
5944 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5945 (struct gdbarch_tdep): Add new fields for new registers and ABI
5948 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5949 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5950 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5951 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5952 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5953 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5954 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5955 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5956 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5957 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5958 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5959 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5960 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5961 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5962 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5963 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5964 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5965 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5966 sign_extend, sh64_nofp_frame_init_saved_regs,
5967 sh64_init_extra_frame_info, sh64_get_saved_register,
5968 sh64_extract_struct_value_address, sh64_pop_frame,
5969 sh64_push_arguments, sh64_extract_return_value,
5970 sh64_store_return_value, sh64_show_media_regs,
5971 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5972 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5973 sh_sh64_register_virtual_type,
5974 sh_sh64_register_convert_to_virtual,
5975 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5976 sh64_register_read, sh64_pseudo_register_write,
5977 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5978 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5979 sh64_do_pseudo_register, sh_compact_do_registers_info,
5980 sh64_do_registers_info, sh_gdbarch_init): New functions.
5982 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5984 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5986 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5988 * linespec.c (decode_line_1): Check for a double quote after
5989 a filename correctly.
5991 2002-05-10 Jim Blandy <jimb@redhat.com>
5993 Properly track the size of the current objfile's .debug_line section.
5994 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5995 (DWARF_LINE_SIZE): New macro.
5996 (dwarf2_build_psymtabs_hard): Record the line section's size in
5997 the partial symbol table.
5998 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
6001 2002-05-10 Petr Sorfa <petrs@caldera.com>
6003 * ia64-tdep.c: Handle breakpoints on L instruction type
6004 in MLX instruction bundle by moving the breakpoint to
6005 the third slot (X instruction type) as L holds only data.
6007 2002-05-10 Kevin Buettner <kevinb@redhat.com>
6009 * dbxread.c (discarding_local_symbols_complaint): New complaint.
6010 (process_one_symbol): Complain about discarding local symbols
6011 due to a misplaced N_LBRAC entry.
6013 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
6015 From Daniel Berlin <dan@cgsoftware.com>
6016 * linespec.c (find_toplevel_char): '<' and '>' also increase and
6017 decrease the depth we are at, in the case of templates.
6019 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6021 * mips-tdep.c (mips_float_register_type): New function.
6022 (mips_double_register_type): New function.
6023 (mips_print_register): Use them.
6024 (do_fp_register_row): Likewise.
6026 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
6028 * signals/signals.c (signals): Remove conditional compilation around
6029 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6030 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
6032 2002-05-09 Michael Snyder <msnyder@redhat.com>
6034 * remote-rdp.c (remote_rdp_can_run): Remove.
6036 2002-05-09 Tom Tromey <tromey@redhat.com>
6038 * jv-valprint.c (java_val_print): Handle `char' as a special case
6041 2002-05-09 Michael Snyder <msnyder@redhat.com>
6043 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
6044 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
6045 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
6046 str r(0123),[sp,#nn].
6047 (arm_skip_prologue): Ditto. Also make disassembly
6048 order-independent by placing it in a loop.
6050 2002-05-06 Michael Snyder <msnyder@redhat.com>
6052 * stabsread.c (read_type): Add recognition for new attribute:
6053 "@V;" means that an array type is actually a vector.
6054 This is analogous to the vector flag that's been added to dwarf2.
6056 2002-05-09 Mark Kettenis <kettenis@gnu.org>
6058 * i386-tdep.h (i386_abi): New enum.
6059 (struct gdbarch_tdep): Replace os_ident member with abi.
6060 (i386_gdbarch_register_os_abi): New prototype.
6061 * i386-tdep.c (i386_abi_names): New array.
6062 (process_note_abi_tag_sections): Removed.
6063 (process_note_sections): New function.
6064 (i386_elf_abi_from_note, i386_elf_abi): New functions.
6065 (struct i386_abi_handler): New struct.
6066 (i386_abi_handler_list): New variable.
6067 (i386_gdbarch_register_os_abi): New function.
6068 (i386_gdbarch_init): Adapt for the changes given above.
6070 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
6072 * gregset.h: Say "GNU/Linux".
6074 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
6076 * gdbtypes.c : Add new builtin type for 64 bit vectors.
6077 (build_gdbtypes): Build builtin_type_v2_float.
6078 (_initialize_gdbtypes): Register new builtin type.
6080 2002-05-08 Andrew Cagney <ac131313@redhat.com>
6082 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
6083 (clear_gdbarch_swap): New function.
6084 (initialize_non_multiarch): Call.
6085 (gdbarch_update_p): Before calling init(), swap out and clear the
6086 existing architecture.
6087 * gdbarch.c: Regenerate.
6089 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6091 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
6094 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6096 * sh-nbsd-nat.c: Rename to...
6097 * shnbsd-nat.c: ...this.
6098 * sh-nbsd-tdep.c: Rename to...
6099 * shnbsd-tdep.c: ...this.
6100 * sh-nbsd-tdep.h: Rename to...
6101 * shnbsd-tdep.h: ...this.
6102 * config/sh/nbsd.mh: Use shnbsd-nat.o.
6103 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
6105 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
6107 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
6108 concatenation for command help messages.
6110 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6112 * NEWS: Note new sh*-*-netbsdelf* configuration.
6113 * configure.host: Set gdb_host_cpu to sh for all sh*.
6114 (sh*-*-netbsdelf*): New host.
6115 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
6116 (sh*-*-netbsdelf*): New target.
6117 * sh-nbsd-nat.c: New file.
6118 * sh-nbsd-tdep.c: New file.
6119 * sh-nbsd-tdep.h: New file.
6120 * config/sh/nbsd.mh: New file.
6121 * config/sh/nbsd.mt: New file.
6122 * config/sh/nm-nbsd.h: New file.
6123 * config/sh/tm-nbsd.h: New file.
6125 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
6127 * sh-tdep.c (sh_osabi_names): Declare.
6128 (process_note_abi_tag_sections): New function.
6129 (get_elfosabi): Ditto.
6130 (sh_gdbarch_register_os_abi): Ditto.
6131 (sh_dump_tdep): Ditto.
6132 _initialize_sh_tdep): Use gdbarch_register to register
6133 sh_gdbarch_init and sh_dump_tdep.
6134 * config/sh/tm-sh.h (sh_osabi): Declare.
6135 (gdbarch_tdep): Add sh_osabi and osabi_name members.
6137 2002-05-07 Andrew Cagney <ac131313@redhat.com>
6139 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
6140 (thumb_scan_prologue): Ditto.
6141 (arm_find_callers_reg): Ditto.
6142 (arm_frame_chain): Ditto.
6143 (arm_init_extra_frame_info): Ditto.
6144 (arm_frame_saved_pc): Ditto.
6145 (arm_pop_frame): Ditto.
6146 (arm_push_return_address): New function.
6147 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
6148 call_dummy_location, call_dummy_breakpoint_offset_p,
6149 call_dummy_breakpoint_offset, call_dummy_p,
6150 call_dummy_stack_adjust_p, call_dummy_words,
6151 sizeof_call_dummy_words, call_dummy_start_offset,
6152 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
6153 call_dummy_address, push_return_address and push_dummy_frame for
6154 generic dummy frames.
6156 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6158 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
6159 size computation for alloca.
6160 (sh_fp_frame_init_saved_regs): Likewise.
6162 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
6164 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
6165 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
6166 * arm-tdep.c (arm_store_return_value): Use them.
6167 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
6168 * remote-rdp.c (remote_rdp_fetch_register): Use
6169 ARM_MAX_REGISTER_RAW_SIZE.
6170 (remote_rdp_store_register): Likewise.
6172 2002-05-07 Michal Ludvig <mludvig@suse.cz>
6174 * dwarf2cfi.c: Code cleanup, removed unused variables,
6175 added default labels to switch {} statements.
6176 * x86-64-tdep.c: Ditto.
6177 * x86-64-linux-nat.c: Ditto.
6179 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
6181 * solib.h: Protect against multiple inclusion.
6183 2002-05-06 Jim Blandy <jimb@redhat.com>
6185 Add first preprocessor macro-expansion files.
6186 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
6187 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
6188 (splay_tree_h, macroexp_h, macrotab_h): New variable.
6189 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
6190 (COMMON_OBS): Add macrotab.o, macroexp.o.
6191 (macroexp.o, macrotab.o): New rules.
6193 Separate the job of reading the line number info statement program
6194 header (...expialidocious) out into its own function.
6195 * dwarf2read.c (struct line_head, struct filenames, struct
6196 directories): Replace with...
6197 (struct line_header): New structure, containing the full
6198 contents of the statement program header, including the
6199 include directory and file name tables.
6200 (read_file_scope): If we have line number info, instead of just
6201 calling dwarf_decode_lines to do all the work, call
6202 dwarf_decode_line_header first to get a `struct line_header'
6203 containing the data in the statement program header, and then
6204 pass that to dwarf_decode_lines, which will pick up where that
6205 left off. Be sure to clean up the `struct line_header' object.
6206 (dwarf_decode_line_header, free_line_header, add_include_dir,
6207 add_file_name): New functions.
6208 (dwarf_decode_lines): Move all the code to read the statement
6209 program header into dwarf_decode_line_header. Take the line
6210 header it built as the first argument, instead of the offset to
6211 the compilation unit's line number info. Use the new `struct
6212 line_header' type instead of the old structures. No need to do
6213 cleanups here now, since we don't allocate anything.
6214 (dwarf2_statement_list_fits_in_line_number_section,
6215 dwarf2_line_header_too_long): New complaints.
6217 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6219 * gdbtypes.c (init_vector_type): New function.
6220 (build_builtin_type_vec128): Simplify the representation of SIMD
6222 (build_gdbtypes): Initialize new builtin vector types.
6223 (_initialize_gdbtypes): Register new vector types with gdbarch.
6224 (builtin_type_v4_float, builtin_type_v4_int32,
6225 builtin_type_v8_int16, builtin_type_v16_int8,
6226 builtin_type_v2_int32, builtin_type_v4_int16,
6227 builtin_type_v8_int8): New (renamed) SIMD types.
6229 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6231 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6232 (i387_fill_fxsave): Likewise.
6234 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6236 * alpha-tdep.c (alpha_extract_return_value): Don't use
6237 non-constant array size in prototype.
6239 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6241 From Brian Taylor <briant at model dot com>:
6242 * ui-out.c (ui_out_field_core_addr): Use the function
6243 longest_local_hex_string_custom'to format addresses > 32 bits
6246 * ui-out.c (ui_out_field_core_addr): Update comment.
6248 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6250 * stack.c (select_and_print_frame): Make static. Delete the
6252 (func_command): Update call.
6253 (select_frame_command): Delete code computing the frame level.
6254 * frame.h (select_and_print_frame): Delete declaration.
6256 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6258 * sparc-tdep.c (sparc_get_saved_register): Comment why
6259 get_prev_frame call is safe.
6261 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6263 * frame.h (select_frame): Delete level parameter.
6264 * stack.c (select_frame): Update. Use frame_relative_level to
6265 obtain the frame's level.
6266 (select_and_print_frame): Update call.
6267 (select_frame_command): Ditto.
6268 (up_silently_base): Ditto.
6269 (down_silently_base): Ditto.
6270 * ocd.c (ocd_start_remote): Ditto.
6271 * remote-rdp.c (remote_rdp_open): Ditto.
6272 * remote-mips.c (mips_initialize): Ditto.
6273 (common_open): Ditto.
6274 * remote-e7000.c (e7000_start_remote): Ditto.
6275 * m3-nat.c (select_thread): Ditto.
6276 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6277 (child_get_current_exception_event): Ditto.
6278 * varobj.c (varobj_create): Ditto.
6279 (varobj_update): Ditto.
6280 (c_value_of_root): Ditto.
6281 * tracepoint.c (finish_tfind_command): Ditto.
6282 * corelow.c (core_open): Ditto.
6283 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6284 * thread.c (info_threads_command): Ditto.
6285 (switch_to_thread): Ditto.
6286 * infrun.c (normal_stop): Ditto.
6287 (restore_selected_frame): Ditto.
6288 (restore_inferior_status): Ditto.
6289 * breakpoint.c (insert_breakpoints): Ditto.
6290 (watchpoint_check): Ditto.
6291 (bpstat_stop_status): Ditto.
6292 (do_enable_breakpoint): Ditto.
6293 * blockframe.c (flush_cached_frames): Ditto.
6294 (reinit_frame_cache): Ditto.
6296 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6298 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6301 2002-05-04 Jim Blandy <jimb@redhat.com>
6303 * gdbtypes.c (replace_type): Doc fix.
6305 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6307 * valprint.c (strcat_longest): Delete commented out function.
6310 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6312 * MAINTAINERS: Mark a29k as deleted.
6313 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6314 Move new configurations to the top.
6315 * configure.tgt: Remove a29k.
6316 * config/a29k/tm-vx29k.h: Delete.
6317 * config/a29k/vx29k.mt: Delete.
6318 * config/a29k/tm-a29k.h: Delete.
6319 * config/a29k/a29k-udi.mt: Delete.
6320 * config/a29k/a29k.mt: Delete.
6321 * a29k-tdep.c: Delete.
6322 * remote-udi.c: Delete.
6323 * remote-mm.c: Delete.
6324 * remote-eb.c: Delete.
6325 * remote-adapt.c: Delete.
6326 * Makefile.in: Remove obsolete code.
6327 * config/s390/s390x.mt: Ditto.
6328 * config/s390/s390.mt: Ditto.
6329 * config/sparc/sparclynx.mh: Ditto.
6330 * config/sparc/linux.mh: Ditto.
6331 * config/pa/hppaosf.mh: Ditto.
6332 * config/pa/hppabsd.mh: Ditto.
6333 * config/ns32k/nbsd.mt: Ditto.
6334 * config/mips/vr5000.mt: Ditto.
6335 * config/m68k/sun3os4.mh: Ditto.
6336 * config/m68k/nbsd.mt: Ditto.
6337 * config/m68k/m68klynx.mh: Ditto.
6338 * config/m32r/m32r.mt: Ditto.
6339 * config/i386/x86-64linux.mt: Ditto.
6340 * config/i386/nbsdelf.mt: Ditto.
6341 * config/i386/nbsd.mt: Ditto.
6342 * config/i386/i386lynx.mh: Ditto.
6344 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6346 * target.c (debug_print_register): New function. Handle oversize
6348 (debug_to_fetch_registers): Call.
6349 (debug_to_store_registers): Call.
6351 2002-05-03 Jim Blandy <jimb@redhat.com>
6353 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6354 (read_type): Doc fix.
6355 * gdbtypes.c (replace_type): Doc fix.
6357 * stabsread.c (multiply_defined_struct): New complaint.
6358 (read_struct_type): If the type we were passed isn't empty, or
6359 incomplete, don't read the new struct type into it; complain,
6360 and return the original type unchanged. Take a new `type_code'
6361 argument, which is the type code for the new type.
6362 (read_type): Rather than storing the type's type code here, pass
6363 it as an argument to read_struct_type, and let that take care of
6364 storing it. That way, we don't overwrite the original type code,
6365 so read_struct_type can use it to decide whether we're overwriting
6366 something we shouldn't.
6367 (complain_about_struct_wipeout): New function.
6369 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6371 * gdbarch.sh: Assert that gdbarch is non-NULL.
6372 * gdbarch.c: Regenerate.
6374 2002-05-03 Jason Merrill <jason@redhat.com>
6376 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6379 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6381 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6382 (x86_64_dwarf2gdb_regno_map_length),
6383 (x86_64_dwarf2_reg_to_regnum): Added.
6384 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6385 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6386 (_initialize_x86_64_tdep): Synced with the change above.
6387 (x86_64_skip_prologue): Reformulated message.
6389 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6391 * f-exp.y: Also use new prev_lexptr variable
6392 to improve error reporting. Based on Michael Snyder
6393 2002-04-24 dated patch to c-exp.y.
6394 * jv-exp.y: Likewise.
6395 * m2-exp.y: Likewise.
6397 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6399 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6400 we are dealing with vectors.
6402 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6404 * config/m68k/tm-nbsd.h: Obvious fix,
6405 correct machine name.
6407 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6409 * p-typeprint.c (pascal_type_print_base): Add support
6410 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6412 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6414 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6415 for fondamental pascal 'char' type.
6417 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6419 * p-lang.h (is_pascal_string_type): Declaration changed,
6420 new sixth argument of type char ** added.
6421 * p-lang.c (is_pascal_string_type): Implementation
6422 changed. Args length_pos, length_size, string_pos, char_size
6423 can now be NULL. New argument arrayname set to the field
6424 name of the char array. Return value set to char array
6425 field index plus one.
6426 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6427 is_pascal_string_type function.
6429 2002-05-02 Andrew Cagney <cagney@redhat.com>
6431 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6432 <cagney@redhat.com> change.
6433 * gdbarch.c: Regenerate.
6435 2002-05-02 Andrew Cagney <cagney@redhat.com>
6437 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6438 before probing for a new one. Detect errorenous gdbarch_init
6440 * gdbarch.c: Regenerate.
6442 2002-05-01 Andrew Cagney <cagney@redhat.com>
6444 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6445 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6446 * config/v850/tm-v850.h: Ditto. Update copyright.
6448 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6450 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6453 2002-04-30 Michael Snyder <msnyder@redhat.com>
6455 * arm-tdep.c: Whitespace clean-ups.
6456 (arm_skip_prologue): Fix thinko; two lines
6457 should have been removed as part of 4/24 change.
6459 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6461 * rs6000-tdep.c: Added comment describing how fpscr register
6462 numbers were chosen.
6464 2002-04-30 Michael Snyder <msnyder@redhat.com>
6466 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6468 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6470 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6471 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6472 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6474 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6476 From Louis Hamilton <hamilton@redhat.com>:
6477 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6478 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6479 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6480 not bfd-private xcoff data, to determine wordsize.
6481 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6483 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6485 GDB 5.2 released from 5.2 branch.
6487 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6489 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6490 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6491 (x86_64_register_info_table): Added comments with register numbers.
6493 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6495 * rs6000-tdep.c (rs6000_extract_return_value,
6496 rs6000_store_return_value): Handle returning vectors.
6497 (rs6000_gdbarch_init): Use
6498 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6499 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6501 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6503 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6504 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6506 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6508 * hpread.c (hpread_psymtab_to_symtab_1,
6509 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6510 with fprintf_unfiltered (gdb_stderr,...).
6512 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6514 * remote-array.c (printf_monitor, write_monitor,
6515 array_insert_breakpoint, array_remove_breakpoint ):
6516 Replace fprintf (stderr,...
6517 with fprintf_unfiltered (gdb_stderr,....
6518 * remote-es.c: Likewise.
6519 * remote-os9k.c: Likewise.
6520 * remote-st.c: Likewise.
6522 2002-04-28 Andreas Schwab <schwab@suse.de>
6524 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6525 linux-proc.o and gcore.o.
6527 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6529 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6530 code without frame pointers.
6532 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6534 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6537 2002-04-26 Ben Elliston <bje@redhat.com>
6539 * target.c (do_xfer_memory): Correct reference to the new option
6540 "trust-readonly-sections".
6542 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6544 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6545 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6546 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6548 (read_array_type): Record the fact that this array type is really a
6549 vector (i.e. are passed in by value).
6551 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6553 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6554 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6555 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6556 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6557 * alpha-linux-tdep.c: Include frame.h.
6558 (alpha_linux_sigcontext_addr): New function.
6559 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6560 alpha_linux_sigcontext_addr.
6561 * alpha-osf1-tdep.c: Include gdbcore.h.
6562 (alpha_osf1_sigcontext_addr): New function.
6563 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6564 alpha_osf1_sigcontext_addr.
6565 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6566 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6568 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6570 * stack.c (selected_frame_level):
6571 (select_frame): Do not set selected_frame_level.
6572 * frame.h (selected_frame_level): Delete declaration.
6574 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6576 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6577 convert_from_func_ptr-addr when AIX / PowerOpen.
6579 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6581 * valops.c (hand_function_call): Call
6582 generic_save_call_dummy_addr.
6583 * frame.h (generic_save_call_dummy_addr): Declare.
6584 * blockframe.c (struct dummy_frame): Add fields call_lo and
6586 (generic_find_dummy_frame): Check for PC in range call_lo to
6587 call_hi instead of entry_point_address.
6588 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6589 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6590 (generic_save_call_dummy_addr): New function.
6592 2002-04-24 David S. Miller <davem@redhat.com>
6594 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6595 sparc_skip_prologue.
6596 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6597 information to find prologue when possible.
6598 (sparc_prologue_frameless_p): Call examine_prologue directly.
6599 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6600 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6602 (SKIP_PROLOGUE): Likewise.
6604 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6606 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6607 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6608 indicate that the condition it was testing is always true.
6609 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6610 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6611 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6613 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6615 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6616 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6617 tdep->jb_pc and tdep->jb_elt_size.
6618 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6619 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6620 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6621 * alpha-nat.c (get_longjmp_target): Remove.
6622 (JB_ELEMENT_SIZE): Ditto.
6624 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6625 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6626 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6627 to alpha_get_longjmp_target.
6628 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6629 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6630 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6632 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6634 * README: Update to GDB 5.2.
6636 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6638 * gdbarch.sh (LC_ALL): Set to `c'.
6640 2002-04-25 Theodore A. Roth <troth@verinet.com>
6642 * avr-tdep.c: Ran through gdb_indent.sh.
6644 2002-04-25 Theodore A. Roth <troth@verinet.com>
6646 * MAINTAINERS: Add myself as AVR maintainer.
6647 * NEWS: Note new target avr.
6649 2002-04-25 Theodore A. Roth <troth@verinet.com>
6651 * Makefile.in: Add support for AVR target.
6652 * configure.tgt: Add support for AVR target.
6653 * avr-tdep.c: New file
6654 * config/avr/avr.mt: New file.
6656 2002-04-25 Theodore A. Roth <troth@verinet.com>
6658 * MAINTAINERS: Add myself to write-after-approval.
6660 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6662 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6663 with fprintf_unfiltered (gdb_stderr,....
6665 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6668 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6670 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6672 * p-exp.y: Also use new prev_lexptr variable
6673 to improve error reporting. Based on Michael Snyder
6674 2002-04-24 dated patch to c-exp.y.
6676 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6678 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6679 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6680 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6682 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6684 (FUNCTION_START_OFFSET): Remove.
6685 (BREAKPOINT): Ditto.
6687 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6689 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6692 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6694 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6695 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6696 alpha_linux_pc_in_sigtramp.
6697 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6698 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6699 alpha_osf1_pc_in_sigtramp.
6700 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6701 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6702 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6703 alphafbsd_pc_in_sigtramp.
6704 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6705 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6706 alphanbsd_pc_in_sigtramp.
6707 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6708 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6710 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6712 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6714 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6716 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6718 (alphanbsd-nat.o): New dependency list.
6719 (alphanbsd-tdep.o): Ditto.
6720 * NEWS: Note new native NetBSD/alpha configuration.
6721 * alphanbsd-nat.c: New file.
6722 * alphanbsd-tdep.c: Ditto.
6723 * configure.host (alpha*-*-netbsd*): New host.
6724 * configure.tgt (alpha*-*-netbsd*): New target.
6725 * config/alpha/nbsd.mh: New file.
6726 * config/alpha/nbsd.mt: Ditto.
6727 * config/alpha/nm-nbsd.h: Ditto.
6728 * config/alpha/tm-nbsd.h: Ditto.
6730 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6732 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6733 (alpha-osf1-tdep.o): New dependency list.
6734 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6735 and skip_sigtramp_frame members.
6736 * alpha-linux-tdep.c: Include gdbcore.h.
6737 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6738 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6739 * alpha-osf1-tdep.c: New file.
6740 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6742 (alpha_frame_past_sigtramp_frame): New function.
6743 (alpha_dynamic_sigtramp_offset): Ditto.
6744 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6745 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6746 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6747 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6748 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6749 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6750 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6751 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6752 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6753 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6754 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6755 to find_solib_trampoline_target.
6756 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6757 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6758 (SKIP_TRAMPOLINE_CODE): Remove.
6759 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6760 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6761 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6762 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6763 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6764 (PROC_SIGTRAMP_MAGIC): Ditto.
6765 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6766 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6767 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6768 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6769 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6771 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6773 * NEWS: Note that Alpha targets are now multi-arch.
6775 2002-04-24 Michael Snyder <msnyder@redhat.com>
6777 * parser-defs.h (prev_lexptr): New external variable.
6778 * parse.c (parse_exp_1): Set prev_lexptr to null before
6779 calling the language-specific parser.
6780 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6781 (yyerror): Use prev_lexptr in error reporting.
6783 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6785 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6786 * gregset.h: If FILL_FPXREGSET is defined, provide
6787 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6788 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6789 is defined, call fill_fpxregset.
6791 2002-04-24 Roland McGrath <roland@frob.com>
6793 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6794 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6795 (supply_gregset, supply_fpregset): New functions.
6797 * gnu-nat.c (gnu_find_memory_regions): New function.
6798 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6799 (gnu_xfer_memory): Add a cast.
6801 2002-04-24 Michael Snyder <msnyder@redhat.com>
6803 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6804 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6805 of argument regs ("str r(0123), [r11, #-nn"]).
6806 (arm_skip_prologue): Better handling for frameless functions.
6807 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6808 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6810 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6812 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6813 NUM_PSEUDO_REGS can be used.
6815 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6817 * arch-utils.h: Update copyright.
6819 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6820 * gdbarch.h, gdbarch.c: Re-generate.
6822 * inferior.h (IN_SIGTRAMP): Delete definition.
6823 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6824 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6826 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6827 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6828 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6829 (find_proc_framesize): Ditto.
6830 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6831 (alpha_init_extra_frame_info): Ditto.
6832 * infrun.c (handle_inferior_event): Ditto.
6833 (handle_inferior_event): Ditto.
6834 (check_sigtramp2): Ditto.
6835 * blockframe.c (create_new_frame): Ditto.
6836 (get_prev_frame): Ditto.
6837 * ppc-linux-tdep.c: Update comments.
6838 * i386-linux-tdep.c: Update comments.
6839 * breakpoint.c (bpstat_what): Update comment.
6841 2002-04-24 David S. Miller <davem@redhat.com>
6843 * i960-tdep.c (register_in_window_p): New function.
6844 (i960_find_saved_register): Use it instead of
6845 REGISTER_IN_WINDOW_P.
6846 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6848 * symtab.h (find_stab_function_addr): Kill extern.
6849 * minsyms.c (find_stab_function_addr): Remove from here...
6850 * dbxread.c: ... to here, and mark it static.
6852 2002-04-20 David S. Miller <davem@redhat.com>
6854 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6855 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6857 2002-04-21 David S. Miller <davem@redhat.com>
6859 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6860 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6861 (vx_write_register): Likewise.
6863 2002-04-23 J. Brobecker <brobecker@gnat.com>
6865 * source.c (is_regular_file): New function.
6866 (openp): Check wether file to open is a regular file
6867 to avoid opening directories.
6869 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6871 * findvar.c (extract_signed_integer): Cast printf argument
6872 to suppress format warning.
6873 (extract_unsigned_integer): Likewise.
6874 * infcmd.c (registers_info): Likewise.
6875 * top.c (get_prompt_1): Likewise.
6876 * valops.c (value_assign): Likewise.
6877 * valprint.c (print_decimal): Likewise.
6879 2002-04-22 H.J. Lu (hjl@gnu.org)
6881 * c-exp.y (typebase): Support
6883 [long|long long|short] [signed|unsigned] [int|]
6887 signed [long|long long|short] int
6889 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6891 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6893 * vax-tdep.h: New file.
6894 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6895 Make several routines static.
6896 (vax_get_saved_register): New function.
6897 (vax_gdbarch_init): New function.
6898 (_initialize_vax_tdep): Register vax_gdbarch_init.
6899 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6900 Remove macros now under the control of gdbarch.
6902 2002-04-22 Michael Snyder <msnyder@redhat.com>
6904 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6905 Some whitespace and coding standards tweaks.
6907 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6909 * vax-tdep.c: Include regcache.h.
6910 (vax_call_dummy_words): New.
6911 (sizeof_vax_call_dummy_words): New.
6912 (vax_fix_call_dummy): New function.
6913 (vax_saved_pc_after_call): Ditto.
6914 * config/vax/tm-vax.h: Don't include regcache.h.
6915 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6916 (CALL_DUMMY): Remove.
6917 (CALL_DUMMY_WORDS): Define.
6918 (SIZEOF_CALL_DUMMY_WORDS): Define.
6919 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6921 2002-04-18 Michael Snyder <msnyder@redhat.com>
6923 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6925 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6927 * vax-tdep.c (vax_frame_chain): New function.
6928 (vax_push_dummy_frame): Ditto.
6929 (vax_pop_frame): Ditto.
6930 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6931 (FRAMELESS_FUNCTION_INVOCATION): Use
6932 generic_frameless_function_invocation_not.
6933 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6934 (POP_FRAME): Use vax_pop_frame.
6936 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6938 * vax-tdep.c (vax_store_struct_return): New function.
6939 (vax_extract_return_value): Ditto.
6940 (vax_store_return_value): Ditto.
6941 (vax_extract_struct_value_address): Ditto.
6942 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6943 vax_store_struct_return.
6944 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6945 (STORE_RETURN_VALUE): Use vax_store_return_value.
6946 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6948 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6950 * vax-tdep.c (vax_frame_saved_pc): New function.
6951 (vax_frame_args_address_correct): Ditto.
6952 (vax_frame_args_address): Ditto.
6953 (vax_frame_locals_address): Ditto.
6954 (vax_frame_num_args): Move code to be in proximity to
6955 other frame-related functions.
6956 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6957 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6958 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6959 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6960 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6962 2002-04-22 H.J. Lu (hjl@gnu.org)
6964 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6969 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6970 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6971 (FRAME_INIT_SAVED_REGS): New macro.
6973 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6975 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6977 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6979 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6981 (fetch_osf_core_registers): Likewise.
6982 (supply_gregset): Likewise.
6984 2002-04-22 J. Brobecker <brobecker@gnat.com>
6986 * symfile.h (get_section_index): Define.
6987 * symfile.c (get_section_index): New function.
6988 * mdebugread.c (SC_IS_SBSS): New macro.
6989 (SC_IS_BSS): Return true for the scBss storage class only, as
6990 the scSBss storage class refers to the .sbss section.
6991 (parse_partial_symbols): Discard the symbols which associated
6992 section does not exist.
6993 Make sure to use the .sbss section index for symbols which
6994 storage class is scBss, rather than using the .bss section index.
6996 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6998 * vax-tdep.c: Update copyright years.
6999 (vax_register_name): New function.
7000 (vax_register_byte): Ditto.
7001 (vax_register_raw_size): Ditto.
7002 (vax_register_virtual_size): Ditto.
7003 (vax_register_virtual_type): Ditto.
7004 * config/vax/tm-vax.h: Update copyright years.
7005 (REGISTER_NAMES): Remove.
7006 (REGISTER_NAME): Define.
7007 (REGISTER_BYTE): Use vax_register_byte.
7008 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
7009 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
7010 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
7012 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7014 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
7016 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
7018 2002-04-21 David S. Miller <davem@redhat.com>
7020 * arch-utils.c (generic_prologue_frameless_p): Kill
7021 SKIP_PROLOGUE_FRAMELESS_P code.
7022 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7024 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
7025 * arc-tdep.c (arc_prologue_frameless_p): Implement.
7026 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
7028 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
7029 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
7030 (sparc_gdbarch_init): Pass it to
7031 set_gdbarch_prologue_frameless_p.
7033 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7035 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
7036 (alphabsd-nat.o): New dependency list.
7038 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7040 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
7042 (alpha-linux-tdep.o): New dependency list.
7043 (alphafbsd-tdep.o): Likewise.
7045 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7047 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
7049 * alpha-tdep.c: ...from here.
7050 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
7052 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7054 * config/alpha/tm-alpha.h: Move alpha_software_single_step
7055 prototype from here...
7056 * alpha-tdep.h: ...to here.
7058 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7060 * frame.h (selected_frame_level): Document as deprecated.
7061 (frame_relative_level): Declare.
7062 * stack.c (frame_relative_level): New function.
7063 (selected_frame_level): Document as deprecated.
7064 (select_frame): Do not set the selected_frame_level.
7066 * stack.c (frame_info, record_selected_frame): Update.
7067 (frame_command, current_frame_command): Update.
7068 (up_silently_base, up_command, down_silently_base): Update.
7069 (down_command): Update.
7070 * inflow.c (kill_command): Update.
7071 * tracepoint.c (finish_tfind_command): Update.
7072 * corelow.c (core_open): Update.
7073 * thread.c (info_threads_command): Update.
7074 (do_captured_thread_select): Update.
7075 * infcmd.c (finish_command): Update.
7076 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
7078 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7080 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
7082 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7084 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
7087 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7089 * alphafbsd-tdep.c: Update copyright years. Include
7091 (alphafbsd_use_struct_convention): Make static.
7092 (alphafbsd_init_abi): New function.
7093 (_initialize_alphafbsd_tdep): New function.
7094 * config/alpha/tm-fbsd.h: Update copyright years.
7095 (USE_STRUCT_CONVENTION): Remove.
7097 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7099 * alpha-tdep.c (alpha_abi_handler): New structure to describe
7100 an Alpha ABI variant.
7101 (alpha_abi_handler_list): Declare.
7102 (alpha_gdbarch_register_os_abi): New function.
7103 (alpha_gdbarch_init): Give registered ABI variant handlers a
7104 chance to tweak the gdbarch once we have set up defaults.
7105 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
7107 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7109 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
7110 to standard_coerce_float_to_double.
7111 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7115 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
7116 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
7117 from gdbarch_tdep rather than a constant.
7118 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
7119 the default text address for all Alpha Unix ABIs.
7120 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
7121 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
7123 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
7125 * alpha-tdep.h: New file. Includes several Alpha target constants
7127 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
7128 let gdbarch deal with.
7129 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
7130 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
7132 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
7133 Alpha target register names.
7134 * alphabsd-nat.c: Likewise.
7135 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
7136 Alpha target register names. Make serveral routines static.
7137 (alpha_get_saved_register): New function.
7138 (alpha_abi_names): New.
7139 (process_note_abi_tag_sections): New function.
7140 (get_elfosabi): New function.
7141 (alpha_gdbarch_init): New function.
7142 (alpha_dump_tdep): New function.
7143 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
7145 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7147 * frame.c (find_saved_register): Delete #ifdef
7148 HAVE_REGISTER_WINDOWS code.
7149 * config/sparc/tm-sparc.h: Update comments.
7150 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
7152 2002-04-21 Andrew Cagney <ac131313@redhat.com>
7154 * i960-tdep.c (i960_find_saved_register): New function.
7155 (i960_get_saved_register): New function.
7156 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
7157 (i960_get_saved_register): Declare.
7158 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
7160 2002-04-20 David S. Miller <davem@redhat.com>
7162 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
7164 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7166 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
7167 instead of NUM_PSEUDO_REGS.
7169 2002-04-20 David S. Miller <davem@redhat.com>
7171 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
7172 GDB_MULTI_ARCH_PARTIAL
7173 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
7174 define, let tm-sp64.h do it.
7176 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
7178 * frame.c (find_saved_register): Avoid a NULL pointer
7179 dereference and actually walk the frame list.
7181 2002-04-20 Andrew Cagney <ac131313@redhat.com>
7183 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
7184 sorted in most most-recent-used order. Document.
7185 * gdbarch.h, gdbarch.c: Regenerate.
7187 2002-04-19 Andrew Cagney <ac131313@redhat.com>
7189 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
7191 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
7192 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
7193 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
7196 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
7199 * gdbtypes.c (init_simd_type): Rewrite using new functions.
7200 (build_builtin_type_vec128): Ditto.
7201 (append_composite_type_field): Fix calculation of type length in
7204 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
7206 * config/djgpp/README: Update.
7208 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7211 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7213 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7214 (alpha_setup_arbitrary_frame): ...to this.
7215 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7216 for alpha_setup_arbitrary_frame.
7218 2002-04-18 Andrew Cagney <cagney@redhat.com>
7220 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7221 * gdbarch.h, gdbarch.c: Regenerate.
7223 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7224 * target.h (memory_breakpoint_from_pc): Update declaration.
7225 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7227 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7228 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7229 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7230 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7231 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7232 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7233 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7234 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7235 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7236 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7237 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7238 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7240 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7242 * monitor.c (monitor_insert_breakpoint): Ditto.
7243 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7245 * config/mcore/tm-mcore.h: Update copyright.
7246 * mem-break.c: Ditto.
7247 * xstormy16-tdep.c: Ditto.
7249 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7251 * p-exp.y: Add precedence rule for '^' token.
7252 This removes the shift/reduce conflicts.
7253 Remove the comment concerning these shift/reduce conflicts.
7255 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7257 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7258 (registers_powerpc_nofp): New register set for processors
7259 without floating point unit.
7261 2002-04-18 David S. Miller <davem@redhat.com>
7263 * MAINTAINERS: Add myself to write-after-approval.
7265 2002-04-17 Michael Snyder <msnyder@redhat.com>
7267 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7269 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7271 * rs6000-tdep.c (frame_initial_stack_address): Use
7272 frame_register_read to read the alloca_reg.
7274 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7276 * frame.c (find_saved_register): Find saved registers in the next
7280 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7282 * gdbarch.sh (LANG): Set to ``c''.
7284 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7286 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7288 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7290 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7293 * hpread.c (hpread_get_lntt): Add declaration.
7294 Also fix PR gdb/391.
7296 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7298 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7299 * aclocal.m4, configure: Re-generate.
7302 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7304 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7305 instead of tm_print_insn.
7307 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7309 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7311 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7313 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7314 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7315 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7317 2002-04-12 Don Howard <dhoward@redhat.com>
7319 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7320 max_user_call_depth.
7321 (init_cmd_lists): Initialize the new value;
7322 * cli/cli-script.c (execute_user_command): Limit the call depth of
7323 user defined commands. This avoids a core-dump when user commands
7324 are infinitly recursive.
7326 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7328 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7329 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7330 from tdep struct instead of DEFAULT_LR_SAVE.
7331 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7332 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7333 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7335 2002-04-12 Michael Snyder <msnyder@redhat.com>
7337 * Remote.c: Spelling fix.
7338 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7339 If no symbol found for "sbrk", try "_sbrk".
7340 (make_output_phdrs): Use bfd_section_name.
7341 (gcore_copy_callback): Use bfd_section_name.
7342 * eval.c: Indentation fix-ups.
7343 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7344 in case it gets applied to an address that is already
7345 in the instruction space.
7346 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7347 * symfile.c: Fix indentation, long lines.
7348 * source.c: White space fix-up.
7350 2002-04-12 Andrew Cagney <cagney@redhat.com>
7352 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7353 * frame.c (frame_register_read): New function. Return non-zero on
7355 (read_relative_register_raw_bytes_for_frame): Delete.
7356 (read_relative_register_raw_bytes): Delete.
7357 * frame.h (frame_register_read): Declare.
7358 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7360 * infcmd.c (do_registers_info): Ditto.
7361 * hppa-tdep.c: Ditto.
7362 * rs6000-tdep.c: Ditto.
7363 * h8500-tdep.c: Ditto.
7364 * mips-tdep.c: Ditto.
7365 * h8300-tdep.c: Ditto.
7366 * z8k-tdep.c: Ditto.
7368 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7370 From Jimi X <jimix@watson.ibm.com>:
7371 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7374 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7376 From Jimi X <jimix@watson.ibm.com>:
7377 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7380 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7382 From Jimi X <jimix@watson.ibm.com>:
7383 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7384 register sets for these processor variants.
7386 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7388 * regformats/reg-ppc.dat: Support FPSCR.
7390 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7392 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7393 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7394 Add fpscr as an invalid/unfetchable register.
7395 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7396 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7397 (fill_fpregset): Add support for register fpscr.
7398 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7399 (fill_gregset): Account for the fact that register ``mq'' might
7401 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7402 (registers_power): Add fpscr to register set at slot 71.
7403 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7404 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7406 2002-04-11 Michael Snyder <msnyder@redhat.com>
7408 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7409 * configure: Regenerate.
7410 * config.in: Regenerate.
7411 * acconfig.h: Add define for _SYSCALL32.
7412 * core-sol2.c: Remove #define _SYSCALL32.
7413 * solib-legacy.c: Remove #define _SYSCALL32.
7415 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7417 * stack.c (select_frame): Cleanup internal error message, do not
7420 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7422 * stack.c (select_frame): Check that selected_frame and the
7423 specified level are as expected.
7424 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7426 * frame.h (struct frame_info): Add field `level'. Update
7428 Work-in-progress PR gdb/464.
7430 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7432 * maint.c (maint_print_section_info): Rename print_section_info.
7433 (print_bfd_section_info, print_objfile_section_info): Update.
7434 * inferior.h (struct gdbarch): Add opaque declaration.
7435 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7436 * gdbarch.h: Regenerate.
7438 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7440 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7441 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7442 (kernel_u_size): Added.
7443 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7444 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7446 2002-04-04 Jim Ingham <jingham@apple.com>
7448 * valarith.c (find_size_for_pointer_math): New function, either returns
7449 the size for a pointer's target, returns 1 for void *, or errors for
7451 (value_add, value_sub): use find_size_for_pointer_math.
7453 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7455 * linux-low.c (linux_look_up_symbols): New hook.
7456 (linux_target_ops): Add linux_look_up_symbols.
7457 * remote-utils.c (decode_address): New function.
7458 (look_up_one_symbol): New function.
7459 * server.c (handle_query): Call target look_up_symbols hook.
7460 * server.h (look_up_one_symbol): Add prototype.
7461 * target.h (struct target_ops): Add look_up_symbols hook.
7463 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7465 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7466 override FP_REGNUM with frame->fp. Update copyright.
7467 * parse.c (num_std_regs, std_regs): Delete.
7468 (target_map_name_to_register): Do not search std_regs. Update
7469 function description.
7470 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7471 declarations. Update copyright.
7474 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7476 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7477 after the last symbol in a block.
7479 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7481 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7482 is non zero as a found symbol.
7484 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7486 * findvar.c: Include "builtin-regs.h".
7487 (value_of_register): Call value_of_builtin_reg when applicable.
7488 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7489 (target_map_name_to_register): Call
7490 builtin_reg_map_name_to_regnum.
7491 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7492 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7493 (builtin_regs_h): Define.
7494 (builtin-regs.o): New target.
7495 (findvar.o): Add $(builtin_regs_h).
7496 * builtin-regs.c, builtin-regs.h: New files.
7497 * std-regs.c: New file.
7498 Partial fix for PR gdb/251.
7500 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7502 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7503 it's no longer required.
7505 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7507 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7509 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7511 From Jimi X <jimix@watson.ibm.com>:
7512 * rs6000-tdep.c (rs6000_software_single_step): Use
7513 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7514 and size. Use target_insert_breakpoint() and
7515 target_remove_breakpoint() to insert and remove breakpoints
7516 instead of explicit memory reads and writes.
7518 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7520 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7521 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7522 ELF_OBJECT_FORMAT ifdef.
7524 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7526 From Jimi X <jimix@watson.ibm.com>:
7527 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7529 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7531 From Jimi X <jimix@watson.ibm.com>:
7532 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7533 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7535 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7537 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7538 s/asprintf/xasprintf/.
7539 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7541 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7543 I believe Jeff Law denies responsability for this one:
7544 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7545 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7546 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7547 Work-around for PR gdb/366.
7549 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7551 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7552 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7553 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7555 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7557 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7558 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7561 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7563 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7566 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7568 * README (Reporting Bugs in GDB): Document the bug web page as the
7569 prefered way of submitting bugs.
7572 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7574 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7576 * gdbarch.h, gdbarch.c: Re-generate.
7578 2002-04-07 Andreas Schwab <schwab@suse.de>
7580 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7581 buffer to regcache_collect.
7583 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7585 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7586 * gdbarch.c, gdbarch.h: Re-generate.
7588 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7590 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7591 declaration. Fix -Werror.
7593 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7595 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7596 * gdbarch.c: Regenerate.
7598 2002-04-05 Michael Snyder <msnyder@redhat.com>
7600 * breakpoint.c (clear_command): Rewrite middle section to
7601 combine two loops with identical control conditions.
7602 Add a cleanup to eliminate a memory leak.
7603 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7605 2002-04-05 H.J. Lu (hjl@gnu.org)
7607 * solib-svr4.c (bkpt_names): Add "__start".
7609 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7611 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7612 as test for 64 bit target.
7614 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7616 * h8500-tdep.c (h8500_write_fp): Delete function.
7617 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7618 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7619 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7620 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7621 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7622 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7624 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7625 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7626 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7627 (d10v_write_fp): Delete function.
7628 * inferior.h (write_fp, generic_target_write_fp): Delete
7630 * regcache.c (generic_target_write_fp): Delete function.
7631 (write_fp): Delete function.
7632 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7633 * gdbarch.h, gdbarch.c: Regenerate.
7634 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7635 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7636 (sparc64_write_fp): Delete declaration.
7637 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7638 (h8500_write_fp): Delete declaration.
7640 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7642 * sparc-tdep.c (sparc64_write_fp): Delete.
7643 (sparc_push_dummy_frame): Replace write_fp call with code to store
7645 (sparc_gdbarch_init): Do not initialize write_fp.
7647 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7649 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7652 2002-03-29 Jim Blandy <jimb@redhat.com>
7654 * stack.c (get_selected_block): Add new argument `addr_in_block',
7655 used to return the exact code address we used to select the block,
7657 * blockframe.c (get_frame_block, get_current_block): Same.
7658 * frame.h (get_frame_block, get_current_block,
7659 get_selected_block): Update declarations.
7660 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7661 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7663 2002-04-05 Michael Snyder <msnyder@redhat.com>
7665 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7668 2002-04-05 J. Brobecker <brobecker@gnat.com>
7670 * utils.c (xfullpath): New function.
7671 * defs.h (xfullpath): Add declaration.
7672 * source.c (openp): Use xfullpath in place of gdb_realpath to
7673 avoid resolving the basename part of filenames when the
7674 associated file is a symbolic link. This fixes a potential
7675 inconsistency between the filenames known to GDB and the
7676 filenames it prints in the annotations.
7677 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7678 to be able to match a filename with either the real filename, or
7679 the name of any symbolic link to this file.
7680 (lookup_partial_symtab): Ditto.
7682 2002-04-04 Michael Snyder <msnyder@redhat.com>
7684 * breakpoint.c: Add support for hardware breakpoints in overlays.
7685 (overlay_events_enabled): New state variable.
7686 (insert_breakpoints): Use overlay_events_enabled to decide
7687 whether to attempt to set a breakpoint at the overlay load addr.
7688 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7689 (remove_breakpoint): Use overlay_events_enabled to decide
7690 whether breakpoints need to be removed from overlay load addr.
7691 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7692 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7693 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7694 disable_overlay_breakpoints): Update overlay_events_enabled.
7696 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7698 * dwarf2read.c (struct function_range): New.
7699 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7700 (check_cu_functions): New.
7701 (read_file_scope): Initialize global function lists.
7702 Call dwarf_decode_line after processing children.
7703 (read_func_scope): Add to global function list.
7704 (dwarf_decode_lines): Call check_cu_functions everywhere
7705 record_line is called. Call record_line with a linenumber
7706 of 0 to mark sequence ends.
7708 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7710 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7711 change sync with glibc.
7713 2002-04-03 Jim Blandy <jimb@redhat.com>
7715 * configure.in: Call AC_C_INLINE.
7716 * configure: Regenerated.
7718 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7720 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7721 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7723 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7725 * NEWS: Mention gcore support on FreeBSD/i386.
7727 * fbsd-proc.c: New file.
7728 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7729 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7731 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7734 2002-03-29 Jim Blandy <jimb@redhat.com>
7736 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7737 unescaped newlines in string literals, but newer ones don't. So
7740 2002-03-26 Michael Snyder <msnyder@redhat.com>
7741 Andrew Cagney <cagney@redhat.com>
7743 * cli/cli-dump.c: New file. Dump memory to file,
7744 restore file to memory.
7745 * cli/cli-dump.h: New file.
7746 * Makefile.in: Add rules, dependencies for cli-dump.o.
7747 * NEWS: Mention new commands.
7749 2002-03-28 Michael Snyder <msnyder@redhat.com>
7751 * symfile.c (symbol_file_add): Move test for null symbols to later.
7753 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7755 From veksler at il.ibm.com:
7756 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7757 the xstrduped original path.
7760 2002-03-27 Michael Snyder <msnyder@redhat.com>
7762 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7763 * infcmd.c (_initialize_infcmd): Ditto.
7764 * language.c (_initialize_language): Ditto.
7765 * symfile.c (_initialize_symfile): Ditto.
7766 * top.c (_init_main): Ditto.
7767 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7769 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7771 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7772 vector registers handling.
7773 (skip_prologue): Handle new AltiVec instructions. Fill in new
7774 fields of frame data.
7775 (frame_get_saved_regs): Fill in information for AltiVec registers.
7777 2002-03-27 Jim Blandy <jimb@redhat.com>
7779 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7780 a function; leave this macro here to invoke that function.
7781 (symbol_init_mangled_name): Declaration for that function.
7782 * symtab.c (symbol_init_mangled_name): New function.
7784 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7786 * valarith.c: Replace strerror with safe_strerror.
7787 * tracepoint.c: Ditto.
7789 * go32-nat.c: Ditto.
7793 2002-03-27 Andreas Schwab <schwab@suse.de>
7795 * event-top.c (command_line_handler): Remove useless if.
7797 2002-03-27 Andreas Jaeger <aj@suse.de>
7799 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7802 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7804 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7805 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7806 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7807 (x86_64_linux_dr_get_status, supply_gregset),
7808 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7809 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7810 (x86_64_register_info_table): Add.
7811 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7812 (x86_64_register_raw_size, x86_64_register_virtual_type),
7813 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7814 general x86_64_register_info_table.
7815 (i386_gdbarch_init): gdbarch_register_bytes is now set
7816 dynamicaly during initialization.
7817 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7818 * gdbserver/linux-x86-64-low.c: Ditto.
7820 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7822 * gdbserver/server.c (main): Call target_signal_to_host_p
7823 and target_signal_to_host on signals received from the remote.
7824 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7825 target_signal_from_host on signals sent to the remote.
7826 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7827 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7829 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7831 * signals/signals.c: Include "server.h" in gdbserver build.
7832 (target_signal_from_name): Don't use STREQ.
7833 (_initialize_signals): Likewise. Don't include function in
7836 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7838 * signals.c: Moved to...
7839 * signals/signals.c: Here.
7840 * Makefile (signals.o): Update.
7842 2002-03-26 Jeff Law (law@redhat.com)
7844 * somread.c (som_symtab_read): Remove some commented out code and
7845 updated related comments. Do not set the minimal symbol table to
7846 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7847 in a dynamic executable.
7848 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7849 where we are unable to find the minimal symbol for the given
7852 2002-03-25 Jeff Law (law@redhat.com)
7854 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7856 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7858 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7860 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7862 * command.h: Update copyright.
7863 (struct cmd_list_element): Replace definition with opaque
7865 (enum cmd_types): Document that it will eventually be moved to
7867 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7868 (MALLOCED_REPLACEMENT): Delete macro.
7869 * Makefile.in (cli_decode_h): Add $(command_h).
7870 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7871 * top.c: Include "cli/cli-decode.h".
7872 * completer.c: Include "cli/cli-decode.h".
7873 * maint.c: Include "cli/cli-decode.h".
7874 * cli/cli-decode.h: Include "command.h".
7875 (enum command_class): Delete.
7876 (enum cmd_types): Comment out.
7877 (enum cmd_auto_boolean): Delete.
7878 (enum var_types): Delete.
7880 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7882 * cli/cli-decode.c: Include "gdb_assert.h".
7883 (add_set_or_show_cmd): New static function.
7884 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7885 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7886 all fields, such as func, from the set command.
7888 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7890 * MAINTAINERS (sh-elf): Change warning flag to -w.
7892 2002-03-23 Andrew Cagney <cagney@redhat.com>
7894 * defs.h (error): Add printf format attribute.
7895 * thread-db.c (thread_from_lwp): Fix error format string.
7896 * stack.c (parse_frame_specification): Ditto.
7897 * cli/cli-decode.c (undef_cmd_error): Ditto.
7898 * scm-lang.c (scm_lookup_name): Ditto.
7899 * tracepoint.c (trace_error): Ditto.
7900 * remote-utils.c (usage): Ditto.
7901 * remote.c (compare_sections_command): Ditto.
7904 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7906 * gdbtypes.c (append_composite_type_field): New function.
7907 (init_composite_type): New function.
7908 * gdbtypes.h (append_composite_type_field): Declare.
7909 (init_composite_type): Ditto.
7911 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7913 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7915 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7916 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7917 structure returning convention for SYSV ABI case, but not
7918 for GNU/Linux, FreeBSD, or NetBSD.
7920 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7922 * symtab.h (lookup_block_symbol): Add mangled_name argument
7925 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7926 with new mangled_name argument.
7927 * linespec.c (decode_line_1): Likewise.
7928 * valops (value_of_this): Likewise.
7929 * symtab.c (lookup_transparent_type): Likewise.
7930 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7931 (lookup_symbol): If we are given a mangled name, pass it down
7932 to lookup_symbol_aux.
7933 (lookup_block_symbol): If we are given a mangled name to check
7934 against, only return symbols which match it.
7936 2002-03-22 Christopher Faylor <cgf@redhat.com>
7938 * win32-nat.c (child_create_inferior): Check for proper shell to use
7939 here, in case the user changes it on the fly.
7940 (_initialize_inftarg): Remove shell path considerations.
7942 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7944 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7945 for gdbarch_max_register_raw_size and max_register_virtual_size.
7946 Adjust copyright year.
7948 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7950 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7951 in a function to cover the entire beginning of the function
7952 as well if it does not already.
7954 2002-03-21 Tom Rix <trix@redhat.com>
7956 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7957 (rs6000_ptrace64): Renamed from ptrace64.
7959 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7961 * gdbserver/remote-utils.c (remote_open): Don't call
7962 getprotobyname, we're all using TCP here so just use
7964 * gdbserver/gdbreplay.c (remote_open): Ditto.
7966 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7968 * regcache.c (_initialize_regcache): No need to call
7969 build_regcache() at this time; it gets called whenever
7970 the gdbarch changes.
7972 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7974 * sparc-nat.c: Include sys/param.h where possible.
7976 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7979 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7980 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7981 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7983 * stabsread.c (rs6000_builtin_type): Likewise.
7984 (read_sun_floating_type): Likewise.
7986 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7988 * stabsread.c (read_member_functions): Remove skip code for duplicate
7989 constructor/destructor methods. Use standard parsing for these
7990 methods and just do not chain them to the list of methods after
7993 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7995 * coffread.c: Remove redundant static declarations. Replace
7996 occurrences of `PTR' with `void *'.
7997 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7998 * top.h (quit_cover): Likewise.
7999 * defs.h (catch_errors): Likewise.
8001 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8003 * defs.h (XMALLOC): Define.
8004 * gdb-events.sh (XMALLOC): Delete macro.
8005 * gdb-events.c, gdb-events.h: Regenerate.
8006 * gdbarch.sh (XMALLOC): Delete macro.
8007 * gdbarch.c: Regenerate.
8008 * serial.c (XMALLOC): Delete macro.
8009 * ui-file.c (XMALLOC): Ditto.
8010 * ser-unix.h (XMALLOC): Ditto.
8011 * sh-tdep.c (XMALLOC): Ditto.
8012 * ui-out.c (XMALLOC): Ditto.
8013 * utils.c (XMALLOC): Ditto.
8014 * i386-tdep.c (XMALLOC): Ditto.
8015 * gdb-events.c (XMALLOC): Ditto.
8016 * d10v-tdep.c (XMALLOC): Ditto.
8017 * cli-out.c (XMALLOC): Ditto.
8019 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
8020 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
8021 * ui-file.c, ui-out.c: Ditto.
8023 2002-03-18 Andrew Cagney <ac131313@redhat.com>
8025 * command.h (struct cmd_list_element): Add field context.
8026 (set_cmd_context, get_cmd_context): Declare.
8027 * cli/cli-decode.h: Ditto.
8028 * cli/cli-decode.c (get_cmd_context): New function.
8029 (set_cmd_context): New function.
8030 (add_cmd): Initialize context.
8031 Part of fixing PR gdb/145 and PR gdb/146.
8033 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8035 * cli/cli-decode.c (cmd_type): New function.
8036 * command.h (cmd_type): Declare.
8037 * infrun.c (set_schedlock_func): Call function cmd_type.
8038 * kod.c (kod_set_os): Call cmd_type.
8039 * cris-tdep.c (cris_version_update): Use function cmd_type.
8040 (cris_mode_update, cris_abi_update): Ditto.
8042 * command.h: (execute_cmd_post_hook): Declare.
8043 (execute_cmd_pre_hook): Declare.
8044 * cli/cli-script.c (clear_hook_in_cleanup): New function.
8045 (execute_cmd_post_hook, execute_cmd_pre_hook): New
8046 functions. Execute pre/post hook while ensuring that afterwords
8048 * top.c (execute_command): Use execute_cmd_post_hook, and
8049 execute_cmd_pre_hook to execute pre/post commands.
8050 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
8052 (hook_stop_stub): Call execute_cmd_pre_hook.
8054 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8056 * kod.c (kod_set_os): Revert previous change. Is called by ``info
8057 set'' and this leads to a core dump. Move xstrdup of
8058 operating_system to after check that it is not NULL.
8060 2002-03-17 Andrew Cagney <ac131313@redhat.com>
8062 * kod.c (kod_set_os): Remove unnecessary check that
8063 ``command->type'' is set_cmd.
8065 * valprint.c (set_input_radix): Use input_radix.
8066 (set_output_radix): Use output_radix.
8067 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
8070 2002-03-16 Andrew Cagney <ac131313@redhat.com>
8072 * value.h (struct value): Delete field ``substring_addr''. Change
8073 aligner fields to force_doublest_align, force_longest_align,
8074 force_core_addr_align and force_pointer_aligh.
8076 * value.h (struct value): Fix typo in above change.
8078 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8080 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
8081 to fix internal_error from ``maintenance print architecture''.
8083 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8085 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
8086 for gcc versions after gcc-2.8.1.
8088 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8090 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
8091 for method resolution. Restore adjustment of ``this'' pointer after
8092 calling value_struct_elt, which was accidentally removed during the
8095 2002-03-15 Andrew Cagney <ac131313@redhat.com>
8097 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
8099 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
8101 * value.h (value_of_register): Update.
8103 2002-03-14 Richard Henderson <rth@redhat.com>
8105 * configure.in: Detect declaration for canonicalize_file_name.
8106 * utils.c (canonicalize_file_name): Declare, if needed.
8107 (gdb_realpath): Prefer realpath if available and usable.
8108 * config.in, configure: Rebuild.
8110 2002-03-14 Richard Henderson <rth@redhat.com>
8112 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
8113 a constant array bound.
8115 * MAINTAINERS: Add myself to write-after-approval.
8117 2002-03-14 Michael Snyder <msnyder@redhat.com>
8119 * symfile.c (syms_from_objfile): Return immediately if no syms.
8120 (symbol_file_add): Return immediately if no syms.
8121 (find_sym_fns): Return immediately if no syms.
8123 2002-03-13 Michal Ludvig <mludvig@suse.cz>
8125 * gdbserver/remote-util.c (remote_open): Print remote-side's
8126 IP address when remote debugging over the network.
8128 2002-03-12 David O'Brien <obrien@FreeBSD.org>
8130 * config/sparc/fbsd.mh: Fix copyright.
8131 * config/sparc/fbsd.mt: Likewise.
8133 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
8135 * MAINTAINERS: Fix typo in name of gdb warnings option.
8136 (x86-64): Fix formating so that this can be parsed by awk.
8138 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8140 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
8141 * defs.h: Include "gdb/signals.h".
8142 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
8144 2002-03-10 Michal Ludvig <mludvig@suse.cz>
8146 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
8147 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
8150 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
8151 Don Howard <dhoward@redhat.com>
8153 * mips-tdep.c (ST0_FR): Define.
8154 (mips2_fp_compat): New function, temporarily disabled.
8155 (mips_read_fp_register_single): New function.
8156 (mips_read_fp_register_double): New function.
8157 (mips_print_register): Use them.
8158 (do_fp_register_row): Likewise.
8160 2002-03-09 Andrew Cagney <ac131313@redhat.com>
8162 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
8165 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8167 * stabsread.c (read_member_functions): Fix is_stub test for
8168 static member functions, improve comment.
8170 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
8172 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
8173 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
8174 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
8175 commands that set boolean values.
8176 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
8177 (arm_rdi_resume): Always initialize PC.
8178 (arm_rdi_open): Don't use rslt as a boolean.
8179 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
8180 (arm_rdi_fetch_registers, arm_rdi_store_registers)
8181 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
8182 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
8184 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
8186 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
8187 * configure: Rebuilt.
8189 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
8191 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
8192 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
8194 2002-03-06 Andrew Cagney <ac131313@redhat.com>
8196 * cli/cli-decode.c (set_cmd_completer): New function.
8197 * command.h (set_cmd_completer): Declare.
8198 * cli/cli-decode.h (set_cmd_completer): Ditto.
8200 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
8201 * cli/cli-cmds.c (init_cli_cmds): Ditto.
8202 * win32-nat.c (_initialize_inftarg): Ditto.
8203 * remote-rdi.c (_initialize_remote_rdi): Ditto.
8204 * proc-api.c (_initialize_proc_api): Ditto.
8205 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
8206 * source.c (_initialize_source): Ditto.
8207 * exec.c (_initialize_exec): Ditto.
8208 * solib.c (_initialize_solib): Ditto.
8209 * top.c (init_main): Ditto.
8210 * tracepoint.c (_initialize_tracepoint): Ditto.
8211 * symfile.c (_initialize_symfile): Ditto.
8212 * printcmd.c (_initialize_printcmd): Ditto.
8213 * infcmd.c (_initialize_infcmd): Ditto.
8214 * corefile.c (_initialize_core): Ditto.
8216 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8218 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8220 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8222 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8224 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8226 * NEWS: Update headings, 5.2 has branched.
8228 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8230 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8231 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8232 (register_addr, REGISTER_RAW_SIZE): Likewise.
8233 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8234 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8236 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8238 * MAINTAINERS (x86-64): Add myself.
8239 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8240 changed value_ptr -> struct value *
8242 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8244 * configure.host (sparc64-*-freebsd): Add.
8245 * configure.tgt: Likewise.
8246 * config/sparc/fbsd.mh: New file.
8247 * config/sparc/fbsd.mt: Likewise.
8248 * config/sparc/nm-fbsd.h: Likewise.
8249 * config/sparc/tm-fbsd.h: Likewise.
8251 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8253 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8254 regformats/reg-s390x.dat.
8256 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8258 * utils.c: Add FIXME explaining true/false problem.
8260 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8262 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8264 2002-02-28 Michael Chastain <mec@shout.net>
8266 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8268 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8270 * gdbserver/linux-s390-low.c: New file.
8271 * regformats/reg-s390.dat: New file.
8272 * regformats/reg-s390x.dat: New file.
8273 * gdbserver/configure.srv: Add S/390.
8274 * gdbserver/Makefile.in: Add S/390.
8275 * configure.tgt: Enable gdbserver for S/390.
8277 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8279 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8280 first line of the doc string for "info dos", except at the end of
8281 the sentence, since the short help stops at the first period.
8283 2002-02-28 Jason Merrill <jason@redhat.com>
8285 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8287 2002-02-27 Fred Fish <fnf@redhat.com>
8289 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8290 comment (dumy -> dummy).
8292 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8294 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8296 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8298 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8300 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8302 * gdbserver/acconfig.h: New file.
8303 * gdbserver/i387-fp.c: New file.
8304 * gdbserver/i387-fp.h: New file.
8305 * gdbserver/linux-x86-64.c: New file.
8306 * regformats/reg-x86-64.dat: New file.
8307 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8308 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8309 * gdbserver/configure.in: Add support for regsets.
8310 * gdbserver/config.in: Regenerate.
8311 * gdbserver/configure: Regenerate.
8312 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8313 * gdbserver/linux-low.h: New file.
8314 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8316 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8317 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8318 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8319 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8320 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8321 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8322 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8323 "i387-fp.h". Add PTRACE_GETREGS and friends.
8324 * gdbserver/regcache.c (supply_register): New function.
8325 (supply_register_by_name): New function.
8326 (collect_register): New function.
8327 (collect_register_by_name): New function.
8329 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8331 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8332 (config.status): Add configure.srv dependency.
8333 (server_h): Add config.h dependency.
8335 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8337 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8338 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8339 * gdbserver/configure.srv: Change i386-*-linux* to use
8342 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8344 * x86-64-tdep.c: Re-indent. Update copyright date.
8346 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8348 From Michal Ludvig <mludvig@suse.cz>:
8349 * x86-64-tdep.c (value.h): Delete.
8350 (gdb_assert.h): Include.
8351 (x86_64_register_convert_to_virtual,
8352 x86_64_register_convert_to_raw ): Add check which lets only
8353 floating-point values to be converted.
8354 (value_push): Delete.
8355 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8356 (i386_gdbarch_init): Number of register_bytes fixed.
8358 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8360 * MAINTAINERS: Add x86-64 target.
8362 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8364 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8365 * osfsolib.c (solib_map_sections): Ditto.
8366 * irix5-nat.c (solib_map_sections): Ditto.
8367 * corelow.c (gdb_check_format): Ditto.
8368 * symfile.c (symfile_bfd_open): Ditto.
8369 * solib.c (solib_map_sections): Ditto.
8372 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8374 * remote.c (_initialize_remote): By default, disable ``e'' and
8375 ``E'' step out-of-range packets.
8377 2002-02-26 Andreas Schwab <schwab@suse.de>
8379 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8380 m68k_linux_frame_saved_pc.
8381 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8383 (SIGCONTEXT_PC_OFFSET): Remove.
8384 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8385 m68k_linux_sigtramp_saved_pc): New functions.
8386 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8387 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8388 (UCONTEXT_PC_OFFSET): Define.
8389 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8390 non-RT and RT signal trampolines.
8392 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8394 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8395 (TARGET_NBPG, STACK_END_ADDR): Delete
8396 (VARIABLES_INSIDE_BLOCK): Delete.
8398 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8400 * utils.c (perror_with_name): Make string parameter constant.
8401 (print_sys_errmsg): Ditto.
8403 * defs.h (perror_with_name): Update.
8404 (print_sys_errmsg): Update.
8407 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8409 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8410 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8412 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8414 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8415 if it already matches the current architecture from the exec file.
8416 Include arch-utils.h for gdbarch_info_init prototype.
8417 * Makefile.in (rs6000-nat.o): Update dependencies.
8419 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8421 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8422 list of exported variables.
8424 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8426 * gdbserver/configure.srv: New file.
8427 * gdbserver/configure.in: Use configure.srv instead
8428 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8430 * gdbserver/configure: Regenerated.
8431 * gdbserver/terminal.h: New file.
8432 * gdbserver/Makefile.in: Update for configure changes. Remove
8433 more unneeded include paths.
8435 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8437 From wiz at danbala:
8438 * config/sparc/tm-sp64.h: Fix grammar and typos.
8441 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8443 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8444 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8445 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8446 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8447 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8448 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8449 * s390-tdep.c: Ditto.
8450 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8451 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8452 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8453 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8454 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8455 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8456 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8457 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8458 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8459 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8462 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8464 * lin-thread.c: Delete file.
8465 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8466 to gdb_proc_service.h.
8467 * configure: Re-generate.
8469 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8470 * serial.c (serial_open): Delete check for "ocd".
8473 * Makefile.in (linux-thread.o): Delete target.
8474 * linux-thread.c: Delete file.
8476 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8477 renamed SH files to be consistent.
8479 * symtab.c (sort_search_symbols): Use xfree.
8481 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8483 * arm-linux-tdep.c (arm_linux_init_abi): Register
8484 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8485 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8486 definition with undef, since we don't want the sysvr4 definition.
8487 (SKIP_TRAMPOLINE_CODE): Likewise.
8489 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8491 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8493 * configure.in: (AC_CHECK_FUNCS) Added test for
8494 canonicalize_file_name Regenerated.
8495 * config.in, configure: Regenerated.
8496 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8497 defined use canonicalize_file_name.
8499 2002-02-23 Michael Chastain <mec@shout.net>
8501 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8503 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8505 * README: Remove references to cygnus.com.
8506 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8507 dot com'' form. Remove references to cygnus.com and sourceware.
8509 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8511 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8512 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8513 1003.1-2001 no longer allows "head -1".
8514 * gdb/Makefile.in (version.c): Likewise.
8515 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8516 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8517 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8519 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8521 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8522 * command.h (cmd_cfunc_eq): Declare.
8523 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8525 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8526 ``struct cmd_list_element *''.
8527 * cli/cli-cmds.c (is_complete_command): Update. Use
8529 * top.c (execute_command): Pass the command to
8530 is_complete_command.
8531 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8533 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8535 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8536 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8537 architecture defines.
8538 * s390-tdep.c (s390_gdbarch_init): Likewise.
8540 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8542 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8543 (arm_linux_push_arguments): Likewise.
8544 (arm_linux_init_abi): Register them. Also register linux-specific
8546 (find_minsym_and_objfile): Use strcmp, not STREQ.
8547 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8548 (arm_linux_call_dummy_words): Delete declaration.
8549 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8550 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8552 (LOWEST_PC): Delete.
8554 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8556 * maint.c (print_section_info): Do not prepend `0x' to filepos
8557 output, it will be handled by local_hex_string_custom.
8559 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8561 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8562 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8563 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8565 2002-02-22 Jim Blandy <jimb@redhat.com>
8567 Indicate that the bcache functions don't change the strings
8569 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8570 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8572 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8574 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8576 2002-02-21 Christopher Faylor <cgf@redhat.com>
8578 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8579 find the complete path to a loaded DLL.
8581 2002-02-21 Fred Fish <fnf@redhat.com>
8583 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8584 that marks the end of the range of a function, enter a line number
8585 entry that has a line number of zero and a PC offset that matches
8586 the end of the function. This starts a range of PC's for which no
8587 line number information is known.
8588 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8589 PC's for which no line number info is found (line number is zero)
8590 then we didn't find any valid line information.
8591 * symtab.h: Document use of zero line number entry.
8593 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8595 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8596 (have_ptrace_getvrregs): Define for run time checks.
8597 (gdb_vrregset_t): New type for Altivec register handling.
8598 (fetch_register, store_register): Fetch/store altivec register
8600 (fetch_altivec_register, store_altivec_register): New functions.
8601 (supply_vrregset, fill_vrregset): New functions.
8602 (fetch_altivec_registers, store_altivec_registers): New functions.
8603 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8606 2002-02-21 Jiri Smid <smid@suse.cz>
8608 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8610 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8612 * Makefile.in (armnbsd-nat.o): Update dependencies.
8613 * armnbsd-nat.c (supply_gregset): New function. Common code to
8614 supply the integer register set.
8615 (supply_fparegset): New function. Similar for FPA registers.
8616 (fetch_regs, fetch_fp_regs): Use them.
8617 (fetch_core_registers): Likewise.
8618 (fetch_elfcore_registers): New function.
8619 (arm_netbsd_elfcore_fns): New core-file type specification.
8620 (_initialize_arm_netbsd_nat): Register it.
8622 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8624 * armnbsd-nat.c: Include gdbcore.h.
8625 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8626 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8627 'void' to declaration, to shut up ARI.
8628 (fetch_core_registers): Make static. Rewrite using supply_register.
8629 (arm_netbsd_core_fns): New core-file type specification.
8630 (_initialize_arm_netbsd_nat): New function.
8632 2002-02-21 Christopher Faylor <cgf@redhat.com>
8634 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8637 2002-02-20 Christopher Faylor <cgf@redhat.com>
8639 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8642 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8644 * jv-exp.y (parse_number): Change type of implicit longs
8645 to builtin_type_uint64.
8647 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8649 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8650 to be an integer instead of a `union wait'.
8652 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8654 * mips-linux-nat.c: Call the operating system GNU/Linux.
8655 * mips-linux-tdep.c: Likewise.
8656 * mips-tdep.c: Likewise.
8658 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8661 * jv-exp.y (parse_number): Handle 64-bit integers.
8663 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8665 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8666 AC_STDC_HEADERS to AC_HEADER_STDC.
8667 * gdbserver/configure: Regenerated.
8669 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8671 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8673 * sparc-tdep.c (get_longjmp_target): Likewise.
8675 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8677 * News: Add news about ARM and Multi-arch. Mention the new target
8680 2002-02-19 Jim Blandy <jimb@redhat.com>
8682 * stabsread.c (error_type_complaint): Improve error message.
8684 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8686 * gdbserver/README: Update documentation.
8687 * gdbserver/configure.in: Update configury to match documentation.
8688 * gdbserver/Makefile.in: Likewise.
8689 * gdbserver/configure: Regenerated.
8690 * gdbserver/aclocal.m4: New file, generated by aclocal.
8691 * gdbserver/config.in: New file, generated by autoheader.
8693 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8695 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8698 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8700 * arm-tdep.h (enum arm_float_model): New enum.
8701 (struct gdbarch_tdep): Add fp_model.
8702 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8703 up floating-point conversions until we know the floating-point model
8704 in use by the inferior. Don't complain about being unable to
8705 determine the ABI of the inferior when we don't have one.
8706 (arm_extract_return_value): Support different floating-point models.
8707 (arm_store_return_value): Likewise.
8708 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8710 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8712 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8714 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8715 of ``current_gdbarch''.
8717 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8719 * armnbsd-nat.c : ANSIfy all function declarations.
8720 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8721 (fetch_inferior_registers): Re-implement in terms of above.
8722 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8723 (store_inferior_registers): Re-implement in terms of above.
8725 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8727 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8729 * arm-linux-tdep.c: Likewise.
8730 * config/arm/tm-linux.h: Likewise.
8732 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8734 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8735 * config/arm/nbsd.mt (TM_FILE): Delete.
8736 * config/arm/tm-nbsd.h: Delete.
8738 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8740 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8741 Initialize CALL_DUMMY_LENGTH.
8743 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8745 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8747 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8748 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8749 defines one thing and that is incorrect for this port.
8750 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8752 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8754 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8756 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8758 * win32-nat.c (display_selector): New function. Displays information
8759 about the information returned by GetThreadSelectorEntry API function.
8760 (display_selectors): New function. Displays the infomation of
8761 the selector given as argument, or of CS, DS ans FS selectors
8762 if no argument is given.
8763 ( _initialize_inftarg): Add "w32" as info prefix command.
8764 Add "info w32 selector" as command calling display_selectors.
8766 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8768 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8769 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8772 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8774 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8776 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8778 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8779 (arm_fix_call_dummy): Call it.
8780 (arm_call_dummy_breakpoint_offset): Delete.
8781 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8782 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8784 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8786 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8787 Default to func_frame_chain_valid.
8788 * gdbarch.h, gdbarch.c: Re-generate.
8789 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8791 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8793 * ppc-linux-nat.c: Update copyright.
8794 (fetch_register, store_register): Add tid parameter, don't compute
8796 (fetch_ppc_registers, store_ppc_registers): Add tid
8797 parameter. Pass it along to callees.
8798 (fetch_inferior_registers, store_inferior_registers): Compute tid
8799 here, and pass it to calleed functions.
8800 (fill_gregset, supply_fpregset): Clean up formatting.
8802 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8804 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8805 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8807 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8809 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8810 * gdbarch.c gdbarch.h: Regenerate.
8811 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8813 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8814 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8815 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8817 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8818 * arm-tdep.c (arm_get_longjmp_target): New function.
8819 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8820 this to a positive value register arm_get_longjmp_target as the
8822 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8823 (arm_linux_init_abi): Set up longjmp description in tdep.
8824 * armnbsd-nat.c (get_longjmp_target): Delete.
8825 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8826 description in tdep.
8827 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8828 (get_longjmp_target): Delete declaration.
8829 (GET_LONGJMP_TARGET): Delete.
8830 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8831 (GET_LONGJMP_TARGET): Delete.
8833 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8835 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8836 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8837 of ``current_gdbarch''.
8839 2002-02-17 Tom Tromey <tromey@redhat.com>
8841 * cli/cli-cmds.c (compare_strings): New function.
8842 (complete_command): Only print each unique item once.
8843 * completer.h (complete_line): Declare.
8844 * completer.c (complete_line): New function.
8845 (line_completion_function): Use it.
8847 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8849 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8850 * gdbarch.h, gdbarch.c: Re-generate.
8852 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8854 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8856 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8858 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8859 * valops.c (value_arg_coerce): Don't take the address of a reference
8860 to convert an argument to a reference.
8862 2002-02-15 Christopher Faylor <cgf@redhat.com>
8864 * win32-nat.c (get_image_name): New function.
8865 (handle_load_dll): Use get_image_name function.
8866 (get_child_debug_event): Avoid registering debug events until possibly
8867 execed process is started.
8868 (child_create_inferior): Allow invocation via shell so that command
8869 line redirection, etc. works ok.
8870 (_initialize_inftarg): Add new command: "set shell" to control whether
8871 a shell is used to start a process.
8873 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8875 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8876 instead of find_register_by_number.
8877 (cannot_store_register): Likewise.
8879 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8881 * dwarf2read.c: Replace fprintf (stderr, ...) by
8882 fprintf_unfiltered (gdb_stderr, ...).
8884 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8886 * gdbserver/gdbserver.1: Document --attach.
8888 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8890 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8892 * arm-tdep.c (arm_default_arm_le_breakpoint)
8893 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8894 (arm_default_thumb_be_breakpoint): New. Initialize them from
8895 traditional breakpoint defines.
8896 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8897 (arm_gdbarch_init): Initialize new breakpoint variables.
8898 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8899 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8900 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8901 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8903 (arm_netbsd_init_abi_common): ... here; new function.
8904 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8905 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8906 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8907 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8909 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8911 * arm-tdep.h (enum arm_abi): New enum.
8912 (struct gdbarch_tdep): New structure.
8913 (LOWEST_PC): Provide a default.
8914 (arm_gdbarch_register_os_abi): Declare new function.
8915 * arm-tdep.c (arm_abi_names): New array.
8916 (process_note_abi_tag_sections): New function.
8917 (get_elfosabi): New function.
8918 (arm_gdbarch_register_os_abi): New function.
8919 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8920 support for that ABI has been built in, then call the appropriate
8921 configuration routine. Use gdbarch_num_regs() to get the number
8923 (arm_dump_tdep): New function.
8924 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8925 place-holder functions.
8926 (_initialize_arm_tdep): Register them.
8927 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8929 * armnbsd-tdep.c: New file.
8930 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8931 * config/arm/nbsd.mt (TDEPFILES): Add it.
8932 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8934 * armnbsd-nat.c: Include regcache.h.
8935 * Makefile.in (armnbsd-nat.o): Update dependency list.
8937 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8939 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8941 * gdbserver/Makefile.in: Fix typos in target rules.
8943 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8945 Fix part of PR gdb/267.
8946 * linespec.c (find_methods): Handle constructors specially for now.
8948 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8950 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8952 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8953 standard_coerce_float_to_double().
8955 2002-02-14 Christopher Faylor <cgf@redhat.com>
8957 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8960 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8962 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8963 find_variant_by_name, because it confuses the multiarch
8964 framework. Return NULL if there isn't an architecture with the
8965 user supplied name, instead of forcing a different one without
8966 recording the change with the multiarch machinery.
8967 (find_variant_by_name): Delete.
8969 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8971 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8972 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8974 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8976 * stack.c (print_frame_info_base): When calling
8977 print_frame_info_listing_hook, set current_source_symtab.
8979 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8981 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8982 and remove unused $(INCLUDE_DIR).
8983 Add regcache.c to OBS.
8984 Add generated register protocol files to clean target.
8985 Update dependencies for new objects, obsolete old target code.
8987 * gdbserver/linux-low.c: Remove all platform-specific code to
8988 new files. Remove various dead code. Update to use regcache
8990 * gdbserver/remote-utils.c (fromhex): Add return statement
8992 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8994 (input_interrupt): Add integer parameter to match prototype
8995 of a signal handler.
8996 (outreg): Use register_data ().
8997 (prepare_resume_reply): Use gdbserver_expedite_regs.
8998 * gdbserver/server.c (main): Dynamically allocate own_buf because
8999 PBUFSIZ is no longer constant. Use registers_to_string () and
9000 registers_from_string ().
9001 * gdbserver/server.h: No longer include "defs.h". Add prototypes
9002 for error (), fatal (), and warning (). Update definition of
9003 PBUFSIZ to use regcache functionality. Add include guard.
9004 * gdbserver/utils.c (fatal): Add missing ``const''.
9005 (warning): New function.
9007 * regformats/regdat.sh: Include "regcache.h" in generated files.
9008 Provide init_registers () function.
9009 * regformats/regdef.h: Add prototype for set_register_cache ().
9012 * gdbserver/linux-arm-low.c: New file.
9013 * gdbserver/linux-i386-low.c: New file.
9014 * gdbserver/linux-ia64-low.c: New file.
9015 * gdbserver/linux-m68k-low.c: New file.
9016 * gdbserver/linux-mips-low.c: New file.
9017 * gdbserver/linux-ppc-low.c: New file.
9018 * gdbserver/linux-sh-low.c: New file.
9020 * gdbserver/regcache.c: New file.
9021 * gdbserver/regcache.h: New file.
9023 * gdbserver/low-linux.c: Removed obsolete file.
9025 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9027 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
9028 * config/i386/linux.mt: Likewise.
9029 * config/ia64/linux.mt: Likewise.
9030 * config/m68k/linux.mh: Likewise.
9031 * config/powerpc/linux.mh: Likewise.
9032 * config/mips/linux.mt: Likewise.
9034 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
9036 * config/i386/i386lynx.mh: Mark gdbserver variables
9037 as (currently) obsolete for this target.
9038 * config/i386/nbsd.mt: Likewise.
9039 * config/i386/nbsdelf.mt: Likewise.
9040 * config/m32r/m32r.mt: Likewise.
9041 * config/m68k/m68klynx.mh: Likewise.
9042 * config/m68k/nbsd.mt: Likewise.
9043 * config/m68k/sun3os4.mh: Likewise.
9044 * config/mips/vr5000.mt: Likewise.
9045 * config/ns32k/nbsd.mt: Likewise.
9046 * config/pa/hppabsd.mh: Likewise.
9047 * config/pa/hppaosf.mh: Likewise.
9048 * config/powerpc/nbsd.mt: Likewise.
9049 * config/rs6000/rs6000lynx.mh: Likewise.
9050 * config/s390/s390.mt: Likewise.
9051 * config/s390/s390x.mt: Likewise.
9052 * config/sparc/sparclynx.mh: Likewise.
9053 * config/sparc/sun4os4.mh: Likewise.
9054 * config/i386/x86-64linux.mt: Likewise.
9055 * config/sparc/linux.mh: Likewise.
9057 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
9059 * configure.tgt: Configure gdbserver only for known working
9060 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
9061 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
9062 SUBDIRS if it is configured. Update comment for ${nativefile}.
9063 * configure: Regenerated.
9065 2002-02-13 Michael Snyder <msnyder@redhat.com>
9067 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
9069 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
9070 (default_gcore_mach): Just return 0, work around a problem in bfd.
9071 (default_gcore_target): OK to return NULL if exec_bfd is null.
9072 (make_mem_sec): Use a cast, avoid a warning.
9074 * procfs.c (find_memory_regions_callback): Use a cast instead of
9075 calling host_pointer_to_address (which complains if
9076 sizeof (host pointer) != sizeof (target pointer)).
9077 (procfs_make_note_section): Avoid overflow in psargs string.
9079 * procfs.c (procfs_make_note_section): Make the default
9080 implementation return an error.
9082 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
9084 * procfs.c (procfs_make_note_section): Provide a default definition
9085 (for alpha-dec-osf4.0f). Fix typos.
9087 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
9089 * linux-proc.c: Add include of regcache.h.
9090 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
9092 2002-02-13 Andrew Cagney <ac131313@redhat.com>
9094 From 2002-01-18 Greg McGary <greg@mcgary.org>:
9095 * memattr.c (create_mem_region): Disallow useless empty region.
9096 Regions are half-open intervals, so allow [A..B) [B..C) as
9099 2002-02-13 Michael Chastain <mec@shout.net>
9101 * defs.h: Kill CONST_PTR.
9102 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
9103 * c-lang.c (c_builtin_types): Likewise.
9104 * ch-lang.c (ch_builtin_types): Likewise.
9105 * f-lang.c (f_builtin_types): Likewise.
9106 * language.c (unknown_builtin_types): Likewise.
9107 * m2-lang.c (m2_builtin_types): Likewise.
9108 * p-lang.c (pascal_builtin_types): Likewise.
9109 * scm-lang.c (c_builtin_types): Likewise.
9111 2002-02-13 Keith Seitz <keiths@redhat.com>
9113 * arm-tdep.h (arm_get_next_pc): Add declaration.
9115 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
9117 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
9118 with other related struct-returning functions.
9119 (arm_extract_struct_value_address): New function.
9120 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
9121 initialize float_format, double_format and long_double_format as
9122 appropriate to the endianness of the target.
9123 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
9124 (arm_use_struct_convention): Delete declaration.
9125 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
9127 2002-02-13 Keith Seitz <keiths@redhat.com>
9129 * defs.h (core_addr_to_string_nz): New function.
9131 2002-02-13 Mark Kettenis <kettenis@gnu.org>
9133 Apply missing bits of 2002-01-15 patch.
9134 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
9135 (fill_fpregset): Use i387_fill_fsave.
9137 2002-02-12 Keith Seitz <keiths@redhat.com>
9139 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
9140 (core_addr_to_string_nz): New function.
9142 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9144 * arm-linux-nat.c: Really include arm-tdep.h.
9145 * config/arm/tm-linux.h (struct type, struct value): Declare.
9147 2002-02-11 Michael Snyder <msnyder@redhat.com>
9149 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
9150 (gcore section): Ifdef for Solaris and Unixware only.
9151 (procfs_do_thread_registers): Unixware needs one lwpstatus
9152 per thread (not one prstatus or pstatus).
9153 (procfs_make_note_section): Iterate only over kernel threads (lwps),
9154 not over all gdb threads. For unixware, call elfcore_write_pstatus
9155 once before iterating over threads.
9157 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9159 * arm-tdep.h: New file.
9160 * arm-tdep.c: Include arm-tdep.h.
9161 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9162 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9163 (arm_print_float_info, arm_register_type, convert_to_extended)
9164 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9165 (arm_extract_return_value, arm_register_name): Make static.
9166 (arm_software_single_step): Similarly. Fix types in declaration.
9167 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
9168 (arm_store_return_value, arm_store_struct_return): New functions.
9169 (arm_gdbarch_init): Register the above functions. Also register
9170 call_dummy_start_offset, sizeof_call_dummy_words,
9171 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
9172 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
9173 max_register_virtual_size, register_size. Set up
9174 prologue_cache.saved_regs here, rather than ...
9175 (_initialize_arm_tdep): ... here.
9176 * config/arm/tm-arm.h (struct type, struct value): Delete forward
9178 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
9179 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
9180 (arm_print_float_info, arm_register_type, convert_to_extended)
9181 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
9182 (arm_extract_return_value, arm_register_name): Delete declarations.
9183 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
9184 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
9185 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
9186 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
9187 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
9188 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
9189 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
9190 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
9191 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
9192 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
9193 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
9194 (arm_get_next_pc): No-longer static -- these are needed by the RDI
9196 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
9197 * remote-rdi.c remote-rdp.c: Likewise.
9198 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
9199 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
9200 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
9203 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
9204 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
9205 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
9206 from non-ARM_ prefixed definitions.
9207 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
9209 * remote-rdi.c remote-rdp.c: Likewise.
9210 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9212 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9214 * arm-tdep.c (arm_frameless_function_invocation)
9215 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9216 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9217 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9218 (arm_pop_frame, arm_get_next_pc): Make static.
9219 (arm_gdbarch_init): Register above in gdbarch structure.
9220 (arm_read_fp): Renamed from arm_target_read_fp.
9221 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9222 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9223 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9224 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9225 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9226 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9227 (arm_pc_is_thumb_dummy): Delete declarations.
9228 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9229 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9230 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9231 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9233 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9235 * symtab.c (compare_search_syms): New function.
9236 (sort_search_symbols): New function.
9237 (search_symbols): Sort symbols after searching rather than
9240 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9242 * NEWS: Linux -> GNU/Linux.
9244 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9246 * gdbarch.sh: For for level one methods, disallow a definition
9247 when partially multi-arched. Add comments explaining rationale.
9248 * gdbarch.h: Re-generate.
9250 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9252 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9255 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9257 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9259 * gdbarch.c: Re-generate.
9261 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9263 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9264 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9267 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9269 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9271 (PUSH_ARGUMENTS): Switch to using predefault.
9272 * gdbarch.c: Regenerate.
9274 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9276 * valops.c (PUSH_ARGUMENTS): Delete definition.
9277 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9278 partial. Default to default_push_arguments.
9279 * gdbarch.h, gdbarch.c: Regenerate.
9281 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9283 * defs.h (throw_exception): Rename return_to_top_level. Update
9285 * utils.c (error_stream, internal_verror, quit): Ditto.
9286 * top.c (throw_exception, catcher): Ditto.
9287 * sparclet-rom.c (sparclet_load): Ditto.
9288 * remote.c (interrupt_query, minitelnet): Ditto.
9289 * remote-sds.c (interrupt_query): Ditto.
9290 * remote-mips.c (mips_error, mips_kill): Ditto.
9291 * ocd.c (interrupt_query): Ditto.
9292 * monitor.c (monitor_interrupt_query): Ditto.
9293 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9294 * target.h: Update comment.
9296 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9298 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9300 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9301 default_double_format.
9302 * gdbarch.h, gdbarch.c: Re-generate.
9303 * findvar.c (floatformat_unknown): Delete variable definition.
9304 * doublest.h (floatformat_unknown): Delete variable declaration.
9306 2002-02-09 Jim Blandy <jimb@redhat.com>
9308 * stabsread.c (read_type): Add code to parse Sun's syntax for
9309 prototyped function types.
9311 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9313 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9314 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9316 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9318 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9319 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9320 now _initialize_xcoffsolib gets called again and overrides the
9321 commands from solib.c in a native configuration.
9323 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9325 * doublest.c (store_typed_floating): Don't try to return a value.
9328 2002-02-08 Jim Blandy <jimb@redhat.com>
9330 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9331 is prototyped and has no arguments, print its argument list as
9334 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9336 * MAINTAINERS (write-after-approval): Add myself.
9337 (paper-trail): I've escaped!
9339 2002-02-08 Christopher Faylor <cgf@redhat.com>
9341 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9343 (_initialize_check_for_gdb_ini): Ditto.
9345 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9347 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9348 xaprintf -> xasprintf.
9350 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9352 * win32-nat.c: Remove use of printf and sprintf functions.
9354 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9356 * arm-tdep.c (arm_frame_chain_valid): Make static.
9357 (arm_push_arguments): Likewise.
9358 (arm_gdbarch_init): New function.
9359 (_initialize_arm_tdep): Call it.
9360 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9361 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9362 (FRAME_CHAIN_VALID): Delete.
9363 (arm_frame_chain_valid): Delete declaration.
9364 (PUSH_ARGUMENTS): Delete.
9365 (arm_push_arguments): Delete declaration.
9366 (CALL_DUMMY_P): Delete.
9368 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9369 Corinna Vinschen <vinschen@redhat.com>
9371 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9372 on builtin float types.
9374 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9376 * utils.c: Include <curses.h> before "bfd.h".
9377 * tui/tui-hooks.c: Likewise.
9378 * tui/tui.c: Likewise.
9379 * tui/tuiCommand.c: Likewise.
9380 * tui/tuiData.c: Likewise.
9381 * tui/tuiDataWin.c: Likewise.
9382 * tui/tuiDisassem.c: Likewise.
9383 * tui/tuiGeneralWin.c: Likewise.
9384 * tui/tuiIO.c: Likewise.
9385 * tui/tuiLayout.c: Likewise.
9386 * tui/tuiRegs.c: Likewise.
9387 * tui/tuiSource.c: Likewise.
9388 * tui/tuiSourceWin.c: Likewise.
9389 * tui/tuiStack.c: Likewise.
9390 * tui/tuiWin.c: Likewise.
9392 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9394 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9395 to include space for pseudoregs as well. Update loops accordingly.
9396 (sh_fp_frame_init_saved_regs): Ditto.
9397 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9399 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9401 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9402 Add Richard Earnshaw to Arm maintainers.
9404 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9406 * defs.h (warning_begin): Delete declaration.
9408 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9411 2002-02-07 Michael Snyder <msnyder@redhat.com>
9413 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9414 Logic bug, remove misplaced else.
9416 2002-02-07 Klee Dienes <klee@apple.com>
9418 * fork-inferior.c (fork_inferior): Add '!' to the list of
9419 characters that need to be quoted when building a string for the
9420 shell. Quote '!' specifically with a backslash, since CSH chokes
9421 when trying to evaluate "str!str".
9423 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9425 * rdi-share/host.h: Only provide a typedef for bool if it is not
9428 2002-02-04 Michael Snyder <msnyder@redhat.com>
9430 * breakpoint.h (enum bptype): Add new overlay event bp type.
9431 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9433 * breakpoint.c (create_internal_breakpoint): New function.
9434 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9435 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9436 (create_thread_event_breakpoint): Ditto.
9437 (create_solib_event_breakpoint): Ditto.
9438 (create_overlay_event_breakpoint): New function.
9439 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9440 (update_breakpoints_after_exec): Delete and re-initialize
9441 overlay event breakpoints after an exec. Add FIXME comment
9442 about longjmp breakpoint.
9443 (print_it_typical): Ignore overlay event breakpoints.
9444 (print_one_breakpoint): Ditto.
9446 (bpstat_what): Do not stop for overlay event breakpoints.
9447 (delete_breakpoint): Don't delete overlay event breakpoints.
9448 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9449 (breakpoint_re_set): Re-create overlay event breakpoint.
9451 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9452 (overlay_manual_command): Disable overlay breakpoints.
9453 (overlay_off_command): Disable overlay breakpoints.
9455 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9457 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9458 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9459 to here from config/tm-arm.h.
9460 (coff_sym_is_thumb): Make static.
9461 (arm_elf_make_msymbol_special): New function.
9462 (arm_coff_make_msymbol_special): New function.
9463 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9464 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9465 (coff_sym_is_thumb): Delete declaration.
9466 (arm_elf_make_msymbol_special): Declare.
9467 (arm_coff_make_msymbol_special): Declare.
9468 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9469 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9471 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9473 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9475 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9477 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9478 * gdbarch.c gdbarch.h: Regenerate.
9479 * arch-utils.c (default_print_float_info): New function.
9480 * arch-utils.h (default_print_float_info): Prototype it.
9481 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9482 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9483 (PRINT_FLOAT_INFO): Document it.
9485 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9486 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9487 (PRINT_FLOAT_INFO): Define.
9489 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9491 * win32-nat.c (_initialize_check_for_gdb_ini):
9492 Add typecast to sprintf argument to suppress a warning.
9494 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9496 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9497 to allow easier handling of pass state.
9498 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9499 that gives exception name and address.
9500 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9501 and set last_sig value to ourstatus->value.sig. Some missing
9503 (child_continue): Correctly report continue_status.
9504 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9505 TARGET_SIGNAL_0 (new default value).
9506 (child_resume): consider sig argument passed to decide if
9507 the exception should be passed to debuggee or not.
9509 2002-02-05 Michael Snyder <msnyder@redhat.com>
9511 * regcache.c (fetch_register): Call target_fetch_register
9512 only if we don't call FETCH_PSEUDO_REGISTER.
9513 (store_register): Call target_store_register only if we
9514 don't call STORE_PSEUDO_REGISTER.
9516 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9518 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9519 ELF_MAKE_MSYMBOL_SPECIAL.
9520 * gdbarch.c, gdbarch.h: Regenerate.
9521 * arch-utils.c (default_make_msymbol_special): New function.
9522 * arch-utils.h (default_make_msymbol_special): Export.
9523 * elfread.c (elf_symtab_read): Compile use of
9524 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9526 * coffread.c (coff_symtab_read): Ditto, for
9527 COFF_MAKE_MSYMBOL_SPECIAL.
9529 2002-02-05 Jim Blandy <jimb@redhat.com>
9531 * solib-svr4.c (svr4_truncate_ptr): New function.
9532 (svr4_relocate_section_addresses): Do the address arithmetic with
9533 the appropriate truncation for target addresses, even when
9534 CORE_ADDR is larger than a target address.
9536 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9538 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9541 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9543 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9546 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9548 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9550 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9552 * gdbserver/linux-low.c: Remove unused include files.
9554 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9556 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9557 (read_inferior_memory): Use it.
9558 (write_inferior_memory): Likewise.
9560 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9562 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9563 grubbing through sys_errlist.
9565 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9567 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9569 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9570 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9572 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9574 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9575 (do_sfunc, set_cmd_sfunc): New functions.
9577 * command.h (struct cmd_list_element): Add field func.
9578 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9579 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9580 * cli/cli-decode.h: Ditto.
9582 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9583 (help_all, help_cmd_list): Ditto.
9584 (find_cmd, complete_on_cmdlist): Ditto.
9585 * top.c (execute_command): Ditto.
9587 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9590 * infcmd.c (notice_args_read): Fix function signature.
9592 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9593 * cli/cli-decode.c (add_set_cmd): Ditto.
9594 * utils.c (initialize_utils): Ditto.
9595 * maint.c (_initialize_maint_cmds): Ditto.
9596 * infrun.c (_initialize_infrun): Ditto.
9597 * demangle.c (_initialize_demangler): Ditto.
9598 * remote.c (add_packet_config_cmd): Ditto.
9599 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9600 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9601 * proc-api.c (_initialize_proc_api): Ditto.
9602 * kod.c (_initialize_kod): Ditto.
9603 * valprint.c (_initialize_valprint): Ditto.
9604 * top.c (init_main): Ditto.
9605 * infcmd.c (_initialize_infcmd): Ditto.
9606 * corefile.c (_initialize_core): Ditto.
9607 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9608 * arch-utils.c (initialize_current_architecture): Ditto.
9609 (_initialize_gdbarch_utils): Ditto.
9610 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9612 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9613 * wince.c (_initialize_inftarg): Ditto.
9614 * symfile.c (_initialize_symfile): Ditto.
9615 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9616 * language.c (_initialize_language): Ditto.
9617 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9619 2002-02-04 Michael Snyder <msnyder@redhat.com>
9621 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9623 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9625 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9626 Add rules for building the register data files.
9628 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9630 * regformats/regdat.sh: Add braces to the definition of
9631 expedite_regs_${arch}.
9633 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9635 * regformats/regdef.h (struct reg): Add comment describing the
9636 requirements for offset and size fields.
9638 2002-02-04 Andreas Schwab <schwab@suse.de>
9640 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9641 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9643 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9645 * gdbarch.sh (copyright): Update years in generated header.
9646 (SMASH_TEXT_ADDRESS): Add rule.
9647 * gdbarch.h, gdbarch.c: Re-generate.
9648 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9649 * dbxread.c: Likewise.
9650 * dwarfread.c: Likewise.
9651 * elfread.c: Likewise.
9652 * somread.c: Likewise.
9654 * arm-tdep.c (arm_smash_text_address): New function.
9655 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9657 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9659 Add support for hardware watchpoints on win32 native.
9660 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9661 CONTEXT_DEBUG_REGISTERS.
9662 (dr variable): New variable. Static array containing a local copy
9664 (debug_registers_changed): New variable. Reflects when debug registers
9665 are changed and need to be written to inferior.
9666 (debug_registers_used): New variable. Reflects when any debug register
9667 was set, used when new threads are created.
9668 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9670 (thread_rec): Set dr array if id is the thread of current_event .
9671 (child_continue, child_resume): Change the debug registers for all
9672 threads if debug_registers_changed.
9673 (child_add_thread): Change the debug registers if debug_registers_used.
9674 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9675 Link nm.h to new nm-cygwin.h file.
9676 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9677 of hardware registers.
9679 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9681 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9682 Restore behavour broken by 2002-01-20 Andrew Cagney
9683 <ac131313@redhat.com> IEEE_FLOAT removal.
9685 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9687 * c-valprint.c (c_val_print): Pass a proper valaddr to
9688 cp_print_class_method.
9689 * valops.c (search_struct_method): If there is only one method
9690 and args is NULL, return that method.
9692 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9694 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9695 accessing tag_name directly.
9697 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9699 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9700 of accessing tag_name directly.
9702 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9705 * gdbtypes.c (replace_type): New function.
9706 * gdbtypes.h (replace_type): Add prototype.
9707 * stabsread.c (read_type): Use replace_type.
9709 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9711 * Makefile.in (memattr.o): Add missing dependencies rule.
9713 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9715 * breakpoint.c (break_at_finish_command): Really export.
9716 (break_at_finish_at_depth_command): Ditto.
9717 (tbreak_at_finish_command): Ditto.
9718 * hppa-tdep.c: Include completer.h.
9719 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9720 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9722 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9724 * utils.c (do_write): New function.
9725 (error_stream): Rewrite combining the code from error_begin and
9727 (verror): Rewrite using error_stream.
9728 (error_begin): Delete function.
9730 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9732 * utils.c (error_begin): Make static.
9733 * defs.h (error_begin): Delete declaration.
9735 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9736 (decode_line_1): Use cplusplus_error instead of error_begin,
9737 cplusplus_hint and return_to_top_level.
9738 * coffread.c (coff_symfile_read): Use error instead of error_begin
9739 and return_to_top_level.
9740 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9742 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9744 * language.h (type_error, range_error): Make string parameter
9746 * language.c (warning_pre_print): Delete extern declaration.
9747 * dwarfread.c (warning_pre_print): Ditto.
9748 * language.c (type_error, range_error): Rewrite to use verror and
9749 vwarning instead of warning_begin.
9751 2002-02-01 Michael Snyder <msnyder@redhat.com>
9753 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9754 (set_ignore_count): Move misplaced comment back where it belongs.
9756 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9758 * command.h (NO_FUNCTION): Delete macro.
9759 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9760 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9761 * tracepoint.c (_initialize_tracepoint): Ditto.
9762 * cli/cli-decode.c (add_set_cmd): Ditto.
9763 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9765 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9767 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9768 Update ``this'' pointer when calling virtual functions.
9770 2002-02-01 Michael Snyder <msnyder@redhat.com>
9772 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9773 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9775 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9777 * regformats/reg-arm.dat: New file.
9778 * regformats/reg-i386.dat: New file.
9779 * regformats/reg-ia64.dat: New file.
9780 * regformats/reg-m68k.dat: New file.
9781 * regformats/reg-mips.dat: New file.
9782 * regformats/reg-ppc.dat: New file.
9783 * regformats/reg-sh.dat: New file.
9784 * regformats/regdef.h: New file.
9785 * regformats/regdat.sh: New file.
9787 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9789 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9790 (arm_frame_args_address, arm_frame_locals_address): New functions.
9791 (arm_frame_num_args): New function.
9792 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9793 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9794 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9796 2002-01-31 Michael Snyder <msnyder@redhat.com>
9798 * breakpoint.c (break_at_finish_command): Export.
9799 (break_at_finish_at_depth_command): Export.
9800 (tbreak_at_finish_command): Export.
9801 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9802 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9803 "tbreak" commands, which are HPPA specific.
9805 * printcmd.c (disassemble_command): Remove an ancient
9806 artifact of an old merge.
9808 * symfile.h (enum overlay_debugging_state):
9809 Define enum constant values for overlay mode.
9810 * symfile.c (overlay_debugging): Use enums instead of literals.
9811 (overlay_is_mapped, overlay_auto_command,
9812 overlay_manual_command): Ditto.
9814 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9815 breakpoint_here_p, breakpoint_inserted_here_p,
9816 breakpoint_thread_match, bpstat_stop_status,
9817 describe_other_breakpoints, check_duplicates, clear_command):
9818 Coding standard fixes.
9820 * target.c (target_xfer_memory): Add spaces, coding standard.
9821 (do_xfer_memory): Add missing line to trust-readonly
9822 code: check bfd SEC_READONLY flag for section.
9824 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9826 * PROBLEMS: Fix typo, 5.1->5.1.1.
9828 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9830 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9831 data symbols, since we search based on textlow and texthigh.
9832 (find_pc_sect_symtab): Likewise.
9834 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9836 * defs.h (vwarning): Declare.
9837 * utils.c (vwarning): New function.
9838 (warning): Call vwarning.
9839 (warning_begin): Delete function.
9841 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9842 the warning message.
9843 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9846 2002-01-30 Michael Snyder <msnyder@redhat.com>
9848 * NEWS: Mention "set trust-readonly-sections" command.
9849 Mention generate-core-file command.
9851 2002-01-15 Michael Snyder <msnyder@redhat.com>
9853 * target.c: New command, "set trust-readonly-sections on".
9854 (do_xfer_memory): Honor the suggestion to trust readonly sections
9855 by reading them from the object file instead of from the target.
9856 (initialize_targets): Register command "set trust-readonly-sections".
9858 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9860 * parse.c (target_map_name_to_register): Simplify, search regs and
9861 pseudo-regs using a single loop.
9863 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9865 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9867 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9869 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9870 * config/i386/i386v42mp.mh: Add i387-nat.o .
9871 * i386v4-nat.c: Include i387-nat.h.
9872 (supply_fpregset): Use i387_supply_fsave.
9873 (fill_fpregset): Use i387_fill_fsave.
9875 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9877 * arm-tdep.c (arm_call_dummy_words): Define.
9878 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9879 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9880 (CALL_DUMMY_WORDS): Define.
9881 (arm_call_dummy_words): Declare.
9882 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9883 (arm_linux_call_dummy_words): Declare.
9885 2002-01-30 Andreas Schwab <schwab@suse.de>
9887 * m68klinux-nat.c: Fix last change to use regcache_collect
9888 instead of referencing registers[] directly.
9890 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9892 * parse.c (target_map_name_to_register): Delete code wrapped in
9893 #ifdef REGISTER_NAME_ALIAS_HOOK.
9895 2002-01-28 Michael Snyder <msnyder@redhat.com>
9897 * regcache.c (legacy_read_register_gen): Need to be able to
9898 read pseudo-register as well as real register.
9899 (legacy_write_register_gen): Ditto.
9901 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9903 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9904 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9905 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9906 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9907 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9908 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9909 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9910 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9911 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9912 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9913 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9914 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9915 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9916 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9917 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9918 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9919 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9920 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9921 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9922 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9924 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9926 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9927 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9928 (initialize_current_architecture): Update target_byte_order using
9929 information from BFD.
9930 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9931 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9933 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9935 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9936 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9938 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9939 #ifdef INVALID_FLOAT.
9940 * infcmd.c (do_registers_info): Ditto.
9941 * values.c (unpack_double): Ditto. Add comment.
9943 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9944 already commented out.
9946 2002-01-26 Andreas Schwab <schwab@suse.de>
9948 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9949 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9950 registers and add support for PTRACE_GETREGS.
9952 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9954 GDB 5.1.1 released from 5.1 branch.
9955 * NEWS: Add 5.1.1 news.
9956 * README: Sync with 5.1 branch.
9958 2002-01-23 Fred Fish <fnf@redhat.com>
9960 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9961 stabstring on initial malloc. Reallocing will copy it for us,
9964 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9966 * Makefile.in (hpread_h): Delete.
9967 (HFILES_NO_SRCDIR): Remove hpread.h.
9968 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9969 (hpread.o): Update dependencies.
9970 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9972 * hp-psymtab-read.c: Remove file.
9973 * hp-symtab-read.c: Remove file.
9974 * hpread.h: Remove file.
9976 * hpread.c: Merge all contents of hp-psymtab-read.c,
9977 hp-symtab-read.c and hpread.h into this file, as it was prior to
9980 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9981 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9982 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9983 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9985 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9987 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9988 fill_gregset): Call gdbarch_tdep() just once, assign result to
9989 variable and use that, instead of calling the function several
9992 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9994 * configure.host: Accept sparcv9 as alias for sparc64.
9995 * configure.tgt: Likewise.
9997 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9999 * solib-aix5.c (build_so_list_from_mapfile)
10000 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
10001 arguments is not reversed.
10002 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
10003 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
10005 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
10007 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
10008 modified version of obsolete sh_fetch_pseudo_register.
10009 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
10010 (sh4_register_read): New function.
10011 (sh_pseudo_register_write): New function. Renamed and modified
10012 version of obsolete sh_store_pseudo_register.
10013 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
10014 (sh4_register_write): New function.
10015 (sh_gdbarch_init): Remove setting of gdbarch function
10016 fetch_pseudo_register and store_pseudo_register. Remove setting of
10017 register_convert_to_raw, register_convert_to_virtual,
10018 register_convertible.
10019 (sh_sh4_register_convertible): Delete. No longer needed. All is
10020 taken care by architecture specific functions
10021 register_read/register_write.
10022 (sh_sh4_register_convert_to_virtual): Make static.
10023 (sh_sh4_register_convert_to_raw): Ditto.
10025 2002-01-22 Andrew Cagney <ac131313@redhat.com>
10027 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
10028 (floatformat_is_nan, floatformat_mantissa): Ditto.
10030 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
10031 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
10032 builtin_type_ieee_double_little,
10033 builtin_type_ieee_double_littlebyte_bigword,
10034 builtin_type_m68881_ext, builtin_type_i960_ext,
10035 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
10036 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
10037 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
10038 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
10040 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
10042 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
10043 parameter. Set frameless flag if it exists and depended of
10044 whether the scanned function is frameless or not.
10045 (xstormy16_skip_prologue): If function is frameless, return
10046 result of xstormy16_scan_prologue().
10047 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
10050 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
10052 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
10053 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
10054 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
10055 sh_sh4_register_byte, sh_sh4_register_raw_size,
10056 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
10057 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
10058 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
10059 sh_store_pseudo_register, sh_do_pseudo_register): Call
10060 gdbarch_tdep() just once, assign result to variable and use that,
10061 instead of calling the function several times.
10063 2002-01-20 Mark Kettenis <kettenis@gnu.org>
10065 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
10066 macros instead of LAST_FPU_CTRL_REGNUM.
10067 (store_register): Likewise.
10069 2002-01-21 Jim Blandy <jimb@redhat.com>
10071 * infcmd.c (run_command): Check that the `exec' target layer's BFD
10072 is up-to-date before running the program, not just when a program
10075 2002-01-21 Fred Fish <fnf@redhat.com>
10077 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
10078 when we have found all instructions we are looking for.
10080 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10082 * arm-tdep.c (arm_register_name): New function.
10083 (arm_registers_names): Make static.
10084 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
10085 (arm_register_name): Declare.
10086 (REGISTER_NAME): Use it.
10088 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
10089 Kevin Buettner <kevinb@redhat.com>
10091 Convert arm targets to new FRAME interface.
10092 * arm-tdep.c (struct frame_extra_info): Remove fsr.
10093 (arm_frame_find_save_regs): Delete.
10094 (arm_frame_init_saved_regs): New.
10095 (arm_init_extra_frame_info): Alloacte saved_regs as required.
10096 Allocate extra_info as required. Convert all uses of fsr.regs
10097 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
10099 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
10100 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
10101 (check_prologue_cache, save_prologue_cache): Likewise.
10102 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
10103 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
10104 (FRAME_FIND_SAVED_REGS): Delete.
10105 (arm_frame_find_saved_regs): Delete prototype.
10106 (arm_frame_init_saved_regs): New prototype.
10107 (FRAME_INIT_SAVED_REGS): Define.
10109 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10111 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
10113 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10115 From Jeff Law <law@redhat.com>:
10116 * infttrace.c: Include <sys/pstat.h>.
10117 (child_pid_to_exec_file): Revamp. Use pstat call to get the
10118 exec file if the ttrace equivalent fails.
10120 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10122 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
10123 (closeLogFile): Ditto.
10125 2002-01-20 Michael Chastain <mec@shout.net>
10127 * top.c (print_gdb_version): Bump copyright year to 2002.
10129 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10131 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
10132 Zannoni and Eli Zaretskii.
10134 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10136 * buildsym.c: Update copyright years.
10137 * c-typeprint.c: Likewise.
10138 * dwarf2read.c: Likewise.
10139 * f-typeprint.c: Likewise.
10140 * gdbtypes.c: Likewise.
10141 * gdbtypes.h: Likewise.
10142 * hp-symtab-read.c: Likewise.
10143 * hpread.c: Likewise.
10144 * mdebugread.c: Likewise.
10145 * p-typeprint.c: Likewise.
10147 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10149 * remote-sim.c (gdbsim_open): Simplify code testing the macro
10150 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
10151 byte-order selectable.
10152 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
10153 * arch-utils.c: Ditto.
10154 (set_endian): Ditto.
10155 (set_endian_from_file): Ditto.
10156 * gdbserver/low-sim.c (create_inferior): Ditto.
10157 * gdbarch.sh: Ditto.
10158 * gdbarch.h: Re-generate.
10159 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10160 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
10161 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
10162 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10163 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10164 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
10165 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
10166 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
10168 * config/mips/tm-wince.h: Remove #undef of macro
10169 TARGET_BYTE_ORDER_SELECTABLE.
10170 * config/sh/tm-wince.h: Ditto.
10172 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10174 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
10175 member function fields. Add accessor macro
10176 TYPE_FN_FIELD_ARTIFICIAL.
10177 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
10178 * c-typeprint.c (c_type_print_base): Skip artificial member
10181 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10183 * f-typeprint.c: Delete unused function f_type_print_args.
10184 * p-typeprint.c: Delete unused function pascal_type_print_args.
10186 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
10188 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
10189 comment. Add ``artificial'' to ``union field_location''.
10191 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
10193 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
10194 * mdebugread.c (parse_symbol): Likewise.
10195 * stabsread.c (define_symbol): Likewise.
10196 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
10197 initializing TYPE_FIELD_BITPOS to n (obsolete).
10198 (hpread_doc_function_type): Likewise.
10199 * hpread.c (hpread_function_type): Likewise.
10201 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10203 * configure.in (host_makefile_frag): Only require a host makefile
10204 fragment when a native build.
10205 * configure: Re-generate.
10207 2002-01-20 Andrew Cagney <ac131313@redhat.com>
10209 * doublest.h (floatformat_from_type): Declare.
10210 * doublest.c (floatformat_from_type): New function.
10211 (convert_typed_floating): Use.
10213 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10214 call to function floatformat_from_type.
10216 * gdbarch.sh (IEEE_FLOAT): Delete.
10217 * gdbarch.h, gdbarch.c: Re-generate.
10218 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10219 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10220 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10221 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10222 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10223 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10224 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10225 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10226 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10227 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10228 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10229 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10231 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10232 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10234 * sh-tdep.c (sh_gdbarch_init): Ditto.
10235 * mips-tdep.c (mips_gdbarch_init): Ditto.
10236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10237 * cris-tdep.c (cris_gdbarch_init): Ditto.
10239 2002-01-20 Jiri Smid <smid@suse.cz>
10241 * configure.host, configure.tgt: Support x86-64.
10242 * NEWS: Note new target x86-64.
10244 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10245 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10246 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10247 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10248 x86-64-linux-nat.o): Fix dependencies.
10250 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10252 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10253 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10254 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10255 * config/sparc/xm-sun4os4.h: Delete file.
10256 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10258 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10260 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10261 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10262 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10263 * config/i386/i386lynx.mh (XM_FILE): Delete.
10264 * config/rs6000/xm-rs6000ly.h: Delete file.
10265 * config/sparc/xm-sparclynx.h: Delete file.
10266 * config/m68k/xm-m68klynx.h: Delete file.
10267 * config/i386/xm-i386lynx.h: Delete file.
10268 * config/xm-lynx.h: Delete file.
10269 * config/djgpp/fnchange.lst: Update.
10271 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10273 * alpha-tdep.c (alpha_register_byte): New function.
10274 (alpha_register_raw_size): Ditto.
10275 (alpha_register_virtual_size): Ditto.
10276 (alpha_skip_prologue_internal): Renamed from
10277 alpha_skip_prologue.
10278 (alpha_skip_prologue): New version that calls
10279 alpha_skip_prologue_internal.
10280 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10281 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10282 second argument from alpha_skip_prologue.
10283 (REGISTER_BYTE): Use alpha_register_byte.
10284 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10285 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10286 (FRAMELESS_FUNCTION_INVOCATION): Use
10287 generic_frameless_function_invocation_not.
10288 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10289 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10291 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10293 * config/mips/xm-news-mips.h: Delete file.
10294 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10296 * config/m88k/xm-m88k.h: Delete file.
10297 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10298 * config/m88k/xm-delta88v4.h: Ditto.
10299 * config/m88k/xm-delta88.h: Ditto.
10301 * config/alpha/xm-fbsd.h: Delete file.
10302 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10304 * config/sparc/xm-sparc.h: Delete file.
10305 * Makefile.in (xm-sun4os4.h): Delete dependency.
10306 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10307 * config/sparc/xm-sun4os4.h: Ditto.
10308 * config/sparc/xm-linux.h: Ditto.
10310 * config/i386/xm-windows.h: Delete file.
10312 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10314 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10315 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10317 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10319 * alpha-tdep.c (alpha_call_dummy_words): New.
10320 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10321 (CALL_DUMMY_P): Define.
10322 (CALL_DUMMY_WORDS): Define.
10323 (SIZEOF_CALL_DUMMY_WORDS): Define.
10325 2002-01-19 Per Bothner <per@bothner.com>
10327 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10328 isn't NULL, which can happen with some gcj-3.x-produced code.
10330 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10332 * alpha-tdep.c (alpha_register_virtual_type): New function.
10333 (alpha_init_frame_pc_first): Ditto.
10334 (alpha_fix_call_dummy): Ditto.
10335 (alpha_store_struct_return): Ditto.
10336 (alpha_extract_struct_value_address): Ditto.
10337 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10338 alpha_register_virtual_type.
10339 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10340 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10341 alpha_extract_struct_value_address.
10342 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10343 (INIT_FRAME_PC): Use init_frame_pc_noop.
10344 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10346 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10348 * i386gnu-nat.c: Include "i386-tdep.h".
10349 (fetch_fpregs): Simplify code dealing with uninitialized floating
10350 point states such that it doesn't require FP7_REGNUM.
10352 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10354 * alpha-tdep.c (frame_extra_info): New.
10355 (alpha_find_saved_regs): Make static. Use
10357 (alpha_frame_init_saved_regs): New function.
10358 (alpha_frame_saved_pc): Use frame->extra_info.
10359 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10360 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10361 (init_extra_frame_info): Rename to...
10362 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10363 (alpha_print_extra_frame_info): New function.
10364 (alpha_frame_locals_address): Ditto.
10365 (alpha_frame_args_address): Ditto.
10366 (alpha_pop_frame): Use frame->extra_info.
10367 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10368 alpha_frame_args_address.
10369 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10370 (alpha_find_saved_regs): Remove prototype.
10371 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10372 (EXTRA_FRAME_INFO): Remove.
10373 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10374 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10376 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10378 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10379 (alpha_cannot_fetch_register): Ditto.
10380 (alpha_cannot_store_register): Ditto.
10381 (alpha_register_convertible): Ditto.
10382 (alpha_use_struct_convention): Ditto.
10383 * config/alpha/tm-alpha.h: Update copyright years.
10384 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10385 (INNER_THAN): Use core_addr_lessthan.
10386 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10387 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10388 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10389 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10390 (FRAME_CHAIN): Remove unnecessary cast.
10392 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10394 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10397 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10399 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10400 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10401 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10402 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10403 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10404 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10405 * x86-64-linux-nat.c: Ditto.
10407 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10409 * alpha-tdep.c (alpha_register_name): New function.
10410 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10411 (REGISTER_NAME): Define.
10413 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10415 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10417 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10419 * alpha-tdep.c: Update copyright years.
10420 (alpha_next_pc): New function.
10421 (alpha_software_single_step): Ditto.
10422 * config/alpha/tm-alpha.h: Add prototype for
10423 alpha_software_single_step.
10425 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10427 * alphabsd-nat.c: Update copyright years.
10428 (fill_gregset): Use regcache_collect.
10429 (fill_fpregset): Likewise.
10430 (fetch_inferior_registers): Only fetch integer registers
10431 if requested to do so.
10432 (store_inferior_registers): Only store integer registers
10433 if requested to do so.
10435 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10437 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10438 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10439 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10440 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10441 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10442 * config/arm/linux.mh (XDEPFILES): Delete.
10443 * config/arm/nbsd.mh (XDEPFILES): Delete.
10444 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10445 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10446 * config/i386/i386m3.mh (XDEPFILES): Delete.
10447 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10448 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10449 * config/i386/fbsd.mh (XDEPFILES): Delete.
10450 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10451 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10452 * config/i386/i386v4.mh (XDEPFILES): Delete.
10453 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10454 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10455 * config/i386/i386aix.mh (XDEPFILES): Delete.
10456 * config/i386/go32.mh (XDEPFILES): Delete.
10457 * config/i386/cygwin.mh (XDEPFILES): Delete.
10458 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10459 * config/i386/i386mach.mh (XDEPFILES): Delete.
10460 * config/i386/i386v32.mh (XDEPFILES): Delete.
10461 * config/i386/linux.mh (XDEPFILES): Delete.
10462 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10463 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10464 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10465 * config/i386/i386sco.mh (XDEPFILES): Delete.
10466 * config/i386/i386v.mh (XDEPFILES): Delete.
10467 * config/i386/nbsd.mh (XDEPFILES): Delete.
10468 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10469 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10470 * config/i386/symmetry.mh (XDEPFILES): Delete.
10471 * config/i386/obsd.mh (XDEPFILES): Delete.
10472 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10473 * config/ia64/linux.mh (XDEPFILES): Delete.
10474 * config/ia64/aix.mh (XDEPFILES): Delete.
10475 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10476 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10477 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10478 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10479 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10480 * config/m68k/linux.mh (XDEPFILES): Delete.
10481 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10482 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10483 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10484 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10485 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10486 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10487 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10488 * config/m88k/delta88.mh (XDEPFILES): Delete.
10489 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10490 * config/m88k/m88k.mh (XDEPFILES): Delete.
10491 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10492 * config/mips/linux.mh (XDEPFILES): Delete.
10493 * config/mips/irix6.mh (XDEPFILES): Delete.
10494 * config/mips/irix5.mh (XDEPFILES): Delete.
10495 * config/mips/irix4.mh (XDEPFILES): Delete.
10496 * config/mips/irix3.mh (XDEPFILES): Delete.
10497 * config/mips/decstation.mh (XDEPFILES): Delete.
10498 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10499 (NATDEPFILES): Move core-aout.o to here.
10500 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10501 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10502 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10503 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10504 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10505 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10506 * config/pa/hpux11.mh (XDEPFILES): Delete.
10507 * config/powerpc/aix.mh (XDEPFILES): Delete.
10508 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10509 * config/powerpc/linux.mh (XDEPFILES): Delete.
10510 * config/romp/rtbsd.mh: Rename XDEPFILES.
10511 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10512 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10513 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10514 * config/s390/s390.mh (XDEPFILES): Delete.
10515 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10516 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10517 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10518 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10519 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10520 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10521 * config/sparc/linux.mh (XDEPFILES): Delete.
10522 * config/vax/vaxult.mh (XDEPFILES): Delete.
10523 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10524 * Makefile.in (DEPFILES): Remove XDEPFILES.
10526 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10528 * utils.c (internal_verror): Fix comments, default is yes not no.
10529 Update queries to match. Default to quit and dump core.
10531 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10533 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10535 * defs.h, event-top.c, gdbcmd.h: Ditto.
10536 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10537 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10538 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10539 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10540 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10541 * mi/mi-main.c:Ditto.
10543 * stack.c, symfile.c: Update copyright.
10545 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10547 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10548 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10549 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10550 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10552 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10554 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10555 * gdbserver/low-lynx.c (myattach): Likewise.
10556 * gdbserver/low-nbsd.c (myattach): Likewise.
10557 * gdbserver/low-sim.c (myattach): Likewise.
10558 * gdbserver/low-sparc.c (myattach): Likewise.
10559 * gdbserver/low-sun3.c (myattach): Likewise.
10561 * gdbserver/low-linux.c (myattach): New function.
10563 * gdbserver/server.c (attach_inferior): New function.
10564 (main): Handle "--attach".
10566 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10568 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10571 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10573 * c-typeprint.c (is_type_conversion_operator): Add additional
10574 check for non-conversion operators.
10576 2002-01-15 Michael Snyder <msnyder@redhat.com>
10578 * linux-proc.c: Add "info proc" command, a la procfs.c.
10579 (read_mapping): New function, abstract and re-use code.
10580 (linux_find_memory_regions): Use new func read_mapping.
10581 (linux_info_proc_cmd): New function, implement "info proc".
10582 (_initialize_linux_proc): Add new command "info proc".
10584 2002-01-15 Michael Snyder <msnyder@redhat.com>
10586 * symfile.c (generic_load): Use bfd_map_over_sections method
10587 instead of manipulating bfd structure members directly.
10588 (add_section_size_callback): New function, bfd sections callback
10589 used by generic_load.
10590 (load_sections_callback): New function, bfd sections callback
10591 used by generic_load.
10593 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10595 [Based on work by Jim Blandy]
10596 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10597 (builtin_type_vec128): Export.
10598 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10600 (builtin_type_vec128): New builtin type for 128 bit vector
10602 (build_gdbtypes): Initialize builtin_type_v16qi and
10603 builtin_type_v8hi. Create the vec128 register builtin type
10605 (build_builtin_type_vec128): New function.
10606 (_initialize_gdbtypes): Register builtin_type_v16qi and
10607 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10608 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10609 AltiVec register to new builtin type.
10611 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10613 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10616 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10618 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10619 CLEAN_UP_REGISTER_VALUE.
10620 * regcache.c (supply_register): Update only call.
10622 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10624 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10625 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10626 a29k-*-vxworks* targets as obsolete.
10628 2002-01-14 Michael Snyder <msnyder@redhat.com>
10630 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10631 until we can resolve portability issues.
10632 * gregset.h: Remove references to fpxregs.
10633 * gcore.c (gcore_command): Initialize note_sec to NULL.
10635 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10637 * signals.c (target_signal_to_name): Rewrite. Only use
10638 signals[].name when in bounds and non-NULL.
10640 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10642 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10643 * signals.c (target_signal_to_name): Verify that SIG is within the
10644 bounds of the signals array.
10646 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10648 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10650 2002-01-13 Keith Seitz <keiths@redhat.com>
10652 * stack.c (print_frame_info_base): Print the frame's pc
10653 only if when print_frame_info_listing_hook is not defined.
10655 2002-01-13 Keith Seitz <keiths@redhat.com>
10657 * varobj.c (varobj_set_value): Make sure that there were no
10658 errors evaluating the object before attempting to set its
10660 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10661 so this offset adjustment is no longer necessary.
10662 (create_child): Don't set the error flag if the child is
10663 a CPLUS_FAKE_CHILD.
10664 (value_of_child): If value_fetch_lazy fails, return NULL
10665 so that callers will be notified that an error occurred.
10666 (c_value_of_variable): Delay check of variable's validity
10667 until later. We actually want all structs and unions to have
10669 Do not return "???" for variables which could not be evaluated.
10670 This error condition must be returned to the caller so that it
10671 can get the error condition from gdb.
10672 (cplus_name_of_child): Adjust index for vptr before figuring
10673 out the name of the child.
10674 (cplus_value_of_child): If a child's (real) parent is not valid,
10675 don't even bother trying to give a value for it. Just return
10676 an error. Change all instances in this function.
10677 (cplus_type_of_child): If our parent is one of the "fake"
10678 parents, we need to get at the type of the real parent, and
10679 derive the child's true type using this information.
10681 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10683 From 2002-01-09 John Marshall <johnm@falch.net>:
10684 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10685 sources.redhat.com, and tweak some related URLs which had
10686 suffered from linkrot.
10688 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10691 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10692 structures passed in registers.
10694 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10696 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10697 white space which prevented compilation. Reported by DSK
10698 <dsk@student.unsw.edu.au>.
10700 2002-01-11 Michael Snyder <msnyder@redhat.com>
10702 * symfile.c (build_section_addr_info_from_section_tab):
10703 Use bfd access method instead of manipulating bfd directly.
10704 (syms_from_objfile): Ditto.
10705 (simple_overlay_update_1): Ditto.
10706 (simple_overlay_update): Ditto.
10707 (generic_load): Ditto.
10708 (overlay_unmapped_address): FIXME comment, bfd access methods.
10709 (sections_overlap): FIXME comment, bfd access methods.
10710 (pc_in_mapped_range): FIXME comment, bfd access methods.
10711 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10712 (section_is_mapped): FIXME comment, bfd access methods.
10713 (section_is_overlay): FIXME comment, bfd access methods.
10715 * symfile.c (generic_load): Whitespace and long line cleanups.
10716 Remove duplicate variable, change several local variables to
10717 more appropriate data types.
10718 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10720 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10722 From Peter Schauer:
10723 * language.c (longest_local_hex_string_custom): Use phex_nz to
10724 convert NUM to a hex string.
10726 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10728 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10730 Update Copyright year.
10732 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10734 * language.c (longest_raw_hex_string): Delete unused function.
10736 2002-01-11 Petr Sorfa <petrs@caldera.com>
10738 * MAINTAINERS (write-after-approval): Add myself.
10739 * dwarf2read.c (read_tag_string_type): Handling of
10741 (read_tag_string_type): FORTRAN fix to prevent propagation of
10743 (set_cu_language): Handling of DW_LANG_Fortran95
10745 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10747 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10748 GETPID(inferior_ptid).
10749 (store_inferior_registers): Likewise.
10751 2002-01-10 Jason Merrill <jason@redhat.com>
10753 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10756 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10758 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10759 and bfd/elf32-sh-nbsd.c.
10761 2002-01-10 Michael Snyder <msnyder@redhat.com>
10763 * NEWS: Mention --pid and corefile/proc-id behavior change.
10765 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10766 * gcore.c: Include cli/cli-decode.h instead of command.h.
10768 * main.c (captured_main): Add new command line option "--pid".
10769 If the second command line argument (following the symbol-file)
10770 begins with a digit, try to attach to it before trying to open
10772 (print_gdb_help): Document the "--pid" argument.
10774 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10776 * completer.c (command_completer): New function.
10778 * completer.h <command_completer>: Add prototype.
10780 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10781 completer for the "help" command.
10783 2002-01-09 Jason Merrill <jason@redhat.com>
10785 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10787 2002-01-09 Michael Snyder <msnyder@redhat.com>
10789 * i386-linux-nat.c (fill_fpxregset): Make global.
10790 (store_fpxregset): Ditto.
10792 * gregset.h (gdb_fpxregset_t): Define.
10793 (supply_fpxregset): Prototype.
10794 (fill_fpxregset): Prototype.
10796 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10798 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10800 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10801 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10802 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10804 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10806 * MAINTAINERS: Update target maintainer rules so that any
10807 Maintainer can approve a tested patch for a maintenance-only
10810 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10812 * MAINTAINERS (write-after-approval): Add myself.
10814 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10817 2002-01-08 Michael Snyder <msnyder@redhat.com>
10819 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10820 real name of the executable, rather than the /proc name.
10822 2002-01-03 Michael Snyder <msnyder@redhat.com>
10824 Implement a "generate-core-file" command in gdb, save target state.
10825 * gcore.c: New file. Implement new command 'generate-core-file'.
10826 Save a corefile image of the current state of the inferior.
10827 * linux-proc.c: Add linux-specific code for saving corefiles.
10828 * target.h (struct target_ops): Add new target vectors for saving
10829 corefiles; to_find_memory_regions and to_make_corefile_notes.
10830 (target_find_memory_regions): New macro.
10831 (target_make_corefile_notes): New macro.
10832 * target.c (update_current_target): Inherit new target methods.
10833 (dummy_find_memory_regions): New place-holder method.
10834 (dummy_make_corefile_notes): New place-holder method.
10835 (init_dummy_target): Initialize new dummy target vectors.
10836 * exec.c (exec_set_find_memory_regions): New function.
10837 Allow the exec_ops vector for memory regions to be taken over.
10838 (exec_make_note_section): New function, target vector method.
10839 * defs.h (exec_set_find_memory_regions): Export prototype.
10840 * procfs.c (proc_find_memory_regions): New function, corefile method.
10841 (procfs_make_note_section): New function, corefile method.
10842 (init_procfs_ops): Set new target vector pointers.
10843 (find_memory_regions_callback): New function.
10844 (procfs_do_thread_registers): New function.
10845 (procfs_corefile_thread_callback): New function.
10846 * sol-thread.c (sol_find_memory_regions): New function.
10847 (sol_make_note_section): New function.
10848 (init_sol_thread_ops): Initialize new target vectors.
10849 * inftarg.c (inftarg_set_find_memory_regions): New function.
10850 Allow to_find_memory_regions vector to be taken over.
10851 (inftarg_set_make_corefile_notes): New function.
10852 Allow to_make_corefile_notes vector to be taken over.
10853 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10854 interface layer if not target_has_execution (may be a corefile).
10855 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10856 * config/sparc/sun4sol2.mh: Ditto.
10857 * config/alpha/alpha-linux.mh: Ditto.
10858 * config/arm/linux.mh: Ditto.
10859 * config/i386/x86-64linux.mh: Ditto.
10860 * config/ia64/linux.mh: Ditto.
10861 * config/m68k/linux.mh: Ditto.
10862 * config/mips/linux.mh: Ditto.
10863 * config/powerpc/linux.mh: Ditto.
10864 * config/sparc/linux.mh: Ditto.
10866 2002-01-07 Michael Snyder <msnyder@redhat.com>
10868 * arm-linux-nat.c: Remove references to regcache.c internal data
10869 (registers[] and register_valid[]).
10871 2002-01-07 Michael Snyder <msnyder@redhat.com>
10873 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10874 so that attaching to a pid will automatically read the process's
10875 symbol file and shlibs.
10876 * Makefile.in: Add rule for linux-proc.o.
10877 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10878 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10879 * config/arm/linux.mh: Ditto.
10880 * config/i386/linux.mh: Ditto.
10881 * config/i386/x86-64linux.mh: Ditto.
10882 * config/ia64/linux.mh: Ditto.
10883 * config/m68k/linux.mh: Ditto.
10884 * config/mips/linux.mh: Ditto.
10885 * config/powerpc/linux.mh: Ditto.
10886 * config/sparc/linux.mh: Ditto.
10888 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10890 * win32-nat.c: Add i386-tdep.h dependency.
10892 2002-01-07 Michael Snyder <msnyder@redhat.com>
10894 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10895 instead of bfd_get_arch_size. Don't bail out just because
10896 there's no exec_bfd.
10898 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10899 * p-valprint.c (pascal_object_print_value): Ditto.
10900 * somread.c (som_symtab_read): Ditto.
10901 * symfile.c (simple_free_overlay_region_table): Ditto.
10902 * valops.c (value_assign): Ditto.
10904 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10905 use tilde_expand and strerror for opening save-tracepoints file.
10907 * thread-db.c (thread_db_new_objfile): Indendation fix.
10909 * infptrace.c (GDB_MAX_ALLOCA): New define.
10910 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10911 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10912 can be overridden with whatever value is appropriate to the host).
10913 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10914 alloca to allocate potentially large buffer.
10915 * rs6000-nat.c (child_xfer_memory): Ditto.
10916 * symm-nat.c (child_xfer_memory): Ditto.
10917 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10919 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10921 From Nick Clifton <nickc@redhat.com>
10922 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10924 2002-01-07 Michael Snyder <msnyder@redhat.com>
10926 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10927 Don't use exec_bfd if it's NULL.
10929 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10931 * valops.c (value_arg_coerce): Fix formatting.
10933 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10935 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10936 * gnu-nat.c: Ditto.
10938 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10940 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10941 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10942 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10943 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10944 z8k-coff have not been multi-arched. Update z8k-coff build
10947 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10949 * MAINTAINERS: Mark a29k target as obsolete.
10950 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10951 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10953 * NEWS: Note that a29k targets are obsolete.
10954 * a29k-tdep.c: Mark as obsolete.
10955 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10956 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10957 a29k-*-vxworks* targets as obsolete.
10958 * remote-adapt.c: Obsolete.
10959 * remote-eb.c: Obsolete.
10960 * remote-mm.c: Obsolete.
10961 * remote-udi.c: Obsolete.
10962 * config/a29k/a29k-udi.mt: Obsolete.
10963 * config/a29k/a29k.mt: Obsolete.
10964 * config/a29k/tm-a29k.h: Obsolete.
10965 * config/a29k/tm-vx29k.h: Obsolete.
10966 * config/a29k/vx29k.mt: Obsolete.
10968 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10970 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10971 with BFD_ENDIAN_BIG.
10973 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10975 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10976 * configure, config.in: Re-generate.
10977 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10978 * defs.h: Do not include <endian.h>.
10980 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10982 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10983 * config.in: Regenerate.
10984 * configure.in: Update copyright years.
10985 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10986 * configure: Regenerate.
10987 * i386bsd-nat.c: Update copyright years.
10988 (fill_gregset): Use regcache_collect.
10989 (fetch_inferior_registers): Only fetch integer registers
10990 if requested to do so. Add support for XMM registers
10991 using PT_GETXMMREGS.
10992 (store_inferior_registers): Only store integer registers
10993 if requested to do so. Add support for XMM registers
10994 using PT_SETXMMREGS.
10995 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10996 (store_inferior_registers): Remove.
10997 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10998 (fetch_elfcore_registers): New function.
10999 (i386nbsd_elfcore_fns): New.
11000 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
11001 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
11003 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
11004 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
11005 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
11006 * config/i386/tm-nbsd.h: Update copyright years.
11007 (HAVE_SSE_REGS): Define.
11008 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
11009 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
11010 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
11011 (SIGCONTEXT_PC_OFFSET): Remove.
11012 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
11014 2002-01-05 Andrew Cagney <ac131313@redhat.com>
11016 * configure.tgt: Remove powerpc-*-macos* target.
11017 * config/m68k/xm-mpw.h: Delete file.
11018 * config/xm-mpw.h: Delete file.
11019 * ser-mac.c: Delete file.
11020 * mpw-make.sed: Delete file.
11021 * mpw-config.in: Delete file.
11022 * mac-xdep.c: Delete file.
11023 * mac-gdb.r: Delete file.
11024 * mac-defs.h: Delete file.
11025 * mac-nat.c: Delete file.
11026 * config/powerpc/macos.mh: Delete file.
11027 * config/powerpc/macos.mt: Delete file.
11028 * config/powerpc/nm-macos.h: Delete file.
11029 * config/powerpc/tm-macos.h: Delete file.
11030 * source.c (openp, open_source_file): Remove obsolete code.
11031 * top.c (gdb_readline): Ditto.
11032 * utils.c (query): Ditto.
11033 * event-top.c (display_gdb_prompt): Ditto.
11034 * Makefile.in (ser-mac.o): Delete obsolete target.
11037 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11039 * defs.h (BIG_ENDIAN): Delete macro definition.
11040 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
11041 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
11042 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
11043 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
11044 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
11045 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
11046 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
11047 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
11048 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
11049 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
11050 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
11051 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
11052 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11053 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
11054 * gdbarch.c: Re-generate.
11056 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11058 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
11061 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11063 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
11065 2002-01-04 Andrew Cagney <ac131313@redhat.com>
11067 * value.h (value_ptr): Delete typedef.
11069 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
11071 * i386nbsd-nat.c: Update copyright years.
11072 Include i386-tdep.h.
11074 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
11076 * stabsread.c: Update copyright years.
11078 From Debashis Mahata <debashis.mahata@wipro.com>:
11079 (read_struct_fields): Deal with Sun C compiler erroneous stab
11080 output for structs and unions.
11083 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11085 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
11088 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11090 * cp-abi.c: Fix whitespace.
11091 (baseclass_offset): New wrapper function.
11092 * cp-abi.h (baseclass_offset): Add prototype.
11093 (struct cp_abi_ops): Add baseclass_offset pointer.
11095 * valops.c (vb_match): Move to...
11096 * gnu-v2-abi.c (vb_match): here.
11097 * valops.c (baseclass_offset): Move to...
11098 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
11100 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
11102 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
11103 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
11104 * hpacc-abi.c (init_hpacc_ops): Likewise.
11106 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
11108 * valops.c (find_overload_match): Accept obj as a
11109 reference parameter. Update it before returning.
11110 * value.h (find_overload_match): Update prototype.
11111 * eval.c (evaluate_subexp_standard): Pass object to
11112 find_overload_match by reference.
11114 2002-01-03 Andrew Cagney <ac131313@redhat.com>
11116 * valarith.c: Replace value_ptr with struct value pointer. Remove
11117 register attribute from value declarations.
11120 * scm-lang.c (scm_lookup_name): Ditto.
11122 2002-01-03 Michael Snyder <msnyder@redhat.com>
11124 Abstract the functionality of iterating over mapped memory
11125 regions into a general purpose iterator function.
11126 * procfs.c (iterate_over_mappings): New function, general purpose
11127 iterator for memory sections.
11128 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
11129 (solib_mappings_callback): New function, callback for above.
11130 (info_proc_mappings): Reimpliment using iterate_over_mappings.
11131 (info_mappings_callback): New function, callback for above.
11133 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
11135 2002-01-01 Mark Kettenis <kettenis@gnu.org>
11137 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
11138 * i386-tdep.c: Include "elf-bfd.h".
11139 (process_note_abi_tag_sections): New function.
11140 (i386_gdbarch_init): Add code to recognize various OS/ABI
11143 * maint.c (_initialize_maint_cmds): Add missing \ in
11146 For older changes see ChangeLog-2001
11152 version-control: never