1 2002-09-11 J. Brobecker <brobecker@gnat.com>
3 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
5 2002-09-11 J. Brobecker <brobecker@gnat.com>
7 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
10 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
12 * procfs.c (do_detach): Clear current signal, not just fault.
13 Corrects problem with breakpoint trap signal leaking to detached
16 2002-09-10 Michael Snyder <msnyder@redhat.com>
18 * buildsym.c (finish_block): Protect against null pointer.
20 2002-09-10 Andrew Cagney <cagney@redhat.com>
22 * infcmd.c (default_print_registers_info): Send all output to
23 ``file'' instead of ``gdb_stdout''.
25 2002-09-10 Michael Snyder <msnyder@redhat.com>
27 * mips-tdep.c (mips_extract_struct_value_address): Make val a
28 LONGEST, and use signed register read (addresses are sign-
31 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
33 * event-loop.c (gdb_do_one_event): Make public.
34 * event-loop.h (gdb_do_one_event): Declare.
36 2002-09-10 Jeff Law <law@redhat.com>
38 * infttrace.c (child_resume): Simplify and rework to avoid
41 2002-09-09 Fred Fish <fnf@intrinsity.com>
43 * printcmd.c (print_scalar_formatted): "len" is the number of
44 target bytes, NOT the number of target bits.
46 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
48 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
49 * top.c (init_main): Set rl_terminal_name.
51 2002-09-08 Aidan Skinner <aidan@velvet.net>
53 * ada-lang.c (ada_array_bound, ada_type_match,
54 _initialize_ada_language): Fix K&R definitions.
55 * ada-tasks.c (get_current_task): Fix K&R definitions.
56 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
58 2002-09-07 Christopher Faylor <cgf@redhat.com>
60 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
63 2002-09-06 Mark Kettenis <kettenis@gnu.org>
65 * i386-tdep.c (i386_register_virtual_type,
66 i386_register_convertible, i386_register_convert_to_virtual,
67 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
68 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
69 (i386_gdbarch_init): Fix comment. Add comments on calls that set
70 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
71 Don't set push_arguments twice.
73 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
74 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
75 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
77 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
79 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
81 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
84 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
85 * gdbarch.h, gdbarch.c: Re-generate.
86 * blockframe.c (find_pc_sect_partial_function): Convert to use
87 SIGTRAMP_START_P predicate.
89 2002-09-05 Michael Snyder <msnyder@redhat.com>
91 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
92 generic_dummy_frame method and old method. Also distinguish
93 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
94 (arm_extract_return_value): Use new regcache method.
96 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
97 adjustment that doesn't conform to the ABI.
98 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
99 saved regcache, not from current regcache.
101 2002-09-05 Andrew Cagney <ac131313@redhat.com>
103 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
106 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
108 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
109 if arm_apcs_32 is false.
111 2002-09-04 Andrew Cagney <ac131313@redhat.com>
113 GDB 5.3 branch created.
115 2002-09-03 Theodore A. Roth <troth@verinet.com>
117 * gdb/avr-tdep.c (avr_gdbarch_init): Use
118 generic_unwind_get_saved_register.
120 2002-09-03 David Carlton <carlton@math.stanford.edu>
122 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
123 argument (PR gdb/653). Update call to smash_to_method_type.
124 (read_structure_scope): Update call to dwarf2_add_member_fn.
126 2002-09-03 Michal Ludvig <mludvig@suse.cz>
128 * x86-64-linux-tdep.c: Include gdb_string.h
129 * x86-64-linux-nat.c: Ditto.
131 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
133 * ada-exp.y (yyname, yyrule): Remap global variables that appear
134 when YYDEBUG is set to 1.
137 * jv-exp.y: Likewise.
138 * m2-exp.y: Likewise.
141 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
143 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
145 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
146 solib_svr4_fetch_link_map_offsets to
147 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
148 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
149 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
150 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
151 solib-svr4.o, and solib-legacy.o.
152 * config/i386/tm-nbsd.h: Include solib.h.
154 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
156 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
157 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
158 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
159 comment noting that this needs its own target configuration.
160 * config/i386/nbsd.mt: New file.
161 * config/i386/nbsdaout.mt: Remove.
162 * config/i386/nbsdelf.mt: Ditto.
163 * config/i386/tm-nbsdaout.h: Ditto.
165 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
167 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
168 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
169 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
171 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
172 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
173 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
175 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
177 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
178 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
179 * i386-tdep.h (i386bsd_init_abi): New prototype.
180 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
181 function declaration.
182 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
183 for NetBSD-a.out or NetBSD-ELF.
184 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
185 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
186 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
187 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
189 (i386nbsd_pc_in_sigtramp): New function.
190 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
191 i386nbsd_pc_in_sigtramp.
192 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
193 and i386nbsdelf_init_abi OS ABI handlers.
194 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
195 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
197 2002-09-02 Mark Kettenis <kettenis@gnu.org>
199 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
200 registers if the target really has them.
202 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
204 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
207 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
209 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
211 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
212 (alphanbsd_skip_sigtramp_frame): New functions.
213 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
214 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
215 to alphanbsd_sigcontext_addr.
217 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
219 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
221 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
222 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
224 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
225 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
226 * nbsd-tdep.c: Include gdb_string.h.
227 (nbsd_pc_in_sigtramp): New function.
228 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
229 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
230 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
231 ppcnbsd_pc_in_sigtramp.
232 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
233 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
234 shnbsd_pc_in_sigtramp.
235 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
236 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
237 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
239 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
241 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
243 (insert_breakpoints): set val field of watchpoints if NULL.
246 2002-08-29 Jim Blandy <jimb@redhat.com>
248 * symtab.c (lookup_symbol_aux): In the cases where we find a
249 minimal symbol of an appropriate name and use its address to
250 select a symtab to read and search, use `name' (as passed to us)
251 as the demangled name when searching the symtab's global and
252 static blocks, not the minsym's name.
254 2002-08-29 Keith Seitz <keiths@redhat.com>
256 * stack.c (print_frame_info_base): Always set current_source_symtab
257 and current_source_line.
259 2002-08-29 Donn Terry <donnte@microsoft.com>
261 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
263 2002-08-28 Keith Seitz <keiths@redhat.com>
265 * stack.c (select_frame): Add FIXME concerning selected-frame
267 (select_frame_command): Send selected-frame-level-changed
268 event notification, but only if the level actually changed.
269 (up_silently_base): Add selected-frame-level-changed event
271 (down_silently_base): Likewise.
273 2002-08-28 Andrew Cagney <ac131313@redhat.com>
275 * Makefile.in: Update dependencies for all gdb/*.c files.
277 2002-08-27 Tom Tromey <tromey@redhat.com>
279 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
280 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
282 * i387-tdep.c: Include gdb_string.h.
284 * i386-linux-nat.c: Likewise.
285 * lin-lwp.c: Likewise.
286 * ax-gdb.c: Likewise.
287 * signals/signals.c: Likewise.
288 * jv-valprint.c: Likewise.
289 * p-lang.c: Likewise.
290 * c-valprint.c: Likewise.
291 * cp-abi.c: Likewise.
293 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
295 * cli/cli-script.h (copy_command_lines): Export.
296 * breakpoint.c: Include cli/cli-script.h.
297 * Makefile.in (breakpoint.o): Update dependencies.
299 2002-08-26 Michael Snyder <msnyder@redhat.com>
301 * breakpoint.c (insert_breakpoints): Protect all references
302 to 'process_warning'. Shorten long lines.
304 2002-08-26 Joel Brobecker <brobecker@gnat.com>
306 * cli/cli-script.c (copy_command_lines): New function.
307 * defs.h (copy_command_lines): Export.
308 * testsuite/gdb.base/commands.exp: New tests for commands
309 attached to a temporary breakpoint, and for commands that
310 delete the breakpoint they are attached to.
312 2002-08-26 Michael Snyder <msnyder@redhat.com>
314 * breakpoint.c (bpstat_stop_status): Instead of copying the
315 pointer to the breakpoint commands struct, make a new copy
316 of the struct and point to that.
317 (bpstat_clear): Free the commands struct.
318 (bpstat_clear_actions): Free the commands struct.
319 (bpstat_do_actions): Free the command actions. Also execute
320 the local cleanups, instead of deleting them.
321 (delete_breakpoint): Leave the commands field of the bpstat
322 chain alone -- it will be freed later.
324 2002-08-26 Kevin Buettner <kevinb@redhat.com>
326 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
327 deleted in 2002-08-20 commit. This function is still used by
330 2002-08-26 Keith Seitz <keiths@redhat.com>
332 * gdb-events.sh: Add selected-frame-level-changed event.
333 * gdb-events.c: Regenerated.
334 * gdb-events.h: Regenerated.
336 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
339 * inflow.c (terminal_save_ours): New function to save terminal
341 * inferior.h (terminal_save_ours): Declare.
342 * target.c (debug_to_terminal_save_ours): New function.
343 (cleanup_target): Defaults to_terminal_save_ours.
344 (update_current_target): Inherit to_terminal_save_ours.
345 (setup_target_debug): Set to_terminal_save_ours.
346 * target.h (target_terminal_save_ours): New to save terminal settings.
347 (target_ops): New member to_terminal_save_ours.
348 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
349 * hpux-thread.c (init_hpux_thread_ops): Likewise.
350 * inftarg.c (init_child_ops): Likewise.
351 * m3-nat.c (init_m3_ops): Likewise.
352 * procfs.c (init_procfs_ops): Likewise.
353 * wince.c (init_child_ops): Likewise.
354 * win32-nat.c (init_child_ops): Likewise.
355 * sol-thread.c (init_sol_thread_ops): Likewise.
357 2002-08-26 Mark Kettenis <kettenis@gnu.org>
359 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
360 use regcache_* functions.
361 (i386_gdbarch_init): Set store_return_value instead of
362 deprecated_store_return_value.
364 * regcache.c (regcache_raw_write_signed,
365 regcache_raw_write_unsigned): New functions.
366 * regcache.h (regcache_raw_write_signed,
367 regcache_raw_write_unsigned): New prototypes.
369 2002-08-25 Andrew Cagney <ac131313@redhat.com>
371 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
372 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
373 source file dependencies. Cleanup corresponding generator rules.
375 2002-08-25 Andrew Cagney <ac131313@redhat.com>
377 * regcache.h (register_offset_hack): Declare.
378 (regcache_cooked_read_using_offset_hack): Declare.
379 (regcache_cooked_write_using_offset_hack): Declare.
381 * regcache.c (register_offset_hack): New function.
382 (regcache_cooked_read_using_offset_hack): New function.
383 (regcache_cooked_write_using_offset_hack): New function.
384 (regcache_dump): Check that the registers, according to their
385 offset, are packed hard against each other.
386 (cooked_xfer_using_offset_hack): New function.
388 2002-08-25 Andrew Cagney <ac131313@redhat.com>
390 * regcache.c (struct regcache_descr): Add field register_type.
391 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
393 (init_regcache_descr): Initialize register_type. Pass the descr
394 to init_legacy_regcache_descr. Use register_type instead of
395 REGISTER_VIRTUAL_TYPE.
396 (register_type): New function.
397 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
398 * regcache.h (register_type): Declare.
400 2002-08-25 Andrew Cagney <ac131313@redhat.com>
402 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
403 instead of deprecated_store_return_value. Fix fallout from
404 2002-08-23 Andrew Cagney <cagney@redhat.com>.
406 2002-08-25 Andrew Cagney <ac131313@redhat.com>
408 * regcache.c (max_register_size): New function.
409 (init_legacy_regcache_descr): Ensure that max_register_size is
410 large enough for REGISTER_VIRTUAL_SIZE.
411 * regcache.h (max_register_size): Declare.
413 2002-08-24 Andrew Cagney <ac131313@redhat.com>
415 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
417 (e500_extract_return_value): Change type of valbuf pointer to
420 2002-08-24 Mark Kettenis <kettenis@gnu.org>
422 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
425 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
426 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
427 long long) to prevent compiler warning on 64-bit systems.
429 2002-08-23 Andrew Cagney <cagney@redhat.com>
431 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
432 (DEPRECATED_STORE_RETURN_VALUE): New method.
433 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
434 * gdbarch.h, gdbarch.c: Re-generate.
436 * values.c (set_return_value): Pass current_regcache to
438 * arch-utils.h (legacy_store_return_value): Declare.
439 * arch-utils.c (legacy_store_return_value): New function.
440 (legacy_extract_return_value): Update parameters.
442 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
444 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
445 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
446 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
447 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
448 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
449 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
450 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
451 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
452 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
453 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
456 * i386-tdep.c (i386_extract_return_value): Update.
457 * arch-utils.c (legacy_extract_return_value): Update.
458 * frv-tdep.c (frv_gdbarch_init): Update.
459 * cris-tdep.c (cris_gdbarch_init): Update.
460 * d10v-tdep.c (d10v_gdbarch_init): Update.
461 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
462 * m68k-tdep.c (m68k_gdbarch_init): Update.
463 * mcore-tdep.c (mcore_gdbarch_init): Update.
464 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
465 * s390-tdep.c (s390_gdbarch_init): Update.
466 * sparc-tdep.c (sparc_gdbarch_init): Update.
467 * sh-tdep.c (sh_gdbarch_init): Update.
468 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
469 * v850-tdep.c (v850_gdbarch_init): Update.
470 * avr-tdep.c (avr_gdbarch_init): Update.
471 * ia64-tdep.c (ia64_gdbarch_init): Update.
472 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
473 * vax-tdep.c (vax_gdbarch_init): Update.
474 * alpha-tdep.c (alpha_gdbarch_init): Update.
475 * arm-tdep.c (arm_gdbarch_init): Update.
476 * mips-tdep.c (mips_gdbarch_init): Update.
477 * i386-tdep.c (i386_gdbarch_init): Update.
479 2002-08-23 Andrew Cagney <ac131313@redhat.com>
481 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
482 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
484 2002-08-24 Mark Kettenis <kettenis@gnu.org>
486 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
489 2002-08-23 Joel Brobecker <brobecker@gnat.com>
491 * infrun.c (handle_inferior_event): Move a comment outside of a
492 function call, in order to avoid indent reformatting this part
493 of the code in an unreadable way.
495 2002-08-23 Grace Sainsbury <graces@redhat.com>
497 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
498 when breakpoints fail. Move general breakpoint error messages to
500 * breakpoint.c (insert_breakpoints): Change warnings when
501 breakpoints are nto inserted to specify the type. Remove call to
502 memory_error when hardware breakpoints can't be inserted. Remove
503 multiple calls to warning so all messages are sent to the user at
505 (delete_breakpoints): Make insert error messsages more explicit.
507 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
509 * ChangeLog: Move gdbserver entries after GDB 5.2 to
512 2002-08-23 Mark Kettenis <kettenis@gnu.org>
514 * i386-tdep.c: Include "objfiles.h".
515 (i386_svr4_init_abi): Set in_solib_call_trampoline and
516 skip_trampoline_code.
517 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
518 (CPLUS_MARKER): Define to '.'.
520 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
522 (linux_corefile_thread_callback): Increase args->num_notes.
523 (linux_make_note_section): Initialize thread_args.num_notes, and
524 use it to determine whether notes for any threads were created.
526 2002-08-23 Donn Terry <donnte@microsoft.com>
528 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
529 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
531 (write_with_trace): Conditionalize out the switch branch handling
532 PCSHOLD if the corresponding macro is not defined. Likewise for
534 This change will be needed by the Interix port.
536 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
538 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
539 write_register wherever possible instead of manipulating the
540 register bytes directly.
541 Assign VALUE_CONTENTS to a variable and use that.
542 The GPR numbers are now dependent on the architecture.
544 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
546 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
548 (skip_prologue): Add support for BookE/e500 instructions.
549 (e500_extract_return_value): New function.
550 (frame_get_saved_regs): Add support for saving ev registers and
552 (e500_store_return_value): New function.
553 (rs6000_gdbarch_init): Move up default intializations of
554 deprecated_extract_return_value and store_return_value. Overwrite
555 init of store_return_value with e500 specific version.
556 Set extract_return_value for e500.
558 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
560 * blockframe.c (generic_call_dummy_register_unwind): Use
561 regcache_cooked_read to catch cases in which the variable is
562 stored in a pseudo register.
564 2002-08-22 Andrew Cagney <cagney@redhat.com>
566 * NEWS: Mention that the i960 has been made obsolete.
567 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
569 (remote-nrom.o): Obsolete target.
570 (remote-nindy.o, i960-tdep.o): Ditto.
571 * remote-nrom.c: Make file obsolete.
572 * remote-nindy.c, remote-vx960.c: Ditto.
573 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
574 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
575 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
576 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
577 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
578 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
579 i960-*-vxworks* obsolete.
580 * MAINTAINERS: Note that the i960 is obsolete.
582 2002-08-21 Corinna Vinschen <vinschen@redhat.com
584 * aix-thread.c (aix_thread_detach): Disable thread debugging on
585 detach to allow reinitialization.
587 2002-08-22 Andrew Cagney <ac131313@redhat.com>
589 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
592 2002-08-22 Jim Blandy <jimb@redhat.com>
594 * coffread.c (coff_symfile_read): Don't try to read the line
595 number table from disk if the image file doesn't have a symbol
596 table; we'll never actually look at the info anyway, and Windows
597 ships DLL's with bogus file offsets for the line number data.
599 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
601 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
604 2002-08-21 Michael Snyder <msnyder@redhat.com>
606 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
607 (MSYMBOL_SIZE): Replace macro with function.
608 (DEFAULT_MIPS_TYPE): Delete unused macro.
609 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
610 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
612 2002-08-21 Jim Blandy <jimb@redhat.com>
614 * valops.c (value_cast): Simplify and correct logic for doing a
615 static cast from a pointer to a base class to a pointer to a
618 2002-08-21 Andrew Cagney <ac131313@redhat.com>
620 * infcmd.c (default_print_registers_info): Replace
622 (registers_info): Use gdbarch_print_registers_info instead of
624 * inferior.h (default_print_registers_info): Replace
626 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
627 (DO_REGISTERS_INFO): Change to a predicate function.
628 * gdbarch.h, gdbarch.c: Regenerate.
630 2002-08-21 Keith Seitz <keiths@redhat.com>
632 * gdb-events.sh: Add target-changed event.
633 * gdb-events.c: Regenerated.
634 * gdb-events.c: Regenerated.
635 * valops.c (value_assign): Add target-changed event notification
636 to inlval_register, lval_memory, and lval_reg_frame_relative.
638 2002-08-21 Joel Brobecker <brobecker@gnat.com>
640 * NEWS: Add an entry regarding the improvement of the next/step
641 operation on Alpha Tru64 multi-processor machines.
643 2002-08-21 Andrew Cagney <ac131313@redhat.com>
645 * Makefile.in: Update dependencies for mi/ cli/ and tui/
647 * Makefile.in: Update all _h macro definitions.
648 * Makefile.in (install-gdbtk): Move to install section.
649 (rdi-share/libangsd.a): Move to end of file.
651 2002-08-19 Andrew Cagney <ac131313@redhat.com>
653 * frame.c (frame_register_unwind): When a register, set addrp to
656 2002-08-20 Michael Snyder <msnyder@redhat.com>
658 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
659 used locally, so move them from the target machine header to here.
660 (mips_set_processor_type, mips_register_name, mips32_next_pc,
661 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
663 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
665 2002-08-20 Andrew Cagney <cagney@redhat.com>
667 * NEWS: Mention that the Apollo line was made obsolete.
668 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
669 m68*-hp-hpux* obsolete.
670 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
671 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
672 * buildsym.c (make_blockvector): Make static.
673 * buildsym.h (make_blockvector): Make extern declaration obsolete.
674 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
675 (ALLDEPFILES): Remove dstread.c.
676 (dstread.o): Obsolete make rule.
677 * dstread.c: Makefile obsolete.
679 * config/m68k/hp300hpux.mt: Ditto.
680 * config/m68k/hp300hpux.mh: Ditto.
681 * config/m68k/hp300bsd.mt: Ditto.
682 * config/m68k/hp300bsd.mh: Ditto.
683 * config/m68k/apollo68b.mt: Ditto.
684 * config/m68k/apollo68v.mh: Ditto.
685 * config/m68k/apollo68b.mh: Ditto.
687 2002-08-20 Michael Snyder <msnyder@redhat.com>
689 * mips-tdep.c (mips_in_return_stub): Make static.
690 (mips_gdbarch_init): Set in_solib_return_trampoline.
691 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
693 2002-08-20 Michael Snyder <msnyder@redhat.com>
695 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
696 * gdbarch.c, gdbarch.h: Regenerate.
697 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
699 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
701 2002-08-20 Michael Snyder <msnyder@redhat.com>
703 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
704 (mips_gdbarch_init): Set skip_trampoline_code,
705 in_solib_call_trampoline.
706 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
707 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
709 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
711 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
713 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
714 vector type for ev registers.
715 (e500_pseudo_register_read): New function.
716 (e500_pseudo_register_write): New function.
717 (e500_dwarf2_reg_to_regnum): New function.
718 (PPC_UISA_NOFP_SPRS): New macro.
719 (PPC_EV_REGS): New macro.
720 (PPC_GPRS_PSEUDO_REGS): New macro.
721 (registers_e500): New register set for e500.
722 (variants): Add e500 variant.
723 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
724 before setting architectural dependent variations. Initialize ev
725 registers numbers. Add case for e500 architecture. Set the
726 number of pseudo registers.
728 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
730 * rs6000-tdep.c: Clean up comments.
732 2002-08-20 Andrew Cagney <cagney@redhat.com>
734 * h8300-tdep.c: Re-indent file.
736 2002-08-20 Jim Blandy <jimb@redhat.com>
738 * Makefile.in (LDFLAGS): Allow the configure script to establish a
741 2002-08-20 Keith Seitz <keiths@redhat.com>
743 * breakpoints.c (watch_command_1): Use internal breakpoint
744 when setting a watchpoint_scope breakpoint.
746 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
748 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
749 (build_builtin_type_vec64i): Ditto.
750 (build_builtin_type_vec128): Ditto.
751 (build_builtin_type_vec128i): Ditto.
753 2002-08-19 Michael Snyder <msnyder@redhat.com>
755 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
756 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
757 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
758 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
759 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
760 CALL_DUMMY_ADDRESS): Delete.
761 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
762 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
763 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
764 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
766 (mips_register_raw_size, mips_eabi_use_struct_convention,
767 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
768 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
769 mips_init_extra_frame_info, mips_eabi_push_arguments,
770 mips_n32n64_push_arguments, mips_push_return_address,
771 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
772 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
774 2002-08-19 Michael Snyder <msnyder@redhat.com>
776 * mips-tdep.c (mips_frame_num_args): New function.
777 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
778 frame_saved_pc, frame_args_address, frame_locals_address,
779 frame_num_args, and frame_args_skip.
780 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
781 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
782 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
783 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
785 2002-08-20 Michael Snyder <msnyder@redhat.com>
787 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
788 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
789 * mips-tdep.c (mips_store_struct_return): New function.
790 (mips_extract_struct_value_address): New function.
791 (mips_gdbarch_init): Set store_struct_return and
792 extract_struct_value_address.
794 2002-08-20 David Carlton <carlton@math.stanford.edu>
796 * dwarf2read.c (dwarf2_build_psymtabs): Check that
797 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
798 (read_file_scope): Check that line_header is nonzero before
799 decoding macro information.
801 2002-08-20 Mark Kettenis <kettenis@gnu.org>
803 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
804 flag the general-purpose registers as floating-point on targets
805 that don't support the floating-point registers.
807 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
809 * rs6000-tdep.c (altivec_register_p): Delete.
810 (rs6000_do_altivec_registers): Delete.
811 (rs6000_altivec_registers_info): Delete.
812 (rs6000_do_registers_info): Delete.
813 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
814 (rs6000_gdbarch_init): Remove setting of do_registers_info.
816 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
818 * infcmd.c (do_registers_info): Print vector registers in hex
820 (print_vector_info): Check that printing registers
822 (print_float_info): Ditto.
824 2002-08-20 Andrew Cagney <ac131313@redhat.com>
826 * mips-tdep.c (mips_gdbarch_init): Update.
827 (mips_o32_extract_return_value): Rewrite.
828 (mips_o32_store_return_value): Rewrite.
829 (mips_o32_xfer_return_value): New function.
830 (mips_xfer_register): Tweak debug print message. Allow for
831 buf_offset when dumping the value transfered.
833 2002-08-20 Andrew Cagney <ac131313@redhat.com>
835 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
836 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
837 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
838 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
839 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
841 2002-08-14 Michael Snyder <msnyder@redhat.com>
843 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
845 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
847 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
849 (P): New macro to define a register as a pseudo register.
850 (R, R4, R8, R16, FR32, R64, R0): Updated.
851 (struct variant): Add new fields for number of pseudo registers
852 and number of total registers.
853 (tot_num_registers): New macro replacing....
854 (num_registers): ...deleted macro.
855 (num_registers): New function.
856 (num_pseudo_registers): New function.
857 (variants): Update all variants to intialize new fields correctly.
858 Postpone initialization of number of pseudo regs and real regs.
859 (init_variants): New function.
860 (rs6000_gdbarch_init): Initialize variants. Update calculation of
863 2002-08-19 David Carlton <carlton@math.stanford.edu>
865 * valops.c (search_struct_field): Change error message to treat
866 return value of 0 from value_static_field as meaning that field is
868 (value_struct_elt_for_reference): Ditto.
869 * values.c (value_static_field): Treat an unresolved location the
870 same as a nonexistent symbol. Fix PR gdb/635.
871 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
872 enclosed. Fix PR gdb/574.
873 * MAINTAINERS: Add self to Write After Approval list.
875 2002-08-19 Andrew Cagney <ac131313@redhat.com>
877 * mips-tdep.c (mips_xfer_register): New function.
878 (mips_n32n64_extract_return_value): Rewrite.
879 (mips_gdbarch_init): For N32 and N64, set extract_return_value
880 instead of deprecated_extract_return_value.
882 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
884 * rs6000-tdep.c (TDEP): Delete macro.
885 (branch_dest): Replace use of TDEP macro with its body.
886 (rs6000_pop_frame): Ditto.
887 (rs6000_push_arguments): Ditto.
888 (rs6000_skip_trampoline_code): Ditto.
889 (rs6000_frame_saved_pc): Ditto.
890 (rs6000_frame_chain): Ditto.
891 (rs6000_register_name): Ditto.
892 (rs6000_register_byte): Ditto.
893 (rs6000_register_raw_size): Ditto.
894 (rs6000_register_virtual_type): Ditto.
895 (rs6000_register_convertible): Ditto.
896 (rs6000_convert_from_func_ptr_addr): Ditto.
898 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
900 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
902 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
903 MIPS_LINUX_JB_ELEMENT_SIZE.
904 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
905 for MAX_REGISTER_RAW_SIZE arrays.
906 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
907 MIPS_LINUX_JB_ELEMENT_SIZE.
909 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
911 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
913 2002-08-19 Aidan Skinner <aidan@velvet.net>
915 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
916 ada-valprint.c ada-tasks.c.
917 (YYFILES): Add ada-exp.y.
918 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
919 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
920 (ada-exp.tab.o): New target.
922 2002-08-18 Andrew Cagney <ac131313@redhat.com>
924 * regcache.c (regcache_xfer_part): New function.
925 (regcache_raw_read_part): New function.
926 (regcache_raw_write_part): New function.
927 (regcache_cooked_read_part): New function.
928 (regcache_cooked_write_part): New function.
929 * regcache.h (regcache_raw_read_part): Declare.
930 (regcache_raw_write_part): Declare.
931 (regcache_cooked_read_part): Declare.
932 (regcache_cooked_write_part): Declare.
934 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
936 * remote.c (remote_open_1): Add async_p.
937 (remote_async_open_1): Delete.
938 (open_remote_target): Delete.
939 (remote_open, extended_remote_open): Update calls to remote_open_1.
940 (remote_async_open, extended_remote_async_open): Call
941 remote_open_1 instead of remote_async_open_1.
943 2002-08-19 Mark Kettenis <kettenis@gnu.org>
945 * blockframe.c: Fix a few coding standard violations.
947 2002-08-19 Mark Kettenis <kettenis@gnu.org>
949 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
951 * config/i386/tm-i386sco5.h: ... here. File removed.
952 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
954 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
955 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
956 (TM_FILE): Set to tm-i386.h.
957 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
958 * config/i386/tm-i386v.h: Remove file.
959 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
960 instead of "i386/tm-i386v.h".
961 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
962 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
964 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
965 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
968 2002-08-18 Mark Kettenis <kettenis@gnu.org>
970 * config/i386/nm-i386v.h: Add protection against
972 (i386_register_u_addr): Remove prototype.
973 (register_u_addr): New prototype.
974 (REGISTER_U_ADDR): Redefine accordingly.
975 * i386v-nat.c: Improve several comments.
976 (i386_register_u_addr): Change signature and rename to
977 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
980 2002-08-18 Andrew Cagney <ac131313@redhat.com>
982 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
983 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
984 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
985 deprecated_extract_return_value.
986 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
987 rename mips_o32o64_push_arguments.
988 (mips_gdbarch_init): Update.
989 (mips_extract_return_value): Delete.
990 (mips_o32_extract_return_value): Clone mips_extract_return_value.
991 (mips_o64_extract_return_value): Clone mips_extract_return_value.
992 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
993 (mips_n32n64_extract_return_value): Clone
994 mips_extract_return_value.
995 (mips_store_return_value): Delete.
996 (mips_o32_store_return_value): Clone mips_store_return_value.
997 (mips_o64_store_return_value): Clone mips_store_return_value.
998 (mips_eabi_store_return_value): Clone mips_store_return_value.
999 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1001 2002-08-18 Aidan Skinner <aidan@velvet.net>
1003 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1004 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1006 2002-08-18 Aidan Skinner <aidan@velvet.net>
1008 * ada-lang.c: Run through gdb_indent.sh.
1009 * ada-lang.h: Run through gdb_indent.sh.
1010 * ada-tasks.c: Run through gdb_indent.sh.
1011 * ada-typeprint.c: Run through gdb_indent.sh.
1012 * ada-valprint.c: Run through gdb_indent.sh.
1014 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1016 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1019 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1021 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1023 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1024 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1026 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1027 write_register_gen instead of write_register_bytes.
1029 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1030 i[3456]-*-osf1mk* configurations have been made obsolete.
1031 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1032 i[3456]86-*-osf1mk* hosts obsolete.
1033 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1035 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1036 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1037 config/i386/i386m3.mt, config/i386/nm-m3.h,
1038 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1039 config/i386/i386mk.mh, config/i386/i386mk.mt,
1040 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1042 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1043 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1044 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1046 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1048 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1049 (hppa_value_returned_from_stack): Declare.
1050 (hppa_extract_return_value): Declare.
1051 * config/pa/hppa.mt: New file.
1052 * configure.tgt: Recognize hppa*-*-*.
1053 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1055 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1057 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1060 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1062 * top.c (gdb_rl_operate_and_get_next): Make sure
1063 operate-and-get-next functions correctly even when the history
1064 list is completely filled.
1066 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1068 * MAINTAINERS (Target Instruction Set Architectures): Rename
1069 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1070 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1071 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1072 already listed under Host/Native.
1074 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1075 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1078 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1080 * config/ia64/ia64.mt: New file.
1081 * config/alpha/alpha.mt: New file.
1082 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1083 ia64-linux-gnu. Mention that ia64-elf is broken.
1084 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1086 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1088 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1089 generic_func_frame_valid instead of func_frame_valid.
1091 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1093 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1094 procfs appears to be broken when debugging on multi-processor
1095 machines. So enable software single stepping in order to avoid
1096 using the procfs interface to do next/step operations, using
1097 internal breakpoints instead.
1099 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1100 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1101 make this pc address equal to the value it would have if the
1102 system stepping capability was used. Also set a new flag used
1103 to ensure that we don't readjust the PC one more time later.
1105 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1106 address by DECR_PC_AFTER_BREAK when software single step is
1107 in use for this architecture, as this has already been taken
1108 care of in handle_inferior_event().
1110 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1112 * infrun.c (handle_inferior_event): Minor reformatting, to make
1113 a rather long condition expression easier to read.
1115 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1117 * Makefile.in (gdbtk.o): Move to end of file.
1118 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1119 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1120 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1121 (gdbtk-wrapper.o, gdbres.o): Ditto.
1123 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1125 * Makefile.in (copying.o): Separate out compile rule.
1126 (hpux-thread.o, procfs.o, signals.o): Ditto.
1127 (v850ice.o, z8k-tdep.o): Ditto.
1128 (tui-file.o): Move to TUI section.
1129 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1130 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1132 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1134 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1135 skip_trampoline_code, for better namespace-proofing.
1137 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1139 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1141 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1143 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1145 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1146 signal, check whether we hit a breakpoint before checking for a
1147 single step breakpoint. Otherwise, GDB fails to notice that a
1148 breakpoint has been hit when stepping onto a breakpoint.
1150 2002-08-16 Keith Seitz <keiths@redhat.com>
1152 * gdb-events.sh (clear_gdb_event_hooks): New function.
1153 * gdb-events.c: Regenerate.
1154 * gdb-events.h: Regenerate.
1156 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1158 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1159 not_a_sw_breakpoint.
1160 * breakpoint.h (bpstat_stop_status): Add parameter names.
1162 2002-08-16 Grace Sainsbury <graces@redhat.com>
1164 * remote.c (remote_insert_hw_breakpoint)
1165 (remote_remove_hw_breakpoint): Fix calculation of length field
1168 2002-08-15 Michael Snyder <msnyder@redhat.com>
1170 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1171 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1172 (supply_fpregset): Ditto.
1174 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1175 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1176 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1177 (TARGET_READ_SP): Delete.
1178 (DO_REGISTERS_INFO): Delete.
1179 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1181 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1182 from macros to functions.
1184 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1185 (mips_register_convertible, mips_register_convert_to_virtual,
1186 mips_register_convert_to_raw): Make static.
1187 (mips_read_sp): New function.
1188 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1189 (mips_do_registers_info): Make static.
1190 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1191 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1192 (mips_register_convert_from_type, mips_register_convert_to_type):
1194 (mips_gdbarch_init): Set up function_start_offset,
1195 register_virtual_size, pc_in_sigtramp.
1197 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1199 * infcmd.c (vector_info): New function.
1200 (_initialize_infcmd): Add command "info vector".
1201 (print_vector_info): New function.
1203 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1204 * gdbarch.h, gdbarch.c: Regenerate.
1206 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1208 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1209 ``print_all''. Only print vector registers when ``print_all''.
1211 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1213 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1214 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1216 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1217 Add `args' parameter.
1218 * gdbarch.h, gdbarch.c: Regenerate.
1220 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1222 * infcmd.c (float_info): Call print_float_info.
1223 (print_float_info): New function. By default, print the
1224 floating-point registers.
1226 * arch-utils.h (default_print_float_info): Delete declaration.
1227 * arch-utils.c (default_print_float_info): Delete function.
1229 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1231 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1234 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1237 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1238 * configure.host: Make i[3456]86-*-aix host obsolete.
1239 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1240 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1241 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1242 config/i386/xm-i386aix.h: Make files obsolete.
1243 * i386aix-nat.c: Make file obsolete.
1244 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1245 (i386aix-nat.o): Make target obsolete.
1247 * config/i386/nm-gnu.h: Removed.
1248 * config/i386/nm-i386gnu.h: New file.
1249 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1250 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1252 * config/i386/tm-i386gnu.h: ... here. Removed.
1253 * config/i386/xm-i386gnu.h: Removed.
1254 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1255 (NAT_FILE): Set to nm-i386gnu.h.
1256 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1257 * i386-tdep.c: New file.
1258 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1259 (i386gnu-tdep.o): Specify dependencies.
1261 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1263 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1264 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1265 Adjust a few comments to reflect reality a bit closer.
1266 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1267 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1268 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1269 target_insert_watchpoint, target_remove_watchpoint):
1271 * config/i386/nm-i386sco5.h: ... here.
1272 (kernel_u_size): Add prototype. Improve a few comments and add
1273 protection against multiple inclusion.
1275 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1278 * uw-thread.c (SP_ARG0): Define if not already defined.
1279 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1281 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1283 * config/i386/tm-i386.h: Don't include "regcache.h".
1285 * i387-tdep.h (i387_print_float_info): New prototype.
1286 * i387-tdep.c (print_i387_value, print_i387_ext,
1287 print_i387_status_word, print_i387_control_word): Add `struct
1288 ui_file *' argument and use it for output.
1289 (i387_print_float_info): Renamed from i387_float_info. Add
1290 `struct gdbarch *' and `struct ui_file *' arguments and use the
1292 * i386-tdep.c: Include "i387-tdep.h".
1293 (i386_gdbarch_init): Set print_float_info.
1294 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1295 (FLOAT_INFO): Remove define.
1297 2002-08-13 Michael Snyder <msnyder@redhat.com>
1299 * mips-tdep.c (mips_push_arguments): Rename to
1300 mips_eabi_push_arguments, and tune for EABI.
1301 (MIPS_REGS_HAVE_HOME_P): Delete.
1302 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1303 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1304 Delete references to mips_regs_have_home_p.
1306 2002-08-14 Keith Seitz <keiths@redhat.com>
1308 * Makefile.in (install-gdbtk): Create insight plugin directory.
1309 Install plugins.tcl file.
1311 2002-08-14 Keith Seitz <keiths@redhat.com>
1313 * configure.in: Move SUBDIRS to near top of the file so that
1314 --enable options may add things to it.
1315 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1316 * configure: Regenerate.
1318 2002-08-13 Michael Snyder <msnyder@redhat.com>
1320 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1321 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1322 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1324 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1326 * vax-tdep.c (vax_get_saved_register): Delete function.
1327 (vax_gdbarch_init): Update.
1328 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1329 (ns32k_gdbarch_init): Update.
1330 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1331 (alpha_gdbarch_init): Update.
1333 2002-08-13 Andrew Cagney <cagney@redhat.com>
1335 * regcache.c (init_regcache_descr): Overallocate the
1336 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1337 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1339 (set_register_cached): Add range checking assertions. Use
1342 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1344 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1345 numbers for MMX registers.
1347 2002-08-13 Andrew Cagney <cagney@redhat.com>
1349 * i386-tdep.c (i386_gdbarch_init): Use
1350 generic_unwind_get_saved_register.
1352 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1354 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1355 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1357 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1358 Delete. Add comment regarding this now-deleted target method.
1360 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1362 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1363 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1364 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1365 real PC and the page number (if it's within the memory bank window).
1366 (m68hc11_pseudo_register_write): Likewise when saving.
1367 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1368 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1369 (m68hc11_register_raw_size): And use 32-bit for it.
1370 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1371 16K memory bank is used by the prog; also use the virtual pc.
1373 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1375 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1376 (m68hc11_gdbarch_init): Install it in gdbarch.
1377 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1378 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1379 (MSYMBOL_SIZE): New for documentation.
1380 (insn_return_kind): Enum to specify how a function returns.
1381 (frame_extra_info): Cleanup and record the return mode.
1382 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1383 register in address computation.
1384 (m68hc11_get_return_insn): New to obtain the return instruction used
1386 (m68hc11_frame_init_saved_regs): Take into account the return
1387 instruction used by the function for far and interrupt functions.
1388 (m68hc11_init_extra_frame_info): Take into account page register.
1389 (m68hc11_frame_args_address): Adjust according to the return mode.
1390 (show_regs): Print page register only when it's used.
1392 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1394 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1395 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1396 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1398 (m68hc11_register_raw_size): Likewise.
1400 2002-08-13 Andrew Cagney <cagney@redhat.com>
1402 * i386-tdep.c (i386_register_name): Handle mmx registers.
1403 (mmx_regnum_p): New function.
1404 (i386_mmx_names): New array.
1405 (mmx_num_regs): New variable.
1406 (i386_pseudo_register_read): New function.
1407 (i386_pseudo_register_write): New function.
1408 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1410 * regcache.c (regcache_raw_read_unsigned): New function.
1411 (regcache_raw_read_signed): New function.
1412 * regcache.h (regcache_raw_read_unsigned): Declare.
1413 (regcache_raw_read_signed): Declare.
1415 2002-08-13 Andrew Cagney <cagney@redhat.com>
1417 * regcache.c (regcache_raw_read_as_address): Delete function.
1418 (regcache_cooked_read_signed): New function.
1419 (regcache_cooked_read_unsigned): New function.
1420 * regcache.h (regcache_cooked_read_signed): Declare.
1421 (regcache_cooked_read_unsigned): Declare.
1422 (regcache_raw_read_as_address): Delete declaration.
1424 * blockframe.c (generic_read_register_dummy): Use
1425 regcache_cooked_read_unsigned.
1426 * i386-tdep.c (i386_extract_struct_value_address): Use
1427 regcache_cooked_read_unsigned.
1429 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1431 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1432 double sizes according to ELF ABI flags.
1433 (gdbarch_tdep): Record elf_flags.
1435 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1437 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1438 (m6812_prolog): They can appear in 68HC12 function prologue.
1439 (m68hc11_frame_chain): Cleanup.
1441 2002-08-12 Andrew Cagney <cagney@redhat.com>
1443 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1445 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1446 (i386_linux_register_raw_size): Delete function.
1447 (i386_linux_init_abi): Update.
1448 * i386-tdep.c (i386_register_raw_size): Delete function.
1449 (i386_register_byte): Delete function.
1450 (i386_gdbarch_init): Update.
1451 (i386_register_size): Delete array.
1452 (i386_register_offset): Delete array.
1454 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1455 (REGISTER_RAW_SIZE): Delete macro.
1456 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1457 (REGISTER_BYTE): Delete macro.
1459 2002-08-11 Aidan Skinner <aidan@velvet.net>
1461 * ada-lang.c (ada_lookup_partial_symbol)
1462 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1463 prototype names so that grep ^func works properly.
1465 * ada-lang.c (ada_array_element_type)
1466 (ada_lookup_partial_symbol): Fix typos in parameter list.
1468 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1469 Fix prototype names so that grep ^func works properly.
1471 2002-08-10 Andrew Cagney <cagney@redhat.com>
1472 Elena Zannoni <ezannoni@redhat.com>
1473 Martin M. Hunt <hunt@redhat.com>
1475 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1476 (build_builtin_type_vec128i): Set the vector bit.
1477 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1478 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1479 (build_builtin_type_vec64): New function.
1480 (build_builtin_type_vec64i): New function.
1481 (build_gdbtypes): Initialize builtin_type_vec64 and
1482 builtin_type_vec64i.
1484 2002-08-09 Andrew Cagney <cagney@redhat.com>
1486 * regcache.c (regcache_dump): Compare the register offset
1488 * arch-utils.c (generic_register_byte): New function.
1489 * arch-utils.h (generic_register_byte): Declare.
1490 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1491 * gdbarch.h, gdbarch.c: Regenerate.
1493 2002-08-09 Andrew Cagney <cagney@redhat.com>
1495 * regcache.c: Include "gdbcmd.h"
1496 (_initialize_regcache): Add commands "maintenance print
1497 registers", "maintenance print raw-registers" and "maintenance
1498 print cooked-registers".
1499 (enum regcache_dump_what): Define.
1500 (dump_endian_bytes): New function.
1501 (regcache_dump): New function.
1502 (regcache_print): New function.
1503 (maintenance_print_registers): New function.
1504 (maintenance_print_raw_registers): New function.
1505 (maintenance_print_cooked_registers): New function.
1506 * Makefile.in (regcache.o): Update dependencies.
1508 2002-08-09 Michael Snyder <msnyder@redhat.com>
1510 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1511 (mips_push_arguments): Correct some comments. Use paddr_nz
1512 for printing addresses in debug output. Replace static
1513 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1514 (mips_n32n64_push_arguments): New function, cloned from
1515 mips_push_arguments and tuned for the n32/n64 ABI.
1516 (mips_push_register): Buffer needs dynamic allocation.
1517 (mips_print_register): Ditto.
1518 (do_gp_register_row): Ditto.
1519 (mips_store_return_value): Ditto.
1520 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1522 2002-08-09 Don Howard <dhoward@redhat.com>
1524 * memattr.c (mem_info_command): Print special case of upper bound
1525 as max CORE_ADDR + 1.
1527 2002-08-08 Michael Snyder <msnyder@redhat.com>
1529 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1530 returns structs by ref if they're too big to fit in two registers.
1532 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1534 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1536 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1537 mips_find_saved_regs().
1538 (mips_pop_frame): Likewise.
1540 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1542 * blockframe.c (frame_saved_regs_register_unwind): Revise
1543 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1546 2002-08-09 Grace Sainsbury <graces@redhat.com>
1548 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1549 T-packets; the 'a' is not taken as a register number.
1550 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1551 (remote_stopped_data_address): New functions; add to target
1553 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1554 prototypes to match other implementations of this
1555 function. replace integer argument with pointer -- the length
1556 field in the Z-packet is the length of what is pointed to or 1 if
1557 pointer is null. Add to target vector.
1558 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1562 * remote.c (remote_wait): Add support to extract optional
1563 watchpoint information from T-packet. Ignore unrecognized
1564 optional info in T-packet.
1565 (remote_async_wait): Ditto.
1567 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1569 * cli/cli-dump.c: Change fopen modes to use binary open modes
1570 as defined in include/fopen-bin.h throughout.
1572 2002-08-08 Michael Snyder <msnyder@redhat.com>
1574 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1576 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1578 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1579 assertion failure by returning early after a warning.
1581 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1583 * mips-tdep.c (mips_find_saved_regs): Make static.
1584 (mips_frame_init_saved_regs): New function.
1585 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1586 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1587 (mips_find_saved_regs): Delete declaration.
1589 2002-08-08 Grace Sainsbury <graces@redhat.com>
1591 * remote.c (remote_wait, remote_async_wait): Change
1592 thread_num from int to ULONGEST.
1593 (unpack_varlen_hex): Change result parameter from
1594 int * to ULONGEST *.
1596 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1598 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1599 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1601 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1603 2002-08-08 Andrew Cagney <cagney@redhat.com>
1605 * gcore.c (override_derive_stack_segment): Delete variable.
1606 (preempt_derive_stack_segment): Delete function.
1607 (derive_stack_segment): Delete function.
1608 (default_derive_stack_segment): Renamed to derive_stack_segment.
1609 (override_derive_heap_segment): Delete variable.
1610 (preempt_derive_heap_segment): Delete function.
1611 (derive_heap_segment): Delete function.
1612 (default_derive_heap_segment): Rename to derive_heap_segment.
1614 2002-08-06 Michael Snyder <msnyder@redhat.com>
1616 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1617 * mips-tdep.c (mips_EABI_use_struct_convention,
1618 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1619 New functions. (mips_use_struct_convention): Delete.
1620 (mips_gdbarch_init): set use_gdbarch_convention.
1622 2002-08-06 Michael Snyder <msnyder@redhat.com>
1624 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1625 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1626 mips_o32_reg_struct_has_addr): New functions.
1627 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1629 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1631 * regcache.c (pseudo_register): Delete function.
1632 (fetch_register): Delete function.
1633 (store_register): Delete function.
1634 (regcache_raw_read, legacy_read_register_gen): Use
1635 target_fetch_registers instead of fetch_register.
1636 (legacy_write_register_gen, regcache_raw_write): Use
1637 target_store_register instead of store_register.
1638 (write_register_bytes): Ditto.
1640 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1641 (STORE_PSEUDO_REGISTER): Delete.
1642 * gdbarch.h, gdbarch.c: Regenerate.
1644 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1646 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1647 write dump file binary.
1649 2002-08-05 Michael Snyder <msnyder@redhat.com>
1651 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1652 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1653 (mips_gdbarch_init): Set N32 target to be mips64.
1655 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1657 * frame.c (find_saved_register): Break out of loop once saved
1658 register address is found. Don't mention sparc in loop comment
1661 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1663 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1664 mips_default_saved_regsize to 8.
1666 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1668 * gcore.c: Do not include <sys/procfs.h>.
1669 * Makefile.in (gcore.o): Update dependencies.
1671 2002-08-06 Andrew Cagney <cagney@redhat.com>
1673 * configure.tgt: Make arc-*-* obsolete.
1674 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1675 * MAINTAINERS: Make arc-elf obsolete.
1676 * arc-tdep.c: Make file obsolete.
1677 * config/arc/arc.mt: Ditto.
1678 * config/arc/tm-arc.h: Ditto.
1680 2002-08-05 Theodore A. Roth <troth@verinet.com>
1682 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1684 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1686 * mcore-tdep.c (mcore_gdbarch_init): Use
1687 generic_unwind_get_saved_register instead of
1688 generic_get_saved_register.
1689 * v850-tdep.c (v850_gdbarch_init): Ditto.
1690 * frv-tdep.c (frv_gdbarch_init): Ditto.
1691 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1692 * s390-tdep.c (s390_gdbarch_init): Ditto.
1693 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1694 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1695 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1697 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1699 * objfiles.h: Add missing #include "symfile.h"
1701 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1703 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1705 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1706 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1709 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1711 * NEWS: Cleanup and nitpick.
1713 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1715 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1717 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1719 * Makefile.in (gdbtk-bp.o): Update dependencies.
1720 (gdbtk-register.o): Ditto.
1721 (gdbtk-varobj.o): Ditto.
1723 2002-08-03 Andrew Cagney <cagney@redhat.com>
1725 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1726 m68hc11_fetch_pseudo_register.
1727 (m68hc11_pseudo_register_write): Replace
1728 m68hc11_store_pseudo_register.
1729 (m68hc11_gdbarch_init): Update.
1731 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1733 * gdbarch.sh: Include "gdb_string.h".
1734 * gdbarch.c: Regenerate.
1736 * regcache.c: Include "gdb_string.h".
1737 * ax-general.c: Ditto.
1739 * std-regs.c: Ditto.
1740 * fbsd-proc.c: Ditto.
1743 * Makefile.in (regcache.o): Update dependencies.
1744 (thread.o, gdbarch.o): Ditto.
1745 (ax-general.o, gdbarch.o): Ditto.
1746 (varobj.o, std-regs.o): Ditto.
1747 (fbsd-proc.o): Specify dependencies.
1749 2002-08-02 Andrew Cagney <cagney@redhat.com>
1751 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1753 (regcache_cooked_write): Ditto.
1755 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1757 * regcache.c (regcache_cooked_read): New function.
1758 (regcache_cooked_write): New function.
1759 (read_register_gen): Rewrite using regcache_cooked_read.
1760 (write_register_gen): Rewrite using regcache_cooked_write.
1762 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1765 2002-08-02 Andrew Cagney <cagney@redhat.com>
1767 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1768 Replace the architecture methods register_read and register_write.
1769 * gdbarch.h, gdbarch.c: Regenerate.
1770 * regcache.c (init_regcache_descr): Update.
1771 (read_register_gen): Update.
1772 (write_register_gen): Update.
1773 (supply_register): Update comment.
1775 * sh-tdep.c (sh_gdbarch_init): Update.
1776 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1777 `regcache' and `gdbarch' parameters. Make `buffer' a void
1778 pointer. Update code.
1779 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1780 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1781 void pointer. Update code.
1782 (sh64_register_write): Delete.
1783 (sh4_register_read): Delete.
1784 (sh64_register_read): Delete.
1785 (sh4_register_write): Delete.
1786 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1787 void pointer, `to' parameter a void pointer.
1788 (sh_sh64_register_convert_to_raw): Ditto.
1790 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1792 * mips-tdep.c (mips_register_virtual_type): Use architecture
1793 invariant return values.
1795 2002-08-01 Andrew Cagney <cagney@redhat.com>
1797 * linux-proc.c: Include "gdb_string.h".
1798 * Makefile.in (linux-proc.o): Update dependency list.
1800 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1802 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1805 2002-08-01 Grace Sainsbury <graces@redhat.com>
1807 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1808 to_insert_watchpoint, to_remove_watchpoint,
1809 to_stopped_by_watchpoint, to_stopped_data_address,
1810 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1811 target vecctor. Define their corresponding macros so they call
1814 * target.c: Add default and debug versions of for
1815 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1816 to_insert_watchpoint, to_remove_watchpoint,
1817 to_stopped_by_watchpoint, to_stopped_data_address,
1818 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1820 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1822 * mips-tdep.c (mips_register_virtual_type): New function.
1823 (mips_gdbarch_init): Register mips_register_virtual_type()
1824 with gdbarch machinery.
1825 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1826 this file instead of tm-bigmips.h.
1827 (MIPS_REGSIZE): Delete this macro.
1828 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1829 multiarch version in mips-tdep.c will be found.
1831 2002-08-01 Andrew Cagney <cagney@redhat.com>
1833 * NEWS: Menion that CHILL has been made obsolete.
1835 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1836 * stabsread.c (read_range_type): Ditto.
1837 * gdbtypes.h: Ditto.
1838 * language.c (binop_type_check): Ditto.
1839 (binop_result_type): Ditto.
1840 (integral_type): Ditto.
1841 (character_type): Ditto.
1842 (string_type): Ditto.
1843 (boolean_type): Ditto.
1844 (structured_type): Ditto.
1845 (lang_bool_type): Ditto.
1846 (binop_type_check): Ditto.
1847 * language.h (_LANG_chill): Ditto.
1848 * dwarfread.c (set_cu_language): Ditto.
1849 * dwarfread.c (CHILL_PRODUCER): Ditto.
1850 * dwarfread.c (handle_producer): Ditto.
1851 * expression.h (enum exp_opcode): Ditto.
1852 * eval.c: Ditto for comments.
1853 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1854 * expprint.c (print_subexp): Ditto.
1855 (print_subexp): Ditto.
1856 * valops.c (value_cast): Ditto.
1857 (search_struct_field): Ditto.
1858 * value.h (COERCE_VARYING_ARRAY): Ditto.
1859 * symfile.c (init_filename_language_table): Ditto.
1860 (add_psymbol_with_dem_name_to_list): Ditto.
1861 * valarith.c (value_binop): Ditto.
1863 * valops.c (value_slice): Ditto.
1864 * symtab.h (union language_specific): Ditto.
1865 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1866 (SYMBOL_DEMANGLED_NAME): Ditto.
1867 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1868 * defs.h (enum language): Ditto.
1869 * symtab.c (got_symtab): Ditto.
1870 * utils.c (fprintf_symbol_filtered): Ditto.
1872 * ch-typeprint.c: Make file obsolete.
1873 * ch-valprint.c: Make file obsolete.
1874 * ch-lang.h: Make file obsolete.
1875 * ch-exp.c: Make file obsolete.
1876 * ch-lang.c: Make file obsolete.
1878 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1880 (TARGET_FLAGS_TO_PASS): Ditto.
1881 (CHILLFLAGS): Obsolete.
1883 (CHILL_FOR_TARGET): Obsolete.
1884 (CHILL_LIB): Obsolete.
1885 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1887 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1888 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1890 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1893 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1895 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1896 This does not change anything at the moment, but will be helpful
1897 later when full Ada support is integrated.
1899 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1901 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1904 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1906 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1907 and save it in a local variable. Use variable in later test.
1909 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1911 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1912 test. (Thanks to Daniel Jacobowitz.)
1914 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1916 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1917 (mips_abi_strings): Add "n64".
1918 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1920 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1922 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1923 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1925 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1927 * utils.c (host_pointer_to_address, address_to_host_pointer):
1928 Use gdb_assert() instead of explicit call to internal_error().
1930 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1932 * Makefile.in (rs6000-nat.o): Update dependencies.
1934 From Nicholas Duffek:
1935 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1936 (aix-thread.o): New rule.
1937 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1938 * config/powerpc/aix432.mh: New file.
1940 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1942 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1943 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1944 (fetch_core_registers, ppc_linux_supply_gregset)
1945 (ppc_linux_supply_fpregset): New functions.
1946 (ppc_linux_regset_core_fns): New.
1947 (_initialize_ppc_linux_tdep): Call add_core_fns.
1948 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1949 and ppc_linux_supply_gregset.
1950 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1951 (supply_fpregset): Call ppc_linux_supply_fpregset.
1952 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1954 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1956 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1958 * symtab.c (lookup_symbol): Demangle before lowercasing.
1960 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1962 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1964 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1965 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1966 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1967 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1969 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1970 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1971 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1972 (avr-tdep.o, mon960-rom.o): Ditto.
1973 (aout_stabs_gnu_h): Define.
1974 (symtab_h): Remove $(gdb_obstack_h).
1976 2002-07-30 Jim Blandy <jimb@redhat.com>
1978 Patch from David Carlton <carlton@math.stanford.edu>:
1979 * gdbinit.in: Move the `dir' commands that add GDB's own source
1980 directory to the search path to the end, so that the `gdb' source
1981 directory will be searched first.
1983 2002-07-29 Andrew Cagney <ac131313@redhat.com>
1985 * gdb_obstack.h: New file.
1986 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
1987 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
1988 * objfiles.h: Include "gdb_obstack.h".
1989 * Makefile.in (gdb_obstack_h): Define.
1990 (symtab_h): Add $(gdb_obstack_h).
1991 (objfiles_h): Add $(gdb_obstack_h).
1993 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
1994 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
1995 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
1996 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
1997 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
1998 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
1999 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2000 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2002 * Makefile.in (bcache.o): Update dependencies.
2003 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2004 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2005 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2006 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2007 (stabsread.o, symfile.o, symmisc.o): Ditto.
2008 (symtab.o, typeprint.o, macroexp.o): Ditto.
2009 (macrotab.o, mdebugread.o): Ditto.
2010 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2011 (coff_ecoff_h, aout_aout64_h): Define.
2012 (aout_stabs_gnu_h, libaout_h): Define.
2014 2002-07-29 Andrew Cagney <cagney@redhat.com>
2016 * regcache.c (struct regcache_descr): Rename nr_registers to
2017 nr_cooked_registers. Revise comments describing the structure
2019 (init_regcache_descr): Update.
2020 (init_legacy_regcache_descr): Update.
2021 (read_register_gen, write_register_gen): When a cooked register in
2022 the raw register range, directly access the value from the raw
2025 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2027 * z8k-tdep.c: Do not include "obstack.h".
2028 * h8300-tdep.c, h8500-tdep.c: Ditto.
2029 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2030 * valprint.c, v850-tdep.c: Ditto.
2031 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2032 * mn10200-tdep.c: Ditto.
2034 * Makefile.in (z8k-tdep.o): Update dependencies.
2035 (m68hc11-tdep.o, valprint.o): Ditto.
2036 (v850-tdep.o, d10v-tdep.o): Ditto.
2037 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2038 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2039 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2040 (sh_opc_h, gdb_sim_sh_h): Define.
2041 (elf_sh_h, elf_bfd_h): Define.
2042 (opcode_m68hc11_h): Define.
2043 (OPCODES_SRC, OPCODES_DIR): define.
2044 (OPCODES): Use $(OPCODES_DIR).
2045 (gdb_sim_d10v_h): Rename sim_d10v_h.
2046 (gdb_sim_arm_h): Rename sim_arm_h.
2048 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2050 * utils.c (host_pointer_to_address, address_to_host_pointer):
2051 Change internal_error() message to indicate function responsible
2054 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2056 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2057 calls to local_hex_string_custom().
2059 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2061 * irix5-nat.c: Move IRIX shared library support from here...
2062 * solib-irix.c: ...to here. Revised substantially to work with
2063 generic solib framework.
2065 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2066 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2067 * mips-irix-tdep.c: New file.
2069 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2070 (mips-irix-tdep.o, solib-irix.o): New rules.
2071 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2073 * config/mips/irix6.mt (TDEPFILES): Likewise.
2074 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2076 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2078 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2079 disabled (via ``#if 0'') includes.
2081 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2083 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2084 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2085 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2086 Add support for the fpscr register.
2087 * rs6000-nat.c (regmap, fetch_inferior_registers)
2088 (store_inferior_registers, fetch_core_registers): Likewise.
2090 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2092 * rs6000-nat.c (language.h): Include.
2093 (special_regs): Delete this array.
2094 (regmap): New function.
2095 (fetch_register, store_register): Use regmap() to map gdb
2096 register numbers to ptrace register numbers. Also, use
2097 outputs from regmap() to make decisions regarding type of
2098 ptrace() call to make. In particular, don't compare against
2099 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2100 (fetch_inferior_registers, store_inferior_registers): Where
2101 possible, obtain register numbers from tdep struct. Don't
2102 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2103 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2104 (LAST_UISA_SP_REGNUM): Delete.
2106 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2108 * rs6000-nat.c (ppc-tdep.h): Include.
2109 (fetch_registers, store_register, fetch_core_registers): Don't
2110 access registers[] directly. Instead, use supply_register() or
2111 regcache_collect() as appropriate.
2112 (find_toc_address): Format hex address with local_hex_string().
2114 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2116 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2119 2002-07-24 Tom Tromey <tromey@redhat.com>
2121 * jv-exp.y: Marked all strings with _().
2122 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2124 (MethodInvocation, CastExpression, parse_number, yyerror,
2125 java_type_from_name, push_expression_name, yylex): Typo fixes.
2127 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2129 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2130 (tee_file_flush, tee_file_write, tee_file_fputs)
2131 (tee_file_isatty): New.
2132 * ui-file.h (tee_file_new): Add prototype.
2134 2002-07-24 Aidan Skinner <aidan@velvet.net>
2136 * ada-lang.c: Change k&r style function definitions to prototyped
2138 * ada-typeprint.c: Change k&r style function definitions to prototyped
2140 * ada-valprint.c: Change k&r style function definitions to prototyped
2143 2002-07-24 Andrew Cagney <cagney@redhat.com>
2145 * README: Remove reference to remote-bug.
2146 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2148 (m88k-nat.o): Delete rule.
2149 (m88k-tdep.o): Delete rule.
2150 (remote-bug.o): Delete rule.
2151 * MAINTAINERS: Mark as obsolete.
2152 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2153 * m88k-tdep.c: Make file obsolete.
2154 * config/m88k/m88k.mh: Ditto.
2155 * config/m88k/delta88v4.mh: Ditto.
2156 * config/m88k/delta88v4.mt: Ditto.
2157 * config/m88k/delta88.mt: Ditto.
2158 * config/m88k/delta88.mh: Ditto.
2159 * remote-bug.c: Ditto.
2160 * config/m88k/tm-delta88.h: Ditto.
2161 * config/m88k/nm-delta88v4.h: Ditto.
2162 * config/m88k/xm-delta88.h: Ditto.
2163 * config/m88k/xm-dgux.h: Ditto.
2164 * config/m88k/tm-m88k.h: Ditto.
2165 * config/m88k/nm-m88k.h: Ditto.
2166 * config/m88k/tm-delta88v4.h: Ditto.
2167 * m88k-nat.c: Ditto.
2168 * cxux-nat.c: Ditto.
2169 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2170 and m88*-*-* obsolete.
2171 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2174 2002-07-24 Andrew Cagney <cagney@redhat.com>
2176 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2177 constant. Same for local pointer variables.
2178 (extract_signed_integer): Ditto.
2179 * defs.h (extract_unsigned_integer): Update.
2180 (extract_signed_integer): Update.
2182 2002-07-24 Andrew Cagney <cagney@redhat.com>
2184 * regcache.c (regcache_raw_write): Change buf parameter to a
2185 constant void pointer.
2186 (regcache_raw_read): Change buf parameter to a void pointer.
2187 (legacy_write_register_gen): Change myaddr parameter a constant
2189 (supply_register): Change val parameter to a const void pointer.
2190 * regcache.h (regcache_raw_write): Update declaration.
2191 (regcache_raw_read): Update declaration.
2192 (supply_register): Update declaration.
2194 2002-07-24 Tom Tromey <tromey@redhat.com>
2196 * defs.h (gdb_readline_wrapper): Declare.
2197 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2198 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2199 * top.c (gdb_readline_wrapper): New function.
2200 (command_line_input): Use it.
2202 2002-07-24 Andrew Cagney <cagney@redhat.com>
2204 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2205 regcache_read and regcache_write.
2206 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2207 * regcache.c: Update.
2208 * sh-tdep.c (sh64_push_arguments): Update comment.
2209 (sh_pseudo_register_read): Update.
2210 (sh_pseudo_register_write): Update.
2211 (sh4_register_read): Update.
2212 (sh4_register_write): Update.
2213 (sh64_pseudo_register_read): Update.
2214 (sh64_pseudo_register_write): Update.
2215 (sh64_register_read): Update.
2216 (sh64_register_write): Update.
2217 * i386-tdep.c (i386_extract_return_value): Update.
2218 (i386_extract_struct_value_address): Update.
2219 (i386_extract_return_value): Update.
2220 * blockframe.c (generic_read_register_dummy): Update.
2221 (generic_call_dummy_register_unwind): Update
2222 * infrun.c (write_inferior_status_register): Update.
2224 2002-07-23 Jim Blandy <jimb@redhat.com>
2226 * parser-defs.h (expression_context_pc): Make this extern.
2227 (Thanks to Michael Snyder.)
2229 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2231 GDB 5.2.1 released from 5.2 branch.
2232 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2233 * README: Update to mention 5.2.1.
2235 2002-07-23 Mark Salter <msalter@redhat.com>
2237 * remote.c (remote_read_bytes): Fix check for error.
2239 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2241 * aix-thread.c (language.h): Include.
2242 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2243 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2244 Print newlines at end of debug messages.
2245 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2246 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2248 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2250 * aix-thread.c (ppc-tdep.h): Include.
2251 (special_register_p): New function.
2252 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2253 (store_regs_user_thread): Use register number information from
2254 gdbarch_tdep struct instead of hardcoded offsets relative to
2255 FIRST_UISA_SP_REGNUM.
2256 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2257 special_register_p() instead of using FPLAST_REGNUM and
2258 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2259 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2260 will be MQ's register number.
2262 2002-07-22 Michael Snyder <msnyder@redhat.com>
2264 * aix-thread.c (ops): Rename to aix_thread_ops.
2265 (base_ops): Rename to base_target.
2266 (ops_attach): Rename to aix_thread_attach.
2267 (ops_detach): Rename to aix_thread_detach.
2268 (ops_resume): Rename to aix_thread_detach.
2269 (ops_wait): Rename to aix_thread_wait.
2270 (ops_kill): Rename to aix_thread_kill.
2271 (init_ops): Rename to init_aix_thread_ops.
2272 (ops_fetch_register): Rename to aix_thread_fetch_register.
2273 (ops_store_register): Rename to aix_thread_store_register.
2274 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2275 (ops_thread_alive): Rename to aix_thread_thread_alive.
2276 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2277 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2278 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2279 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2280 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2281 (store_regs_lib): Rename to store_regs_user_thread.
2282 (store_regs_kern): Rename to store_regs_kernel_thread.
2284 2002-07-22 Michael Snyder <msnyder@redhat.com>
2286 * aix-thread.c (ops_prepare_to_store): Eliminate.
2287 (init_ops): Don't initialize ops.prepare_to_store.
2288 (store_regs_kern): Pre-fetch register buffers from child,
2289 because some registers may not be in the cache. Copy
2290 regs from register cache only if they are cached.
2291 (store_regs_lib): Copy regs from register cache only
2293 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2294 fill_gprs64): Ditto.
2296 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2298 * aix-thread.c (gdb_assert.h): Include.
2299 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2300 register sizes (from register cache) match size of buffer holding
2302 (fill_sprs32): Change parameter types to match those in the ptrace()
2304 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2305 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2307 2002-07-22 Michael Snyder <msnyder@redhat.com>
2309 * aix-thread.c (supply_sprs64): Cosmetic change.
2310 (supply_sprs32): Cosmetic change.
2311 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2312 (fill_sprs64): Use regcache_collect instead of read_register.
2313 (store_regs_lib): Use regcache_collect instead of
2314 read_register. Use fill_sprs32 instead of fill_sprs64,
2315 if debugging a 32-bit architecture.
2316 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2317 out of the register cache, instead of passing a pointer into
2318 the register cache directly to ptrace. Use regcache_collect
2319 insteaad of read_register.
2320 (ops_prepare_to_store): Use target_read_registers instead
2321 of read_register_bytes.
2323 2002-07-20 Aidan Skinner <aidan@velvet.net>
2325 * MAINTAINERS: Add self under write after approval.
2327 2002-07-20 Aidan Skinner <aidan@velvet.net>
2329 * ada-tasks.c: Change k&r style function definitions to prototyped
2332 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2334 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2335 * x86-64-tdep.c: Include "objfiles.h".
2336 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2337 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2339 2002-07-17 Michal Ludvig <michal@suse.cz>
2341 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2342 (update_context): Initialise cfa variable.
2344 2002-07-17 Michael Snyder <msnyder@redhat.com>
2346 * aix-thread.c: Shorten some long lines.
2347 Bring comments into line with code spec.
2349 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2351 * infrun.c: Re-indent using gdb_indent.sh.
2353 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2355 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2356 Leave the indentation temporarily untouched, to minimize the diffs.
2358 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2360 * stabsread.c: Make os9k sections of the code obsolete,
2362 * stabsread.h: Make os9k sections of the code obsolete.
2364 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2366 * linux-low.c (regsets_store_inferior_registers): Add free()
2367 at the end of a loop to prevent memory leak.
2368 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2369 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2370 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2372 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2374 2002-07-17 Jim Blandy <jimb@redhat.com>
2376 * macrocmd.c (info_macro_command): Remove newline from error
2379 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2381 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2382 (sh_gdbarch_init): Use it for sh-dsp.
2384 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2386 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2387 64-bit DWARF2 format.
2389 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2391 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2392 <sys/proc.h> when not available.
2394 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2396 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2397 * stabsread.c: Make os9k sections of the code obsolete.
2398 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2399 * config/i386/i386os9k.mt: Make file obsolete.
2400 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2401 (COMMON_OBS): Remove os9kread.o
2402 (SFILES): Remove os9kread.c.
2403 (os9kread.o, remote-os9k.o): Make target obsolete.
2404 * remote-os9k.c: Make file obsolete.
2405 * os9kread.c: Make file obsolete.
2408 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2410 * NEWS: Mention that the FR30 has been made obsolete.
2411 * fr30-tdep.c: Make file obsolete.
2412 * config/fr30/tm-fr30.h: Ditto.
2413 * config/fr30/fr30.mt: Ditto.
2414 * configure.tgt: Make fr30-*-elf obsolete.
2415 * MAINTAINERS: Make fr30-elf obsolete.
2417 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2419 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2420 found is not inside a section.
2422 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2424 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2426 (pdc_realloc): Use xrealloc() instead of realloc().
2428 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2430 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2431 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2432 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2435 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2437 * aix-thread.c (ptrace_check): Eliminate goto.
2438 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2441 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2443 * aix-thread.c (gdbcmd.h): Include.
2444 (DEBUG, DBG, DBG2, dbg): Eliminate.
2445 (debug_aix_thread): New static global.
2446 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2447 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2448 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2449 invocations to DBG and DBG2 macros to test against
2450 ``debug_aix_thread'' and call fprintf_unfiltered().
2451 (_initialize_aix_thread): Add new command "set debug aix-thread".
2453 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2455 From Gerhard Tonn <TON@de.ibm.com>:
2456 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2457 instead of supply_register.
2459 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2461 * dwarf2cfi.c: Include "gdb_assert.h".
2462 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2464 (update_context): Do not use __func__. Add missing ``break''.
2465 (update_context): Do not use __func__.
2467 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2469 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2470 and its setting. Set gdbarch instruction printing functions
2471 directly. For non-rs6000 case use new function
2472 gdb_print_insn_powerpc.
2473 (gdb_print_insn_powerpc): New function.
2475 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2477 * NEWS: Mention that the d30v has been marked obsolete.
2478 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2479 * configure.tgt: Mark d30v-*-* as obsolete.
2480 * d30v-tdep.c: Mark file as obsolete.
2481 * config/d30v/d30v.mt: Ditto.
2482 * config/d30v/tm-d30v.h: Ditto.
2484 2002-07-13 Aidan Skinner <aidan@velvet.net>
2486 * ada-tasks.c (add_task_entry): replace calls to
2487 malloc() with xmalloc
2488 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2490 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2491 ada_finish_decode_line_1, all_sals_for_line
2492 ada_breakpoint_rewrite): replace calls to free() with xfree()
2494 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2496 From Nicholas Duffek (with minor changes by Martin Hunt,
2497 Louis Hamilton, and Kevin Buettner):
2498 * aix-thread.c: New file.
2500 2002-07-12 Petr Sorfa <petrs@caldera.com>
2502 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2503 complaint for invalid attribute class or form.
2504 (read_func_scope): DW_AT_frame_base
2505 better handling of DW_AT_block*.
2506 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2507 better handling of DW_AT_block*.
2508 (read_common_block): DW_AT_location
2509 better handling of DW_AT_block*.
2510 (read_partial_die): DW_AT_location better handling
2512 (new_symbol): DW_AT_external better handling of
2513 DW_AT_block*. Proper initialization of variable
2515 (attr_form_is_block): New function that returns true
2516 if the attribute's form is of DW_FORM_block*.
2518 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2520 * valops.c (find_method_list): Remove comment about
2521 removed STATIC_MEMFUNCP argument.
2522 (value_find_oload_method_list): Likewise.
2524 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2526 From Nicholas Duffek:
2527 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2528 target_new_objfile_hook.
2530 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2532 From Nicholas Duffek:
2533 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2536 2002-07-12 Andrew Cagney <cagney@redhat.com>
2538 * MAINTAINERS: Mention --enable-sim-build-warnings.
2539 (m68hc11-elf): Disable sim build warnings.
2540 (m32r-elf): Mark as broken obsolete candidate.
2541 (x86_64-linux-gnu): Mark as buildable with -Werror.
2542 (arm-elf): Change -w to ``,'' which enables warnings but not
2545 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2547 * bcache.h: Update copyright.
2548 (struct bstring, struct bcache): Move definition to "bcache.c".
2549 Replaced by opaque declaration.
2550 (bcache_xfree): Replace free_bcache.
2551 (bcache_xmalloc, bcache_memory_used): Declare.
2553 * bcache.c: Update copyright.
2554 (struct bstring, struct bcache): Moved to here from "bcache.h".
2556 (bcache_xmalloc, bcache_memory_used): New functions.
2557 (bcache_xfree): Replace function free_bcache.
2559 * Makefile.in (objfiles.o): Add $(bcache_h).
2560 (objfiles_h): Remove $(bcache_h).
2561 (symfile.o): Add $(bcache_h).
2563 * symmisc.c: Update copyright.
2564 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2565 (print_objfile_statistics): Use bcache_memory_used.
2567 * symfile.c: Include "bcache.h".
2568 (reread_symbols): Use bcache_xfree.
2569 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2570 (add_psymbol_to_list): Pass psymbol_cache by value.
2571 (add_psymbol_with_dem_name_to_list): Ditto.
2573 * objfiles.h: Update copyright.
2574 (struct bcache): Declare opaque. Do not include "bcache.h".
2575 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2577 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2579 * objfiles.c: Include "bcache.h". Update copyright.
2580 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2582 (free_objfile): Use bcache_xfree.
2584 2002-07-11 Grace Sainsbury <graces@redhat.com>
2586 * monitor.c (monitor_fetch_register): Make name a constant.
2587 (monitor_store_register): Same.
2589 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2591 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2592 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2593 (finish_block) For non-function blocks, hash the symbol table. For
2594 function blocks, mark the symbol table as unhashed.
2595 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2596 (msymbol_hash_iw): Likewise.
2597 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2599 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2600 (lookup_minimal_symbol): Likewise for both.
2601 * symtab.h (struct block): Add `hashtable' flag. Comment the
2603 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2604 (ALL_BLOCK_SYMBOLS): Update.
2605 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2606 (struct symbol): Add `hash_next' pointer.
2607 * symtab.c (lookup_block_symbol): Search using the hash table when
2609 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2610 (search_symbols, find_addr_symbol): Likewise.
2612 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2613 (read_dst_symtab): Likewise.
2614 * jv-lang.c (get_java_class_symtab): Likewise.
2615 * mdebugread.c: Include "gdb_assert.h".
2616 (shrink_block): Assert that the block being modified is not hashed.
2617 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2618 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2620 (dump_symtab): Recognize hashed blocks.
2621 * printcmd.c (print_frame_args): Assert that function blocks do not
2622 have hashed symbol tables.
2623 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2624 (fill_in_ada_prototype, debug_print_block): Likewise.
2625 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2627 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2629 * stack.c (print_frame): Use result of frame_address_in_block()
2630 instead of fi->pc when evaluating symbols.
2631 (backtrace_command_1): Ditto.
2633 2002-07-11 Andrew Cagney <cagney@redhat.com>
2635 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2638 * arm-tdep.c (arm_register_name): Make return type constant.
2640 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2642 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2644 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2645 * s390-tdep.c (s390_fp_regnum): Ditto.
2646 (s390_read_fp): Ditto.
2647 (s390_pop_frame): Ditto.
2648 (_initialize_s390_tdep): Ditto.
2649 * remote.c (get_remote_state): Ditto.
2650 * procfs.c (mappingflags): Ditto.
2651 * memattr.c (_initialize_mem): Ditto.
2652 * mcore-tdep.c (mcore_pop_frame): Ditto.
2653 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2654 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2655 * language.c (set_case_str): Ditto.
2656 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2657 * frv-tdep.c (new_variant): Ditto.
2658 (frv_stopped_data_address): Ditto.
2659 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2660 (context_alloc): Ditto.
2661 (frame_state_alloc): Ditto.
2662 (unwind_tmp_obstack_init): Ditto.
2663 (unwind_tmp_obstack_free): Ditto.
2664 (cfi_read_fp): Ditto.
2665 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2666 (cris_pop_frame): Ditto.
2667 * c-lang.c (scanning_macro_expansion): Ditto.
2668 (finished_macro_expansion): Ditto.
2669 (c_preprocess_and_parse): Ditto.
2670 * gdbarch.sh: Ditto.
2671 * gdbarch.h, gdbarch.c: Regenerate.
2672 * config/mn10200/tm-mn10200.h: Adjust indentation.
2673 * target.c: Adjust indentation.
2674 * symtab.h: Adjust indentation.
2675 * stabsread.h: Adjust indentation.
2676 * remote-es.c: Adjust indentation.
2677 * os9kread.c: Adjust indentation.
2679 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2681 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2682 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2684 2002-07-10 Grace Sainsbury <graces@redhat.com>
2686 * NEWS: Mention m68k, mcore multi-arching.
2687 * MAINTAINERS: Change status of m68k, mcore to reflect
2690 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2692 * valops.c (find_overload_match): Free oload_syms.
2694 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2696 Define HAVE_SYS_PROC_H if sys/proc.h exists
2697 * configure.in: Add check for sys/proc.h
2698 * config.in: Regenerate.
2699 * configure: Regenerate.
2701 2002-07-09 Grace Sainsbury <graces@redhat.com>
2703 * config/m68k/tm-m68k.h: Remove macros wrapped in
2704 #if !GDB_MULTI_ARCH.
2706 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2708 * config.in, configure: Regenerate.
2710 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2712 * dwarf2cfi.c: Include "gcore.h".
2713 (execute_stack_op): Fix implementation of the
2714 DW_OP_deref and DW_OP_deref_size operators by letting do their
2715 lookup in the target.
2717 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2719 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2720 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2723 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2725 Fix PR gdb/595, gdb/602
2726 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2727 Don't call value_cast, just read the vtable pointer; update comments
2730 2002-07-05 Grace Sainsbury <graces@redhat.com>
2732 * config/mcore/tm-mcore.h: Remove file.
2733 * config/mcore/mcore.mt: Remove definition of TM_FILE
2734 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2736 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2738 * i386bsd-tdep.c: Include "gdb_string.h".
2740 2002-07-04 Grace Sainsbury <graces@redhat.com>
2742 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2743 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2745 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2746 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2747 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2748 (RETVAL_REGNUM): Move macros from tm-mcore.h
2749 (mcore_reg_struct_has_addr): New function.
2750 (mcore_gdbarch_init): Added initializations for the macros removed
2753 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2755 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2756 traditonal string branding within the ELF header.
2758 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2760 * symtab.c (remove_params): New function.
2761 (make_symbol_overload_list): Use it instead of cplus_demangle.
2762 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2764 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2766 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2768 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2770 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2771 and tdep->sigtramp_end.
2772 * i386obsd-nat.c: New file.
2773 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2775 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2776 Don't call get_current_frame().
2778 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2780 * i386-nat.c (child_post_startup_inferior): New function
2781 calling i386_cleanup_dregs if
2782 I386_USE_GENERIC_WATCHPOINTS is defined.
2783 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2784 conditional to acknowledge that i386-nat.c has its
2785 own child_post_startup_inferior function.
2787 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2789 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2790 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2791 instead of MAX_REGISTER_RAW_SIZE.
2792 (i386_extract_return_value, i386_extract_struct_value_address):
2793 Convert to use regcache.
2794 (i386_gdbarch_init): Set max_register_raw_size and
2795 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2796 Set extract_return_value and extract_struct_value_address instead
2797 of their deprecated variants.
2799 Convert i386 target to generic dummy frames.
2800 * i386-tdep.c: Include "symfile.h".
2801 (i386_frameless_signal_p): Consider a function to be frameless if
2802 the pc points at the first instruction of the function.
2803 (i386_frame_chain): Handle (generic) call dummies.
2804 (i386_frame_saved_pc): Likewise.
2805 (i386_frame_init_saved_regs): Remove code dealing with call
2806 dummies on the stack.
2807 (i386_push_dummy_frame): Removed.
2808 (i386_call_dummy_words): Removed.
2809 (i386_fix_call_dummy): Removed.
2810 (i386_push_return_address): New function.
2811 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2812 parameter, and don't call get_current_frame.
2813 (i386_pop_frame): New function.
2814 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2815 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2816 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2817 call_dummy_length to 0, set call_dummy_words to NULL, set
2818 sizeof_call_dummy_words to 0, set fix_call_dummy to
2819 generic_fix_call_dummy, set pc_in_call_dummy to
2820 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2821 generic_push_dummy_frame, set push_return_address to
2822 i386_push_return_address and set frame_chain_valid to
2823 generic_file_frame_chain_valid.
2825 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2827 * gdbarch.sh (struct regcache): Add opaque declaration.
2828 (EXTRACT_RETURN_VALUE): New architecture method.
2829 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2830 * gdbarch.h, gdbarch.c: Regenerate.
2831 * arch-utils.c (legacy_extract_return_value): New function.
2832 * arch-utils.h (legacy_extract_return_value): Declare.
2833 * values.c (value_being_returned): Re-enable code handling
2834 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2835 deprecated_grub_regcache_for_registers call to block handling
2836 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2837 (EXTRACT_RETURN_VALUE): Do not define.
2839 2002-07-03 Grace Sainsbury <graces@redhat.com>
2841 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2842 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2843 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2844 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2845 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2846 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2847 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2848 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2849 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2850 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2851 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2852 argument so the function fits the prototype in the architecture
2854 (mcore_pop_frame): Remove argument so the function fits the
2855 prototype. Use get_current_frame instead of the argument.
2856 (mcore_push_arguments): Change type of struct_return so the
2857 function can be used in the architecture vector.
2858 (mcore_store_struct_return): Add.
2859 (mcore_frame_init_saved_regs): Add.
2860 (mcore_gdbarch_init): Add function calls to replace the macros
2861 removed from tm-mcore.h
2863 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2865 * infcmd.c (print_return_value): Remove compatibility code calling
2866 deprecated_grub_regcache_for_registers.
2868 * values.c: Include "regcache.h".
2869 (value_being_returned): Update. Use
2870 deprecated_grub_regcache_for_registers to extract the register
2872 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2873 ``struct regcache''.
2874 * Makefile.in (values.o): Add dependency on $(regcache_h).
2876 * inferior.h (run_stack_dummy): Change type of second parameter to
2877 a ``struct regcache''.
2878 * valops.c (hand_function_call): Change type of retbuf to ``struct
2879 regcache''. Allocate using regcache_xmalloc, clean using
2880 make_cleanup_regcache_xfree.
2881 * infcmd.c (run_stack_dummy): Update. Use
2882 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2884 * regcache.c (do_regcache_xfree): New function.
2885 (make_cleanup_regcache_xfree): New function.
2886 * regcache.h (make_cleanup_regcache_xfree): Declare.
2888 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2890 * event-top.c (command_line_handler): Don't read past
2891 beginning of buffer.
2893 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2895 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2897 (varobj_create): Store frame_id for root.
2898 (varobj_gen_name): Use xasprintf.
2899 (varobj_update): Save and restore frame using get_frame_id() and
2901 (create_child): Use xasprintf.
2902 (new_root_variable): Initialize frame_id.
2903 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2904 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2905 to prevent memory leak.
2907 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2909 * valops.c (hand_function_call): Move declaration of retbuf to
2910 start of function, allocate using malloc, add a cleanup but before
2911 the inf_status cleanup, cleanup the buffer. Rename local variable
2912 old_chain to inf_status_cleanup.
2914 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2916 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2918 * cli/cli-decode.c (cmd_func_p): New function.
2919 (cmd_func): New function.
2921 * command.h: Add cmd_func() and cmd_func_p().
2923 2002-07-03 Grace Sainsbury <graces@redhat.com>
2925 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2926 (REGISTER_SIZE): Remove.
2927 (MAX_REGISTER_RAW_SIZE): Remove.
2928 (REGISTER_VIRTUAL_TYPE): Remove.
2929 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2930 (REGISTER_NAME): Remove.
2931 (USE_GENERIC_DUMMY_FRAMES): Remove.
2932 (CALL_DUMMY): Remove.
2933 (CALL_DUMMY_START_OFFSET): Remove.
2934 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2935 (CALL_DUMMY_LOCATION): Remove.
2936 (FIX_CALL_DUMMY): Remove.
2937 (CALL_DUMMY_ADDRESS): Remove.
2938 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2939 (SAVE_DUMMY_FRAME_TOS): Remove.
2940 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2941 (mcore_register_virtual_type): New function.
2942 (mcore_register_byte): New function.
2943 (mcore_register_size): New function.
2944 (mcore_register_name): New function.
2945 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2946 macros removed from tm-mcore.h.
2947 (mcore_dump_tdep): Add.
2948 (_initialize_mcore_tdep): Add gdbarch_register call.
2950 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2952 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2953 frameless_look_for_prologue, such that we actually call this
2956 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2958 * frame.h (frame_address_in_block): New function.
2960 * blockframe.c (frame_address_in_block): New function extracted
2961 from get_frame_block().
2962 (get_frame_block): Use frame_address_in_block().
2963 (block_innermost_frame): Use frame_address_in_block() to match
2964 the frame pc address against the block boundaries rather than
2965 the frame pc directly. This prevents a failure when a frame pc
2966 is actually a return-address pointing immediately after the end
2969 2002-07-02 Grace Sainsbury <graces@redhat.com>
2971 * MAINTAINERS: Add self under write after approval.
2973 2002-07-02 Grace Sainsbury <graces@redhat.com>
2975 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2976 used in architecture vector. The default is
2977 m68k_local_breakpoint_from_pc.
2978 (m68k_local_breakpoint_from_pc): Add.
2979 (enum): Add register numbers from tm-m68k.h.
2980 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2982 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
2983 GDB_MULTI_ARCH_PARTIAL.
2984 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
2985 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
2987 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
2988 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
2989 to enum in m68k-tdep.c
2991 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2993 * solib-osf.c (open_map): Compute the list of shared libraries
2994 loaded by the inferior, rather than the list of libraries loaded
2995 by GDB itself. Otherwise, GDB ends up reading the symbols from
2996 the wrong shared libraries...
2998 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3000 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3001 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3003 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3005 (FRAMELESS_SIGNAL): Remove function.
3006 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3007 i386_linux_saved_pc_after_call): Removed.
3008 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3009 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3010 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3012 * i386-tdep.c (i386_frameless_signal_p): New function.
3013 (i386_frame_chain): Deal with frameless signals.
3014 (i386_sigtramp_saved_sp): New function.
3015 (i386_frame_saved_pc): Deal with frameless signals.
3016 (i386_saved_pc_after_call): Make sure the correct value is
3017 returned just after entry into a sigtramp.
3018 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3019 i386fbsd4_sc_sp_offset): New variables.
3020 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3021 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3022 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3023 similiar to what we already did for sc_pc_offset.
3024 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3027 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3029 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3031 * config/i386/tm-x86-64linux.h: New.
3032 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3034 * config/i386/nm-x86-64.h: Rename to ...
3035 * config/i386/nm-x86-64linux.h: ... this one.
3036 * config/i386/x86-64linux.mh: Reflect the above change.
3038 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3040 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3041 with sigcontext_addr. Add sc_sp_offset.
3042 (i386bsd_sigtramp_saved_pc): Remove prototype.
3043 (i386bsd_sicontext_addr): Add prototype.
3044 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3045 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3046 (i386_svr4_sigtramp_saved_pc): Removed.
3047 (i386_svr4_sigcontext_addr): New function.
3048 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3049 Initialize tdep->sigcontext_addr instead. Initialize
3050 tdep->sc_pc_offset and tdep->sc_sp_offset.
3051 (i386_gdbarch_init): Likewise.
3052 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3054 (i386bsd_sigtramp_saved_pc): Remove function.
3055 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3056 Initialize tdep->sigcontext_addr instead. Initialize
3058 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3059 of tdep->sigtramp_saved_pc.
3060 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3061 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3064 * i386-tdep.c (i386_frameless_function_invocation,
3065 i386_frame_num_args, i386_frame_init_saved_regs,
3066 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3067 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3068 i386_extract_return_value, i386_store_return_value,
3069 i386_extract_struct_value_address, i386_register_virtual_type,
3070 i386_register_convertible, i386_register_convert_to_virtual,
3071 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3072 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3075 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3077 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3079 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3080 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3081 this macro. Include "value.h".
3083 2002-06-30 Aidan Skinner <aidan@velvet.net>
3085 * ada-exp.tab.c: remove as it's a generated file
3086 * ada-lex.c: remove as it's a generated file
3088 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3090 * config/i386/tm-i386.h (struct frame_info, struct
3091 frame_saved_regs, struct value, struct type): Remove forward
3094 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3095 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3096 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3097 (FILL_FPXREGSET): Define.
3099 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3101 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3102 i[3456]86-*-netbsd* case.
3103 * config/i386/tm-obsd.h: Removed.
3104 * config/i386/obsd.mt: Removed.
3105 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3107 (MH_CFLAGS): Add -DYYDEBUG=0.
3109 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3110 i386nbsd_sc_pc_offset on OpenBSD too.
3112 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3113 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3114 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3116 * i386bsd-tdep.c: Include "arch-utils.h".
3117 (i386bsd_aout_in_solib_call_trampoline): New function.
3118 (i386bsd_init_abi): Set in_solib_call_trampoline to
3119 i386bsd_aout_in_solib_call_trampoline.
3120 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3121 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3123 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3125 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3126 (struct obstack, struct bcache): Add opaque declarations.
3127 * Makefile.in (macrotab_h): Update
3129 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3131 * blockframe.c (generic_find_dummy_frame): Change return type to
3132 ``struct regcache''.
3133 (struct dummy_frame): Replace field ``registers'' with regcache, a
3134 struct regcache object.
3135 (generic_find_dummy_frame): Update.
3136 (generic_push_dummy_frame): Update. Use regcache_xfree,
3137 regcache_xmalloc and regcache_cpy.
3138 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3140 (deprecated_generic_find_dummy_frame): Update.
3141 (generic_read_register_dummy): Update. Use
3142 regcache_read_as_address.
3143 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3144 (generic_get_saved_register): Update. Use regcache_read.
3146 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3148 * Makefile.in (objfiles_h): Add $(bcache_h).
3149 * objfiles.h: Include "bcache.h".
3151 * Makefile.in (symtab_h): Remove $(bcache_h).
3152 * symtab.h: Do not include "bcache.h".
3154 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3156 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3157 generic_func_frame_chain_valid.
3159 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3161 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3162 * config/i386/tm-fbsd.h: Likewise.
3164 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3166 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3167 generic_unwind_get_saved_register.
3169 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3171 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3172 * regcache.c (supply_register): Add missing argument to
3173 register_buffer call.
3175 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3177 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3178 Solaris /bin/grep does not not like it. From Peter Schauer.
3180 2002-06-26 Tom Tromey <tromey@redhat.com>
3182 * command.h (add_setshow_cmd): Declare.
3183 (add_setshow_cmd_full): Declare.
3184 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3185 returns void. Use add_setshow_cmd_full.
3186 (add_setshow_cmd_full): New function.
3187 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3188 (add_setshow_boolean_cmd): Likewise.
3190 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3192 * config/vax/tm-vax.h: Protect from multiple inclusion.
3193 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3194 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3195 * config/vax/tm-vaxbsd.h: ...here. New file.
3196 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3198 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3200 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3201 (BELIEVE_PCC_PROMOTION): Remove.
3202 (AP_REGNUM): Move to...
3203 * config/vax/nm-vax.h: ...here.
3204 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3205 (vax_breakpoint_from_pc): New function.
3206 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3207 and gdbarch_believe_pcc_promotion.
3209 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3211 * Makefile.in (vax_tdep_h): Define.
3212 (vax-tdep.o): Use $(vax_tdep_h).
3213 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3214 (vax_dump_tdep): New function.
3215 (_initialize_vax_tdep): Register vax_dump_tdep.
3216 * vax-tdep.h: Include osabi.h.
3217 (struct gdbarch_tdep): New.
3219 2002-06-26 Andrew Cagney <cagney@redhat.com>
3221 * frame.h (deprecated_generic_find_dummy_frame): Rename
3222 generic_find_dummy_frame.
3223 * blockframe.c (generic_find_dummy_frame): Make static.
3224 (deprecated_generic_find_dummy_frame): New function.
3225 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3226 generic_find_dummy_frame with deprecated_find_dummy_frame.
3227 (sh64_nofp_frame_init_saved_regs): Ditto.
3228 (sh_fp_frame_init_saved_regs): Ditto.
3229 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3230 (s390_frame_chain): Ditto.
3231 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3233 2002-06-26 Grace Sainsbury <graces@redhat.com>
3235 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3236 gdbarch vector are at the top.
3238 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3239 (FRAME_ARGS_ADDRESS): Remove.
3240 (FRAME_LOCALS_ADDRESS): Remove.
3241 (FRAME_NUM_ARGS): Remove.
3242 (FRAME_ARGS_SKIP): Remove.
3243 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3244 (m68k_gdbarch_init): Add gdbarch initializations for macros
3245 undefined in tm-m68k.h
3247 2002-06-26 Grace Sainsbury <graces@redhat.com>
3249 * monitor.h: Add the function regname to monitor_ops
3250 structure. This way NUM_REGS does not have to be a constant.
3251 * monitor.c (monitor_fetch_register): Added support for regname
3252 function. The function is called if the array regnames is NULL.
3253 (monitor_store_register): Same.
3254 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3256 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3257 cpu32bug_cmds.regname to point to new function.
3258 * abug-rom.c (abug_regname): Same as above.
3259 (init_abug_cmds): Same.
3260 * dbug-rom.c (dbug_regname): Same as above.
3261 (init_dbug_cmds): Same.
3262 * remote-est.c (est_regname): Same.
3263 (init_est_cmds): Same.
3264 * rom68k-rom.c (rom68k_regname): Same.
3265 (init_rom68k_cmds): Same.
3267 2002-06-25 Tom Tromey <tromey@redhat.com>
3269 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3271 2002-06-25 Andrew Cagney <cagney@redhat.com>
3273 * infrun.c (stop_registers): Change variable's type to ``struct
3275 (xmalloc_inferior_status): Delete function.
3276 (free_inferior_status): Delete function.
3277 (normal_stop): Use regcache_cpy.
3278 (struct inferior_status): Change type of fields ``stop_registers''
3279 and ``registers'' to ``struct regcache''.
3280 (write_inferior_status_register): Use regcache_write.
3281 (save_inferior_status): Instead of calling
3282 xmalloc_inferior_status, allocate the inf_status buffer directly.
3283 Use regcache_dup_no_passthrough and regcache_dup to save the
3285 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3286 Replace the stop_registers regcache instead of overriding it. Use
3287 regcache_xfree. Instead of calling free_inferior_status, xfree
3288 the buffer directly.
3289 (discard_inferior_status): Use regcache_xfree. Instead of calling
3290 free_inferior_status, xfree the buffer directly.
3291 (build_infrun): Use regcache_xmalloc.
3292 (_initialize_infrun): Delete redundant call to build_infrun.
3294 * Makefile.in (infcmd.o): Add $(regcache_h).
3296 * infcmd.c: Include "regcache.h".
3297 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3298 obtain the address of `stop_registers' register buffer.
3299 (print_return_value): Ditto.
3301 * inferior.h (struct regcache): Add opaque declaration.
3302 (stop_registers): Change variable's declared type to ``struct
3305 2002-06-24 Tom Tromey <tromey@redhat.com>
3307 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3308 * target.c (initialize_targets): Fixed typo in
3309 trust-readonly-sections `show' documentation.
3311 * main.c: Marked all strings with _().
3313 2002-06-24 Don Howard <dhoward@redhat.com>
3315 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3316 that means max CORE_ADDR+1.
3317 (lookup_mem_region): Ditto.
3318 (mem_info_command): Ditto.
3320 2002-06-24 Grace Sainsbury <graces@redhat.com>
3322 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3323 (REGISTER_BYTES_OK): Remove.
3324 (REGISTER_BYTES): Remove.
3325 (STORE_STRUCT_RETURN): Remove.
3326 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3327 (STORE_RETURN_VALUE): Remove.
3328 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3329 (FRAME_CHAIN): Remove.
3330 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3331 (FRAME_SAVED_PC): Remove.
3332 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3333 (m68k_store_struct_return): Add.
3334 (m68k_deprecated_extract_return_value): Add.
3335 (m68k_deprecated_extract_struct_value_address): Add.
3336 (m68k_store_return_value): Add.
3337 (m68k_frame_chain): Add.
3338 (m68k_frameless_function_invocation): Add.
3339 (m68k_frame_saved_pc): Add.
3340 (m68k_gdbarch_init): added set_gdbarch calls for new
3341 functions and deleted macros.
3343 2002-06-23 Tom Tromey <tromey@redhat.com>
3345 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3346 (ALLDEPFILES): Likewise.
3347 (udiheaders): Removed.
3348 (udip2soc.o): Likewise.
3349 (udi2go32.o): Likewise.
3351 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3353 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3355 * infrun.c (_initialize_infrun): Delete unnecessary call to
3358 * regcache.h: Update comments describing the regcache_cpy family
3360 (regcache_save, regcache_restore): Delete declaration.
3361 (regcache_save_no_passthrough): Delete declaration.
3362 (regcache_restore_no_passthrough): Delete declaration.
3363 * regcache.c (regcache_save): Delete function.
3364 (regcache_save_no_passthrough): Delete function.
3365 (regcache_restore): Delete function.
3366 (regcache_restore_no_passthrough): Delete function.
3368 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3370 * config/m68k/tm-m68k.h: Fix typo.
3371 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3372 (m68k_frame_init_saved_regs): Declare.
3374 2002-06-21 Jim Blandy <jimb@redhat.com>
3376 Remove some vestiges of Harris 88k support.
3377 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3378 register numbering quirk.
3379 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3380 odd symbols occurring in Harris 88k ELF targets.
3382 2002-06-21 Tom Tromey <tromey@redhat.com>
3384 * gdb_locale.h: New file.
3385 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3386 (defs_h): Added gdb_locale.h.
3387 * configure, config.in: Rebuilt.
3388 * configure.in (PACKAGE): Define.
3389 * defs.h: Include gdb_locale.h.
3390 * main.c (captured_main): Call setlocale, bindtextdomain,
3393 2002-06-21 Dave Brolley <brolley@redhat.com>
3395 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3396 * config/frv/frv.mt: New file.
3397 * config/frv/tm-frv.h: New file.
3398 * configure.tgt: Support frv-*-*.
3399 * Makefile.in (frv-tdep.o): New target.
3400 * frv-tdep.c: New file.
3401 * NEWS: Mention frv.
3403 2002-06-21 Dave Brolley <brolley@redhat.com>
3405 * MAINTAINERS: Add self to "Write After Approval" list.
3407 2002-06-21 Grace Sainsbury <graces@redhat.com>
3409 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3410 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3411 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3412 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3413 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3415 * m68k-tdep.c: Include arch-utils.h
3416 (m68k_register_raw_size): Add.
3417 (m68k_register_virtual_size): Add.
3418 (m68k_register_virtual_type): Add.
3419 (m68k_register_name): Add.
3420 (m68k_stack_align): Add.
3421 (m68k_register_byte): Add.
3422 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3425 2002-06-21 Grace Sainsbury <graces@redhat.com>
3427 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3428 m68k_find_saved_regs.
3429 (m68k_pop_frame): Removed saved_regs structure, and replaced
3430 references to it with frame->saved_regs.
3431 (m68k_gdbarch_init): Added function calls to initialize the
3433 (m68k_fix_call_dummy): Add.
3434 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3435 (CALL_DUMMY): Remove.
3436 (CALL_DUMMY_LENGTH): Remove.
3437 (CALL_DUMMY_START_OFFSET): Remove.
3438 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3439 (FIX_CALL_DUMMY): Remove.
3440 (PUSH_DUMMY_FRAME): Remove.
3441 (POP_FRAME): Remove.
3443 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3445 * parse.c (parse_fprintf): New function used to avoid calls to
3446 fprintf in bison parser generated debug code.
3447 * parser-defs.h: Declaration of new parse_fprintf function.
3448 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3449 Set YYDEBUG to 1 by default.
3450 Set YYFPRINTF as parse_fprintf.
3452 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3454 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3456 (pointer_encoding, enum ptr_encoding): New.
3457 (execute_cfa_program): Take care about pointer encoding.
3458 (dwarf2_build_frame_info): Only call parse_frame_info for
3459 .debug_frame and .eh_frame.
3460 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3461 fixed augmentation handling, added relative addressing,
3462 ignore duplicate FDEs. Added comments.
3463 * dwarf2cfi.c: Reindented.
3465 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3467 * event-top.c (command_handler): Don't use space_at_cmd_start
3468 unless there is sbrk() on the host. Assign time and space data
3469 to union fields of the appropriate length.
3471 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3473 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3474 x86_64_register_name. Return type changed to 'const char *'.
3475 (x86_64_register_name2nr): Rename to x86_64_register_number.
3476 (x86_64_gdbarch_init): Update to reflect the change.
3477 * x86-64-tdep.h: Ditto.
3478 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3479 (supply_fpregset): Ditto.
3481 2002-06-19 Andrew Cagney <cagney@redhat.com>
3483 * regcache.h: Update copyright.
3484 (struct regcache, struct gdbarch): Add opaque declarations.
3485 (current_regcache): Declare global variable.
3486 (regcache_read, regcache_write): Add gdbarch parameter.
3487 (regcache_save, regcache_save_no_passthrough)
3488 (regcache_restore, regcache_restore_no_passthrough)
3489 (regcache_dup, regcache_dup_no_passthrough)
3490 (regcache_cpy, regcache_cpy_no_passthrough)
3491 (deprecated_grub_regcache_for_registers)
3492 (deprecated_grub_regcache_for_register_valid)
3493 (regcache_valid_p): Add function declarations.
3495 * regcache.c: Update copyright.
3496 (regcache_descr_handle): New global variable.
3497 (struct regcache_descr): Define.
3498 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3499 (regcache_descr, xfree_regcache_descr): New functions.
3500 (struct regcache): Define.
3501 (regcache_xmalloc, regcache_xfree): New functions.
3502 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3503 (regcache_dup, regcache_dup_no_passthrough): New functions.
3504 (regcache_valid_p, regcache_read_as_address): New functions.
3505 (deprecated_grub_regcache_for_registers): New function.
3506 (deprecated_grub_regcache_for_register_valid): New function.
3507 (current_regcache): New global variable.
3508 (register_buffer): Add regcache parameter. Update calls.
3509 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3510 (read_register_gen, write_register_gen): Update register_buffer
3511 call. Test for legacy_p instead of gdbarch_register_read_p or
3512 gdbarch_register_write_p.
3513 (regcache_collect): Update register_buffer call.
3514 (build_regcache): Rewrite. Use deprecated grub functions.
3515 (regcache_save, regcache_save_no_passthrough): New functions.
3516 (regcache_restore, regcache_restore_no_passthrough): New
3518 (_initialize_regcache): Create the regcache_data_handle. Swap
3519 current_regcache global variable.
3521 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3522 parameter to regcache_read and regcache_write calls.
3523 (sh4_register_read): Ditto.
3524 (sh64_pseudo_register_read): Ditto.
3525 (sh64_register_read): Ditto.
3526 (sh_pseudo_register_write): Ditto.
3527 (sh4_register_write): Ditto.
3528 (sh64_pseudo_register_write): Ditto.
3529 (sh64_register_write): Ditto.
3531 * defs.h (XCALLOC): Define.
3533 2002-06-19 Grace Sainsbury <graces@redhat.com>
3535 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3536 * m68k-tdep.c (m68k_gdbarch_init): Added.
3537 (m68k_dump_tdep): Added.
3539 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3541 * ada-lang.c (fill_in_ada_prototype): Update comment.
3543 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3545 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3547 (mips_abi_string, mips_abi_strings): New.
3548 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3549 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3550 tdep->mips_abi_string. Honor mips_abi_string. Default to
3551 O32 if no ABI is found.
3552 (mips_dump_tdep): Use mips_abi_strings.
3553 (mips_abi_update): New function.
3554 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3555 ``set mips abi'' and ``show mips abi''. Check the size of
3558 2002-06-19 Andrew Cagney <cagney@redhat.com>
3560 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3563 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3565 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3566 current frame using only the first stack size adjustment. All
3567 subsequent size adjustments are not considered to be part of
3568 the "static" part of the current frame.
3569 Compute the address of the saved registers relative to the
3570 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3571 in use in this frame.
3573 2002-06-18 Don Howard <dhoward@redhat.com>
3575 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3576 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3577 suggesting this solution.
3579 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3581 * config/romp/xm-rtbsd.h: Delete file.
3582 * config/romp/rtbsd.mh: Delete file.
3584 2002-06-18 Keith Seitz <keiths@redhat.com>
3586 * breakpoint.c (condition_command): Post breakpoint_modify
3587 when a condition is added to an existing breakpoint.
3588 (commands_command): Likewise for commands.
3589 (set_ignore_count): Likewise for ignore counts.
3590 If no tty, do not simply return, still need to send event
3592 (ignore_command): Only print a newline if the command came
3594 Don't call breakpoints_changed, since this is now properly
3595 handled by set_ignore_count.
3597 2002-06-18 Andrew Cagney <cagney@redhat.com>
3599 * MAINTAINERS: Note that cris-elf target can be compiled with
3601 * cris-tdep.c (cris_register_name): Make return type constant.
3602 (cris_breakpoint_from_pc): Ditto.
3604 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3606 * frame.h (struct frame_info): Change type of context to
3609 2002-06-17 Andrew Cagney <cagney@redhat.com>
3611 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3613 * gdbarch.h, gdbarch.c: Regenerate.
3614 * config/mips/tm-mips.h (mips_register_name): Update.
3615 * i386-tdep.h (i386_register_name): Update.
3616 * mips-tdep.c (mips_register_name): Update
3617 * alpha-tdep.c (alpha_register_name): Update.
3618 * arch-utils.c (legacy_register_name): Update.
3619 * arch-utils.h (legacy_register_name): Update.
3620 * avr-tdep.c (avr_register_name): Update.
3621 * ia64-tdep.c (ia64_register_name): Update.
3622 * i386-tdep.c (i386_register_name): Update.
3623 * sparc-tdep.c (sparc32_register_name): Update.
3624 (sparc64_register_name): Update.
3625 (sparclite_register_name): Update.
3626 (sparclet_register_name): Update.
3627 * sh-tdep.c (sh_generic_register_name): Update.
3628 (sh_sh_register_name): Update.
3629 (sh_sh3_register_name): Update.
3630 (sh_sh3e_register_name): Update.
3631 (sh_sh_dsp_register_name): Update.
3632 (sh_sh3_dsp_register_name): Update.
3633 (sh_sh4_register_name): Update.
3634 (sh_sh64_register_name): Update.
3635 * s390-tdep.c (s390_register_name): Update.
3636 * rs6000-tdep.c (rs6000_register_name): Update.
3637 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3638 (ns32k_register_name_32382): Update.
3639 * d10v-tdep.c (d10v_ts2_register_name): Update.
3640 (d10v_ts3_register_name): Update.
3641 * xstormy16-tdep.c (xstormy16_register_name): Update.
3642 * vax-tdep.c (vax_register_name): Update.
3643 * v850-tdep.c (v850_register_name): Update.
3644 * m68hc11-tdep.c (m68hc11_register_name): Update.
3645 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3646 (am33_register_name): Update.
3648 2002-06-17 Grace Sainsbury <graces@redhat.com>
3650 * m68k-tdep.c: Reindented.
3652 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3654 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3655 list of predefined types.
3657 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3659 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3660 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3661 REGISTER_CONVERT_TO_RAW): Remove defines.
3662 (i386_register_virtual_type, i386_register_convertible,
3663 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3665 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3666 macros mentioned above.
3668 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3669 (i386lynx_saved_pc_after_call): Remove prototype.
3670 * i386ly-tdep.c: Include "i386-tdep.h".
3671 (i386lynx_saved_pc_after_call): Make static. Use
3672 read_memory_nobpt instead of read_memory. Use
3673 read_memory_unsigned_integer instead of read_memory_integer.
3674 (i386lynx_init_abi): New function.
3675 (i386lynx_coff_osabi_sniffer): New function.
3676 (_initialize_i386bsd_tdep): New function.
3678 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3679 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3680 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3681 (i386_fix_call_dummy): Remove prototype.
3682 * i386-tdep.c (i386_call_dummy_words): New variable.
3683 (i386_gdbarch_init): Adjust for removal of the
3684 macros mentioned above.
3686 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3688 * command.h (add_setshow_auto_boolean_cmd): Replace
3689 add_set_auto_boolean_cmd.
3690 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3691 add_set_auto_boolean_cmd.
3692 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3693 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3694 mask-address'' command.
3695 (show_mask_address): Add cmd parameter.
3696 * remote.c (add_packet_config_cmd): Update. Change type of
3697 set_func and show_func to cmd_sfunc_ftype.
3698 (_initialize_remote): Update `set remote Z-packet'
3699 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3700 (show_remote_protocol_e_packet_cmd): Ditto.
3701 (show_remote_protocol_E_packet_cmd): Ditto.
3702 (show_remote_protocol_P_packet_cmd): Ditto.
3703 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3704 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3705 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3706 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3707 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3708 (show_remote_protocol_Z_packet_cmd): Ditto.
3709 (show_remote_protocol_binary_download_cmd): Ditto.
3710 (show_remote_cmd): Pass NULL to all of above.
3712 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3714 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3715 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3716 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3717 POP_FRAME): Remove defines.
3718 (i386_push_arguments, i386_store_struct_return,
3719 i386_extract_return_value, i386_store_return_value,
3720 i386_extract_struct_value_address, i386_push_dummy_frame,
3721 i386_pop_frame): Renove prototypes.
3722 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3723 macros mentioned above.
3725 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3727 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3728 add_set_boolean_cmd.
3729 (add_setshow_cmd): New function.
3730 * command.h (add_setshow_boolean_cmd): Replace
3731 add_set_boolean_cmd.
3732 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3733 and ``set rdiromatzero''.
3734 * maint.c (_initialize_maint_cmds): Update commented out code.
3735 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3736 * target.c (initialize_targets): Update `set
3737 trust-readonly-sections'.
3738 * remote.c (_initialize_remote): Update `set remotebreak'.
3740 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3742 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3743 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3744 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3745 fit into multi-arch framework.
3746 (i386_breakpoint_from_pc): New function.
3747 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3750 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3751 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3752 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3753 (i386_frameless_function_invocation, i386_frame_num_args,
3754 i386_frame_init_saved_regs): Remove prototypes.
3755 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3756 macros mentioned above.
3758 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3760 * cli/cli-decode.c (set_cmd_cfunc): Update.
3761 (set_cmd_sfunc): Update.
3762 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3763 (set_cmd_sfunc, set_cmd_cfunc): Update.
3764 * cli/cli-decode.h: Update.
3766 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3768 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3769 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3771 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3773 * defs.h (auto_boolean): Declare enum.
3774 * command.h (cmd_auto_boolean): Delete enum.
3775 * mips-tdep.c (mask_address_var): Update.
3776 (mips_mask_address_p): Update.
3777 (show_mask_address): Update.
3778 * remote.c (struct packet_config): Update.
3779 (update_packet_config): Update.
3780 (show_packet_config_cmd): Update.
3781 (packet_ok): Update.
3782 (add_packet_config_cmd): Update.
3783 (_initialize_remote):
3784 * command.h: Update.
3785 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3786 (do_setshow_command): Update.
3787 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3788 * cli/cli-decode.h: Update.
3790 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3792 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3793 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3794 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3795 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3796 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3797 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3799 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3800 list of DJGPP COFF targets.
3802 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3803 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3804 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3805 (FP0_REGNUM): Remove define.
3806 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3807 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3808 (i386_register_virtual_size): Remove protoype.
3809 * i386-tdep.c (i386_register_virtual_size): Removed.
3810 (i386_extract_return_value, i386_store_return_value): Use
3811 FP0_REGNUM instead of NUM_FREGS to determine whether the
3812 floating-point registers are available.
3813 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3814 Adjust for removal of macros mentioned above.
3816 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3818 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3820 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3822 (supply_gregset, fill_gregset): Remove use of register keyword and
3823 remove declaration for regmap. Use I386_NUM_GREGS instead of
3824 NUM_REGS and NUM_FREGS.
3825 (FPREGSET_FSAVE_OFFSET): Remove.
3826 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3827 NUM_FREGS to determine whether the floating-point registers are
3830 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3831 gnu_store_registers): Replace usage of NUM_GREGS with
3834 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3835 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3836 usage of NUM_GREGS with I386_NUM_GREGS.
3838 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3840 * i386bsd-nat.c: Include "i386-tdep.h".
3841 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3844 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3845 and associated comment. They no longer make any sense, since we
3846 don't use this file anymore on Linux.
3848 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3849 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3850 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3851 elements in these arrays.
3852 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3855 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3857 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3858 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3860 2002-06-14 Andrew Cagney <cagney@redhat.com>
3862 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3863 EXTRACT_RETURN_VALUE.
3864 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3865 EXTRACT_STRUCT_VALUE_ADDRESS.
3866 * gdbarch.h, gdbarch.c: Regenerate.
3868 * values.c (value_being_returned): Handle
3869 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3870 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3872 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3873 * arm-tdep.c (arm_gdbarch_init): Update.
3874 * avr-tdep.c (avr_gdbarch_init): Update.
3875 * cris-tdep.c (cris_gdbarch_init): Update.
3876 * d10v-tdep.c (d10v_gdbarch_init): Update.
3877 * ia64-tdep.c (ia64_gdbarch_init): Update.
3878 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3879 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3880 * s390-tdep.c (s390_gdbarch_init): Update.
3881 * sh-tdep.c (sh_gdbarch_init): Update.
3882 * s390-tdep.c (s390_gdbarch_init): Update.
3883 * sparc-tdep.c (sparc_gdbarch_init): Update.
3884 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3885 * v850-tdep.c (v850_gdbarch_init): Update.
3886 * vax-tdep.c (vax_gdbarch_init): Update.
3887 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3888 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3890 * config/arc/tm-arc.h: Update.
3891 * config/d30v/tm-d30v.h: Update.
3892 * config/fr30/tm-fr30.h: Update.
3893 * config/h8300/tm-h8300.h: Update.
3894 * config/h8500/tm-h8500.h: Update.
3895 * config/i386/tm-i386.h: Update.
3896 * config/i386/tm-ptx.h: Update.
3897 * config/i386/tm-symmetry.h: Update.
3898 * config/i960/tm-i960.h: Update.
3899 * config/m32r/tm-m32r.h: Update.
3900 * config/m68k/tm-delta68.h: Update.
3901 * config/m68k/tm-linux.h: Update.
3902 * config/m68k/tm-m68k.h: Update.
3903 * config/m88k/tm-m88k.h: Update.
3904 * config/mcore/tm-mcore.h: Update.
3905 * config/mips/tm-mips.h: Update.
3906 * config/mn10200/tm-mn10200.h: Update.
3907 * config/pa/tm-hppa.h: Update.
3908 * config/pa/tm-hppa64.h: Update.
3909 * config/sparc/tm-sp64.h: Update.
3910 * config/sparc/tm-sparc.h: Update.
3911 * config/sparc/tm-sparclet.h: Update.
3912 * config/z8k/tm-z8k.h: Update.
3914 2002-06-14 Andrew Cagney <cagney@redhat.com>
3916 * Makefile.in (i386_linux_tdep_h): Define.
3917 (i386_tdep_h, i387_tdep_h): Define.
3918 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3919 $(i386_tdep_h) and $(i387_tdep_h).
3920 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3922 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3924 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3925 Already covered by the default.
3927 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3928 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3929 (i386_gdbarch_init): Initialize long_double_format and long_double
3932 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3933 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3935 * config/i386/i386sol2.mh: ... here.
3936 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3937 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3938 (SIGCONTEXT_PC_OFFSET): Remove define.
3939 (IN_SIGTRAMP): Remove define.
3940 * i386-sol2-tdep.c: New file.
3942 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3943 * config/i386/tm-i386nw.h: Removed.
3945 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3946 USE_STRUCT_CONVENTION): Remove defines.
3947 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3948 (get_longjmp_target): Remove prototype.
3949 (IN_SIGTRAMP): Remove define.
3950 (i386bsd_in_sigtramp): Remove prototype.
3951 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3952 function. Update comment accordingly
3953 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3954 (FRAME_SAVED_PC): Remove define.
3955 (i386bsd_frame_saved_pc): Remove prototype.
3956 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3957 GET_LONGJMP_TARGET): Remove defines.
3958 (get_longjmp_target): Remove prototype.
3959 (IN_SIGTRAMP): Remove define.
3960 (i386bsd_in_sigtramp): Remove prototype.
3961 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3962 function. Update comment accordingly
3963 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3964 (FRAME_SAVED_PC): Remove define.
3965 (i386bsd_frame_saved_pc): Remove prototype.
3966 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3968 (USE_STRUCT_CONVENTION): Remove prototype.
3969 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3971 (_initialize_i386bsd_nat): Revise logic to determine some
3972 constants at compile time when compiling a native GDB. Warn if
3973 things don't match up with what we expect.
3974 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3976 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3977 to use date stored in `struct gdbarch_tdep'.
3978 (i386bsd_sigcontext_offset): Remove varaible.
3979 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3980 stored in `struct gdbarch_tdep'.
3981 (i386bsd_frame_saved_pc): Make static.
3982 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
3983 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
3984 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
3985 i386fbsd4_sc_pc_offset): New variables.
3986 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
3987 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
3989 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
3991 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
3992 Modify the value of i386fbsd_sigtramp_start and
3993 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
3994 i386fbsd_sigtramp_end.
3995 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
3998 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
3999 define to i386-linux-tdep.h.
4000 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4001 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4003 (i386_linux_register_name, i386_linux_register_byte,
4004 i386_linux_register_raw_size): Remove prototypes.
4005 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4006 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4007 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4008 TARGET_WRITE_PC): Remove defines.
4009 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4010 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4011 i386_linux_write_pc): Remove prototypes.
4012 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4013 (get_longjmp_target): Remove prototype.
4014 * i386-linux-tdep.h: New file.
4015 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4016 * i386-linux-tdep.c: Include "i386-tdep.h" and
4017 "i386-linux-tdep.h".
4018 (i386_linux_register_name, i386_linux_register_byte,
4019 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4020 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4022 (i386_linux_init_abi): New function.
4023 (_initialize_i386_linux_tdep): New function.
4025 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4026 (i386_saved_pc_after_call): Remove prototype.
4027 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4028 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4029 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4030 (i386_register_name, i386_stab_reg_to_regnum,
4031 i386_dwarf_reg_to_regnum): Remove prototypes.
4032 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4033 SIZEOF_SSE_REGS): Remove defines.
4034 (REGISTER_BYTES): Remove define.
4035 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4036 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4037 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4038 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4039 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4040 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4041 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4042 (get_longjmp_target): Remove prototype.
4043 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4044 (sigtramp_saved_pc): Remove define.
4045 (i386v4_sigtramp_saved_pc): Remove prototype.
4046 * config/i386/tm-go32.h (FRAME_CHAIN,
4047 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4048 (i386go32_frame_saved_pc): Remove prototype.
4049 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4050 (get_longjmp_target): Remove prototype.
4051 * i386-tdep.h: Include "osabi.h".
4052 (enum i386_abi): Removed.
4053 (enum struct_return): New enum.
4054 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4055 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4056 sc_pc_offset members.
4057 (i386_gdbarch_register_os_abi): Remove prototype.
4058 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4059 I386_SSE_NUM_REGS): New defines.
4060 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4061 I386_SSE_SIZEOF_REGS): New defines.
4062 (i386_register_name, i386_register_byte, i386_register_raw_size):
4064 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4065 (i386bsd_sigtramp_saved_pc): New prototype.
4066 * i386-tdep.c: Don't include "elf-bfd.h".
4067 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4068 i386_frame_chain, i386_saved_pc_after_call): Make static.
4069 (i386_frame_saved_pc): Rewrite to call architecture dependent
4070 function to deal with signal handlers. Make static.
4071 (i386go32_frame_saved_pc): Removed.
4072 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4074 (i386_get_longjmp_target): New function.
4075 (default_struct_convention, pcc_struct_convention,
4076 reg_struct_convention, valid_conventions, struct_convention): New
4078 (i386_use_struct_convention): New function.
4079 (i386v4_sigtramp_saved_pc): Renamed to
4080 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4081 (i386_pc_in_sigtramp): New function.
4082 (i386_abi_names): Removed.
4083 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4084 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4086 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4087 i386_gdbarch_register_os_abi): Removed.
4088 (struct i386_abi_handler): Removed.
4089 (i386_abi_handler_list): Removed.
4090 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4092 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4093 i386_nw_init_abi): New functions.
4094 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4095 Use set_gdbarch_xxx() calls instead of relying on macros for a
4097 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4098 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4099 Register the various architecture variants defined in this file.
4101 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4103 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4104 (struct main_type): Remove arg_types member. Update comments for
4106 (TYPE_ARG_TYPES): Remove.
4107 (TYPE_FN_FIELD_ARGS): Update.
4108 (smash_to_method_type): Update prototype.
4110 * c-typeprint.c (cp_type_print_method_args): Take method type
4111 instead of argument list. Use new argument layout. Simplify.
4112 (c_type_print_args): Use new argument layout. Simplify.
4113 (c_type_print_base): Update call to cp_type_print_method_args.
4114 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4115 argument; use die->type instead. Update call to
4116 smash_to_method_type.
4117 (read_structure_scope): Update call to dwarf2_add_member_fn.
4118 * gdbtypes.c (allocate_stub_method): Update comment.
4119 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4120 Use new argument layout.
4121 (check_stub_method): Use new argument layout. Don't count
4122 void as an argument.
4123 (print_arg_types): Update comments. Use new argument layout.
4124 (recursive_dump_type): Don't print arg_types member.
4125 * hpread.c (hpread_read_struct_type): Use new argument layout.
4126 (fixup_class_method_type): Likewise.
4127 (hpread_type_lookup): Likewise.
4128 * stabsread.c (read_type): Update calls to read_args and
4129 smash_to_method_type.
4130 (read_args): Use new argument layout. Simplify.
4131 * valops.c (typecmp): Use new argument layout. Update parameters
4132 and comments. Simplify.
4133 (hand_function_call): Use new argument layout.
4134 (search_struct_method): Update call to typecmp.
4135 (find_overload_match): Use new argument layout.
4137 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4139 * NEWS: Mention multithreaded debug support for gdbserver.
4141 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4143 * MAINTAINERS: Mention NEWS.
4145 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4147 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4148 (struct mips_objfile_private, compare_pdr_entries): New.
4149 (non_heuristic_proc_desc): Read the ".pdr" section if it
4152 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4154 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4155 (arm_debug): New static variable.
4156 (_initialize_arm_tdep): Add ``set debug arm'' command.
4158 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4160 * Makefile.in (sim_arm_h): Define.
4161 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4162 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4163 (arm_register_sim_regno): New function, map an internal REGNUM
4164 onto a simulator register number.
4165 (arm_gdbarch_init): Set register_sim_regno.
4167 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4169 * MAINTAINERS: Add self.
4171 2002-06-11 Jim Blandy <jimb@redhat.com>
4173 * source.c (source_info): Mention whether the symtab has
4174 information about preprocessor macros.
4176 Call the command `info macro', not `show macro'.
4177 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4179 (_initialize_macrocmd): Register `info_macro_command' in
4180 `infolist', not `showlist'.
4182 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4184 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4185 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4186 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4187 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4188 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4190 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4191 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4192 (_initialize_mips_tdep): Remove dead code.
4193 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4194 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4195 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4196 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4197 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4198 MIPS_LAST_FP_ARG_REGNUM): Remove.
4200 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4202 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4203 (unwind_tmp_obstack_free, parse_frame_info)
4204 (update_context, cfi_read_fp, cfi_write_fp)
4205 (cfi_frame_chain, cfi_init_extra_frame_info)
4206 (cfi_virtual_frame_pointer): Use the above function.
4207 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4209 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4211 * v850-tdep.c (v850_type_is_scalar): New function.
4212 (v850_use_struct_convention): Match current gcc implementation
4213 as close as possible.
4214 (v850_push_arguments): Fix stack_offset handling. Don't write
4215 struct_addr into register. This is done by v850_store_struct_return.
4216 (v850_extract_return_value): Care for structs.
4217 (v850_store_return_value): Ditto.
4218 (v850_store_struct_return): Actually write address.
4220 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4222 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4223 without debug information too.
4225 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4227 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4228 Make multi-arch pure.
4229 * gdbarch.h, gdbarch.c: Re-generate.
4230 * arm-tdep.c (arm_print_float_info): Update.
4231 * arch-utils.h (default_print_float_info): Update.
4232 * arch-utils.c (default_print_float_info): Update.
4233 * infcmd.c (float_info): Update call.
4235 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4237 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4238 the front of the initialize list.
4240 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4242 * infrun.c (struct inferior_status): Replace fields
4243 selected_frame_address and selected_level with field
4245 (save_inferior_status): Update. Use get_frame_id.
4246 (struct restore_selected_frame_args): Delete.
4247 (restore_selected_frame): Update. Use frame_find_by_id.
4248 (restore_inferior_status): Update.
4250 * breakpoint.h (struct breakpoint): Change type of
4251 watchpoint_frame to frame_id.
4252 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4253 call to get_current_frame.
4254 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4256 (watchpoint_check): Use frame_find_by_id.
4258 * frame.h (record_selected_frame): Delete declaration.
4259 * stack.c (record_selected_frame): Delete function.
4261 * frame.h (struct frame_id): Define.
4262 (get_frame_id): Declare.
4263 (frame_find_by_id): Declare.
4264 * frame.c (frame_find_by_id): New function.
4265 (get_frame_id): New function.
4267 2002-06-10 Andrey Volkov <avolkov@transas.com>
4269 * ser-e7kpc.c: Fix duplicated define and call of
4270 _initialize_ser_e7000pc
4272 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4274 * signals/signals.c (target_signal_from_host): Fix #ifdef
4276 (do_target_signal_to_host): Likewise.
4278 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4280 * mips-tdep.c (mips_find_abi_section): New function.
4281 (mips_gdbarch_init): Call it.
4283 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4285 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4286 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4287 after Andrew's 2002-06-08 gdbarch change.
4289 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4291 * i386-linux-nat.c (suppy_gregset): Don't supply
4292 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4294 (fill_gregset): Don't fetch it under the same circumstances.
4296 2002-06-09 Andrew Cagney <cagney@redhat.com>
4298 * Makefile.in (callback_h): Define.
4299 (remote_sim_h): Update path to remote-sim.h.
4300 (remote-rdp.o): Add $(callback_h).
4301 (remote-sim.o): Use $(callback_h).
4302 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4303 * remote-rdp.c: Include "gdb/callback.h".
4305 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4307 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4308 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4310 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4312 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4313 * rdi-share/serpardr.c: Ditto.
4314 * rdi-share/unixcomm.c: Ditto.
4315 * rdi-share/serdrv.c: Ditto.
4316 * rdi-share/hostchan.h: Ditto.
4317 * rdi-share/hostchan.c: Ditto.
4318 * rdi-share/host.h: Ditto.
4319 * rdi-share/devsw.c: Ditto.
4321 * objfiles.h: Change type of obj_private to void pointer.
4322 * pa64solib.c: Update copyright. Don't include "assert.h", use
4323 strcmp instead of STREQ, use LONGEST, do not use PTR
4324 * somsolib.c: Ditto.
4326 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4327 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4328 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4330 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4332 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4333 (default_get_saved_register): Delete function.
4334 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4335 generic_unwind_get_saved_register.
4336 * gdbarch.h, gdbarch.c: Re-generate.
4338 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4340 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4341 generic_func_frame_chain_valid.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343 * blockframe.c (generic_func_frame_chain_valid): Only check
4344 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4345 passing FP to PC_IN_CALL_DUMMY.
4348 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4350 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4351 (register_gdbarch_data): Initialize init_p.
4352 (gdbarch_data): Initialize data pointer using the init function.
4353 (init_gdbarch_data): Delete function.
4354 (gdbarch_update_p): Update.
4355 (initialize_non_multiarch): Update.
4356 (struct gdbarch): Add field initialized_p.
4357 * gdbarch.h, gdbarch.c: Re-generate.
4359 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4361 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4362 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4363 better do the things actually here.
4364 * x86-64-tdep.c (x86_64_register_name2nr): New.
4365 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4366 (x86_64_gdbarch_init): Respect the above change.
4367 * x86-64-tdep.h (x86_64_register_name2nr)
4368 (x86_64_register_nr2name): Add prototypes.
4369 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4371 2002-06-06 Michael Snyder <msnyder@redhat.com>
4373 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4374 Delete extra braces and re-indent.
4375 (d10v_store_return_value): Char return values
4376 must be shifted over by one byte in R0.
4377 (d10v_extract_return_value): Delete extra braces, re-indent.
4379 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4381 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4382 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4383 (d10v_integer_to_address): Rewrite.
4384 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4385 the d10v specific functions which take care of converting to the
4388 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4390 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4391 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4393 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4395 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4397 * config/tm-linux.h: Ditto.
4398 * config/alpha/tm-alphalinux.h: Ditto.
4399 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4400 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4401 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4402 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4403 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4404 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4405 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4406 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4407 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4408 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4409 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4410 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4411 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4412 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4413 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4414 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4415 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4416 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4417 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4418 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4419 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4420 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4421 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4422 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4423 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4424 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4425 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4426 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4427 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4428 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4429 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4430 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4431 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4432 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4433 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4434 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4435 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4437 2002-05-04 Aidan Skinner <aidan@velvet.net>
4439 * ada-exp.tab.c: New file
4440 * ada-exp.y: New file
4441 * ada-lang.c: New file
4442 * ada-lang.h: New file
4443 * ada-lex.c: New file
4444 * ada-lex.l: New file
4445 * ada-tasks.c: New file
4446 * ada-typeprint.c: New file
4447 * ada-valprint.c: New file
4449 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4451 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4452 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4454 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4456 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4457 insetead of ppc-linux-tdep.o.
4458 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4459 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4461 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4463 2002-05-07 Christian Groessler <chris@groessler.org>
4464 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4465 bit register contents for little endian hosts.
4467 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4469 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4472 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4474 * gdbarch.h: Regenerate.
4476 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4478 * MAINTAINERS: Add everyone to write-after-approval list.
4480 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4482 * stack.c (frame_info): Use frame_register_unwind instead of
4483 saved_regs. Mention when the SP is on the stack or in a register.
4485 * frame.h (frame_register_unwind_ftype): Define. Document.
4486 (struct frame_info): Add field register_unwind and
4487 register_unwind_cache.
4488 (frame_register_unwind): Declare.
4489 (generic_unwind_get_saved_register): Declare.
4491 * frame.c (frame_register_unwind): New function.
4492 (generic_unwind_get_saved_register): New function.
4494 * blockframe.c (generic_call_dummy_register_unwind): New function.
4495 (frame_saved_regs_register_unwind): New function.
4496 (set_unwind_by_pc): New function.
4497 (create_new_frame): New function.
4498 (get_prev_frame): New function.
4500 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4502 * a29k-share/: Delete directory.
4503 * remote-vx29k.c: Delete file.
4505 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4507 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4508 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4510 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4512 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4513 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4516 (sparcnbsd-tdep.o): New dependency lists.
4517 * NEWS: Note new UltraSPARC NetBSD native configuration.
4518 * configure.host (sparc64-*-netbsd*): New host.
4519 * configure.tgt (sparc-*-netbsdelf*)
4520 (sparc-*-netbsd*): Set gdb_target to nbsd.
4521 (sparc64-*-netbsd*): New target.
4522 * sparc64nbsd-nat.c: New file.
4523 * sparcnbsd-nat.c: New file.
4524 * sparcnbsd-tdep.c: New file.
4525 * sparcnbsd-tdep.h: New file.
4526 * config/sparc/nbsd.mt: New file.
4527 * config/sparc/nbsd64.mh: New file.
4528 * config/sparc/nbsd64.mt: New file.
4529 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4530 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4532 * config/sparc/nbsdaout.mt: Remove.
4533 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4534 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4536 * config/sparc/nbsdelf.mt: Remove.
4537 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4538 sparc-nat.c compatiblity defines.
4539 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4540 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4541 * config/sparc/tm-nbsd64.h: New file.
4542 * config/sparc/tm-nbsdaout.h: Remove.
4543 * config/sparc/xm-nbsd.h: Remove.
4545 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4547 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4548 * sparc-tdep.c: Include osabi.h.
4549 (gdbarch_tdep): Add osabi member.
4550 (_initialize_sparc_tdep): Use gdbarch_register.
4551 (sparc_gdbarch_init): Use generic OS ABI framework.
4552 (sparc_dump_tdep): New function.
4554 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4556 * corefile.c (do_captured_read_memory_integer): Return non-zero
4558 (safe_read_memory_integer): Copy result of memory read when
4559 status is non-zero. Also, add comments.
4561 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4563 * Makefile.in (ppc_tdep_h): Define.
4566 (rs6000-tdep.o): Use $(ppc_tdep_h).
4569 (ppcnbsd-tdep.o): New dependency lists.
4570 * ppc-tdep.h: Use generic OS ABI framework.
4571 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4572 (ppc_linux_init_abi): New functions.
4573 (ppc_sysv_abi_broken_use_struct_convention)
4574 (ppc_sysv_abi_use_struct_convention)
4575 (ppc_sysv_abi_push_arguments): Move to...
4576 * ppc-sysv-tdep.c: ...here.
4577 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4578 * rs6000-tdep.c (process_note_abi_tag_sections)
4579 (get_elfosabi): Remove.
4580 (rs6000_gdbarch_init): Use generic OS ABI framework.
4581 (rs6000_dump_tdep): New function.
4582 (_initialize_rs6000_tdep): Use gdbarch_register.
4583 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4584 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4585 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4586 of ppc-linux-tdep.o.
4587 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4588 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4589 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4590 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4591 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4592 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4594 2002-05-29 Jim Blandy <jimb@redhat.com>
4596 * macroscope.c (default_macro_scope): Put `void' in empty argument
4599 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4601 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4602 * arch-utils.c: Include "sim-regno.h".
4603 * gdbarch.sh: Don't include "sim-regno.h".
4604 * gdbarch.h, gdbarch.c: Regenerate.
4605 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4607 * arch-utils.h (legacy_register_sim_regno): To here.
4608 * remote-sim.c (legacy_register_sim_regno): Move function from
4610 * arch-utils.c (legacy_register_sim_regno): To here.
4612 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4614 * sim-regno.h: New file.
4615 * Makefile.in (sim_regno_h): Define.
4616 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4617 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4618 (legacy_register_sim_regno): New function.
4619 (one2one_register_sim_regno): New function.
4620 (gdbsim_fetch_register): Rewrite.
4621 (gdbsim_store_register): Only store a register when
4622 REGISTER_SIM_REGNO is valid.
4623 * d10v-tdep.c: Include "sim-regno.h".
4624 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4625 (d10v_ts3_register_sim_regno): Ditto.
4626 * gdbarch.sh: Include "sim-regno.h".
4627 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4628 * gdbarch.h, gdbarch.c: Regenerate.
4629 * arch-utils.h (default_register_sim_regno): Delete declaration.
4630 * arch-utils.c (default_register_sim_regno): Delete function.
4632 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4634 * ppcnbsd-nat.c: Rewrite.
4635 * ppcnbsd-tdep.c: New file.
4636 * ppcnbsd-tdep.h: New file.
4637 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4638 solib.o, and solib-svr4.o.
4639 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4640 nbsd-tdep.o, and corelow.o.
4642 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4644 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4645 `tr' and `sed'. Mention that `broken' targets are not expected to
4648 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4650 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4651 Let PC point right after the prologue before looking up symbols.
4653 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4655 * i386-tdep.c (i386_register_virtual_type): Return
4656 builtin_type_vec128i for SSE registers.
4658 * gdbtypes.h (builtin_type_vec128i): Declare.
4660 * gdbtypes.c (build_builtin_type_vec128i): New function.
4661 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4662 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4663 (build_gdbtypes): Initialize new builtin vector types.
4664 (_initialize_gdbtypes): Register new vector types with gdbarch.
4666 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4668 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4669 since it has been multi-arch'd.
4670 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4671 Move Alpha and VAX multi-arch news entries to same section
4672 as other multi-arch news.
4674 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4676 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4677 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4678 static. Rename some register numbers to put them in ns32k-tdep
4680 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4681 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4683 (_initialize_ns32k_tdep): Use gdbarch_register.
4684 * ns32k-tdep.h: New file.
4685 * ns32knbsd-tdep.c: New file.
4686 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4687 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4688 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4689 REGISTER_BYTES, REGISTER_BYTE): Remove.
4690 * config/ns32k/tm-ns32k.h: New file.
4691 * config/ns32k/tm-umax.h: Remove.
4693 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4695 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4696 ns32k_store_struct_return, ns32k_extract_return_value,
4697 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4699 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4700 ns32k_saved_pc_after_call.
4701 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4702 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4703 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4704 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4705 ns32k_extract_struct_value_address.
4707 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4709 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4710 ns32k_fix_call_dummy): New.
4711 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4712 ns32k_call_dummy_words.
4713 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4714 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4715 CALL_DUMMY_NARGS): Remove.
4716 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4718 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4720 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4721 ns32k_frame_saved_pc, ns32k_frame_args_address,
4722 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4723 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4724 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4725 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4726 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4727 (BREAKPOINT): Remove..
4728 (FRAME_CHAIN): Define as ns32k_frame_chain.
4729 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4730 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4731 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4732 (FRAME_FIND_SAVED_REGS): Remove.
4733 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4734 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4735 (POP_FRAME): Define as ns32k_pop_frame.
4737 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4739 * ns32k-tdep.c (ns32k_register_byte_32082,
4740 ns32k_register_byte_32382, ns32k_register_raw_size,
4741 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4743 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4744 ns32k_register_byte_32382.
4745 * config/ns32k/tm-umax.h: Update copyright years.
4746 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4747 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4748 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4749 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4750 (ns32k_get_enter_addr): Fix prototype.
4752 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4754 * ns32k-tdep.c: Update copyright years.
4755 (ns32k_register_name_32082): New function.
4756 (ns32k_register_name_32382): Ditto.
4757 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4758 (REGISTER_NAME): Define as ns32k_register_name_32382.
4759 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4760 (REGISTER_NAME): Define as ns32k_register_name_32082.
4762 2002-05-24 Jim Blandy <jimb@redhat.com>
4764 * dwarf2read.c (free_line_header): Use xfree, not free.
4766 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4768 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4769 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4771 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4773 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4775 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4777 From Ross Alexander at NEC Europe:
4778 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4780 2002-05-23 Michael Snyder <msnyder@redhat.com>
4782 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4783 for input, rather than parse_and_eval_address.
4785 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4787 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4788 * Makefile.in (sim_d10v_h): Update definition.
4790 2002-05-24 Andrew Cagney <cagney@redhat.com>
4792 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4793 change `2002-05-22 Michael Snyder' below.
4794 (d10v_push_arguments): Ditto.
4795 (d10v_extract_return_value): Ditto.
4797 2002-05-23 Jim Blandy <jimb@redhat.com>
4799 * macrotab.c (check_for_redefinition): Don't complain if the new
4800 definition is the same as the previous one. Take more arguments
4801 to allow the comparison.
4802 (macro_define_object, macro_define_function): Pass more arguments
4803 to check_for_redefinition.
4805 2002-05-22 Michael Snyder <msnyder@redhat.com>
4807 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4808 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4809 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4810 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4811 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4812 Add a temp variable to save a call (and a memory read).
4813 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4814 if possible (so that PC_IN_CALL_DUMMY will work).
4816 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4818 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4820 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4822 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4824 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4825 (dwarf2_build_frame_info): Add offset to fde->initial_location
4826 so that frames of shared libraries are mapped correctly.
4827 (execute_stack_op): Change type of 'result' from ULONGEST to
4830 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4832 * config/alpha/tm-nbsd.h: Include solib.h.
4834 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4836 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4837 assumptions about the host's byte order.
4839 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4841 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4843 * alphanbsd-tdep.c: Include solib-svr4.h.
4844 * shnbsd-tdep.c: Ditto.
4846 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4848 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4849 nbsd-tdep.h to dependency list.
4850 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4851 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4852 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4853 nbsdaout.mh and nbsdelf.mh consistently.
4854 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4855 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4856 nbsdaout.mt and nbsdelf.mh consistently.
4857 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4858 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4859 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4860 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4861 a.out shared library stuff from here...
4862 * config/nm-nbsdaout.h: ...to here.
4863 * config/tm-nbsd.h: Remove.
4864 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4865 * config/arm/nbsd.mh: Remove.
4866 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4868 * config/arm/nbsdaout.mh: New file.
4869 * config/arm/nbsdelf.mh: New file.
4870 * config/arm/nm-nbsdaout.h: New file.
4871 * config/i386/nbsd.mh: Remove.
4872 * config/i386/nbsd.mt: Remove.
4873 * config/i386/nbsdaout.mh: New file.
4874 * config/i386/nbsdaout.mt: New file.
4875 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4876 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4877 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4878 i386_register_u_addr): Remove.
4879 * config/i386/nm-nbsdaout.h: New file.
4880 * config/i386/nm-nbsdelf.h: Remove.
4881 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4882 (USE_STRUCT_CONVENTION): Remove.
4883 * config/i386/tm-nbsdaout.h: New file.
4884 * config/i386/tm-nbsdelf.h: Remove.
4885 * config/m68k/nbsd.mh: Remove.
4886 * config/m68k/nbsd.mt: Remove.
4887 * config/m68k/nbsdaout.mh: New file.
4888 * config/m68k/nbsdaout.mt: New file.
4889 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4890 * config/m68k/nm-nbsdaout.h: New file.
4891 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4892 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4893 * config/ns32k/nbsd.mh: Remove.
4894 * config/ns32k/nbsd.mt: Remove.
4895 * config/ns32k/nbsdaout.mh: New file.
4896 * config/ns32k/nbsdaout.mt: New file.
4897 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4898 * config/ns32k/nm-nbsdaout.h: New file.
4899 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4900 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4901 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4902 (SVR4_SHARED_LIBS): Remove.
4903 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4904 * config/sparc/nbsd.mh: Remove.
4905 * config/sparc/nbsd.mt: Remove.
4906 * config/sparc/nbsdaout.mh: New file.
4907 * config/sparc/nbsdaout.mt: New file.
4908 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4909 * config/sparc/nbsdelf.mt: New file.
4910 * config/sparc/nm-nbsdaout.h: New file.
4911 * config/sparc/nm-nbsdelf.h: Remove.
4912 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4913 * config/sparc/tm-nbsdaout.h: New file.
4915 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4917 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4919 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4921 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4923 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4925 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4927 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4929 * NEWS: Note new MIPS NetBSD native configuration.
4930 * configure.host (mips*-*-netbsd*): New host.
4931 * configure.tgt (mips*-*-netbsd*): New target.
4932 * mipsnbsd-nat.c: New file.
4933 * mipsnbsd-tdep.c: New file.
4934 * mipsnbsd-tdep.h: New file.
4935 * config/mips/nbsd.mh: New file.
4936 * config/mips/nbsd.mt: New file.
4937 * config/mips/nm-nbsd.h: New file.
4938 * config/mips/tm-nbsd.h: New file.
4940 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4942 * Makefile.in (SFILES): Add osabi.c.
4943 (COMMON_OBS): Add osabi.o.
4944 (osabi.o): New dependency list.
4945 * osabi.c: New file.
4946 * osabi.h: New file.
4947 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4949 * Makefile.in (alpha_tdep_h): Define and use instead of
4951 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4952 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4954 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4955 * alpha-tdep.h: Include osabi.h.
4956 (alpha_abi): Remove.
4957 (gdbarch_tdep): Use generic OS ABI framework.
4958 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4959 gdbarch_register_osabi.
4960 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4961 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4962 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4964 * Makefile.in (sh_tdep_h): Add osabi.h.
4965 * sh-tdep.h (sh_osabi): Remove.
4966 (gdbarch_tdep): Use generic OS ABI framework.
4967 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4968 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4969 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4970 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4972 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4973 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4974 gdbarch_register_osabi.
4975 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4976 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4977 (get_elfosabi): Rename to...
4978 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4979 ABI framework support routines.
4980 (arm_gdbarch_init): Use generic OS ABI framework.
4981 (arm_dump_tdep): Likewise.
4982 (_initialize_arm_tdep): Likewise.
4983 * arm-tdep.h: Include osabi.h.
4985 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
4987 (arm_gdbarch_register_os_abi): Remove prototype.
4988 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
4989 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
4991 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
4992 * mips-tdep.c: Include osabi.h.
4993 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
4996 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
4998 * h8300-tdep.c: Fix formatting.
5000 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5002 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5003 printing vector registers.
5005 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5007 From Fernando Nasser:
5008 * remote.c (remote_async_open_1): Re-throw the exception when the
5010 (remote_cisco_open): Ditto.
5011 (remote_open_1): Ditto.
5013 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5015 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5016 (remote_start_remote): Add uiout parameter. Pass through to
5017 remote_start_remote_dummy.
5018 (remote_open_1): Use catch_exception instead of catch_errors.
5019 (remote_async_open_1): Ditto.
5020 (remote_cisco_open): Ditto.
5022 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5024 * remote.c (remote_start_remote): Replace PTR with void pointer.
5025 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5028 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5030 * gdb_indent.sh: Allow the script to be run in the sim directory.
5032 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5034 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5035 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5037 * corelow.c (core_open): Only call set_gdbarch_from_file if
5040 2002-05-17 Andrey Volkov <avolkov@transas.com>
5042 * h8300-tdep.c: Add support of EXR register
5043 * config/h8300/tm-h8300.h: Ditto.
5045 2002-05-17 Andrey Volkov <avolkov@transas.com>
5047 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5049 2002-05-17 Andrey Volkov <avolkov@transas.com>
5051 * h8300-tdep.c: Change literal regnums to REGNO.
5053 2002-05-17 Jim Blandy <jimb@redhat.com>
5055 * NEWS: Note addition of macro support.
5057 Expand preprocessor macros in C expressions.
5058 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5059 (scan_macro_expansion, scanning_macro_expansion,
5060 finished_macro_expansion): New function declarations.
5061 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5062 variable declarations.
5063 * parser-defs.h (expression_context_pc): New declaration.
5064 * parse.c (expression_context_pc): New variable.
5065 (parse_exp_1): Set expression_context_pc, as well as
5066 expression_context_block.
5067 * c-exp.y (yylex): If we're not already reading the result of a
5068 macro expansion, try to macro-expand the next token. When we're
5069 done scanning a macro expansion, switch back to the mainline text.
5070 Commas and `if's in a macro's expansion don't terminate the input.
5071 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5072 (macro_original_text, macro_expanded_text,
5073 expression_macro_lookup_func, expression_macro_lookup_baton): New
5075 (scan_macro_expansion, scanning_macro_expansion,
5076 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5077 c_preprocess_and_parse): New functions.
5078 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5079 c_preprocess_and_parse, instead of c_parse.
5080 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5081 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5083 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5085 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5086 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5087 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5089 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5091 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5093 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5095 * Makefile.in (sh_tdep_h): Define and use.
5096 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5097 register enum): Move to...
5098 * * sh-tdep.h: ...here.
5099 * sh-tdep.c: Include sh-tdep.h.
5100 * sh3-rom.c: Likewise.
5101 * shnbsd-tdep.c: Likewise.
5103 2002-05-16 Michael Snyder <msnyder@redhat.com>
5105 * arm-tdep.c: Spelling fix in comment.
5107 2002-05-16 Jim Blandy <jimb@redhat.com>
5109 Add commands for manually expanding macros and showing their
5111 * macrocmd.c, macroscope.c, macroscope.h: New files.
5112 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5113 (macroscope_h): New variable.
5114 (HFILES_NO_SRCDIR): Add macroscope.h.
5115 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5116 (macroscope.o, macrocmd.o): New rules.
5118 Teach the Dwarf 2 reader to read macro information.
5119 * dwarf2read.c: #include "macrotab.h".
5120 (dwarf_macinfo_buffer): New variable.
5121 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5123 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5124 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5125 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5126 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5127 dwarf2_macro_spaces_in_definition): New complaints.
5128 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5129 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5130 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5131 the partial symbol table.
5132 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5133 from what's recorded in the partial symbol table.
5134 (read_file_scope): If the compilation unit has a
5135 `DW_AT_macro_info' attribute, read its macro information.
5136 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5138 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5141 * ser-tcp.c: Don't include <netinet/udp.h>.
5143 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5145 * MAINTAINERS: Update my email address.
5147 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5149 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5150 include file of the same name.
5152 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5154 * configure.tgt: Mark v850 as multi-arched.
5155 * config/v850/tm-v850.h: Remove file.
5156 * config/v850/v850.mt: Eliminate TM_FILE.
5158 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5160 * v850-tdep.c: Full multi-arch.
5161 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5162 Define GDB_MULTI_ARCH to 2.
5164 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5166 * p-exp.y (current_type): New static variable.
5167 Carries the type of the expression at the position that is parsed.
5168 (push_current_type, pop_current_type): Two new functions. Used
5169 to store/restore current_type in expression on specific tokens.
5170 (search_field): New static variable. Set to one after parsing a point
5171 as at that point only a FIELDNAME token should be searched.
5172 (FIELDNAME): New token. After a point only a token belonging to
5173 current_type type definition is allowed.
5174 (all over token rules): reset and change current_type according
5176 (exp '[' rule): insert implicit array index field if
5177 exp is a pascal string type.
5179 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5181 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5182 frame info. Use frame_info's saved_regs instead of matching member
5183 in extra_frame_info throughout.
5184 (v850_frame_init_saved_regs): New function.
5185 (v850_init_extra_frame_info): Move most functionality into
5186 v850_frame_init_saved_regs().
5187 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5188 (v850_frame_find_saved_regs): Remove declaration.
5189 (FRAME_FIND_SAVED_REGS): Remove definition.
5190 (v850_frame_init_saved_regs): Add declaration.
5191 (FRAME_INIT_SAVED_REGS): Add definition.
5193 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5195 * v850-tdep.c: Begin multi-arch'ing v850.
5196 (v850_target_architecture_hook): Remove function.
5197 (v850_gdbarch_init): New function. Add code previously in
5198 v850_target_architecture_hook().
5199 (_initialize_v850_tdep): Don't set target_architecture_hook.
5200 Call register_gdbarch_init() instead.
5202 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5204 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5205 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5206 (fixup_class_method_type): Likewise.
5208 2002-05-15 Jim Blandy <jimb@redhat.com>
5210 Add macro structures to GDB's symbol tables. Nobody puts anything
5212 * symtab.h (struct symtab): New member: `macro_table'.
5213 * buildsym.h (pending_macros): New global variable.
5214 * buildsym.c: #include "macrotab.h".
5215 (buildsym_init): Initialize `pending_macros'.
5216 (end_symtab): If we found macro information while reading a CU's
5217 debugging info, do build a symtab structure for it. Make the
5218 symtab point to the macro information, and clear the
5219 `pending_macros' pointer which held it while we were reading the
5221 (really_free_pendings): Free any pending macro table.
5222 * objfiles.h (struct objfile): New member: `macro_cache'.
5223 * objfiles.c (allocate_objfile): Set allocate and free functions
5224 for the macro cache's objstack.
5225 (free_objfile): Empty the macro cache's obstack.
5226 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5227 set new allocate and free functions for it.
5228 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5229 free functions for the macro cache's objstack. (Why is this
5230 function building its own objfile?)
5231 * symmisc.c (print_objfile_statistics): Print statistics on the
5233 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5235 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5237 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5238 (REGISTER_U_ADDR): Delete definition.
5239 (arm_register_u_addr): Delete declaration.
5241 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5243 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5244 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5246 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5248 * regcache.c (register_valid): Revise comments refering to "Not
5249 available" and "unavailable".
5250 * frame.c (frame_register_read): Ditto.
5251 * findvar.c (value_of_register): Ditto.
5253 2002-05-15 Andrew Cagney <cagney@redhat.com>
5255 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5256 (remote-sim.o): Update dependencies.
5257 (d10v-tdep.o): Specify dependencies.
5258 (sim_d10v_h): Define.
5260 2002-05-14 Jim Blandy <jimb@redhat.com>
5262 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5263 * macrotab.c (macro_lookup_inclusion, find_definition,
5264 new_macro_table): Same.
5266 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5267 not `! strcmp ()'. This is a dubious improvement.
5268 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5270 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5271 although it's not necessary, to avoid a warning.
5273 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5275 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5276 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5277 TYPE_INSTANCE_FLAGS.
5278 (struct main_type): New.
5279 (struct type): Move most members to struct main_type. Change
5280 cv_type and as_type to new type_chain member. Add instance_flags.
5281 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5282 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5283 (finish_cv_type): Remove prototype.
5284 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5286 (alloc_type_instance): New function.
5287 (smash_type): New function.
5288 (make_pointer_type, make_reference_type, make_function_type)
5289 (smash_to_member_type, smash_to_method_type): Call smash_type.
5290 (make_qualified_type): New function.
5291 (make_type_with_address_space): Call make_qualified_type.
5292 (make_cv_type): Likewise.
5293 (finish_cv_type): Remove unnecessary function.
5294 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5295 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5296 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5297 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5298 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5299 * hpread.c (hpread_read_struct_type): Likewise.
5300 * stabsread.c (read_struct_type): Likewise.
5302 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5304 * configure.tgt: Add a catch all sh* target, for cases like
5305 sh[2,3,4]-elf and sh-hms.
5307 2002-05-14 Keith Seitz <keiths@redhat.com>
5309 * event-loop.c (create_file_handler): Don't do anything but
5310 update data when we are given a fd which we are already
5313 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5315 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5316 (update_context): Use __func__ in warnings.
5318 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5320 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5321 and tcp_close to net_open and net_close.
5322 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5323 using UDP if requested. Don't try to disable Nagle on UDP
5325 * remote.c (remote_serial_open): New function. Warn about UDP.
5326 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5328 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5330 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5332 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5334 * configure.tgt: Remove sh-hms target.
5335 * MAINTAINERS: Don't list sh-hms as a separate target.
5337 2002-05-13 Jim Blandy <jimb@redhat.com>
5339 Add first preprocessor macro-expansion files.
5340 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5341 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5342 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5343 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5344 (COMMON_OBS): Add macrotab.o, macroexp.o.
5345 (macroexp.o, macrotab.o): New rules.
5347 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5349 * config/m88k/tm-m88k.h: Update copyright.
5350 (m88k_target_write_pc): Declare
5351 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5352 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5353 (SHIFT_INST_REGS): Update definition.
5354 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5355 using old definition of TARGET_WRITE_PC.
5356 * regcache.c (generic_target_write_pc): Delete code handling
5358 * gdbarch.sh (NNPC_REGNUM): Delete.
5359 * gdbarch.h, gdbarch.c: Regenerate.
5361 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5363 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5366 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5368 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5369 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5370 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5372 * c-typeprint.c (cp_type_print_method_args): Likewise.
5373 (c_type_print_args): Likewise.
5374 * d10v-tdep.c (d10v_push_arguments): Likewise.
5375 (d10v_extract_return_value): Likewise.
5376 * expprint.c (print_subexp): Likewise.
5377 * gdbtypes.c (lookup_primitive_typename): Likewise.
5378 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5379 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5380 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5381 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5382 (TYPE_VECTOR): Likewise.
5383 * hpread.c (hpread_read_struct_type)
5384 (fix_static_member_physnames, fixup_class_method_type)
5385 (hpread_type_lookup): Likewise.
5386 * mdebugread.c (parse_symbol, parse_type): Likewise.
5387 * p-lang.c (is_pascal_string_type): Likewise.
5388 * valops.c (hand_function_call): Likewise.
5389 * x86-64-tdep.c (classify_argument): Likewise.
5391 * hpread.c (hpread_read_function_type)
5392 (hpread_read_doc_function_type): Call replace_type.
5393 * dstread.c (create_new_type): Delete.
5394 (decode_dst_structure, process_dst_function): Call alloc_type.
5395 Use type access macros.
5397 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5399 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5400 the're not supported by the current architecture.
5401 (i387_fill_fxsave): Likewise.
5403 2002-05-12 Fred Fish <fnf@redhat.com>
5405 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5406 sect_index_xxx members to index the first slot in section_offsets
5407 if all of the section_offsets are zero.
5409 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5411 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5412 checked in with last change.
5414 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5416 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5417 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5420 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5422 * Makefile.in: Update dependencies.
5424 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5426 * language.c (local_hex_string_custom): Simplify. Do not depend
5427 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5429 * memattr.c (mem_info_command): Replace calls to
5430 longest_local_hex_string and longest_local_hex_string_custom.
5431 * buildsym.c (make_blockvector): Ditto.
5432 * solib.c (info_sharedlibrary_command): Ditto.
5433 * tracepoint.c (tracepoints_info): Ditto.
5434 * symtab.c (print_msymbol_info): Ditto.
5436 * language.c (local_hex_string): Delete.
5437 (local_hex_string_custom): Delete.
5438 (longest_local_hex_string): Rename to local_hex_string.
5439 (longest_local_hex_string_custom): Rename to
5440 local_hex_string_custom.
5441 * language.h (local_hex_string): Change parameter type to LONGEST.
5442 (local_hex_string_custom): Ditto.
5443 (longest_local_hex_string): Delete declaration.
5444 (longest_local_hex_string_custom): Ditto.
5446 * solib.c: Update copyright.
5447 * memattr.c: Update copyright.
5449 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5451 * arch-utils.h (legacy_register_to_value): Declare.
5452 (legacy_value_to_register): Declare.
5453 (legacy_convert_register_p): Declare.
5454 * arch-utils.c (legacy_register_to_value): New function.
5455 (legacy_value_to_register): New function.
5456 (legacy_convert_register_p): New function.
5458 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5459 (VALUE_TO_REGISTER): Define.
5460 (CONVERT_REGISTER_P): Define.
5461 * gdbarch.h, gdbarch.c: Regenerate.
5463 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5465 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5468 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5469 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5471 * Makefile.in: Update dependencies for valops.c.
5472 * valops.c: Include "gdb_assert.h".
5473 (typecmp): Skip THIS parameter to methods.
5474 (find_method_list): Remove static_memfuncp argument,
5475 update callers. Check for stub methods.
5476 (find_value_oload_method_list): Don't set *static_memfuncp.
5477 (find_overload_match): Don't check for stub methods. Assert
5478 that methods are not stubbed. Handle static methods.
5479 (value_find_oload_method_list): Remove static_memfuncp argument.
5480 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5481 to the argument list for static stub methods.
5482 * value.h (value_find_oload_method_list): Update prototype.
5484 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5486 * arch-utils.h (generic_register_size): Declare.
5487 (generic_register_raw_size, generic_register_virtual_size): Delete
5489 * arch-utils.c (generic_register_raw_size): Delete.
5490 (generic_register_size): New function.
5491 (generic_register_virtual_size): Delete.
5493 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5494 default generic_register_size.
5495 * gdbarch.h, gdbarch.c: Re-generate.
5497 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5498 register_virtual_size.
5499 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5500 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5502 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5504 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5505 * gdbarch.h, gdbarch.c: Regenerate.
5506 * gnu-v3-abi.c: Update copyright.
5507 (vtable_address_point_offset): Update.
5508 (gnuv3_rtti_type): Update.
5509 (gnuv3_baseclass_offset): Update.
5510 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5511 (init_fetch_link_map_offsets): Update.
5512 * remote.c (get_remote_state): Update.
5514 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5516 * TODO: Remove value_headof/value_from_vtable_info comment.
5517 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5518 * values.c (value_headof, value_from_vtable_info): Delete.
5519 * value.h (value_from_vtable_info): Delete prototype.
5521 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5523 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5524 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5526 (gdb_assert_h): Define.
5527 (gdb_wait_h): Define.
5528 (gdb_regex_h): Define.
5530 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5532 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5533 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5535 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5537 * nbsd-tdep.c: Fix comment.
5539 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5541 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5542 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5543 (nbsd-tdep.o): New dependency list.
5544 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5546 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5547 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5548 * nbsd-tdep.c: New file.
5549 * nbsd-tdep.h: New file.
5550 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5552 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5553 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5554 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5555 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5557 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5559 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5560 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5561 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5562 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5563 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5564 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5566 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5568 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5569 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5570 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5571 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5572 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5573 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5574 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5576 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5578 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5579 fetch_elfcore_registers to...
5580 * i386nbsd-tdep.c: ...here.
5581 (i386nbsd_use_struct_convention): Rename to...
5582 (i386nbsd_aout_use_struct_convention): ...this.
5583 (i386nbsd_supply_reg): New function.
5584 (i386nbsd_fill_reg): New function.
5585 (fetch_core_registers): Use i386nbsd_supply_reg.
5586 (fetch_elfcore_registers): Likewise.
5587 (_initialize_i386nbsd_tdep): New function.
5588 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5589 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5590 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5591 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5592 (i386nbsd_aout_use_struct_convention): ...this.
5594 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5596 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5597 (store_inferior_registers): Use shnbsd_fill_reg.
5598 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5599 sh_nbsd_supply_register): Collapse into...
5600 (shnbsd_supply_reg): ...this.
5601 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5602 (shnbsd_fill_reg): ...this.
5603 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5604 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5605 (fetch_core_registers): Use shnbsd_supply_reg.
5606 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5607 (sh_nbsd_core_fns): Rename to...
5608 (shnbsd_core_fns): ...this.
5609 (sh_nbsd_elfcore_fns): Rename to...
5610 (shnbsd_elfcore_fns): ...this.
5611 (sh_nbsd_init_abi): Rename to...
5612 (shnbsd_init_abi): ...this.
5613 (_initialize_sh_nbsd_tdep): Rename to...
5614 (_initialize_shnbsd_tdep): ...this.
5615 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5616 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5617 sh_nbsd_fill_register): Remove prototypes.
5618 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5620 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5622 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5623 (i387-nat.o): Delete dependency list.
5624 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5625 (x86-64-linux-nat.o): Likewise.
5626 * i387-nat.c: Delete file, moving contents to...
5627 * i387-tdep.c: ...here.
5628 * i387-nat.h: Rename...
5629 * i387-tdep.h: ...to this.
5630 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5631 * i386-linux-nat.c: Likewise.
5632 * i386bsd-nat.c: Likewise.
5633 * i386gnu-nat.c: Likewise.
5634 * i386nbsd-nat.c: Likewise.
5635 * i386v4-nat.c: Likewise.
5636 * x86-64-linux-nat.c: Likewise.
5637 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5638 * config/i386/go32.mh (NATDEPFILES): Likewise.
5639 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5640 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5641 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5642 * config/i386/linux.mh (NATDEPFILES): Likewise.
5643 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5644 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5645 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5646 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5648 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5650 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5651 (alphanbsd-nat.o): Remove dependency list.
5652 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5653 * alphanbsd-nat.c: Delete. Contents moved to...
5654 * alphanbsd-tdep.c: ...here.
5655 (_initialize_alphanbsd_tdep): Register core functions.
5656 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5658 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5660 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5661 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5662 (alphanbsd-nat.o): Likewise.
5663 (alphabsd-tdep.o): New dependency list.
5664 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5665 (fill_gregset): Use alphabsd_fill_reg.
5666 (supply_fpregset): Use alphabsd_supply_fpreg.
5667 (fill_fpregset): Use alphabsd_fill_fpreg.
5668 (fetch_inferior_registers): Use struct reg and struct fpreg
5669 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5670 and alphabsd_supply_fpreg.
5671 (store_inferior_registers): Use struct reg and struct fpreg
5672 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5673 and alphabsd_fill_fpreg.
5674 * alphabsd-tdep.c: New file.
5675 * alphabsd-tdep.h: New file.
5676 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5677 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5678 alphabsd_supply_fpreg.
5679 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5680 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5682 2002-05-11 Eric Christopher <echristo@redhat.com>
5684 * mips-tdep.c (mips_double_register_type): Fix thinko.
5685 (mips_single_register_type): Ditto.
5686 * MAINTAINERS: Add self.
5688 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5690 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5691 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5692 right thing on architectures with different endianness and/or
5695 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5697 From Christian Limpach <chris@Pin.LU>
5698 * configure.in: Change sed expression which comments out
5699 NATDEPFILES to also comment out continuation lines.
5700 * configure: Regenerate.
5702 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5704 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5707 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5709 * sh-tdep.c: Include correct file.
5711 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5713 New support for sh64-elf (sh5) target.
5715 * configure.tgt: For sh64-elf target, default to sh-elf.
5717 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5718 (struct gdbarch_tdep): Add new fields for new registers and ABI
5721 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5722 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5723 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5724 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5725 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5726 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5727 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5728 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5729 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5730 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5731 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5732 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5733 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5734 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5735 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5736 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5737 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5738 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5739 sign_extend, sh64_nofp_frame_init_saved_regs,
5740 sh64_init_extra_frame_info, sh64_get_saved_register,
5741 sh64_extract_struct_value_address, sh64_pop_frame,
5742 sh64_push_arguments, sh64_extract_return_value,
5743 sh64_store_return_value, sh64_show_media_regs,
5744 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5745 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5746 sh_sh64_register_virtual_type,
5747 sh_sh64_register_convert_to_virtual,
5748 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5749 sh64_register_read, sh64_pseudo_register_write,
5750 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5751 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5752 sh64_do_pseudo_register, sh_compact_do_registers_info,
5753 sh64_do_registers_info, sh_gdbarch_init): New functions.
5755 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5757 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5759 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5761 * linespec.c (decode_line_1): Check for a double quote after
5762 a filename correctly.
5764 2002-05-10 Jim Blandy <jimb@redhat.com>
5766 Properly track the size of the current objfile's .debug_line section.
5767 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5768 (DWARF_LINE_SIZE): New macro.
5769 (dwarf2_build_psymtabs_hard): Record the line section's size in
5770 the partial symbol table.
5771 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5774 2002-05-10 Petr Sorfa <petrs@caldera.com>
5776 * ia64-tdep.c: Handle breakpoints on L instruction type
5777 in MLX instruction bundle by moving the breakpoint to
5778 the third slot (X instruction type) as L holds only data.
5780 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5782 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5783 (process_one_symbol): Complain about discarding local symbols
5784 due to a misplaced N_LBRAC entry.
5786 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5788 From Daniel Berlin <dan@cgsoftware.com>
5789 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5790 decrease the depth we are at, in the case of templates.
5792 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5794 * mips-tdep.c (mips_float_register_type): New function.
5795 (mips_double_register_type): New function.
5796 (mips_print_register): Use them.
5797 (do_fp_register_row): Likewise.
5799 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5801 * signals/signals.c (signals): Remove conditional compilation around
5802 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5803 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5805 2002-05-09 Michael Snyder <msnyder@redhat.com>
5807 * remote-rdp.c (remote_rdp_can_run): Remove.
5809 2002-05-09 Tom Tromey <tromey@redhat.com>
5811 * jv-valprint.c (java_val_print): Handle `char' as a special case
5814 2002-05-09 Michael Snyder <msnyder@redhat.com>
5816 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5817 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5818 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5819 str r(0123),[sp,#nn].
5820 (arm_skip_prologue): Ditto. Also make disassembly
5821 order-independent by placing it in a loop.
5823 2002-05-06 Michael Snyder <msnyder@redhat.com>
5825 * stabsread.c (read_type): Add recognition for new attribute:
5826 "@V;" means that an array type is actually a vector.
5827 This is analogous to the vector flag that's been added to dwarf2.
5829 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5831 * i386-tdep.h (i386_abi): New enum.
5832 (struct gdbarch_tdep): Replace os_ident member with abi.
5833 (i386_gdbarch_register_os_abi): New prototype.
5834 * i386-tdep.c (i386_abi_names): New array.
5835 (process_note_abi_tag_sections): Removed.
5836 (process_note_sections): New function.
5837 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5838 (struct i386_abi_handler): New struct.
5839 (i386_abi_handler_list): New variable.
5840 (i386_gdbarch_register_os_abi): New function.
5841 (i386_gdbarch_init): Adapt for the changes given above.
5843 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5845 * gregset.h: Say "GNU/Linux".
5847 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5849 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5850 (build_gdbtypes): Build builtin_type_v2_float.
5851 (_initialize_gdbtypes): Register new builtin type.
5853 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5855 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5856 (clear_gdbarch_swap): New function.
5857 (initialize_non_multiarch): Call.
5858 (gdbarch_update_p): Before calling init(), swap out and clear the
5859 existing architecture.
5860 * gdbarch.c: Regenerate.
5862 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5864 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5867 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5869 * sh-nbsd-nat.c: Rename to...
5870 * shnbsd-nat.c: ...this.
5871 * sh-nbsd-tdep.c: Rename to...
5872 * shnbsd-tdep.c: ...this.
5873 * sh-nbsd-tdep.h: Rename to...
5874 * shnbsd-tdep.h: ...this.
5875 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5876 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5878 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5880 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5881 concatenation for command help messages.
5883 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5885 * NEWS: Note new sh*-*-netbsdelf* configuration.
5886 * configure.host: Set gdb_host_cpu to sh for all sh*.
5887 (sh*-*-netbsdelf*): New host.
5888 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5889 (sh*-*-netbsdelf*): New target.
5890 * sh-nbsd-nat.c: New file.
5891 * sh-nbsd-tdep.c: New file.
5892 * sh-nbsd-tdep.h: New file.
5893 * config/sh/nbsd.mh: New file.
5894 * config/sh/nbsd.mt: New file.
5895 * config/sh/nm-nbsd.h: New file.
5896 * config/sh/tm-nbsd.h: New file.
5898 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5900 * sh-tdep.c (sh_osabi_names): Declare.
5901 (process_note_abi_tag_sections): New function.
5902 (get_elfosabi): Ditto.
5903 (sh_gdbarch_register_os_abi): Ditto.
5904 (sh_dump_tdep): Ditto.
5905 _initialize_sh_tdep): Use gdbarch_register to register
5906 sh_gdbarch_init and sh_dump_tdep.
5907 * config/sh/tm-sh.h (sh_osabi): Declare.
5908 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5910 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5912 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5913 (thumb_scan_prologue): Ditto.
5914 (arm_find_callers_reg): Ditto.
5915 (arm_frame_chain): Ditto.
5916 (arm_init_extra_frame_info): Ditto.
5917 (arm_frame_saved_pc): Ditto.
5918 (arm_pop_frame): Ditto.
5919 (arm_push_return_address): New function.
5920 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5921 call_dummy_location, call_dummy_breakpoint_offset_p,
5922 call_dummy_breakpoint_offset, call_dummy_p,
5923 call_dummy_stack_adjust_p, call_dummy_words,
5924 sizeof_call_dummy_words, call_dummy_start_offset,
5925 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5926 call_dummy_address, push_return_address and push_dummy_frame for
5927 generic dummy frames.
5929 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5931 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5932 size computation for alloca.
5933 (sh_fp_frame_init_saved_regs): Likewise.
5935 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5937 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5938 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5939 * arm-tdep.c (arm_store_return_value): Use them.
5940 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5941 * remote-rdp.c (remote_rdp_fetch_register): Use
5942 ARM_MAX_REGISTER_RAW_SIZE.
5943 (remote_rdp_store_register): Likewise.
5945 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5947 * dwarf2cfi.c: Code cleanup, removed unused variables,
5948 added default labels to switch {} statements.
5949 * x86-64-tdep.c: Ditto.
5950 * x86-64-linux-nat.c: Ditto.
5952 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5954 * solib.h: Protect against multiple inclusion.
5956 2002-05-06 Jim Blandy <jimb@redhat.com>
5958 Add first preprocessor macro-expansion files.
5959 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5960 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5961 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5962 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5963 (COMMON_OBS): Add macrotab.o, macroexp.o.
5964 (macroexp.o, macrotab.o): New rules.
5966 Separate the job of reading the line number info statement program
5967 header (...expialidocious) out into its own function.
5968 * dwarf2read.c (struct line_head, struct filenames, struct
5969 directories): Replace with...
5970 (struct line_header): New structure, containing the full
5971 contents of the statement program header, including the
5972 include directory and file name tables.
5973 (read_file_scope): If we have line number info, instead of just
5974 calling dwarf_decode_lines to do all the work, call
5975 dwarf_decode_line_header first to get a `struct line_header'
5976 containing the data in the statement program header, and then
5977 pass that to dwarf_decode_lines, which will pick up where that
5978 left off. Be sure to clean up the `struct line_header' object.
5979 (dwarf_decode_line_header, free_line_header, add_include_dir,
5980 add_file_name): New functions.
5981 (dwarf_decode_lines): Move all the code to read the statement
5982 program header into dwarf_decode_line_header. Take the line
5983 header it built as the first argument, instead of the offset to
5984 the compilation unit's line number info. Use the new `struct
5985 line_header' type instead of the old structures. No need to do
5986 cleanups here now, since we don't allocate anything.
5987 (dwarf2_statement_list_fits_in_line_number_section,
5988 dwarf2_line_header_too_long): New complaints.
5990 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
5992 * gdbtypes.c (init_vector_type): New function.
5993 (build_builtin_type_vec128): Simplify the representation of SIMD
5995 (build_gdbtypes): Initialize new builtin vector types.
5996 (_initialize_gdbtypes): Register new vector types with gdbarch.
5997 (builtin_type_v4_float, builtin_type_v4_int32,
5998 builtin_type_v8_int16, builtin_type_v16_int8,
5999 builtin_type_v2_int32, builtin_type_v4_int16,
6000 builtin_type_v8_int8): New (renamed) SIMD types.
6002 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6004 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6005 (i387_fill_fxsave): Likewise.
6007 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6009 * alpha-tdep.c (alpha_extract_return_value): Don't use
6010 non-constant array size in prototype.
6012 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6014 From Brian Taylor <briant at model dot com>:
6015 * ui-out.c (ui_out_field_core_addr): Use the function
6016 longest_local_hex_string_custom'to format addresses > 32 bits
6019 * ui-out.c (ui_out_field_core_addr): Update comment.
6021 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6023 * stack.c (select_and_print_frame): Make static. Delete the
6025 (func_command): Update call.
6026 (select_frame_command): Delete code computing the frame level.
6027 * frame.h (select_and_print_frame): Delete declaration.
6029 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6031 * sparc-tdep.c (sparc_get_saved_register): Comment why
6032 get_prev_frame call is safe.
6034 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6036 * frame.h (select_frame): Delete level parameter.
6037 * stack.c (select_frame): Update. Use frame_relative_level to
6038 obtain the frame's level.
6039 (select_and_print_frame): Update call.
6040 (select_frame_command): Ditto.
6041 (up_silently_base): Ditto.
6042 (down_silently_base): Ditto.
6043 * ocd.c (ocd_start_remote): Ditto.
6044 * remote-rdp.c (remote_rdp_open): Ditto.
6045 * remote-mips.c (mips_initialize): Ditto.
6046 (common_open): Ditto.
6047 * remote-e7000.c (e7000_start_remote): Ditto.
6048 * m3-nat.c (select_thread): Ditto.
6049 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6050 (child_get_current_exception_event): Ditto.
6051 * varobj.c (varobj_create): Ditto.
6052 (varobj_update): Ditto.
6053 (c_value_of_root): Ditto.
6054 * tracepoint.c (finish_tfind_command): Ditto.
6055 * corelow.c (core_open): Ditto.
6056 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6057 * thread.c (info_threads_command): Ditto.
6058 (switch_to_thread): Ditto.
6059 * infrun.c (normal_stop): Ditto.
6060 (restore_selected_frame): Ditto.
6061 (restore_inferior_status): Ditto.
6062 * breakpoint.c (insert_breakpoints): Ditto.
6063 (watchpoint_check): Ditto.
6064 (bpstat_stop_status): Ditto.
6065 (do_enable_breakpoint): Ditto.
6066 * blockframe.c (flush_cached_frames): Ditto.
6067 (reinit_frame_cache): Ditto.
6069 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6071 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6074 2002-05-04 Jim Blandy <jimb@redhat.com>
6076 * gdbtypes.c (replace_type): Doc fix.
6078 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6080 * valprint.c (strcat_longest): Delete commented out function.
6083 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6085 * MAINTAINERS: Mark a29k as deleted.
6086 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6087 Move new configurations to the top.
6088 * configure.tgt: Remove a29k.
6089 * config/a29k/tm-vx29k.h: Delete.
6090 * config/a29k/vx29k.mt: Delete.
6091 * config/a29k/tm-a29k.h: Delete.
6092 * config/a29k/a29k-udi.mt: Delete.
6093 * config/a29k/a29k.mt: Delete.
6094 * a29k-tdep.c: Delete.
6095 * remote-udi.c: Delete.
6096 * remote-mm.c: Delete.
6097 * remote-eb.c: Delete.
6098 * remote-adapt.c: Delete.
6099 * Makefile.in: Remove obsolete code.
6100 * config/s390/s390x.mt: Ditto.
6101 * config/s390/s390.mt: Ditto.
6102 * config/sparc/sparclynx.mh: Ditto.
6103 * config/sparc/linux.mh: Ditto.
6104 * config/pa/hppaosf.mh: Ditto.
6105 * config/pa/hppabsd.mh: Ditto.
6106 * config/ns32k/nbsd.mt: Ditto.
6107 * config/mips/vr5000.mt: Ditto.
6108 * config/m68k/sun3os4.mh: Ditto.
6109 * config/m68k/nbsd.mt: Ditto.
6110 * config/m68k/m68klynx.mh: Ditto.
6111 * config/m32r/m32r.mt: Ditto.
6112 * config/i386/x86-64linux.mt: Ditto.
6113 * config/i386/nbsdelf.mt: Ditto.
6114 * config/i386/nbsd.mt: Ditto.
6115 * config/i386/i386lynx.mh: Ditto.
6117 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6119 * target.c (debug_print_register): New function. Handle oversize
6121 (debug_to_fetch_registers): Call.
6122 (debug_to_store_registers): Call.
6124 2002-05-03 Jim Blandy <jimb@redhat.com>
6126 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6127 (read_type): Doc fix.
6128 * gdbtypes.c (replace_type): Doc fix.
6130 * stabsread.c (multiply_defined_struct): New complaint.
6131 (read_struct_type): If the type we were passed isn't empty, or
6132 incomplete, don't read the new struct type into it; complain,
6133 and return the original type unchanged. Take a new `type_code'
6134 argument, which is the type code for the new type.
6135 (read_type): Rather than storing the type's type code here, pass
6136 it as an argument to read_struct_type, and let that take care of
6137 storing it. That way, we don't overwrite the original type code,
6138 so read_struct_type can use it to decide whether we're overwriting
6139 something we shouldn't.
6140 (complain_about_struct_wipeout): New function.
6142 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6144 * gdbarch.sh: Assert that gdbarch is non-NULL.
6145 * gdbarch.c: Regenerate.
6147 2002-05-03 Jason Merrill <jason@redhat.com>
6149 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6152 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6154 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6155 (x86_64_dwarf2gdb_regno_map_length),
6156 (x86_64_dwarf2_reg_to_regnum): Added.
6157 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6158 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6159 (_initialize_x86_64_tdep): Synced with the change above.
6160 (x86_64_skip_prologue): Reformulated message.
6162 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6164 * f-exp.y: Also use new prev_lexptr variable
6165 to improve error reporting. Based on Michael Snyder
6166 2002-04-24 dated patch to c-exp.y.
6167 * jv-exp.y: Likewise.
6168 * m2-exp.y: Likewise.
6170 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6172 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6173 we are dealing with vectors.
6175 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6177 * config/m68k/tm-nbsd.h: Obvious fix,
6178 correct machine name.
6180 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6182 * p-typeprint.c (pascal_type_print_base): Add support
6183 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6185 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6187 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6188 for fondamental pascal 'char' type.
6190 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6192 * p-lang.h (is_pascal_string_type): Declaration changed,
6193 new sixth argument of type char ** added.
6194 * p-lang.c (is_pascal_string_type): Implementation
6195 changed. Args length_pos, length_size, string_pos, char_size
6196 can now be NULL. New argument arrayname set to the field
6197 name of the char array. Return value set to char array
6198 field index plus one.
6199 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6200 is_pascal_string_type function.
6202 2002-05-02 Andrew Cagney <cagney@redhat.com>
6204 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6205 <cagney@redhat.com> change.
6206 * gdbarch.c: Regenerate.
6208 2002-05-02 Andrew Cagney <cagney@redhat.com>
6210 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6211 before probing for a new one. Detect errorenous gdbarch_init
6213 * gdbarch.c: Regenerate.
6215 2002-05-01 Andrew Cagney <cagney@redhat.com>
6217 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6218 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6219 * config/v850/tm-v850.h: Ditto. Update copyright.
6221 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6223 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6226 2002-04-30 Michael Snyder <msnyder@redhat.com>
6228 * arm-tdep.c: Whitespace clean-ups.
6229 (arm_skip_prologue): Fix thinko; two lines
6230 should have been removed as part of 4/24 change.
6232 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6234 * rs6000-tdep.c: Added comment describing how fpscr register
6235 numbers were chosen.
6237 2002-04-30 Michael Snyder <msnyder@redhat.com>
6239 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6241 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6243 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6244 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6245 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6247 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6249 From Louis Hamilton <hamilton@redhat.com>:
6250 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6251 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6252 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6253 not bfd-private xcoff data, to determine wordsize.
6254 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6256 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6258 GDB 5.2 released from 5.2 branch.
6260 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6262 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6263 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6264 (x86_64_register_info_table): Added comments with register numbers.
6266 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6268 * rs6000-tdep.c (rs6000_extract_return_value,
6269 rs6000_store_return_value): Handle returning vectors.
6270 (rs6000_gdbarch_init): Use
6271 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6272 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6274 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6276 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6277 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6279 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6281 * hpread.c (hpread_psymtab_to_symtab_1,
6282 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6283 with fprintf_unfiltered (gdb_stderr,...).
6285 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6287 * remote-array.c (printf_monitor, write_monitor,
6288 array_insert_breakpoint, array_remove_breakpoint ):
6289 Replace fprintf (stderr,...
6290 with fprintf_unfiltered (gdb_stderr,....
6291 * remote-es.c: Likewise.
6292 * remote-os9k.c: Likewise.
6293 * remote-st.c: Likewise.
6295 2002-04-28 Andreas Schwab <schwab@suse.de>
6297 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6298 linux-proc.o and gcore.o.
6300 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6302 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6303 code without frame pointers.
6305 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6307 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6310 2002-04-26 Ben Elliston <bje@redhat.com>
6312 * target.c (do_xfer_memory): Correct reference to the new option
6313 "trust-readonly-sections".
6315 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6317 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6318 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6319 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6321 (read_array_type): Record the fact that this array type is really a
6322 vector (i.e. are passed in by value).
6324 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6326 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6327 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6328 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6329 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6330 * alpha-linux-tdep.c: Include frame.h.
6331 (alpha_linux_sigcontext_addr): New function.
6332 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6333 alpha_linux_sigcontext_addr.
6334 * alpha-osf1-tdep.c: Include gdbcore.h.
6335 (alpha_osf1_sigcontext_addr): New function.
6336 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6337 alpha_osf1_sigcontext_addr.
6338 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6339 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6341 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6343 * stack.c (selected_frame_level):
6344 (select_frame): Do not set selected_frame_level.
6345 * frame.h (selected_frame_level): Delete declaration.
6347 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6349 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6350 convert_from_func_ptr-addr when AIX / PowerOpen.
6352 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6354 * valops.c (hand_function_call): Call
6355 generic_save_call_dummy_addr.
6356 * frame.h (generic_save_call_dummy_addr): Declare.
6357 * blockframe.c (struct dummy_frame): Add fields call_lo and
6359 (generic_find_dummy_frame): Check for PC in range call_lo to
6360 call_hi instead of entry_point_address.
6361 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6362 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6363 (generic_save_call_dummy_addr): New function.
6365 2002-04-24 David S. Miller <davem@redhat.com>
6367 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6368 sparc_skip_prologue.
6369 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6370 information to find prologue when possible.
6371 (sparc_prologue_frameless_p): Call examine_prologue directly.
6372 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6373 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6375 (SKIP_PROLOGUE): Likewise.
6377 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6379 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6380 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6381 indicate that the condition it was testing is always true.
6382 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6383 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6384 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6386 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6388 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6389 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6390 tdep->jb_pc and tdep->jb_elt_size.
6391 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6392 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6393 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6394 * alpha-nat.c (get_longjmp_target): Remove.
6395 (JB_ELEMENT_SIZE): Ditto.
6397 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6398 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6399 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6400 to alpha_get_longjmp_target.
6401 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6402 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6403 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6405 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6407 * README: Update to GDB 5.2.
6409 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6411 * gdbarch.sh (LC_ALL): Set to `c'.
6413 2002-04-25 Theodore A. Roth <troth@verinet.com>
6415 * avr-tdep.c: Ran through gdb_indent.sh.
6417 2002-04-25 Theodore A. Roth <troth@verinet.com>
6419 * MAINTAINERS: Add myself as AVR maintainer.
6420 * NEWS: Note new target avr.
6422 2002-04-25 Theodore A. Roth <troth@verinet.com>
6424 * Makefile.in: Add support for AVR target.
6425 * configure.tgt: Add support for AVR target.
6426 * avr-tdep.c: New file
6427 * config/avr/avr.mt: New file.
6429 2002-04-25 Theodore A. Roth <troth@verinet.com>
6431 * MAINTAINERS: Add myself to write-after-approval.
6433 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6435 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6436 with fprintf_unfiltered (gdb_stderr,....
6438 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6441 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6443 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6445 * p-exp.y: Also use new prev_lexptr variable
6446 to improve error reporting. Based on Michael Snyder
6447 2002-04-24 dated patch to c-exp.y.
6449 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6451 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6452 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6453 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6455 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6457 (FUNCTION_START_OFFSET): Remove.
6458 (BREAKPOINT): Ditto.
6460 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6462 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6465 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6467 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6468 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6469 alpha_linux_pc_in_sigtramp.
6470 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6471 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6472 alpha_osf1_pc_in_sigtramp.
6473 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6474 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6475 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6476 alphafbsd_pc_in_sigtramp.
6477 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6478 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6479 alphanbsd_pc_in_sigtramp.
6480 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6481 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6483 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6485 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6487 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6489 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6491 (alphanbsd-nat.o): New dependency list.
6492 (alphanbsd-tdep.o): Ditto.
6493 * NEWS: Note new native NetBSD/alpha configuration.
6494 * alphanbsd-nat.c: New file.
6495 * alphanbsd-tdep.c: Ditto.
6496 * configure.host (alpha*-*-netbsd*): New host.
6497 * configure.tgt (alpha*-*-netbsd*): New target.
6498 * config/alpha/nbsd.mh: New file.
6499 * config/alpha/nbsd.mt: Ditto.
6500 * config/alpha/nm-nbsd.h: Ditto.
6501 * config/alpha/tm-nbsd.h: Ditto.
6503 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6505 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6506 (alpha-osf1-tdep.o): New dependency list.
6507 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6508 and skip_sigtramp_frame members.
6509 * alpha-linux-tdep.c: Include gdbcore.h.
6510 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6511 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6512 * alpha-osf1-tdep.c: New file.
6513 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6515 (alpha_frame_past_sigtramp_frame): New function.
6516 (alpha_dynamic_sigtramp_offset): Ditto.
6517 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6518 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6519 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6520 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6521 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6522 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6523 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6524 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6525 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6526 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6527 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6528 to find_solib_trampoline_target.
6529 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6530 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6531 (SKIP_TRAMPOLINE_CODE): Remove.
6532 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6533 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6534 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6535 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6536 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6537 (PROC_SIGTRAMP_MAGIC): Ditto.
6538 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6539 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6540 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6541 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6542 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6544 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6546 * NEWS: Note that Alpha targets are now multi-arch.
6548 2002-04-24 Michael Snyder <msnyder@redhat.com>
6550 * parser-defs.h (prev_lexptr): New external variable.
6551 * parse.c (parse_exp_1): Set prev_lexptr to null before
6552 calling the language-specific parser.
6553 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6554 (yyerror): Use prev_lexptr in error reporting.
6556 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6558 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6559 * gregset.h: If FILL_FPXREGSET is defined, provide
6560 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6561 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6562 is defined, call fill_fpxregset.
6564 2002-04-24 Roland McGrath <roland@frob.com>
6566 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6567 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6568 (supply_gregset, supply_fpregset): New functions.
6570 * gnu-nat.c (gnu_find_memory_regions): New function.
6571 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6572 (gnu_xfer_memory): Add a cast.
6574 2002-04-24 Michael Snyder <msnyder@redhat.com>
6576 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6577 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6578 of argument regs ("str r(0123), [r11, #-nn"]).
6579 (arm_skip_prologue): Better handling for frameless functions.
6580 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6581 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6583 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6585 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6586 NUM_PSEUDO_REGS can be used.
6588 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6590 * arch-utils.h: Update copyright.
6592 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6593 * gdbarch.h, gdbarch.c: Re-generate.
6595 * inferior.h (IN_SIGTRAMP): Delete definition.
6596 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6597 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6599 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6600 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6601 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6602 (find_proc_framesize): Ditto.
6603 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6604 (alpha_init_extra_frame_info): Ditto.
6605 * infrun.c (handle_inferior_event): Ditto.
6606 (handle_inferior_event): Ditto.
6607 (check_sigtramp2): Ditto.
6608 * blockframe.c (create_new_frame): Ditto.
6609 (get_prev_frame): Ditto.
6610 * ppc-linux-tdep.c: Update comments.
6611 * i386-linux-tdep.c: Update comments.
6612 * breakpoint.c (bpstat_what): Update comment.
6614 2002-04-24 David S. Miller <davem@redhat.com>
6616 * i960-tdep.c (register_in_window_p): New function.
6617 (i960_find_saved_register): Use it instead of
6618 REGISTER_IN_WINDOW_P.
6619 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6621 * symtab.h (find_stab_function_addr): Kill extern.
6622 * minsyms.c (find_stab_function_addr): Remove from here...
6623 * dbxread.c: ... to here, and mark it static.
6625 2002-04-20 David S. Miller <davem@redhat.com>
6627 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6628 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6630 2002-04-21 David S. Miller <davem@redhat.com>
6632 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6633 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6634 (vx_write_register): Likewise.
6636 2002-04-23 J. Brobecker <brobecker@gnat.com>
6638 * source.c (is_regular_file): New function.
6639 (openp): Check wether file to open is a regular file
6640 to avoid opening directories.
6642 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6644 * findvar.c (extract_signed_integer): Cast printf argument
6645 to suppress format warning.
6646 (extract_unsigned_integer): Likewise.
6647 * infcmd.c (registers_info): Likewise.
6648 * top.c (get_prompt_1): Likewise.
6649 * valops.c (value_assign): Likewise.
6650 * valprint.c (print_decimal): Likewise.
6652 2002-04-22 H.J. Lu (hjl@gnu.org)
6654 * c-exp.y (typebase): Support
6656 [long|long long|short] [signed|unsigned] [int|]
6660 signed [long|long long|short] int
6662 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6664 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6666 * vax-tdep.h: New file.
6667 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6668 Make several routines static.
6669 (vax_get_saved_register): New function.
6670 (vax_gdbarch_init): New function.
6671 (_initialize_vax_tdep): Register vax_gdbarch_init.
6672 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6673 Remove macros now under the control of gdbarch.
6675 2002-04-22 Michael Snyder <msnyder@redhat.com>
6677 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6678 Some whitespace and coding standards tweaks.
6680 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6682 * vax-tdep.c: Include regcache.h.
6683 (vax_call_dummy_words): New.
6684 (sizeof_vax_call_dummy_words): New.
6685 (vax_fix_call_dummy): New function.
6686 (vax_saved_pc_after_call): Ditto.
6687 * config/vax/tm-vax.h: Don't include regcache.h.
6688 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6689 (CALL_DUMMY): Remove.
6690 (CALL_DUMMY_WORDS): Define.
6691 (SIZEOF_CALL_DUMMY_WORDS): Define.
6692 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6694 2002-04-18 Michael Snyder <msnyder@redhat.com>
6696 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6698 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6700 * vax-tdep.c (vax_frame_chain): New function.
6701 (vax_push_dummy_frame): Ditto.
6702 (vax_pop_frame): Ditto.
6703 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6704 (FRAMELESS_FUNCTION_INVOCATION): Use
6705 generic_frameless_function_invocation_not.
6706 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6707 (POP_FRAME): Use vax_pop_frame.
6709 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6711 * vax-tdep.c (vax_store_struct_return): New function.
6712 (vax_extract_return_value): Ditto.
6713 (vax_store_return_value): Ditto.
6714 (vax_extract_struct_value_address): Ditto.
6715 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6716 vax_store_struct_return.
6717 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6718 (STORE_RETURN_VALUE): Use vax_store_return_value.
6719 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6721 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6723 * vax-tdep.c (vax_frame_saved_pc): New function.
6724 (vax_frame_args_address_correct): Ditto.
6725 (vax_frame_args_address): Ditto.
6726 (vax_frame_locals_address): Ditto.
6727 (vax_frame_num_args): Move code to be in proximity to
6728 other frame-related functions.
6729 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6730 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6731 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6732 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6733 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6735 2002-04-22 H.J. Lu (hjl@gnu.org)
6737 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6740 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6742 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6743 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6744 (FRAME_INIT_SAVED_REGS): New macro.
6746 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6748 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6750 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6752 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6754 (fetch_osf_core_registers): Likewise.
6755 (supply_gregset): Likewise.
6757 2002-04-22 J. Brobecker <brobecker@gnat.com>
6759 * symfile.h (get_section_index): Define.
6760 * symfile.c (get_section_index): New function.
6761 * mdebugread.c (SC_IS_SBSS): New macro.
6762 (SC_IS_BSS): Return true for the scBss storage class only, as
6763 the scSBss storage class refers to the .sbss section.
6764 (parse_partial_symbols): Discard the symbols which associated
6765 section does not exist.
6766 Make sure to use the .sbss section index for symbols which
6767 storage class is scBss, rather than using the .bss section index.
6769 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6771 * vax-tdep.c: Update copyright years.
6772 (vax_register_name): New function.
6773 (vax_register_byte): Ditto.
6774 (vax_register_raw_size): Ditto.
6775 (vax_register_virtual_size): Ditto.
6776 (vax_register_virtual_type): Ditto.
6777 * config/vax/tm-vax.h: Update copyright years.
6778 (REGISTER_NAMES): Remove.
6779 (REGISTER_NAME): Define.
6780 (REGISTER_BYTE): Use vax_register_byte.
6781 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6782 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6783 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6785 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6787 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6789 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6791 2002-04-21 David S. Miller <davem@redhat.com>
6793 * arch-utils.c (generic_prologue_frameless_p): Kill
6794 SKIP_PROLOGUE_FRAMELESS_P code.
6795 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6797 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6798 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6799 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6801 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6802 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6803 (sparc_gdbarch_init): Pass it to
6804 set_gdbarch_prologue_frameless_p.
6806 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6808 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6809 (alphabsd-nat.o): New dependency list.
6811 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6813 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6815 (alpha-linux-tdep.o): New dependency list.
6816 (alphafbsd-tdep.o): Likewise.
6818 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6820 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6822 * alpha-tdep.c: ...from here.
6823 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6825 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6827 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6828 prototype from here...
6829 * alpha-tdep.h: ...to here.
6831 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6833 * frame.h (selected_frame_level): Document as deprecated.
6834 (frame_relative_level): Declare.
6835 * stack.c (frame_relative_level): New function.
6836 (selected_frame_level): Document as deprecated.
6837 (select_frame): Do not set the selected_frame_level.
6839 * stack.c (frame_info, record_selected_frame): Update.
6840 (frame_command, current_frame_command): Update.
6841 (up_silently_base, up_command, down_silently_base): Update.
6842 (down_command): Update.
6843 * inflow.c (kill_command): Update.
6844 * tracepoint.c (finish_tfind_command): Update.
6845 * corelow.c (core_open): Update.
6846 * thread.c (info_threads_command): Update.
6847 (do_captured_thread_select): Update.
6848 * infcmd.c (finish_command): Update.
6849 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6851 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6853 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6855 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6857 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6860 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6862 * alphafbsd-tdep.c: Update copyright years. Include
6864 (alphafbsd_use_struct_convention): Make static.
6865 (alphafbsd_init_abi): New function.
6866 (_initialize_alphafbsd_tdep): New function.
6867 * config/alpha/tm-fbsd.h: Update copyright years.
6868 (USE_STRUCT_CONVENTION): Remove.
6870 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6872 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6873 an Alpha ABI variant.
6874 (alpha_abi_handler_list): Declare.
6875 (alpha_gdbarch_register_os_abi): New function.
6876 (alpha_gdbarch_init): Give registered ABI variant handlers a
6877 chance to tweak the gdbarch once we have set up defaults.
6878 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6880 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6882 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6883 to standard_coerce_float_to_double.
6884 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6886 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6888 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6889 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6890 from gdbarch_tdep rather than a constant.
6891 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6892 the default text address for all Alpha Unix ABIs.
6893 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6894 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6896 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6898 * alpha-tdep.h: New file. Includes several Alpha target constants
6900 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6901 let gdbarch deal with.
6902 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6903 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6905 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6906 Alpha target register names.
6907 * alphabsd-nat.c: Likewise.
6908 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6909 Alpha target register names. Make serveral routines static.
6910 (alpha_get_saved_register): New function.
6911 (alpha_abi_names): New.
6912 (process_note_abi_tag_sections): New function.
6913 (get_elfosabi): New function.
6914 (alpha_gdbarch_init): New function.
6915 (alpha_dump_tdep): New function.
6916 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6918 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6920 * frame.c (find_saved_register): Delete #ifdef
6921 HAVE_REGISTER_WINDOWS code.
6922 * config/sparc/tm-sparc.h: Update comments.
6923 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6925 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6927 * i960-tdep.c (i960_find_saved_register): New function.
6928 (i960_get_saved_register): New function.
6929 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6930 (i960_get_saved_register): Declare.
6931 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6933 2002-04-20 David S. Miller <davem@redhat.com>
6935 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6937 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6939 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6940 instead of NUM_PSEUDO_REGS.
6942 2002-04-20 David S. Miller <davem@redhat.com>
6944 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6945 GDB_MULTI_ARCH_PARTIAL
6946 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6947 define, let tm-sp64.h do it.
6949 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6951 * frame.c (find_saved_register): Avoid a NULL pointer
6952 dereference and actually walk the frame list.
6954 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6956 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6957 sorted in most most-recent-used order. Document.
6958 * gdbarch.h, gdbarch.c: Regenerate.
6960 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6962 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6964 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6965 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6966 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6969 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6972 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6973 (build_builtin_type_vec128): Ditto.
6974 (append_composite_type_field): Fix calculation of type length in
6977 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6979 * config/djgpp/README: Update.
6981 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
6984 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
6986 * alpha-tdep.c (setup_arbitrary_frame): Rename...
6987 (alpha_setup_arbitrary_frame): ...to this.
6988 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
6989 for alpha_setup_arbitrary_frame.
6991 2002-04-18 Andrew Cagney <cagney@redhat.com>
6993 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
6994 * gdbarch.h, gdbarch.c: Regenerate.
6996 * defs.h (breakpoint_from_pc_fn): Delete type definition.
6997 * target.h (memory_breakpoint_from_pc): Update declaration.
6998 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7000 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7001 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7002 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7003 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7004 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7005 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7006 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7007 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7008 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7009 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7010 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7011 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7013 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7015 * monitor.c (monitor_insert_breakpoint): Ditto.
7016 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7018 * config/mcore/tm-mcore.h: Update copyright.
7019 * mem-break.c: Ditto.
7020 * xstormy16-tdep.c: Ditto.
7022 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7024 * p-exp.y: Add precedence rule for '^' token.
7025 This removes the shift/reduce conflicts.
7026 Remove the comment concerning these shift/reduce conflicts.
7028 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7030 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7031 (registers_powerpc_nofp): New register set for processors
7032 without floating point unit.
7034 2002-04-18 David S. Miller <davem@redhat.com>
7036 * MAINTAINERS: Add myself to write-after-approval.
7038 2002-04-17 Michael Snyder <msnyder@redhat.com>
7040 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7042 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7044 * rs6000-tdep.c (frame_initial_stack_address): Use
7045 frame_register_read to read the alloca_reg.
7047 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7049 * frame.c (find_saved_register): Find saved registers in the next
7053 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7055 * gdbarch.sh (LANG): Set to ``c''.
7057 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7059 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7061 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7063 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7066 * hpread.c (hpread_get_lntt): Add declaration.
7067 Also fix PR gdb/391.
7069 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7071 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7072 * aclocal.m4, configure: Re-generate.
7075 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7077 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7078 instead of tm_print_insn.
7080 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7082 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7084 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7086 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7087 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7088 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7090 2002-04-12 Don Howard <dhoward@redhat.com>
7092 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7093 max_user_call_depth.
7094 (init_cmd_lists): Initialize the new value;
7095 * cli/cli-script.c (execute_user_command): Limit the call depth of
7096 user defined commands. This avoids a core-dump when user commands
7097 are infinitly recursive.
7099 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7101 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7102 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7103 from tdep struct instead of DEFAULT_LR_SAVE.
7104 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7105 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7106 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7108 2002-04-12 Michael Snyder <msnyder@redhat.com>
7110 * Remote.c: Spelling fix.
7111 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7112 If no symbol found for "sbrk", try "_sbrk".
7113 (make_output_phdrs): Use bfd_section_name.
7114 (gcore_copy_callback): Use bfd_section_name.
7115 * eval.c: Indentation fix-ups.
7116 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7117 in case it gets applied to an address that is already
7118 in the instruction space.
7119 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7120 * symfile.c: Fix indentation, long lines.
7121 * source.c: White space fix-up.
7123 2002-04-12 Andrew Cagney <cagney@redhat.com>
7125 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7126 * frame.c (frame_register_read): New function. Return non-zero on
7128 (read_relative_register_raw_bytes_for_frame): Delete.
7129 (read_relative_register_raw_bytes): Delete.
7130 * frame.h (frame_register_read): Declare.
7131 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7133 * infcmd.c (do_registers_info): Ditto.
7134 * hppa-tdep.c: Ditto.
7135 * rs6000-tdep.c: Ditto.
7136 * h8500-tdep.c: Ditto.
7137 * mips-tdep.c: Ditto.
7138 * h8300-tdep.c: Ditto.
7139 * z8k-tdep.c: Ditto.
7141 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7143 From Jimi X <jimix@watson.ibm.com>:
7144 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7147 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7149 From Jimi X <jimix@watson.ibm.com>:
7150 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7153 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7155 From Jimi X <jimix@watson.ibm.com>:
7156 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7157 register sets for these processor variants.
7159 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7161 * regformats/reg-ppc.dat: Support FPSCR.
7163 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7165 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7166 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7167 Add fpscr as an invalid/unfetchable register.
7168 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7169 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7170 (fill_fpregset): Add support for register fpscr.
7171 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7172 (fill_gregset): Account for the fact that register ``mq'' might
7174 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7175 (registers_power): Add fpscr to register set at slot 71.
7176 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7177 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7179 2002-04-11 Michael Snyder <msnyder@redhat.com>
7181 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7182 * configure: Regenerate.
7183 * config.in: Regenerate.
7184 * acconfig.h: Add define for _SYSCALL32.
7185 * core-sol2.c: Remove #define _SYSCALL32.
7186 * solib-legacy.c: Remove #define _SYSCALL32.
7188 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7190 * stack.c (select_frame): Cleanup internal error message, do not
7193 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7195 * stack.c (select_frame): Check that selected_frame and the
7196 specified level are as expected.
7197 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7199 * frame.h (struct frame_info): Add field `level'. Update
7201 Work-in-progress PR gdb/464.
7203 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7205 * maint.c (maint_print_section_info): Rename print_section_info.
7206 (print_bfd_section_info, print_objfile_section_info): Update.
7207 * inferior.h (struct gdbarch): Add opaque declaration.
7208 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7209 * gdbarch.h: Regenerate.
7211 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7213 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7214 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7215 (kernel_u_size): Added.
7216 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7217 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7219 2002-04-04 Jim Ingham <jingham@apple.com>
7221 * valarith.c (find_size_for_pointer_math): New function, either returns
7222 the size for a pointer's target, returns 1 for void *, or errors for
7224 (value_add, value_sub): use find_size_for_pointer_math.
7226 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7228 * linux-low.c (linux_look_up_symbols): New hook.
7229 (linux_target_ops): Add linux_look_up_symbols.
7230 * remote-utils.c (decode_address): New function.
7231 (look_up_one_symbol): New function.
7232 * server.c (handle_query): Call target look_up_symbols hook.
7233 * server.h (look_up_one_symbol): Add prototype.
7234 * target.h (struct target_ops): Add look_up_symbols hook.
7236 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7238 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7239 override FP_REGNUM with frame->fp. Update copyright.
7240 * parse.c (num_std_regs, std_regs): Delete.
7241 (target_map_name_to_register): Do not search std_regs. Update
7242 function description.
7243 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7244 declarations. Update copyright.
7247 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7249 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7250 after the last symbol in a block.
7252 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7254 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7255 is non zero as a found symbol.
7257 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7259 * findvar.c: Include "builtin-regs.h".
7260 (value_of_register): Call value_of_builtin_reg when applicable.
7261 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7262 (target_map_name_to_register): Call
7263 builtin_reg_map_name_to_regnum.
7264 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7265 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7266 (builtin_regs_h): Define.
7267 (builtin-regs.o): New target.
7268 (findvar.o): Add $(builtin_regs_h).
7269 * builtin-regs.c, builtin-regs.h: New files.
7270 * std-regs.c: New file.
7271 Partial fix for PR gdb/251.
7273 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7275 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7276 it's no longer required.
7278 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7280 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7282 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7284 From Jimi X <jimix@watson.ibm.com>:
7285 * rs6000-tdep.c (rs6000_software_single_step): Use
7286 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7287 and size. Use target_insert_breakpoint() and
7288 target_remove_breakpoint() to insert and remove breakpoints
7289 instead of explicit memory reads and writes.
7291 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7293 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7294 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7295 ELF_OBJECT_FORMAT ifdef.
7297 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7299 From Jimi X <jimix@watson.ibm.com>:
7300 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7302 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7304 From Jimi X <jimix@watson.ibm.com>:
7305 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7306 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7308 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7310 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7311 s/asprintf/xasprintf/.
7312 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7314 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7316 I believe Jeff Law denies responsability for this one:
7317 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7318 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7319 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7320 Work-around for PR gdb/366.
7322 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7324 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7325 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7326 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7328 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7330 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7331 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7334 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7336 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7339 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7341 * README (Reporting Bugs in GDB): Document the bug web page as the
7342 prefered way of submitting bugs.
7345 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7347 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7349 * gdbarch.h, gdbarch.c: Re-generate.
7351 2002-04-07 Andreas Schwab <schwab@suse.de>
7353 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7354 buffer to regcache_collect.
7356 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7358 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7359 * gdbarch.c, gdbarch.h: Re-generate.
7361 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7363 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7364 declaration. Fix -Werror.
7366 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7368 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7369 * gdbarch.c: Regenerate.
7371 2002-04-05 Michael Snyder <msnyder@redhat.com>
7373 * breakpoint.c (clear_command): Rewrite middle section to
7374 combine two loops with identical control conditions.
7375 Add a cleanup to eliminate a memory leak.
7376 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7378 2002-04-05 H.J. Lu (hjl@gnu.org)
7380 * solib-svr4.c (bkpt_names): Add "__start".
7382 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7384 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7385 as test for 64 bit target.
7387 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7389 * h8500-tdep.c (h8500_write_fp): Delete function.
7390 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7391 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7392 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7393 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7394 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7395 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7397 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7398 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7399 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7400 (d10v_write_fp): Delete function.
7401 * inferior.h (write_fp, generic_target_write_fp): Delete
7403 * regcache.c (generic_target_write_fp): Delete function.
7404 (write_fp): Delete function.
7405 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7406 * gdbarch.h, gdbarch.c: Regenerate.
7407 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7408 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7409 (sparc64_write_fp): Delete declaration.
7410 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7411 (h8500_write_fp): Delete declaration.
7413 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7415 * sparc-tdep.c (sparc64_write_fp): Delete.
7416 (sparc_push_dummy_frame): Replace write_fp call with code to store
7418 (sparc_gdbarch_init): Do not initialize write_fp.
7420 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7422 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7425 2002-03-29 Jim Blandy <jimb@redhat.com>
7427 * stack.c (get_selected_block): Add new argument `addr_in_block',
7428 used to return the exact code address we used to select the block,
7430 * blockframe.c (get_frame_block, get_current_block): Same.
7431 * frame.h (get_frame_block, get_current_block,
7432 get_selected_block): Update declarations.
7433 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7434 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7436 2002-04-05 Michael Snyder <msnyder@redhat.com>
7438 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7441 2002-04-05 J. Brobecker <brobecker@gnat.com>
7443 * utils.c (xfullpath): New function.
7444 * defs.h (xfullpath): Add declaration.
7445 * source.c (openp): Use xfullpath in place of gdb_realpath to
7446 avoid resolving the basename part of filenames when the
7447 associated file is a symbolic link. This fixes a potential
7448 inconsistency between the filenames known to GDB and the
7449 filenames it prints in the annotations.
7450 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7451 to be able to match a filename with either the real filename, or
7452 the name of any symbolic link to this file.
7453 (lookup_partial_symtab): Ditto.
7455 2002-04-04 Michael Snyder <msnyder@redhat.com>
7457 * breakpoint.c: Add support for hardware breakpoints in overlays.
7458 (overlay_events_enabled): New state variable.
7459 (insert_breakpoints): Use overlay_events_enabled to decide
7460 whether to attempt to set a breakpoint at the overlay load addr.
7461 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7462 (remove_breakpoint): Use overlay_events_enabled to decide
7463 whether breakpoints need to be removed from overlay load addr.
7464 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7465 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7466 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7467 disable_overlay_breakpoints): Update overlay_events_enabled.
7469 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7471 * dwarf2read.c (struct function_range): New.
7472 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7473 (check_cu_functions): New.
7474 (read_file_scope): Initialize global function lists.
7475 Call dwarf_decode_line after processing children.
7476 (read_func_scope): Add to global function list.
7477 (dwarf_decode_lines): Call check_cu_functions everywhere
7478 record_line is called. Call record_line with a linenumber
7479 of 0 to mark sequence ends.
7481 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7483 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7484 change sync with glibc.
7486 2002-04-03 Jim Blandy <jimb@redhat.com>
7488 * configure.in: Call AC_C_INLINE.
7489 * configure: Regenerated.
7491 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7493 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7494 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7496 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7498 * NEWS: Mention gcore support on FreeBSD/i386.
7500 * fbsd-proc.c: New file.
7501 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7502 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7504 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7507 2002-03-29 Jim Blandy <jimb@redhat.com>
7509 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7510 unescaped newlines in string literals, but newer ones don't. So
7513 2002-03-26 Michael Snyder <msnyder@redhat.com>
7514 Andrew Cagney <cagney@redhat.com>
7516 * cli/cli-dump.c: New file. Dump memory to file,
7517 restore file to memory.
7518 * cli/cli-dump.h: New file.
7519 * Makefile.in: Add rules, dependencies for cli-dump.o.
7520 * NEWS: Mention new commands.
7522 2002-03-28 Michael Snyder <msnyder@redhat.com>
7524 * symfile.c (symbol_file_add): Move test for null symbols to later.
7526 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7528 From veksler at il.ibm.com:
7529 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7530 the xstrduped original path.
7533 2002-03-27 Michael Snyder <msnyder@redhat.com>
7535 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7536 * infcmd.c (_initialize_infcmd): Ditto.
7537 * language.c (_initialize_language): Ditto.
7538 * symfile.c (_initialize_symfile): Ditto.
7539 * top.c (_init_main): Ditto.
7540 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7542 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7544 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7545 vector registers handling.
7546 (skip_prologue): Handle new AltiVec instructions. Fill in new
7547 fields of frame data.
7548 (frame_get_saved_regs): Fill in information for AltiVec registers.
7550 2002-03-27 Jim Blandy <jimb@redhat.com>
7552 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7553 a function; leave this macro here to invoke that function.
7554 (symbol_init_mangled_name): Declaration for that function.
7555 * symtab.c (symbol_init_mangled_name): New function.
7557 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7559 * valarith.c: Replace strerror with safe_strerror.
7560 * tracepoint.c: Ditto.
7562 * go32-nat.c: Ditto.
7566 2002-03-27 Andreas Schwab <schwab@suse.de>
7568 * event-top.c (command_line_handler): Remove useless if.
7570 2002-03-27 Andreas Jaeger <aj@suse.de>
7572 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7575 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7577 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7578 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7579 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7580 (x86_64_linux_dr_get_status, supply_gregset),
7581 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7582 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7583 (x86_64_register_info_table): Add.
7584 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7585 (x86_64_register_raw_size, x86_64_register_virtual_type),
7586 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7587 general x86_64_register_info_table.
7588 (i386_gdbarch_init): gdbarch_register_bytes is now set
7589 dynamicaly during initialization.
7590 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7591 * gdbserver/linux-x86-64-low.c: Ditto.
7593 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7595 * gdbserver/server.c (main): Call target_signal_to_host_p
7596 and target_signal_to_host on signals received from the remote.
7597 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7598 target_signal_from_host on signals sent to the remote.
7599 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7600 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7602 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7604 * signals/signals.c: Include "server.h" in gdbserver build.
7605 (target_signal_from_name): Don't use STREQ.
7606 (_initialize_signals): Likewise. Don't include function in
7609 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7611 * signals.c: Moved to...
7612 * signals/signals.c: Here.
7613 * Makefile (signals.o): Update.
7615 2002-03-26 Jeff Law (law@redhat.com)
7617 * somread.c (som_symtab_read): Remove some commented out code and
7618 updated related comments. Do not set the minimal symbol table to
7619 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7620 in a dynamic executable.
7621 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7622 where we are unable to find the minimal symbol for the given
7625 2002-03-25 Jeff Law (law@redhat.com)
7627 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7629 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7631 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7633 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7635 * command.h: Update copyright.
7636 (struct cmd_list_element): Replace definition with opaque
7638 (enum cmd_types): Document that it will eventually be moved to
7640 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7641 (MALLOCED_REPLACEMENT): Delete macro.
7642 * Makefile.in (cli_decode_h): Add $(command_h).
7643 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7644 * top.c: Include "cli/cli-decode.h".
7645 * completer.c: Include "cli/cli-decode.h".
7646 * maint.c: Include "cli/cli-decode.h".
7647 * cli/cli-decode.h: Include "command.h".
7648 (enum command_class): Delete.
7649 (enum cmd_types): Comment out.
7650 (enum cmd_auto_boolean): Delete.
7651 (enum var_types): Delete.
7653 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7655 * cli/cli-decode.c: Include "gdb_assert.h".
7656 (add_set_or_show_cmd): New static function.
7657 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7658 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7659 all fields, such as func, from the set command.
7661 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7663 * MAINTAINERS (sh-elf): Change warning flag to -w.
7665 2002-03-23 Andrew Cagney <cagney@redhat.com>
7667 * defs.h (error): Add printf format attribute.
7668 * thread-db.c (thread_from_lwp): Fix error format string.
7669 * stack.c (parse_frame_specification): Ditto.
7670 * cli/cli-decode.c (undef_cmd_error): Ditto.
7671 * scm-lang.c (scm_lookup_name): Ditto.
7672 * tracepoint.c (trace_error): Ditto.
7673 * remote-utils.c (usage): Ditto.
7674 * remote.c (compare_sections_command): Ditto.
7677 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7679 * gdbtypes.c (append_composite_type_field): New function.
7680 (init_composite_type): New function.
7681 * gdbtypes.h (append_composite_type_field): Declare.
7682 (init_composite_type): Ditto.
7684 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7686 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7688 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7689 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7690 structure returning convention for SYSV ABI case, but not
7691 for GNU/Linux, FreeBSD, or NetBSD.
7693 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7695 * symtab.h (lookup_block_symbol): Add mangled_name argument
7698 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7699 with new mangled_name argument.
7700 * linespec.c (decode_line_1): Likewise.
7701 * valops (value_of_this): Likewise.
7702 * symtab.c (lookup_transparent_type): Likewise.
7703 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7704 (lookup_symbol): If we are given a mangled name, pass it down
7705 to lookup_symbol_aux.
7706 (lookup_block_symbol): If we are given a mangled name to check
7707 against, only return symbols which match it.
7709 2002-03-22 Christopher Faylor <cgf@redhat.com>
7711 * win32-nat.c (child_create_inferior): Check for proper shell to use
7712 here, in case the user changes it on the fly.
7713 (_initialize_inftarg): Remove shell path considerations.
7715 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7717 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7718 for gdbarch_max_register_raw_size and max_register_virtual_size.
7719 Adjust copyright year.
7721 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7723 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7724 in a function to cover the entire beginning of the function
7725 as well if it does not already.
7727 2002-03-21 Tom Rix <trix@redhat.com>
7729 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7730 (rs6000_ptrace64): Renamed from ptrace64.
7732 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7734 * gdbserver/remote-utils.c (remote_open): Don't call
7735 getprotobyname, we're all using TCP here so just use
7737 * gdbserver/gdbreplay.c (remote_open): Ditto.
7739 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7741 * regcache.c (_initialize_regcache): No need to call
7742 build_regcache() at this time; it gets called whenever
7743 the gdbarch changes.
7745 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7747 * sparc-nat.c: Include sys/param.h where possible.
7749 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7752 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7753 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7754 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7756 * stabsread.c (rs6000_builtin_type): Likewise.
7757 (read_sun_floating_type): Likewise.
7759 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7761 * stabsread.c (read_member_functions): Remove skip code for duplicate
7762 constructor/destructor methods. Use standard parsing for these
7763 methods and just do not chain them to the list of methods after
7766 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7768 * coffread.c: Remove redundant static declarations. Replace
7769 occurrences of `PTR' with `void *'.
7770 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7771 * top.h (quit_cover): Likewise.
7772 * defs.h (catch_errors): Likewise.
7774 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7776 * defs.h (XMALLOC): Define.
7777 * gdb-events.sh (XMALLOC): Delete macro.
7778 * gdb-events.c, gdb-events.h: Regenerate.
7779 * gdbarch.sh (XMALLOC): Delete macro.
7780 * gdbarch.c: Regenerate.
7781 * serial.c (XMALLOC): Delete macro.
7782 * ui-file.c (XMALLOC): Ditto.
7783 * ser-unix.h (XMALLOC): Ditto.
7784 * sh-tdep.c (XMALLOC): Ditto.
7785 * ui-out.c (XMALLOC): Ditto.
7786 * utils.c (XMALLOC): Ditto.
7787 * i386-tdep.c (XMALLOC): Ditto.
7788 * gdb-events.c (XMALLOC): Ditto.
7789 * d10v-tdep.c (XMALLOC): Ditto.
7790 * cli-out.c (XMALLOC): Ditto.
7792 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7793 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7794 * ui-file.c, ui-out.c: Ditto.
7796 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7798 * command.h (struct cmd_list_element): Add field context.
7799 (set_cmd_context, get_cmd_context): Declare.
7800 * cli/cli-decode.h: Ditto.
7801 * cli/cli-decode.c (get_cmd_context): New function.
7802 (set_cmd_context): New function.
7803 (add_cmd): Initialize context.
7804 Part of fixing PR gdb/145 and PR gdb/146.
7806 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7808 * cli/cli-decode.c (cmd_type): New function.
7809 * command.h (cmd_type): Declare.
7810 * infrun.c (set_schedlock_func): Call function cmd_type.
7811 * kod.c (kod_set_os): Call cmd_type.
7812 * cris-tdep.c (cris_version_update): Use function cmd_type.
7813 (cris_mode_update, cris_abi_update): Ditto.
7815 * command.h: (execute_cmd_post_hook): Declare.
7816 (execute_cmd_pre_hook): Declare.
7817 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7818 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7819 functions. Execute pre/post hook while ensuring that afterwords
7821 * top.c (execute_command): Use execute_cmd_post_hook, and
7822 execute_cmd_pre_hook to execute pre/post commands.
7823 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7825 (hook_stop_stub): Call execute_cmd_pre_hook.
7827 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7829 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7830 set'' and this leads to a core dump. Move xstrdup of
7831 operating_system to after check that it is not NULL.
7833 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7835 * kod.c (kod_set_os): Remove unnecessary check that
7836 ``command->type'' is set_cmd.
7838 * valprint.c (set_input_radix): Use input_radix.
7839 (set_output_radix): Use output_radix.
7840 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7843 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7845 * value.h (struct value): Delete field ``substring_addr''. Change
7846 aligner fields to force_doublest_align, force_longest_align,
7847 force_core_addr_align and force_pointer_aligh.
7849 * value.h (struct value): Fix typo in above change.
7851 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7853 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7854 to fix internal_error from ``maintenance print architecture''.
7856 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7858 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7859 for gcc versions after gcc-2.8.1.
7861 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7863 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7864 for method resolution. Restore adjustment of ``this'' pointer after
7865 calling value_struct_elt, which was accidentally removed during the
7868 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7870 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7872 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7874 * value.h (value_of_register): Update.
7876 2002-03-14 Richard Henderson <rth@redhat.com>
7878 * configure.in: Detect declaration for canonicalize_file_name.
7879 * utils.c (canonicalize_file_name): Declare, if needed.
7880 (gdb_realpath): Prefer realpath if available and usable.
7881 * config.in, configure: Rebuild.
7883 2002-03-14 Richard Henderson <rth@redhat.com>
7885 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7886 a constant array bound.
7888 * MAINTAINERS: Add myself to write-after-approval.
7890 2002-03-14 Michael Snyder <msnyder@redhat.com>
7892 * symfile.c (syms_from_objfile): Return immediately if no syms.
7893 (symbol_file_add): Return immediately if no syms.
7894 (find_sym_fns): Return immediately if no syms.
7896 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7898 * gdbserver/remote-util.c (remote_open): Print remote-side's
7899 IP address when remote debugging over the network.
7901 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7903 * config/sparc/fbsd.mh: Fix copyright.
7904 * config/sparc/fbsd.mt: Likewise.
7906 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7908 * MAINTAINERS: Fix typo in name of gdb warnings option.
7909 (x86-64): Fix formating so that this can be parsed by awk.
7911 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7913 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7914 * defs.h: Include "gdb/signals.h".
7915 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7917 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7919 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7920 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7923 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7924 Don Howard <dhoward@redhat.com>
7926 * mips-tdep.c (ST0_FR): Define.
7927 (mips2_fp_compat): New function, temporarily disabled.
7928 (mips_read_fp_register_single): New function.
7929 (mips_read_fp_register_double): New function.
7930 (mips_print_register): Use them.
7931 (do_fp_register_row): Likewise.
7933 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7935 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7938 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7940 * stabsread.c (read_member_functions): Fix is_stub test for
7941 static member functions, improve comment.
7943 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7945 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7946 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7947 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7948 commands that set boolean values.
7949 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7950 (arm_rdi_resume): Always initialize PC.
7951 (arm_rdi_open): Don't use rslt as a boolean.
7952 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7953 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7954 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7955 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7957 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7959 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7960 * configure: Rebuilt.
7962 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7964 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7965 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7967 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7969 * cli/cli-decode.c (set_cmd_completer): New function.
7970 * command.h (set_cmd_completer): Declare.
7971 * cli/cli-decode.h (set_cmd_completer): Ditto.
7973 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7974 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7975 * win32-nat.c (_initialize_inftarg): Ditto.
7976 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7977 * proc-api.c (_initialize_proc_api): Ditto.
7978 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7979 * source.c (_initialize_source): Ditto.
7980 * exec.c (_initialize_exec): Ditto.
7981 * solib.c (_initialize_solib): Ditto.
7982 * top.c (init_main): Ditto.
7983 * tracepoint.c (_initialize_tracepoint): Ditto.
7984 * symfile.c (_initialize_symfile): Ditto.
7985 * printcmd.c (_initialize_printcmd): Ditto.
7986 * infcmd.c (_initialize_infcmd): Ditto.
7987 * corefile.c (_initialize_core): Ditto.
7989 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7991 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
7993 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7995 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
7997 2002-03-05 Andrew Cagney <ac131313@redhat.com>
7999 * NEWS: Update headings, 5.2 has branched.
8001 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8003 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8004 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8005 (register_addr, REGISTER_RAW_SIZE): Likewise.
8006 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8007 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8009 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8011 * MAINTAINERS (x86-64): Add myself.
8012 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8013 changed value_ptr -> struct value *
8015 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8017 * configure.host (sparc64-*-freebsd): Add.
8018 * configure.tgt: Likewise.
8019 * config/sparc/fbsd.mh: New file.
8020 * config/sparc/fbsd.mt: Likewise.
8021 * config/sparc/nm-fbsd.h: Likewise.
8022 * config/sparc/tm-fbsd.h: Likewise.
8024 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8026 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8027 regformats/reg-s390x.dat.
8029 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8031 * utils.c: Add FIXME explaining true/false problem.
8033 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8035 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8037 2002-02-28 Michael Chastain <mec@shout.net>
8039 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8041 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8043 * gdbserver/linux-s390-low.c: New file.
8044 * regformats/reg-s390.dat: New file.
8045 * regformats/reg-s390x.dat: New file.
8046 * gdbserver/configure.srv: Add S/390.
8047 * gdbserver/Makefile.in: Add S/390.
8048 * configure.tgt: Enable gdbserver for S/390.
8050 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8052 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8053 first line of the doc string for "info dos", except at the end of
8054 the sentence, since the short help stops at the first period.
8056 2002-02-28 Jason Merrill <jason@redhat.com>
8058 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8060 2002-02-27 Fred Fish <fnf@redhat.com>
8062 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8063 comment (dumy -> dummy).
8065 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8067 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8069 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8071 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8073 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8075 * gdbserver/acconfig.h: New file.
8076 * gdbserver/i387-fp.c: New file.
8077 * gdbserver/i387-fp.h: New file.
8078 * gdbserver/linux-x86-64.c: New file.
8079 * regformats/reg-x86-64.dat: New file.
8080 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8081 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8082 * gdbserver/configure.in: Add support for regsets.
8083 * gdbserver/config.in: Regenerate.
8084 * gdbserver/configure: Regenerate.
8085 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8086 * gdbserver/linux-low.h: New file.
8087 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8089 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8090 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8091 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8092 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8093 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8094 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8095 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8096 "i387-fp.h". Add PTRACE_GETREGS and friends.
8097 * gdbserver/regcache.c (supply_register): New function.
8098 (supply_register_by_name): New function.
8099 (collect_register): New function.
8100 (collect_register_by_name): New function.
8102 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8104 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8105 (config.status): Add configure.srv dependency.
8106 (server_h): Add config.h dependency.
8108 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8110 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8111 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8112 * gdbserver/configure.srv: Change i386-*-linux* to use
8115 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8117 * x86-64-tdep.c: Re-indent. Update copyright date.
8119 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8121 From Michal Ludvig <mludvig@suse.cz>:
8122 * x86-64-tdep.c (value.h): Delete.
8123 (gdb_assert.h): Include.
8124 (x86_64_register_convert_to_virtual,
8125 x86_64_register_convert_to_raw ): Add check which lets only
8126 floating-point values to be converted.
8127 (value_push): Delete.
8128 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8129 (i386_gdbarch_init): Number of register_bytes fixed.
8131 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8133 * MAINTAINERS: Add x86-64 target.
8135 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8137 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8138 * osfsolib.c (solib_map_sections): Ditto.
8139 * irix5-nat.c (solib_map_sections): Ditto.
8140 * corelow.c (gdb_check_format): Ditto.
8141 * symfile.c (symfile_bfd_open): Ditto.
8142 * solib.c (solib_map_sections): Ditto.
8145 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8147 * remote.c (_initialize_remote): By default, disable ``e'' and
8148 ``E'' step out-of-range packets.
8150 2002-02-26 Andreas Schwab <schwab@suse.de>
8152 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8153 m68k_linux_frame_saved_pc.
8154 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8156 (SIGCONTEXT_PC_OFFSET): Remove.
8157 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8158 m68k_linux_sigtramp_saved_pc): New functions.
8159 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8160 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8161 (UCONTEXT_PC_OFFSET): Define.
8162 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8163 non-RT and RT signal trampolines.
8165 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8167 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8168 (TARGET_NBPG, STACK_END_ADDR): Delete
8169 (VARIABLES_INSIDE_BLOCK): Delete.
8171 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8173 * utils.c (perror_with_name): Make string parameter constant.
8174 (print_sys_errmsg): Ditto.
8176 * defs.h (perror_with_name): Update.
8177 (print_sys_errmsg): Update.
8180 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8182 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8183 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8185 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8187 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8188 if it already matches the current architecture from the exec file.
8189 Include arch-utils.h for gdbarch_info_init prototype.
8190 * Makefile.in (rs6000-nat.o): Update dependencies.
8192 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8194 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8195 list of exported variables.
8197 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8199 * gdbserver/configure.srv: New file.
8200 * gdbserver/configure.in: Use configure.srv instead
8201 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8203 * gdbserver/configure: Regenerated.
8204 * gdbserver/terminal.h: New file.
8205 * gdbserver/Makefile.in: Update for configure changes. Remove
8206 more unneeded include paths.
8208 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8210 From wiz at danbala:
8211 * config/sparc/tm-sp64.h: Fix grammar and typos.
8214 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8216 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8217 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8218 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8219 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8220 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8221 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8222 * s390-tdep.c: Ditto.
8223 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8224 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8225 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8226 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8227 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8228 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8229 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8230 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8231 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8232 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8235 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8237 * lin-thread.c: Delete file.
8238 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8239 to gdb_proc_service.h.
8240 * configure: Re-generate.
8242 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8243 * serial.c (serial_open): Delete check for "ocd".
8246 * Makefile.in (linux-thread.o): Delete target.
8247 * linux-thread.c: Delete file.
8249 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8250 renamed SH files to be consistent.
8252 * symtab.c (sort_search_symbols): Use xfree.
8254 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8256 * arm-linux-tdep.c (arm_linux_init_abi): Register
8257 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8258 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8259 definition with undef, since we don't want the sysvr4 definition.
8260 (SKIP_TRAMPOLINE_CODE): Likewise.
8262 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8264 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8266 * configure.in: (AC_CHECK_FUNCS) Added test for
8267 canonicalize_file_name Regenerated.
8268 * config.in, configure: Regenerated.
8269 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8270 defined use canonicalize_file_name.
8272 2002-02-23 Michael Chastain <mec@shout.net>
8274 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8276 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8278 * README: Remove references to cygnus.com.
8279 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8280 dot com'' form. Remove references to cygnus.com and sourceware.
8282 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8284 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8285 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8286 1003.1-2001 no longer allows "head -1".
8287 * gdb/Makefile.in (version.c): Likewise.
8288 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8289 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8290 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8292 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8294 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8295 * command.h (cmd_cfunc_eq): Declare.
8296 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8298 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8299 ``struct cmd_list_element *''.
8300 * cli/cli-cmds.c (is_complete_command): Update. Use
8302 * top.c (execute_command): Pass the command to
8303 is_complete_command.
8304 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8306 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8308 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8309 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8310 architecture defines.
8311 * s390-tdep.c (s390_gdbarch_init): Likewise.
8313 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8315 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8316 (arm_linux_push_arguments): Likewise.
8317 (arm_linux_init_abi): Register them. Also register linux-specific
8319 (find_minsym_and_objfile): Use strcmp, not STREQ.
8320 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8321 (arm_linux_call_dummy_words): Delete declaration.
8322 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8323 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8325 (LOWEST_PC): Delete.
8327 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8329 * maint.c (print_section_info): Do not prepend `0x' to filepos
8330 output, it will be handled by local_hex_string_custom.
8332 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8334 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8335 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8336 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8338 2002-02-22 Jim Blandy <jimb@redhat.com>
8340 Indicate that the bcache functions don't change the strings
8342 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8343 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8345 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8347 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8349 2002-02-21 Christopher Faylor <cgf@redhat.com>
8351 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8352 find the complete path to a loaded DLL.
8354 2002-02-21 Fred Fish <fnf@redhat.com>
8356 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8357 that marks the end of the range of a function, enter a line number
8358 entry that has a line number of zero and a PC offset that matches
8359 the end of the function. This starts a range of PC's for which no
8360 line number information is known.
8361 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8362 PC's for which no line number info is found (line number is zero)
8363 then we didn't find any valid line information.
8364 * symtab.h: Document use of zero line number entry.
8366 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8368 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8369 (have_ptrace_getvrregs): Define for run time checks.
8370 (gdb_vrregset_t): New type for Altivec register handling.
8371 (fetch_register, store_register): Fetch/store altivec register
8373 (fetch_altivec_register, store_altivec_register): New functions.
8374 (supply_vrregset, fill_vrregset): New functions.
8375 (fetch_altivec_registers, store_altivec_registers): New functions.
8376 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8379 2002-02-21 Jiri Smid <smid@suse.cz>
8381 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8383 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8385 * Makefile.in (armnbsd-nat.o): Update dependencies.
8386 * armnbsd-nat.c (supply_gregset): New function. Common code to
8387 supply the integer register set.
8388 (supply_fparegset): New function. Similar for FPA registers.
8389 (fetch_regs, fetch_fp_regs): Use them.
8390 (fetch_core_registers): Likewise.
8391 (fetch_elfcore_registers): New function.
8392 (arm_netbsd_elfcore_fns): New core-file type specification.
8393 (_initialize_arm_netbsd_nat): Register it.
8395 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8397 * armnbsd-nat.c: Include gdbcore.h.
8398 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8399 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8400 'void' to declaration, to shut up ARI.
8401 (fetch_core_registers): Make static. Rewrite using supply_register.
8402 (arm_netbsd_core_fns): New core-file type specification.
8403 (_initialize_arm_netbsd_nat): New function.
8405 2002-02-21 Christopher Faylor <cgf@redhat.com>
8407 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8410 2002-02-20 Christopher Faylor <cgf@redhat.com>
8412 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8415 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8417 * jv-exp.y (parse_number): Change type of implicit longs
8418 to builtin_type_uint64.
8420 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8422 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8423 to be an integer instead of a `union wait'.
8425 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8427 * mips-linux-nat.c: Call the operating system GNU/Linux.
8428 * mips-linux-tdep.c: Likewise.
8429 * mips-tdep.c: Likewise.
8431 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8434 * jv-exp.y (parse_number): Handle 64-bit integers.
8436 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8438 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8439 AC_STDC_HEADERS to AC_HEADER_STDC.
8440 * gdbserver/configure: Regenerated.
8442 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8444 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8446 * sparc-tdep.c (get_longjmp_target): Likewise.
8448 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8450 * News: Add news about ARM and Multi-arch. Mention the new target
8453 2002-02-19 Jim Blandy <jimb@redhat.com>
8455 * stabsread.c (error_type_complaint): Improve error message.
8457 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8459 * gdbserver/README: Update documentation.
8460 * gdbserver/configure.in: Update configury to match documentation.
8461 * gdbserver/Makefile.in: Likewise.
8462 * gdbserver/configure: Regenerated.
8463 * gdbserver/aclocal.m4: New file, generated by aclocal.
8464 * gdbserver/config.in: New file, generated by autoheader.
8466 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8468 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8471 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8473 * arm-tdep.h (enum arm_float_model): New enum.
8474 (struct gdbarch_tdep): Add fp_model.
8475 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8476 up floating-point conversions until we know the floating-point model
8477 in use by the inferior. Don't complain about being unable to
8478 determine the ABI of the inferior when we don't have one.
8479 (arm_extract_return_value): Support different floating-point models.
8480 (arm_store_return_value): Likewise.
8481 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8483 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8485 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8487 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8488 of ``current_gdbarch''.
8490 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8492 * armnbsd-nat.c : ANSIfy all function declarations.
8493 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8494 (fetch_inferior_registers): Re-implement in terms of above.
8495 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8496 (store_inferior_registers): Re-implement in terms of above.
8498 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8500 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8502 * arm-linux-tdep.c: Likewise.
8503 * config/arm/tm-linux.h: Likewise.
8505 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8507 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8508 * config/arm/nbsd.mt (TM_FILE): Delete.
8509 * config/arm/tm-nbsd.h: Delete.
8511 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8513 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8514 Initialize CALL_DUMMY_LENGTH.
8516 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8518 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8520 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8521 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8522 defines one thing and that is incorrect for this port.
8523 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8525 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8527 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8529 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8531 * win32-nat.c (display_selector): New function. Displays information
8532 about the information returned by GetThreadSelectorEntry API function.
8533 (display_selectors): New function. Displays the infomation of
8534 the selector given as argument, or of CS, DS ans FS selectors
8535 if no argument is given.
8536 ( _initialize_inftarg): Add "w32" as info prefix command.
8537 Add "info w32 selector" as command calling display_selectors.
8539 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8541 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8542 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8545 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8547 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8549 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8551 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8552 (arm_fix_call_dummy): Call it.
8553 (arm_call_dummy_breakpoint_offset): Delete.
8554 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8555 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8557 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8559 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8560 Default to func_frame_chain_valid.
8561 * gdbarch.h, gdbarch.c: Re-generate.
8562 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8564 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8566 * ppc-linux-nat.c: Update copyright.
8567 (fetch_register, store_register): Add tid parameter, don't compute
8569 (fetch_ppc_registers, store_ppc_registers): Add tid
8570 parameter. Pass it along to callees.
8571 (fetch_inferior_registers, store_inferior_registers): Compute tid
8572 here, and pass it to calleed functions.
8573 (fill_gregset, supply_fpregset): Clean up formatting.
8575 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8577 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8578 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8580 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8582 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8583 * gdbarch.c gdbarch.h: Regenerate.
8584 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8586 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8587 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8588 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8590 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8591 * arm-tdep.c (arm_get_longjmp_target): New function.
8592 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8593 this to a positive value register arm_get_longjmp_target as the
8595 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8596 (arm_linux_init_abi): Set up longjmp description in tdep.
8597 * armnbsd-nat.c (get_longjmp_target): Delete.
8598 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8599 description in tdep.
8600 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8601 (get_longjmp_target): Delete declaration.
8602 (GET_LONGJMP_TARGET): Delete.
8603 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8604 (GET_LONGJMP_TARGET): Delete.
8606 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8608 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8609 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8610 of ``current_gdbarch''.
8612 2002-02-17 Tom Tromey <tromey@redhat.com>
8614 * cli/cli-cmds.c (compare_strings): New function.
8615 (complete_command): Only print each unique item once.
8616 * completer.h (complete_line): Declare.
8617 * completer.c (complete_line): New function.
8618 (line_completion_function): Use it.
8620 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8622 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8623 * gdbarch.h, gdbarch.c: Re-generate.
8625 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8627 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8629 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8631 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8632 * valops.c (value_arg_coerce): Don't take the address of a reference
8633 to convert an argument to a reference.
8635 2002-02-15 Christopher Faylor <cgf@redhat.com>
8637 * win32-nat.c (get_image_name): New function.
8638 (handle_load_dll): Use get_image_name function.
8639 (get_child_debug_event): Avoid registering debug events until possibly
8640 execed process is started.
8641 (child_create_inferior): Allow invocation via shell so that command
8642 line redirection, etc. works ok.
8643 (_initialize_inftarg): Add new command: "set shell" to control whether
8644 a shell is used to start a process.
8646 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8648 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8649 instead of find_register_by_number.
8650 (cannot_store_register): Likewise.
8652 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8654 * dwarf2read.c: Replace fprintf (stderr, ...) by
8655 fprintf_unfiltered (gdb_stderr, ...).
8657 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8659 * gdbserver/gdbserver.1: Document --attach.
8661 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8663 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8665 * arm-tdep.c (arm_default_arm_le_breakpoint)
8666 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8667 (arm_default_thumb_be_breakpoint): New. Initialize them from
8668 traditional breakpoint defines.
8669 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8670 (arm_gdbarch_init): Initialize new breakpoint variables.
8671 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8672 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8673 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8674 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8676 (arm_netbsd_init_abi_common): ... here; new function.
8677 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8678 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8679 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8680 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8682 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8684 * arm-tdep.h (enum arm_abi): New enum.
8685 (struct gdbarch_tdep): New structure.
8686 (LOWEST_PC): Provide a default.
8687 (arm_gdbarch_register_os_abi): Declare new function.
8688 * arm-tdep.c (arm_abi_names): New array.
8689 (process_note_abi_tag_sections): New function.
8690 (get_elfosabi): New function.
8691 (arm_gdbarch_register_os_abi): New function.
8692 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8693 support for that ABI has been built in, then call the appropriate
8694 configuration routine. Use gdbarch_num_regs() to get the number
8696 (arm_dump_tdep): New function.
8697 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8698 place-holder functions.
8699 (_initialize_arm_tdep): Register them.
8700 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8702 * armnbsd-tdep.c: New file.
8703 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8704 * config/arm/nbsd.mt (TDEPFILES): Add it.
8705 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8707 * armnbsd-nat.c: Include regcache.h.
8708 * Makefile.in (armnbsd-nat.o): Update dependency list.
8710 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8712 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8714 * gdbserver/Makefile.in: Fix typos in target rules.
8716 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8718 Fix part of PR gdb/267.
8719 * linespec.c (find_methods): Handle constructors specially for now.
8721 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8723 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8725 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8726 standard_coerce_float_to_double().
8728 2002-02-14 Christopher Faylor <cgf@redhat.com>
8730 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8733 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8735 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8736 find_variant_by_name, because it confuses the multiarch
8737 framework. Return NULL if there isn't an architecture with the
8738 user supplied name, instead of forcing a different one without
8739 recording the change with the multiarch machinery.
8740 (find_variant_by_name): Delete.
8742 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8744 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8745 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8747 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8749 * stack.c (print_frame_info_base): When calling
8750 print_frame_info_listing_hook, set current_source_symtab.
8752 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8754 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8755 and remove unused $(INCLUDE_DIR).
8756 Add regcache.c to OBS.
8757 Add generated register protocol files to clean target.
8758 Update dependencies for new objects, obsolete old target code.
8760 * gdbserver/linux-low.c: Remove all platform-specific code to
8761 new files. Remove various dead code. Update to use regcache
8763 * gdbserver/remote-utils.c (fromhex): Add return statement
8765 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8767 (input_interrupt): Add integer parameter to match prototype
8768 of a signal handler.
8769 (outreg): Use register_data ().
8770 (prepare_resume_reply): Use gdbserver_expedite_regs.
8771 * gdbserver/server.c (main): Dynamically allocate own_buf because
8772 PBUFSIZ is no longer constant. Use registers_to_string () and
8773 registers_from_string ().
8774 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8775 for error (), fatal (), and warning (). Update definition of
8776 PBUFSIZ to use regcache functionality. Add include guard.
8777 * gdbserver/utils.c (fatal): Add missing ``const''.
8778 (warning): New function.
8780 * regformats/regdat.sh: Include "regcache.h" in generated files.
8781 Provide init_registers () function.
8782 * regformats/regdef.h: Add prototype for set_register_cache ().
8785 * gdbserver/linux-arm-low.c: New file.
8786 * gdbserver/linux-i386-low.c: New file.
8787 * gdbserver/linux-ia64-low.c: New file.
8788 * gdbserver/linux-m68k-low.c: New file.
8789 * gdbserver/linux-mips-low.c: New file.
8790 * gdbserver/linux-ppc-low.c: New file.
8791 * gdbserver/linux-sh-low.c: New file.
8793 * gdbserver/regcache.c: New file.
8794 * gdbserver/regcache.h: New file.
8796 * gdbserver/low-linux.c: Removed obsolete file.
8798 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8800 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8801 * config/i386/linux.mt: Likewise.
8802 * config/ia64/linux.mt: Likewise.
8803 * config/m68k/linux.mh: Likewise.
8804 * config/powerpc/linux.mh: Likewise.
8805 * config/mips/linux.mt: Likewise.
8807 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8809 * config/i386/i386lynx.mh: Mark gdbserver variables
8810 as (currently) obsolete for this target.
8811 * config/i386/nbsd.mt: Likewise.
8812 * config/i386/nbsdelf.mt: Likewise.
8813 * config/m32r/m32r.mt: Likewise.
8814 * config/m68k/m68klynx.mh: Likewise.
8815 * config/m68k/nbsd.mt: Likewise.
8816 * config/m68k/sun3os4.mh: Likewise.
8817 * config/mips/vr5000.mt: Likewise.
8818 * config/ns32k/nbsd.mt: Likewise.
8819 * config/pa/hppabsd.mh: Likewise.
8820 * config/pa/hppaosf.mh: Likewise.
8821 * config/powerpc/nbsd.mt: Likewise.
8822 * config/rs6000/rs6000lynx.mh: Likewise.
8823 * config/s390/s390.mt: Likewise.
8824 * config/s390/s390x.mt: Likewise.
8825 * config/sparc/sparclynx.mh: Likewise.
8826 * config/sparc/sun4os4.mh: Likewise.
8827 * config/i386/x86-64linux.mt: Likewise.
8828 * config/sparc/linux.mh: Likewise.
8830 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8832 * configure.tgt: Configure gdbserver only for known working
8833 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8834 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8835 SUBDIRS if it is configured. Update comment for ${nativefile}.
8836 * configure: Regenerated.
8838 2002-02-13 Michael Snyder <msnyder@redhat.com>
8840 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8842 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8843 (default_gcore_mach): Just return 0, work around a problem in bfd.
8844 (default_gcore_target): OK to return NULL if exec_bfd is null.
8845 (make_mem_sec): Use a cast, avoid a warning.
8847 * procfs.c (find_memory_regions_callback): Use a cast instead of
8848 calling host_pointer_to_address (which complains if
8849 sizeof (host pointer) != sizeof (target pointer)).
8850 (procfs_make_note_section): Avoid overflow in psargs string.
8852 * procfs.c (procfs_make_note_section): Make the default
8853 implementation return an error.
8855 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8857 * procfs.c (procfs_make_note_section): Provide a default definition
8858 (for alpha-dec-osf4.0f). Fix typos.
8860 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8862 * linux-proc.c: Add include of regcache.h.
8863 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8865 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8867 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8868 * memattr.c (create_mem_region): Disallow useless empty region.
8869 Regions are half-open intervals, so allow [A..B) [B..C) as
8872 2002-02-13 Michael Chastain <mec@shout.net>
8874 * defs.h: Kill CONST_PTR.
8875 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8876 * c-lang.c (c_builtin_types): Likewise.
8877 * ch-lang.c (ch_builtin_types): Likewise.
8878 * f-lang.c (f_builtin_types): Likewise.
8879 * language.c (unknown_builtin_types): Likewise.
8880 * m2-lang.c (m2_builtin_types): Likewise.
8881 * p-lang.c (pascal_builtin_types): Likewise.
8882 * scm-lang.c (c_builtin_types): Likewise.
8884 2002-02-13 Keith Seitz <keiths@redhat.com>
8886 * arm-tdep.h (arm_get_next_pc): Add declaration.
8888 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8890 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8891 with other related struct-returning functions.
8892 (arm_extract_struct_value_address): New function.
8893 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8894 initialize float_format, double_format and long_double_format as
8895 appropriate to the endianness of the target.
8896 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8897 (arm_use_struct_convention): Delete declaration.
8898 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8900 2002-02-13 Keith Seitz <keiths@redhat.com>
8902 * defs.h (core_addr_to_string_nz): New function.
8904 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8906 Apply missing bits of 2002-01-15 patch.
8907 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8908 (fill_fpregset): Use i387_fill_fsave.
8910 2002-02-12 Keith Seitz <keiths@redhat.com>
8912 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8913 (core_addr_to_string_nz): New function.
8915 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8917 * arm-linux-nat.c: Really include arm-tdep.h.
8918 * config/arm/tm-linux.h (struct type, struct value): Declare.
8920 2002-02-11 Michael Snyder <msnyder@redhat.com>
8922 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8923 (gcore section): Ifdef for Solaris and Unixware only.
8924 (procfs_do_thread_registers): Unixware needs one lwpstatus
8925 per thread (not one prstatus or pstatus).
8926 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8927 not over all gdb threads. For unixware, call elfcore_write_pstatus
8928 once before iterating over threads.
8930 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8932 * arm-tdep.h: New file.
8933 * arm-tdep.c: Include arm-tdep.h.
8934 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8935 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8936 (arm_print_float_info, arm_register_type, convert_to_extended)
8937 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8938 (arm_extract_return_value, arm_register_name): Make static.
8939 (arm_software_single_step): Similarly. Fix types in declaration.
8940 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8941 (arm_store_return_value, arm_store_struct_return): New functions.
8942 (arm_gdbarch_init): Register the above functions. Also register
8943 call_dummy_start_offset, sizeof_call_dummy_words,
8944 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8945 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8946 max_register_virtual_size, register_size. Set up
8947 prologue_cache.saved_regs here, rather than ...
8948 (_initialize_arm_tdep): ... here.
8949 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8951 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8952 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8953 (arm_print_float_info, arm_register_type, convert_to_extended)
8954 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8955 (arm_extract_return_value, arm_register_name): Delete declarations.
8956 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8957 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8958 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8959 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8960 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8961 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8962 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8963 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8964 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8965 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8966 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8967 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8969 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8970 * remote-rdi.c remote-rdp.c: Likewise.
8971 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8972 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8973 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8976 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8977 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8978 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8979 from non-ARM_ prefixed definitions.
8980 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8982 * remote-rdi.c remote-rdp.c: Likewise.
8983 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
8985 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8987 * arm-tdep.c (arm_frameless_function_invocation)
8988 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8989 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8990 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8991 (arm_pop_frame, arm_get_next_pc): Make static.
8992 (arm_gdbarch_init): Register above in gdbarch structure.
8993 (arm_read_fp): Renamed from arm_target_read_fp.
8994 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
8995 * config/arm/tm-arm.h (arm_frameless_function_invocation)
8996 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
8997 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
8998 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
8999 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9000 (arm_pc_is_thumb_dummy): Delete declarations.
9001 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9002 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9003 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9004 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9006 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9008 * symtab.c (compare_search_syms): New function.
9009 (sort_search_symbols): New function.
9010 (search_symbols): Sort symbols after searching rather than
9013 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9015 * NEWS: Linux -> GNU/Linux.
9017 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9019 * gdbarch.sh: For for level one methods, disallow a definition
9020 when partially multi-arched. Add comments explaining rationale.
9021 * gdbarch.h: Re-generate.
9023 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9025 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9028 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9030 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9032 * gdbarch.c: Re-generate.
9034 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9036 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9037 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9042 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9044 (PUSH_ARGUMENTS): Switch to using predefault.
9045 * gdbarch.c: Regenerate.
9047 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9049 * valops.c (PUSH_ARGUMENTS): Delete definition.
9050 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9051 partial. Default to default_push_arguments.
9052 * gdbarch.h, gdbarch.c: Regenerate.
9054 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9056 * defs.h (throw_exception): Rename return_to_top_level. Update
9058 * utils.c (error_stream, internal_verror, quit): Ditto.
9059 * top.c (throw_exception, catcher): Ditto.
9060 * sparclet-rom.c (sparclet_load): Ditto.
9061 * remote.c (interrupt_query, minitelnet): Ditto.
9062 * remote-sds.c (interrupt_query): Ditto.
9063 * remote-mips.c (mips_error, mips_kill): Ditto.
9064 * ocd.c (interrupt_query): Ditto.
9065 * monitor.c (monitor_interrupt_query): Ditto.
9066 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9067 * target.h: Update comment.
9069 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9071 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9073 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9074 default_double_format.
9075 * gdbarch.h, gdbarch.c: Re-generate.
9076 * findvar.c (floatformat_unknown): Delete variable definition.
9077 * doublest.h (floatformat_unknown): Delete variable declaration.
9079 2002-02-09 Jim Blandy <jimb@redhat.com>
9081 * stabsread.c (read_type): Add code to parse Sun's syntax for
9082 prototyped function types.
9084 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9086 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9087 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9089 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9091 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9092 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9093 now _initialize_xcoffsolib gets called again and overrides the
9094 commands from solib.c in a native configuration.
9096 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9098 * doublest.c (store_typed_floating): Don't try to return a value.
9101 2002-02-08 Jim Blandy <jimb@redhat.com>
9103 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9104 is prototyped and has no arguments, print its argument list as
9107 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9109 * MAINTAINERS (write-after-approval): Add myself.
9110 (paper-trail): I've escaped!
9112 2002-02-08 Christopher Faylor <cgf@redhat.com>
9114 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9116 (_initialize_check_for_gdb_ini): Ditto.
9118 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9120 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9121 xaprintf -> xasprintf.
9123 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9125 * win32-nat.c: Remove use of printf and sprintf functions.
9127 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9129 * arm-tdep.c (arm_frame_chain_valid): Make static.
9130 (arm_push_arguments): Likewise.
9131 (arm_gdbarch_init): New function.
9132 (_initialize_arm_tdep): Call it.
9133 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9134 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9135 (FRAME_CHAIN_VALID): Delete.
9136 (arm_frame_chain_valid): Delete declaration.
9137 (PUSH_ARGUMENTS): Delete.
9138 (arm_push_arguments): Delete declaration.
9139 (CALL_DUMMY_P): Delete.
9141 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9142 Corinna Vinschen <vinschen@redhat.com>
9144 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9145 on builtin float types.
9147 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9149 * utils.c: Include <curses.h> before "bfd.h".
9150 * tui/tui-hooks.c: Likewise.
9151 * tui/tui.c: Likewise.
9152 * tui/tuiCommand.c: Likewise.
9153 * tui/tuiData.c: Likewise.
9154 * tui/tuiDataWin.c: Likewise.
9155 * tui/tuiDisassem.c: Likewise.
9156 * tui/tuiGeneralWin.c: Likewise.
9157 * tui/tuiIO.c: Likewise.
9158 * tui/tuiLayout.c: Likewise.
9159 * tui/tuiRegs.c: Likewise.
9160 * tui/tuiSource.c: Likewise.
9161 * tui/tuiSourceWin.c: Likewise.
9162 * tui/tuiStack.c: Likewise.
9163 * tui/tuiWin.c: Likewise.
9165 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9167 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9168 to include space for pseudoregs as well. Update loops accordingly.
9169 (sh_fp_frame_init_saved_regs): Ditto.
9170 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9172 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9174 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9175 Add Richard Earnshaw to Arm maintainers.
9177 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9179 * defs.h (warning_begin): Delete declaration.
9181 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9184 2002-02-07 Michael Snyder <msnyder@redhat.com>
9186 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9187 Logic bug, remove misplaced else.
9189 2002-02-07 Klee Dienes <klee@apple.com>
9191 * fork-inferior.c (fork_inferior): Add '!' to the list of
9192 characters that need to be quoted when building a string for the
9193 shell. Quote '!' specifically with a backslash, since CSH chokes
9194 when trying to evaluate "str!str".
9196 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9198 * rdi-share/host.h: Only provide a typedef for bool if it is not
9201 2002-02-04 Michael Snyder <msnyder@redhat.com>
9203 * breakpoint.h (enum bptype): Add new overlay event bp type.
9204 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9206 * breakpoint.c (create_internal_breakpoint): New function.
9207 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9208 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9209 (create_thread_event_breakpoint): Ditto.
9210 (create_solib_event_breakpoint): Ditto.
9211 (create_overlay_event_breakpoint): New function.
9212 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9213 (update_breakpoints_after_exec): Delete and re-initialize
9214 overlay event breakpoints after an exec. Add FIXME comment
9215 about longjmp breakpoint.
9216 (print_it_typical): Ignore overlay event breakpoints.
9217 (print_one_breakpoint): Ditto.
9219 (bpstat_what): Do not stop for overlay event breakpoints.
9220 (delete_breakpoint): Don't delete overlay event breakpoints.
9221 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9222 (breakpoint_re_set): Re-create overlay event breakpoint.
9224 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9225 (overlay_manual_command): Disable overlay breakpoints.
9226 (overlay_off_command): Disable overlay breakpoints.
9228 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9230 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9231 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9232 to here from config/tm-arm.h.
9233 (coff_sym_is_thumb): Make static.
9234 (arm_elf_make_msymbol_special): New function.
9235 (arm_coff_make_msymbol_special): New function.
9236 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9237 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9238 (coff_sym_is_thumb): Delete declaration.
9239 (arm_elf_make_msymbol_special): Declare.
9240 (arm_coff_make_msymbol_special): Declare.
9241 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9242 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9244 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9246 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9248 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9250 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9251 * gdbarch.c gdbarch.h: Regenerate.
9252 * arch-utils.c (default_print_float_info): New function.
9253 * arch-utils.h (default_print_float_info): Prototype it.
9254 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9255 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9256 (PRINT_FLOAT_INFO): Document it.
9258 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9259 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9260 (PRINT_FLOAT_INFO): Define.
9262 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9264 * win32-nat.c (_initialize_check_for_gdb_ini):
9265 Add typecast to sprintf argument to suppress a warning.
9267 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9269 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9270 to allow easier handling of pass state.
9271 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9272 that gives exception name and address.
9273 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9274 and set last_sig value to ourstatus->value.sig. Some missing
9276 (child_continue): Correctly report continue_status.
9277 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9278 TARGET_SIGNAL_0 (new default value).
9279 (child_resume): consider sig argument passed to decide if
9280 the exception should be passed to debuggee or not.
9282 2002-02-05 Michael Snyder <msnyder@redhat.com>
9284 * regcache.c (fetch_register): Call target_fetch_register
9285 only if we don't call FETCH_PSEUDO_REGISTER.
9286 (store_register): Call target_store_register only if we
9287 don't call STORE_PSEUDO_REGISTER.
9289 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9291 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9292 ELF_MAKE_MSYMBOL_SPECIAL.
9293 * gdbarch.c, gdbarch.h: Regenerate.
9294 * arch-utils.c (default_make_msymbol_special): New function.
9295 * arch-utils.h (default_make_msymbol_special): Export.
9296 * elfread.c (elf_symtab_read): Compile use of
9297 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9299 * coffread.c (coff_symtab_read): Ditto, for
9300 COFF_MAKE_MSYMBOL_SPECIAL.
9302 2002-02-05 Jim Blandy <jimb@redhat.com>
9304 * solib-svr4.c (svr4_truncate_ptr): New function.
9305 (svr4_relocate_section_addresses): Do the address arithmetic with
9306 the appropriate truncation for target addresses, even when
9307 CORE_ADDR is larger than a target address.
9309 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9311 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9314 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9316 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9319 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9321 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9323 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9325 * gdbserver/linux-low.c: Remove unused include files.
9327 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9329 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9330 (read_inferior_memory): Use it.
9331 (write_inferior_memory): Likewise.
9333 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9335 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9336 grubbing through sys_errlist.
9338 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9340 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9342 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9343 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9345 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9347 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9348 (do_sfunc, set_cmd_sfunc): New functions.
9350 * command.h (struct cmd_list_element): Add field func.
9351 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9352 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9353 * cli/cli-decode.h: Ditto.
9355 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9356 (help_all, help_cmd_list): Ditto.
9357 (find_cmd, complete_on_cmdlist): Ditto.
9358 * top.c (execute_command): Ditto.
9360 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9363 * infcmd.c (notice_args_read): Fix function signature.
9365 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9366 * cli/cli-decode.c (add_set_cmd): Ditto.
9367 * utils.c (initialize_utils): Ditto.
9368 * maint.c (_initialize_maint_cmds): Ditto.
9369 * infrun.c (_initialize_infrun): Ditto.
9370 * demangle.c (_initialize_demangler): Ditto.
9371 * remote.c (add_packet_config_cmd): Ditto.
9372 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9373 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9374 * proc-api.c (_initialize_proc_api): Ditto.
9375 * kod.c (_initialize_kod): Ditto.
9376 * valprint.c (_initialize_valprint): Ditto.
9377 * top.c (init_main): Ditto.
9378 * infcmd.c (_initialize_infcmd): Ditto.
9379 * corefile.c (_initialize_core): Ditto.
9380 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9381 * arch-utils.c (initialize_current_architecture): Ditto.
9382 (_initialize_gdbarch_utils): Ditto.
9383 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9385 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9386 * wince.c (_initialize_inftarg): Ditto.
9387 * symfile.c (_initialize_symfile): Ditto.
9388 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9389 * language.c (_initialize_language): Ditto.
9390 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9392 2002-02-04 Michael Snyder <msnyder@redhat.com>
9394 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9396 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9398 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9399 Add rules for building the register data files.
9401 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9403 * regformats/regdat.sh: Add braces to the definition of
9404 expedite_regs_${arch}.
9406 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9408 * regformats/regdef.h (struct reg): Add comment describing the
9409 requirements for offset and size fields.
9411 2002-02-04 Andreas Schwab <schwab@suse.de>
9413 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9414 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9416 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9418 * gdbarch.sh (copyright): Update years in generated header.
9419 (SMASH_TEXT_ADDRESS): Add rule.
9420 * gdbarch.h, gdbarch.c: Re-generate.
9421 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9422 * dbxread.c: Likewise.
9423 * dwarfread.c: Likewise.
9424 * elfread.c: Likewise.
9425 * somread.c: Likewise.
9427 * arm-tdep.c (arm_smash_text_address): New function.
9428 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9430 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9432 Add support for hardware watchpoints on win32 native.
9433 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9434 CONTEXT_DEBUG_REGISTERS.
9435 (dr variable): New variable. Static array containing a local copy
9437 (debug_registers_changed): New variable. Reflects when debug registers
9438 are changed and need to be written to inferior.
9439 (debug_registers_used): New variable. Reflects when any debug register
9440 was set, used when new threads are created.
9441 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9443 (thread_rec): Set dr array if id is the thread of current_event .
9444 (child_continue, child_resume): Change the debug registers for all
9445 threads if debug_registers_changed.
9446 (child_add_thread): Change the debug registers if debug_registers_used.
9447 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9448 Link nm.h to new nm-cygwin.h file.
9449 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9450 of hardware registers.
9452 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9454 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9455 Restore behavour broken by 2002-01-20 Andrew Cagney
9456 <ac131313@redhat.com> IEEE_FLOAT removal.
9458 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9460 * c-valprint.c (c_val_print): Pass a proper valaddr to
9461 cp_print_class_method.
9462 * valops.c (search_struct_method): If there is only one method
9463 and args is NULL, return that method.
9465 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9467 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9468 accessing tag_name directly.
9470 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9472 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9473 of accessing tag_name directly.
9475 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9478 * gdbtypes.c (replace_type): New function.
9479 * gdbtypes.h (replace_type): Add prototype.
9480 * stabsread.c (read_type): Use replace_type.
9482 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9484 * Makefile.in (memattr.o): Add missing dependencies rule.
9486 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9488 * breakpoint.c (break_at_finish_command): Really export.
9489 (break_at_finish_at_depth_command): Ditto.
9490 (tbreak_at_finish_command): Ditto.
9491 * hppa-tdep.c: Include completer.h.
9492 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9493 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9495 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9497 * utils.c (do_write): New function.
9498 (error_stream): Rewrite combining the code from error_begin and
9500 (verror): Rewrite using error_stream.
9501 (error_begin): Delete function.
9503 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9505 * utils.c (error_begin): Make static.
9506 * defs.h (error_begin): Delete declaration.
9508 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9509 (decode_line_1): Use cplusplus_error instead of error_begin,
9510 cplusplus_hint and return_to_top_level.
9511 * coffread.c (coff_symfile_read): Use error instead of error_begin
9512 and return_to_top_level.
9513 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9515 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9517 * language.h (type_error, range_error): Make string parameter
9519 * language.c (warning_pre_print): Delete extern declaration.
9520 * dwarfread.c (warning_pre_print): Ditto.
9521 * language.c (type_error, range_error): Rewrite to use verror and
9522 vwarning instead of warning_begin.
9524 2002-02-01 Michael Snyder <msnyder@redhat.com>
9526 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9527 (set_ignore_count): Move misplaced comment back where it belongs.
9529 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9531 * command.h (NO_FUNCTION): Delete macro.
9532 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9533 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9534 * tracepoint.c (_initialize_tracepoint): Ditto.
9535 * cli/cli-decode.c (add_set_cmd): Ditto.
9536 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9538 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9540 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9541 Update ``this'' pointer when calling virtual functions.
9543 2002-02-01 Michael Snyder <msnyder@redhat.com>
9545 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9546 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9548 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9550 * regformats/reg-arm.dat: New file.
9551 * regformats/reg-i386.dat: New file.
9552 * regformats/reg-ia64.dat: New file.
9553 * regformats/reg-m68k.dat: New file.
9554 * regformats/reg-mips.dat: New file.
9555 * regformats/reg-ppc.dat: New file.
9556 * regformats/reg-sh.dat: New file.
9557 * regformats/regdef.h: New file.
9558 * regformats/regdat.sh: New file.
9560 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9562 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9563 (arm_frame_args_address, arm_frame_locals_address): New functions.
9564 (arm_frame_num_args): New function.
9565 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9566 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9567 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9569 2002-01-31 Michael Snyder <msnyder@redhat.com>
9571 * breakpoint.c (break_at_finish_command): Export.
9572 (break_at_finish_at_depth_command): Export.
9573 (tbreak_at_finish_command): Export.
9574 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9575 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9576 "tbreak" commands, which are HPPA specific.
9578 * printcmd.c (disassemble_command): Remove an ancient
9579 artifact of an old merge.
9581 * symfile.h (enum overlay_debugging_state):
9582 Define enum constant values for overlay mode.
9583 * symfile.c (overlay_debugging): Use enums instead of literals.
9584 (overlay_is_mapped, overlay_auto_command,
9585 overlay_manual_command): Ditto.
9587 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9588 breakpoint_here_p, breakpoint_inserted_here_p,
9589 breakpoint_thread_match, bpstat_stop_status,
9590 describe_other_breakpoints, check_duplicates, clear_command):
9591 Coding standard fixes.
9593 * target.c (target_xfer_memory): Add spaces, coding standard.
9594 (do_xfer_memory): Add missing line to trust-readonly
9595 code: check bfd SEC_READONLY flag for section.
9597 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9599 * PROBLEMS: Fix typo, 5.1->5.1.1.
9601 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9603 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9604 data symbols, since we search based on textlow and texthigh.
9605 (find_pc_sect_symtab): Likewise.
9607 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9609 * defs.h (vwarning): Declare.
9610 * utils.c (vwarning): New function.
9611 (warning): Call vwarning.
9612 (warning_begin): Delete function.
9614 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9615 the warning message.
9616 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9619 2002-01-30 Michael Snyder <msnyder@redhat.com>
9621 * NEWS: Mention "set trust-readonly-sections" command.
9622 Mention generate-core-file command.
9624 2002-01-15 Michael Snyder <msnyder@redhat.com>
9626 * target.c: New command, "set trust-readonly-sections on".
9627 (do_xfer_memory): Honor the suggestion to trust readonly sections
9628 by reading them from the object file instead of from the target.
9629 (initialize_targets): Register command "set trust-readonly-sections".
9631 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9633 * parse.c (target_map_name_to_register): Simplify, search regs and
9634 pseudo-regs using a single loop.
9636 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9638 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9640 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9642 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9643 * config/i386/i386v42mp.mh: Add i387-nat.o .
9644 * i386v4-nat.c: Include i387-nat.h.
9645 (supply_fpregset): Use i387_supply_fsave.
9646 (fill_fpregset): Use i387_fill_fsave.
9648 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9650 * arm-tdep.c (arm_call_dummy_words): Define.
9651 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9652 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9653 (CALL_DUMMY_WORDS): Define.
9654 (arm_call_dummy_words): Declare.
9655 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9656 (arm_linux_call_dummy_words): Declare.
9658 2002-01-30 Andreas Schwab <schwab@suse.de>
9660 * m68klinux-nat.c: Fix last change to use regcache_collect
9661 instead of referencing registers[] directly.
9663 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9665 * parse.c (target_map_name_to_register): Delete code wrapped in
9666 #ifdef REGISTER_NAME_ALIAS_HOOK.
9668 2002-01-28 Michael Snyder <msnyder@redhat.com>
9670 * regcache.c (legacy_read_register_gen): Need to be able to
9671 read pseudo-register as well as real register.
9672 (legacy_write_register_gen): Ditto.
9674 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9676 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9677 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9678 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9679 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9680 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9681 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9682 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9683 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9684 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9685 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9686 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9687 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9688 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9689 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9690 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9691 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9692 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9693 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9694 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9695 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9697 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9699 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9700 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9701 (initialize_current_architecture): Update target_byte_order using
9702 information from BFD.
9703 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9704 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9706 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9708 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9709 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9711 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9712 #ifdef INVALID_FLOAT.
9713 * infcmd.c (do_registers_info): Ditto.
9714 * values.c (unpack_double): Ditto. Add comment.
9716 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9717 already commented out.
9719 2002-01-26 Andreas Schwab <schwab@suse.de>
9721 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9722 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9723 registers and add support for PTRACE_GETREGS.
9725 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9727 GDB 5.1.1 released from 5.1 branch.
9728 * NEWS: Add 5.1.1 news.
9729 * README: Sync with 5.1 branch.
9731 2002-01-23 Fred Fish <fnf@redhat.com>
9733 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9734 stabstring on initial malloc. Reallocing will copy it for us,
9737 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9739 * Makefile.in (hpread_h): Delete.
9740 (HFILES_NO_SRCDIR): Remove hpread.h.
9741 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9742 (hpread.o): Update dependencies.
9743 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9745 * hp-psymtab-read.c: Remove file.
9746 * hp-symtab-read.c: Remove file.
9747 * hpread.h: Remove file.
9749 * hpread.c: Merge all contents of hp-psymtab-read.c,
9750 hp-symtab-read.c and hpread.h into this file, as it was prior to
9753 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9754 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9755 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9756 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9758 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9760 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9761 fill_gregset): Call gdbarch_tdep() just once, assign result to
9762 variable and use that, instead of calling the function several
9765 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9767 * configure.host: Accept sparcv9 as alias for sparc64.
9768 * configure.tgt: Likewise.
9770 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9772 * solib-aix5.c (build_so_list_from_mapfile)
9773 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9774 arguments is not reversed.
9775 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9776 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9778 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9780 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9781 modified version of obsolete sh_fetch_pseudo_register.
9782 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9783 (sh4_register_read): New function.
9784 (sh_pseudo_register_write): New function. Renamed and modified
9785 version of obsolete sh_store_pseudo_register.
9786 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9787 (sh4_register_write): New function.
9788 (sh_gdbarch_init): Remove setting of gdbarch function
9789 fetch_pseudo_register and store_pseudo_register. Remove setting of
9790 register_convert_to_raw, register_convert_to_virtual,
9791 register_convertible.
9792 (sh_sh4_register_convertible): Delete. No longer needed. All is
9793 taken care by architecture specific functions
9794 register_read/register_write.
9795 (sh_sh4_register_convert_to_virtual): Make static.
9796 (sh_sh4_register_convert_to_raw): Ditto.
9798 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9800 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9801 (floatformat_is_nan, floatformat_mantissa): Ditto.
9803 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9804 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9805 builtin_type_ieee_double_little,
9806 builtin_type_ieee_double_littlebyte_bigword,
9807 builtin_type_m68881_ext, builtin_type_i960_ext,
9808 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9809 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9810 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9811 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9813 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9815 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9816 parameter. Set frameless flag if it exists and depended of
9817 whether the scanned function is frameless or not.
9818 (xstormy16_skip_prologue): If function is frameless, return
9819 result of xstormy16_scan_prologue().
9820 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9823 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9825 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9826 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9827 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9828 sh_sh4_register_byte, sh_sh4_register_raw_size,
9829 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9830 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9831 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9832 sh_store_pseudo_register, sh_do_pseudo_register): Call
9833 gdbarch_tdep() just once, assign result to variable and use that,
9834 instead of calling the function several times.
9836 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9838 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9839 macros instead of LAST_FPU_CTRL_REGNUM.
9840 (store_register): Likewise.
9842 2002-01-21 Jim Blandy <jimb@redhat.com>
9844 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9845 is up-to-date before running the program, not just when a program
9848 2002-01-21 Fred Fish <fnf@redhat.com>
9850 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9851 when we have found all instructions we are looking for.
9853 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9855 * arm-tdep.c (arm_register_name): New function.
9856 (arm_registers_names): Make static.
9857 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9858 (arm_register_name): Declare.
9859 (REGISTER_NAME): Use it.
9861 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9862 Kevin Buettner <kevinb@redhat.com>
9864 Convert arm targets to new FRAME interface.
9865 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9866 (arm_frame_find_save_regs): Delete.
9867 (arm_frame_init_saved_regs): New.
9868 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9869 Allocate extra_info as required. Convert all uses of fsr.regs
9870 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9872 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9873 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9874 (check_prologue_cache, save_prologue_cache): Likewise.
9875 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9876 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9877 (FRAME_FIND_SAVED_REGS): Delete.
9878 (arm_frame_find_saved_regs): Delete prototype.
9879 (arm_frame_init_saved_regs): New prototype.
9880 (FRAME_INIT_SAVED_REGS): Define.
9882 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9884 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9886 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9888 From Jeff Law <law@redhat.com>:
9889 * infttrace.c: Include <sys/pstat.h>.
9890 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9891 exec file if the ttrace equivalent fails.
9893 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9895 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9896 (closeLogFile): Ditto.
9898 2002-01-20 Michael Chastain <mec@shout.net>
9900 * top.c (print_gdb_version): Bump copyright year to 2002.
9902 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9904 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9905 Zannoni and Eli Zaretskii.
9907 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9909 * buildsym.c: Update copyright years.
9910 * c-typeprint.c: Likewise.
9911 * dwarf2read.c: Likewise.
9912 * f-typeprint.c: Likewise.
9913 * gdbtypes.c: Likewise.
9914 * gdbtypes.h: Likewise.
9915 * hp-symtab-read.c: Likewise.
9916 * hpread.c: Likewise.
9917 * mdebugread.c: Likewise.
9918 * p-typeprint.c: Likewise.
9920 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9922 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9923 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9924 byte-order selectable.
9925 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9926 * arch-utils.c: Ditto.
9927 (set_endian): Ditto.
9928 (set_endian_from_file): Ditto.
9929 * gdbserver/low-sim.c (create_inferior): Ditto.
9930 * gdbarch.sh: Ditto.
9931 * gdbarch.h: Re-generate.
9932 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9933 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9934 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9935 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9936 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9937 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9938 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9939 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9941 * config/mips/tm-wince.h: Remove #undef of macro
9942 TARGET_BYTE_ORDER_SELECTABLE.
9943 * config/sh/tm-wince.h: Ditto.
9945 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9947 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9948 member function fields. Add accessor macro
9949 TYPE_FN_FIELD_ARTIFICIAL.
9950 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9951 * c-typeprint.c (c_type_print_base): Skip artificial member
9954 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9956 * f-typeprint.c: Delete unused function f_type_print_args.
9957 * p-typeprint.c: Delete unused function pascal_type_print_args.
9959 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9961 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9962 comment. Add ``artificial'' to ``union field_location''.
9964 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9966 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9967 * mdebugread.c (parse_symbol): Likewise.
9968 * stabsread.c (define_symbol): Likewise.
9969 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9970 initializing TYPE_FIELD_BITPOS to n (obsolete).
9971 (hpread_doc_function_type): Likewise.
9972 * hpread.c (hpread_function_type): Likewise.
9974 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9976 * configure.in (host_makefile_frag): Only require a host makefile
9977 fragment when a native build.
9978 * configure: Re-generate.
9980 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9982 * doublest.h (floatformat_from_type): Declare.
9983 * doublest.c (floatformat_from_type): New function.
9984 (convert_typed_floating): Use.
9986 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
9987 call to function floatformat_from_type.
9989 * gdbarch.sh (IEEE_FLOAT): Delete.
9990 * gdbarch.h, gdbarch.c: Re-generate.
9991 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
9992 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
9993 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
9994 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
9995 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
9996 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
9997 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
9998 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
9999 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10000 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10001 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10002 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10004 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10005 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10006 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10007 * sh-tdep.c (sh_gdbarch_init): Ditto.
10008 * mips-tdep.c (mips_gdbarch_init): Ditto.
10009 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10010 * cris-tdep.c (cris_gdbarch_init): Ditto.
10012 2002-01-20 Jiri Smid <smid@suse.cz>
10014 * configure.host, configure.tgt: Support x86-64.
10015 * NEWS: Note new target x86-64.
10017 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10018 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10019 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10020 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10021 x86-64-linux-nat.o): Fix dependencies.
10023 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10025 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10026 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10027 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10028 * config/sparc/xm-sun4os4.h: Delete file.
10029 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10031 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10033 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10034 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10035 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10036 * config/i386/i386lynx.mh (XM_FILE): Delete.
10037 * config/rs6000/xm-rs6000ly.h: Delete file.
10038 * config/sparc/xm-sparclynx.h: Delete file.
10039 * config/m68k/xm-m68klynx.h: Delete file.
10040 * config/i386/xm-i386lynx.h: Delete file.
10041 * config/xm-lynx.h: Delete file.
10042 * config/djgpp/fnchange.lst: Update.
10044 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10046 * alpha-tdep.c (alpha_register_byte): New function.
10047 (alpha_register_raw_size): Ditto.
10048 (alpha_register_virtual_size): Ditto.
10049 (alpha_skip_prologue_internal): Renamed from
10050 alpha_skip_prologue.
10051 (alpha_skip_prologue): New version that calls
10052 alpha_skip_prologue_internal.
10053 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10054 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10055 second argument from alpha_skip_prologue.
10056 (REGISTER_BYTE): Use alpha_register_byte.
10057 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10058 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10059 (FRAMELESS_FUNCTION_INVOCATION): Use
10060 generic_frameless_function_invocation_not.
10061 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10062 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10064 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10066 * config/mips/xm-news-mips.h: Delete file.
10067 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10069 * config/m88k/xm-m88k.h: Delete file.
10070 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10071 * config/m88k/xm-delta88v4.h: Ditto.
10072 * config/m88k/xm-delta88.h: Ditto.
10074 * config/alpha/xm-fbsd.h: Delete file.
10075 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10077 * config/sparc/xm-sparc.h: Delete file.
10078 * Makefile.in (xm-sun4os4.h): Delete dependency.
10079 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10080 * config/sparc/xm-sun4os4.h: Ditto.
10081 * config/sparc/xm-linux.h: Ditto.
10083 * config/i386/xm-windows.h: Delete file.
10085 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10087 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10088 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10090 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10092 * alpha-tdep.c (alpha_call_dummy_words): New.
10093 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10094 (CALL_DUMMY_P): Define.
10095 (CALL_DUMMY_WORDS): Define.
10096 (SIZEOF_CALL_DUMMY_WORDS): Define.
10098 2002-01-19 Per Bothner <per@bothner.com>
10100 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10101 isn't NULL, which can happen with some gcj-3.x-produced code.
10103 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10105 * alpha-tdep.c (alpha_register_virtual_type): New function.
10106 (alpha_init_frame_pc_first): Ditto.
10107 (alpha_fix_call_dummy): Ditto.
10108 (alpha_store_struct_return): Ditto.
10109 (alpha_extract_struct_value_address): Ditto.
10110 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10111 alpha_register_virtual_type.
10112 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10113 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10114 alpha_extract_struct_value_address.
10115 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10116 (INIT_FRAME_PC): Use init_frame_pc_noop.
10117 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10119 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10121 * i386gnu-nat.c: Include "i386-tdep.h".
10122 (fetch_fpregs): Simplify code dealing with uninitialized floating
10123 point states such that it doesn't require FP7_REGNUM.
10125 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10127 * alpha-tdep.c (frame_extra_info): New.
10128 (alpha_find_saved_regs): Make static. Use
10130 (alpha_frame_init_saved_regs): New function.
10131 (alpha_frame_saved_pc): Use frame->extra_info.
10132 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10133 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10134 (init_extra_frame_info): Rename to...
10135 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10136 (alpha_print_extra_frame_info): New function.
10137 (alpha_frame_locals_address): Ditto.
10138 (alpha_frame_args_address): Ditto.
10139 (alpha_pop_frame): Use frame->extra_info.
10140 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10141 alpha_frame_args_address.
10142 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10143 (alpha_find_saved_regs): Remove prototype.
10144 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10145 (EXTRA_FRAME_INFO): Remove.
10146 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10147 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10149 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10151 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10152 (alpha_cannot_fetch_register): Ditto.
10153 (alpha_cannot_store_register): Ditto.
10154 (alpha_register_convertible): Ditto.
10155 (alpha_use_struct_convention): Ditto.
10156 * config/alpha/tm-alpha.h: Update copyright years.
10157 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10158 (INNER_THAN): Use core_addr_lessthan.
10159 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10160 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10161 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10162 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10163 (FRAME_CHAIN): Remove unnecessary cast.
10165 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10167 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10170 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10172 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10173 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10174 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10175 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10176 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10177 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10178 * x86-64-linux-nat.c: Ditto.
10180 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10182 * alpha-tdep.c (alpha_register_name): New function.
10183 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10184 (REGISTER_NAME): Define.
10186 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10188 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10190 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10192 * alpha-tdep.c: Update copyright years.
10193 (alpha_next_pc): New function.
10194 (alpha_software_single_step): Ditto.
10195 * config/alpha/tm-alpha.h: Add prototype for
10196 alpha_software_single_step.
10198 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10200 * alphabsd-nat.c: Update copyright years.
10201 (fill_gregset): Use regcache_collect.
10202 (fill_fpregset): Likewise.
10203 (fetch_inferior_registers): Only fetch integer registers
10204 if requested to do so.
10205 (store_inferior_registers): Only store integer registers
10206 if requested to do so.
10208 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10210 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10211 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10212 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10213 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10214 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10215 * config/arm/linux.mh (XDEPFILES): Delete.
10216 * config/arm/nbsd.mh (XDEPFILES): Delete.
10217 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10218 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10219 * config/i386/i386m3.mh (XDEPFILES): Delete.
10220 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10221 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10222 * config/i386/fbsd.mh (XDEPFILES): Delete.
10223 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10224 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10225 * config/i386/i386v4.mh (XDEPFILES): Delete.
10226 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10227 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10228 * config/i386/i386aix.mh (XDEPFILES): Delete.
10229 * config/i386/go32.mh (XDEPFILES): Delete.
10230 * config/i386/cygwin.mh (XDEPFILES): Delete.
10231 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10232 * config/i386/i386mach.mh (XDEPFILES): Delete.
10233 * config/i386/i386v32.mh (XDEPFILES): Delete.
10234 * config/i386/linux.mh (XDEPFILES): Delete.
10235 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10236 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10237 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10238 * config/i386/i386sco.mh (XDEPFILES): Delete.
10239 * config/i386/i386v.mh (XDEPFILES): Delete.
10240 * config/i386/nbsd.mh (XDEPFILES): Delete.
10241 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10242 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10243 * config/i386/symmetry.mh (XDEPFILES): Delete.
10244 * config/i386/obsd.mh (XDEPFILES): Delete.
10245 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10246 * config/ia64/linux.mh (XDEPFILES): Delete.
10247 * config/ia64/aix.mh (XDEPFILES): Delete.
10248 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10249 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10250 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10251 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10252 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10253 * config/m68k/linux.mh (XDEPFILES): Delete.
10254 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10255 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10256 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10257 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10258 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10259 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10260 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10261 * config/m88k/delta88.mh (XDEPFILES): Delete.
10262 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10263 * config/m88k/m88k.mh (XDEPFILES): Delete.
10264 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10265 * config/mips/linux.mh (XDEPFILES): Delete.
10266 * config/mips/irix6.mh (XDEPFILES): Delete.
10267 * config/mips/irix5.mh (XDEPFILES): Delete.
10268 * config/mips/irix4.mh (XDEPFILES): Delete.
10269 * config/mips/irix3.mh (XDEPFILES): Delete.
10270 * config/mips/decstation.mh (XDEPFILES): Delete.
10271 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10272 (NATDEPFILES): Move core-aout.o to here.
10273 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10274 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10275 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10276 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10277 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10278 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10279 * config/pa/hpux11.mh (XDEPFILES): Delete.
10280 * config/powerpc/aix.mh (XDEPFILES): Delete.
10281 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10282 * config/powerpc/linux.mh (XDEPFILES): Delete.
10283 * config/romp/rtbsd.mh: Rename XDEPFILES.
10284 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10285 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10286 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10287 * config/s390/s390.mh (XDEPFILES): Delete.
10288 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10289 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10290 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10291 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10292 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10293 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10294 * config/sparc/linux.mh (XDEPFILES): Delete.
10295 * config/vax/vaxult.mh (XDEPFILES): Delete.
10296 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10297 * Makefile.in (DEPFILES): Remove XDEPFILES.
10299 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10301 * utils.c (internal_verror): Fix comments, default is yes not no.
10302 Update queries to match. Default to quit and dump core.
10304 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10306 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10308 * defs.h, event-top.c, gdbcmd.h: Ditto.
10309 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10310 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10311 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10312 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10313 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10314 * mi/mi-main.c:Ditto.
10316 * stack.c, symfile.c: Update copyright.
10318 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10320 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10321 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10322 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10323 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10325 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10327 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10328 * gdbserver/low-lynx.c (myattach): Likewise.
10329 * gdbserver/low-nbsd.c (myattach): Likewise.
10330 * gdbserver/low-sim.c (myattach): Likewise.
10331 * gdbserver/low-sparc.c (myattach): Likewise.
10332 * gdbserver/low-sun3.c (myattach): Likewise.
10334 * gdbserver/low-linux.c (myattach): New function.
10336 * gdbserver/server.c (attach_inferior): New function.
10337 (main): Handle "--attach".
10339 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10341 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10344 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10346 * c-typeprint.c (is_type_conversion_operator): Add additional
10347 check for non-conversion operators.
10349 2002-01-15 Michael Snyder <msnyder@redhat.com>
10351 * linux-proc.c: Add "info proc" command, a la procfs.c.
10352 (read_mapping): New function, abstract and re-use code.
10353 (linux_find_memory_regions): Use new func read_mapping.
10354 (linux_info_proc_cmd): New function, implement "info proc".
10355 (_initialize_linux_proc): Add new command "info proc".
10357 2002-01-15 Michael Snyder <msnyder@redhat.com>
10359 * symfile.c (generic_load): Use bfd_map_over_sections method
10360 instead of manipulating bfd structure members directly.
10361 (add_section_size_callback): New function, bfd sections callback
10362 used by generic_load.
10363 (load_sections_callback): New function, bfd sections callback
10364 used by generic_load.
10366 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10368 [Based on work by Jim Blandy]
10369 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10370 (builtin_type_vec128): Export.
10371 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10373 (builtin_type_vec128): New builtin type for 128 bit vector
10375 (build_gdbtypes): Initialize builtin_type_v16qi and
10376 builtin_type_v8hi. Create the vec128 register builtin type
10378 (build_builtin_type_vec128): New function.
10379 (_initialize_gdbtypes): Register builtin_type_v16qi and
10380 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10381 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10382 AltiVec register to new builtin type.
10384 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10386 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10389 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10391 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10392 CLEAN_UP_REGISTER_VALUE.
10393 * regcache.c (supply_register): Update only call.
10395 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10397 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10398 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10399 a29k-*-vxworks* targets as obsolete.
10401 2002-01-14 Michael Snyder <msnyder@redhat.com>
10403 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10404 until we can resolve portability issues.
10405 * gregset.h: Remove references to fpxregs.
10406 * gcore.c (gcore_command): Initialize note_sec to NULL.
10408 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10410 * signals.c (target_signal_to_name): Rewrite. Only use
10411 signals[].name when in bounds and non-NULL.
10413 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10415 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10416 * signals.c (target_signal_to_name): Verify that SIG is within the
10417 bounds of the signals array.
10419 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10421 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10423 2002-01-13 Keith Seitz <keiths@redhat.com>
10425 * stack.c (print_frame_info_base): Print the frame's pc
10426 only if when print_frame_info_listing_hook is not defined.
10428 2002-01-13 Keith Seitz <keiths@redhat.com>
10430 * varobj.c (varobj_set_value): Make sure that there were no
10431 errors evaluating the object before attempting to set its
10433 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10434 so this offset adjustment is no longer necessary.
10435 (create_child): Don't set the error flag if the child is
10436 a CPLUS_FAKE_CHILD.
10437 (value_of_child): If value_fetch_lazy fails, return NULL
10438 so that callers will be notified that an error occurred.
10439 (c_value_of_variable): Delay check of variable's validity
10440 until later. We actually want all structs and unions to have
10442 Do not return "???" for variables which could not be evaluated.
10443 This error condition must be returned to the caller so that it
10444 can get the error condition from gdb.
10445 (cplus_name_of_child): Adjust index for vptr before figuring
10446 out the name of the child.
10447 (cplus_value_of_child): If a child's (real) parent is not valid,
10448 don't even bother trying to give a value for it. Just return
10449 an error. Change all instances in this function.
10450 (cplus_type_of_child): If our parent is one of the "fake"
10451 parents, we need to get at the type of the real parent, and
10452 derive the child's true type using this information.
10454 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10456 From 2002-01-09 John Marshall <johnm@falch.net>:
10457 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10458 sources.redhat.com, and tweak some related URLs which had
10459 suffered from linkrot.
10461 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10464 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10465 structures passed in registers.
10467 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10469 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10470 white space which prevented compilation. Reported by DSK
10471 <dsk@student.unsw.edu.au>.
10473 2002-01-11 Michael Snyder <msnyder@redhat.com>
10475 * symfile.c (build_section_addr_info_from_section_tab):
10476 Use bfd access method instead of manipulating bfd directly.
10477 (syms_from_objfile): Ditto.
10478 (simple_overlay_update_1): Ditto.
10479 (simple_overlay_update): Ditto.
10480 (generic_load): Ditto.
10481 (overlay_unmapped_address): FIXME comment, bfd access methods.
10482 (sections_overlap): FIXME comment, bfd access methods.
10483 (pc_in_mapped_range): FIXME comment, bfd access methods.
10484 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10485 (section_is_mapped): FIXME comment, bfd access methods.
10486 (section_is_overlay): FIXME comment, bfd access methods.
10488 * symfile.c (generic_load): Whitespace and long line cleanups.
10489 Remove duplicate variable, change several local variables to
10490 more appropriate data types.
10491 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10493 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10495 From Peter Schauer:
10496 * language.c (longest_local_hex_string_custom): Use phex_nz to
10497 convert NUM to a hex string.
10499 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10501 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10503 Update Copyright year.
10505 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10507 * language.c (longest_raw_hex_string): Delete unused function.
10509 2002-01-11 Petr Sorfa <petrs@caldera.com>
10511 * MAINTAINERS (write-after-approval): Add myself.
10512 * dwarf2read.c (read_tag_string_type): Handling of
10514 (read_tag_string_type): FORTRAN fix to prevent propagation of
10516 (set_cu_language): Handling of DW_LANG_Fortran95
10518 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10520 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10521 GETPID(inferior_ptid).
10522 (store_inferior_registers): Likewise.
10524 2002-01-10 Jason Merrill <jason@redhat.com>
10526 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10529 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10531 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10532 and bfd/elf32-sh-nbsd.c.
10534 2002-01-10 Michael Snyder <msnyder@redhat.com>
10536 * NEWS: Mention --pid and corefile/proc-id behavior change.
10538 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10539 * gcore.c: Include cli/cli-decode.h instead of command.h.
10541 * main.c (captured_main): Add new command line option "--pid".
10542 If the second command line argument (following the symbol-file)
10543 begins with a digit, try to attach to it before trying to open
10545 (print_gdb_help): Document the "--pid" argument.
10547 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10549 * completer.c (command_completer): New function.
10551 * completer.h <command_completer>: Add prototype.
10553 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10554 completer for the "help" command.
10556 2002-01-09 Jason Merrill <jason@redhat.com>
10558 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10560 2002-01-09 Michael Snyder <msnyder@redhat.com>
10562 * i386-linux-nat.c (fill_fpxregset): Make global.
10563 (store_fpxregset): Ditto.
10565 * gregset.h (gdb_fpxregset_t): Define.
10566 (supply_fpxregset): Prototype.
10567 (fill_fpxregset): Prototype.
10569 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10571 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10573 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10574 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10575 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10577 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10579 * MAINTAINERS: Update target maintainer rules so that any
10580 Maintainer can approve a tested patch for a maintenance-only
10583 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10585 * MAINTAINERS (write-after-approval): Add myself.
10587 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10590 2002-01-08 Michael Snyder <msnyder@redhat.com>
10592 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10593 real name of the executable, rather than the /proc name.
10595 2002-01-03 Michael Snyder <msnyder@redhat.com>
10597 Implement a "generate-core-file" command in gdb, save target state.
10598 * gcore.c: New file. Implement new command 'generate-core-file'.
10599 Save a corefile image of the current state of the inferior.
10600 * linux-proc.c: Add linux-specific code for saving corefiles.
10601 * target.h (struct target_ops): Add new target vectors for saving
10602 corefiles; to_find_memory_regions and to_make_corefile_notes.
10603 (target_find_memory_regions): New macro.
10604 (target_make_corefile_notes): New macro.
10605 * target.c (update_current_target): Inherit new target methods.
10606 (dummy_find_memory_regions): New place-holder method.
10607 (dummy_make_corefile_notes): New place-holder method.
10608 (init_dummy_target): Initialize new dummy target vectors.
10609 * exec.c (exec_set_find_memory_regions): New function.
10610 Allow the exec_ops vector for memory regions to be taken over.
10611 (exec_make_note_section): New function, target vector method.
10612 * defs.h (exec_set_find_memory_regions): Export prototype.
10613 * procfs.c (proc_find_memory_regions): New function, corefile method.
10614 (procfs_make_note_section): New function, corefile method.
10615 (init_procfs_ops): Set new target vector pointers.
10616 (find_memory_regions_callback): New function.
10617 (procfs_do_thread_registers): New function.
10618 (procfs_corefile_thread_callback): New function.
10619 * sol-thread.c (sol_find_memory_regions): New function.
10620 (sol_make_note_section): New function.
10621 (init_sol_thread_ops): Initialize new target vectors.
10622 * inftarg.c (inftarg_set_find_memory_regions): New function.
10623 Allow to_find_memory_regions vector to be taken over.
10624 (inftarg_set_make_corefile_notes): New function.
10625 Allow to_make_corefile_notes vector to be taken over.
10626 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10627 interface layer if not target_has_execution (may be a corefile).
10628 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10629 * config/sparc/sun4sol2.mh: Ditto.
10630 * config/alpha/alpha-linux.mh: Ditto.
10631 * config/arm/linux.mh: Ditto.
10632 * config/i386/x86-64linux.mh: Ditto.
10633 * config/ia64/linux.mh: Ditto.
10634 * config/m68k/linux.mh: Ditto.
10635 * config/mips/linux.mh: Ditto.
10636 * config/powerpc/linux.mh: Ditto.
10637 * config/sparc/linux.mh: Ditto.
10639 2002-01-07 Michael Snyder <msnyder@redhat.com>
10641 * arm-linux-nat.c: Remove references to regcache.c internal data
10642 (registers[] and register_valid[]).
10644 2002-01-07 Michael Snyder <msnyder@redhat.com>
10646 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10647 so that attaching to a pid will automatically read the process's
10648 symbol file and shlibs.
10649 * Makefile.in: Add rule for linux-proc.o.
10650 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10651 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10652 * config/arm/linux.mh: Ditto.
10653 * config/i386/linux.mh: Ditto.
10654 * config/i386/x86-64linux.mh: Ditto.
10655 * config/ia64/linux.mh: Ditto.
10656 * config/m68k/linux.mh: Ditto.
10657 * config/mips/linux.mh: Ditto.
10658 * config/powerpc/linux.mh: Ditto.
10659 * config/sparc/linux.mh: Ditto.
10661 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10663 * win32-nat.c: Add i386-tdep.h dependency.
10665 2002-01-07 Michael Snyder <msnyder@redhat.com>
10667 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10668 instead of bfd_get_arch_size. Don't bail out just because
10669 there's no exec_bfd.
10671 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10672 * p-valprint.c (pascal_object_print_value): Ditto.
10673 * somread.c (som_symtab_read): Ditto.
10674 * symfile.c (simple_free_overlay_region_table): Ditto.
10675 * valops.c (value_assign): Ditto.
10677 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10678 use tilde_expand and strerror for opening save-tracepoints file.
10680 * thread-db.c (thread_db_new_objfile): Indendation fix.
10682 * infptrace.c (GDB_MAX_ALLOCA): New define.
10683 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10684 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10685 can be overridden with whatever value is appropriate to the host).
10686 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10687 alloca to allocate potentially large buffer.
10688 * rs6000-nat.c (child_xfer_memory): Ditto.
10689 * symm-nat.c (child_xfer_memory): Ditto.
10690 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10692 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10694 From Nick Clifton <nickc@redhat.com>
10695 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10697 2002-01-07 Michael Snyder <msnyder@redhat.com>
10699 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10700 Don't use exec_bfd if it's NULL.
10702 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10704 * valops.c (value_arg_coerce): Fix formatting.
10706 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10708 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10709 * gnu-nat.c: Ditto.
10711 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10713 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10714 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10715 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10716 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10717 z8k-coff have not been multi-arched. Update z8k-coff build
10720 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10722 * MAINTAINERS: Mark a29k target as obsolete.
10723 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10724 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10726 * NEWS: Note that a29k targets are obsolete.
10727 * a29k-tdep.c: Mark as obsolete.
10728 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10729 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10730 a29k-*-vxworks* targets as obsolete.
10731 * remote-adapt.c: Obsolete.
10732 * remote-eb.c: Obsolete.
10733 * remote-mm.c: Obsolete.
10734 * remote-udi.c: Obsolete.
10735 * config/a29k/a29k-udi.mt: Obsolete.
10736 * config/a29k/a29k.mt: Obsolete.
10737 * config/a29k/tm-a29k.h: Obsolete.
10738 * config/a29k/tm-vx29k.h: Obsolete.
10739 * config/a29k/vx29k.mt: Obsolete.
10741 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10743 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10744 with BFD_ENDIAN_BIG.
10746 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10748 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10749 * configure, config.in: Re-generate.
10750 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10751 * defs.h: Do not include <endian.h>.
10753 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10755 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10756 * config.in: Regenerate.
10757 * configure.in: Update copyright years.
10758 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10759 * configure: Regenerate.
10760 * i386bsd-nat.c: Update copyright years.
10761 (fill_gregset): Use regcache_collect.
10762 (fetch_inferior_registers): Only fetch integer registers
10763 if requested to do so. Add support for XMM registers
10764 using PT_GETXMMREGS.
10765 (store_inferior_registers): Only store integer registers
10766 if requested to do so. Add support for XMM registers
10767 using PT_SETXMMREGS.
10768 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10769 (store_inferior_registers): Remove.
10770 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10771 (fetch_elfcore_registers): New function.
10772 (i386nbsd_elfcore_fns): New.
10773 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10774 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10776 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10777 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10778 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10779 * config/i386/tm-nbsd.h: Update copyright years.
10780 (HAVE_SSE_REGS): Define.
10781 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10782 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10783 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10784 (SIGCONTEXT_PC_OFFSET): Remove.
10785 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10787 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10789 * configure.tgt: Remove powerpc-*-macos* target.
10790 * config/m68k/xm-mpw.h: Delete file.
10791 * config/xm-mpw.h: Delete file.
10792 * ser-mac.c: Delete file.
10793 * mpw-make.sed: Delete file.
10794 * mpw-config.in: Delete file.
10795 * mac-xdep.c: Delete file.
10796 * mac-gdb.r: Delete file.
10797 * mac-defs.h: Delete file.
10798 * mac-nat.c: Delete file.
10799 * config/powerpc/macos.mh: Delete file.
10800 * config/powerpc/macos.mt: Delete file.
10801 * config/powerpc/nm-macos.h: Delete file.
10802 * config/powerpc/tm-macos.h: Delete file.
10803 * source.c (openp, open_source_file): Remove obsolete code.
10804 * top.c (gdb_readline): Ditto.
10805 * utils.c (query): Ditto.
10806 * event-top.c (display_gdb_prompt): Ditto.
10807 * Makefile.in (ser-mac.o): Delete obsolete target.
10810 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10812 * defs.h (BIG_ENDIAN): Delete macro definition.
10813 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10814 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10815 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10816 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10817 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10818 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10819 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10820 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10821 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10822 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10823 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10824 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10825 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10826 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10827 * gdbarch.c: Re-generate.
10829 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10831 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10834 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10836 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10838 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10840 * value.h (value_ptr): Delete typedef.
10842 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10844 * i386nbsd-nat.c: Update copyright years.
10845 Include i386-tdep.h.
10847 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10849 * stabsread.c: Update copyright years.
10851 From Debashis Mahata <debashis.mahata@wipro.com>:
10852 (read_struct_fields): Deal with Sun C compiler erroneous stab
10853 output for structs and unions.
10856 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10858 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10861 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10863 * cp-abi.c: Fix whitespace.
10864 (baseclass_offset): New wrapper function.
10865 * cp-abi.h (baseclass_offset): Add prototype.
10866 (struct cp_abi_ops): Add baseclass_offset pointer.
10868 * valops.c (vb_match): Move to...
10869 * gnu-v2-abi.c (vb_match): here.
10870 * valops.c (baseclass_offset): Move to...
10871 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10873 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10875 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10876 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10877 * hpacc-abi.c (init_hpacc_ops): Likewise.
10879 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10881 * valops.c (find_overload_match): Accept obj as a
10882 reference parameter. Update it before returning.
10883 * value.h (find_overload_match): Update prototype.
10884 * eval.c (evaluate_subexp_standard): Pass object to
10885 find_overload_match by reference.
10887 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10889 * valarith.c: Replace value_ptr with struct value pointer. Remove
10890 register attribute from value declarations.
10893 * scm-lang.c (scm_lookup_name): Ditto.
10895 2002-01-03 Michael Snyder <msnyder@redhat.com>
10897 Abstract the functionality of iterating over mapped memory
10898 regions into a general purpose iterator function.
10899 * procfs.c (iterate_over_mappings): New function, general purpose
10900 iterator for memory sections.
10901 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10902 (solib_mappings_callback): New function, callback for above.
10903 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10904 (info_mappings_callback): New function, callback for above.
10906 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10908 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10910 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10911 * i386-tdep.c: Include "elf-bfd.h".
10912 (process_note_abi_tag_sections): New function.
10913 (i386_gdbarch_init): Add code to recognize various OS/ABI
10916 * maint.c (_initialize_maint_cmds): Add missing \ in
10919 For older changes see ChangeLog-2001
10925 version-control: never