1 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3 * exec.c (xfer_memory): Fix compilation warning with old versions
5 * tracepoint.c (trace_find_tracepoint_command): Likewise.
7 2002-09-12 David Carlton <carlton@math.stanford.edu>
9 * symtab.h: Run through gdb_indent.h.
10 Add 2002 to Copyright year list.
12 2002-09-12 Alan Modra <amodra@bigpond.net.au>
14 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
16 * MAINTAINERS: Add myself to write after approval list.
18 2002-09-11 J. Brobecker <brobecker@gnat.com>
20 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
22 2002-09-11 J. Brobecker <brobecker@gnat.com>
24 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
27 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
29 * procfs.c (do_detach): Clear current signal, not just fault.
30 Corrects problem with breakpoint trap signal leaking to detached
33 2002-09-10 Michael Snyder <msnyder@redhat.com>
35 * buildsym.c (finish_block): Protect against null pointer.
37 2002-09-10 Andrew Cagney <cagney@redhat.com>
39 * infcmd.c (default_print_registers_info): Send all output to
40 ``file'' instead of ``gdb_stdout''.
42 2002-09-10 Michael Snyder <msnyder@redhat.com>
44 * mips-tdep.c (mips_extract_struct_value_address): Make val a
45 LONGEST, and use signed register read (addresses are sign-
48 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
50 * event-loop.c (gdb_do_one_event): Make public.
51 * event-loop.h (gdb_do_one_event): Declare.
53 2002-09-10 Jeff Law <law@redhat.com>
55 * infttrace.c (child_resume): Simplify and rework to avoid
58 2002-09-09 Fred Fish <fnf@intrinsity.com>
60 * printcmd.c (print_scalar_formatted): "len" is the number of
61 target bytes, NOT the number of target bits.
63 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
65 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
66 * top.c (init_main): Set rl_terminal_name.
68 2002-09-08 Aidan Skinner <aidan@velvet.net>
70 * ada-lang.c (ada_array_bound, ada_type_match,
71 _initialize_ada_language): Fix K&R definitions.
72 * ada-tasks.c (get_current_task): Fix K&R definitions.
73 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
75 2002-09-07 Christopher Faylor <cgf@redhat.com>
77 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
80 2002-09-06 Mark Kettenis <kettenis@gnu.org>
82 * i386-tdep.c (i386_register_virtual_type,
83 i386_register_convertible, i386_register_convert_to_virtual,
84 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
85 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
86 (i386_gdbarch_init): Fix comment. Add comments on calls that set
87 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
88 Don't set push_arguments twice.
90 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
91 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
92 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
94 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
96 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
98 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
101 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
102 * gdbarch.h, gdbarch.c: Re-generate.
103 * blockframe.c (find_pc_sect_partial_function): Convert to use
104 SIGTRAMP_START_P predicate.
106 2002-09-05 Michael Snyder <msnyder@redhat.com>
108 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
109 generic_dummy_frame method and old method. Also distinguish
110 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
111 (arm_extract_return_value): Use new regcache method.
113 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
114 adjustment that doesn't conform to the ABI.
115 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
116 saved regcache, not from current regcache.
118 2002-09-05 Andrew Cagney <ac131313@redhat.com>
120 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
123 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
125 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
126 if arm_apcs_32 is false.
128 2002-09-04 Andrew Cagney <ac131313@redhat.com>
130 GDB 5.3 branch created.
132 2002-09-03 Theodore A. Roth <troth@verinet.com>
134 * gdb/avr-tdep.c (avr_gdbarch_init): Use
135 generic_unwind_get_saved_register.
137 2002-09-03 David Carlton <carlton@math.stanford.edu>
139 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
140 argument (PR gdb/653). Update call to smash_to_method_type.
141 (read_structure_scope): Update call to dwarf2_add_member_fn.
143 2002-09-03 Michal Ludvig <mludvig@suse.cz>
145 * x86-64-linux-tdep.c: Include gdb_string.h
146 * x86-64-linux-nat.c: Ditto.
148 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
150 * ada-exp.y (yyname, yyrule): Remap global variables that appear
151 when YYDEBUG is set to 1.
154 * jv-exp.y: Likewise.
155 * m2-exp.y: Likewise.
158 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
160 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
162 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
163 solib_svr4_fetch_link_map_offsets to
164 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
165 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
166 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
167 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
168 solib-svr4.o, and solib-legacy.o.
169 * config/i386/tm-nbsd.h: Include solib.h.
171 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
173 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
174 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
175 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
176 comment noting that this needs its own target configuration.
177 * config/i386/nbsd.mt: New file.
178 * config/i386/nbsdaout.mt: Remove.
179 * config/i386/nbsdelf.mt: Ditto.
180 * config/i386/tm-nbsdaout.h: Ditto.
182 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
184 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
185 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
186 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
188 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
189 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
190 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
192 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
194 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
195 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
196 * i386-tdep.h (i386bsd_init_abi): New prototype.
197 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
198 function declaration.
199 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
200 for NetBSD-a.out or NetBSD-ELF.
201 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
202 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
203 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
204 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
206 (i386nbsd_pc_in_sigtramp): New function.
207 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
208 i386nbsd_pc_in_sigtramp.
209 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
210 and i386nbsdelf_init_abi OS ABI handlers.
211 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
212 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
214 2002-09-02 Mark Kettenis <kettenis@gnu.org>
216 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
217 registers if the target really has them.
219 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
221 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
224 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
226 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
228 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
229 (alphanbsd_skip_sigtramp_frame): New functions.
230 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
231 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
232 to alphanbsd_sigcontext_addr.
234 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
236 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
238 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
239 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
241 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
242 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
243 * nbsd-tdep.c: Include gdb_string.h.
244 (nbsd_pc_in_sigtramp): New function.
245 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
246 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
247 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
248 ppcnbsd_pc_in_sigtramp.
249 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
250 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
251 shnbsd_pc_in_sigtramp.
252 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
253 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
254 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
256 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
258 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
260 (insert_breakpoints): set val field of watchpoints if NULL.
263 2002-08-29 Jim Blandy <jimb@redhat.com>
265 * symtab.c (lookup_symbol_aux): In the cases where we find a
266 minimal symbol of an appropriate name and use its address to
267 select a symtab to read and search, use `name' (as passed to us)
268 as the demangled name when searching the symtab's global and
269 static blocks, not the minsym's name.
271 2002-08-29 Keith Seitz <keiths@redhat.com>
273 * stack.c (print_frame_info_base): Always set current_source_symtab
274 and current_source_line.
276 2002-08-29 Donn Terry <donnte@microsoft.com>
278 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
280 2002-08-28 Keith Seitz <keiths@redhat.com>
282 * stack.c (select_frame): Add FIXME concerning selected-frame
284 (select_frame_command): Send selected-frame-level-changed
285 event notification, but only if the level actually changed.
286 (up_silently_base): Add selected-frame-level-changed event
288 (down_silently_base): Likewise.
290 2002-08-28 Andrew Cagney <ac131313@redhat.com>
292 * Makefile.in: Update dependencies for all gdb/*.c files.
294 2002-08-27 Tom Tromey <tromey@redhat.com>
296 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
297 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
299 * i387-tdep.c: Include gdb_string.h.
301 * i386-linux-nat.c: Likewise.
302 * lin-lwp.c: Likewise.
303 * ax-gdb.c: Likewise.
304 * signals/signals.c: Likewise.
305 * jv-valprint.c: Likewise.
306 * p-lang.c: Likewise.
307 * c-valprint.c: Likewise.
308 * cp-abi.c: Likewise.
310 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
312 * cli/cli-script.h (copy_command_lines): Export.
313 * breakpoint.c: Include cli/cli-script.h.
314 * Makefile.in (breakpoint.o): Update dependencies.
316 2002-08-26 Michael Snyder <msnyder@redhat.com>
318 * breakpoint.c (insert_breakpoints): Protect all references
319 to 'process_warning'. Shorten long lines.
321 2002-08-26 Joel Brobecker <brobecker@gnat.com>
323 * cli/cli-script.c (copy_command_lines): New function.
324 * defs.h (copy_command_lines): Export.
325 * testsuite/gdb.base/commands.exp: New tests for commands
326 attached to a temporary breakpoint, and for commands that
327 delete the breakpoint they are attached to.
329 2002-08-26 Michael Snyder <msnyder@redhat.com>
331 * breakpoint.c (bpstat_stop_status): Instead of copying the
332 pointer to the breakpoint commands struct, make a new copy
333 of the struct and point to that.
334 (bpstat_clear): Free the commands struct.
335 (bpstat_clear_actions): Free the commands struct.
336 (bpstat_do_actions): Free the command actions. Also execute
337 the local cleanups, instead of deleting them.
338 (delete_breakpoint): Leave the commands field of the bpstat
339 chain alone -- it will be freed later.
341 2002-08-26 Kevin Buettner <kevinb@redhat.com>
343 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
344 deleted in 2002-08-20 commit. This function is still used by
347 2002-08-26 Keith Seitz <keiths@redhat.com>
349 * gdb-events.sh: Add selected-frame-level-changed event.
350 * gdb-events.c: Regenerated.
351 * gdb-events.h: Regenerated.
353 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
356 * inflow.c (terminal_save_ours): New function to save terminal
358 * inferior.h (terminal_save_ours): Declare.
359 * target.c (debug_to_terminal_save_ours): New function.
360 (cleanup_target): Defaults to_terminal_save_ours.
361 (update_current_target): Inherit to_terminal_save_ours.
362 (setup_target_debug): Set to_terminal_save_ours.
363 * target.h (target_terminal_save_ours): New to save terminal settings.
364 (target_ops): New member to_terminal_save_ours.
365 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
366 * hpux-thread.c (init_hpux_thread_ops): Likewise.
367 * inftarg.c (init_child_ops): Likewise.
368 * m3-nat.c (init_m3_ops): Likewise.
369 * procfs.c (init_procfs_ops): Likewise.
370 * wince.c (init_child_ops): Likewise.
371 * win32-nat.c (init_child_ops): Likewise.
372 * sol-thread.c (init_sol_thread_ops): Likewise.
374 2002-08-26 Mark Kettenis <kettenis@gnu.org>
376 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
377 use regcache_* functions.
378 (i386_gdbarch_init): Set store_return_value instead of
379 deprecated_store_return_value.
381 * regcache.c (regcache_raw_write_signed,
382 regcache_raw_write_unsigned): New functions.
383 * regcache.h (regcache_raw_write_signed,
384 regcache_raw_write_unsigned): New prototypes.
386 2002-08-25 Andrew Cagney <ac131313@redhat.com>
388 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
389 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
390 source file dependencies. Cleanup corresponding generator rules.
392 2002-08-25 Andrew Cagney <ac131313@redhat.com>
394 * regcache.h (register_offset_hack): Declare.
395 (regcache_cooked_read_using_offset_hack): Declare.
396 (regcache_cooked_write_using_offset_hack): Declare.
398 * regcache.c (register_offset_hack): New function.
399 (regcache_cooked_read_using_offset_hack): New function.
400 (regcache_cooked_write_using_offset_hack): New function.
401 (regcache_dump): Check that the registers, according to their
402 offset, are packed hard against each other.
403 (cooked_xfer_using_offset_hack): New function.
405 2002-08-25 Andrew Cagney <ac131313@redhat.com>
407 * regcache.c (struct regcache_descr): Add field register_type.
408 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
410 (init_regcache_descr): Initialize register_type. Pass the descr
411 to init_legacy_regcache_descr. Use register_type instead of
412 REGISTER_VIRTUAL_TYPE.
413 (register_type): New function.
414 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
415 * regcache.h (register_type): Declare.
417 2002-08-25 Andrew Cagney <ac131313@redhat.com>
419 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
420 instead of deprecated_store_return_value. Fix fallout from
421 2002-08-23 Andrew Cagney <cagney@redhat.com>.
423 2002-08-25 Andrew Cagney <ac131313@redhat.com>
425 * regcache.c (max_register_size): New function.
426 (init_legacy_regcache_descr): Ensure that max_register_size is
427 large enough for REGISTER_VIRTUAL_SIZE.
428 * regcache.h (max_register_size): Declare.
430 2002-08-24 Andrew Cagney <ac131313@redhat.com>
432 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
434 (e500_extract_return_value): Change type of valbuf pointer to
437 2002-08-24 Mark Kettenis <kettenis@gnu.org>
439 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
442 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
443 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
444 long long) to prevent compiler warning on 64-bit systems.
446 2002-08-23 Andrew Cagney <cagney@redhat.com>
448 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
449 (DEPRECATED_STORE_RETURN_VALUE): New method.
450 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
451 * gdbarch.h, gdbarch.c: Re-generate.
453 * values.c (set_return_value): Pass current_regcache to
455 * arch-utils.h (legacy_store_return_value): Declare.
456 * arch-utils.c (legacy_store_return_value): New function.
457 (legacy_extract_return_value): Update parameters.
459 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
461 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
462 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
463 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
464 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
465 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
466 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
467 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
468 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
469 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
470 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
473 * i386-tdep.c (i386_extract_return_value): Update.
474 * arch-utils.c (legacy_extract_return_value): Update.
475 * frv-tdep.c (frv_gdbarch_init): Update.
476 * cris-tdep.c (cris_gdbarch_init): Update.
477 * d10v-tdep.c (d10v_gdbarch_init): Update.
478 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
479 * m68k-tdep.c (m68k_gdbarch_init): Update.
480 * mcore-tdep.c (mcore_gdbarch_init): Update.
481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
482 * s390-tdep.c (s390_gdbarch_init): Update.
483 * sparc-tdep.c (sparc_gdbarch_init): Update.
484 * sh-tdep.c (sh_gdbarch_init): Update.
485 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
486 * v850-tdep.c (v850_gdbarch_init): Update.
487 * avr-tdep.c (avr_gdbarch_init): Update.
488 * ia64-tdep.c (ia64_gdbarch_init): Update.
489 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
490 * vax-tdep.c (vax_gdbarch_init): Update.
491 * alpha-tdep.c (alpha_gdbarch_init): Update.
492 * arm-tdep.c (arm_gdbarch_init): Update.
493 * mips-tdep.c (mips_gdbarch_init): Update.
494 * i386-tdep.c (i386_gdbarch_init): Update.
496 2002-08-23 Andrew Cagney <ac131313@redhat.com>
498 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
499 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
501 2002-08-24 Mark Kettenis <kettenis@gnu.org>
503 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
506 2002-08-23 Joel Brobecker <brobecker@gnat.com>
508 * infrun.c (handle_inferior_event): Move a comment outside of a
509 function call, in order to avoid indent reformatting this part
510 of the code in an unreadable way.
512 2002-08-23 Grace Sainsbury <graces@redhat.com>
514 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
515 when breakpoints fail. Move general breakpoint error messages to
517 * breakpoint.c (insert_breakpoints): Change warnings when
518 breakpoints are nto inserted to specify the type. Remove call to
519 memory_error when hardware breakpoints can't be inserted. Remove
520 multiple calls to warning so all messages are sent to the user at
522 (delete_breakpoints): Make insert error messsages more explicit.
524 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
526 * ChangeLog: Move gdbserver entries after GDB 5.2 to
529 2002-08-23 Mark Kettenis <kettenis@gnu.org>
531 * i386-tdep.c: Include "objfiles.h".
532 (i386_svr4_init_abi): Set in_solib_call_trampoline and
533 skip_trampoline_code.
534 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
535 (CPLUS_MARKER): Define to '.'.
537 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
539 (linux_corefile_thread_callback): Increase args->num_notes.
540 (linux_make_note_section): Initialize thread_args.num_notes, and
541 use it to determine whether notes for any threads were created.
543 2002-08-23 Donn Terry <donnte@microsoft.com>
545 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
546 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
548 (write_with_trace): Conditionalize out the switch branch handling
549 PCSHOLD if the corresponding macro is not defined. Likewise for
551 This change will be needed by the Interix port.
553 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
555 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
556 write_register wherever possible instead of manipulating the
557 register bytes directly.
558 Assign VALUE_CONTENTS to a variable and use that.
559 The GPR numbers are now dependent on the architecture.
561 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
563 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
565 (skip_prologue): Add support for BookE/e500 instructions.
566 (e500_extract_return_value): New function.
567 (frame_get_saved_regs): Add support for saving ev registers and
569 (e500_store_return_value): New function.
570 (rs6000_gdbarch_init): Move up default intializations of
571 deprecated_extract_return_value and store_return_value. Overwrite
572 init of store_return_value with e500 specific version.
573 Set extract_return_value for e500.
575 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
577 * blockframe.c (generic_call_dummy_register_unwind): Use
578 regcache_cooked_read to catch cases in which the variable is
579 stored in a pseudo register.
581 2002-08-22 Andrew Cagney <cagney@redhat.com>
583 * NEWS: Mention that the i960 has been made obsolete.
584 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
586 (remote-nrom.o): Obsolete target.
587 (remote-nindy.o, i960-tdep.o): Ditto.
588 * remote-nrom.c: Make file obsolete.
589 * remote-nindy.c, remote-vx960.c: Ditto.
590 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
591 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
592 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
593 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
594 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
595 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
596 i960-*-vxworks* obsolete.
597 * MAINTAINERS: Note that the i960 is obsolete.
599 2002-08-21 Corinna Vinschen <vinschen@redhat.com
601 * aix-thread.c (aix_thread_detach): Disable thread debugging on
602 detach to allow reinitialization.
604 2002-08-22 Andrew Cagney <ac131313@redhat.com>
606 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
609 2002-08-22 Jim Blandy <jimb@redhat.com>
611 * coffread.c (coff_symfile_read): Don't try to read the line
612 number table from disk if the image file doesn't have a symbol
613 table; we'll never actually look at the info anyway, and Windows
614 ships DLL's with bogus file offsets for the line number data.
616 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
618 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
621 2002-08-21 Michael Snyder <msnyder@redhat.com>
623 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
624 (MSYMBOL_SIZE): Replace macro with function.
625 (DEFAULT_MIPS_TYPE): Delete unused macro.
626 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
627 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
629 2002-08-21 Jim Blandy <jimb@redhat.com>
631 * valops.c (value_cast): Simplify and correct logic for doing a
632 static cast from a pointer to a base class to a pointer to a
635 2002-08-21 Andrew Cagney <ac131313@redhat.com>
637 * infcmd.c (default_print_registers_info): Replace
639 (registers_info): Use gdbarch_print_registers_info instead of
641 * inferior.h (default_print_registers_info): Replace
643 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
644 (DO_REGISTERS_INFO): Change to a predicate function.
645 * gdbarch.h, gdbarch.c: Regenerate.
647 2002-08-21 Keith Seitz <keiths@redhat.com>
649 * gdb-events.sh: Add target-changed event.
650 * gdb-events.c: Regenerated.
651 * gdb-events.c: Regenerated.
652 * valops.c (value_assign): Add target-changed event notification
653 to inlval_register, lval_memory, and lval_reg_frame_relative.
655 2002-08-21 Joel Brobecker <brobecker@gnat.com>
657 * NEWS: Add an entry regarding the improvement of the next/step
658 operation on Alpha Tru64 multi-processor machines.
660 2002-08-21 Andrew Cagney <ac131313@redhat.com>
662 * Makefile.in: Update dependencies for mi/ cli/ and tui/
664 * Makefile.in: Update all _h macro definitions.
665 * Makefile.in (install-gdbtk): Move to install section.
666 (rdi-share/libangsd.a): Move to end of file.
668 2002-08-19 Andrew Cagney <ac131313@redhat.com>
670 * frame.c (frame_register_unwind): When a register, set addrp to
673 2002-08-20 Michael Snyder <msnyder@redhat.com>
675 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
676 used locally, so move them from the target machine header to here.
677 (mips_set_processor_type, mips_register_name, mips32_next_pc,
678 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
680 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
682 2002-08-20 Andrew Cagney <cagney@redhat.com>
684 * NEWS: Mention that the Apollo line was made obsolete.
685 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
686 m68*-hp-hpux* obsolete.
687 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
688 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
689 * buildsym.c (make_blockvector): Make static.
690 * buildsym.h (make_blockvector): Make extern declaration obsolete.
691 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
692 (ALLDEPFILES): Remove dstread.c.
693 (dstread.o): Obsolete make rule.
694 * dstread.c: Makefile obsolete.
696 * config/m68k/hp300hpux.mt: Ditto.
697 * config/m68k/hp300hpux.mh: Ditto.
698 * config/m68k/hp300bsd.mt: Ditto.
699 * config/m68k/hp300bsd.mh: Ditto.
700 * config/m68k/apollo68b.mt: Ditto.
701 * config/m68k/apollo68v.mh: Ditto.
702 * config/m68k/apollo68b.mh: Ditto.
704 2002-08-20 Michael Snyder <msnyder@redhat.com>
706 * mips-tdep.c (mips_in_return_stub): Make static.
707 (mips_gdbarch_init): Set in_solib_return_trampoline.
708 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
710 2002-08-20 Michael Snyder <msnyder@redhat.com>
712 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
713 * gdbarch.c, gdbarch.h: Regenerate.
714 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
716 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
718 2002-08-20 Michael Snyder <msnyder@redhat.com>
720 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
721 (mips_gdbarch_init): Set skip_trampoline_code,
722 in_solib_call_trampoline.
723 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
724 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
726 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
728 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
730 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
731 vector type for ev registers.
732 (e500_pseudo_register_read): New function.
733 (e500_pseudo_register_write): New function.
734 (e500_dwarf2_reg_to_regnum): New function.
735 (PPC_UISA_NOFP_SPRS): New macro.
736 (PPC_EV_REGS): New macro.
737 (PPC_GPRS_PSEUDO_REGS): New macro.
738 (registers_e500): New register set for e500.
739 (variants): Add e500 variant.
740 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
741 before setting architectural dependent variations. Initialize ev
742 registers numbers. Add case for e500 architecture. Set the
743 number of pseudo registers.
745 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
747 * rs6000-tdep.c: Clean up comments.
749 2002-08-20 Andrew Cagney <cagney@redhat.com>
751 * h8300-tdep.c: Re-indent file.
753 2002-08-20 Jim Blandy <jimb@redhat.com>
755 * Makefile.in (LDFLAGS): Allow the configure script to establish a
758 2002-08-20 Keith Seitz <keiths@redhat.com>
760 * breakpoints.c (watch_command_1): Use internal breakpoint
761 when setting a watchpoint_scope breakpoint.
763 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
765 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
766 (build_builtin_type_vec64i): Ditto.
767 (build_builtin_type_vec128): Ditto.
768 (build_builtin_type_vec128i): Ditto.
770 2002-08-19 Michael Snyder <msnyder@redhat.com>
772 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
773 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
774 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
775 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
776 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
777 CALL_DUMMY_ADDRESS): Delete.
778 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
779 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
780 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
781 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
783 (mips_register_raw_size, mips_eabi_use_struct_convention,
784 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
785 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
786 mips_init_extra_frame_info, mips_eabi_push_arguments,
787 mips_n32n64_push_arguments, mips_push_return_address,
788 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
789 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
791 2002-08-19 Michael Snyder <msnyder@redhat.com>
793 * mips-tdep.c (mips_frame_num_args): New function.
794 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
795 frame_saved_pc, frame_args_address, frame_locals_address,
796 frame_num_args, and frame_args_skip.
797 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
798 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
799 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
800 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
802 2002-08-20 Michael Snyder <msnyder@redhat.com>
804 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
805 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
806 * mips-tdep.c (mips_store_struct_return): New function.
807 (mips_extract_struct_value_address): New function.
808 (mips_gdbarch_init): Set store_struct_return and
809 extract_struct_value_address.
811 2002-08-20 David Carlton <carlton@math.stanford.edu>
813 * dwarf2read.c (dwarf2_build_psymtabs): Check that
814 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
815 (read_file_scope): Check that line_header is nonzero before
816 decoding macro information.
818 2002-08-20 Mark Kettenis <kettenis@gnu.org>
820 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
821 flag the general-purpose registers as floating-point on targets
822 that don't support the floating-point registers.
824 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
826 * rs6000-tdep.c (altivec_register_p): Delete.
827 (rs6000_do_altivec_registers): Delete.
828 (rs6000_altivec_registers_info): Delete.
829 (rs6000_do_registers_info): Delete.
830 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
831 (rs6000_gdbarch_init): Remove setting of do_registers_info.
833 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
835 * infcmd.c (do_registers_info): Print vector registers in hex
837 (print_vector_info): Check that printing registers
839 (print_float_info): Ditto.
841 2002-08-20 Andrew Cagney <ac131313@redhat.com>
843 * mips-tdep.c (mips_gdbarch_init): Update.
844 (mips_o32_extract_return_value): Rewrite.
845 (mips_o32_store_return_value): Rewrite.
846 (mips_o32_xfer_return_value): New function.
847 (mips_xfer_register): Tweak debug print message. Allow for
848 buf_offset when dumping the value transfered.
850 2002-08-20 Andrew Cagney <ac131313@redhat.com>
852 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
853 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
854 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
855 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
856 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
858 2002-08-14 Michael Snyder <msnyder@redhat.com>
860 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
862 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
864 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
866 (P): New macro to define a register as a pseudo register.
867 (R, R4, R8, R16, FR32, R64, R0): Updated.
868 (struct variant): Add new fields for number of pseudo registers
869 and number of total registers.
870 (tot_num_registers): New macro replacing....
871 (num_registers): ...deleted macro.
872 (num_registers): New function.
873 (num_pseudo_registers): New function.
874 (variants): Update all variants to intialize new fields correctly.
875 Postpone initialization of number of pseudo regs and real regs.
876 (init_variants): New function.
877 (rs6000_gdbarch_init): Initialize variants. Update calculation of
880 2002-08-19 David Carlton <carlton@math.stanford.edu>
882 * valops.c (search_struct_field): Change error message to treat
883 return value of 0 from value_static_field as meaning that field is
885 (value_struct_elt_for_reference): Ditto.
886 * values.c (value_static_field): Treat an unresolved location the
887 same as a nonexistent symbol. Fix PR gdb/635.
888 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
889 enclosed. Fix PR gdb/574.
890 * MAINTAINERS: Add self to Write After Approval list.
892 2002-08-19 Andrew Cagney <ac131313@redhat.com>
894 * mips-tdep.c (mips_xfer_register): New function.
895 (mips_n32n64_extract_return_value): Rewrite.
896 (mips_gdbarch_init): For N32 and N64, set extract_return_value
897 instead of deprecated_extract_return_value.
899 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
901 * rs6000-tdep.c (TDEP): Delete macro.
902 (branch_dest): Replace use of TDEP macro with its body.
903 (rs6000_pop_frame): Ditto.
904 (rs6000_push_arguments): Ditto.
905 (rs6000_skip_trampoline_code): Ditto.
906 (rs6000_frame_saved_pc): Ditto.
907 (rs6000_frame_chain): Ditto.
908 (rs6000_register_name): Ditto.
909 (rs6000_register_byte): Ditto.
910 (rs6000_register_raw_size): Ditto.
911 (rs6000_register_virtual_type): Ditto.
912 (rs6000_register_convertible): Ditto.
913 (rs6000_convert_from_func_ptr_addr): Ditto.
915 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
917 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
919 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
920 MIPS_LINUX_JB_ELEMENT_SIZE.
921 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
922 for MAX_REGISTER_RAW_SIZE arrays.
923 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
924 MIPS_LINUX_JB_ELEMENT_SIZE.
926 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
928 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
930 2002-08-19 Aidan Skinner <aidan@velvet.net>
932 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
933 ada-valprint.c ada-tasks.c.
934 (YYFILES): Add ada-exp.y.
935 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
936 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
937 (ada-exp.tab.o): New target.
939 2002-08-18 Andrew Cagney <ac131313@redhat.com>
941 * regcache.c (regcache_xfer_part): New function.
942 (regcache_raw_read_part): New function.
943 (regcache_raw_write_part): New function.
944 (regcache_cooked_read_part): New function.
945 (regcache_cooked_write_part): New function.
946 * regcache.h (regcache_raw_read_part): Declare.
947 (regcache_raw_write_part): Declare.
948 (regcache_cooked_read_part): Declare.
949 (regcache_cooked_write_part): Declare.
951 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
953 * remote.c (remote_open_1): Add async_p.
954 (remote_async_open_1): Delete.
955 (open_remote_target): Delete.
956 (remote_open, extended_remote_open): Update calls to remote_open_1.
957 (remote_async_open, extended_remote_async_open): Call
958 remote_open_1 instead of remote_async_open_1.
960 2002-08-19 Mark Kettenis <kettenis@gnu.org>
962 * blockframe.c: Fix a few coding standard violations.
964 2002-08-19 Mark Kettenis <kettenis@gnu.org>
966 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
968 * config/i386/tm-i386sco5.h: ... here. File removed.
969 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
971 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
972 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
973 (TM_FILE): Set to tm-i386.h.
974 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
975 * config/i386/tm-i386v.h: Remove file.
976 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
977 instead of "i386/tm-i386v.h".
978 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
979 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
981 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
982 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
985 2002-08-18 Mark Kettenis <kettenis@gnu.org>
987 * config/i386/nm-i386v.h: Add protection against
989 (i386_register_u_addr): Remove prototype.
990 (register_u_addr): New prototype.
991 (REGISTER_U_ADDR): Redefine accordingly.
992 * i386v-nat.c: Improve several comments.
993 (i386_register_u_addr): Change signature and rename to
994 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
997 2002-08-18 Andrew Cagney <ac131313@redhat.com>
999 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
1000 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
1001 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
1002 deprecated_extract_return_value.
1003 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
1004 rename mips_o32o64_push_arguments.
1005 (mips_gdbarch_init): Update.
1006 (mips_extract_return_value): Delete.
1007 (mips_o32_extract_return_value): Clone mips_extract_return_value.
1008 (mips_o64_extract_return_value): Clone mips_extract_return_value.
1009 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
1010 (mips_n32n64_extract_return_value): Clone
1011 mips_extract_return_value.
1012 (mips_store_return_value): Delete.
1013 (mips_o32_store_return_value): Clone mips_store_return_value.
1014 (mips_o64_store_return_value): Clone mips_store_return_value.
1015 (mips_eabi_store_return_value): Clone mips_store_return_value.
1016 (mips_n32n64_store_return_value): Clone mips_store_return_value.
1018 2002-08-18 Aidan Skinner <aidan@velvet.net>
1020 * ada-lang.c: Use gdb_string.h instead of <string.h>.
1021 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
1023 2002-08-18 Aidan Skinner <aidan@velvet.net>
1025 * ada-lang.c: Run through gdb_indent.sh.
1026 * ada-lang.h: Run through gdb_indent.sh.
1027 * ada-tasks.c: Run through gdb_indent.sh.
1028 * ada-typeprint.c: Run through gdb_indent.sh.
1029 * ada-valprint.c: Run through gdb_indent.sh.
1031 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1033 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
1036 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1038 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
1040 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
1041 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
1043 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
1044 write_register_gen instead of write_register_bytes.
1046 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
1047 i[3456]-*-osf1mk* configurations have been made obsolete.
1048 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
1049 i[3456]86-*-osf1mk* hosts obsolete.
1050 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
1052 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
1053 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
1054 config/i386/i386m3.mt, config/i386/nm-m3.h,
1055 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
1056 config/i386/i386mk.mh, config/i386/i386mk.mt,
1057 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
1059 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
1060 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
1061 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
1063 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1065 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
1066 (hppa_value_returned_from_stack): Declare.
1067 (hppa_extract_return_value): Declare.
1068 * config/pa/hppa.mt: New file.
1069 * configure.tgt: Recognize hppa*-*-*.
1070 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
1072 2002-08-18 Mark Kettenis <kettenis@gnu.org>
1074 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
1077 2002-08-17 Mark Kettenis <kettenis@gnu.org>
1079 * top.c (gdb_rl_operate_and_get_next): Make sure
1080 operate-and-get-next functions correctly even when the history
1081 list is completely filled.
1083 2002-08-18 Andrew Cagney <ac131313@redhat.com>
1085 * MAINTAINERS (Target Instruction Set Architectures): Rename
1086 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
1087 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
1088 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
1089 already listed under Host/Native.
1091 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
1092 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
1095 2002-08-17 Andrew Cagney <ac131313@redhat.com>
1097 * config/ia64/ia64.mt: New file.
1098 * config/alpha/alpha.mt: New file.
1099 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
1100 ia64-linux-gnu. Mention that ia64-elf is broken.
1101 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
1103 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
1105 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
1106 generic_func_frame_valid instead of func_frame_valid.
1108 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1110 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
1111 procfs appears to be broken when debugging on multi-processor
1112 machines. So enable software single stepping in order to avoid
1113 using the procfs interface to do next/step operations, using
1114 internal breakpoints instead.
1116 * infrun.c (handle_inferior_event): Readjust the stop_pc by
1117 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
1118 make this pc address equal to the value it would have if the
1119 system stepping capability was used. Also set a new flag used
1120 to ensure that we don't readjust the PC one more time later.
1122 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
1123 address by DECR_PC_AFTER_BREAK when software single step is
1124 in use for this architecture, as this has already been taken
1125 care of in handle_inferior_event().
1127 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1129 * infrun.c (handle_inferior_event): Minor reformatting, to make
1130 a rather long condition expression easier to read.
1132 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1134 * Makefile.in (gdbtk.o): Move to end of file.
1135 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
1136 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
1137 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
1138 (gdbtk-wrapper.o, gdbres.o): Ditto.
1140 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1142 * Makefile.in (copying.o): Separate out compile rule.
1143 (hpux-thread.o, procfs.o, signals.o): Ditto.
1144 (v850ice.o, z8k-tdep.o): Ditto.
1145 (tui-file.o): Move to TUI section.
1146 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
1147 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
1149 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1151 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
1152 skip_trampoline_code, for better namespace-proofing.
1154 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
1156 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1158 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
1160 2002-08-16 Joel Brobecker <brobecker@gnat.com>
1162 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
1163 signal, check whether we hit a breakpoint before checking for a
1164 single step breakpoint. Otherwise, GDB fails to notice that a
1165 breakpoint has been hit when stepping onto a breakpoint.
1167 2002-08-16 Keith Seitz <keiths@redhat.com>
1169 * gdb-events.sh (clear_gdb_event_hooks): New function.
1170 * gdb-events.c: Regenerate.
1171 * gdb-events.h: Regenerate.
1173 2002-08-16 Andrew Cagney <ac131313@redhat.com>
1175 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
1176 not_a_sw_breakpoint.
1177 * breakpoint.h (bpstat_stop_status): Add parameter names.
1179 2002-08-16 Grace Sainsbury <graces@redhat.com>
1181 * remote.c (remote_insert_hw_breakpoint)
1182 (remote_remove_hw_breakpoint): Fix calculation of length field
1185 2002-08-15 Michael Snyder <msnyder@redhat.com>
1187 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
1188 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
1189 (supply_fpregset): Ditto.
1191 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
1192 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
1193 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
1194 (TARGET_READ_SP): Delete.
1195 (DO_REGISTERS_INFO): Delete.
1196 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
1198 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
1199 from macros to functions.
1201 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
1202 (mips_register_convertible, mips_register_convert_to_virtual,
1203 mips_register_convert_to_raw): Make static.
1204 (mips_read_sp): New function.
1205 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
1206 (mips_do_registers_info): Make static.
1207 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
1208 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
1209 (mips_register_convert_from_type, mips_register_convert_to_type):
1211 (mips_gdbarch_init): Set up function_start_offset,
1212 register_virtual_size, pc_in_sigtramp.
1214 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1216 * infcmd.c (vector_info): New function.
1217 (_initialize_infcmd): Add command "info vector".
1218 (print_vector_info): New function.
1220 * gdbarch.sh (PRINT_VECTOR_INFO): New method
1221 * gdbarch.h, gdbarch.c: Regenerate.
1223 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1225 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
1226 ``print_all''. Only print vector registers when ``print_all''.
1228 2002-08-15 Andrew Cagney <ac131313@redhat.com>
1230 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
1231 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
1233 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
1234 Add `args' parameter.
1235 * gdbarch.h, gdbarch.c: Regenerate.
1237 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
1239 * infcmd.c (float_info): Call print_float_info.
1240 (print_float_info): New function. By default, print the
1241 floating-point registers.
1243 * arch-utils.h (default_print_float_info): Delete declaration.
1244 * arch-utils.c (default_print_float_info): Delete function.
1246 2002-08-16 Mark Kettenis <kettenis@gnu.org>
1248 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
1251 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
1254 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
1255 * configure.host: Make i[3456]86-*-aix host obsolete.
1256 * configure.tgt: Make i[3456]86-*-aix target obsolete.
1257 * config/i386/i386aix.mh, config/i386/i386aix.mt,
1258 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
1259 config/i386/xm-i386aix.h: Make files obsolete.
1260 * i386aix-nat.c: Make file obsolete.
1261 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
1262 (i386aix-nat.o): Make target obsolete.
1264 * config/i386/nm-gnu.h: Removed.
1265 * config/i386/nm-i386gnu.h: New file.
1266 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
1267 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
1269 * config/i386/tm-i386gnu.h: ... here. Removed.
1270 * config/i386/xm-i386gnu.h: Removed.
1271 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
1272 (NAT_FILE): Set to nm-i386gnu.h.
1273 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
1274 * i386-tdep.c: New file.
1275 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
1276 (i386gnu-tdep.o): Specify dependencies.
1278 2002-08-15 Mark Kettenis <kettenis@gnu.org>
1280 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
1281 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
1282 Adjust a few comments to reflect reality a bit closer.
1283 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
1284 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
1285 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
1286 target_insert_watchpoint, target_remove_watchpoint):
1288 * config/i386/nm-i386sco5.h: ... here.
1289 (kernel_u_size): Add prototype. Improve a few comments and add
1290 protection against multiple inclusion.
1292 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
1295 * uw-thread.c (SP_ARG0): Define if not already defined.
1296 * config/i386/tm-i386.h (SO_ARG0): Remove define.
1298 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
1300 * config/i386/tm-i386.h: Don't include "regcache.h".
1302 * i387-tdep.h (i387_print_float_info): New prototype.
1303 * i387-tdep.c (print_i387_value, print_i387_ext,
1304 print_i387_status_word, print_i387_control_word): Add `struct
1305 ui_file *' argument and use it for output.
1306 (i387_print_float_info): Renamed from i387_float_info. Add
1307 `struct gdbarch *' and `struct ui_file *' arguments and use the
1309 * i386-tdep.c: Include "i387-tdep.h".
1310 (i386_gdbarch_init): Set print_float_info.
1311 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
1312 (FLOAT_INFO): Remove define.
1314 2002-08-13 Michael Snyder <msnyder@redhat.com>
1316 * mips-tdep.c (mips_push_arguments): Rename to
1317 mips_eabi_push_arguments, and tune for EABI.
1318 (MIPS_REGS_HAVE_HOME_P): Delete.
1319 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
1320 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
1321 Delete references to mips_regs_have_home_p.
1323 2002-08-14 Keith Seitz <keiths@redhat.com>
1325 * Makefile.in (install-gdbtk): Create insight plugin directory.
1326 Install plugins.tcl file.
1328 2002-08-14 Keith Seitz <keiths@redhat.com>
1330 * configure.in: Move SUBDIRS to near top of the file so that
1331 --enable options may add things to it.
1332 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
1333 * configure: Regenerate.
1335 2002-08-13 Michael Snyder <msnyder@redhat.com>
1337 * mips-tdep.c (mips_o32o64_push_arguments): New function,
1338 cloned from mips_push_arguments, tuned for o32/o64 ABI.
1339 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
1341 2002-08-13 Andrew Cagney <ac131313@redhat.com>
1343 * vax-tdep.c (vax_get_saved_register): Delete function.
1344 (vax_gdbarch_init): Update.
1345 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
1346 (ns32k_gdbarch_init): Update.
1347 * alpha-tdep.c (alpha_get_saved_register): Delete function.
1348 (alpha_gdbarch_init): Update.
1350 2002-08-13 Andrew Cagney <cagney@redhat.com>
1352 * regcache.c (init_regcache_descr): Overallocate the
1353 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
1354 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
1356 (set_register_cached): Add range checking assertions. Use
1359 2002-08-13 Mark Kettenis <kettenis@gnu.org>
1361 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
1362 numbers for MMX registers.
1364 2002-08-13 Andrew Cagney <cagney@redhat.com>
1366 * i386-tdep.c (i386_gdbarch_init): Use
1367 generic_unwind_get_saved_register.
1369 2002-08-13 Kevin Buettner <kevinb@redhat.com>
1371 * procfs.c (procfs_can_use_hw_breakpoint): New function.
1372 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
1374 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
1375 Delete. Add comment regarding this now-deleted target method.
1377 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1379 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
1380 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
1381 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
1382 real PC and the page number (if it's within the memory bank window).
1383 (m68hc11_pseudo_register_write): Likewise when saving.
1384 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
1385 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
1386 (m68hc11_register_raw_size): And use 32-bit for it.
1387 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
1388 16K memory bank is used by the prog; also use the virtual pc.
1390 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1392 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
1393 (m68hc11_gdbarch_init): Install it in gdbarch.
1394 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
1395 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
1396 (MSYMBOL_SIZE): New for documentation.
1397 (insn_return_kind): Enum to specify how a function returns.
1398 (frame_extra_info): Cleanup and record the return mode.
1399 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
1400 register in address computation.
1401 (m68hc11_get_return_insn): New to obtain the return instruction used
1403 (m68hc11_frame_init_saved_regs): Take into account the return
1404 instruction used by the function for far and interrupt functions.
1405 (m68hc11_init_extra_frame_info): Take into account page register.
1406 (m68hc11_frame_args_address): Adjust according to the return mode.
1407 (show_regs): Print page register only when it's used.
1409 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1411 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
1412 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
1413 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
1415 (m68hc11_register_raw_size): Likewise.
1417 2002-08-13 Andrew Cagney <cagney@redhat.com>
1419 * i386-tdep.c (i386_register_name): Handle mmx registers.
1420 (mmx_regnum_p): New function.
1421 (i386_mmx_names): New array.
1422 (mmx_num_regs): New variable.
1423 (i386_pseudo_register_read): New function.
1424 (i386_pseudo_register_write): New function.
1425 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
1427 * regcache.c (regcache_raw_read_unsigned): New function.
1428 (regcache_raw_read_signed): New function.
1429 * regcache.h (regcache_raw_read_unsigned): Declare.
1430 (regcache_raw_read_signed): Declare.
1432 2002-08-13 Andrew Cagney <cagney@redhat.com>
1434 * regcache.c (regcache_raw_read_as_address): Delete function.
1435 (regcache_cooked_read_signed): New function.
1436 (regcache_cooked_read_unsigned): New function.
1437 * regcache.h (regcache_cooked_read_signed): Declare.
1438 (regcache_cooked_read_unsigned): Declare.
1439 (regcache_raw_read_as_address): Delete declaration.
1441 * blockframe.c (generic_read_register_dummy): Use
1442 regcache_cooked_read_unsigned.
1443 * i386-tdep.c (i386_extract_struct_value_address): Use
1444 regcache_cooked_read_unsigned.
1446 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
1449 double sizes according to ELF ABI flags.
1450 (gdbarch_tdep): Record elf_flags.
1452 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
1454 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
1455 (m6812_prolog): They can appear in 68HC12 function prologue.
1456 (m68hc11_frame_chain): Cleanup.
1458 2002-08-12 Andrew Cagney <cagney@redhat.com>
1460 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
1462 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
1463 (i386_linux_register_raw_size): Delete function.
1464 (i386_linux_init_abi): Update.
1465 * i386-tdep.c (i386_register_raw_size): Delete function.
1466 (i386_register_byte): Delete function.
1467 (i386_gdbarch_init): Update.
1468 (i386_register_size): Delete array.
1469 (i386_register_offset): Delete array.
1471 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
1472 (REGISTER_RAW_SIZE): Delete macro.
1473 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
1474 (REGISTER_BYTE): Delete macro.
1476 2002-08-11 Aidan Skinner <aidan@velvet.net>
1478 * ada-lang.c (ada_lookup_partial_symbol)
1479 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
1480 prototype names so that grep ^func works properly.
1482 * ada-lang.c (ada_array_element_type)
1483 (ada_lookup_partial_symbol): Fix typos in parameter list.
1485 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
1486 Fix prototype names so that grep ^func works properly.
1488 2002-08-10 Andrew Cagney <cagney@redhat.com>
1489 Elena Zannoni <ezannoni@redhat.com>
1490 Martin M. Hunt <hunt@redhat.com>
1492 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
1493 (build_builtin_type_vec128i): Set the vector bit.
1494 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
1495 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
1496 (build_builtin_type_vec64): New function.
1497 (build_builtin_type_vec64i): New function.
1498 (build_gdbtypes): Initialize builtin_type_vec64 and
1499 builtin_type_vec64i.
1501 2002-08-09 Andrew Cagney <cagney@redhat.com>
1503 * regcache.c (regcache_dump): Compare the register offset
1505 * arch-utils.c (generic_register_byte): New function.
1506 * arch-utils.h (generic_register_byte): Declare.
1507 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
1508 * gdbarch.h, gdbarch.c: Regenerate.
1510 2002-08-09 Andrew Cagney <cagney@redhat.com>
1512 * regcache.c: Include "gdbcmd.h"
1513 (_initialize_regcache): Add commands "maintenance print
1514 registers", "maintenance print raw-registers" and "maintenance
1515 print cooked-registers".
1516 (enum regcache_dump_what): Define.
1517 (dump_endian_bytes): New function.
1518 (regcache_dump): New function.
1519 (regcache_print): New function.
1520 (maintenance_print_registers): New function.
1521 (maintenance_print_raw_registers): New function.
1522 (maintenance_print_cooked_registers): New function.
1523 * Makefile.in (regcache.o): Update dependencies.
1525 2002-08-09 Michael Snyder <msnyder@redhat.com>
1527 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
1528 (mips_push_arguments): Correct some comments. Use paddr_nz
1529 for printing addresses in debug output. Replace static
1530 allocation using MAX_REGISTER_RAW_SIZE with alloca.
1531 (mips_n32n64_push_arguments): New function, cloned from
1532 mips_push_arguments and tuned for the n32/n64 ABI.
1533 (mips_push_register): Buffer needs dynamic allocation.
1534 (mips_print_register): Ditto.
1535 (do_gp_register_row): Ditto.
1536 (mips_store_return_value): Ditto.
1537 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
1539 2002-08-09 Don Howard <dhoward@redhat.com>
1541 * memattr.c (mem_info_command): Print special case of upper bound
1542 as max CORE_ADDR + 1.
1544 2002-08-08 Michael Snyder <msnyder@redhat.com>
1546 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
1547 returns structs by ref if they're too big to fit in two registers.
1549 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1551 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
1553 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
1554 mips_find_saved_regs().
1555 (mips_pop_frame): Likewise.
1557 2002-08-09 Kevin Buettner <kevinb@redhat.com>
1559 * blockframe.c (frame_saved_regs_register_unwind): Revise
1560 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
1563 2002-08-09 Grace Sainsbury <graces@redhat.com>
1565 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
1566 T-packets; the 'a' is not taken as a register number.
1567 (remote_check_watch_resources, remote_stopped_by_watchpoint)
1568 (remote_stopped_data_address): New functions; add to target
1570 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
1571 prototypes to match other implementations of this
1572 function. replace integer argument with pointer -- the length
1573 field in the Z-packet is the length of what is pointed to or 1 if
1574 pointer is null. Add to target vector.
1575 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
1579 * remote.c (remote_wait): Add support to extract optional
1580 watchpoint information from T-packet. Ignore unrecognized
1581 optional info in T-packet.
1582 (remote_async_wait): Ditto.
1584 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
1586 * cli/cli-dump.c: Change fopen modes to use binary open modes
1587 as defined in include/fopen-bin.h throughout.
1589 2002-08-08 Michael Snyder <msnyder@redhat.com>
1591 * mips-tdep.c: Minor whitespace and indentation clean-ups.
1593 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1595 * doublest.c (store_floating): Avoid floatformat_from_doublest()
1596 assertion failure by returning early after a warning.
1598 2002-08-08 Kevin Buettner <kevinb@redhat.com>
1600 * mips-tdep.c (mips_find_saved_regs): Make static.
1601 (mips_frame_init_saved_regs): New function.
1602 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
1603 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
1604 (mips_find_saved_regs): Delete declaration.
1606 2002-08-08 Grace Sainsbury <graces@redhat.com>
1608 * remote.c (remote_wait, remote_async_wait): Change
1609 thread_num from int to ULONGEST.
1610 (unpack_varlen_hex): Change result parameter from
1611 int * to ULONGEST *.
1613 2002-08-08 Andrew Cagney <ac131313@redhat.com>
1615 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
1616 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
1618 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
1620 2002-08-08 Andrew Cagney <cagney@redhat.com>
1622 * gcore.c (override_derive_stack_segment): Delete variable.
1623 (preempt_derive_stack_segment): Delete function.
1624 (derive_stack_segment): Delete function.
1625 (default_derive_stack_segment): Renamed to derive_stack_segment.
1626 (override_derive_heap_segment): Delete variable.
1627 (preempt_derive_heap_segment): Delete function.
1628 (derive_heap_segment): Delete function.
1629 (default_derive_heap_segment): Rename to derive_heap_segment.
1631 2002-08-06 Michael Snyder <msnyder@redhat.com>
1633 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
1634 * mips-tdep.c (mips_EABI_use_struct_convention,
1635 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
1636 New functions. (mips_use_struct_convention): Delete.
1637 (mips_gdbarch_init): set use_gdbarch_convention.
1639 2002-08-06 Michael Snyder <msnyder@redhat.com>
1641 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
1642 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
1643 mips_o32_reg_struct_has_addr): New functions.
1644 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
1646 2002-08-07 Andrew Cagney <ac131313@redhat.com>
1648 * regcache.c (pseudo_register): Delete function.
1649 (fetch_register): Delete function.
1650 (store_register): Delete function.
1651 (regcache_raw_read, legacy_read_register_gen): Use
1652 target_fetch_registers instead of fetch_register.
1653 (legacy_write_register_gen, regcache_raw_write): Use
1654 target_store_register instead of store_register.
1655 (write_register_bytes): Ditto.
1657 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
1658 (STORE_PSEUDO_REGISTER): Delete.
1659 * gdbarch.h, gdbarch.c: Regenerate.
1661 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
1663 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
1664 write dump file binary.
1666 2002-08-05 Michael Snyder <msnyder@redhat.com>
1668 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
1669 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
1670 (mips_gdbarch_init): Set N32 target to be mips64.
1672 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1674 * frame.c (find_saved_register): Break out of loop once saved
1675 register address is found. Don't mention sparc in loop comment
1678 2002-08-06 Kevin Buettner <kevinb@redhat.com>
1680 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
1681 mips_default_saved_regsize to 8.
1683 2002-08-06 Andrew Cagney <ac131313@redhat.com>
1685 * gcore.c: Do not include <sys/procfs.h>.
1686 * Makefile.in (gcore.o): Update dependencies.
1688 2002-08-06 Andrew Cagney <cagney@redhat.com>
1690 * configure.tgt: Make arc-*-* obsolete.
1691 * NEWS: Mention that arc-*-* has been identifed as obsolete.
1692 * MAINTAINERS: Make arc-elf obsolete.
1693 * arc-tdep.c: Make file obsolete.
1694 * config/arc/arc.mt: Ditto.
1695 * config/arc/tm-arc.h: Ditto.
1697 2002-08-05 Theodore A. Roth <troth@verinet.com>
1699 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
1701 2002-08-05 Andrew Cagney <ac131313@redhat.com>
1703 * mcore-tdep.c (mcore_gdbarch_init): Use
1704 generic_unwind_get_saved_register instead of
1705 generic_get_saved_register.
1706 * v850-tdep.c (v850_gdbarch_init): Ditto.
1707 * frv-tdep.c (frv_gdbarch_init): Ditto.
1708 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1709 * s390-tdep.c (s390_gdbarch_init): Ditto.
1710 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1711 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
1712 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
1714 2002-08-05 Joel Brobecker <brobecker@gnat.com>
1716 * objfiles.h: Add missing #include "symfile.h"
1718 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
1720 2002-08-04 Andrew Cagney <ac131313@redhat.com>
1722 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
1723 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
1726 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
1728 * NEWS: Cleanup and nitpick.
1730 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1732 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
1734 2002-08-03 Andrew Cagney <ac131313@redhat.com>
1736 * Makefile.in (gdbtk-bp.o): Update dependencies.
1737 (gdbtk-register.o): Ditto.
1738 (gdbtk-varobj.o): Ditto.
1740 2002-08-03 Andrew Cagney <cagney@redhat.com>
1742 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
1743 m68hc11_fetch_pseudo_register.
1744 (m68hc11_pseudo_register_write): Replace
1745 m68hc11_store_pseudo_register.
1746 (m68hc11_gdbarch_init): Update.
1748 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
1750 * gdbarch.sh: Include "gdb_string.h".
1751 * gdbarch.c: Regenerate.
1753 * regcache.c: Include "gdb_string.h".
1754 * ax-general.c: Ditto.
1756 * std-regs.c: Ditto.
1757 * fbsd-proc.c: Ditto.
1760 * Makefile.in (regcache.o): Update dependencies.
1761 (thread.o, gdbarch.o): Ditto.
1762 (ax-general.o, gdbarch.o): Ditto.
1763 (varobj.o, std-regs.o): Ditto.
1764 (fbsd-proc.o): Specify dependencies.
1766 2002-08-02 Andrew Cagney <cagney@redhat.com>
1768 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
1770 (regcache_cooked_write): Ditto.
1772 2002-08-02 Andrew Cagney <ac131313@redhat.com>
1774 * regcache.c (regcache_cooked_read): New function.
1775 (regcache_cooked_write): New function.
1776 (read_register_gen): Rewrite using regcache_cooked_read.
1777 (write_register_gen): Rewrite using regcache_cooked_write.
1779 * regcache.h (regcache_cooked_read, regcache_cooked_write):
1782 2002-08-02 Andrew Cagney <cagney@redhat.com>
1784 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
1785 Replace the architecture methods register_read and register_write.
1786 * gdbarch.h, gdbarch.c: Regenerate.
1787 * regcache.c (init_regcache_descr): Update.
1788 (read_register_gen): Update.
1789 (write_register_gen): Update.
1790 (supply_register): Update comment.
1792 * sh-tdep.c (sh_gdbarch_init): Update.
1793 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
1794 `regcache' and `gdbarch' parameters. Make `buffer' a void
1795 pointer. Update code.
1796 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
1797 `regcache' and `gdbarch' parameters. Make `buffer' a constant
1798 void pointer. Update code.
1799 (sh64_register_write): Delete.
1800 (sh4_register_read): Delete.
1801 (sh64_register_read): Delete.
1802 (sh4_register_write): Delete.
1803 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
1804 void pointer, `to' parameter a void pointer.
1805 (sh_sh64_register_convert_to_raw): Ditto.
1807 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1809 * mips-tdep.c (mips_register_virtual_type): Use architecture
1810 invariant return values.
1812 2002-08-01 Andrew Cagney <cagney@redhat.com>
1814 * linux-proc.c: Include "gdb_string.h".
1815 * Makefile.in (linux-proc.o): Update dependency list.
1817 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1819 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
1822 2002-08-01 Grace Sainsbury <graces@redhat.com>
1824 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1825 to_insert_watchpoint, to_remove_watchpoint,
1826 to_stopped_by_watchpoint, to_stopped_data_address,
1827 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
1828 target vecctor. Define their corresponding macros so they call
1831 * target.c: Add default and debug versions of for
1832 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
1833 to_insert_watchpoint, to_remove_watchpoint,
1834 to_stopped_by_watchpoint, to_stopped_data_address,
1835 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
1837 2002-08-01 Kevin Buettner <kevinb@redhat.com>
1839 * mips-tdep.c (mips_register_virtual_type): New function.
1840 (mips_gdbarch_init): Register mips_register_virtual_type()
1841 with gdbarch machinery.
1842 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
1843 this file instead of tm-bigmips.h.
1844 (MIPS_REGSIZE): Delete this macro.
1845 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
1846 multiarch version in mips-tdep.c will be found.
1848 2002-08-01 Andrew Cagney <cagney@redhat.com>
1850 * NEWS: Menion that CHILL has been made obsolete.
1852 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
1853 * stabsread.c (read_range_type): Ditto.
1854 * gdbtypes.h: Ditto.
1855 * language.c (binop_type_check): Ditto.
1856 (binop_result_type): Ditto.
1857 (integral_type): Ditto.
1858 (character_type): Ditto.
1859 (string_type): Ditto.
1860 (boolean_type): Ditto.
1861 (structured_type): Ditto.
1862 (lang_bool_type): Ditto.
1863 (binop_type_check): Ditto.
1864 * language.h (_LANG_chill): Ditto.
1865 * dwarfread.c (set_cu_language): Ditto.
1866 * dwarfread.c (CHILL_PRODUCER): Ditto.
1867 * dwarfread.c (handle_producer): Ditto.
1868 * expression.h (enum exp_opcode): Ditto.
1869 * eval.c: Ditto for comments.
1870 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
1871 * expprint.c (print_subexp): Ditto.
1872 (print_subexp): Ditto.
1873 * valops.c (value_cast): Ditto.
1874 (search_struct_field): Ditto.
1875 * value.h (COERCE_VARYING_ARRAY): Ditto.
1876 * symfile.c (init_filename_language_table): Ditto.
1877 (add_psymbol_with_dem_name_to_list): Ditto.
1878 * valarith.c (value_binop): Ditto.
1880 * valops.c (value_slice): Ditto.
1881 * symtab.h (union language_specific): Ditto.
1882 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
1883 (SYMBOL_DEMANGLED_NAME): Ditto.
1884 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
1885 * defs.h (enum language): Ditto.
1886 * symtab.c (got_symtab): Ditto.
1887 * utils.c (fprintf_symbol_filtered): Ditto.
1889 * ch-typeprint.c: Make file obsolete.
1890 * ch-valprint.c: Make file obsolete.
1891 * ch-lang.h: Make file obsolete.
1892 * ch-exp.c: Make file obsolete.
1893 * ch-lang.c: Make file obsolete.
1895 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
1897 (TARGET_FLAGS_TO_PASS): Ditto.
1898 (CHILLFLAGS): Obsolete.
1900 (CHILL_FOR_TARGET): Obsolete.
1901 (CHILL_LIB): Obsolete.
1902 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
1904 (HFILES_NO_SRCDIR): Remove ch-lang.h.
1905 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
1907 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
1910 2002-07-31 Joel Brobecker <brobecker@gnat.com>
1912 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
1913 This does not change anything at the moment, but will be helpful
1914 later when full Ada support is integrated.
1916 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1918 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
1921 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1923 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
1924 and save it in a local variable. Use variable in later test.
1926 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1928 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
1929 test. (Thanks to Daniel Jacobowitz.)
1931 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1933 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
1934 (mips_abi_strings): Add "n64".
1935 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
1937 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1939 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
1940 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
1942 2002-07-31 Kevin Buettner <kevinb@redhat.com>
1944 * utils.c (host_pointer_to_address, address_to_host_pointer):
1945 Use gdb_assert() instead of explicit call to internal_error().
1947 2002-07-30 Kevin Buettner <kevinb@redhat.com>
1949 * Makefile.in (rs6000-nat.o): Update dependencies.
1951 From Nicholas Duffek:
1952 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
1953 (aix-thread.o): New rule.
1954 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
1955 * config/powerpc/aix432.mh: New file.
1957 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1959 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
1960 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
1961 (fetch_core_registers, ppc_linux_supply_gregset)
1962 (ppc_linux_supply_fpregset): New functions.
1963 (ppc_linux_regset_core_fns): New.
1964 (_initialize_ppc_linux_tdep): Call add_core_fns.
1965 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
1966 and ppc_linux_supply_gregset.
1967 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
1968 (supply_fpregset): Call ppc_linux_supply_fpregset.
1969 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
1971 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
1973 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
1975 * symtab.c (lookup_symbol): Demangle before lowercasing.
1977 2002-07-30 Andrew Cagney <ac131313@redhat.com>
1979 * symtab.h: Replace #include "gdb_obstack.h" with opaque
1981 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
1982 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
1983 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
1984 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
1986 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
1987 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
1988 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
1989 (avr-tdep.o, mon960-rom.o): Ditto.
1990 (aout_stabs_gnu_h): Define.
1991 (symtab_h): Remove $(gdb_obstack_h).
1993 2002-07-30 Jim Blandy <jimb@redhat.com>
1995 Patch from David Carlton <carlton@math.stanford.edu>:
1996 * gdbinit.in: Move the `dir' commands that add GDB's own source
1997 directory to the search path to the end, so that the `gdb' source
1998 directory will be searched first.
2000 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2002 * gdb_obstack.h: New file.
2003 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
2004 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
2005 * objfiles.h: Include "gdb_obstack.h".
2006 * Makefile.in (gdb_obstack_h): Define.
2007 (symtab_h): Add $(gdb_obstack_h).
2008 (objfiles_h): Add $(gdb_obstack_h).
2010 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
2011 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
2012 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
2013 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
2014 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
2015 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
2016 * symfile.c, coffread.c, c-typeprint.c: Ditto.
2017 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
2019 * Makefile.in (bcache.o): Update dependencies.
2020 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
2021 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
2022 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
2023 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
2024 (stabsread.o, symfile.o, symmisc.o): Ditto.
2025 (symtab.o, typeprint.o, macroexp.o): Ditto.
2026 (macrotab.o, mdebugread.o): Ditto.
2027 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
2028 (coff_ecoff_h, aout_aout64_h): Define.
2029 (aout_stabs_gnu_h, libaout_h): Define.
2031 2002-07-29 Andrew Cagney <cagney@redhat.com>
2033 * regcache.c (struct regcache_descr): Rename nr_registers to
2034 nr_cooked_registers. Revise comments describing the structure
2036 (init_regcache_descr): Update.
2037 (init_legacy_regcache_descr): Update.
2038 (read_register_gen, write_register_gen): When a cooked register in
2039 the raw register range, directly access the value from the raw
2042 2002-07-29 Andrew Cagney <ac131313@redhat.com>
2044 * z8k-tdep.c: Do not include "obstack.h".
2045 * h8300-tdep.c, h8500-tdep.c: Ditto.
2046 * m68hc11-tdep.c, sh-tdep.c: Ditto.
2047 * valprint.c, v850-tdep.c: Ditto.
2048 * d10v-tdep.c, mn10300-tdep.c: Ditto.
2049 * mn10200-tdep.c: Ditto.
2051 * Makefile.in (z8k-tdep.o): Update dependencies.
2052 (m68hc11-tdep.o, valprint.o): Ditto.
2053 (v850-tdep.o, d10v-tdep.o): Ditto.
2054 (mn10300-tdep.o, sparc-tdep.o): Ditto.
2055 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
2056 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
2057 (sh_opc_h, gdb_sim_sh_h): Define.
2058 (elf_sh_h, elf_bfd_h): Define.
2059 (opcode_m68hc11_h): Define.
2060 (OPCODES_SRC, OPCODES_DIR): define.
2061 (OPCODES): Use $(OPCODES_DIR).
2062 (gdb_sim_d10v_h): Rename sim_d10v_h.
2063 (gdb_sim_arm_h): Rename sim_arm_h.
2065 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2067 * utils.c (host_pointer_to_address, address_to_host_pointer):
2068 Change internal_error() message to indicate function responsible
2071 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2073 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
2074 calls to local_hex_string_custom().
2076 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2078 * irix5-nat.c: Move IRIX shared library support from here...
2079 * solib-irix.c: ...to here. Revised substantially to work with
2080 generic solib framework.
2082 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
2083 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
2084 * mips-irix-tdep.c: New file.
2086 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
2087 (mips-irix-tdep.o, solib-irix.o): New rules.
2088 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
2090 * config/mips/irix6.mt (TDEPFILES): Likewise.
2091 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
2093 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2095 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
2096 disabled (via ``#if 0'') includes.
2098 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2100 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2101 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
2102 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
2103 Add support for the fpscr register.
2104 * rs6000-nat.c (regmap, fetch_inferior_registers)
2105 (store_inferior_registers, fetch_core_registers): Likewise.
2107 2002-07-26 Kevin Buettner <kevinb@redhat.com>
2109 * rs6000-nat.c (language.h): Include.
2110 (special_regs): Delete this array.
2111 (regmap): New function.
2112 (fetch_register, store_register): Use regmap() to map gdb
2113 register numbers to ptrace register numbers. Also, use
2114 outputs from regmap() to make decisions regarding type of
2115 ptrace() call to make. In particular, don't compare against
2116 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2117 (fetch_inferior_registers, store_inferior_registers): Where
2118 possible, obtain register numbers from tdep struct. Don't
2119 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
2120 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
2121 (LAST_UISA_SP_REGNUM): Delete.
2123 2002-07-25 Kevin Buettner <kevinb@redhat.com>
2125 * rs6000-nat.c (ppc-tdep.h): Include.
2126 (fetch_registers, store_register, fetch_core_registers): Don't
2127 access registers[] directly. Instead, use supply_register() or
2128 regcache_collect() as appropriate.
2129 (find_toc_address): Format hex address with local_hex_string().
2131 2002-07-25 Andrew Cagney <ac131313@redhat.com>
2133 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
2136 2002-07-24 Tom Tromey <tromey@redhat.com>
2138 * jv-exp.y: Marked all strings with _().
2139 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
2141 (MethodInvocation, CastExpression, parse_number, yyerror,
2142 java_type_from_name, push_expression_name, yylex): Typo fixes.
2144 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
2146 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
2147 (tee_file_flush, tee_file_write, tee_file_fputs)
2148 (tee_file_isatty): New.
2149 * ui-file.h (tee_file_new): Add prototype.
2151 2002-07-24 Aidan Skinner <aidan@velvet.net>
2153 * ada-lang.c: Change k&r style function definitions to prototyped
2155 * ada-typeprint.c: Change k&r style function definitions to prototyped
2157 * ada-valprint.c: Change k&r style function definitions to prototyped
2160 2002-07-24 Andrew Cagney <cagney@redhat.com>
2162 * README: Remove reference to remote-bug.
2163 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
2165 (m88k-nat.o): Delete rule.
2166 (m88k-tdep.o): Delete rule.
2167 (remote-bug.o): Delete rule.
2168 * MAINTAINERS: Mark as obsolete.
2169 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
2170 * m88k-tdep.c: Make file obsolete.
2171 * config/m88k/m88k.mh: Ditto.
2172 * config/m88k/delta88v4.mh: Ditto.
2173 * config/m88k/delta88v4.mt: Ditto.
2174 * config/m88k/delta88.mt: Ditto.
2175 * config/m88k/delta88.mh: Ditto.
2176 * remote-bug.c: Ditto.
2177 * config/m88k/tm-delta88.h: Ditto.
2178 * config/m88k/nm-delta88v4.h: Ditto.
2179 * config/m88k/xm-delta88.h: Ditto.
2180 * config/m88k/xm-dgux.h: Ditto.
2181 * config/m88k/tm-m88k.h: Ditto.
2182 * config/m88k/nm-m88k.h: Ditto.
2183 * config/m88k/tm-delta88v4.h: Ditto.
2184 * m88k-nat.c: Ditto.
2185 * cxux-nat.c: Ditto.
2186 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
2187 and m88*-*-* obsolete.
2188 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
2191 2002-07-24 Andrew Cagney <cagney@redhat.com>
2193 * findvar.c (extract_unsigned_integer): Make `addr' parameter
2194 constant. Same for local pointer variables.
2195 (extract_signed_integer): Ditto.
2196 * defs.h (extract_unsigned_integer): Update.
2197 (extract_signed_integer): Update.
2199 2002-07-24 Andrew Cagney <cagney@redhat.com>
2201 * regcache.c (regcache_raw_write): Change buf parameter to a
2202 constant void pointer.
2203 (regcache_raw_read): Change buf parameter to a void pointer.
2204 (legacy_write_register_gen): Change myaddr parameter a constant
2206 (supply_register): Change val parameter to a const void pointer.
2207 * regcache.h (regcache_raw_write): Update declaration.
2208 (regcache_raw_read): Update declaration.
2209 (supply_register): Update declaration.
2211 2002-07-24 Tom Tromey <tromey@redhat.com>
2213 * defs.h (gdb_readline_wrapper): Declare.
2214 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
2215 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
2216 * top.c (gdb_readline_wrapper): New function.
2217 (command_line_input): Use it.
2219 2002-07-24 Andrew Cagney <cagney@redhat.com>
2221 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
2222 regcache_read and regcache_write.
2223 (regcache_raw_read_as_address): Replace regcache_read_as_address.
2224 * regcache.c: Update.
2225 * sh-tdep.c (sh64_push_arguments): Update comment.
2226 (sh_pseudo_register_read): Update.
2227 (sh_pseudo_register_write): Update.
2228 (sh4_register_read): Update.
2229 (sh4_register_write): Update.
2230 (sh64_pseudo_register_read): Update.
2231 (sh64_pseudo_register_write): Update.
2232 (sh64_register_read): Update.
2233 (sh64_register_write): Update.
2234 * i386-tdep.c (i386_extract_return_value): Update.
2235 (i386_extract_struct_value_address): Update.
2236 (i386_extract_return_value): Update.
2237 * blockframe.c (generic_read_register_dummy): Update.
2238 (generic_call_dummy_register_unwind): Update
2239 * infrun.c (write_inferior_status_register): Update.
2241 2002-07-23 Jim Blandy <jimb@redhat.com>
2243 * parser-defs.h (expression_context_pc): Make this extern.
2244 (Thanks to Michael Snyder.)
2246 2002-07-23 Andrew Cagney <ac131313@redhat.com>
2248 GDB 5.2.1 released from 5.2 branch.
2249 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
2250 * README: Update to mention 5.2.1.
2252 2002-07-23 Mark Salter <msalter@redhat.com>
2254 * remote.c (remote_read_bytes): Fix check for error.
2256 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2258 * aix-thread.c (language.h): Include.
2259 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2260 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
2261 Print newlines at end of debug messages.
2262 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
2263 (pdc_write_data): Use local_hex_string() instead of %llx formats.
2265 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2267 * aix-thread.c (ppc-tdep.h): Include.
2268 (special_register_p): New function.
2269 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
2270 (store_regs_user_thread): Use register number information from
2271 gdbarch_tdep struct instead of hardcoded offsets relative to
2272 FIRST_UISA_SP_REGNUM.
2273 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
2274 special_register_p() instead of using FPLAST_REGNUM and
2275 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
2276 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
2277 will be MQ's register number.
2279 2002-07-22 Michael Snyder <msnyder@redhat.com>
2281 * aix-thread.c (ops): Rename to aix_thread_ops.
2282 (base_ops): Rename to base_target.
2283 (ops_attach): Rename to aix_thread_attach.
2284 (ops_detach): Rename to aix_thread_detach.
2285 (ops_resume): Rename to aix_thread_detach.
2286 (ops_wait): Rename to aix_thread_wait.
2287 (ops_kill): Rename to aix_thread_kill.
2288 (init_ops): Rename to init_aix_thread_ops.
2289 (ops_fetch_register): Rename to aix_thread_fetch_register.
2290 (ops_store_register): Rename to aix_thread_store_register.
2291 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
2292 (ops_thread_alive): Rename to aix_thread_thread_alive.
2293 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
2294 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
2295 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
2296 (fetch_regs_lib): Rename to fetch_regs_user_thread.
2297 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
2298 (store_regs_lib): Rename to store_regs_user_thread.
2299 (store_regs_kern): Rename to store_regs_kernel_thread.
2301 2002-07-22 Michael Snyder <msnyder@redhat.com>
2303 * aix-thread.c (ops_prepare_to_store): Eliminate.
2304 (init_ops): Don't initialize ops.prepare_to_store.
2305 (store_regs_kern): Pre-fetch register buffers from child,
2306 because some registers may not be in the cache. Copy
2307 regs from register cache only if they are cached.
2308 (store_regs_lib): Copy regs from register cache only
2310 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
2311 fill_gprs64): Ditto.
2313 2002-07-22 Kevin Buettner <kevinb@redhat.com>
2315 * aix-thread.c (gdb_assert.h): Include.
2316 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
2317 register sizes (from register cache) match size of buffer holding
2319 (fill_sprs32): Change parameter types to match those in the ptrace()
2321 (store_regs_lib): Likewise, but for 32-bit temporary variables.
2322 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
2324 2002-07-22 Michael Snyder <msnyder@redhat.com>
2326 * aix-thread.c (supply_sprs64): Cosmetic change.
2327 (supply_sprs32): Cosmetic change.
2328 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
2329 (fill_sprs64): Use regcache_collect instead of read_register.
2330 (store_regs_lib): Use regcache_collect instead of
2331 read_register. Use fill_sprs32 instead of fill_sprs64,
2332 if debugging a 32-bit architecture.
2333 (store_regs_kern): Use fill_gprs64 etc. to pull the values
2334 out of the register cache, instead of passing a pointer into
2335 the register cache directly to ptrace. Use regcache_collect
2336 insteaad of read_register.
2337 (ops_prepare_to_store): Use target_read_registers instead
2338 of read_register_bytes.
2340 2002-07-20 Aidan Skinner <aidan@velvet.net>
2342 * MAINTAINERS: Add self under write after approval.
2344 2002-07-20 Aidan Skinner <aidan@velvet.net>
2346 * ada-tasks.c: Change k&r style function definitions to prototyped
2349 2002-07-19 Andrew Cagney <ac131313@redhat.com>
2351 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
2352 * x86-64-tdep.c: Include "objfiles.h".
2353 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
2354 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
2356 2002-07-17 Michal Ludvig <michal@suse.cz>
2358 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
2359 (update_context): Initialise cfa variable.
2361 2002-07-17 Michael Snyder <msnyder@redhat.com>
2363 * aix-thread.c: Shorten some long lines.
2364 Bring comments into line with code spec.
2366 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2368 * infrun.c: Re-indent using gdb_indent.sh.
2370 2002-07-18 Joel Brobecker <brobecker@gnat.com>
2372 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
2373 Leave the indentation temporarily untouched, to minimize the diffs.
2375 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
2377 * stabsread.c: Make os9k sections of the code obsolete,
2379 * stabsread.h: Make os9k sections of the code obsolete.
2381 2002-07-18 Michal Ludvig <mludvig@suse.cz>
2383 * linux-low.c (regsets_store_inferior_registers): Add free()
2384 at the end of a loop to prevent memory leak.
2385 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
2386 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
2387 * config/sparc/tm-sp64linux.h: Make the rest of #endif
2389 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
2391 2002-07-17 Jim Blandy <jimb@redhat.com>
2393 * macrocmd.c (info_macro_command): Remove newline from error
2396 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2398 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
2399 (sh_gdbarch_init): Use it for sh-dsp.
2401 2002-07-16 Kevin Buettner <kevinb@redhat.com>
2403 * dwarf2read.c (read_initial_length): Handle older, non-standard,
2404 64-bit DWARF2 format.
2406 2002-07-16 Joel Brobecker <brobecker@gnat.com>
2408 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
2409 <sys/proc.h> when not available.
2411 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2413 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
2414 * stabsread.c: Make os9k sections of the code obsolete.
2415 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
2416 * config/i386/i386os9k.mt: Make file obsolete.
2417 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
2418 (COMMON_OBS): Remove os9kread.o
2419 (SFILES): Remove os9kread.c.
2420 (os9kread.o, remote-os9k.o): Make target obsolete.
2421 * remote-os9k.c: Make file obsolete.
2422 * os9kread.c: Make file obsolete.
2425 2002-07-16 Andrew Cagney <ac131313@redhat.com>
2427 * NEWS: Mention that the FR30 has been made obsolete.
2428 * fr30-tdep.c: Make file obsolete.
2429 * config/fr30/tm-fr30.h: Ditto.
2430 * config/fr30/fr30.mt: Ditto.
2431 * configure.tgt: Make fr30-*-elf obsolete.
2432 * MAINTAINERS: Make fr30-elf obsolete.
2434 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
2436 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
2437 found is not inside a section.
2439 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2441 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
2443 (pdc_realloc): Use xrealloc() instead of realloc().
2445 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2447 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
2448 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
2449 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
2452 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2454 * aix-thread.c (ptrace_check): Eliminate goto.
2455 (sync_threadlists): Eliminate gotos. Also, fix array overrun
2458 2002-07-15 Kevin Buettner <kevinb@redhat.com>
2460 * aix-thread.c (gdbcmd.h): Include.
2461 (DEBUG, DBG, DBG2, dbg): Eliminate.
2462 (debug_aix_thread): New static global.
2463 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
2464 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
2465 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
2466 invocations to DBG and DBG2 macros to test against
2467 ``debug_aix_thread'' and call fprintf_unfiltered().
2468 (_initialize_aix_thread): Add new command "set debug aix-thread".
2470 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2472 From Gerhard Tonn <TON@de.ibm.com>:
2473 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
2474 instead of supply_register.
2476 2002-07-15 Andrew Cagney <ac131313@redhat.com>
2478 * dwarf2cfi.c: Include "gdb_assert.h".
2479 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
2481 (update_context): Do not use __func__. Add missing ``break''.
2482 (update_context): Do not use __func__.
2484 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
2486 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
2487 and its setting. Set gdbarch instruction printing functions
2488 directly. For non-rs6000 case use new function
2489 gdb_print_insn_powerpc.
2490 (gdb_print_insn_powerpc): New function.
2492 2002-07-13 Andrew Cagney <ac131313@redhat.com>
2494 * NEWS: Mention that the d30v has been marked obsolete.
2495 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
2496 * configure.tgt: Mark d30v-*-* as obsolete.
2497 * d30v-tdep.c: Mark file as obsolete.
2498 * config/d30v/d30v.mt: Ditto.
2499 * config/d30v/tm-d30v.h: Ditto.
2501 2002-07-13 Aidan Skinner <aidan@velvet.net>
2503 * ada-tasks.c (add_task_entry): replace calls to
2504 malloc() with xmalloc
2505 * ada-tasks.c (init_task_list): replace calls to free with xfree()
2507 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
2508 ada_finish_decode_line_1, all_sals_for_line
2509 ada_breakpoint_rewrite): replace calls to free() with xfree()
2511 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2513 From Nicholas Duffek (with minor changes by Martin Hunt,
2514 Louis Hamilton, and Kevin Buettner):
2515 * aix-thread.c: New file.
2517 2002-07-12 Petr Sorfa <petrs@caldera.com>
2519 * dwarf2read.c (dwarf2_invalid_attrib_class): New
2520 complaint for invalid attribute class or form.
2521 (read_func_scope): DW_AT_frame_base
2522 better handling of DW_AT_block*.
2523 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
2524 better handling of DW_AT_block*.
2525 (read_common_block): DW_AT_location
2526 better handling of DW_AT_block*.
2527 (read_partial_die): DW_AT_location better handling
2529 (new_symbol): DW_AT_external better handling of
2530 DW_AT_block*. Proper initialization of variable
2532 (attr_form_is_block): New function that returns true
2533 if the attribute's form is of DW_FORM_block*.
2535 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
2537 * valops.c (find_method_list): Remove comment about
2538 removed STATIC_MEMFUNCP argument.
2539 (value_find_oload_method_list): Likewise.
2541 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2543 From Nicholas Duffek:
2544 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
2545 target_new_objfile_hook.
2547 2002-07-12 Kevin Buettner <kevinb@redhat.com>
2549 From Nicholas Duffek:
2550 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
2553 2002-07-12 Andrew Cagney <cagney@redhat.com>
2555 * MAINTAINERS: Mention --enable-sim-build-warnings.
2556 (m68hc11-elf): Disable sim build warnings.
2557 (m32r-elf): Mark as broken obsolete candidate.
2558 (x86_64-linux-gnu): Mark as buildable with -Werror.
2559 (arm-elf): Change -w to ``,'' which enables warnings but not
2562 2002-07-12 Andrew Cagney <ac131313@redhat.com>
2564 * bcache.h: Update copyright.
2565 (struct bstring, struct bcache): Move definition to "bcache.c".
2566 Replaced by opaque declaration.
2567 (bcache_xfree): Replace free_bcache.
2568 (bcache_xmalloc, bcache_memory_used): Declare.
2570 * bcache.c: Update copyright.
2571 (struct bstring, struct bcache): Moved to here from "bcache.h".
2573 (bcache_xmalloc, bcache_memory_used): New functions.
2574 (bcache_xfree): Replace function free_bcache.
2576 * Makefile.in (objfiles.o): Add $(bcache_h).
2577 (objfiles_h): Remove $(bcache_h).
2578 (symfile.o): Add $(bcache_h).
2580 * symmisc.c: Update copyright.
2581 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
2582 (print_objfile_statistics): Use bcache_memory_used.
2584 * symfile.c: Include "bcache.h".
2585 (reread_symbols): Use bcache_xfree.
2586 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
2587 (add_psymbol_to_list): Pass psymbol_cache by value.
2588 (add_psymbol_with_dem_name_to_list): Ditto.
2590 * objfiles.h: Update copyright.
2591 (struct bcache): Declare opaque. Do not include "bcache.h".
2592 (struct objfile): Change psymbol_cache and macro_cache to ``struct
2594 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
2596 * objfiles.c: Include "bcache.h". Update copyright.
2597 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
2599 (free_objfile): Use bcache_xfree.
2601 2002-07-11 Grace Sainsbury <graces@redhat.com>
2603 * monitor.c (monitor_fetch_register): Make name a constant.
2604 (monitor_store_register): Same.
2606 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
2608 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
2609 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
2610 (finish_block) For non-function blocks, hash the symbol table. For
2611 function blocks, mark the symbol table as unhashed.
2612 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
2613 (msymbol_hash_iw): Likewise.
2614 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
2616 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
2617 (lookup_minimal_symbol): Likewise for both.
2618 * symtab.h (struct block): Add `hashtable' flag. Comment the
2620 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
2621 (ALL_BLOCK_SYMBOLS): Update.
2622 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
2623 (struct symbol): Add `hash_next' pointer.
2624 * symtab.c (lookup_block_symbol): Search using the hash table when
2626 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
2627 (search_symbols, find_addr_symbol): Likewise.
2629 * dstread.c (process_dst_block): Clear hashtable bit for new block.
2630 (read_dst_symtab): Likewise.
2631 * jv-lang.c (get_java_class_symtab): Likewise.
2632 * mdebugread.c: Include "gdb_assert.h".
2633 (shrink_block): Assert that the block being modified is not hashed.
2634 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
2635 * symmisc.c (free_symtab_block): Walk the hash table when freeing
2637 (dump_symtab): Recognize hashed blocks.
2638 * printcmd.c (print_frame_args): Assert that function blocks do not
2639 have hashed symbol tables.
2640 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
2641 (fill_in_ada_prototype, debug_print_block): Likewise.
2642 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2644 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
2646 * stack.c (print_frame): Use result of frame_address_in_block()
2647 instead of fi->pc when evaluating symbols.
2648 (backtrace_command_1): Ditto.
2650 2002-07-11 Andrew Cagney <cagney@redhat.com>
2652 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
2655 * arm-tdep.c (arm_register_name): Make return type constant.
2657 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2659 * win32-nat.c (has_detach_ability): Convert to strict ISO C
2661 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
2662 * s390-tdep.c (s390_fp_regnum): Ditto.
2663 (s390_read_fp): Ditto.
2664 (s390_pop_frame): Ditto.
2665 (_initialize_s390_tdep): Ditto.
2666 * remote.c (get_remote_state): Ditto.
2667 * procfs.c (mappingflags): Ditto.
2668 * memattr.c (_initialize_mem): Ditto.
2669 * mcore-tdep.c (mcore_pop_frame): Ditto.
2670 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
2671 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
2672 * language.c (set_case_str): Ditto.
2673 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
2674 * frv-tdep.c (new_variant): Ditto.
2675 (frv_stopped_data_address): Ditto.
2676 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
2677 (context_alloc): Ditto.
2678 (frame_state_alloc): Ditto.
2679 (unwind_tmp_obstack_init): Ditto.
2680 (unwind_tmp_obstack_free): Ditto.
2681 (cfi_read_fp): Ditto.
2682 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
2683 (cris_pop_frame): Ditto.
2684 * c-lang.c (scanning_macro_expansion): Ditto.
2685 (finished_macro_expansion): Ditto.
2686 (c_preprocess_and_parse): Ditto.
2687 * gdbarch.sh: Ditto.
2688 * gdbarch.h, gdbarch.c: Regenerate.
2689 * config/mn10200/tm-mn10200.h: Adjust indentation.
2690 * target.c: Adjust indentation.
2691 * symtab.h: Adjust indentation.
2692 * stabsread.h: Adjust indentation.
2693 * remote-es.c: Adjust indentation.
2694 * os9kread.c: Adjust indentation.
2696 2002-07-10 Andrew Cagney <ac131313@redhat.com>
2698 * wince.c (_initialize_wince): Rename _initialize_inftarg.
2699 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
2701 2002-07-10 Grace Sainsbury <graces@redhat.com>
2703 * NEWS: Mention m68k, mcore multi-arching.
2704 * MAINTAINERS: Change status of m68k, mcore to reflect
2707 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
2709 * valops.c (find_overload_match): Free oload_syms.
2711 2002-07-09 Joel Brobecker <brobecker@gnat.com>
2713 Define HAVE_SYS_PROC_H if sys/proc.h exists
2714 * configure.in: Add check for sys/proc.h
2715 * config.in: Regenerate.
2716 * configure: Regenerate.
2718 2002-07-09 Grace Sainsbury <graces@redhat.com>
2720 * config/m68k/tm-m68k.h: Remove macros wrapped in
2721 #if !GDB_MULTI_ARCH.
2723 2002-07-08 Andrew Cagney <ac131313@redhat.com>
2725 * config.in, configure: Regenerate.
2727 2002-07-08 Mark Kettenis <kettenis@gnu.org>
2729 * dwarf2cfi.c: Include "gcore.h".
2730 (execute_stack_op): Fix implementation of the
2731 DW_OP_deref and DW_OP_deref_size operators by letting do their
2732 lookup in the target.
2734 2002-07-07 Mark Kettenis <kettenis@gnu.org>
2736 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
2737 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
2740 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
2742 Fix PR gdb/595, gdb/602
2743 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
2744 Don't call value_cast, just read the vtable pointer; update comments
2747 2002-07-05 Grace Sainsbury <graces@redhat.com>
2749 * config/mcore/tm-mcore.h: Remove file.
2750 * config/mcore/mcore.mt: Remove definition of TM_FILE
2751 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
2753 2002-07-05 Mark Kettenis <kettenis@gnu.org>
2755 * i386bsd-tdep.c: Include "gdb_string.h".
2757 2002-07-04 Grace Sainsbury <graces@redhat.com>
2759 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
2760 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
2762 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
2763 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
2764 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
2765 (RETVAL_REGNUM): Move macros from tm-mcore.h
2766 (mcore_reg_struct_has_addr): New function.
2767 (mcore_gdbarch_init): Added initializations for the macros removed
2770 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2772 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
2773 traditonal string branding within the ELF header.
2775 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
2777 * symtab.c (remove_params): New function.
2778 (make_symbol_overload_list): Use it instead of cplus_demangle.
2779 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
2781 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2783 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
2785 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
2787 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
2788 and tdep->sigtramp_end.
2789 * i386obsd-nat.c: New file.
2790 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
2792 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
2793 Don't call get_current_frame().
2795 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
2797 * i386-nat.c (child_post_startup_inferior): New function
2798 calling i386_cleanup_dregs if
2799 I386_USE_GENERIC_WATCHPOINTS is defined.
2800 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
2801 conditional to acknowledge that i386-nat.c has its
2802 own child_post_startup_inferior function.
2804 2002-07-04 Mark Kettenis <kettenis@gnu.org>
2806 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
2807 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
2808 instead of MAX_REGISTER_RAW_SIZE.
2809 (i386_extract_return_value, i386_extract_struct_value_address):
2810 Convert to use regcache.
2811 (i386_gdbarch_init): Set max_register_raw_size and
2812 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
2813 Set extract_return_value and extract_struct_value_address instead
2814 of their deprecated variants.
2816 Convert i386 target to generic dummy frames.
2817 * i386-tdep.c: Include "symfile.h".
2818 (i386_frameless_signal_p): Consider a function to be frameless if
2819 the pc points at the first instruction of the function.
2820 (i386_frame_chain): Handle (generic) call dummies.
2821 (i386_frame_saved_pc): Likewise.
2822 (i386_frame_init_saved_regs): Remove code dealing with call
2823 dummies on the stack.
2824 (i386_push_dummy_frame): Removed.
2825 (i386_call_dummy_words): Removed.
2826 (i386_fix_call_dummy): Removed.
2827 (i386_push_return_address): New function.
2828 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
2829 parameter, and don't call get_current_frame.
2830 (i386_pop_frame): New function.
2831 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
2832 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
2833 entry_point_address, set call_dummy_breakpoint_offset to 0, set
2834 call_dummy_length to 0, set call_dummy_words to NULL, set
2835 sizeof_call_dummy_words to 0, set fix_call_dummy to
2836 generic_fix_call_dummy, set pc_in_call_dummy to
2837 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
2838 generic_push_dummy_frame, set push_return_address to
2839 i386_push_return_address and set frame_chain_valid to
2840 generic_file_frame_chain_valid.
2842 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2844 * gdbarch.sh (struct regcache): Add opaque declaration.
2845 (EXTRACT_RETURN_VALUE): New architecture method.
2846 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
2847 * gdbarch.h, gdbarch.c: Regenerate.
2848 * arch-utils.c (legacy_extract_return_value): New function.
2849 * arch-utils.h (legacy_extract_return_value): Declare.
2850 * values.c (value_being_returned): Re-enable code handling
2851 EXTRACT_STRUCT_VALUE_ADDRESS. Move
2852 deprecated_grub_regcache_for_registers call to block handling
2853 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
2854 (EXTRACT_RETURN_VALUE): Do not define.
2856 2002-07-03 Grace Sainsbury <graces@redhat.com>
2858 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
2859 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
2860 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
2861 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
2862 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
2863 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
2864 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2865 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
2866 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
2867 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
2868 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
2869 argument so the function fits the prototype in the architecture
2871 (mcore_pop_frame): Remove argument so the function fits the
2872 prototype. Use get_current_frame instead of the argument.
2873 (mcore_push_arguments): Change type of struct_return so the
2874 function can be used in the architecture vector.
2875 (mcore_store_struct_return): Add.
2876 (mcore_frame_init_saved_regs): Add.
2877 (mcore_gdbarch_init): Add function calls to replace the macros
2878 removed from tm-mcore.h
2880 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2882 * infcmd.c (print_return_value): Remove compatibility code calling
2883 deprecated_grub_regcache_for_registers.
2885 * values.c: Include "regcache.h".
2886 (value_being_returned): Update. Use
2887 deprecated_grub_regcache_for_registers to extract the register
2889 * value.h (value_being_returned): Change ``retbuf'' parameter to a
2890 ``struct regcache''.
2891 * Makefile.in (values.o): Add dependency on $(regcache_h).
2893 * inferior.h (run_stack_dummy): Change type of second parameter to
2894 a ``struct regcache''.
2895 * valops.c (hand_function_call): Change type of retbuf to ``struct
2896 regcache''. Allocate using regcache_xmalloc, clean using
2897 make_cleanup_regcache_xfree.
2898 * infcmd.c (run_stack_dummy): Update. Use
2899 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
2901 * regcache.c (do_regcache_xfree): New function.
2902 (make_cleanup_regcache_xfree): New function.
2903 * regcache.h (make_cleanup_regcache_xfree): Declare.
2905 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2907 * event-top.c (command_line_handler): Don't read past
2908 beginning of buffer.
2910 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2912 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
2914 (varobj_create): Store frame_id for root.
2915 (varobj_gen_name): Use xasprintf.
2916 (varobj_update): Save and restore frame using get_frame_id() and
2918 (create_child): Use xasprintf.
2919 (new_root_variable): Initialize frame_id.
2920 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
2921 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
2922 to prevent memory leak.
2924 2002-07-03 Andrew Cagney <ac131313@redhat.com>
2926 * valops.c (hand_function_call): Move declaration of retbuf to
2927 start of function, allocate using malloc, add a cleanup but before
2928 the inf_status cleanup, cleanup the buffer. Rename local variable
2929 old_chain to inf_status_cleanup.
2931 2002-07-03 Martin M. Hunt <hunt@redhat.com>
2933 * top.c (execute_command): Use cmd_func() and cmd_func_p().
2935 * cli/cli-decode.c (cmd_func_p): New function.
2936 (cmd_func): New function.
2938 * command.h: Add cmd_func() and cmd_func_p().
2940 2002-07-03 Grace Sainsbury <graces@redhat.com>
2942 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
2943 (REGISTER_SIZE): Remove.
2944 (MAX_REGISTER_RAW_SIZE): Remove.
2945 (REGISTER_VIRTUAL_TYPE): Remove.
2946 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
2947 (REGISTER_NAME): Remove.
2948 (USE_GENERIC_DUMMY_FRAMES): Remove.
2949 (CALL_DUMMY): Remove.
2950 (CALL_DUMMY_START_OFFSET): Remove.
2951 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
2952 (CALL_DUMMY_LOCATION): Remove.
2953 (FIX_CALL_DUMMY): Remove.
2954 (CALL_DUMMY_ADDRESS): Remove.
2955 (SIZEOF_CALL_DUMMY_WORDS): Remove.
2956 (SAVE_DUMMY_FRAME_TOS): Remove.
2957 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
2958 (mcore_register_virtual_type): New function.
2959 (mcore_register_byte): New function.
2960 (mcore_register_size): New function.
2961 (mcore_register_name): New function.
2962 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
2963 macros removed from tm-mcore.h.
2964 (mcore_dump_tdep): Add.
2965 (_initialize_mcore_tdep): Add gdbarch_register call.
2967 2002-07-03 Mark Kettenis <kettenis@gnu.org>
2969 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
2970 frameless_look_for_prologue, such that we actually call this
2973 2002-07-02 Joel Brobecker <brobecker@gnat.com>
2975 * frame.h (frame_address_in_block): New function.
2977 * blockframe.c (frame_address_in_block): New function extracted
2978 from get_frame_block().
2979 (get_frame_block): Use frame_address_in_block().
2980 (block_innermost_frame): Use frame_address_in_block() to match
2981 the frame pc address against the block boundaries rather than
2982 the frame pc directly. This prevents a failure when a frame pc
2983 is actually a return-address pointing immediately after the end
2986 2002-07-02 Grace Sainsbury <graces@redhat.com>
2988 * MAINTAINERS: Add self under write after approval.
2990 2002-07-02 Grace Sainsbury <graces@redhat.com>
2992 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
2993 used in architecture vector. The default is
2994 m68k_local_breakpoint_from_pc.
2995 (m68k_local_breakpoint_from_pc): Add.
2996 (enum): Add register numbers from tm-m68k.h.
2997 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
2999 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
3000 GDB_MULTI_ARCH_PARTIAL.
3001 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
3002 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
3004 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
3005 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
3006 to enum in m68k-tdep.c
3008 2002-07-02 Joel Brobecker <brobecker@gnat.com>
3010 * solib-osf.c (open_map): Compute the list of shared libraries
3011 loaded by the inferior, rather than the list of libraries loaded
3012 by GDB itself. Otherwise, GDB ends up reading the symbols from
3013 the wrong shared libraries...
3015 2002-07-02 Mark Kettenis <kettenis@gnu.org>
3017 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
3018 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
3020 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
3022 (FRAMELESS_SIGNAL): Remove function.
3023 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
3024 i386_linux_saved_pc_after_call): Removed.
3025 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
3026 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
3027 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
3029 * i386-tdep.c (i386_frameless_signal_p): New function.
3030 (i386_frame_chain): Deal with frameless signals.
3031 (i386_sigtramp_saved_sp): New function.
3032 (i386_frame_saved_pc): Deal with frameless signals.
3033 (i386_saved_pc_after_call): Make sure the correct value is
3034 returned just after entry into a sigtramp.
3035 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
3036 i386fbsd4_sc_sp_offset): New variables.
3037 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
3038 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
3039 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
3040 similiar to what we already did for sc_pc_offset.
3041 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
3044 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
3046 2002-07-02 Michal Ludvig <mludvig@suse.cz>
3048 * config/i386/tm-x86-64linux.h: New.
3049 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
3051 * config/i386/nm-x86-64.h: Rename to ...
3052 * config/i386/nm-x86-64linux.h: ... this one.
3053 * config/i386/x86-64linux.mh: Reflect the above change.
3055 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3057 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
3058 with sigcontext_addr. Add sc_sp_offset.
3059 (i386bsd_sigtramp_saved_pc): Remove prototype.
3060 (i386bsd_sicontext_addr): Add prototype.
3061 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
3062 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
3063 (i386_svr4_sigtramp_saved_pc): Removed.
3064 (i386_svr4_sigcontext_addr): New function.
3065 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3066 Initialize tdep->sigcontext_addr instead. Initialize
3067 tdep->sc_pc_offset and tdep->sc_sp_offset.
3068 (i386_gdbarch_init): Likewise.
3069 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
3071 (i386bsd_sigtramp_saved_pc): Remove function.
3072 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
3073 Initialize tdep->sigcontext_addr instead. Initialize
3075 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
3076 of tdep->sigtramp_saved_pc.
3077 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
3078 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
3081 * i386-tdep.c (i386_frameless_function_invocation,
3082 i386_frame_num_args, i386_frame_init_saved_regs,
3083 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
3084 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
3085 i386_extract_return_value, i386_store_return_value,
3086 i386_extract_struct_value_address, i386_register_virtual_type,
3087 i386_register_convertible, i386_register_convert_to_virtual,
3088 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
3089 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
3092 2002-07-01 Mark Kettenis <kettenis@gnu.org>
3094 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
3096 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
3097 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
3098 this macro. Include "value.h".
3100 2002-06-30 Aidan Skinner <aidan@velvet.net>
3102 * ada-exp.tab.c: remove as it's a generated file
3103 * ada-lex.c: remove as it's a generated file
3105 2002-06-30 Mark Kettenis <kettenis@gnu.org>
3107 * config/i386/tm-i386.h (struct frame_info, struct
3108 frame_saved_regs, struct value, struct type): Remove forward
3111 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
3112 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
3113 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
3114 (FILL_FPXREGSET): Define.
3116 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
3118 * configure.tgt (i[3456]86-*-openbsd*): Fold into
3119 i[3456]86-*-netbsd* case.
3120 * config/i386/tm-obsd.h: Removed.
3121 * config/i386/obsd.mt: Removed.
3122 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
3124 (MH_CFLAGS): Add -DYYDEBUG=0.
3126 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
3127 i386nbsd_sc_pc_offset on OpenBSD too.
3129 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
3130 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
3131 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
3133 * i386bsd-tdep.c: Include "arch-utils.h".
3134 (i386bsd_aout_in_solib_call_trampoline): New function.
3135 (i386bsd_init_abi): Set in_solib_call_trampoline to
3136 i386bsd_aout_in_solib_call_trampoline.
3137 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
3138 in_solib_call_trampoline to generic_in_solib_call_trampoline.
3140 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3142 * macrotab.h: Do not include "obstack.h" or "bcache.h".
3143 (struct obstack, struct bcache): Add opaque declarations.
3144 * Makefile.in (macrotab_h): Update
3146 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3148 * blockframe.c (generic_find_dummy_frame): Change return type to
3149 ``struct regcache''.
3150 (struct dummy_frame): Replace field ``registers'' with regcache, a
3151 struct regcache object.
3152 (generic_find_dummy_frame): Update.
3153 (generic_push_dummy_frame): Update. Use regcache_xfree,
3154 regcache_xmalloc and regcache_cpy.
3155 (generic_pop_dummy_frame): Update. Use regcache_cpy and
3157 (deprecated_generic_find_dummy_frame): Update.
3158 (generic_read_register_dummy): Update. Use
3159 regcache_read_as_address.
3160 (generic_call_dummy_register_unwind): Update. Use regcache_read.
3161 (generic_get_saved_register): Update. Use regcache_read.
3163 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3165 * Makefile.in (objfiles_h): Add $(bcache_h).
3166 * objfiles.h: Include "bcache.h".
3168 * Makefile.in (symtab_h): Remove $(bcache_h).
3169 * symtab.h: Do not include "bcache.h".
3171 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3173 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
3174 generic_func_frame_chain_valid.
3176 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3178 * config/i386/nm-fbsd.h: Include <sys/param.h>.
3179 * config/i386/tm-fbsd.h: Likewise.
3181 2002-06-28 Andrew Cagney <ac131313@redhat.com>
3183 * rs6000-tdep.c (rs6000_gdbarch_init): Use
3184 generic_unwind_get_saved_register.
3186 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3188 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
3189 * regcache.c (supply_register): Add missing argument to
3190 register_buffer call.
3192 2002-06-27 Andrew Cagney <ac131313@redhat.com>
3194 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
3195 Solaris /bin/grep does not not like it. From Peter Schauer.
3197 2002-06-26 Tom Tromey <tromey@redhat.com>
3199 * command.h (add_setshow_cmd): Declare.
3200 (add_setshow_cmd_full): Declare.
3201 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
3202 returns void. Use add_setshow_cmd_full.
3203 (add_setshow_cmd_full): New function.
3204 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
3205 (add_setshow_boolean_cmd): Likewise.
3207 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3209 * config/vax/tm-vax.h: Protect from multiple inclusion.
3210 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
3211 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
3212 * config/vax/tm-vaxbsd.h: ...here. New file.
3213 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
3215 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3217 * config/vax/tm-vax.h (BREAKPOINT): Remove.
3218 (BELIEVE_PCC_PROMOTION): Remove.
3219 (AP_REGNUM): Move to...
3220 * config/vax/nm-vax.h: ...here.
3221 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
3222 (vax_breakpoint_from_pc): New function.
3223 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
3224 and gdbarch_believe_pcc_promotion.
3226 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
3228 * Makefile.in (vax_tdep_h): Define.
3229 (vax-tdep.o): Use $(vax_tdep_h).
3230 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
3231 (vax_dump_tdep): New function.
3232 (_initialize_vax_tdep): Register vax_dump_tdep.
3233 * vax-tdep.h: Include osabi.h.
3234 (struct gdbarch_tdep): New.
3236 2002-06-26 Andrew Cagney <cagney@redhat.com>
3238 * frame.h (deprecated_generic_find_dummy_frame): Rename
3239 generic_find_dummy_frame.
3240 * blockframe.c (generic_find_dummy_frame): Make static.
3241 (deprecated_generic_find_dummy_frame): New function.
3242 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
3243 generic_find_dummy_frame with deprecated_find_dummy_frame.
3244 (sh64_nofp_frame_init_saved_regs): Ditto.
3245 (sh_fp_frame_init_saved_regs): Ditto.
3246 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
3247 (s390_frame_chain): Ditto.
3248 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3250 2002-06-26 Grace Sainsbury <graces@redhat.com>
3252 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
3253 gdbarch vector are at the top.
3255 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
3256 (FRAME_ARGS_ADDRESS): Remove.
3257 (FRAME_LOCALS_ADDRESS): Remove.
3258 (FRAME_NUM_ARGS): Remove.
3259 (FRAME_ARGS_SKIP): Remove.
3260 * m68k-tdep.c (enum): Add eumeration of special register numbers.
3261 (m68k_gdbarch_init): Add gdbarch initializations for macros
3262 undefined in tm-m68k.h
3264 2002-06-26 Grace Sainsbury <graces@redhat.com>
3266 * monitor.h: Add the function regname to monitor_ops
3267 structure. This way NUM_REGS does not have to be a constant.
3268 * monitor.c (monitor_fetch_register): Added support for regname
3269 function. The function is called if the array regnames is NULL.
3270 (monitor_store_register): Same.
3271 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
3273 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
3274 cpu32bug_cmds.regname to point to new function.
3275 * abug-rom.c (abug_regname): Same as above.
3276 (init_abug_cmds): Same.
3277 * dbug-rom.c (dbug_regname): Same as above.
3278 (init_dbug_cmds): Same.
3279 * remote-est.c (est_regname): Same.
3280 (init_est_cmds): Same.
3281 * rom68k-rom.c (rom68k_regname): Same.
3282 (init_rom68k_cmds): Same.
3284 2002-06-25 Tom Tromey <tromey@redhat.com>
3286 * breakpoint.c (delete_command): Don't repeat `delete' commands.
3288 2002-06-25 Andrew Cagney <cagney@redhat.com>
3290 * infrun.c (stop_registers): Change variable's type to ``struct
3292 (xmalloc_inferior_status): Delete function.
3293 (free_inferior_status): Delete function.
3294 (normal_stop): Use regcache_cpy.
3295 (struct inferior_status): Change type of fields ``stop_registers''
3296 and ``registers'' to ``struct regcache''.
3297 (write_inferior_status_register): Use regcache_write.
3298 (save_inferior_status): Instead of calling
3299 xmalloc_inferior_status, allocate the inf_status buffer directly.
3300 Use regcache_dup_no_passthrough and regcache_dup to save the
3302 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
3303 Replace the stop_registers regcache instead of overriding it. Use
3304 regcache_xfree. Instead of calling free_inferior_status, xfree
3305 the buffer directly.
3306 (discard_inferior_status): Use regcache_xfree. Instead of calling
3307 free_inferior_status, xfree the buffer directly.
3308 (build_infrun): Use regcache_xmalloc.
3309 (_initialize_infrun): Delete redundant call to build_infrun.
3311 * Makefile.in (infcmd.o): Add $(regcache_h).
3313 * infcmd.c: Include "regcache.h".
3314 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
3315 obtain the address of `stop_registers' register buffer.
3316 (print_return_value): Ditto.
3318 * inferior.h (struct regcache): Add opaque declaration.
3319 (stop_registers): Change variable's declared type to ``struct
3322 2002-06-24 Tom Tromey <tromey@redhat.com>
3324 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
3325 * target.c (initialize_targets): Fixed typo in
3326 trust-readonly-sections `show' documentation.
3328 * main.c: Marked all strings with _().
3330 2002-06-24 Don Howard <dhoward@redhat.com>
3332 * memattr.c (create_mem_region): Treat hi == 0 as a special case
3333 that means max CORE_ADDR+1.
3334 (lookup_mem_region): Ditto.
3335 (mem_info_command): Ditto.
3337 2002-06-24 Grace Sainsbury <graces@redhat.com>
3339 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
3340 (REGISTER_BYTES_OK): Remove.
3341 (REGISTER_BYTES): Remove.
3342 (STORE_STRUCT_RETURN): Remove.
3343 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
3344 (STORE_RETURN_VALUE): Remove.
3345 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
3346 (FRAME_CHAIN): Remove.
3347 (FRAMELESS_FUNCTION_INVOCATION): Remove.
3348 (FRAME_SAVED_PC): Remove.
3349 * m68k-tdep.c (m68k_register_bytes_ok):Add.
3350 (m68k_store_struct_return): Add.
3351 (m68k_deprecated_extract_return_value): Add.
3352 (m68k_deprecated_extract_struct_value_address): Add.
3353 (m68k_store_return_value): Add.
3354 (m68k_frame_chain): Add.
3355 (m68k_frameless_function_invocation): Add.
3356 (m68k_frame_saved_pc): Add.
3357 (m68k_gdbarch_init): added set_gdbarch calls for new
3358 functions and deleted macros.
3360 2002-06-23 Tom Tromey <tromey@redhat.com>
3362 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
3363 (ALLDEPFILES): Likewise.
3364 (udiheaders): Removed.
3365 (udip2soc.o): Likewise.
3366 (udi2go32.o): Likewise.
3368 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
3370 2002-06-22 Andrew Cagney <ac131313@redhat.com>
3372 * infrun.c (_initialize_infrun): Delete unnecessary call to
3375 * regcache.h: Update comments describing the regcache_cpy family
3377 (regcache_save, regcache_restore): Delete declaration.
3378 (regcache_save_no_passthrough): Delete declaration.
3379 (regcache_restore_no_passthrough): Delete declaration.
3380 * regcache.c (regcache_save): Delete function.
3381 (regcache_save_no_passthrough): Delete function.
3382 (regcache_restore): Delete function.
3383 (regcache_restore_no_passthrough): Delete function.
3385 2002-06-21 Andrew Cagney <ac131313@redhat.com>
3387 * config/m68k/tm-m68k.h: Fix typo.
3388 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
3389 (m68k_frame_init_saved_regs): Declare.
3391 2002-06-21 Jim Blandy <jimb@redhat.com>
3393 Remove some vestiges of Harris 88k support.
3394 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
3395 register numbering quirk.
3396 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
3397 odd symbols occurring in Harris 88k ELF targets.
3399 2002-06-21 Tom Tromey <tromey@redhat.com>
3401 * gdb_locale.h: New file.
3402 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
3403 (defs_h): Added gdb_locale.h.
3404 * configure, config.in: Rebuilt.
3405 * configure.in (PACKAGE): Define.
3406 * defs.h: Include gdb_locale.h.
3407 * main.c (captured_main): Call setlocale, bindtextdomain,
3410 2002-06-21 Dave Brolley <brolley@redhat.com>
3412 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
3413 * config/frv/frv.mt: New file.
3414 * config/frv/tm-frv.h: New file.
3415 * configure.tgt: Support frv-*-*.
3416 * Makefile.in (frv-tdep.o): New target.
3417 * frv-tdep.c: New file.
3418 * NEWS: Mention frv.
3420 2002-06-21 Dave Brolley <brolley@redhat.com>
3422 * MAINTAINERS: Add self to "Write After Approval" list.
3424 2002-06-21 Grace Sainsbury <graces@redhat.com>
3426 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
3427 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
3428 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
3429 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
3430 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
3432 * m68k-tdep.c: Include arch-utils.h
3433 (m68k_register_raw_size): Add.
3434 (m68k_register_virtual_size): Add.
3435 (m68k_register_virtual_type): Add.
3436 (m68k_register_name): Add.
3437 (m68k_stack_align): Add.
3438 (m68k_register_byte): Add.
3439 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
3442 2002-06-21 Grace Sainsbury <graces@redhat.com>
3444 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
3445 m68k_find_saved_regs.
3446 (m68k_pop_frame): Removed saved_regs structure, and replaced
3447 references to it with frame->saved_regs.
3448 (m68k_gdbarch_init): Added function calls to initialize the
3450 (m68k_fix_call_dummy): Add.
3451 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
3452 (CALL_DUMMY): Remove.
3453 (CALL_DUMMY_LENGTH): Remove.
3454 (CALL_DUMMY_START_OFFSET): Remove.
3455 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
3456 (FIX_CALL_DUMMY): Remove.
3457 (PUSH_DUMMY_FRAME): Remove.
3458 (POP_FRAME): Remove.
3460 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
3462 * parse.c (parse_fprintf): New function used to avoid calls to
3463 fprintf in bison parser generated debug code.
3464 * parser-defs.h: Declaration of new parse_fprintf function.
3465 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
3466 Set YYDEBUG to 1 by default.
3467 Set YYFPRINTF as parse_fprintf.
3469 2002-06-21 Michal Ludvig <mludvig@suse.cz>
3471 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
3473 (pointer_encoding, enum ptr_encoding): New.
3474 (execute_cfa_program): Take care about pointer encoding.
3475 (dwarf2_build_frame_info): Only call parse_frame_info for
3476 .debug_frame and .eh_frame.
3477 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
3478 fixed augmentation handling, added relative addressing,
3479 ignore duplicate FDEs. Added comments.
3480 * dwarf2cfi.c: Reindented.
3482 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
3484 * event-top.c (command_handler): Don't use space_at_cmd_start
3485 unless there is sbrk() on the host. Assign time and space data
3486 to union fields of the appropriate length.
3488 2002-06-20 Michal Ludvig <mludvig@suse.cz>
3490 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
3491 x86_64_register_name. Return type changed to 'const char *'.
3492 (x86_64_register_name2nr): Rename to x86_64_register_number.
3493 (x86_64_gdbarch_init): Update to reflect the change.
3494 * x86-64-tdep.h: Ditto.
3495 * x86-64-linux-nat.c (x86_64_fxsave_offset)
3496 (supply_fpregset): Ditto.
3498 2002-06-19 Andrew Cagney <cagney@redhat.com>
3500 * regcache.h: Update copyright.
3501 (struct regcache, struct gdbarch): Add opaque declarations.
3502 (current_regcache): Declare global variable.
3503 (regcache_read, regcache_write): Add gdbarch parameter.
3504 (regcache_save, regcache_save_no_passthrough)
3505 (regcache_restore, regcache_restore_no_passthrough)
3506 (regcache_dup, regcache_dup_no_passthrough)
3507 (regcache_cpy, regcache_cpy_no_passthrough)
3508 (deprecated_grub_regcache_for_registers)
3509 (deprecated_grub_regcache_for_register_valid)
3510 (regcache_valid_p): Add function declarations.
3512 * regcache.c: Update copyright.
3513 (regcache_descr_handle): New global variable.
3514 (struct regcache_descr): Define.
3515 (init_legacy_regcache_descr, init_regcache_descr): New functions.
3516 (regcache_descr, xfree_regcache_descr): New functions.
3517 (struct regcache): Define.
3518 (regcache_xmalloc, regcache_xfree): New functions.
3519 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
3520 (regcache_dup, regcache_dup_no_passthrough): New functions.
3521 (regcache_valid_p, regcache_read_as_address): New functions.
3522 (deprecated_grub_regcache_for_registers): New function.
3523 (deprecated_grub_regcache_for_register_valid): New function.
3524 (current_regcache): New global variable.
3525 (register_buffer): Add regcache parameter. Update calls.
3526 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
3527 (read_register_gen, write_register_gen): Update register_buffer
3528 call. Test for legacy_p instead of gdbarch_register_read_p or
3529 gdbarch_register_write_p.
3530 (regcache_collect): Update register_buffer call.
3531 (build_regcache): Rewrite. Use deprecated grub functions.
3532 (regcache_save, regcache_save_no_passthrough): New functions.
3533 (regcache_restore, regcache_restore_no_passthrough): New
3535 (_initialize_regcache): Create the regcache_data_handle. Swap
3536 current_regcache global variable.
3538 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
3539 parameter to regcache_read and regcache_write calls.
3540 (sh4_register_read): Ditto.
3541 (sh64_pseudo_register_read): Ditto.
3542 (sh64_register_read): Ditto.
3543 (sh_pseudo_register_write): Ditto.
3544 (sh4_register_write): Ditto.
3545 (sh64_pseudo_register_write): Ditto.
3546 (sh64_register_write): Ditto.
3548 * defs.h (XCALLOC): Define.
3550 2002-06-19 Grace Sainsbury <graces@redhat.com>
3552 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
3553 * m68k-tdep.c (m68k_gdbarch_init): Added.
3554 (m68k_dump_tdep): Added.
3556 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3558 * ada-lang.c (fill_in_ada_prototype): Update comment.
3560 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
3562 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
3564 (mips_abi_string, mips_abi_strings): New.
3565 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
3566 (mips_gdbarch_init): Set tdep->found_abi. Don't set
3567 tdep->mips_abi_string. Honor mips_abi_string. Default to
3568 O32 if no ABI is found.
3569 (mips_dump_tdep): Use mips_abi_strings.
3570 (mips_abi_update): New function.
3571 (_initialize_mips_tdep): Initialize mips_abi_string. Add
3572 ``set mips abi'' and ``show mips abi''. Check the size of
3575 2002-06-19 Andrew Cagney <cagney@redhat.com>
3577 * i386-linux-tdep.c (i386_linux_register_name): Make return type
3580 2002-06-18 Joel Brobecker <brobecker@gnat.com>
3582 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
3583 current frame using only the first stack size adjustment. All
3584 subsequent size adjustments are not considered to be part of
3585 the "static" part of the current frame.
3586 Compute the address of the saved registers relative to the
3587 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
3588 in use in this frame.
3590 2002-06-18 Don Howard <dhoward@redhat.com>
3592 * valops.c (value_ind): Use value_at_lazy() when dereferencing
3593 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
3594 suggesting this solution.
3596 2002-06-18 Andrew Cagney <ac131313@redhat.com>
3598 * config/romp/xm-rtbsd.h: Delete file.
3599 * config/romp/rtbsd.mh: Delete file.
3601 2002-06-18 Keith Seitz <keiths@redhat.com>
3603 * breakpoint.c (condition_command): Post breakpoint_modify
3604 when a condition is added to an existing breakpoint.
3605 (commands_command): Likewise for commands.
3606 (set_ignore_count): Likewise for ignore counts.
3607 If no tty, do not simply return, still need to send event
3609 (ignore_command): Only print a newline if the command came
3611 Don't call breakpoints_changed, since this is now properly
3612 handled by set_ignore_count.
3614 2002-06-18 Andrew Cagney <cagney@redhat.com>
3616 * MAINTAINERS: Note that cris-elf target can be compiled with
3618 * cris-tdep.c (cris_register_name): Make return type constant.
3619 (cris_breakpoint_from_pc): Ditto.
3621 2002-06-18 Michal Ludvig <mludvig@suse.cz>
3623 * frame.h (struct frame_info): Change type of context to
3626 2002-06-17 Andrew Cagney <cagney@redhat.com>
3628 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
3630 * gdbarch.h, gdbarch.c: Regenerate.
3631 * config/mips/tm-mips.h (mips_register_name): Update.
3632 * i386-tdep.h (i386_register_name): Update.
3633 * mips-tdep.c (mips_register_name): Update
3634 * alpha-tdep.c (alpha_register_name): Update.
3635 * arch-utils.c (legacy_register_name): Update.
3636 * arch-utils.h (legacy_register_name): Update.
3637 * avr-tdep.c (avr_register_name): Update.
3638 * ia64-tdep.c (ia64_register_name): Update.
3639 * i386-tdep.c (i386_register_name): Update.
3640 * sparc-tdep.c (sparc32_register_name): Update.
3641 (sparc64_register_name): Update.
3642 (sparclite_register_name): Update.
3643 (sparclet_register_name): Update.
3644 * sh-tdep.c (sh_generic_register_name): Update.
3645 (sh_sh_register_name): Update.
3646 (sh_sh3_register_name): Update.
3647 (sh_sh3e_register_name): Update.
3648 (sh_sh_dsp_register_name): Update.
3649 (sh_sh3_dsp_register_name): Update.
3650 (sh_sh4_register_name): Update.
3651 (sh_sh64_register_name): Update.
3652 * s390-tdep.c (s390_register_name): Update.
3653 * rs6000-tdep.c (rs6000_register_name): Update.
3654 * ns32k-tdep.c (ns32k_register_name_32082): Update.
3655 (ns32k_register_name_32382): Update.
3656 * d10v-tdep.c (d10v_ts2_register_name): Update.
3657 (d10v_ts3_register_name): Update.
3658 * xstormy16-tdep.c (xstormy16_register_name): Update.
3659 * vax-tdep.c (vax_register_name): Update.
3660 * v850-tdep.c (v850_register_name): Update.
3661 * m68hc11-tdep.c (m68hc11_register_name): Update.
3662 * mn10300-tdep.c (mn10300_generic_register_name): Update.
3663 (am33_register_name): Update.
3665 2002-06-17 Grace Sainsbury <graces@redhat.com>
3667 * m68k-tdep.c: Reindented.
3669 2002-06-17 Andrew Cagney <ac131313@redhat.com>
3671 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
3672 list of predefined types.
3674 2002-06-16 Mark Kettenis <kettenis@gnu.org>
3676 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
3677 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
3678 REGISTER_CONVERT_TO_RAW): Remove defines.
3679 (i386_register_virtual_type, i386_register_convertible,
3680 i386_register_convert_to_virtual, i386_register_convert_to_raw):
3682 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3683 macros mentioned above.
3685 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
3686 (i386lynx_saved_pc_after_call): Remove prototype.
3687 * i386ly-tdep.c: Include "i386-tdep.h".
3688 (i386lynx_saved_pc_after_call): Make static. Use
3689 read_memory_nobpt instead of read_memory. Use
3690 read_memory_unsigned_integer instead of read_memory_integer.
3691 (i386lynx_init_abi): New function.
3692 (i386lynx_coff_osabi_sniffer): New function.
3693 (_initialize_i386bsd_tdep): New function.
3695 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
3696 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
3697 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
3698 (i386_fix_call_dummy): Remove prototype.
3699 * i386-tdep.c (i386_call_dummy_words): New variable.
3700 (i386_gdbarch_init): Adjust for removal of the
3701 macros mentioned above.
3703 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3705 * command.h (add_setshow_auto_boolean_cmd): Replace
3706 add_set_auto_boolean_cmd.
3707 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
3708 add_set_auto_boolean_cmd.
3709 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
3710 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
3711 mask-address'' command.
3712 (show_mask_address): Add cmd parameter.
3713 * remote.c (add_packet_config_cmd): Update. Change type of
3714 set_func and show_func to cmd_sfunc_ftype.
3715 (_initialize_remote): Update `set remote Z-packet'
3716 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
3717 (show_remote_protocol_e_packet_cmd): Ditto.
3718 (show_remote_protocol_E_packet_cmd): Ditto.
3719 (show_remote_protocol_P_packet_cmd): Ditto.
3720 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
3721 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
3722 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
3723 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
3724 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
3725 (show_remote_protocol_Z_packet_cmd): Ditto.
3726 (show_remote_protocol_binary_download_cmd): Ditto.
3727 (show_remote_cmd): Pass NULL to all of above.
3729 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3731 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
3732 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
3733 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
3734 POP_FRAME): Remove defines.
3735 (i386_push_arguments, i386_store_struct_return,
3736 i386_extract_return_value, i386_store_return_value,
3737 i386_extract_struct_value_address, i386_push_dummy_frame,
3738 i386_pop_frame): Renove prototypes.
3739 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3740 macros mentioned above.
3742 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3744 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
3745 add_set_boolean_cmd.
3746 (add_setshow_cmd): New function.
3747 * command.h (add_setshow_boolean_cmd): Replace
3748 add_set_boolean_cmd.
3749 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
3750 and ``set rdiromatzero''.
3751 * maint.c (_initialize_maint_cmds): Update commented out code.
3752 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
3753 * target.c (initialize_targets): Update `set
3754 trust-readonly-sections'.
3755 * remote.c (_initialize_remote): Update `set remotebreak'.
3757 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3759 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
3760 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
3761 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
3762 fit into multi-arch framework.
3763 (i386_breakpoint_from_pc): New function.
3764 (i386_gdbarch_init): Adjust for removal of the macros mentioned
3767 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
3768 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
3769 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
3770 (i386_frameless_function_invocation, i386_frame_num_args,
3771 i386_frame_init_saved_regs): Remove prototypes.
3772 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
3773 macros mentioned above.
3775 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3777 * cli/cli-decode.c (set_cmd_cfunc): Update.
3778 (set_cmd_sfunc): Update.
3779 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
3780 (set_cmd_sfunc, set_cmd_cfunc): Update.
3781 * cli/cli-decode.h: Update.
3783 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3785 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
3786 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
3788 2002-06-15 Andrew Cagney <ac131313@redhat.com>
3790 * defs.h (auto_boolean): Declare enum.
3791 * command.h (cmd_auto_boolean): Delete enum.
3792 * mips-tdep.c (mask_address_var): Update.
3793 (mips_mask_address_p): Update.
3794 (show_mask_address): Update.
3795 * remote.c (struct packet_config): Update.
3796 (update_packet_config): Update.
3797 (show_packet_config_cmd): Update.
3798 (packet_ok): Update.
3799 (add_packet_config_cmd): Update.
3800 (_initialize_remote):
3801 * command.h: Update.
3802 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
3803 (do_setshow_command): Update.
3804 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
3805 * cli/cli-decode.h: Update.
3807 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3809 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
3810 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
3811 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
3812 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
3813 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
3814 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
3816 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
3817 list of DJGPP COFF targets.
3819 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
3820 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
3821 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
3822 (FP0_REGNUM): Remove define.
3823 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
3824 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
3825 (i386_register_virtual_size): Remove protoype.
3826 * i386-tdep.c (i386_register_virtual_size): Removed.
3827 (i386_extract_return_value, i386_store_return_value): Use
3828 FP0_REGNUM instead of NUM_FREGS to determine whether the
3829 floating-point registers are available.
3830 (i386_gdbarch_init): Tweak FIXME about FPU registers.
3831 Adjust for removal of macros mentioned above.
3833 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3835 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
3837 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
3839 (supply_gregset, fill_gregset): Remove use of register keyword and
3840 remove declaration for regmap. Use I386_NUM_GREGS instead of
3841 NUM_REGS and NUM_FREGS.
3842 (FPREGSET_FSAVE_OFFSET): Remove.
3843 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
3844 NUM_FREGS to determine whether the floating-point registers are
3847 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
3848 gnu_store_registers): Replace usage of NUM_GREGS with
3851 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
3852 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
3853 usage of NUM_GREGS with I386_NUM_GREGS.
3855 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
3857 * i386bsd-nat.c: Include "i386-tdep.h".
3858 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
3861 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
3862 and associated comment. They no longer make any sense, since we
3863 don't use this file anymore on Linux.
3865 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
3866 * i386-tdep.c (i386_register_offset, i386_register_size): Use
3867 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
3868 elements in these arrays.
3869 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
3872 2002-06-15 Mark Kettenis <kettenis@gnu.org>
3874 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
3875 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
3877 2002-06-14 Andrew Cagney <cagney@redhat.com>
3879 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
3880 EXTRACT_RETURN_VALUE.
3881 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
3882 EXTRACT_STRUCT_VALUE_ADDRESS.
3883 * gdbarch.h, gdbarch.c: Regenerate.
3885 * values.c (value_being_returned): Handle
3886 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
3887 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
3889 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3890 * arm-tdep.c (arm_gdbarch_init): Update.
3891 * avr-tdep.c (avr_gdbarch_init): Update.
3892 * cris-tdep.c (cris_gdbarch_init): Update.
3893 * d10v-tdep.c (d10v_gdbarch_init): Update.
3894 * ia64-tdep.c (ia64_gdbarch_init): Update.
3895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3896 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3897 * s390-tdep.c (s390_gdbarch_init): Update.
3898 * sh-tdep.c (sh_gdbarch_init): Update.
3899 * s390-tdep.c (s390_gdbarch_init): Update.
3900 * sparc-tdep.c (sparc_gdbarch_init): Update.
3901 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3902 * v850-tdep.c (v850_gdbarch_init): Update.
3903 * vax-tdep.c (vax_gdbarch_init): Update.
3904 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3905 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3907 * config/arc/tm-arc.h: Update.
3908 * config/d30v/tm-d30v.h: Update.
3909 * config/fr30/tm-fr30.h: Update.
3910 * config/h8300/tm-h8300.h: Update.
3911 * config/h8500/tm-h8500.h: Update.
3912 * config/i386/tm-i386.h: Update.
3913 * config/i386/tm-ptx.h: Update.
3914 * config/i386/tm-symmetry.h: Update.
3915 * config/i960/tm-i960.h: Update.
3916 * config/m32r/tm-m32r.h: Update.
3917 * config/m68k/tm-delta68.h: Update.
3918 * config/m68k/tm-linux.h: Update.
3919 * config/m68k/tm-m68k.h: Update.
3920 * config/m88k/tm-m88k.h: Update.
3921 * config/mcore/tm-mcore.h: Update.
3922 * config/mips/tm-mips.h: Update.
3923 * config/mn10200/tm-mn10200.h: Update.
3924 * config/pa/tm-hppa.h: Update.
3925 * config/pa/tm-hppa64.h: Update.
3926 * config/sparc/tm-sp64.h: Update.
3927 * config/sparc/tm-sparc.h: Update.
3928 * config/sparc/tm-sparclet.h: Update.
3929 * config/z8k/tm-z8k.h: Update.
3931 2002-06-14 Andrew Cagney <cagney@redhat.com>
3933 * Makefile.in (i386_linux_tdep_h): Define.
3934 (i386_tdep_h, i387_tdep_h): Define.
3935 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
3936 $(i386_tdep_h) and $(i387_tdep_h).
3937 * i386-linux-nat.c: Include "i386-linux-tdep.h".
3939 2002-06-14 Mark Kettenis <kettenis@gnu.org>
3941 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
3942 Already covered by the default.
3944 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
3945 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
3946 (i386_gdbarch_init): Initialize long_double_format and long_double
3949 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
3950 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
3952 * config/i386/i386sol2.mh: ... here.
3953 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
3954 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
3955 (SIGCONTEXT_PC_OFFSET): Remove define.
3956 (IN_SIGTRAMP): Remove define.
3957 * i386-sol2-tdep.c: New file.
3959 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
3960 * config/i386/tm-i386nw.h: Removed.
3962 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
3963 USE_STRUCT_CONVENTION): Remove defines.
3964 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
3965 (get_longjmp_target): Remove prototype.
3966 (IN_SIGTRAMP): Remove define.
3967 (i386bsd_in_sigtramp): Remove prototype.
3968 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3969 function. Update comment accordingly
3970 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3971 (FRAME_SAVED_PC): Remove define.
3972 (i386bsd_frame_saved_pc): Remove prototype.
3973 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
3974 GET_LONGJMP_TARGET): Remove defines.
3975 (get_longjmp_target): Remove prototype.
3976 (IN_SIGTRAMP): Remove define.
3977 (i386bsd_in_sigtramp): Remove prototype.
3978 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
3979 function. Update comment accordingly
3980 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
3981 (FRAME_SAVED_PC): Remove define.
3982 (i386bsd_frame_saved_pc): Remove prototype.
3983 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
3985 (USE_STRUCT_CONVENTION): Remove prototype.
3986 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
3988 (_initialize_i386bsd_nat): Revise logic to determine some
3989 constants at compile time when compiling a native GDB. Warn if
3990 things don't match up with what we expect.
3991 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
3993 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
3994 to use date stored in `struct gdbarch_tdep'.
3995 (i386bsd_sigcontext_offset): Remove varaible.
3996 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
3997 stored in `struct gdbarch_tdep'.
3998 (i386bsd_frame_saved_pc): Make static.
3999 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
4000 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
4001 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4002 i386fbsd4_sc_pc_offset): New variables.
4003 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
4004 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
4006 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
4008 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
4009 Modify the value of i386fbsd_sigtramp_start and
4010 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
4011 i386fbsd_sigtramp_end.
4012 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
4015 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
4016 define to i386-linux-tdep.h.
4017 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
4018 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
4020 (i386_linux_register_name, i386_linux_register_byte,
4021 i386_linux_register_raw_size): Remove prototypes.
4022 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
4023 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
4024 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
4025 TARGET_WRITE_PC): Remove defines.
4026 (i386_linux_in_sigtramp, i386_linux_frame_chain,
4027 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
4028 i386_linux_write_pc): Remove prototypes.
4029 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4030 (get_longjmp_target): Remove prototype.
4031 * i386-linux-tdep.h: New file.
4032 * i386-linux-nat.c: Include "i386-linux-tdep.h".
4033 * i386-linux-tdep.c: Include "i386-tdep.h" and
4034 "i386-linux-tdep.h".
4035 (i386_linux_register_name, i386_linux_register_byte,
4036 i386_linux_register_raw_size, i386_linux_in_sigtramp,
4037 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
4039 (i386_linux_init_abi): New function.
4040 (_initialize_i386_linux_tdep): New function.
4042 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
4043 (i386_saved_pc_after_call): Remove prototype.
4044 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
4045 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
4046 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
4047 (i386_register_name, i386_stab_reg_to_regnum,
4048 i386_dwarf_reg_to_regnum): Remove prototypes.
4049 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
4050 SIZEOF_SSE_REGS): Remove defines.
4051 (REGISTER_BYTES): Remove define.
4052 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
4053 (i386_register_byte, i386_register_raw_size): Remove prototypes.
4054 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
4055 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
4056 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
4057 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
4058 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
4059 (get_longjmp_target): Remove prototype.
4060 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
4061 (sigtramp_saved_pc): Remove define.
4062 (i386v4_sigtramp_saved_pc): Remove prototype.
4063 * config/i386/tm-go32.h (FRAME_CHAIN,
4064 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
4065 (i386go32_frame_saved_pc): Remove prototype.
4066 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
4067 (get_longjmp_target): Remove prototype.
4068 * i386-tdep.h: Include "osabi.h".
4069 (enum i386_abi): Removed.
4070 (enum struct_return): New enum.
4071 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
4072 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
4073 sc_pc_offset members.
4074 (i386_gdbarch_register_os_abi): Remove prototype.
4075 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
4076 I386_SSE_NUM_REGS): New defines.
4077 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
4078 I386_SSE_SIZEOF_REGS): New defines.
4079 (i386_register_name, i386_register_byte, i386_register_raw_size):
4081 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
4082 (i386bsd_sigtramp_saved_pc): New prototype.
4083 * i386-tdep.c: Don't include "elf-bfd.h".
4084 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
4085 i386_frame_chain, i386_saved_pc_after_call): Make static.
4086 (i386_frame_saved_pc): Rewrite to call architecture dependent
4087 function to deal with signal handlers. Make static.
4088 (i386go32_frame_saved_pc): Removed.
4089 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
4091 (i386_get_longjmp_target): New function.
4092 (default_struct_convention, pcc_struct_convention,
4093 reg_struct_convention, valid_conventions, struct_convention): New
4095 (i386_use_struct_convention): New function.
4096 (i386v4_sigtramp_saved_pc): Renamed to
4097 i386_svr4_sigtramp_saved_pc. Made static. Moved.
4098 (i386_pc_in_sigtramp): New function.
4099 (i386_abi_names): Removed.
4100 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
4101 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
4103 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
4104 i386_gdbarch_register_os_abi): Removed.
4105 (struct i386_abi_handler): Removed.
4106 (i386_abi_handler_list): Removed.
4107 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
4109 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
4110 i386_nw_init_abi): New functions.
4111 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
4112 Use set_gdbarch_xxx() calls instead of relying on macros for a
4114 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
4115 (_initialize_i386_tdep): Add new 'struct-convcention' command.
4116 Register the various architecture variants defined in this file.
4118 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4120 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
4121 (struct main_type): Remove arg_types member. Update comments for
4123 (TYPE_ARG_TYPES): Remove.
4124 (TYPE_FN_FIELD_ARGS): Update.
4125 (smash_to_method_type): Update prototype.
4127 * c-typeprint.c (cp_type_print_method_args): Take method type
4128 instead of argument list. Use new argument layout. Simplify.
4129 (c_type_print_args): Use new argument layout. Simplify.
4130 (c_type_print_base): Update call to cp_type_print_method_args.
4131 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
4132 argument; use die->type instead. Update call to
4133 smash_to_method_type.
4134 (read_structure_scope): Update call to dwarf2_add_member_fn.
4135 * gdbtypes.c (allocate_stub_method): Update comment.
4136 (smash_to_method_type): Take new NARGS and VARARGS arguments.
4137 Use new argument layout.
4138 (check_stub_method): Use new argument layout. Don't count
4139 void as an argument.
4140 (print_arg_types): Update comments. Use new argument layout.
4141 (recursive_dump_type): Don't print arg_types member.
4142 * hpread.c (hpread_read_struct_type): Use new argument layout.
4143 (fixup_class_method_type): Likewise.
4144 (hpread_type_lookup): Likewise.
4145 * stabsread.c (read_type): Update calls to read_args and
4146 smash_to_method_type.
4147 (read_args): Use new argument layout. Simplify.
4148 * valops.c (typecmp): Use new argument layout. Update parameters
4149 and comments. Simplify.
4150 (hand_function_call): Use new argument layout.
4151 (search_struct_method): Update call to typecmp.
4152 (find_overload_match): Use new argument layout.
4154 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4156 * NEWS: Mention multithreaded debug support for gdbserver.
4158 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4160 * MAINTAINERS: Mention NEWS.
4162 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
4164 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
4165 (struct mips_objfile_private, compare_pdr_entries): New.
4166 (non_heuristic_proc_desc): Read the ".pdr" section if it
4169 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4171 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
4172 (arm_debug): New static variable.
4173 (_initialize_arm_tdep): Add ``set debug arm'' command.
4175 2002-06-12 Andrew Cagney <ac131313@redhat.com>
4177 * Makefile.in (sim_arm_h): Define.
4178 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
4179 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
4180 (arm_register_sim_regno): New function, map an internal REGNUM
4181 onto a simulator register number.
4182 (arm_gdbarch_init): Set register_sim_regno.
4184 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
4186 * MAINTAINERS: Add self.
4188 2002-06-11 Jim Blandy <jimb@redhat.com>
4190 * source.c (source_info): Mention whether the symtab has
4191 information about preprocessor macros.
4193 Call the command `info macro', not `show macro'.
4194 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
4196 (_initialize_macrocmd): Register `info_macro_command' in
4197 `infolist', not `showlist'.
4199 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
4201 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
4202 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
4203 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
4204 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
4205 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
4207 (set_mipsfpu_single_command, set_mipsfpu_double_command)
4208 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
4209 (_initialize_mips_tdep): Remove dead code.
4210 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
4211 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4212 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
4213 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
4214 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
4215 MIPS_LAST_FP_ARG_REGNUM): Remove.
4217 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4219 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
4220 (unwind_tmp_obstack_free, parse_frame_info)
4221 (update_context, cfi_read_fp, cfi_write_fp)
4222 (cfi_frame_chain, cfi_init_extra_frame_info)
4223 (cfi_virtual_frame_pointer): Use the above function.
4224 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
4226 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
4228 * v850-tdep.c (v850_type_is_scalar): New function.
4229 (v850_use_struct_convention): Match current gcc implementation
4230 as close as possible.
4231 (v850_push_arguments): Fix stack_offset handling. Don't write
4232 struct_addr into register. This is done by v850_store_struct_return.
4233 (v850_extract_return_value): Care for structs.
4234 (v850_store_return_value): Ditto.
4235 (v850_store_struct_return): Actually write address.
4237 2002-06-11 Michal Ludvig <mludvig@suse.cz>
4239 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
4240 without debug information too.
4242 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4244 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
4245 Make multi-arch pure.
4246 * gdbarch.h, gdbarch.c: Re-generate.
4247 * arm-tdep.c (arm_print_float_info): Update.
4248 * arch-utils.h (default_print_float_info): Update.
4249 * arch-utils.c (default_print_float_info): Update.
4250 * infcmd.c (float_info): Update call.
4252 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4254 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
4255 the front of the initialize list.
4257 2002-06-10 Andrew Cagney <ac131313@redhat.com>
4259 * infrun.c (struct inferior_status): Replace fields
4260 selected_frame_address and selected_level with field
4262 (save_inferior_status): Update. Use get_frame_id.
4263 (struct restore_selected_frame_args): Delete.
4264 (restore_selected_frame): Update. Use frame_find_by_id.
4265 (restore_inferior_status): Update.
4267 * breakpoint.h (struct breakpoint): Change type of
4268 watchpoint_frame to frame_id.
4269 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
4270 call to get_current_frame.
4271 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
4273 (watchpoint_check): Use frame_find_by_id.
4275 * frame.h (record_selected_frame): Delete declaration.
4276 * stack.c (record_selected_frame): Delete function.
4278 * frame.h (struct frame_id): Define.
4279 (get_frame_id): Declare.
4280 (frame_find_by_id): Declare.
4281 * frame.c (frame_find_by_id): New function.
4282 (get_frame_id): New function.
4284 2002-06-10 Andrey Volkov <avolkov@transas.com>
4286 * ser-e7kpc.c: Fix duplicated define and call of
4287 _initialize_ser_e7000pc
4289 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4291 * signals/signals.c (target_signal_from_host): Fix #ifdef
4293 (do_target_signal_to_host): Likewise.
4295 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
4297 * mips-tdep.c (mips_find_abi_section): New function.
4298 (mips_gdbarch_init): Call it.
4300 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4302 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
4303 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
4304 after Andrew's 2002-06-08 gdbarch change.
4306 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4308 * i386-linux-nat.c (suppy_gregset): Don't supply
4309 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
4311 (fill_gregset): Don't fetch it under the same circumstances.
4313 2002-06-09 Andrew Cagney <cagney@redhat.com>
4315 * Makefile.in (callback_h): Define.
4316 (remote_sim_h): Update path to remote-sim.h.
4317 (remote-rdp.o): Add $(callback_h).
4318 (remote-sim.o): Use $(callback_h).
4319 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
4320 * remote-rdp.c: Include "gdb/callback.h".
4322 2002-06-09 Mark Kettenis <kettenis@gnu.org>
4324 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
4325 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
4327 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4329 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
4330 * rdi-share/serpardr.c: Ditto.
4331 * rdi-share/unixcomm.c: Ditto.
4332 * rdi-share/serdrv.c: Ditto.
4333 * rdi-share/hostchan.h: Ditto.
4334 * rdi-share/hostchan.c: Ditto.
4335 * rdi-share/host.h: Ditto.
4336 * rdi-share/devsw.c: Ditto.
4338 * objfiles.h: Change type of obj_private to void pointer.
4339 * pa64solib.c: Update copyright. Don't include "assert.h", use
4340 strcmp instead of STREQ, use LONGEST, do not use PTR
4341 * somsolib.c: Ditto.
4343 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
4344 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
4345 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
4347 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4349 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
4350 (default_get_saved_register): Delete function.
4351 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
4352 generic_unwind_get_saved_register.
4353 * gdbarch.h, gdbarch.c: Re-generate.
4355 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4357 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
4358 generic_func_frame_chain_valid.
4359 * gdbarch.h, gdbarch.c: Re-generate.
4360 * blockframe.c (generic_func_frame_chain_valid): Only check
4361 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
4362 passing FP to PC_IN_CALL_DUMMY.
4365 2002-06-08 Andrew Cagney <ac131313@redhat.com>
4367 * gdbarch.sh (struct gdbarch_data): Add field init_p.
4368 (register_gdbarch_data): Initialize init_p.
4369 (gdbarch_data): Initialize data pointer using the init function.
4370 (init_gdbarch_data): Delete function.
4371 (gdbarch_update_p): Update.
4372 (initialize_non_multiarch): Update.
4373 (struct gdbarch): Add field initialized_p.
4374 * gdbarch.h, gdbarch.c: Re-generate.
4376 2002-06-07 Michal Ludvig <mludvig@suse.cz>
4378 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
4379 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
4380 better do the things actually here.
4381 * x86-64-tdep.c (x86_64_register_name2nr): New.
4382 (x86_64_register_name): Renamed to x86_64_register_nr2name.
4383 (x86_64_gdbarch_init): Respect the above change.
4384 * x86-64-tdep.h (x86_64_register_name2nr)
4385 (x86_64_register_nr2name): Add prototypes.
4386 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
4388 2002-06-06 Michael Snyder <msnyder@redhat.com>
4390 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
4391 Delete extra braces and re-indent.
4392 (d10v_store_return_value): Char return values
4393 must be shifted over by one byte in R0.
4394 (d10v_extract_return_value): Delete extra braces, re-indent.
4396 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4398 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
4399 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
4400 (d10v_integer_to_address): Rewrite.
4401 (d10v_frame_init_saved_regs): When reading fp and sp registers use
4402 the d10v specific functions which take care of converting to the
4405 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
4407 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
4408 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
4410 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4412 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
4414 * config/tm-linux.h: Ditto.
4415 * config/alpha/tm-alphalinux.h: Ditto.
4416 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
4417 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
4418 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
4419 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
4420 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
4421 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
4422 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
4423 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
4424 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
4425 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
4426 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
4427 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
4428 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
4429 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
4430 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
4431 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
4432 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
4433 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
4434 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
4435 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
4436 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
4437 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
4438 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
4439 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
4440 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
4441 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
4442 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
4443 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
4444 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
4445 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
4446 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
4447 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
4448 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
4449 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
4450 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
4451 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
4452 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
4454 2002-05-04 Aidan Skinner <aidan@velvet.net>
4456 * ada-exp.tab.c: New file
4457 * ada-exp.y: New file
4458 * ada-lang.c: New file
4459 * ada-lang.h: New file
4460 * ada-lex.c: New file
4461 * ada-lex.l: New file
4462 * ada-tasks.c: New file
4463 * ada-typeprint.c: New file
4464 * ada-valprint.c: New file
4466 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4468 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
4469 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
4471 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
4473 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
4474 insetead of ppc-linux-tdep.o.
4475 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
4476 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
4478 2002-06-02 Andrew Cagney <ac131313@redhat.com>
4480 2002-05-07 Christian Groessler <chris@groessler.org>
4481 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
4482 bit register contents for little endian hosts.
4484 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4486 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
4489 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4491 * gdbarch.h: Regenerate.
4493 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4495 * MAINTAINERS: Add everyone to write-after-approval list.
4497 2002-06-01 Andrew Cagney <ac131313@redhat.com>
4499 * stack.c (frame_info): Use frame_register_unwind instead of
4500 saved_regs. Mention when the SP is on the stack or in a register.
4502 * frame.h (frame_register_unwind_ftype): Define. Document.
4503 (struct frame_info): Add field register_unwind and
4504 register_unwind_cache.
4505 (frame_register_unwind): Declare.
4506 (generic_unwind_get_saved_register): Declare.
4508 * frame.c (frame_register_unwind): New function.
4509 (generic_unwind_get_saved_register): New function.
4511 * blockframe.c (generic_call_dummy_register_unwind): New function.
4512 (frame_saved_regs_register_unwind): New function.
4513 (set_unwind_by_pc): New function.
4514 (create_new_frame): New function.
4515 (get_prev_frame): New function.
4517 2002-05-30 Andrew Cagney <ac131313@redhat.com>
4519 * a29k-share/: Delete directory.
4520 * remote-vx29k.c: Delete file.
4522 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4524 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
4525 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4527 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4529 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
4530 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
4533 (sparcnbsd-tdep.o): New dependency lists.
4534 * NEWS: Note new UltraSPARC NetBSD native configuration.
4535 * configure.host (sparc64-*-netbsd*): New host.
4536 * configure.tgt (sparc-*-netbsdelf*)
4537 (sparc-*-netbsd*): Set gdb_target to nbsd.
4538 (sparc64-*-netbsd*): New target.
4539 * sparc64nbsd-nat.c: New file.
4540 * sparcnbsd-nat.c: New file.
4541 * sparcnbsd-tdep.c: New file.
4542 * sparcnbsd-tdep.h: New file.
4543 * config/sparc/nbsd.mt: New file.
4544 * config/sparc/nbsd64.mh: New file.
4545 * config/sparc/nbsd64.mt: New file.
4546 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
4547 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4549 * config/sparc/nbsdaout.mt: Remove.
4550 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
4551 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
4553 * config/sparc/nbsdelf.mt: Remove.
4554 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
4555 sparc-nat.c compatiblity defines.
4556 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
4557 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
4558 * config/sparc/tm-nbsd64.h: New file.
4559 * config/sparc/tm-nbsdaout.h: Remove.
4560 * config/sparc/xm-nbsd.h: Remove.
4562 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
4564 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
4565 * sparc-tdep.c: Include osabi.h.
4566 (gdbarch_tdep): Add osabi member.
4567 (_initialize_sparc_tdep): Use gdbarch_register.
4568 (sparc_gdbarch_init): Use generic OS ABI framework.
4569 (sparc_dump_tdep): New function.
4571 2002-05-30 Kevin Buettner <kevinb@redhat.com>
4573 * corefile.c (do_captured_read_memory_integer): Return non-zero
4575 (safe_read_memory_integer): Copy result of memory read when
4576 status is non-zero. Also, add comments.
4578 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
4580 * Makefile.in (ppc_tdep_h): Define.
4583 (rs6000-tdep.o): Use $(ppc_tdep_h).
4586 (ppcnbsd-tdep.o): New dependency lists.
4587 * ppc-tdep.h: Use generic OS ABI framework.
4588 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
4589 (ppc_linux_init_abi): New functions.
4590 (ppc_sysv_abi_broken_use_struct_convention)
4591 (ppc_sysv_abi_use_struct_convention)
4592 (ppc_sysv_abi_push_arguments): Move to...
4593 * ppc-sysv-tdep.c: ...here.
4594 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
4595 * rs6000-tdep.c (process_note_abi_tag_sections)
4596 (get_elfosabi): Remove.
4597 (rs6000_gdbarch_init): Use generic OS ABI framework.
4598 (rs6000_dump_tdep): New function.
4599 (_initialize_rs6000_tdep): Use gdbarch_register.
4600 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
4601 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
4602 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
4603 of ppc-linux-tdep.o.
4604 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
4605 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
4606 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
4607 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
4608 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
4609 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
4611 2002-05-29 Jim Blandy <jimb@redhat.com>
4613 * macroscope.c (default_macro_scope): Put `void' in empty argument
4616 2002-05-29 Andrew Cagney <ac131313@redhat.com>
4618 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
4619 * arch-utils.c: Include "sim-regno.h".
4620 * gdbarch.sh: Don't include "sim-regno.h".
4621 * gdbarch.h, gdbarch.c: Regenerate.
4622 * sim-regno.h (legacy_register_sim_regno): Move declaration from
4624 * arch-utils.h (legacy_register_sim_regno): To here.
4625 * remote-sim.c (legacy_register_sim_regno): Move function from
4627 * arch-utils.c (legacy_register_sim_regno): To here.
4629 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4631 * sim-regno.h: New file.
4632 * Makefile.in (sim_regno_h): Define.
4633 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
4634 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
4635 (legacy_register_sim_regno): New function.
4636 (one2one_register_sim_regno): New function.
4637 (gdbsim_fetch_register): Rewrite.
4638 (gdbsim_store_register): Only store a register when
4639 REGISTER_SIM_REGNO is valid.
4640 * d10v-tdep.c: Include "sim-regno.h".
4641 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
4642 (d10v_ts3_register_sim_regno): Ditto.
4643 * gdbarch.sh: Include "sim-regno.h".
4644 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
4645 * gdbarch.h, gdbarch.c: Regenerate.
4646 * arch-utils.h (default_register_sim_regno): Delete declaration.
4647 * arch-utils.c (default_register_sim_regno): Delete function.
4649 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
4651 * ppcnbsd-nat.c: Rewrite.
4652 * ppcnbsd-tdep.c: New file.
4653 * ppcnbsd-tdep.h: New file.
4654 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
4655 solib.o, and solib-svr4.o.
4656 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
4657 nbsd-tdep.o, and corelow.o.
4659 2002-05-28 Andrew Cagney <ac131313@redhat.com>
4661 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
4662 `tr' and `sed'. Mention that `broken' targets are not expected to
4665 2002-05-27 Michal Ludvig <mludvig@suse.cz>
4667 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
4668 Let PC point right after the prologue before looking up symbols.
4670 2002-05-27 Martin M. Hunt <hunt@redhat.com>
4672 * i386-tdep.c (i386_register_virtual_type): Return
4673 builtin_type_vec128i for SSE registers.
4675 * gdbtypes.h (builtin_type_vec128i): Declare.
4677 * gdbtypes.c (build_builtin_type_vec128i): New function.
4678 (builtin_type_v2_double, builtin_type_v4_int64): New types.
4679 (builtin_type_vec128i): New type for SSE2 128-bit registers.
4680 (build_gdbtypes): Initialize new builtin vector types.
4681 (_initialize_gdbtypes): Register new vector types with gdbarch.
4683 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4685 * MAINTAINERS: ns32k is not longer an obsolete candidate,
4686 since it has been multi-arch'd.
4687 * NEWS: Note that ns32k-*-* is now partial multi-arch.
4688 Move Alpha and VAX multi-arch news entries to same section
4689 as other multi-arch news.
4691 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4693 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
4694 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
4695 static. Rename some register numbers to put them in ns32k-tdep
4697 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
4698 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
4700 (_initialize_ns32k_tdep): Use gdbarch_register.
4701 * ns32k-tdep.h: New file.
4702 * ns32knbsd-tdep.c: New file.
4703 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
4704 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
4705 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
4706 REGISTER_BYTES, REGISTER_BYTE): Remove.
4707 * config/ns32k/tm-ns32k.h: New file.
4708 * config/ns32k/tm-umax.h: Remove.
4710 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4712 * ns32k-tdep.c (ns32k_saved_pc_after_call,
4713 ns32k_store_struct_return, ns32k_extract_return_value,
4714 ns32k_store_return_value, ns32k_extract_struct_value_address): New
4716 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
4717 ns32k_saved_pc_after_call.
4718 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
4719 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
4720 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
4721 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4722 ns32k_extract_struct_value_address.
4724 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4726 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
4727 ns32k_fix_call_dummy): New.
4728 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
4729 ns32k_call_dummy_words.
4730 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
4731 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
4732 CALL_DUMMY_NARGS): Remove.
4733 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
4735 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4737 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
4738 ns32k_frame_saved_pc, ns32k_frame_args_address,
4739 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
4740 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
4741 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
4742 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
4743 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
4744 (BREAKPOINT): Remove..
4745 (FRAME_CHAIN): Define as ns32k_frame_chain.
4746 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
4747 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
4748 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
4749 (FRAME_FIND_SAVED_REGS): Remove.
4750 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
4751 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
4752 (POP_FRAME): Define as ns32k_pop_frame.
4754 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4756 * ns32k-tdep.c (ns32k_register_byte_32082,
4757 ns32k_register_byte_32382, ns32k_register_raw_size,
4758 ns32k_register_virtual_size, ns32k_register_virtual_type): New
4760 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
4761 ns32k_register_byte_32382.
4762 * config/ns32k/tm-umax.h: Update copyright years.
4763 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
4764 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
4765 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
4766 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
4767 (ns32k_get_enter_addr): Fix prototype.
4769 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4771 * ns32k-tdep.c: Update copyright years.
4772 (ns32k_register_name_32082): New function.
4773 (ns32k_register_name_32382): Ditto.
4774 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
4775 (REGISTER_NAME): Define as ns32k_register_name_32382.
4776 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
4777 (REGISTER_NAME): Define as ns32k_register_name_32082.
4779 2002-05-24 Jim Blandy <jimb@redhat.com>
4781 * dwarf2read.c (free_line_header): Use xfree, not free.
4783 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
4785 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
4786 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
4788 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4790 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
4792 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4794 From Ross Alexander at NEC Europe:
4795 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
4797 2002-05-23 Michael Snyder <msnyder@redhat.com>
4799 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
4800 for input, rather than parse_and_eval_address.
4802 2002-05-23 Andrew Cagney <ac131313@redhat.com>
4804 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
4805 * Makefile.in (sim_d10v_h): Update definition.
4807 2002-05-24 Andrew Cagney <cagney@redhat.com>
4809 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
4810 change `2002-05-22 Michael Snyder' below.
4811 (d10v_push_arguments): Ditto.
4812 (d10v_extract_return_value): Ditto.
4814 2002-05-23 Jim Blandy <jimb@redhat.com>
4816 * macrotab.c (check_for_redefinition): Don't complain if the new
4817 definition is the same as the previous one. Take more arguments
4818 to allow the comparison.
4819 (macro_define_object, macro_define_function): Pass more arguments
4820 to check_for_redefinition.
4822 2002-05-22 Michael Snyder <msnyder@redhat.com>
4824 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
4825 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
4826 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
4827 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
4828 Don't bail if return_pc is PC_IN_CALL_DUMMY.
4829 Add a temp variable to save a call (and a memory read).
4830 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
4831 if possible (so that PC_IN_CALL_DUMMY will work).
4833 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
4835 * MAINTAINERS: Remove status `OBSOLETE' from v850.
4837 2002-05-22 Michal Ludvig <mludvig@suse.cz>
4839 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
4841 (dwarf2_build_frame_info): Corrected handling of eh_frame.
4842 (dwarf2_build_frame_info): Add offset to fde->initial_location
4843 so that frames of shared libraries are mapped correctly.
4844 (execute_stack_op): Change type of 'result' from ULONGEST to
4847 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4849 * config/alpha/tm-nbsd.h: Include solib.h.
4851 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4853 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
4854 assumptions about the host's byte order.
4856 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4858 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
4860 * alphanbsd-tdep.c: Include solib-svr4.h.
4861 * shnbsd-tdep.c: Ditto.
4863 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
4865 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
4866 nbsd-tdep.h to dependency list.
4867 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
4868 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
4869 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
4870 nbsdaout.mh and nbsdelf.mh consistently.
4871 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
4872 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
4873 nbsdaout.mt and nbsdelf.mh consistently.
4874 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
4875 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
4876 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4877 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
4878 a.out shared library stuff from here...
4879 * config/nm-nbsdaout.h: ...to here.
4880 * config/tm-nbsd.h: Remove.
4881 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
4882 * config/arm/nbsd.mh: Remove.
4883 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
4885 * config/arm/nbsdaout.mh: New file.
4886 * config/arm/nbsdelf.mh: New file.
4887 * config/arm/nm-nbsdaout.h: New file.
4888 * config/i386/nbsd.mh: Remove.
4889 * config/i386/nbsd.mt: Remove.
4890 * config/i386/nbsdaout.mh: New file.
4891 * config/i386/nbsdaout.mt: New file.
4892 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4893 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
4894 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
4895 i386_register_u_addr): Remove.
4896 * config/i386/nm-nbsdaout.h: New file.
4897 * config/i386/nm-nbsdelf.h: Remove.
4898 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
4899 (USE_STRUCT_CONVENTION): Remove.
4900 * config/i386/tm-nbsdaout.h: New file.
4901 * config/i386/tm-nbsdelf.h: Remove.
4902 * config/m68k/nbsd.mh: Remove.
4903 * config/m68k/nbsd.mt: Remove.
4904 * config/m68k/nbsdaout.mh: New file.
4905 * config/m68k/nbsdaout.mt: New file.
4906 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
4907 * config/m68k/nm-nbsdaout.h: New file.
4908 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4909 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4910 * config/ns32k/nbsd.mh: Remove.
4911 * config/ns32k/nbsd.mt: Remove.
4912 * config/ns32k/nbsdaout.mh: New file.
4913 * config/ns32k/nbsdaout.mt: New file.
4914 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
4915 * config/ns32k/nm-nbsdaout.h: New file.
4916 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
4917 (IN_SOLIB_CALL_TRAMPOLINE): Define.
4918 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
4919 (SVR4_SHARED_LIBS): Remove.
4920 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
4921 * config/sparc/nbsd.mh: Remove.
4922 * config/sparc/nbsd.mt: Remove.
4923 * config/sparc/nbsdaout.mh: New file.
4924 * config/sparc/nbsdaout.mt: New file.
4925 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
4926 * config/sparc/nbsdelf.mt: New file.
4927 * config/sparc/nm-nbsdaout.h: New file.
4928 * config/sparc/nm-nbsdelf.h: Remove.
4929 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
4930 * config/sparc/tm-nbsdaout.h: New file.
4932 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4934 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
4936 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
4938 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4940 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
4942 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
4944 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4946 * NEWS: Note new MIPS NetBSD native configuration.
4947 * configure.host (mips*-*-netbsd*): New host.
4948 * configure.tgt (mips*-*-netbsd*): New target.
4949 * mipsnbsd-nat.c: New file.
4950 * mipsnbsd-tdep.c: New file.
4951 * mipsnbsd-tdep.h: New file.
4952 * config/mips/nbsd.mh: New file.
4953 * config/mips/nbsd.mt: New file.
4954 * config/mips/nm-nbsd.h: New file.
4955 * config/mips/tm-nbsd.h: New file.
4957 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
4959 * Makefile.in (SFILES): Add osabi.c.
4960 (COMMON_OBS): Add osabi.o.
4961 (osabi.o): New dependency list.
4962 * osabi.c: New file.
4963 * osabi.h: New file.
4964 * doc/gdbint.texinfo: Document new generic OS ABI framework.
4966 * Makefile.in (alpha_tdep_h): Define and use instead of
4968 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
4969 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
4971 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
4972 * alpha-tdep.h: Include osabi.h.
4973 (alpha_abi): Remove.
4974 (gdbarch_tdep): Use generic OS ABI framework.
4975 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
4976 gdbarch_register_osabi.
4977 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
4978 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
4979 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
4981 * Makefile.in (sh_tdep_h): Add osabi.h.
4982 * sh-tdep.h (sh_osabi): Remove.
4983 (gdbarch_tdep): Use generic OS ABI framework.
4984 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
4985 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
4986 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
4987 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
4989 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
4990 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
4991 gdbarch_register_osabi.
4992 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
4993 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
4994 (get_elfosabi): Rename to...
4995 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
4996 ABI framework support routines.
4997 (arm_gdbarch_init): Use generic OS ABI framework.
4998 (arm_dump_tdep): Likewise.
4999 (_initialize_arm_tdep): Likewise.
5000 * arm-tdep.h: Include osabi.h.
5002 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
5004 (arm_gdbarch_register_os_abi): Remove prototype.
5005 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
5006 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
5008 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
5009 * mips-tdep.c: Include osabi.h.
5010 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
5013 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
5015 * h8300-tdep.c: Fix formatting.
5017 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
5019 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
5020 printing vector registers.
5022 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5024 From Fernando Nasser:
5025 * remote.c (remote_async_open_1): Re-throw the exception when the
5027 (remote_cisco_open): Ditto.
5028 (remote_open_1): Ditto.
5030 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5032 * remote.c (remote_start_remote_dummy): Add uiout parameter.
5033 (remote_start_remote): Add uiout parameter. Pass through to
5034 remote_start_remote_dummy.
5035 (remote_open_1): Use catch_exception instead of catch_errors.
5036 (remote_async_open_1): Ditto.
5037 (remote_cisco_open): Ditto.
5039 2002-05-19 Andrew Cagney <ac131313@redhat.com>
5041 * remote.c (remote_start_remote): Replace PTR with void pointer.
5042 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
5045 2002-05-18 Andrew Cagney <ac131313@redhat.com>
5047 * gdb_indent.sh: Allow the script to be run in the sim directory.
5049 2002-05-18 Mark Kettenis <kettenis@gnu.org>
5051 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
5052 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
5054 * corelow.c (core_open): Only call set_gdbarch_from_file if
5057 2002-05-17 Andrey Volkov <avolkov@transas.com>
5059 * h8300-tdep.c: Add support of EXR register
5060 * config/h8300/tm-h8300.h: Ditto.
5062 2002-05-17 Andrey Volkov <avolkov@transas.com>
5064 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
5066 2002-05-17 Andrey Volkov <avolkov@transas.com>
5068 * h8300-tdep.c: Change literal regnums to REGNO.
5070 2002-05-17 Jim Blandy <jimb@redhat.com>
5072 * NEWS: Note addition of macro support.
5074 Expand preprocessor macros in C expressions.
5075 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
5076 (scan_macro_expansion, scanning_macro_expansion,
5077 finished_macro_expansion): New function declarations.
5078 (expression_macro_lookup_func, expression_macro_lookup_baton): New
5079 variable declarations.
5080 * parser-defs.h (expression_context_pc): New declaration.
5081 * parse.c (expression_context_pc): New variable.
5082 (parse_exp_1): Set expression_context_pc, as well as
5083 expression_context_block.
5084 * c-exp.y (yylex): If we're not already reading the result of a
5085 macro expansion, try to macro-expand the next token. When we're
5086 done scanning a macro expansion, switch back to the mainline text.
5087 Commas and `if's in a macro's expansion don't terminate the input.
5088 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
5089 (macro_original_text, macro_expanded_text,
5090 expression_macro_lookup_func, expression_macro_lookup_baton): New
5092 (scan_macro_expansion, scanning_macro_expansion,
5093 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
5094 c_preprocess_and_parse): New functions.
5095 (c_language_defn, cplus_language_defn, asm_language_defn): Call
5096 c_preprocess_and_parse, instead of c_parse.
5097 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
5098 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
5100 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
5102 * sh-tdep.c (gdb_print_insn_sh64): Delete.
5103 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
5104 (sh_gdbarch_init): Always use gdb_print_insn_sh.
5106 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
5108 * NEWS: Add section for multi-arched targets. Add v850 to that section.
5110 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
5112 * Makefile.in (sh_tdep_h): Define and use.
5113 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
5114 register enum): Move to...
5115 * * sh-tdep.h: ...here.
5116 * sh-tdep.c: Include sh-tdep.h.
5117 * sh3-rom.c: Likewise.
5118 * shnbsd-tdep.c: Likewise.
5120 2002-05-16 Michael Snyder <msnyder@redhat.com>
5122 * arm-tdep.c: Spelling fix in comment.
5124 2002-05-16 Jim Blandy <jimb@redhat.com>
5126 Add commands for manually expanding macros and showing their
5128 * macrocmd.c, macroscope.c, macroscope.h: New files.
5129 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
5130 (macroscope_h): New variable.
5131 (HFILES_NO_SRCDIR): Add macroscope.h.
5132 (COMMON_OBS): Add macrocmd.o, macroscope.o.
5133 (macroscope.o, macrocmd.o): New rules.
5135 Teach the Dwarf 2 reader to read macro information.
5136 * dwarf2read.c: #include "macrotab.h".
5137 (dwarf_macinfo_buffer): New variable.
5138 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
5140 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
5141 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
5142 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
5143 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
5144 dwarf2_macro_spaces_in_definition): New complaints.
5145 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
5146 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
5147 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
5148 the partial symbol table.
5149 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
5150 from what's recorded in the partial symbol table.
5151 (read_file_scope): If the compilation unit has a
5152 `DW_AT_macro_info' attribute, read its macro information.
5153 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
5155 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5158 * ser-tcp.c: Don't include <netinet/udp.h>.
5160 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
5162 * MAINTAINERS: Update my email address.
5164 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
5166 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
5167 include file of the same name.
5169 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5171 * configure.tgt: Mark v850 as multi-arched.
5172 * config/v850/tm-v850.h: Remove file.
5173 * config/v850/v850.mt: Eliminate TM_FILE.
5175 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5177 * v850-tdep.c: Full multi-arch.
5178 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
5179 Define GDB_MULTI_ARCH to 2.
5181 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
5183 * p-exp.y (current_type): New static variable.
5184 Carries the type of the expression at the position that is parsed.
5185 (push_current_type, pop_current_type): Two new functions. Used
5186 to store/restore current_type in expression on specific tokens.
5187 (search_field): New static variable. Set to one after parsing a point
5188 as at that point only a FIELDNAME token should be searched.
5189 (FIELDNAME): New token. After a point only a token belonging to
5190 current_type type definition is allowed.
5191 (all over token rules): reset and change current_type according
5193 (exp '[' rule): insert implicit array index field if
5194 exp is a pascal string type.
5196 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5198 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
5199 frame info. Use frame_info's saved_regs instead of matching member
5200 in extra_frame_info throughout.
5201 (v850_frame_init_saved_regs): New function.
5202 (v850_init_extra_frame_info): Move most functionality into
5203 v850_frame_init_saved_regs().
5204 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
5205 (v850_frame_find_saved_regs): Remove declaration.
5206 (FRAME_FIND_SAVED_REGS): Remove definition.
5207 (v850_frame_init_saved_regs): Add declaration.
5208 (FRAME_INIT_SAVED_REGS): Add definition.
5210 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
5212 * v850-tdep.c: Begin multi-arch'ing v850.
5213 (v850_target_architecture_hook): Remove function.
5214 (v850_gdbarch_init): New function. Add code previously in
5215 v850_target_architecture_hook().
5216 (_initialize_v850_tdep): Don't set target_architecture_hook.
5217 Call register_gdbarch_init() instead.
5219 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
5221 * gdbtypes.h (struct cplus_struct_type): Remove args field.
5222 * hpread.c (hpread_read_struct_type): Remove assignments to args.
5223 (fixup_class_method_type): Likewise.
5225 2002-05-15 Jim Blandy <jimb@redhat.com>
5227 Add macro structures to GDB's symbol tables. Nobody puts anything
5229 * symtab.h (struct symtab): New member: `macro_table'.
5230 * buildsym.h (pending_macros): New global variable.
5231 * buildsym.c: #include "macrotab.h".
5232 (buildsym_init): Initialize `pending_macros'.
5233 (end_symtab): If we found macro information while reading a CU's
5234 debugging info, do build a symtab structure for it. Make the
5235 symtab point to the macro information, and clear the
5236 `pending_macros' pointer which held it while we were reading the
5238 (really_free_pendings): Free any pending macro table.
5239 * objfiles.h (struct objfile): New member: `macro_cache'.
5240 * objfiles.c (allocate_objfile): Set allocate and free functions
5241 for the macro cache's objstack.
5242 (free_objfile): Empty the macro cache's obstack.
5243 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
5244 set new allocate and free functions for it.
5245 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
5246 free functions for the macro cache's objstack. (Why is this
5247 function building its own objfile?)
5248 * symmisc.c (print_objfile_statistics): Print statistics on the
5250 * Makefile.in: Note that buildsym.o depends on macrotab.h.
5252 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5254 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
5255 (REGISTER_U_ADDR): Delete definition.
5256 (arm_register_u_addr): Delete declaration.
5258 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
5260 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
5261 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
5263 2002-05-14 Andrew Cagney <ac131313@redhat.com>
5265 * regcache.c (register_valid): Revise comments refering to "Not
5266 available" and "unavailable".
5267 * frame.c (frame_register_read): Ditto.
5268 * findvar.c (value_of_register): Ditto.
5270 2002-05-15 Andrew Cagney <cagney@redhat.com>
5272 * Makefile.in (remote_sim_h): Replace remote-sim_h.
5273 (remote-sim.o): Update dependencies.
5274 (d10v-tdep.o): Specify dependencies.
5275 (sim_d10v_h): Define.
5277 2002-05-14 Jim Blandy <jimb@redhat.com>
5279 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
5280 * macrotab.c (macro_lookup_inclusion, find_definition,
5281 new_macro_table): Same.
5283 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
5284 not `! strcmp ()'. This is a dubious improvement.
5285 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
5287 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
5288 although it's not necessary, to avoid a warning.
5290 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5292 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
5293 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
5294 TYPE_INSTANCE_FLAGS.
5295 (struct main_type): New.
5296 (struct type): Move most members to struct main_type. Change
5297 cv_type and as_type to new type_chain member. Add instance_flags.
5298 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
5299 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
5300 (finish_cv_type): Remove prototype.
5301 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
5303 (alloc_type_instance): New function.
5304 (smash_type): New function.
5305 (make_pointer_type, make_reference_type, make_function_type)
5306 (smash_to_member_type, smash_to_method_type): Call smash_type.
5307 (make_qualified_type): New function.
5308 (make_type_with_address_space): Call make_qualified_type.
5309 (make_cv_type): Likewise.
5310 (finish_cv_type): Remove unnecessary function.
5311 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
5312 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
5313 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
5314 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
5315 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
5316 * hpread.c (hpread_read_struct_type): Likewise.
5317 * stabsread.c (read_struct_type): Likewise.
5319 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
5321 * configure.tgt: Add a catch all sh* target, for cases like
5322 sh[2,3,4]-elf and sh-hms.
5324 2002-05-14 Keith Seitz <keiths@redhat.com>
5326 * event-loop.c (create_file_handler): Don't do anything but
5327 update data when we are given a fd which we are already
5330 2002-05-14 Michal Ludvig <mludvig@suse.cz>
5332 * dwarf2cfi.c (context_cpy): Copy registers correctly.
5333 (update_context): Use __func__ in warnings.
5335 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
5337 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
5338 and tcp_close to net_open and net_close.
5339 (net_open): Accept "udp:" and "tcp:" specifications. Connect
5340 using UDP if requested. Don't try to disable Nagle on UDP
5342 * remote.c (remote_serial_open): New function. Warn about UDP.
5343 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
5345 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5347 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
5349 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
5351 * configure.tgt: Remove sh-hms target.
5352 * MAINTAINERS: Don't list sh-hms as a separate target.
5354 2002-05-13 Jim Blandy <jimb@redhat.com>
5356 Add first preprocessor macro-expansion files.
5357 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5358 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5359 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5360 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5361 (COMMON_OBS): Add macrotab.o, macroexp.o.
5362 (macroexp.o, macrotab.o): New rules.
5364 2002-05-13 Andrew Cagney <ac131313@redhat.com>
5366 * config/m88k/tm-m88k.h: Update copyright.
5367 (m88k_target_write_pc): Declare
5368 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
5369 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
5370 (SHIFT_INST_REGS): Update definition.
5371 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
5372 using old definition of TARGET_WRITE_PC.
5373 * regcache.c (generic_target_write_pc): Delete code handling
5375 * gdbarch.sh (NNPC_REGNUM): Delete.
5376 * gdbarch.h, gdbarch.c: Regenerate.
5378 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
5380 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
5383 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
5385 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
5386 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
5387 (gen_address_of, gen_struct_ref, gen_repeat): Use type
5389 * c-typeprint.c (cp_type_print_method_args): Likewise.
5390 (c_type_print_args): Likewise.
5391 * d10v-tdep.c (d10v_push_arguments): Likewise.
5392 (d10v_extract_return_value): Likewise.
5393 * expprint.c (print_subexp): Likewise.
5394 * gdbtypes.c (lookup_primitive_typename): Likewise.
5395 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
5396 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
5397 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
5398 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
5399 (TYPE_VECTOR): Likewise.
5400 * hpread.c (hpread_read_struct_type)
5401 (fix_static_member_physnames, fixup_class_method_type)
5402 (hpread_type_lookup): Likewise.
5403 * mdebugread.c (parse_symbol, parse_type): Likewise.
5404 * p-lang.c (is_pascal_string_type): Likewise.
5405 * valops.c (hand_function_call): Likewise.
5406 * x86-64-tdep.c (classify_argument): Likewise.
5408 * hpread.c (hpread_read_function_type)
5409 (hpread_read_doc_function_type): Call replace_type.
5410 * dstread.c (create_new_type): Delete.
5411 (decode_dst_structure, process_dst_function): Call alloc_type.
5412 Use type access macros.
5414 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5416 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
5417 the're not supported by the current architecture.
5418 (i387_fill_fxsave): Likewise.
5420 2002-05-12 Fred Fish <fnf@redhat.com>
5422 * symfile.c (default_symfile_offsets): Arrange for uninitialized
5423 sect_index_xxx members to index the first slot in section_offsets
5424 if all of the section_offsets are zero.
5426 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5428 * configure.tgt (sparc-*openbsd): Remove entry accidentially
5429 checked in with last change.
5431 2002-05-12 Mark Kettenis <kettenis@gnu.org>
5433 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
5434 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
5437 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
5439 * Makefile.in: Update dependencies.
5441 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5443 * language.c (local_hex_string_custom): Simplify. Do not depend
5444 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
5446 * memattr.c (mem_info_command): Replace calls to
5447 longest_local_hex_string and longest_local_hex_string_custom.
5448 * buildsym.c (make_blockvector): Ditto.
5449 * solib.c (info_sharedlibrary_command): Ditto.
5450 * tracepoint.c (tracepoints_info): Ditto.
5451 * symtab.c (print_msymbol_info): Ditto.
5453 * language.c (local_hex_string): Delete.
5454 (local_hex_string_custom): Delete.
5455 (longest_local_hex_string): Rename to local_hex_string.
5456 (longest_local_hex_string_custom): Rename to
5457 local_hex_string_custom.
5458 * language.h (local_hex_string): Change parameter type to LONGEST.
5459 (local_hex_string_custom): Ditto.
5460 (longest_local_hex_string): Delete declaration.
5461 (longest_local_hex_string_custom): Ditto.
5463 * solib.c: Update copyright.
5464 * memattr.c: Update copyright.
5466 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5468 * arch-utils.h (legacy_register_to_value): Declare.
5469 (legacy_value_to_register): Declare.
5470 (legacy_convert_register_p): Declare.
5471 * arch-utils.c (legacy_register_to_value): New function.
5472 (legacy_value_to_register): New function.
5473 (legacy_convert_register_p): New function.
5475 * gdbarch.sh (REGISTER_TO_VALUE): Define.
5476 (VALUE_TO_REGISTER): Define.
5477 (CONVERT_REGISTER_P): Define.
5478 * gdbarch.h, gdbarch.c: Regenerate.
5480 * valops.c (value_assign): Use CONVERT_REGISTER_P and
5482 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
5485 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
5486 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
5488 * Makefile.in: Update dependencies for valops.c.
5489 * valops.c: Include "gdb_assert.h".
5490 (typecmp): Skip THIS parameter to methods.
5491 (find_method_list): Remove static_memfuncp argument,
5492 update callers. Check for stub methods.
5493 (find_value_oload_method_list): Don't set *static_memfuncp.
5494 (find_overload_match): Don't check for stub methods. Assert
5495 that methods are not stubbed. Handle static methods.
5496 (value_find_oload_method_list): Remove static_memfuncp argument.
5497 * gdbtypes.c (check_stub_method): Do not add THIS pointer
5498 to the argument list for static stub methods.
5499 * value.h (value_find_oload_method_list): Update prototype.
5501 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5503 * arch-utils.h (generic_register_size): Declare.
5504 (generic_register_raw_size, generic_register_virtual_size): Delete
5506 * arch-utils.c (generic_register_raw_size): Delete.
5507 (generic_register_size): New function.
5508 (generic_register_virtual_size): Delete.
5510 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
5511 default generic_register_size.
5512 * gdbarch.h, gdbarch.c: Re-generate.
5514 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
5515 register_virtual_size.
5516 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
5517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5519 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5521 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
5522 * gdbarch.h, gdbarch.c: Regenerate.
5523 * gnu-v3-abi.c: Update copyright.
5524 (vtable_address_point_offset): Update.
5525 (gnuv3_rtti_type): Update.
5526 (gnuv3_baseclass_offset): Update.
5527 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
5528 (init_fetch_link_map_offsets): Update.
5529 * remote.c (get_remote_state): Update.
5531 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5533 * TODO: Remove value_headof/value_from_vtable_info comment.
5534 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
5535 * values.c (value_headof, value_from_vtable_info): Delete.
5536 * value.h (value_from_vtable_info): Delete prototype.
5538 2002-05-11 Andrew Cagney <ac131313@redhat.com>
5540 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
5541 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
5543 (gdb_assert_h): Define.
5544 (gdb_wait_h): Define.
5545 (gdb_regex_h): Define.
5547 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
5549 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
5550 * linespec.c (find_methods): Handle GCC 3.x template constructors.
5552 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5554 * nbsd-tdep.c: Fix comment.
5556 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5558 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
5559 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
5560 (nbsd-tdep.o): New dependency list.
5561 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
5563 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
5564 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
5565 * nbsd-tdep.c: New file.
5566 * nbsd-tdep.h: New file.
5567 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
5569 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
5570 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
5571 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5572 * config/sh/nbsd.mt (TDEPFILES): Ditto.
5574 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5576 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
5577 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
5578 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
5579 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
5580 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
5581 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
5583 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5585 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
5586 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5587 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
5588 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
5589 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
5590 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
5591 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
5593 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5595 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
5596 fetch_elfcore_registers to...
5597 * i386nbsd-tdep.c: ...here.
5598 (i386nbsd_use_struct_convention): Rename to...
5599 (i386nbsd_aout_use_struct_convention): ...this.
5600 (i386nbsd_supply_reg): New function.
5601 (i386nbsd_fill_reg): New function.
5602 (fetch_core_registers): Use i386nbsd_supply_reg.
5603 (fetch_elfcore_registers): Likewise.
5604 (_initialize_i386nbsd_tdep): New function.
5605 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
5606 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5607 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
5608 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
5609 (i386nbsd_aout_use_struct_convention): ...this.
5611 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5613 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
5614 (store_inferior_registers): Use shnbsd_fill_reg.
5615 * shnbsd-tdep.c (sh_nbsd_supply_registers,
5616 sh_nbsd_supply_register): Collapse into...
5617 (shnbsd_supply_reg): ...this.
5618 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
5619 (shnbsd_fill_reg): ...this.
5620 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
5621 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
5622 (fetch_core_registers): Use shnbsd_supply_reg.
5623 (fetch_elfcore_registers): Use shnbsd_supply_reg.
5624 (sh_nbsd_core_fns): Rename to...
5625 (shnbsd_core_fns): ...this.
5626 (sh_nbsd_elfcore_fns): Rename to...
5627 (shnbsd_elfcore_fns): ...this.
5628 (sh_nbsd_init_abi): Rename to...
5629 (shnbsd_init_abi): ...this.
5630 (_initialize_sh_nbsd_tdep): Rename to...
5631 (_initialize_shnbsd_tdep): ...this.
5632 * shnbsd-tdep.h (sh_nbsd_supply_registers,
5633 sh_nbsd_supply_register, sh_nbsd_fill_registers,
5634 sh_nbsd_fill_register): Remove prototypes.
5635 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
5637 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5639 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
5640 (i387-nat.o): Delete dependency list.
5641 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
5642 (x86-64-linux-nat.o): Likewise.
5643 * i387-nat.c: Delete file, moving contents to...
5644 * i387-tdep.c: ...here.
5645 * i387-nat.h: Rename...
5646 * i387-tdep.h: ...to this.
5647 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
5648 * i386-linux-nat.c: Likewise.
5649 * i386bsd-nat.c: Likewise.
5650 * i386gnu-nat.c: Likewise.
5651 * i386nbsd-nat.c: Likewise.
5652 * i386v4-nat.c: Likewise.
5653 * x86-64-linux-nat.c: Likewise.
5654 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
5655 * config/i386/go32.mh (NATDEPFILES): Likewise.
5656 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
5657 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
5658 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
5659 * config/i386/linux.mh (NATDEPFILES): Likewise.
5660 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
5661 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
5662 * config/i386/obsd.mh (NATDEPFILES): Likewise.
5663 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
5665 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5667 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
5668 (alphanbsd-nat.o): Remove dependency list.
5669 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
5670 * alphanbsd-nat.c: Delete. Contents moved to...
5671 * alphanbsd-tdep.c: ...here.
5672 (_initialize_alphanbsd_tdep): Register core functions.
5673 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
5675 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
5677 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
5678 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
5679 (alphanbsd-nat.o): Likewise.
5680 (alphabsd-tdep.o): New dependency list.
5681 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
5682 (fill_gregset): Use alphabsd_fill_reg.
5683 (supply_fpregset): Use alphabsd_supply_fpreg.
5684 (fill_fpregset): Use alphabsd_fill_fpreg.
5685 (fetch_inferior_registers): Use struct reg and struct fpreg
5686 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
5687 and alphabsd_supply_fpreg.
5688 (store_inferior_registers): Use struct reg and struct fpreg
5689 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
5690 and alphabsd_fill_fpreg.
5691 * alphabsd-tdep.c: New file.
5692 * alphabsd-tdep.h: New file.
5693 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
5694 (fetch_elfcore_registers): Use alphabsd_supply_reg and
5695 alphabsd_supply_fpreg.
5696 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
5697 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
5699 2002-05-11 Eric Christopher <echristo@redhat.com>
5701 * mips-tdep.c (mips_double_register_type): Fix thinko.
5702 (mips_single_register_type): Ditto.
5703 * MAINTAINERS: Add self.
5705 2002-05-11 Mark Kettenis <kettenis@gnu.org>
5707 * i387-nat.c (i387_supply_register, i387_fill_fsave,
5708 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
5709 right thing on architectures with different endianness and/or
5712 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
5714 From Christian Limpach <chris@Pin.LU>
5715 * configure.in: Change sed expression which comments out
5716 NATDEPFILES to also comment out continuation lines.
5717 * configure: Regenerate.
5719 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5721 * sh-tdep.c: Clean up code erroneously reintroduced by previous
5724 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5726 * sh-tdep.c: Include correct file.
5728 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5730 New support for sh64-elf (sh5) target.
5732 * configure.tgt: For sh64-elf target, default to sh-elf.
5734 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
5735 (struct gdbarch_tdep): Add new fields for new registers and ABI
5738 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
5739 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
5740 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
5741 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
5742 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
5743 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
5744 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
5745 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
5746 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
5747 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
5748 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
5749 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
5750 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
5751 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
5752 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
5753 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
5754 sh64_get_gdb_regnum, sh64_media_reg_base_num,
5755 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
5756 sign_extend, sh64_nofp_frame_init_saved_regs,
5757 sh64_init_extra_frame_info, sh64_get_saved_register,
5758 sh64_extract_struct_value_address, sh64_pop_frame,
5759 sh64_push_arguments, sh64_extract_return_value,
5760 sh64_store_return_value, sh64_show_media_regs,
5761 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
5762 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
5763 sh_sh64_register_virtual_type,
5764 sh_sh64_register_convert_to_virtual,
5765 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
5766 sh64_register_read, sh64_pseudo_register_write,
5767 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
5768 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
5769 sh64_do_pseudo_register, sh_compact_do_registers_info,
5770 sh64_do_registers_info, sh_gdbarch_init): New functions.
5772 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
5774 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
5776 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
5778 * linespec.c (decode_line_1): Check for a double quote after
5779 a filename correctly.
5781 2002-05-10 Jim Blandy <jimb@redhat.com>
5783 Properly track the size of the current objfile's .debug_line section.
5784 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
5785 (DWARF_LINE_SIZE): New macro.
5786 (dwarf2_build_psymtabs_hard): Record the line section's size in
5787 the partial symbol table.
5788 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
5791 2002-05-10 Petr Sorfa <petrs@caldera.com>
5793 * ia64-tdep.c: Handle breakpoints on L instruction type
5794 in MLX instruction bundle by moving the breakpoint to
5795 the third slot (X instruction type) as L holds only data.
5797 2002-05-10 Kevin Buettner <kevinb@redhat.com>
5799 * dbxread.c (discarding_local_symbols_complaint): New complaint.
5800 (process_one_symbol): Complain about discarding local symbols
5801 due to a misplaced N_LBRAC entry.
5803 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
5805 From Daniel Berlin <dan@cgsoftware.com>
5806 * linespec.c (find_toplevel_char): '<' and '>' also increase and
5807 decrease the depth we are at, in the case of templates.
5809 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5811 * mips-tdep.c (mips_float_register_type): New function.
5812 (mips_double_register_type): New function.
5813 (mips_print_register): Use them.
5814 (do_fp_register_row): Likewise.
5816 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
5818 * signals/signals.c (signals): Remove conditional compilation around
5819 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
5820 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
5822 2002-05-09 Michael Snyder <msnyder@redhat.com>
5824 * remote-rdp.c (remote_rdp_can_run): Remove.
5826 2002-05-09 Tom Tromey <tromey@redhat.com>
5828 * jv-valprint.c (java_val_print): Handle `char' as a special case
5831 2002-05-09 Michael Snyder <msnyder@redhat.com>
5833 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
5834 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
5835 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
5836 str r(0123),[sp,#nn].
5837 (arm_skip_prologue): Ditto. Also make disassembly
5838 order-independent by placing it in a loop.
5840 2002-05-06 Michael Snyder <msnyder@redhat.com>
5842 * stabsread.c (read_type): Add recognition for new attribute:
5843 "@V;" means that an array type is actually a vector.
5844 This is analogous to the vector flag that's been added to dwarf2.
5846 2002-05-09 Mark Kettenis <kettenis@gnu.org>
5848 * i386-tdep.h (i386_abi): New enum.
5849 (struct gdbarch_tdep): Replace os_ident member with abi.
5850 (i386_gdbarch_register_os_abi): New prototype.
5851 * i386-tdep.c (i386_abi_names): New array.
5852 (process_note_abi_tag_sections): Removed.
5853 (process_note_sections): New function.
5854 (i386_elf_abi_from_note, i386_elf_abi): New functions.
5855 (struct i386_abi_handler): New struct.
5856 (i386_abi_handler_list): New variable.
5857 (i386_gdbarch_register_os_abi): New function.
5858 (i386_gdbarch_init): Adapt for the changes given above.
5860 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
5862 * gregset.h: Say "GNU/Linux".
5864 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
5866 * gdbtypes.c : Add new builtin type for 64 bit vectors.
5867 (build_gdbtypes): Build builtin_type_v2_float.
5868 (_initialize_gdbtypes): Register new builtin type.
5870 2002-05-08 Andrew Cagney <ac131313@redhat.com>
5872 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
5873 (clear_gdbarch_swap): New function.
5874 (initialize_non_multiarch): Call.
5875 (gdbarch_update_p): Before calling init(), swap out and clear the
5876 existing architecture.
5877 * gdbarch.c: Regenerate.
5879 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5881 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
5884 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5886 * sh-nbsd-nat.c: Rename to...
5887 * shnbsd-nat.c: ...this.
5888 * sh-nbsd-tdep.c: Rename to...
5889 * shnbsd-tdep.c: ...this.
5890 * sh-nbsd-tdep.h: Rename to...
5891 * shnbsd-tdep.h: ...this.
5892 * config/sh/nbsd.mh: Use shnbsd-nat.o.
5893 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
5895 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
5897 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
5898 concatenation for command help messages.
5900 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5902 * NEWS: Note new sh*-*-netbsdelf* configuration.
5903 * configure.host: Set gdb_host_cpu to sh for all sh*.
5904 (sh*-*-netbsdelf*): New host.
5905 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
5906 (sh*-*-netbsdelf*): New target.
5907 * sh-nbsd-nat.c: New file.
5908 * sh-nbsd-tdep.c: New file.
5909 * sh-nbsd-tdep.h: New file.
5910 * config/sh/nbsd.mh: New file.
5911 * config/sh/nbsd.mt: New file.
5912 * config/sh/nm-nbsd.h: New file.
5913 * config/sh/tm-nbsd.h: New file.
5915 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
5917 * sh-tdep.c (sh_osabi_names): Declare.
5918 (process_note_abi_tag_sections): New function.
5919 (get_elfosabi): Ditto.
5920 (sh_gdbarch_register_os_abi): Ditto.
5921 (sh_dump_tdep): Ditto.
5922 _initialize_sh_tdep): Use gdbarch_register to register
5923 sh_gdbarch_init and sh_dump_tdep.
5924 * config/sh/tm-sh.h (sh_osabi): Declare.
5925 (gdbarch_tdep): Add sh_osabi and osabi_name members.
5927 2002-05-07 Andrew Cagney <ac131313@redhat.com>
5929 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
5930 (thumb_scan_prologue): Ditto.
5931 (arm_find_callers_reg): Ditto.
5932 (arm_frame_chain): Ditto.
5933 (arm_init_extra_frame_info): Ditto.
5934 (arm_frame_saved_pc): Ditto.
5935 (arm_pop_frame): Ditto.
5936 (arm_push_return_address): New function.
5937 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
5938 call_dummy_location, call_dummy_breakpoint_offset_p,
5939 call_dummy_breakpoint_offset, call_dummy_p,
5940 call_dummy_stack_adjust_p, call_dummy_words,
5941 sizeof_call_dummy_words, call_dummy_start_offset,
5942 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
5943 call_dummy_address, push_return_address and push_dummy_frame for
5944 generic dummy frames.
5946 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5948 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
5949 size computation for alloca.
5950 (sh_fp_frame_init_saved_regs): Likewise.
5952 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
5954 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
5955 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
5956 * arm-tdep.c (arm_store_return_value): Use them.
5957 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
5958 * remote-rdp.c (remote_rdp_fetch_register): Use
5959 ARM_MAX_REGISTER_RAW_SIZE.
5960 (remote_rdp_store_register): Likewise.
5962 2002-05-07 Michal Ludvig <mludvig@suse.cz>
5964 * dwarf2cfi.c: Code cleanup, removed unused variables,
5965 added default labels to switch {} statements.
5966 * x86-64-tdep.c: Ditto.
5967 * x86-64-linux-nat.c: Ditto.
5969 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
5971 * solib.h: Protect against multiple inclusion.
5973 2002-05-06 Jim Blandy <jimb@redhat.com>
5975 Add first preprocessor macro-expansion files.
5976 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
5977 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
5978 (splay_tree_h, macroexp_h, macrotab_h): New variable.
5979 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
5980 (COMMON_OBS): Add macrotab.o, macroexp.o.
5981 (macroexp.o, macrotab.o): New rules.
5983 Separate the job of reading the line number info statement program
5984 header (...expialidocious) out into its own function.
5985 * dwarf2read.c (struct line_head, struct filenames, struct
5986 directories): Replace with...
5987 (struct line_header): New structure, containing the full
5988 contents of the statement program header, including the
5989 include directory and file name tables.
5990 (read_file_scope): If we have line number info, instead of just
5991 calling dwarf_decode_lines to do all the work, call
5992 dwarf_decode_line_header first to get a `struct line_header'
5993 containing the data in the statement program header, and then
5994 pass that to dwarf_decode_lines, which will pick up where that
5995 left off. Be sure to clean up the `struct line_header' object.
5996 (dwarf_decode_line_header, free_line_header, add_include_dir,
5997 add_file_name): New functions.
5998 (dwarf_decode_lines): Move all the code to read the statement
5999 program header into dwarf_decode_line_header. Take the line
6000 header it built as the first argument, instead of the offset to
6001 the compilation unit's line number info. Use the new `struct
6002 line_header' type instead of the old structures. No need to do
6003 cleanups here now, since we don't allocate anything.
6004 (dwarf2_statement_list_fits_in_line_number_section,
6005 dwarf2_line_header_too_long): New complaints.
6007 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
6009 * gdbtypes.c (init_vector_type): New function.
6010 (build_builtin_type_vec128): Simplify the representation of SIMD
6012 (build_gdbtypes): Initialize new builtin vector types.
6013 (_initialize_gdbtypes): Register new vector types with gdbarch.
6014 (builtin_type_v4_float, builtin_type_v4_int32,
6015 builtin_type_v8_int16, builtin_type_v16_int8,
6016 builtin_type_v2_int32, builtin_type_v4_int16,
6017 builtin_type_v8_int8): New (renamed) SIMD types.
6019 2002-05-06 Mark Kettenis <kettenis@gnu.org>
6021 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
6022 (i387_fill_fxsave): Likewise.
6024 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
6026 * alpha-tdep.c (alpha_extract_return_value): Don't use
6027 non-constant array size in prototype.
6029 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6031 From Brian Taylor <briant at model dot com>:
6032 * ui-out.c (ui_out_field_core_addr): Use the function
6033 longest_local_hex_string_custom'to format addresses > 32 bits
6036 * ui-out.c (ui_out_field_core_addr): Update comment.
6038 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6040 * stack.c (select_and_print_frame): Make static. Delete the
6042 (func_command): Update call.
6043 (select_frame_command): Delete code computing the frame level.
6044 * frame.h (select_and_print_frame): Delete declaration.
6046 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6048 * sparc-tdep.c (sparc_get_saved_register): Comment why
6049 get_prev_frame call is safe.
6051 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6053 * frame.h (select_frame): Delete level parameter.
6054 * stack.c (select_frame): Update. Use frame_relative_level to
6055 obtain the frame's level.
6056 (select_and_print_frame): Update call.
6057 (select_frame_command): Ditto.
6058 (up_silently_base): Ditto.
6059 (down_silently_base): Ditto.
6060 * ocd.c (ocd_start_remote): Ditto.
6061 * remote-rdp.c (remote_rdp_open): Ditto.
6062 * remote-mips.c (mips_initialize): Ditto.
6063 (common_open): Ditto.
6064 * remote-e7000.c (e7000_start_remote): Ditto.
6065 * m3-nat.c (select_thread): Ditto.
6066 * hppa-tdep.c (child_get_current_exception_event): Ditto.
6067 (child_get_current_exception_event): Ditto.
6068 * varobj.c (varobj_create): Ditto.
6069 (varobj_update): Ditto.
6070 (c_value_of_root): Ditto.
6071 * tracepoint.c (finish_tfind_command): Ditto.
6072 * corelow.c (core_open): Ditto.
6073 * arch-utils.c (generic_prepare_to_proceed): Ditto.
6074 * thread.c (info_threads_command): Ditto.
6075 (switch_to_thread): Ditto.
6076 * infrun.c (normal_stop): Ditto.
6077 (restore_selected_frame): Ditto.
6078 (restore_inferior_status): Ditto.
6079 * breakpoint.c (insert_breakpoints): Ditto.
6080 (watchpoint_check): Ditto.
6081 (bpstat_stop_status): Ditto.
6082 (do_enable_breakpoint): Ditto.
6083 * blockframe.c (flush_cached_frames): Ditto.
6084 (reinit_frame_cache): Ditto.
6086 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6088 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
6091 2002-05-04 Jim Blandy <jimb@redhat.com>
6093 * gdbtypes.c (replace_type): Doc fix.
6095 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6097 * valprint.c (strcat_longest): Delete commented out function.
6100 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6102 * MAINTAINERS: Mark a29k as deleted.
6103 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
6104 Move new configurations to the top.
6105 * configure.tgt: Remove a29k.
6106 * config/a29k/tm-vx29k.h: Delete.
6107 * config/a29k/vx29k.mt: Delete.
6108 * config/a29k/tm-a29k.h: Delete.
6109 * config/a29k/a29k-udi.mt: Delete.
6110 * config/a29k/a29k.mt: Delete.
6111 * a29k-tdep.c: Delete.
6112 * remote-udi.c: Delete.
6113 * remote-mm.c: Delete.
6114 * remote-eb.c: Delete.
6115 * remote-adapt.c: Delete.
6116 * Makefile.in: Remove obsolete code.
6117 * config/s390/s390x.mt: Ditto.
6118 * config/s390/s390.mt: Ditto.
6119 * config/sparc/sparclynx.mh: Ditto.
6120 * config/sparc/linux.mh: Ditto.
6121 * config/pa/hppaosf.mh: Ditto.
6122 * config/pa/hppabsd.mh: Ditto.
6123 * config/ns32k/nbsd.mt: Ditto.
6124 * config/mips/vr5000.mt: Ditto.
6125 * config/m68k/sun3os4.mh: Ditto.
6126 * config/m68k/nbsd.mt: Ditto.
6127 * config/m68k/m68klynx.mh: Ditto.
6128 * config/m32r/m32r.mt: Ditto.
6129 * config/i386/x86-64linux.mt: Ditto.
6130 * config/i386/nbsdelf.mt: Ditto.
6131 * config/i386/nbsd.mt: Ditto.
6132 * config/i386/i386lynx.mh: Ditto.
6134 2002-05-04 Andrew Cagney <ac131313@redhat.com>
6136 * target.c (debug_print_register): New function. Handle oversize
6138 (debug_to_fetch_registers): Call.
6139 (debug_to_store_registers): Call.
6141 2002-05-03 Jim Blandy <jimb@redhat.com>
6143 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
6144 (read_type): Doc fix.
6145 * gdbtypes.c (replace_type): Doc fix.
6147 * stabsread.c (multiply_defined_struct): New complaint.
6148 (read_struct_type): If the type we were passed isn't empty, or
6149 incomplete, don't read the new struct type into it; complain,
6150 and return the original type unchanged. Take a new `type_code'
6151 argument, which is the type code for the new type.
6152 (read_type): Rather than storing the type's type code here, pass
6153 it as an argument to read_struct_type, and let that take care of
6154 storing it. That way, we don't overwrite the original type code,
6155 so read_struct_type can use it to decide whether we're overwriting
6156 something we shouldn't.
6157 (complain_about_struct_wipeout): New function.
6159 2002-05-03 Andrew Cagney <ac131313@redhat.com>
6161 * gdbarch.sh: Assert that gdbarch is non-NULL.
6162 * gdbarch.c: Regenerate.
6164 2002-05-03 Jason Merrill <jason@redhat.com>
6166 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
6169 2002-05-03 Michal Ludvig <mludvig@suse.cz>
6171 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
6172 (x86_64_dwarf2gdb_regno_map_length),
6173 (x86_64_dwarf2_reg_to_regnum): Added.
6174 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
6175 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
6176 (_initialize_x86_64_tdep): Synced with the change above.
6177 (x86_64_skip_prologue): Reformulated message.
6179 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6181 * f-exp.y: Also use new prev_lexptr variable
6182 to improve error reporting. Based on Michael Snyder
6183 2002-04-24 dated patch to c-exp.y.
6184 * jv-exp.y: Likewise.
6185 * m2-exp.y: Likewise.
6187 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
6189 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
6190 we are dealing with vectors.
6192 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6194 * config/m68k/tm-nbsd.h: Obvious fix,
6195 correct machine name.
6197 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6199 * p-typeprint.c (pascal_type_print_base): Add support
6200 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
6202 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6204 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
6205 for fondamental pascal 'char' type.
6207 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
6209 * p-lang.h (is_pascal_string_type): Declaration changed,
6210 new sixth argument of type char ** added.
6211 * p-lang.c (is_pascal_string_type): Implementation
6212 changed. Args length_pos, length_size, string_pos, char_size
6213 can now be NULL. New argument arrayname set to the field
6214 name of the char array. Return value set to char array
6215 field index plus one.
6216 * p-valprint.c (pascal_val_print): Adapt to new declaration of
6217 is_pascal_string_type function.
6219 2002-05-02 Andrew Cagney <cagney@redhat.com>
6221 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
6222 <cagney@redhat.com> change.
6223 * gdbarch.c: Regenerate.
6225 2002-05-02 Andrew Cagney <cagney@redhat.com>
6227 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
6228 before probing for a new one. Detect errorenous gdbarch_init
6230 * gdbarch.c: Regenerate.
6232 2002-05-01 Andrew Cagney <cagney@redhat.com>
6234 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
6235 * config/mcore/tm-mcore.h: Ditto. Update copyright.
6236 * config/v850/tm-v850.h: Ditto. Update copyright.
6238 2002-04-30 Andrew Cagney <ac131313@redhat.com>
6240 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
6243 2002-04-30 Michael Snyder <msnyder@redhat.com>
6245 * arm-tdep.c: Whitespace clean-ups.
6246 (arm_skip_prologue): Fix thinko; two lines
6247 should have been removed as part of 4/24 change.
6249 2002-04-30 Kevin Buettner <kevinb@redhat.com>
6251 * rs6000-tdep.c: Added comment describing how fpscr register
6252 numbers were chosen.
6254 2002-04-30 Michael Snyder <msnyder@redhat.com>
6256 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
6258 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6260 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
6261 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
6262 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
6264 2002-04-29 Kevin Buettner <kevinb@redhat.com>
6266 From Louis Hamilton <hamilton@redhat.com>:
6267 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
6268 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
6269 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
6270 not bfd-private xcoff data, to determine wordsize.
6271 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
6273 2002-04-29 Andrew Cagney <ac131313@redhat.com>
6275 GDB 5.2 released from 5.2 branch.
6277 2002-04-29 Michal Ludvig <mludvig@suse.cz>
6279 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
6280 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
6281 (x86_64_register_info_table): Added comments with register numbers.
6283 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
6285 * rs6000-tdep.c (rs6000_extract_return_value,
6286 rs6000_store_return_value): Handle returning vectors.
6287 (rs6000_gdbarch_init): Use
6288 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
6289 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
6291 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
6293 (ppc_sysv_abi_push_arguments): Handle vector parameters.
6294 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
6296 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6298 * hpread.c (hpread_psymtab_to_symtab_1,
6299 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
6300 with fprintf_unfiltered (gdb_stderr,...).
6302 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6304 * remote-array.c (printf_monitor, write_monitor,
6305 array_insert_breakpoint, array_remove_breakpoint ):
6306 Replace fprintf (stderr,...
6307 with fprintf_unfiltered (gdb_stderr,....
6308 * remote-es.c: Likewise.
6309 * remote-os9k.c: Likewise.
6310 * remote-st.c: Likewise.
6312 2002-04-28 Andreas Schwab <schwab@suse.de>
6314 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
6315 linux-proc.o and gcore.o.
6317 2002-04-26 Michal Ludvig <mludvig@suse.cz>
6319 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
6320 code without frame pointers.
6322 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6324 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
6327 2002-04-26 Ben Elliston <bje@redhat.com>
6329 * target.c (do_xfer_memory): Correct reference to the new option
6330 "trust-readonly-sections".
6332 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
6334 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
6335 * gdbtypes.c (recursive_dump_type): Output the vector flag.
6336 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
6338 (read_array_type): Record the fact that this array type is really a
6339 vector (i.e. are passed in by value).
6341 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
6343 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
6344 * alpha-tdep.c (alpha_sigcontext_addr): New function.
6345 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
6346 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
6347 * alpha-linux-tdep.c: Include frame.h.
6348 (alpha_linux_sigcontext_addr): New function.
6349 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
6350 alpha_linux_sigcontext_addr.
6351 * alpha-osf1-tdep.c: Include gdbcore.h.
6352 (alpha_osf1_sigcontext_addr): New function.
6353 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
6354 alpha_osf1_sigcontext_addr.
6355 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
6356 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
6358 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6360 * stack.c (selected_frame_level):
6361 (select_frame): Do not set selected_frame_level.
6362 * frame.h (selected_frame_level): Delete declaration.
6364 2002-04-26 Andrew Cagney <ac131313@redhat.com>
6366 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
6367 convert_from_func_ptr-addr when AIX / PowerOpen.
6369 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6371 * valops.c (hand_function_call): Call
6372 generic_save_call_dummy_addr.
6373 * frame.h (generic_save_call_dummy_addr): Declare.
6374 * blockframe.c (struct dummy_frame): Add fields call_lo and
6376 (generic_find_dummy_frame): Check for PC in range call_lo to
6377 call_hi instead of entry_point_address.
6378 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
6379 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
6380 (generic_save_call_dummy_addr): New function.
6382 2002-04-24 David S. Miller <davem@redhat.com>
6384 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
6385 sparc_skip_prologue.
6386 (sparc_skip_prologue): Kill frameless_p arg, and use line number
6387 information to find prologue when possible.
6388 (sparc_prologue_frameless_p): Call examine_prologue directly.
6389 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
6390 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
6392 (SKIP_PROLOGUE): Likewise.
6394 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6396 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
6397 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
6398 indicate that the condition it was testing is always true.
6399 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
6400 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6401 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
6403 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6405 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
6406 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
6407 tdep->jb_pc and tdep->jb_elt_size.
6408 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
6409 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
6410 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
6411 * alpha-nat.c (get_longjmp_target): Remove.
6412 (JB_ELEMENT_SIZE): Ditto.
6414 * alpha-tdep.c (alpha_get_longjmp_target): New function.
6415 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
6416 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
6417 to alpha_get_longjmp_target.
6418 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
6419 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
6420 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
6422 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6424 * README: Update to GDB 5.2.
6426 2002-04-25 Andrew Cagney <ac131313@redhat.com>
6428 * gdbarch.sh (LC_ALL): Set to `c'.
6430 2002-04-25 Theodore A. Roth <troth@verinet.com>
6432 * avr-tdep.c: Ran through gdb_indent.sh.
6434 2002-04-25 Theodore A. Roth <troth@verinet.com>
6436 * MAINTAINERS: Add myself as AVR maintainer.
6437 * NEWS: Note new target avr.
6439 2002-04-25 Theodore A. Roth <troth@verinet.com>
6441 * Makefile.in: Add support for AVR target.
6442 * configure.tgt: Add support for AVR target.
6443 * avr-tdep.c: New file
6444 * config/avr/avr.mt: New file.
6446 2002-04-25 Theodore A. Roth <troth@verinet.com>
6448 * MAINTAINERS: Add myself to write-after-approval.
6450 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
6452 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
6453 with fprintf_unfiltered (gdb_stderr,....
6455 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6458 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
6460 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
6462 * p-exp.y: Also use new prev_lexptr variable
6463 to improve error reporting. Based on Michael Snyder
6464 2002-04-24 dated patch to c-exp.y.
6466 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6468 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
6469 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
6470 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6472 * config/alpha/tm-alpha.h: Remove forward decls of struct type
6474 (FUNCTION_START_OFFSET): Remove.
6475 (BREAKPOINT): Ditto.
6477 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
6479 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
6482 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6484 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
6485 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
6486 alpha_linux_pc_in_sigtramp.
6487 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
6488 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
6489 alpha_osf1_pc_in_sigtramp.
6490 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
6491 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
6492 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6493 alphafbsd_pc_in_sigtramp.
6494 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
6495 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
6496 alphanbsd_pc_in_sigtramp.
6497 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
6498 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
6500 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6502 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
6504 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6506 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
6508 (alphanbsd-nat.o): New dependency list.
6509 (alphanbsd-tdep.o): Ditto.
6510 * NEWS: Note new native NetBSD/alpha configuration.
6511 * alphanbsd-nat.c: New file.
6512 * alphanbsd-tdep.c: Ditto.
6513 * configure.host (alpha*-*-netbsd*): New host.
6514 * configure.tgt (alpha*-*-netbsd*): New target.
6515 * config/alpha/nbsd.mh: New file.
6516 * config/alpha/nbsd.mt: Ditto.
6517 * config/alpha/nm-nbsd.h: Ditto.
6518 * config/alpha/tm-nbsd.h: Ditto.
6520 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6522 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
6523 (alpha-osf1-tdep.o): New dependency list.
6524 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
6525 and skip_sigtramp_frame members.
6526 * alpha-linux-tdep.c: Include gdbcore.h.
6527 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
6528 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
6529 * alpha-osf1-tdep.c: New file.
6530 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
6532 (alpha_frame_past_sigtramp_frame): New function.
6533 (alpha_dynamic_sigtramp_offset): Ditto.
6534 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
6535 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
6536 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
6537 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
6538 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
6539 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
6540 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
6541 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
6542 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
6543 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
6544 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
6545 to find_solib_trampoline_target.
6546 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
6547 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
6548 (SKIP_TRAMPOLINE_CODE): Remove.
6549 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6550 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6551 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6552 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6553 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
6554 (PROC_SIGTRAMP_MAGIC): Ditto.
6555 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6556 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6557 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
6558 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
6559 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
6561 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
6563 * NEWS: Note that Alpha targets are now multi-arch.
6565 2002-04-24 Michael Snyder <msnyder@redhat.com>
6567 * parser-defs.h (prev_lexptr): New external variable.
6568 * parse.c (parse_exp_1): Set prev_lexptr to null before
6569 calling the language-specific parser.
6570 * c-exp.y (yylex): Set prev_lexptr to start of current token.
6571 (yyerror): Use prev_lexptr in error reporting.
6573 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
6575 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
6576 * gregset.h: If FILL_FPXREGSET is defined, provide
6577 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
6578 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
6579 is defined, call fill_fpxregset.
6581 2002-04-24 Roland McGrath <roland@frob.com>
6583 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
6584 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
6585 (supply_gregset, supply_fpregset): New functions.
6587 * gnu-nat.c (gnu_find_memory_regions): New function.
6588 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
6589 (gnu_xfer_memory): Add a cast.
6591 2002-04-24 Michael Snyder <msnyder@redhat.com>
6593 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
6594 loop. Add handling for "str lr, [sp, #-4]!" and for saves
6595 of argument regs ("str r(0123), [r11, #-nn"]).
6596 (arm_skip_prologue): Better handling for frameless functions.
6597 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
6598 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
6600 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
6602 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
6603 NUM_PSEUDO_REGS can be used.
6605 2002-04-24 Andrew Cagney <ac131313@redhat.com>
6607 * arch-utils.h: Update copyright.
6609 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
6610 * gdbarch.h, gdbarch.c: Re-generate.
6612 * inferior.h (IN_SIGTRAMP): Delete definition.
6613 * arch-utils.c (legacy_pc_in_sigtramp): New function.
6614 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
6616 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
6617 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
6618 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
6619 (find_proc_framesize): Ditto.
6620 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
6621 (alpha_init_extra_frame_info): Ditto.
6622 * infrun.c (handle_inferior_event): Ditto.
6623 (handle_inferior_event): Ditto.
6624 (check_sigtramp2): Ditto.
6625 * blockframe.c (create_new_frame): Ditto.
6626 (get_prev_frame): Ditto.
6627 * ppc-linux-tdep.c: Update comments.
6628 * i386-linux-tdep.c: Update comments.
6629 * breakpoint.c (bpstat_what): Update comment.
6631 2002-04-24 David S. Miller <davem@redhat.com>
6633 * i960-tdep.c (register_in_window_p): New function.
6634 (i960_find_saved_register): Use it instead of
6635 REGISTER_IN_WINDOW_P.
6636 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
6638 * symtab.h (find_stab_function_addr): Kill extern.
6639 * minsyms.c (find_stab_function_addr): Remove from here...
6640 * dbxread.c: ... to here, and mark it static.
6642 2002-04-20 David S. Miller <davem@redhat.com>
6644 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
6645 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
6647 2002-04-21 David S. Miller <davem@redhat.com>
6649 * remote-vxsparc.c (vx_read_register): Fix typo, we want
6650 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
6651 (vx_write_register): Likewise.
6653 2002-04-23 J. Brobecker <brobecker@gnat.com>
6655 * source.c (is_regular_file): New function.
6656 (openp): Check wether file to open is a regular file
6657 to avoid opening directories.
6659 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6661 * findvar.c (extract_signed_integer): Cast printf argument
6662 to suppress format warning.
6663 (extract_unsigned_integer): Likewise.
6664 * infcmd.c (registers_info): Likewise.
6665 * top.c (get_prompt_1): Likewise.
6666 * valops.c (value_assign): Likewise.
6667 * valprint.c (print_decimal): Likewise.
6669 2002-04-22 H.J. Lu (hjl@gnu.org)
6671 * c-exp.y (typebase): Support
6673 [long|long long|short] [signed|unsigned] [int|]
6677 signed [long|long long|short] int
6679 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6681 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
6683 * vax-tdep.h: New file.
6684 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
6685 Make several routines static.
6686 (vax_get_saved_register): New function.
6687 (vax_gdbarch_init): New function.
6688 (_initialize_vax_tdep): Register vax_gdbarch_init.
6689 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
6690 Remove macros now under the control of gdbarch.
6692 2002-04-22 Michael Snyder <msnyder@redhat.com>
6694 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
6695 Some whitespace and coding standards tweaks.
6697 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6699 * vax-tdep.c: Include regcache.h.
6700 (vax_call_dummy_words): New.
6701 (sizeof_vax_call_dummy_words): New.
6702 (vax_fix_call_dummy): New function.
6703 (vax_saved_pc_after_call): Ditto.
6704 * config/vax/tm-vax.h: Don't include regcache.h.
6705 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
6706 (CALL_DUMMY): Remove.
6707 (CALL_DUMMY_WORDS): Define.
6708 (SIZEOF_CALL_DUMMY_WORDS): Define.
6709 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
6711 2002-04-18 Michael Snyder <msnyder@redhat.com>
6713 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
6715 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6717 * vax-tdep.c (vax_frame_chain): New function.
6718 (vax_push_dummy_frame): Ditto.
6719 (vax_pop_frame): Ditto.
6720 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
6721 (FRAMELESS_FUNCTION_INVOCATION): Use
6722 generic_frameless_function_invocation_not.
6723 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
6724 (POP_FRAME): Use vax_pop_frame.
6726 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6728 * vax-tdep.c (vax_store_struct_return): New function.
6729 (vax_extract_return_value): Ditto.
6730 (vax_store_return_value): Ditto.
6731 (vax_extract_struct_value_address): Ditto.
6732 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
6733 vax_store_struct_return.
6734 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
6735 (STORE_RETURN_VALUE): Use vax_store_return_value.
6736 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
6738 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6740 * vax-tdep.c (vax_frame_saved_pc): New function.
6741 (vax_frame_args_address_correct): Ditto.
6742 (vax_frame_args_address): Ditto.
6743 (vax_frame_locals_address): Ditto.
6744 (vax_frame_num_args): Move code to be in proximity to
6745 other frame-related functions.
6746 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
6747 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
6748 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
6749 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
6750 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
6752 2002-04-22 H.J. Lu (hjl@gnu.org)
6754 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
6757 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6759 * vax-tdep.c (vax_frame_init_saved_regs): New function.
6760 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
6761 (FRAME_INIT_SAVED_REGS): New macro.
6763 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6765 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
6767 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6769 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
6771 (fetch_osf_core_registers): Likewise.
6772 (supply_gregset): Likewise.
6774 2002-04-22 J. Brobecker <brobecker@gnat.com>
6776 * symfile.h (get_section_index): Define.
6777 * symfile.c (get_section_index): New function.
6778 * mdebugread.c (SC_IS_SBSS): New macro.
6779 (SC_IS_BSS): Return true for the scBss storage class only, as
6780 the scSBss storage class refers to the .sbss section.
6781 (parse_partial_symbols): Discard the symbols which associated
6782 section does not exist.
6783 Make sure to use the .sbss section index for symbols which
6784 storage class is scBss, rather than using the .bss section index.
6786 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
6788 * vax-tdep.c: Update copyright years.
6789 (vax_register_name): New function.
6790 (vax_register_byte): Ditto.
6791 (vax_register_raw_size): Ditto.
6792 (vax_register_virtual_size): Ditto.
6793 (vax_register_virtual_type): Ditto.
6794 * config/vax/tm-vax.h: Update copyright years.
6795 (REGISTER_NAMES): Remove.
6796 (REGISTER_NAME): Define.
6797 (REGISTER_BYTE): Use vax_register_byte.
6798 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
6799 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
6800 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
6802 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6804 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
6806 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
6808 2002-04-21 David S. Miller <davem@redhat.com>
6810 * arch-utils.c (generic_prologue_frameless_p): Kill
6811 SKIP_PROLOGUE_FRAMELESS_P code.
6812 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6814 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
6815 * arc-tdep.c (arc_prologue_frameless_p): Implement.
6816 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
6818 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
6819 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
6820 (sparc_gdbarch_init): Pass it to
6821 set_gdbarch_prologue_frameless_p.
6823 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6825 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
6826 (alphabsd-nat.o): New dependency list.
6828 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6830 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
6832 (alpha-linux-tdep.o): New dependency list.
6833 (alphafbsd-tdep.o): Likewise.
6835 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6837 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
6839 * alpha-tdep.c: ...from here.
6840 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
6842 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6844 * config/alpha/tm-alpha.h: Move alpha_software_single_step
6845 prototype from here...
6846 * alpha-tdep.h: ...to here.
6848 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6850 * frame.h (selected_frame_level): Document as deprecated.
6851 (frame_relative_level): Declare.
6852 * stack.c (frame_relative_level): New function.
6853 (selected_frame_level): Document as deprecated.
6854 (select_frame): Do not set the selected_frame_level.
6856 * stack.c (frame_info, record_selected_frame): Update.
6857 (frame_command, current_frame_command): Update.
6858 (up_silently_base, up_command, down_silently_base): Update.
6859 (down_command): Update.
6860 * inflow.c (kill_command): Update.
6861 * tracepoint.c (finish_tfind_command): Update.
6862 * corelow.c (core_open): Update.
6863 * thread.c (info_threads_command): Update.
6864 (do_captured_thread_select): Update.
6865 * infcmd.c (finish_command): Update.
6866 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
6868 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6870 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
6872 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6874 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
6877 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6879 * alphafbsd-tdep.c: Update copyright years. Include
6881 (alphafbsd_use_struct_convention): Make static.
6882 (alphafbsd_init_abi): New function.
6883 (_initialize_alphafbsd_tdep): New function.
6884 * config/alpha/tm-fbsd.h: Update copyright years.
6885 (USE_STRUCT_CONVENTION): Remove.
6887 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6889 * alpha-tdep.c (alpha_abi_handler): New structure to describe
6890 an Alpha ABI variant.
6891 (alpha_abi_handler_list): Declare.
6892 (alpha_gdbarch_register_os_abi): New function.
6893 (alpha_gdbarch_init): Give registered ABI variant handlers a
6894 chance to tweak the gdbarch once we have set up defaults.
6895 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
6897 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6899 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
6900 to standard_coerce_float_to_double.
6901 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6903 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6905 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
6906 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
6907 from gdbarch_tdep rather than a constant.
6908 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
6909 the default text address for all Alpha Unix ABIs.
6910 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
6911 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
6913 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
6915 * alpha-tdep.h: New file. Includes several Alpha target constants
6917 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
6918 let gdbarch deal with.
6919 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
6920 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
6922 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
6923 Alpha target register names.
6924 * alphabsd-nat.c: Likewise.
6925 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
6926 Alpha target register names. Make serveral routines static.
6927 (alpha_get_saved_register): New function.
6928 (alpha_abi_names): New.
6929 (process_note_abi_tag_sections): New function.
6930 (get_elfosabi): New function.
6931 (alpha_gdbarch_init): New function.
6932 (alpha_dump_tdep): New function.
6933 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
6935 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6937 * frame.c (find_saved_register): Delete #ifdef
6938 HAVE_REGISTER_WINDOWS code.
6939 * config/sparc/tm-sparc.h: Update comments.
6940 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
6942 2002-04-21 Andrew Cagney <ac131313@redhat.com>
6944 * i960-tdep.c (i960_find_saved_register): New function.
6945 (i960_get_saved_register): New function.
6946 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
6947 (i960_get_saved_register): Declare.
6948 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
6950 2002-04-20 David S. Miller <davem@redhat.com>
6952 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
6954 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6956 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
6957 instead of NUM_PSEUDO_REGS.
6959 2002-04-20 David S. Miller <davem@redhat.com>
6961 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
6962 GDB_MULTI_ARCH_PARTIAL
6963 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
6964 define, let tm-sp64.h do it.
6966 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
6968 * frame.c (find_saved_register): Avoid a NULL pointer
6969 dereference and actually walk the frame list.
6971 2002-04-20 Andrew Cagney <ac131313@redhat.com>
6973 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
6974 sorted in most most-recent-used order. Document.
6975 * gdbarch.h, gdbarch.c: Regenerate.
6977 2002-04-19 Andrew Cagney <ac131313@redhat.com>
6979 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
6981 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
6982 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
6983 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
6986 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
6989 * gdbtypes.c (init_simd_type): Rewrite using new functions.
6990 (build_builtin_type_vec128): Ditto.
6991 (append_composite_type_field): Fix calculation of type length in
6994 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
6996 * config/djgpp/README: Update.
6998 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
7001 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
7003 * alpha-tdep.c (setup_arbitrary_frame): Rename...
7004 (alpha_setup_arbitrary_frame): ...to this.
7005 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
7006 for alpha_setup_arbitrary_frame.
7008 2002-04-18 Andrew Cagney <cagney@redhat.com>
7010 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
7011 * gdbarch.h, gdbarch.c: Regenerate.
7013 * defs.h (breakpoint_from_pc_fn): Delete type definition.
7014 * target.h (memory_breakpoint_from_pc): Update declaration.
7015 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
7017 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
7018 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
7019 * mem-break.c (memory_breakpoint_from_pc): Ditto.
7020 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
7021 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
7022 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
7023 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
7024 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
7025 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
7026 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
7027 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
7028 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
7030 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
7032 * monitor.c (monitor_insert_breakpoint): Ditto.
7033 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
7035 * config/mcore/tm-mcore.h: Update copyright.
7036 * mem-break.c: Ditto.
7037 * xstormy16-tdep.c: Ditto.
7039 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
7041 * p-exp.y: Add precedence rule for '^' token.
7042 This removes the shift/reduce conflicts.
7043 Remove the comment concerning these shift/reduce conflicts.
7045 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
7047 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
7048 (registers_powerpc_nofp): New register set for processors
7049 without floating point unit.
7051 2002-04-18 David S. Miller <davem@redhat.com>
7053 * MAINTAINERS: Add myself to write-after-approval.
7055 2002-04-17 Michael Snyder <msnyder@redhat.com>
7057 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
7059 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7061 * rs6000-tdep.c (frame_initial_stack_address): Use
7062 frame_register_read to read the alloca_reg.
7064 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7066 * frame.c (find_saved_register): Find saved registers in the next
7070 2002-04-17 Andrew Cagney <ac131313@redhat.com>
7072 * gdbarch.sh (LANG): Set to ``c''.
7074 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7076 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
7078 2002-04-15 Andrew Cagney <ac131313@redhat.com>
7080 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
7083 * hpread.c (hpread_get_lntt): Add declaration.
7084 Also fix PR gdb/391.
7086 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7088 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
7089 * aclocal.m4, configure: Re-generate.
7092 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7094 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
7095 instead of tm_print_insn.
7097 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
7099 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
7101 2002-04-14 Andrew Cagney <ac131313@redhat.com>
7103 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
7104 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
7105 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
7107 2002-04-12 Don Howard <dhoward@redhat.com>
7109 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
7110 max_user_call_depth.
7111 (init_cmd_lists): Initialize the new value;
7112 * cli/cli-script.c (execute_user_command): Limit the call depth of
7113 user defined commands. This avoids a core-dump when user commands
7114 are infinitly recursive.
7116 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7118 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
7119 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
7120 from tdep struct instead of DEFAULT_LR_SAVE.
7121 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
7122 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
7123 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
7125 2002-04-12 Michael Snyder <msnyder@redhat.com>
7127 * Remote.c: Spelling fix.
7128 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
7129 If no symbol found for "sbrk", try "_sbrk".
7130 (make_output_phdrs): Use bfd_section_name.
7131 (gcore_copy_callback): Use bfd_section_name.
7132 * eval.c: Indentation fix-ups.
7133 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
7134 in case it gets applied to an address that is already
7135 in the instruction space.
7136 * cli/cli-decode.c (help_list): Allow long lines to wrap.
7137 * symfile.c: Fix indentation, long lines.
7138 * source.c: White space fix-up.
7140 2002-04-12 Andrew Cagney <cagney@redhat.com>
7142 * defs.h (read_relative_register_raw_bytes): Delete declaration.
7143 * frame.c (frame_register_read): New function. Return non-zero on
7145 (read_relative_register_raw_bytes_for_frame): Delete.
7146 (read_relative_register_raw_bytes): Delete.
7147 * frame.h (frame_register_read): Declare.
7148 * d30v-tdep.c: Update Copyright. Use frame_register_read.
7150 * infcmd.c (do_registers_info): Ditto.
7151 * hppa-tdep.c: Ditto.
7152 * rs6000-tdep.c: Ditto.
7153 * h8500-tdep.c: Ditto.
7154 * mips-tdep.c: Ditto.
7155 * h8300-tdep.c: Ditto.
7156 * z8k-tdep.c: Ditto.
7158 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7160 From Jimi X <jimix@watson.ibm.com>:
7161 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
7164 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7166 From Jimi X <jimix@watson.ibm.com>:
7167 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
7170 2002-04-12 Kevin Buettner <kevinb@redhat.com>
7172 From Jimi X <jimix@watson.ibm.com>:
7173 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
7174 register sets for these processor variants.
7176 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
7178 * regformats/reg-ppc.dat: Support FPSCR.
7180 2002-04-11 Kevin Buettner <kevinb@redhat.com>
7182 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
7183 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
7184 Add fpscr as an invalid/unfetchable register.
7185 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
7186 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
7187 (fill_fpregset): Add support for register fpscr.
7188 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
7189 (fill_gregset): Account for the fact that register ``mq'' might
7191 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
7192 (registers_power): Add fpscr to register set at slot 71.
7193 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
7194 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
7196 2002-04-11 Michael Snyder <msnyder@redhat.com>
7198 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
7199 * configure: Regenerate.
7200 * config.in: Regenerate.
7201 * acconfig.h: Add define for _SYSCALL32.
7202 * core-sol2.c: Remove #define _SYSCALL32.
7203 * solib-legacy.c: Remove #define _SYSCALL32.
7205 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7207 * stack.c (select_frame): Cleanup internal error message, do not
7210 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7212 * stack.c (select_frame): Check that selected_frame and the
7213 specified level are as expected.
7214 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
7216 * frame.h (struct frame_info): Add field `level'. Update
7218 Work-in-progress PR gdb/464.
7220 2002-04-10 Andrew Cagney <ac131313@redhat.com>
7222 * maint.c (maint_print_section_info): Rename print_section_info.
7223 (print_bfd_section_info, print_objfile_section_info): Update.
7224 * inferior.h (struct gdbarch): Add opaque declaration.
7225 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
7226 * gdbarch.h: Regenerate.
7228 2002-04-10 Michal Ludvig <mludvig@suse.cz>
7230 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
7231 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
7232 (kernel_u_size): Added.
7233 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
7234 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
7236 2002-04-04 Jim Ingham <jingham@apple.com>
7238 * valarith.c (find_size_for_pointer_math): New function, either returns
7239 the size for a pointer's target, returns 1 for void *, or errors for
7241 (value_add, value_sub): use find_size_for_pointer_math.
7243 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7245 * linux-low.c (linux_look_up_symbols): New hook.
7246 (linux_target_ops): Add linux_look_up_symbols.
7247 * remote-utils.c (decode_address): New function.
7248 (look_up_one_symbol): New function.
7249 * server.c (handle_query): Call target look_up_symbols hook.
7250 * server.h (look_up_one_symbol): Add prototype.
7251 * target.h (struct target_ops): Add look_up_symbols hook.
7253 2002-04-09 Andrew Cagney <ac131313@redhat.com>
7255 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
7256 override FP_REGNUM with frame->fp. Update copyright.
7257 * parse.c (num_std_regs, std_regs): Delete.
7258 (target_map_name_to_register): Do not search std_regs. Update
7259 function description.
7260 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
7261 declarations. Update copyright.
7264 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
7266 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
7267 after the last symbol in a block.
7269 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
7271 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
7272 is non zero as a found symbol.
7274 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7276 * findvar.c: Include "builtin-regs.h".
7277 (value_of_register): Call value_of_builtin_reg when applicable.
7278 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
7279 (target_map_name_to_register): Call
7280 builtin_reg_map_name_to_regnum.
7281 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
7282 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
7283 (builtin_regs_h): Define.
7284 (builtin-regs.o): New target.
7285 (findvar.o): Add $(builtin_regs_h).
7286 * builtin-regs.c, builtin-regs.h: New files.
7287 * std-regs.c: New file.
7288 Partial fix for PR gdb/251.
7290 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7292 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
7293 it's no longer required.
7295 2002-04-08 Andrew Cagney <ac131313@redhat.com>
7297 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
7299 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7301 From Jimi X <jimix@watson.ibm.com>:
7302 * rs6000-tdep.c (rs6000_software_single_step): Use
7303 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
7304 and size. Use target_insert_breakpoint() and
7305 target_remove_breakpoint() to insert and remove breakpoints
7306 instead of explicit memory reads and writes.
7308 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7310 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
7311 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
7312 ELF_OBJECT_FORMAT ifdef.
7314 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7316 From Jimi X <jimix@watson.ibm.com>:
7317 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
7319 2002-04-08 Kevin Buettner <kevinb@redhat.com>
7321 From Jimi X <jimix@watson.ibm.com>:
7322 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
7323 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
7325 2002-04-07 Mark Kettenis <kettenis@gnu.org>
7327 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
7328 s/asprintf/xasprintf/.
7329 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
7331 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7333 I believe Jeff Law denies responsability for this one:
7334 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
7335 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
7336 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
7337 Work-around for PR gdb/366.
7339 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7341 * remote-e7000.c (write_small, e7000_read_inferior_memory,
7342 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
7343 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
7345 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
7347 * sh-tdep.c (sh_fp_frame_init_saved_regs,
7348 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
7351 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7353 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
7356 2002-04-07 Andrew Cagney <ac131313@redhat.com>
7358 * README (Reporting Bugs in GDB): Document the bug web page as the
7359 prefered way of submitting bugs.
7362 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7364 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
7366 * gdbarch.h, gdbarch.c: Re-generate.
7368 2002-04-07 Andreas Schwab <schwab@suse.de>
7370 * m68klinux-nat.c (fill_fpregset): Properly pass address of
7371 buffer to regcache_collect.
7373 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7375 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
7376 * gdbarch.c, gdbarch.h: Re-generate.
7378 2002-04-06 Andrew Cagney <ac131313@redhat.com>
7380 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
7381 declaration. Fix -Werror.
7383 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
7385 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
7386 * gdbarch.c: Regenerate.
7388 2002-04-05 Michael Snyder <msnyder@redhat.com>
7390 * breakpoint.c (clear_command): Rewrite middle section to
7391 combine two loops with identical control conditions.
7392 Add a cleanup to eliminate a memory leak.
7393 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
7395 2002-04-05 H.J. Lu (hjl@gnu.org)
7397 * solib-svr4.c (bkpt_names): Add "__start".
7399 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7401 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
7402 as test for 64 bit target.
7404 2002-04-05 Andrew Cagney <ac131313@redhat.com>
7406 * h8500-tdep.c (h8500_write_fp): Delete function.
7407 * dwarf2cfi.c (cfi_write_fp): Document as not used.
7408 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
7409 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
7410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
7411 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
7412 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
7414 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
7415 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
7416 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
7417 (d10v_write_fp): Delete function.
7418 * inferior.h (write_fp, generic_target_write_fp): Delete
7420 * regcache.c (generic_target_write_fp): Delete function.
7421 (write_fp): Delete function.
7422 * gdbarch.sh (TARGET_WRITE_FP): Delete.
7423 * gdbarch.h, gdbarch.c: Regenerate.
7424 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
7425 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
7426 (sparc64_write_fp): Delete declaration.
7427 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
7428 (h8500_write_fp): Delete declaration.
7430 2002-04-04 Andrew Cagney <ac131313@redhat.com>
7432 * sparc-tdep.c (sparc64_write_fp): Delete.
7433 (sparc_push_dummy_frame): Replace write_fp call with code to store
7435 (sparc_gdbarch_init): Do not initialize write_fp.
7437 2002-04-05 Kevin Buettner <kevinb@redhat.com>
7439 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
7442 2002-03-29 Jim Blandy <jimb@redhat.com>
7444 * stack.c (get_selected_block): Add new argument `addr_in_block',
7445 used to return the exact code address we used to select the block,
7447 * blockframe.c (get_frame_block, get_current_block): Same.
7448 * frame.h (get_frame_block, get_current_block,
7449 get_selected_block): Update declarations.
7450 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
7451 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
7453 2002-04-05 Michael Snyder <msnyder@redhat.com>
7455 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
7458 2002-04-05 J. Brobecker <brobecker@gnat.com>
7460 * utils.c (xfullpath): New function.
7461 * defs.h (xfullpath): Add declaration.
7462 * source.c (openp): Use xfullpath in place of gdb_realpath to
7463 avoid resolving the basename part of filenames when the
7464 associated file is a symbolic link. This fixes a potential
7465 inconsistency between the filenames known to GDB and the
7466 filenames it prints in the annotations.
7467 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
7468 to be able to match a filename with either the real filename, or
7469 the name of any symbolic link to this file.
7470 (lookup_partial_symtab): Ditto.
7472 2002-04-04 Michael Snyder <msnyder@redhat.com>
7474 * breakpoint.c: Add support for hardware breakpoints in overlays.
7475 (overlay_events_enabled): New state variable.
7476 (insert_breakpoints): Use overlay_events_enabled to decide
7477 whether to attempt to set a breakpoint at the overlay load addr.
7478 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7479 (remove_breakpoint): Use overlay_events_enabled to decide
7480 whether breakpoints need to be removed from overlay load addr.
7481 Handle bp_hardware_breakpoint as well as bp_breakpoint.
7482 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
7483 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
7484 disable_overlay_breakpoints): Update overlay_events_enabled.
7486 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
7488 * dwarf2read.c (struct function_range): New.
7489 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
7490 (check_cu_functions): New.
7491 (read_file_scope): Initialize global function lists.
7492 Call dwarf_decode_line after processing children.
7493 (read_func_scope): Add to global function list.
7494 (dwarf_decode_lines): Call check_cu_functions everywhere
7495 record_line is called. Call record_line with a linenumber
7496 of 0 to mark sequence ends.
7498 2002-04-04 Michal Ludvig <mludvig@suse.cz>
7500 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7501 change sync with glibc.
7503 2002-04-03 Jim Blandy <jimb@redhat.com>
7505 * configure.in: Call AC_C_INLINE.
7506 * configure: Regenerated.
7508 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
7510 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
7511 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
7513 2002-03-31 Mark Kettenis <kettenis@gnu.org>
7515 * NEWS: Mention gcore support on FreeBSD/i386.
7517 * fbsd-proc.c: New file.
7518 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
7519 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
7521 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
7524 2002-03-29 Jim Blandy <jimb@redhat.com>
7526 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
7527 unescaped newlines in string literals, but newer ones don't. So
7530 2002-03-26 Michael Snyder <msnyder@redhat.com>
7531 Andrew Cagney <cagney@redhat.com>
7533 * cli/cli-dump.c: New file. Dump memory to file,
7534 restore file to memory.
7535 * cli/cli-dump.h: New file.
7536 * Makefile.in: Add rules, dependencies for cli-dump.o.
7537 * NEWS: Mention new commands.
7539 2002-03-28 Michael Snyder <msnyder@redhat.com>
7541 * symfile.c (symbol_file_add): Move test for null symbols to later.
7543 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7545 From veksler at il.ibm.com:
7546 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
7547 the xstrduped original path.
7550 2002-03-27 Michael Snyder <msnyder@redhat.com>
7552 * breakpoint.c (_initialize_breakpoint): Clean up help string.
7553 * infcmd.c (_initialize_infcmd): Ditto.
7554 * language.c (_initialize_language): Ditto.
7555 * symfile.c (_initialize_symfile): Ditto.
7556 * top.c (_init_main): Ditto.
7557 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7559 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
7561 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
7562 vector registers handling.
7563 (skip_prologue): Handle new AltiVec instructions. Fill in new
7564 fields of frame data.
7565 (frame_get_saved_regs): Fill in information for AltiVec registers.
7567 2002-03-27 Jim Blandy <jimb@redhat.com>
7569 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
7570 a function; leave this macro here to invoke that function.
7571 (symbol_init_mangled_name): Declaration for that function.
7572 * symtab.c (symbol_init_mangled_name): New function.
7574 2002-03-27 Andrew Cagney <ac131313@redhat.com>
7576 * valarith.c: Replace strerror with safe_strerror.
7577 * tracepoint.c: Ditto.
7579 * go32-nat.c: Ditto.
7583 2002-03-27 Andreas Schwab <schwab@suse.de>
7585 * event-top.c (command_line_handler): Remove useless if.
7587 2002-03-27 Andreas Jaeger <aj@suse.de>
7589 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
7592 2002-03-27 Michal Ludvig <mludvig@suse.cz>
7594 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
7595 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
7596 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
7597 (x86_64_linux_dr_get_status, supply_gregset),
7598 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
7599 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
7600 (x86_64_register_info_table): Add.
7601 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
7602 (x86_64_register_raw_size, x86_64_register_virtual_type),
7603 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
7604 general x86_64_register_info_table.
7605 (i386_gdbarch_init): gdbarch_register_bytes is now set
7606 dynamicaly during initialization.
7607 * regformats/reg-x86-64.dat: Synced with changes to registers above.
7608 * gdbserver/linux-x86-64-low.c: Ditto.
7610 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7612 * gdbserver/server.c (main): Call target_signal_to_host_p
7613 and target_signal_to_host on signals received from the remote.
7614 * gdbserver/remote-utils.c (prepare_resume_reply): Call
7615 target_signal_from_host on signals sent to the remote.
7616 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
7617 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
7619 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7621 * signals/signals.c: Include "server.h" in gdbserver build.
7622 (target_signal_from_name): Don't use STREQ.
7623 (_initialize_signals): Likewise. Don't include function in
7626 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
7628 * signals.c: Moved to...
7629 * signals/signals.c: Here.
7630 * Makefile (signals.o): Update.
7632 2002-03-26 Jeff Law (law@redhat.com)
7634 * somread.c (som_symtab_read): Remove some commented out code and
7635 updated related comments. Do not set the minimal symbol table to
7636 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
7637 in a dynamic executable.
7638 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
7639 where we are unable to find the minimal symbol for the given
7642 2002-03-25 Jeff Law (law@redhat.com)
7644 * linux-proc.c (read_mapping): Scan up to end of line for filename.
7646 2002-03-25 Michal Ludvig <mludvig@suse.cz>
7648 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
7650 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7652 * command.h: Update copyright.
7653 (struct cmd_list_element): Replace definition with opaque
7655 (enum cmd_types): Document that it will eventually be moved to
7657 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
7658 (MALLOCED_REPLACEMENT): Delete macro.
7659 * Makefile.in (cli_decode_h): Add $(command_h).
7660 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7661 * top.c: Include "cli/cli-decode.h".
7662 * completer.c: Include "cli/cli-decode.h".
7663 * maint.c: Include "cli/cli-decode.h".
7664 * cli/cli-decode.h: Include "command.h".
7665 (enum command_class): Delete.
7666 (enum cmd_types): Comment out.
7667 (enum cmd_auto_boolean): Delete.
7668 (enum var_types): Delete.
7670 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7672 * cli/cli-decode.c: Include "gdb_assert.h".
7673 (add_set_or_show_cmd): New static function.
7674 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
7675 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
7676 all fields, such as func, from the set command.
7678 2002-03-23 Andrew Cagney <ac131313@redhat.com>
7680 * MAINTAINERS (sh-elf): Change warning flag to -w.
7682 2002-03-23 Andrew Cagney <cagney@redhat.com>
7684 * defs.h (error): Add printf format attribute.
7685 * thread-db.c (thread_from_lwp): Fix error format string.
7686 * stack.c (parse_frame_specification): Ditto.
7687 * cli/cli-decode.c (undef_cmd_error): Ditto.
7688 * scm-lang.c (scm_lookup_name): Ditto.
7689 * tracepoint.c (trace_error): Ditto.
7690 * remote-utils.c (usage): Ditto.
7691 * remote.c (compare_sections_command): Ditto.
7694 2002-03-22 Andrew Cagney <ac131313@redhat.com>
7696 * gdbtypes.c (append_composite_type_field): New function.
7697 (init_composite_type): New function.
7698 * gdbtypes.h (append_composite_type_field): Declare.
7699 (init_composite_type): Ditto.
7701 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
7703 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7705 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
7706 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
7707 structure returning convention for SYSV ABI case, but not
7708 for GNU/Linux, FreeBSD, or NetBSD.
7710 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
7712 * symtab.h (lookup_block_symbol): Add mangled_name argument
7715 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
7716 with new mangled_name argument.
7717 * linespec.c (decode_line_1): Likewise.
7718 * valops (value_of_this): Likewise.
7719 * symtab.c (lookup_transparent_type): Likewise.
7720 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
7721 (lookup_symbol): If we are given a mangled name, pass it down
7722 to lookup_symbol_aux.
7723 (lookup_block_symbol): If we are given a mangled name to check
7724 against, only return symbols which match it.
7726 2002-03-22 Christopher Faylor <cgf@redhat.com>
7728 * win32-nat.c (child_create_inferior): Check for proper shell to use
7729 here, in case the user changes it on the fly.
7730 (_initialize_inftarg): Remove shell path considerations.
7732 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
7734 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
7735 for gdbarch_max_register_raw_size and max_register_virtual_size.
7736 Adjust copyright year.
7738 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
7740 * dbxread.c (process_one_symbol): Extend the first N_SLINE
7741 in a function to cover the entire beginning of the function
7742 as well if it does not already.
7744 2002-03-21 Tom Rix <trix@redhat.com>
7746 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
7747 (rs6000_ptrace64): Renamed from ptrace64.
7749 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7751 * gdbserver/remote-utils.c (remote_open): Don't call
7752 getprotobyname, we're all using TCP here so just use
7754 * gdbserver/gdbreplay.c (remote_open): Ditto.
7756 2002-03-20 Martin M. Hunt <hunt@redhat.com>
7758 * regcache.c (_initialize_regcache): No need to call
7759 build_regcache() at this time; it gets called whenever
7760 the gdbarch changes.
7762 2002-03-20 David O'Brien <obrien@FreeBSD.org>
7764 * sparc-nat.c: Include sys/param.h where possible.
7766 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
7769 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
7770 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
7771 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
7773 * stabsread.c (rs6000_builtin_type): Likewise.
7774 (read_sun_floating_type): Likewise.
7776 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7778 * stabsread.c (read_member_functions): Remove skip code for duplicate
7779 constructor/destructor methods. Use standard parsing for these
7780 methods and just do not chain them to the list of methods after
7783 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
7785 * coffread.c: Remove redundant static declarations. Replace
7786 occurrences of `PTR' with `void *'.
7787 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
7788 * top.h (quit_cover): Likewise.
7789 * defs.h (catch_errors): Likewise.
7791 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7793 * defs.h (XMALLOC): Define.
7794 * gdb-events.sh (XMALLOC): Delete macro.
7795 * gdb-events.c, gdb-events.h: Regenerate.
7796 * gdbarch.sh (XMALLOC): Delete macro.
7797 * gdbarch.c: Regenerate.
7798 * serial.c (XMALLOC): Delete macro.
7799 * ui-file.c (XMALLOC): Ditto.
7800 * ser-unix.h (XMALLOC): Ditto.
7801 * sh-tdep.c (XMALLOC): Ditto.
7802 * ui-out.c (XMALLOC): Ditto.
7803 * utils.c (XMALLOC): Ditto.
7804 * i386-tdep.c (XMALLOC): Ditto.
7805 * gdb-events.c (XMALLOC): Ditto.
7806 * d10v-tdep.c (XMALLOC): Ditto.
7807 * cli-out.c (XMALLOC): Ditto.
7809 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
7810 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
7811 * ui-file.c, ui-out.c: Ditto.
7813 2002-03-18 Andrew Cagney <ac131313@redhat.com>
7815 * command.h (struct cmd_list_element): Add field context.
7816 (set_cmd_context, get_cmd_context): Declare.
7817 * cli/cli-decode.h: Ditto.
7818 * cli/cli-decode.c (get_cmd_context): New function.
7819 (set_cmd_context): New function.
7820 (add_cmd): Initialize context.
7821 Part of fixing PR gdb/145 and PR gdb/146.
7823 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7825 * cli/cli-decode.c (cmd_type): New function.
7826 * command.h (cmd_type): Declare.
7827 * infrun.c (set_schedlock_func): Call function cmd_type.
7828 * kod.c (kod_set_os): Call cmd_type.
7829 * cris-tdep.c (cris_version_update): Use function cmd_type.
7830 (cris_mode_update, cris_abi_update): Ditto.
7832 * command.h: (execute_cmd_post_hook): Declare.
7833 (execute_cmd_pre_hook): Declare.
7834 * cli/cli-script.c (clear_hook_in_cleanup): New function.
7835 (execute_cmd_post_hook, execute_cmd_pre_hook): New
7836 functions. Execute pre/post hook while ensuring that afterwords
7838 * top.c (execute_command): Use execute_cmd_post_hook, and
7839 execute_cmd_pre_hook to execute pre/post commands.
7840 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
7842 (hook_stop_stub): Call execute_cmd_pre_hook.
7844 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7846 * kod.c (kod_set_os): Revert previous change. Is called by ``info
7847 set'' and this leads to a core dump. Move xstrdup of
7848 operating_system to after check that it is not NULL.
7850 2002-03-17 Andrew Cagney <ac131313@redhat.com>
7852 * kod.c (kod_set_os): Remove unnecessary check that
7853 ``command->type'' is set_cmd.
7855 * valprint.c (set_input_radix): Use input_radix.
7856 (set_output_radix): Use output_radix.
7857 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
7860 2002-03-16 Andrew Cagney <ac131313@redhat.com>
7862 * value.h (struct value): Delete field ``substring_addr''. Change
7863 aligner fields to force_doublest_align, force_longest_align,
7864 force_core_addr_align and force_pointer_aligh.
7866 * value.h (struct value): Fix typo in above change.
7868 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7870 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
7871 to fix internal_error from ``maintenance print architecture''.
7873 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7875 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
7876 for gcc versions after gcc-2.8.1.
7878 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7880 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
7881 for method resolution. Restore adjustment of ``this'' pointer after
7882 calling value_struct_elt, which was accidentally removed during the
7885 2002-03-15 Andrew Cagney <ac131313@redhat.com>
7887 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
7889 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
7891 * value.h (value_of_register): Update.
7893 2002-03-14 Richard Henderson <rth@redhat.com>
7895 * configure.in: Detect declaration for canonicalize_file_name.
7896 * utils.c (canonicalize_file_name): Declare, if needed.
7897 (gdb_realpath): Prefer realpath if available and usable.
7898 * config.in, configure: Rebuild.
7900 2002-03-14 Richard Henderson <rth@redhat.com>
7902 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
7903 a constant array bound.
7905 * MAINTAINERS: Add myself to write-after-approval.
7907 2002-03-14 Michael Snyder <msnyder@redhat.com>
7909 * symfile.c (syms_from_objfile): Return immediately if no syms.
7910 (symbol_file_add): Return immediately if no syms.
7911 (find_sym_fns): Return immediately if no syms.
7913 2002-03-13 Michal Ludvig <mludvig@suse.cz>
7915 * gdbserver/remote-util.c (remote_open): Print remote-side's
7916 IP address when remote debugging over the network.
7918 2002-03-12 David O'Brien <obrien@FreeBSD.org>
7920 * config/sparc/fbsd.mh: Fix copyright.
7921 * config/sparc/fbsd.mt: Likewise.
7923 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
7925 * MAINTAINERS: Fix typo in name of gdb warnings option.
7926 (x86-64): Fix formating so that this can be parsed by awk.
7928 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7930 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
7931 * defs.h: Include "gdb/signals.h".
7932 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
7934 2002-03-10 Michal Ludvig <mludvig@suse.cz>
7936 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7937 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
7940 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
7941 Don Howard <dhoward@redhat.com>
7943 * mips-tdep.c (ST0_FR): Define.
7944 (mips2_fp_compat): New function, temporarily disabled.
7945 (mips_read_fp_register_single): New function.
7946 (mips_read_fp_register_double): New function.
7947 (mips_print_register): Use them.
7948 (do_fp_register_row): Likewise.
7950 2002-03-09 Andrew Cagney <ac131313@redhat.com>
7952 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
7955 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7957 * stabsread.c (read_member_functions): Fix is_stub test for
7958 static member functions, improve comment.
7960 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
7962 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
7963 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
7964 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
7965 commands that set boolean values.
7966 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
7967 (arm_rdi_resume): Always initialize PC.
7968 (arm_rdi_open): Don't use rslt as a boolean.
7969 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
7970 (arm_rdi_fetch_registers, arm_rdi_store_registers)
7971 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
7972 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
7974 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
7976 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
7977 * configure: Rebuilt.
7979 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
7981 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
7982 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
7984 2002-03-06 Andrew Cagney <ac131313@redhat.com>
7986 * cli/cli-decode.c (set_cmd_completer): New function.
7987 * command.h (set_cmd_completer): Declare.
7988 * cli/cli-decode.h (set_cmd_completer): Ditto.
7990 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
7991 * cli/cli-cmds.c (init_cli_cmds): Ditto.
7992 * win32-nat.c (_initialize_inftarg): Ditto.
7993 * remote-rdi.c (_initialize_remote_rdi): Ditto.
7994 * proc-api.c (_initialize_proc_api): Ditto.
7995 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
7996 * source.c (_initialize_source): Ditto.
7997 * exec.c (_initialize_exec): Ditto.
7998 * solib.c (_initialize_solib): Ditto.
7999 * top.c (init_main): Ditto.
8000 * tracepoint.c (_initialize_tracepoint): Ditto.
8001 * symfile.c (_initialize_symfile): Ditto.
8002 * printcmd.c (_initialize_printcmd): Ditto.
8003 * infcmd.c (_initialize_infcmd): Ditto.
8004 * corefile.c (_initialize_core): Ditto.
8006 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8008 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
8010 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8012 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
8014 2002-03-05 Andrew Cagney <ac131313@redhat.com>
8016 * NEWS: Update headings, 5.2 has branched.
8018 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
8020 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
8021 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
8022 (register_addr, REGISTER_RAW_SIZE): Likewise.
8023 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
8024 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
8026 2002-03-03 Michal Ludvig <mludvig@suse.cz>
8028 * MAINTAINERS (x86-64): Add myself.
8029 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
8030 changed value_ptr -> struct value *
8032 2002-03-01 David O'Brien <obrien@FreeBSD.org>
8034 * configure.host (sparc64-*-freebsd): Add.
8035 * configure.tgt: Likewise.
8036 * config/sparc/fbsd.mh: New file.
8037 * config/sparc/fbsd.mt: Likewise.
8038 * config/sparc/nm-fbsd.h: Likewise.
8039 * config/sparc/tm-fbsd.h: Likewise.
8041 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
8043 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
8044 regformats/reg-s390x.dat.
8046 2002-03-01 Andrew Cagney <ac131313@redhat.com>
8048 * utils.c: Add FIXME explaining true/false problem.
8050 2002-02-28 Andrew Cagney <ac131313@redhat.com>
8052 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
8054 2002-02-28 Michael Chastain <mec@shout.net>
8056 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
8058 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
8060 * gdbserver/linux-s390-low.c: New file.
8061 * regformats/reg-s390.dat: New file.
8062 * regformats/reg-s390x.dat: New file.
8063 * gdbserver/configure.srv: Add S/390.
8064 * gdbserver/Makefile.in: Add S/390.
8065 * configure.tgt: Enable gdbserver for S/390.
8067 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
8069 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
8070 first line of the doc string for "info dos", except at the end of
8071 the sentence, since the short help stops at the first period.
8073 2002-02-28 Jason Merrill <jason@redhat.com>
8075 * dwarf2read.c (dwarf_cfi_name): Add new codes.
8077 2002-02-27 Fred Fish <fnf@redhat.com>
8079 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
8080 comment (dumy -> dummy).
8082 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8084 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
8086 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
8088 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
8090 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8092 * gdbserver/acconfig.h: New file.
8093 * gdbserver/i387-fp.c: New file.
8094 * gdbserver/i387-fp.h: New file.
8095 * gdbserver/linux-x86-64.c: New file.
8096 * regformats/reg-x86-64.dat: New file.
8097 * configure.tgt: Add x86_64-*-linux* gdbserver support.
8098 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
8099 * gdbserver/configure.in: Add support for regsets.
8100 * gdbserver/config.in: Regenerate.
8101 * gdbserver/configure: Regenerate.
8102 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
8103 * gdbserver/linux-low.h: New file.
8104 * gdbserver/linux-low.c: Include "linux-low.h". Add support
8106 * gdbserver/linux-arm-low.c: Include "linux-low.h".
8107 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
8108 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
8109 * gdbserver/linux-mips-low.c: Include "linux-low.h".
8110 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
8111 * gdbserver/linux-sh-low.c: Include "linux-low.h".
8112 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
8113 "i387-fp.h". Add PTRACE_GETREGS and friends.
8114 * gdbserver/regcache.c (supply_register): New function.
8115 (supply_register_by_name): New function.
8116 (collect_register): New function.
8117 (collect_register_by_name): New function.
8119 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8121 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
8122 (config.status): Add configure.srv dependency.
8123 (server_h): Add config.h dependency.
8125 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
8127 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
8128 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
8129 * gdbserver/configure.srv: Change i386-*-linux* to use
8132 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8134 * x86-64-tdep.c: Re-indent. Update copyright date.
8136 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8138 From Michal Ludvig <mludvig@suse.cz>:
8139 * x86-64-tdep.c (value.h): Delete.
8140 (gdb_assert.h): Include.
8141 (x86_64_register_convert_to_virtual,
8142 x86_64_register_convert_to_raw ): Add check which lets only
8143 floating-point values to be converted.
8144 (value_push): Delete.
8145 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
8146 (i386_gdbarch_init): Number of register_bytes fixed.
8148 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8150 * MAINTAINERS: Add x86-64 target.
8152 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8154 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
8155 * osfsolib.c (solib_map_sections): Ditto.
8156 * irix5-nat.c (solib_map_sections): Ditto.
8157 * corelow.c (gdb_check_format): Ditto.
8158 * symfile.c (symfile_bfd_open): Ditto.
8159 * solib.c (solib_map_sections): Ditto.
8162 2002-02-26 Andrew Cagney <ac131313@redhat.com>
8164 * remote.c (_initialize_remote): By default, disable ``e'' and
8165 ``E'' step out-of-range packets.
8167 2002-02-26 Andreas Schwab <schwab@suse.de>
8169 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
8170 m68k_linux_frame_saved_pc.
8171 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
8173 (SIGCONTEXT_PC_OFFSET): Remove.
8174 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
8175 m68k_linux_sigtramp_saved_pc): New functions.
8176 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
8177 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
8178 (UCONTEXT_PC_OFFSET): Define.
8179 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
8180 non-RT and RT signal trampolines.
8182 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
8184 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
8185 (TARGET_NBPG, STACK_END_ADDR): Delete
8186 (VARIABLES_INSIDE_BLOCK): Delete.
8188 2002-02-25 Andrew Cagney <ac131313@redhat.com>
8190 * utils.c (perror_with_name): Make string parameter constant.
8191 (print_sys_errmsg): Ditto.
8193 * defs.h (perror_with_name): Update.
8194 (print_sys_errmsg): Update.
8197 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
8199 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
8200 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
8202 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8204 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
8205 if it already matches the current architecture from the exec file.
8206 Include arch-utils.h for gdbarch_info_init prototype.
8207 * Makefile.in (rs6000-nat.o): Update dependencies.
8209 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
8211 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
8212 list of exported variables.
8214 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
8216 * gdbserver/configure.srv: New file.
8217 * gdbserver/configure.in: Use configure.srv instead
8218 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
8220 * gdbserver/configure: Regenerated.
8221 * gdbserver/terminal.h: New file.
8222 * gdbserver/Makefile.in: Update for configure changes. Remove
8223 more unneeded include paths.
8225 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8227 From wiz at danbala:
8228 * config/sparc/tm-sp64.h: Fix grammar and typos.
8231 2002-02-24 Andrew Cagney <ac131313@redhat.com>
8233 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
8234 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
8235 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
8236 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
8237 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
8238 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
8239 * s390-tdep.c: Ditto.
8240 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
8241 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
8242 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
8243 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
8244 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
8245 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
8246 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
8247 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
8248 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
8249 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8252 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8254 * lin-thread.c: Delete file.
8255 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
8256 to gdb_proc_service.h.
8257 * configure: Re-generate.
8259 * ocd.c (ocd_open): Do not try to open the "ocd" device.
8260 * serial.c (serial_open): Delete check for "ocd".
8263 * Makefile.in (linux-thread.o): Delete target.
8264 * linux-thread.c: Delete file.
8266 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
8267 renamed SH files to be consistent.
8269 * symtab.c (sort_search_symbols): Use xfree.
8271 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8273 * arm-linux-tdep.c (arm_linux_init_abi): Register
8274 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
8275 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
8276 definition with undef, since we don't want the sysvr4 definition.
8277 (SKIP_TRAMPOLINE_CODE): Likewise.
8279 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8281 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
8283 * configure.in: (AC_CHECK_FUNCS) Added test for
8284 canonicalize_file_name Regenerated.
8285 * config.in, configure: Regenerated.
8286 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
8287 defined use canonicalize_file_name.
8289 2002-02-23 Michael Chastain <mec@shout.net>
8291 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
8293 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8295 * README: Remove references to cygnus.com.
8296 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
8297 dot com'' form. Remove references to cygnus.com and sourceware.
8299 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8301 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
8302 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
8303 1003.1-2001 no longer allows "head -1".
8304 * gdb/Makefile.in (version.c): Likewise.
8305 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
8306 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
8307 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
8309 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8311 * cli/cli-decode.c (cmd_cfunc_eq): New function.
8312 * command.h (cmd_cfunc_eq): Declare.
8313 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
8315 * cli/cli-cmds.h (is_complete_command): Change parameter to a
8316 ``struct cmd_list_element *''.
8317 * cli/cli-cmds.c (is_complete_command): Update. Use
8319 * top.c (execute_command): Pass the command to
8320 is_complete_command.
8321 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
8323 2002-02-23 Andrew Cagney <ac131313@redhat.com>
8325 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
8326 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
8327 architecture defines.
8328 * s390-tdep.c (s390_gdbarch_init): Likewise.
8330 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8332 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
8333 (arm_linux_push_arguments): Likewise.
8334 (arm_linux_init_abi): Register them. Also register linux-specific
8336 (find_minsym_and_objfile): Use strcmp, not STREQ.
8337 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
8338 (arm_linux_call_dummy_words): Delete declaration.
8339 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
8340 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
8342 (LOWEST_PC): Delete.
8344 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8346 * maint.c (print_section_info): Do not prepend `0x' to filepos
8347 output, it will be handled by local_hex_string_custom.
8349 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
8351 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
8352 (store_newfpe_double, store_newfpe_extended, store_fpregister)
8353 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
8355 2002-02-22 Jim Blandy <jimb@redhat.com>
8357 Indicate that the bcache functions don't change the strings
8359 * bcache.h (bcache, hash): Add `const' keywords to declarations.
8360 * bcache.c (bcache, hash): Add `const' keywords to definitions.
8362 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
8364 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
8366 2002-02-21 Christopher Faylor <cgf@redhat.com>
8368 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
8369 find the complete path to a loaded DLL.
8371 2002-02-21 Fred Fish <fnf@redhat.com>
8373 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
8374 that marks the end of the range of a function, enter a line number
8375 entry that has a line number of zero and a PC offset that matches
8376 the end of the function. This starts a range of PC's for which no
8377 line number information is known.
8378 * symtab.c (find_pc_sect_line): If our best fit is in a range of
8379 PC's for which no line number info is found (line number is zero)
8380 then we didn't find any valid line information.
8381 * symtab.h: Document use of zero line number entry.
8383 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
8385 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
8386 (have_ptrace_getvrregs): Define for run time checks.
8387 (gdb_vrregset_t): New type for Altivec register handling.
8388 (fetch_register, store_register): Fetch/store altivec register
8390 (fetch_altivec_register, store_altivec_register): New functions.
8391 (supply_vrregset, fill_vrregset): New functions.
8392 (fetch_altivec_registers, store_altivec_registers): New functions.
8393 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
8396 2002-02-21 Jiri Smid <smid@suse.cz>
8398 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
8400 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8402 * Makefile.in (armnbsd-nat.o): Update dependencies.
8403 * armnbsd-nat.c (supply_gregset): New function. Common code to
8404 supply the integer register set.
8405 (supply_fparegset): New function. Similar for FPA registers.
8406 (fetch_regs, fetch_fp_regs): Use them.
8407 (fetch_core_registers): Likewise.
8408 (fetch_elfcore_registers): New function.
8409 (arm_netbsd_elfcore_fns): New core-file type specification.
8410 (_initialize_arm_netbsd_nat): Register it.
8412 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
8414 * armnbsd-nat.c: Include gdbcore.h.
8415 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
8416 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
8417 'void' to declaration, to shut up ARI.
8418 (fetch_core_registers): Make static. Rewrite using supply_register.
8419 (arm_netbsd_core_fns): New core-file type specification.
8420 (_initialize_arm_netbsd_nat): New function.
8422 2002-02-21 Christopher Faylor <cgf@redhat.com>
8424 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
8427 2002-02-20 Christopher Faylor <cgf@redhat.com>
8429 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
8432 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8434 * jv-exp.y (parse_number): Change type of implicit longs
8435 to builtin_type_uint64.
8437 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8439 * gdbserver/linux-low.c (mywait): Change argument to waitpid
8440 to be an integer instead of a `union wait'.
8442 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8444 * mips-linux-nat.c: Call the operating system GNU/Linux.
8445 * mips-linux-tdep.c: Likewise.
8446 * mips-tdep.c: Likewise.
8448 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8451 * jv-exp.y (parse_number): Handle 64-bit integers.
8453 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
8455 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
8456 AC_STDC_HEADERS to AC_HEADER_STDC.
8457 * gdbserver/configure: Regenerated.
8459 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8461 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
8463 * sparc-tdep.c (get_longjmp_target): Likewise.
8465 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
8467 * News: Add news about ARM and Multi-arch. Mention the new target
8470 2002-02-19 Jim Blandy <jimb@redhat.com>
8472 * stabsread.c (error_type_complaint): Improve error message.
8474 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
8476 * gdbserver/README: Update documentation.
8477 * gdbserver/configure.in: Update configury to match documentation.
8478 * gdbserver/Makefile.in: Likewise.
8479 * gdbserver/configure: Regenerated.
8480 * gdbserver/aclocal.m4: New file, generated by aclocal.
8481 * gdbserver/config.in: New file, generated by autoheader.
8483 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8485 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
8488 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8490 * arm-tdep.h (enum arm_float_model): New enum.
8491 (struct gdbarch_tdep): Add fp_model.
8492 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
8493 up floating-point conversions until we know the floating-point model
8494 in use by the inferior. Don't complain about being unable to
8495 determine the ABI of the inferior when we don't have one.
8496 (arm_extract_return_value): Support different floating-point models.
8497 (arm_store_return_value): Likewise.
8498 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
8500 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
8502 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8504 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
8505 of ``current_gdbarch''.
8507 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8509 * armnbsd-nat.c : ANSIfy all function declarations.
8510 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
8511 (fetch_inferior_registers): Re-implement in terms of above.
8512 (store_register, store_regs, store_fp_register, store_fp_regs): New.
8513 (store_inferior_registers): Re-implement in terms of above.
8515 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8517 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
8519 * arm-linux-tdep.c: Likewise.
8520 * config/arm/tm-linux.h: Likewise.
8522 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8524 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
8525 * config/arm/nbsd.mt (TM_FILE): Delete.
8526 * config/arm/tm-nbsd.h: Delete.
8528 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8530 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
8531 Initialize CALL_DUMMY_LENGTH.
8533 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
8535 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
8537 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
8538 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
8539 defines one thing and that is incorrect for this port.
8540 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
8542 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8544 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
8546 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
8548 * win32-nat.c (display_selector): New function. Displays information
8549 about the information returned by GetThreadSelectorEntry API function.
8550 (display_selectors): New function. Displays the infomation of
8551 the selector given as argument, or of CS, DS ans FS selectors
8552 if no argument is given.
8553 ( _initialize_inftarg): Add "w32" as info prefix command.
8554 Add "info w32 selector" as command calling display_selectors.
8556 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
8558 * i386-tdep.c (get_longjmp_target): Fix compilation failure
8559 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
8562 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8564 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
8566 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8568 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
8569 (arm_fix_call_dummy): Call it.
8570 (arm_call_dummy_breakpoint_offset): Delete.
8571 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
8572 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
8574 2002-02-18 Andrew Cagney <ac131313@redhat.com>
8576 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
8577 Default to func_frame_chain_valid.
8578 * gdbarch.h, gdbarch.c: Re-generate.
8579 * frame.h (FRAME_CHAIN_VALID): Delete definition.
8581 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
8583 * ppc-linux-nat.c: Update copyright.
8584 (fetch_register, store_register): Add tid parameter, don't compute
8586 (fetch_ppc_registers, store_ppc_registers): Add tid
8587 parameter. Pass it along to callees.
8588 (fetch_inferior_registers, store_inferior_registers): Compute tid
8589 here, and pass it to calleed functions.
8590 (fill_gregset, supply_fpregset): Clean up formatting.
8592 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8594 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
8595 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
8597 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
8599 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
8600 * gdbarch.c gdbarch.h: Regenerate.
8601 * breakpoint.c (create_longjmp_breakpoint): Always compile this
8603 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
8604 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
8605 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
8607 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
8608 * arm-tdep.c (arm_get_longjmp_target): New function.
8609 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
8610 this to a positive value register arm_get_longjmp_target as the
8612 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
8613 (arm_linux_init_abi): Set up longjmp description in tdep.
8614 * armnbsd-nat.c (get_longjmp_target): Delete.
8615 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
8616 description in tdep.
8617 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
8618 (get_longjmp_target): Delete declaration.
8619 (GET_LONGJMP_TARGET): Delete.
8620 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
8621 (GET_LONGJMP_TARGET): Delete.
8623 2002-02-17 Kevin Buettner <kevinb@redhat.com>
8625 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
8626 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
8627 of ``current_gdbarch''.
8629 2002-02-17 Tom Tromey <tromey@redhat.com>
8631 * cli/cli-cmds.c (compare_strings): New function.
8632 (complete_command): Only print each unique item once.
8633 * completer.h (complete_line): Declare.
8634 * completer.c (complete_line): New function.
8635 (line_completion_function): Use it.
8637 2002-02-16 Andrew Cagney <ac131313@redhat.com>
8639 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
8640 * gdbarch.h, gdbarch.c: Re-generate.
8642 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8644 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
8646 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
8648 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8649 * valops.c (value_arg_coerce): Don't take the address of a reference
8650 to convert an argument to a reference.
8652 2002-02-15 Christopher Faylor <cgf@redhat.com>
8654 * win32-nat.c (get_image_name): New function.
8655 (handle_load_dll): Use get_image_name function.
8656 (get_child_debug_event): Avoid registering debug events until possibly
8657 execed process is started.
8658 (child_create_inferior): Allow invocation via shell so that command
8659 line redirection, etc. works ok.
8660 (_initialize_inftarg): Add new command: "set shell" to control whether
8661 a shell is used to start a process.
8663 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8665 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
8666 instead of find_register_by_number.
8667 (cannot_store_register): Likewise.
8669 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
8671 * dwarf2read.c: Replace fprintf (stderr, ...) by
8672 fprintf_unfiltered (gdb_stderr, ...).
8674 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
8676 * gdbserver/gdbserver.1: Document --attach.
8678 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8680 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
8682 * arm-tdep.c (arm_default_arm_le_breakpoint)
8683 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
8684 (arm_default_thumb_be_breakpoint): New. Initialize them from
8685 traditional breakpoint defines.
8686 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
8687 (arm_gdbarch_init): Initialize new breakpoint variables.
8688 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
8689 (arm_linux_init_abi): Initialize linux-specific breakpoint.
8690 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
8691 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
8693 (arm_netbsd_init_abi_common): ... here; new function.
8694 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
8695 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
8696 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
8697 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
8699 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
8701 * arm-tdep.h (enum arm_abi): New enum.
8702 (struct gdbarch_tdep): New structure.
8703 (LOWEST_PC): Provide a default.
8704 (arm_gdbarch_register_os_abi): Declare new function.
8705 * arm-tdep.c (arm_abi_names): New array.
8706 (process_note_abi_tag_sections): New function.
8707 (get_elfosabi): New function.
8708 (arm_gdbarch_register_os_abi): New function.
8709 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
8710 support for that ABI has been built in, then call the appropriate
8711 configuration routine. Use gdbarch_num_regs() to get the number
8713 (arm_dump_tdep): New function.
8714 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
8715 place-holder functions.
8716 (_initialize_arm_tdep): Register them.
8717 * config/arm/tm-arm.h (LOWEST_PC): Delete.
8719 * armnbsd-tdep.c: New file.
8720 * Makefile.in (armnbsd-tdep.o): Add dependencies.
8721 * config/arm/nbsd.mt (TDEPFILES): Add it.
8722 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
8724 * armnbsd-nat.c: Include regcache.h.
8725 * Makefile.in (armnbsd-nat.o): Update dependency list.
8727 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
8729 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8731 * gdbserver/Makefile.in: Fix typos in target rules.
8733 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8735 Fix part of PR gdb/267.
8736 * linespec.c (find_methods): Handle constructors specially for now.
8738 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
8740 * arm-tdep.c (arm_push_arguments): Eliminate special float type
8742 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
8743 standard_coerce_float_to_double().
8745 2002-02-14 Christopher Faylor <cgf@redhat.com>
8747 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
8750 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
8752 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
8753 find_variant_by_name, because it confuses the multiarch
8754 framework. Return NULL if there isn't an architecture with the
8755 user supplied name, instead of forcing a different one without
8756 recording the change with the multiarch machinery.
8757 (find_variant_by_name): Delete.
8759 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8761 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
8762 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
8764 2002-02-13 Martin M. Hunt <hunt@redhat.com>
8766 * stack.c (print_frame_info_base): When calling
8767 print_frame_info_listing_hook, set current_source_symtab.
8769 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8771 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
8772 and remove unused $(INCLUDE_DIR).
8773 Add regcache.c to OBS.
8774 Add generated register protocol files to clean target.
8775 Update dependencies for new objects, obsolete old target code.
8777 * gdbserver/linux-low.c: Remove all platform-specific code to
8778 new files. Remove various dead code. Update to use regcache
8780 * gdbserver/remote-utils.c (fromhex): Add return statement
8782 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
8784 (input_interrupt): Add integer parameter to match prototype
8785 of a signal handler.
8786 (outreg): Use register_data ().
8787 (prepare_resume_reply): Use gdbserver_expedite_regs.
8788 * gdbserver/server.c (main): Dynamically allocate own_buf because
8789 PBUFSIZ is no longer constant. Use registers_to_string () and
8790 registers_from_string ().
8791 * gdbserver/server.h: No longer include "defs.h". Add prototypes
8792 for error (), fatal (), and warning (). Update definition of
8793 PBUFSIZ to use regcache functionality. Add include guard.
8794 * gdbserver/utils.c (fatal): Add missing ``const''.
8795 (warning): New function.
8797 * regformats/regdat.sh: Include "regcache.h" in generated files.
8798 Provide init_registers () function.
8799 * regformats/regdef.h: Add prototype for set_register_cache ().
8802 * gdbserver/linux-arm-low.c: New file.
8803 * gdbserver/linux-i386-low.c: New file.
8804 * gdbserver/linux-ia64-low.c: New file.
8805 * gdbserver/linux-m68k-low.c: New file.
8806 * gdbserver/linux-mips-low.c: New file.
8807 * gdbserver/linux-ppc-low.c: New file.
8808 * gdbserver/linux-sh-low.c: New file.
8810 * gdbserver/regcache.c: New file.
8811 * gdbserver/regcache.h: New file.
8813 * gdbserver/low-linux.c: Removed obsolete file.
8815 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8817 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
8818 * config/i386/linux.mt: Likewise.
8819 * config/ia64/linux.mt: Likewise.
8820 * config/m68k/linux.mh: Likewise.
8821 * config/powerpc/linux.mh: Likewise.
8822 * config/mips/linux.mt: Likewise.
8824 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
8826 * config/i386/i386lynx.mh: Mark gdbserver variables
8827 as (currently) obsolete for this target.
8828 * config/i386/nbsd.mt: Likewise.
8829 * config/i386/nbsdelf.mt: Likewise.
8830 * config/m32r/m32r.mt: Likewise.
8831 * config/m68k/m68klynx.mh: Likewise.
8832 * config/m68k/nbsd.mt: Likewise.
8833 * config/m68k/sun3os4.mh: Likewise.
8834 * config/mips/vr5000.mt: Likewise.
8835 * config/ns32k/nbsd.mt: Likewise.
8836 * config/pa/hppabsd.mh: Likewise.
8837 * config/pa/hppaosf.mh: Likewise.
8838 * config/powerpc/nbsd.mt: Likewise.
8839 * config/rs6000/rs6000lynx.mh: Likewise.
8840 * config/s390/s390.mt: Likewise.
8841 * config/s390/s390x.mt: Likewise.
8842 * config/sparc/sparclynx.mh: Likewise.
8843 * config/sparc/sun4os4.mh: Likewise.
8844 * config/i386/x86-64linux.mt: Likewise.
8845 * config/sparc/linux.mh: Likewise.
8847 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
8849 * configure.tgt: Configure gdbserver only for known working
8850 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
8851 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
8852 SUBDIRS if it is configured. Update comment for ${nativefile}.
8853 * configure: Regenerated.
8855 2002-02-13 Michael Snyder <msnyder@redhat.com>
8857 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
8859 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
8860 (default_gcore_mach): Just return 0, work around a problem in bfd.
8861 (default_gcore_target): OK to return NULL if exec_bfd is null.
8862 (make_mem_sec): Use a cast, avoid a warning.
8864 * procfs.c (find_memory_regions_callback): Use a cast instead of
8865 calling host_pointer_to_address (which complains if
8866 sizeof (host pointer) != sizeof (target pointer)).
8867 (procfs_make_note_section): Avoid overflow in psargs string.
8869 * procfs.c (procfs_make_note_section): Make the default
8870 implementation return an error.
8872 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
8874 * procfs.c (procfs_make_note_section): Provide a default definition
8875 (for alpha-dec-osf4.0f). Fix typos.
8877 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
8879 * linux-proc.c: Add include of regcache.h.
8880 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
8882 2002-02-13 Andrew Cagney <ac131313@redhat.com>
8884 From 2002-01-18 Greg McGary <greg@mcgary.org>:
8885 * memattr.c (create_mem_region): Disallow useless empty region.
8886 Regions are half-open intervals, so allow [A..B) [B..C) as
8889 2002-02-13 Michael Chastain <mec@shout.net>
8891 * defs.h: Kill CONST_PTR.
8892 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
8893 * c-lang.c (c_builtin_types): Likewise.
8894 * ch-lang.c (ch_builtin_types): Likewise.
8895 * f-lang.c (f_builtin_types): Likewise.
8896 * language.c (unknown_builtin_types): Likewise.
8897 * m2-lang.c (m2_builtin_types): Likewise.
8898 * p-lang.c (pascal_builtin_types): Likewise.
8899 * scm-lang.c (c_builtin_types): Likewise.
8901 2002-02-13 Keith Seitz <keiths@redhat.com>
8903 * arm-tdep.h (arm_get_next_pc): Add declaration.
8905 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
8907 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
8908 with other related struct-returning functions.
8909 (arm_extract_struct_value_address): New function.
8910 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
8911 initialize float_format, double_format and long_double_format as
8912 appropriate to the endianness of the target.
8913 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
8914 (arm_use_struct_convention): Delete declaration.
8915 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
8917 2002-02-13 Keith Seitz <keiths@redhat.com>
8919 * defs.h (core_addr_to_string_nz): New function.
8921 2002-02-13 Mark Kettenis <kettenis@gnu.org>
8923 Apply missing bits of 2002-01-15 patch.
8924 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
8925 (fill_fpregset): Use i387_fill_fsave.
8927 2002-02-12 Keith Seitz <keiths@redhat.com>
8929 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
8930 (core_addr_to_string_nz): New function.
8932 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8934 * arm-linux-nat.c: Really include arm-tdep.h.
8935 * config/arm/tm-linux.h (struct type, struct value): Declare.
8937 2002-02-11 Michael Snyder <msnyder@redhat.com>
8939 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
8940 (gcore section): Ifdef for Solaris and Unixware only.
8941 (procfs_do_thread_registers): Unixware needs one lwpstatus
8942 per thread (not one prstatus or pstatus).
8943 (procfs_make_note_section): Iterate only over kernel threads (lwps),
8944 not over all gdb threads. For unixware, call elfcore_write_pstatus
8945 once before iterating over threads.
8947 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
8949 * arm-tdep.h: New file.
8950 * arm-tdep.c: Include arm-tdep.h.
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): Make static.
8956 (arm_software_single_step): Similarly. Fix types in declaration.
8957 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
8958 (arm_store_return_value, arm_store_struct_return): New functions.
8959 (arm_gdbarch_init): Register the above functions. Also register
8960 call_dummy_start_offset, sizeof_call_dummy_words,
8961 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
8962 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
8963 max_register_virtual_size, register_size. Set up
8964 prologue_cache.saved_regs here, rather than ...
8965 (_initialize_arm_tdep): ... here.
8966 * config/arm/tm-arm.h (struct type, struct value): Delete forward
8968 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
8969 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
8970 (arm_print_float_info, arm_register_type, convert_to_extended)
8971 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
8972 (arm_extract_return_value, arm_register_name): Delete declarations.
8973 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
8974 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
8975 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
8976 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
8977 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8978 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
8979 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
8980 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
8981 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
8982 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
8983 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
8984 (arm_get_next_pc): No-longer static -- these are needed by the RDI
8986 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
8987 * remote-rdi.c remote-rdp.c: Likewise.
8988 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
8989 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
8990 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
8993 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
8994 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
8995 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
8996 from non-ARM_ prefixed definitions.
8997 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
8999 * remote-rdi.c remote-rdp.c: Likewise.
9000 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
9002 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
9004 * arm-tdep.c (arm_frameless_function_invocation)
9005 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9006 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9007 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9008 (arm_pop_frame, arm_get_next_pc): Make static.
9009 (arm_gdbarch_init): Register above in gdbarch structure.
9010 (arm_read_fp): Renamed from arm_target_read_fp.
9011 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
9012 * config/arm/tm-arm.h (arm_frameless_function_invocation)
9013 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
9014 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
9015 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
9016 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
9017 (arm_pc_is_thumb_dummy): Delete declarations.
9018 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
9019 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
9020 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
9021 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
9023 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
9025 * symtab.c (compare_search_syms): New function.
9026 (sort_search_symbols): New function.
9027 (search_symbols): Sort symbols after searching rather than
9030 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9032 * NEWS: Linux -> GNU/Linux.
9034 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9036 * gdbarch.sh: For for level one methods, disallow a definition
9037 when partially multi-arched. Add comments explaining rationale.
9038 * gdbarch.h: Re-generate.
9040 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9042 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
9045 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9047 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
9049 * gdbarch.c: Re-generate.
9051 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9053 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
9054 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
9057 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9059 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
9061 (PUSH_ARGUMENTS): Switch to using predefault.
9062 * gdbarch.c: Regenerate.
9064 2002-02-10 Andrew Cagney <ac131313@redhat.com>
9066 * valops.c (PUSH_ARGUMENTS): Delete definition.
9067 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
9068 partial. Default to default_push_arguments.
9069 * gdbarch.h, gdbarch.c: Regenerate.
9071 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9073 * defs.h (throw_exception): Rename return_to_top_level. Update
9075 * utils.c (error_stream, internal_verror, quit): Ditto.
9076 * top.c (throw_exception, catcher): Ditto.
9077 * sparclet-rom.c (sparclet_load): Ditto.
9078 * remote.c (interrupt_query, minitelnet): Ditto.
9079 * remote-sds.c (interrupt_query): Ditto.
9080 * remote-mips.c (mips_error, mips_kill): Ditto.
9081 * ocd.c (interrupt_query): Ditto.
9082 * monitor.c (monitor_interrupt_query): Ditto.
9083 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
9084 * target.h: Update comment.
9086 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
9088 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9090 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
9091 default_double_format.
9092 * gdbarch.h, gdbarch.c: Re-generate.
9093 * findvar.c (floatformat_unknown): Delete variable definition.
9094 * doublest.h (floatformat_unknown): Delete variable declaration.
9096 2002-02-09 Jim Blandy <jimb@redhat.com>
9098 * stabsread.c (read_type): Add code to parse Sun's syntax for
9099 prototyped function types.
9101 2002-02-09 Andrew Cagney <ac131313@redhat.com>
9103 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
9104 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
9106 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9108 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
9109 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
9110 now _initialize_xcoffsolib gets called again and overrides the
9111 commands from solib.c in a native configuration.
9113 2002-02-09 Mark Kettenis <kettenis@gnu.org>
9115 * doublest.c (store_typed_floating): Don't try to return a value.
9118 2002-02-08 Jim Blandy <jimb@redhat.com>
9120 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
9121 is prototyped and has no arguments, print its argument list as
9124 2002-02-08 Chris Demetriou <cgd@broadcom.com>
9126 * MAINTAINERS (write-after-approval): Add myself.
9127 (paper-trail): I've escaped!
9129 2002-02-08 Christopher Faylor <cgf@redhat.com>
9131 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
9133 (_initialize_check_for_gdb_ini): Ditto.
9135 2002-02-08 Martin M. Hunt <hunt@redhat.com>
9137 * win32-nat.c (cygwin_pid_to_str): Fix typo.
9138 xaprintf -> xasprintf.
9140 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
9142 * win32-nat.c: Remove use of printf and sprintf functions.
9144 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
9146 * arm-tdep.c (arm_frame_chain_valid): Make static.
9147 (arm_push_arguments): Likewise.
9148 (arm_gdbarch_init): New function.
9149 (_initialize_arm_tdep): Call it.
9150 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
9151 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
9152 (FRAME_CHAIN_VALID): Delete.
9153 (arm_frame_chain_valid): Delete declaration.
9154 (PUSH_ARGUMENTS): Delete.
9155 (arm_push_arguments): Delete declaration.
9156 (CALL_DUMMY_P): Delete.
9158 2002-02-08 Andrew Cagney <ac131313@redhat.com>
9159 Corinna Vinschen <vinschen@redhat.com>
9161 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
9162 on builtin float types.
9164 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
9166 * utils.c: Include <curses.h> before "bfd.h".
9167 * tui/tui-hooks.c: Likewise.
9168 * tui/tui.c: Likewise.
9169 * tui/tuiCommand.c: Likewise.
9170 * tui/tuiData.c: Likewise.
9171 * tui/tuiDataWin.c: Likewise.
9172 * tui/tuiDisassem.c: Likewise.
9173 * tui/tuiGeneralWin.c: Likewise.
9174 * tui/tuiIO.c: Likewise.
9175 * tui/tuiLayout.c: Likewise.
9176 * tui/tuiRegs.c: Likewise.
9177 * tui/tuiSource.c: Likewise.
9178 * tui/tuiSourceWin.c: Likewise.
9179 * tui/tuiStack.c: Likewise.
9180 * tui/tuiWin.c: Likewise.
9182 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
9184 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
9185 to include space for pseudoregs as well. Update loops accordingly.
9186 (sh_fp_frame_init_saved_regs): Ditto.
9187 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
9189 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9191 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
9192 Add Richard Earnshaw to Arm maintainers.
9194 2002-02-07 Andrew Cagney <ac131313@redhat.com>
9196 * defs.h (warning_begin): Delete declaration.
9198 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
9201 2002-02-07 Michael Snyder <msnyder@redhat.com>
9203 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
9204 Logic bug, remove misplaced else.
9206 2002-02-07 Klee Dienes <klee@apple.com>
9208 * fork-inferior.c (fork_inferior): Add '!' to the list of
9209 characters that need to be quoted when building a string for the
9210 shell. Quote '!' specifically with a backslash, since CSH chokes
9211 when trying to evaluate "str!str".
9213 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
9215 * rdi-share/host.h: Only provide a typedef for bool if it is not
9218 2002-02-04 Michael Snyder <msnyder@redhat.com>
9220 * breakpoint.h (enum bptype): Add new overlay event bp type.
9221 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
9223 * breakpoint.c (create_internal_breakpoint): New function.
9224 (internal_breakpoint_number): Moved into create_internal_breakpoint.
9225 (create_longjmp_breakpoint): Use create_internal_breakpoint.
9226 (create_thread_event_breakpoint): Ditto.
9227 (create_solib_event_breakpoint): Ditto.
9228 (create_overlay_event_breakpoint): New function.
9229 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
9230 (update_breakpoints_after_exec): Delete and re-initialize
9231 overlay event breakpoints after an exec. Add FIXME comment
9232 about longjmp breakpoint.
9233 (print_it_typical): Ignore overlay event breakpoints.
9234 (print_one_breakpoint): Ditto.
9236 (bpstat_what): Do not stop for overlay event breakpoints.
9237 (delete_breakpoint): Don't delete overlay event breakpoints.
9238 (breakpoint_re_set_one): Delete the overlay event breakpoint.
9239 (breakpoint_re_set): Re-create overlay event breakpoint.
9241 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
9242 (overlay_manual_command): Disable overlay breakpoints.
9243 (overlay_off_command): Disable overlay breakpoints.
9245 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9247 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
9248 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
9249 to here from config/tm-arm.h.
9250 (coff_sym_is_thumb): Make static.
9251 (arm_elf_make_msymbol_special): New function.
9252 (arm_coff_make_msymbol_special): New function.
9253 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
9254 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
9255 (coff_sym_is_thumb): Delete declaration.
9256 (arm_elf_make_msymbol_special): Declare.
9257 (arm_coff_make_msymbol_special): Declare.
9258 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
9259 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
9261 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9263 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
9265 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
9267 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
9268 * gdbarch.c gdbarch.h: Regenerate.
9269 * arch-utils.c (default_print_float_info): New function.
9270 * arch-utils.h (default_print_float_info): Prototype it.
9271 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
9272 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
9273 (PRINT_FLOAT_INFO): Document it.
9275 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
9276 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
9277 (PRINT_FLOAT_INFO): Define.
9279 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
9281 * win32-nat.c (_initialize_check_for_gdb_ini):
9282 Add typecast to sprintf argument to suppress a warning.
9284 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
9286 * win32-nat.c (last_sig): Changed type of variable to target_signal,
9287 to allow easier handling of pass state.
9288 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
9289 that gives exception name and address.
9290 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
9291 and set last_sig value to ourstatus->value.sig. Some missing
9293 (child_continue): Correctly report continue_status.
9294 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
9295 TARGET_SIGNAL_0 (new default value).
9296 (child_resume): consider sig argument passed to decide if
9297 the exception should be passed to debuggee or not.
9299 2002-02-05 Michael Snyder <msnyder@redhat.com>
9301 * regcache.c (fetch_register): Call target_fetch_register
9302 only if we don't call FETCH_PSEUDO_REGISTER.
9303 (store_register): Call target_store_register only if we
9304 don't call STORE_PSEUDO_REGISTER.
9306 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
9308 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
9309 ELF_MAKE_MSYMBOL_SPECIAL.
9310 * gdbarch.c, gdbarch.h: Regenerate.
9311 * arch-utils.c (default_make_msymbol_special): New function.
9312 * arch-utils.h (default_make_msymbol_special): Export.
9313 * elfread.c (elf_symtab_read): Compile use of
9314 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
9316 * coffread.c (coff_symtab_read): Ditto, for
9317 COFF_MAKE_MSYMBOL_SPECIAL.
9319 2002-02-05 Jim Blandy <jimb@redhat.com>
9321 * solib-svr4.c (svr4_truncate_ptr): New function.
9322 (svr4_relocate_section_addresses): Do the address arithmetic with
9323 the appropriate truncation for target addresses, even when
9324 CORE_ADDR is larger than a target address.
9326 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9328 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
9331 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9333 * gdbserver/linux-low.c (kill_inferior): Remove commented out
9336 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9338 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
9340 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9342 * gdbserver/linux-low.c: Remove unused include files.
9344 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9346 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
9347 (read_inferior_memory): Use it.
9348 (write_inferior_memory): Likewise.
9350 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9352 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
9353 grubbing through sys_errlist.
9355 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
9357 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
9359 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9360 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
9362 2002-02-04 Andrew Cagney <ac131313@redhat.com>
9364 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
9365 (do_sfunc, set_cmd_sfunc): New functions.
9367 * command.h (struct cmd_list_element): Add field func.
9368 * cli/cli-decode.h (struct cmd_list_element): Ditto.
9369 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
9370 * cli/cli-decode.h: Ditto.
9372 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
9373 (help_all, help_cmd_list): Ditto.
9374 (find_cmd, complete_on_cmdlist): Ditto.
9375 * top.c (execute_command): Ditto.
9377 * cli/cli-setshow.c (do_setshow_command): Call func instead of
9380 * infcmd.c (notice_args_read): Fix function signature.
9382 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
9383 * cli/cli-decode.c (add_set_cmd): Ditto.
9384 * utils.c (initialize_utils): Ditto.
9385 * maint.c (_initialize_maint_cmds): Ditto.
9386 * infrun.c (_initialize_infrun): Ditto.
9387 * demangle.c (_initialize_demangler): Ditto.
9388 * remote.c (add_packet_config_cmd): Ditto.
9389 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9390 * cris-tdep.c (_initialize_cris_tdep): Ditto.
9391 * proc-api.c (_initialize_proc_api): Ditto.
9392 * kod.c (_initialize_kod): Ditto.
9393 * valprint.c (_initialize_valprint): Ditto.
9394 * top.c (init_main): Ditto.
9395 * infcmd.c (_initialize_infcmd): Ditto.
9396 * corefile.c (_initialize_core): Ditto.
9397 * arm-tdep.c (_initialize_arm_tdep): Ditto.
9398 * arch-utils.c (initialize_current_architecture): Ditto.
9399 (_initialize_gdbarch_utils): Ditto.
9400 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
9402 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
9403 * wince.c (_initialize_inftarg): Ditto.
9404 * symfile.c (_initialize_symfile): Ditto.
9405 * mips-tdep.c (_initialize_mips_tdep): Ditto.
9406 * language.c (_initialize_language): Ditto.
9407 * arc-tdep.c (_initialize_arc_tdep): Ditto.
9409 2002-02-04 Michael Snyder <msnyder@redhat.com>
9411 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
9413 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9415 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
9416 Add rules for building the register data files.
9418 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9420 * regformats/regdat.sh: Add braces to the definition of
9421 expedite_regs_${arch}.
9423 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
9425 * regformats/regdef.h (struct reg): Add comment describing the
9426 requirements for offset and size fields.
9428 2002-02-04 Andreas Schwab <schwab@suse.de>
9430 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
9431 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
9433 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
9435 * gdbarch.sh (copyright): Update years in generated header.
9436 (SMASH_TEXT_ADDRESS): Add rule.
9437 * gdbarch.h, gdbarch.c: Re-generate.
9438 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
9439 * dbxread.c: Likewise.
9440 * dwarfread.c: Likewise.
9441 * elfread.c: Likewise.
9442 * somread.c: Likewise.
9444 * arm-tdep.c (arm_smash_text_address): New function.
9445 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
9447 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
9449 Add support for hardware watchpoints on win32 native.
9450 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
9451 CONTEXT_DEBUG_REGISTERS.
9452 (dr variable): New variable. Static array containing a local copy
9454 (debug_registers_changed): New variable. Reflects when debug registers
9455 are changed and need to be written to inferior.
9456 (debug_registers_used): New variable. Reflects when any debug register
9457 was set, used when new threads are created.
9458 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
9460 (thread_rec): Set dr array if id is the thread of current_event .
9461 (child_continue, child_resume): Change the debug registers for all
9462 threads if debug_registers_changed.
9463 (child_add_thread): Change the debug registers if debug_registers_used.
9464 * config/i386/cygwin.mh: Add use of i386-nat.o file.
9465 Link nm.h to new nm-cygwin.h file.
9466 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
9467 of hardware registers.
9469 2002-02-03 Andrew Cagney <ac131313@redhat.com>
9471 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
9472 Restore behavour broken by 2002-01-20 Andrew Cagney
9473 <ac131313@redhat.com> IEEE_FLOAT removal.
9475 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9477 * c-valprint.c (c_val_print): Pass a proper valaddr to
9478 cp_print_class_method.
9479 * valops.c (search_struct_method): If there is only one method
9480 and args is NULL, return that method.
9482 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9484 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
9485 accessing tag_name directly.
9487 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9489 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
9490 of accessing tag_name directly.
9492 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
9495 * gdbtypes.c (replace_type): New function.
9496 * gdbtypes.h (replace_type): Add prototype.
9497 * stabsread.c (read_type): Use replace_type.
9499 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
9501 * Makefile.in (memattr.o): Add missing dependencies rule.
9503 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
9505 * breakpoint.c (break_at_finish_command): Really export.
9506 (break_at_finish_at_depth_command): Ditto.
9507 (tbreak_at_finish_command): Ditto.
9508 * hppa-tdep.c: Include completer.h.
9509 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
9510 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
9512 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9514 * utils.c (do_write): New function.
9515 (error_stream): Rewrite combining the code from error_begin and
9517 (verror): Rewrite using error_stream.
9518 (error_begin): Delete function.
9520 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9522 * utils.c (error_begin): Make static.
9523 * defs.h (error_begin): Delete declaration.
9525 * linespec.c (cplusplus_error): Replace cplusplus_hint.
9526 (decode_line_1): Use cplusplus_error instead of error_begin,
9527 cplusplus_hint and return_to_top_level.
9528 * coffread.c (coff_symfile_read): Use error instead of error_begin
9529 and return_to_top_level.
9530 * infrun.c (default_skip_permanent_breakpoint): Ditto.
9532 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9534 * language.h (type_error, range_error): Make string parameter
9536 * language.c (warning_pre_print): Delete extern declaration.
9537 * dwarfread.c (warning_pre_print): Ditto.
9538 * language.c (type_error, range_error): Rewrite to use verror and
9539 vwarning instead of warning_begin.
9541 2002-02-01 Michael Snyder <msnyder@redhat.com>
9543 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
9544 (set_ignore_count): Move misplaced comment back where it belongs.
9546 2002-02-01 Andrew Cagney <ac131313@redhat.com>
9548 * command.h (NO_FUNCTION): Delete macro.
9549 * cli/cli-decode.h (NO_FUNCTION): Ditto.
9550 * top.c (execute_command): Replace NO_FUNCTION with NULL.
9551 * tracepoint.c (_initialize_tracepoint): Ditto.
9552 * cli/cli-decode.c (add_set_cmd): Ditto.
9553 * cli/cli-cmds.c (init_cli_cmds): Ditto.
9555 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9557 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
9558 Update ``this'' pointer when calling virtual functions.
9560 2002-02-01 Michael Snyder <msnyder@redhat.com>
9562 * breakpoint.c (create_temp_exception_breakpoint): Delete.
9563 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
9565 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
9567 * regformats/reg-arm.dat: New file.
9568 * regformats/reg-i386.dat: New file.
9569 * regformats/reg-ia64.dat: New file.
9570 * regformats/reg-m68k.dat: New file.
9571 * regformats/reg-mips.dat: New file.
9572 * regformats/reg-ppc.dat: New file.
9573 * regformats/reg-sh.dat: New file.
9574 * regformats/regdef.h: New file.
9575 * regformats/regdat.sh: New file.
9577 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
9579 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
9580 (arm_frame_args_address, arm_frame_locals_address): New functions.
9581 (arm_frame_num_args): New function.
9582 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
9583 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
9584 (FRMA_NUM_ARGS): Call arm_frame_num_args.
9586 2002-01-31 Michael Snyder <msnyder@redhat.com>
9588 * breakpoint.c (break_at_finish_command): Export.
9589 (break_at_finish_at_depth_command): Export.
9590 (tbreak_at_finish_command): Export.
9591 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
9592 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
9593 "tbreak" commands, which are HPPA specific.
9595 * printcmd.c (disassemble_command): Remove an ancient
9596 artifact of an old merge.
9598 * symfile.h (enum overlay_debugging_state):
9599 Define enum constant values for overlay mode.
9600 * symfile.c (overlay_debugging): Use enums instead of literals.
9601 (overlay_is_mapped, overlay_auto_command,
9602 overlay_manual_command): Ditto.
9604 * breakpoint.c (insert_breakpoints, remove_breakpoint,
9605 breakpoint_here_p, breakpoint_inserted_here_p,
9606 breakpoint_thread_match, bpstat_stop_status,
9607 describe_other_breakpoints, check_duplicates, clear_command):
9608 Coding standard fixes.
9610 * target.c (target_xfer_memory): Add spaces, coding standard.
9611 (do_xfer_memory): Add missing line to trust-readonly
9612 code: check bfd SEC_READONLY flag for section.
9614 2002-01-31 Andrew Cagney <ac131313@redhat.com>
9616 * PROBLEMS: Fix typo, 5.1->5.1.1.
9618 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
9620 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
9621 data symbols, since we search based on textlow and texthigh.
9622 (find_pc_sect_symtab): Likewise.
9624 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9626 * defs.h (vwarning): Declare.
9627 * utils.c (vwarning): New function.
9628 (warning): Call vwarning.
9629 (warning_begin): Delete function.
9631 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
9632 the warning message.
9633 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
9636 2002-01-30 Michael Snyder <msnyder@redhat.com>
9638 * NEWS: Mention "set trust-readonly-sections" command.
9639 Mention generate-core-file command.
9641 2002-01-15 Michael Snyder <msnyder@redhat.com>
9643 * target.c: New command, "set trust-readonly-sections on".
9644 (do_xfer_memory): Honor the suggestion to trust readonly sections
9645 by reading them from the object file instead of from the target.
9646 (initialize_targets): Register command "set trust-readonly-sections".
9648 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9650 * parse.c (target_map_name_to_register): Simplify, search regs and
9651 pseudo-regs using a single loop.
9653 2002-01-30 Andrew Cagney <ac131313@redhat.com>
9655 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
9657 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
9659 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
9660 * config/i386/i386v42mp.mh: Add i387-nat.o .
9661 * i386v4-nat.c: Include i387-nat.h.
9662 (supply_fpregset): Use i387_supply_fsave.
9663 (fill_fpregset): Use i387_fill_fsave.
9665 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
9667 * arm-tdep.c (arm_call_dummy_words): Define.
9668 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
9669 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
9670 (CALL_DUMMY_WORDS): Define.
9671 (arm_call_dummy_words): Declare.
9672 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
9673 (arm_linux_call_dummy_words): Declare.
9675 2002-01-30 Andreas Schwab <schwab@suse.de>
9677 * m68klinux-nat.c: Fix last change to use regcache_collect
9678 instead of referencing registers[] directly.
9680 2002-01-29 Andrew Cagney <ac131313@redhat.com>
9682 * parse.c (target_map_name_to_register): Delete code wrapped in
9683 #ifdef REGISTER_NAME_ALIAS_HOOK.
9685 2002-01-28 Michael Snyder <msnyder@redhat.com>
9687 * regcache.c (legacy_read_register_gen): Need to be able to
9688 read pseudo-register as well as real register.
9689 (legacy_write_register_gen): Ditto.
9691 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9693 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9694 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
9695 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
9696 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
9697 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
9698 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
9699 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
9700 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
9701 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
9702 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
9703 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
9704 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
9705 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
9706 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
9707 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
9708 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
9709 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
9710 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
9711 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
9712 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
9714 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9716 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
9717 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
9718 (initialize_current_architecture): Update target_byte_order using
9719 information from BFD.
9720 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
9721 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
9723 2002-01-28 Andrew Cagney <ac131313@redhat.com>
9725 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
9726 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
9728 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
9729 #ifdef INVALID_FLOAT.
9730 * infcmd.c (do_registers_info): Ditto.
9731 * values.c (unpack_double): Ditto. Add comment.
9733 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
9734 already commented out.
9736 2002-01-26 Andreas Schwab <schwab@suse.de>
9738 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
9739 * m68klinux-nat.c: Update ptrace interface for fetching/storing
9740 registers and add support for PTRACE_GETREGS.
9742 2002-01-24 Andrew Cagney <ac131313@redhat.com>
9744 GDB 5.1.1 released from 5.1 branch.
9745 * NEWS: Add 5.1.1 news.
9746 * README: Sync with 5.1 branch.
9748 2002-01-23 Fred Fish <fnf@redhat.com>
9750 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
9751 stabstring on initial malloc. Reallocing will copy it for us,
9754 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9756 * Makefile.in (hpread_h): Delete.
9757 (HFILES_NO_SRCDIR): Remove hpread.h.
9758 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
9759 (hpread.o): Update dependencies.
9760 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
9762 * hp-psymtab-read.c: Remove file.
9763 * hp-symtab-read.c: Remove file.
9764 * hpread.h: Remove file.
9766 * hpread.c: Merge all contents of hp-psymtab-read.c,
9767 hp-symtab-read.c and hpread.h into this file, as it was prior to
9770 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
9771 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
9772 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
9773 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
9775 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
9777 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
9778 fill_gregset): Call gdbarch_tdep() just once, assign result to
9779 variable and use that, instead of calling the function several
9782 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
9784 * configure.host: Accept sparcv9 as alias for sparc64.
9785 * configure.tgt: Likewise.
9787 2002-01-22 Kevin Buettner <kevinb@redhat.com>
9789 * solib-aix5.c (build_so_list_from_mapfile)
9790 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
9791 arguments is not reversed.
9792 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
9793 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
9795 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
9797 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
9798 modified version of obsolete sh_fetch_pseudo_register.
9799 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
9800 (sh4_register_read): New function.
9801 (sh_pseudo_register_write): New function. Renamed and modified
9802 version of obsolete sh_store_pseudo_register.
9803 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
9804 (sh4_register_write): New function.
9805 (sh_gdbarch_init): Remove setting of gdbarch function
9806 fetch_pseudo_register and store_pseudo_register. Remove setting of
9807 register_convert_to_raw, register_convert_to_virtual,
9808 register_convertible.
9809 (sh_sh4_register_convertible): Delete. No longer needed. All is
9810 taken care by architecture specific functions
9811 register_read/register_write.
9812 (sh_sh4_register_convert_to_virtual): Make static.
9813 (sh_sh4_register_convert_to_raw): Ditto.
9815 2002-01-22 Andrew Cagney <ac131313@redhat.com>
9817 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
9818 (floatformat_is_nan, floatformat_mantissa): Ditto.
9820 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
9821 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
9822 builtin_type_ieee_double_little,
9823 builtin_type_ieee_double_littlebyte_bigword,
9824 builtin_type_m68881_ext, builtin_type_i960_ext,
9825 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
9826 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
9827 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
9828 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
9830 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
9832 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
9833 parameter. Set frameless flag if it exists and depended of
9834 whether the scanned function is frameless or not.
9835 (xstormy16_skip_prologue): If function is frameless, return
9836 result of xstormy16_scan_prologue().
9837 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
9840 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
9842 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
9843 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
9844 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
9845 sh_sh4_register_byte, sh_sh4_register_raw_size,
9846 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
9847 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
9848 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
9849 sh_store_pseudo_register, sh_do_pseudo_register): Call
9850 gdbarch_tdep() just once, assign result to variable and use that,
9851 instead of calling the function several times.
9853 2002-01-20 Mark Kettenis <kettenis@gnu.org>
9855 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
9856 macros instead of LAST_FPU_CTRL_REGNUM.
9857 (store_register): Likewise.
9859 2002-01-21 Jim Blandy <jimb@redhat.com>
9861 * infcmd.c (run_command): Check that the `exec' target layer's BFD
9862 is up-to-date before running the program, not just when a program
9865 2002-01-21 Fred Fish <fnf@redhat.com>
9867 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
9868 when we have found all instructions we are looking for.
9870 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9872 * arm-tdep.c (arm_register_name): New function.
9873 (arm_registers_names): Make static.
9874 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
9875 (arm_register_name): Declare.
9876 (REGISTER_NAME): Use it.
9878 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
9879 Kevin Buettner <kevinb@redhat.com>
9881 Convert arm targets to new FRAME interface.
9882 * arm-tdep.c (struct frame_extra_info): Remove fsr.
9883 (arm_frame_find_save_regs): Delete.
9884 (arm_frame_init_saved_regs): New.
9885 (arm_init_extra_frame_info): Alloacte saved_regs as required.
9886 Allocate extra_info as required. Convert all uses of fsr.regs
9887 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
9889 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
9890 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
9891 (check_prologue_cache, save_prologue_cache): Likewise.
9892 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
9893 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
9894 (FRAME_FIND_SAVED_REGS): Delete.
9895 (arm_frame_find_saved_regs): Delete prototype.
9896 (arm_frame_init_saved_regs): New prototype.
9897 (FRAME_INIT_SAVED_REGS): Define.
9899 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9901 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
9903 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9905 From Jeff Law <law@redhat.com>:
9906 * infttrace.c: Include <sys/pstat.h>.
9907 (child_pid_to_exec_file): Revamp. Use pstat call to get the
9908 exec file if the ttrace equivalent fails.
9910 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9912 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
9913 (closeLogFile): Ditto.
9915 2002-01-20 Michael Chastain <mec@shout.net>
9917 * top.c (print_gdb_version): Bump copyright year to 2002.
9919 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9921 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
9922 Zannoni and Eli Zaretskii.
9924 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9926 * buildsym.c: Update copyright years.
9927 * c-typeprint.c: Likewise.
9928 * dwarf2read.c: Likewise.
9929 * f-typeprint.c: Likewise.
9930 * gdbtypes.c: Likewise.
9931 * gdbtypes.h: Likewise.
9932 * hp-symtab-read.c: Likewise.
9933 * hpread.c: Likewise.
9934 * mdebugread.c: Likewise.
9935 * p-typeprint.c: Likewise.
9937 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9939 * remote-sim.c (gdbsim_open): Simplify code testing the macro
9940 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
9941 byte-order selectable.
9942 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
9943 * arch-utils.c: Ditto.
9944 (set_endian): Ditto.
9945 (set_endian_from_file): Ditto.
9946 * gdbserver/low-sim.c (create_inferior): Ditto.
9947 * gdbarch.sh: Ditto.
9948 * gdbarch.h: Re-generate.
9949 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9950 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
9951 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
9952 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9953 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9954 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
9955 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
9956 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
9958 * config/mips/tm-wince.h: Remove #undef of macro
9959 TARGET_BYTE_ORDER_SELECTABLE.
9960 * config/sh/tm-wince.h: Ditto.
9962 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9964 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
9965 member function fields. Add accessor macro
9966 TYPE_FN_FIELD_ARTIFICIAL.
9967 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
9968 * c-typeprint.c (c_type_print_base): Skip artificial member
9971 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9973 * f-typeprint.c: Delete unused function f_type_print_args.
9974 * p-typeprint.c: Delete unused function pascal_type_print_args.
9976 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
9978 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
9979 comment. Add ``artificial'' to ``union field_location''.
9981 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
9983 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
9984 * mdebugread.c (parse_symbol): Likewise.
9985 * stabsread.c (define_symbol): Likewise.
9986 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
9987 initializing TYPE_FIELD_BITPOS to n (obsolete).
9988 (hpread_doc_function_type): Likewise.
9989 * hpread.c (hpread_function_type): Likewise.
9991 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9993 * configure.in (host_makefile_frag): Only require a host makefile
9994 fragment when a native build.
9995 * configure: Re-generate.
9997 2002-01-20 Andrew Cagney <ac131313@redhat.com>
9999 * doublest.h (floatformat_from_type): Declare.
10000 * doublest.c (floatformat_from_type): New function.
10001 (convert_typed_floating): Use.
10003 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
10004 call to function floatformat_from_type.
10006 * gdbarch.sh (IEEE_FLOAT): Delete.
10007 * gdbarch.h, gdbarch.c: Re-generate.
10008 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
10009 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
10010 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
10011 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
10012 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
10013 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
10014 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
10015 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
10016 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
10017 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
10018 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
10019 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
10021 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
10022 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10023 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10024 * sh-tdep.c (sh_gdbarch_init): Ditto.
10025 * mips-tdep.c (mips_gdbarch_init): Ditto.
10026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10027 * cris-tdep.c (cris_gdbarch_init): Ditto.
10029 2002-01-20 Jiri Smid <smid@suse.cz>
10031 * configure.host, configure.tgt: Support x86-64.
10032 * NEWS: Note new target x86-64.
10034 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
10035 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
10036 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
10037 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
10038 x86-64-linux-nat.o): Fix dependencies.
10040 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10042 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
10043 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
10044 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
10045 * config/sparc/xm-sun4os4.h: Delete file.
10046 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
10048 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10050 * config/sparc/sparclynx.mh (XM_FILE): Delete.
10051 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
10052 * config/m68k/m68klynx.mh (XM_FILE): Delete.
10053 * config/i386/i386lynx.mh (XM_FILE): Delete.
10054 * config/rs6000/xm-rs6000ly.h: Delete file.
10055 * config/sparc/xm-sparclynx.h: Delete file.
10056 * config/m68k/xm-m68klynx.h: Delete file.
10057 * config/i386/xm-i386lynx.h: Delete file.
10058 * config/xm-lynx.h: Delete file.
10059 * config/djgpp/fnchange.lst: Update.
10061 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10063 * alpha-tdep.c (alpha_register_byte): New function.
10064 (alpha_register_raw_size): Ditto.
10065 (alpha_register_virtual_size): Ditto.
10066 (alpha_skip_prologue_internal): Renamed from
10067 alpha_skip_prologue.
10068 (alpha_skip_prologue): New version that calls
10069 alpha_skip_prologue_internal.
10070 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
10071 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
10072 second argument from alpha_skip_prologue.
10073 (REGISTER_BYTE): Use alpha_register_byte.
10074 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
10075 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
10076 (FRAMELESS_FUNCTION_INVOCATION): Use
10077 generic_frameless_function_invocation_not.
10078 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
10079 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
10081 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10083 * config/mips/xm-news-mips.h: Delete file.
10084 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
10086 * config/m88k/xm-m88k.h: Delete file.
10087 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
10088 * config/m88k/xm-delta88v4.h: Ditto.
10089 * config/m88k/xm-delta88.h: Ditto.
10091 * config/alpha/xm-fbsd.h: Delete file.
10092 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
10094 * config/sparc/xm-sparc.h: Delete file.
10095 * Makefile.in (xm-sun4os4.h): Delete dependency.
10096 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
10097 * config/sparc/xm-sun4os4.h: Ditto.
10098 * config/sparc/xm-linux.h: Ditto.
10100 * config/i386/xm-windows.h: Delete file.
10102 2002-01-19 Andrew Cagney <ac131313@redhat.com>
10104 * utils.c: Include <sys/param.h> for MAXPATHLEN.
10105 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
10107 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10109 * alpha-tdep.c (alpha_call_dummy_words): New.
10110 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
10111 (CALL_DUMMY_P): Define.
10112 (CALL_DUMMY_WORDS): Define.
10113 (SIZEOF_CALL_DUMMY_WORDS): Define.
10115 2002-01-19 Per Bothner <per@bothner.com>
10117 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
10118 isn't NULL, which can happen with some gcj-3.x-produced code.
10120 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
10122 * alpha-tdep.c (alpha_register_virtual_type): New function.
10123 (alpha_init_frame_pc_first): Ditto.
10124 (alpha_fix_call_dummy): Ditto.
10125 (alpha_store_struct_return): Ditto.
10126 (alpha_extract_struct_value_address): Ditto.
10127 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
10128 alpha_register_virtual_type.
10129 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
10130 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
10131 alpha_extract_struct_value_address.
10132 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
10133 (INIT_FRAME_PC): Use init_frame_pc_noop.
10134 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
10136 2002-01-19 Mark Kettenis <kettenis@gnu.org>
10138 * i386gnu-nat.c: Include "i386-tdep.h".
10139 (fetch_fpregs): Simplify code dealing with uninitialized floating
10140 point states such that it doesn't require FP7_REGNUM.
10142 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10144 * alpha-tdep.c (frame_extra_info): New.
10145 (alpha_find_saved_regs): Make static. Use
10147 (alpha_frame_init_saved_regs): New function.
10148 (alpha_frame_saved_pc): Use frame->extra_info.
10149 (temp_saved_regs): Don't declare as struct frame_saved_regs.
10150 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
10151 (init_extra_frame_info): Rename to...
10152 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
10153 (alpha_print_extra_frame_info): New function.
10154 (alpha_frame_locals_address): Ditto.
10155 (alpha_frame_args_address): Ditto.
10156 (alpha_pop_frame): Use frame->extra_info.
10157 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
10158 alpha_frame_args_address.
10159 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
10160 (alpha_find_saved_regs): Remove prototype.
10161 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
10162 (EXTRA_FRAME_INFO): Remove.
10163 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
10164 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
10166 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10168 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
10169 (alpha_cannot_fetch_register): Ditto.
10170 (alpha_cannot_store_register): Ditto.
10171 (alpha_register_convertible): Ditto.
10172 (alpha_use_struct_convention): Ditto.
10173 * config/alpha/tm-alpha.h: Update copyright years.
10174 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
10175 (INNER_THAN): Use core_addr_lessthan.
10176 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
10177 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
10178 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
10179 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
10180 (FRAME_CHAIN): Remove unnecessary cast.
10182 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10184 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
10187 2002-01-18 Andrew Cagney <ac131313@redhat.com>
10189 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
10190 * monitor.c, remote-array.c, remote-bug.c: Ditto.
10191 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
10192 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
10193 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
10194 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
10195 * x86-64-linux-nat.c: Ditto.
10197 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10199 * alpha-tdep.c (alpha_register_name): New function.
10200 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
10201 (REGISTER_NAME): Define.
10203 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10205 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
10207 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10209 * alpha-tdep.c: Update copyright years.
10210 (alpha_next_pc): New function.
10211 (alpha_software_single_step): Ditto.
10212 * config/alpha/tm-alpha.h: Add prototype for
10213 alpha_software_single_step.
10215 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
10217 * alphabsd-nat.c: Update copyright years.
10218 (fill_gregset): Use regcache_collect.
10219 (fill_fpregset): Likewise.
10220 (fetch_inferior_registers): Only fetch integer registers
10221 if requested to do so.
10222 (store_inferior_registers): Only store integer registers
10223 if requested to do so.
10225 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10227 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
10228 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
10229 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
10230 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
10231 * config/alpha/fbsd.mh (XDEPFILES): Delete.
10232 * config/arm/linux.mh (XDEPFILES): Delete.
10233 * config/arm/nbsd.mh (XDEPFILES): Delete.
10234 * config/i386/i386dgux.mh (XDEPFILES): Delete.
10235 * config/i386/i386sol2.mh (XDEPFILES): Delete.
10236 * config/i386/i386m3.mh (XDEPFILES): Delete.
10237 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
10238 * config/i386/i386gnu.mh (XDEPFILES): Delete.
10239 * config/i386/fbsd.mh (XDEPFILES): Delete.
10240 * config/i386/i386bsd.mh (XDEPFILES): Delete.
10241 * config/i386/i386sco5.mh (XDEPFILES): Delete.
10242 * config/i386/i386v4.mh (XDEPFILES): Delete.
10243 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
10244 * config/i386/i386sco4.mh (XDEPFILES): Delete.
10245 * config/i386/i386aix.mh (XDEPFILES): Delete.
10246 * config/i386/go32.mh (XDEPFILES): Delete.
10247 * config/i386/cygwin.mh (XDEPFILES): Delete.
10248 * config/i386/i386lynx.mh (XDEPFILES): Delete.
10249 * config/i386/i386mach.mh (XDEPFILES): Delete.
10250 * config/i386/i386v32.mh (XDEPFILES): Delete.
10251 * config/i386/linux.mh (XDEPFILES): Delete.
10252 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
10253 * config/i386/ncr3000.mh (XDEPFILES): Delete.
10254 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
10255 * config/i386/i386sco.mh (XDEPFILES): Delete.
10256 * config/i386/i386v.mh (XDEPFILES): Delete.
10257 * config/i386/nbsd.mh (XDEPFILES): Delete.
10258 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
10259 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
10260 * config/i386/symmetry.mh (XDEPFILES): Delete.
10261 * config/i386/obsd.mh (XDEPFILES): Delete.
10262 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
10263 * config/ia64/linux.mh (XDEPFILES): Delete.
10264 * config/ia64/aix.mh (XDEPFILES): Delete.
10265 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
10266 * config/m68k/dpx2.mh (XDEPFILES): Delete.
10267 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
10268 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
10269 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
10270 * config/m68k/linux.mh (XDEPFILES): Delete.
10271 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
10272 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
10273 * config/m68k/nbsd.mh (XDEPFILES): Delete.
10274 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
10275 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
10276 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
10277 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
10278 * config/m88k/delta88.mh (XDEPFILES): Delete.
10279 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
10280 * config/m88k/m88k.mh (XDEPFILES): Delete.
10281 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
10282 * config/mips/linux.mh (XDEPFILES): Delete.
10283 * config/mips/irix6.mh (XDEPFILES): Delete.
10284 * config/mips/irix5.mh (XDEPFILES): Delete.
10285 * config/mips/irix4.mh (XDEPFILES): Delete.
10286 * config/mips/irix3.mh (XDEPFILES): Delete.
10287 * config/mips/decstation.mh (XDEPFILES): Delete.
10288 * config/mips/mipsm3.mh (XDEPFILES): Delete.
10289 (NATDEPFILES): Move core-aout.o to here.
10290 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
10291 * config/pa/hpux1020.mh (XDEPFILES): Delete.
10292 * config/pa/hppabsd.mh (XDEPFILES): Delete.
10293 * config/pa/hppahpux.mh (XDEPFILES): Delete.
10294 * config/pa/hpux11w.mh (XDEPFILES): Delete.
10295 * config/pa/hppaosf.mh (XDEPFILES): Delete.
10296 * config/pa/hpux11.mh (XDEPFILES): Delete.
10297 * config/powerpc/aix.mh (XDEPFILES): Delete.
10298 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
10299 * config/powerpc/linux.mh (XDEPFILES): Delete.
10300 * config/romp/rtbsd.mh: Rename XDEPFILES.
10301 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
10302 * config/rs6000/aix4.mh (XDEPFILES): Delete.
10303 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
10304 * config/s390/s390.mh (XDEPFILES): Delete.
10305 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
10306 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
10307 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
10308 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
10309 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
10310 * config/sparc/nbsd.mh (XDEPFILES): Delete.
10311 * config/sparc/linux.mh (XDEPFILES): Delete.
10312 * config/vax/vaxult.mh (XDEPFILES): Delete.
10313 * config/vax/vaxult2.mh (XDEPFILES): Delete.
10314 * Makefile.in (DEPFILES): Remove XDEPFILES.
10316 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10318 * utils.c (internal_verror): Fix comments, default is yes not no.
10319 Update queries to match. Default to quit and dump core.
10321 2002-01-17 Andrew Cagney <ac131313@redhat.com>
10323 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
10325 * defs.h, event-top.c, gdbcmd.h: Ditto.
10326 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
10327 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
10328 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
10329 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
10330 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
10331 * mi/mi-main.c:Ditto.
10333 * stack.c, symfile.c: Update copyright.
10335 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10337 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
10338 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
10339 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
10340 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
10342 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
10344 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
10345 * gdbserver/low-lynx.c (myattach): Likewise.
10346 * gdbserver/low-nbsd.c (myattach): Likewise.
10347 * gdbserver/low-sim.c (myattach): Likewise.
10348 * gdbserver/low-sparc.c (myattach): Likewise.
10349 * gdbserver/low-sun3.c (myattach): Likewise.
10351 * gdbserver/low-linux.c (myattach): New function.
10353 * gdbserver/server.c (attach_inferior): New function.
10354 (main): Handle "--attach".
10356 2002-01-16 Andrew Cagney <ac131313@redhat.com>
10358 * MAINTAINERS (language support): Daniel Jacobwitz is C++
10361 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
10363 * c-typeprint.c (is_type_conversion_operator): Add additional
10364 check for non-conversion operators.
10366 2002-01-15 Michael Snyder <msnyder@redhat.com>
10368 * linux-proc.c: Add "info proc" command, a la procfs.c.
10369 (read_mapping): New function, abstract and re-use code.
10370 (linux_find_memory_regions): Use new func read_mapping.
10371 (linux_info_proc_cmd): New function, implement "info proc".
10372 (_initialize_linux_proc): Add new command "info proc".
10374 2002-01-15 Michael Snyder <msnyder@redhat.com>
10376 * symfile.c (generic_load): Use bfd_map_over_sections method
10377 instead of manipulating bfd structure members directly.
10378 (add_section_size_callback): New function, bfd sections callback
10379 used by generic_load.
10380 (load_sections_callback): New function, bfd sections callback
10381 used by generic_load.
10383 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
10385 [Based on work by Jim Blandy]
10386 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
10387 (builtin_type_vec128): Export.
10388 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
10390 (builtin_type_vec128): New builtin type for 128 bit vector
10392 (build_gdbtypes): Initialize builtin_type_v16qi and
10393 builtin_type_v8hi. Create the vec128 register builtin type
10395 (build_builtin_type_vec128): New function.
10396 (_initialize_gdbtypes): Register builtin_type_v16qi and
10397 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
10398 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
10399 AltiVec register to new builtin type.
10401 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
10403 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
10406 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10408 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
10409 CLEAN_UP_REGISTER_VALUE.
10410 * regcache.c (supply_register): Update only call.
10412 2002-01-14 Andrew Cagney <ac131313@redhat.com>
10414 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10415 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10416 a29k-*-vxworks* targets as obsolete.
10418 2002-01-14 Michael Snyder <msnyder@redhat.com>
10420 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
10421 until we can resolve portability issues.
10422 * gregset.h: Remove references to fpxregs.
10423 * gcore.c (gcore_command): Initialize note_sec to NULL.
10425 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10427 * signals.c (target_signal_to_name): Rewrite. Only use
10428 signals[].name when in bounds and non-NULL.
10430 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10432 From Petr Ledvina <ledvinap@kae.zcu.cz>:
10433 * signals.c (target_signal_to_name): Verify that SIG is within the
10434 bounds of the signals array.
10436 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10438 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
10440 2002-01-13 Keith Seitz <keiths@redhat.com>
10442 * stack.c (print_frame_info_base): Print the frame's pc
10443 only if when print_frame_info_listing_hook is not defined.
10445 2002-01-13 Keith Seitz <keiths@redhat.com>
10447 * varobj.c (varobj_set_value): Make sure that there were no
10448 errors evaluating the object before attempting to set its
10450 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
10451 so this offset adjustment is no longer necessary.
10452 (create_child): Don't set the error flag if the child is
10453 a CPLUS_FAKE_CHILD.
10454 (value_of_child): If value_fetch_lazy fails, return NULL
10455 so that callers will be notified that an error occurred.
10456 (c_value_of_variable): Delay check of variable's validity
10457 until later. We actually want all structs and unions to have
10459 Do not return "???" for variables which could not be evaluated.
10460 This error condition must be returned to the caller so that it
10461 can get the error condition from gdb.
10462 (cplus_name_of_child): Adjust index for vptr before figuring
10463 out the name of the child.
10464 (cplus_value_of_child): If a child's (real) parent is not valid,
10465 don't even bother trying to give a value for it. Just return
10466 an error. Change all instances in this function.
10467 (cplus_type_of_child): If our parent is one of the "fake"
10468 parents, we need to get at the type of the real parent, and
10469 derive the child's true type using this information.
10471 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10473 From 2002-01-09 John Marshall <johnm@falch.net>:
10474 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
10475 sources.redhat.com, and tweak some related URLs which had
10476 suffered from linkrot.
10478 2002-01-13 Andrew Cagney <ac131313@redhat.com>
10481 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
10482 structures passed in registers.
10484 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
10486 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
10487 white space which prevented compilation. Reported by DSK
10488 <dsk@student.unsw.edu.au>.
10490 2002-01-11 Michael Snyder <msnyder@redhat.com>
10492 * symfile.c (build_section_addr_info_from_section_tab):
10493 Use bfd access method instead of manipulating bfd directly.
10494 (syms_from_objfile): Ditto.
10495 (simple_overlay_update_1): Ditto.
10496 (simple_overlay_update): Ditto.
10497 (generic_load): Ditto.
10498 (overlay_unmapped_address): FIXME comment, bfd access methods.
10499 (sections_overlap): FIXME comment, bfd access methods.
10500 (pc_in_mapped_range): FIXME comment, bfd access methods.
10501 (pc_in_unmapped_range): FIXME comment, bfd access methods.
10502 (section_is_mapped): FIXME comment, bfd access methods.
10503 (section_is_overlay): FIXME comment, bfd access methods.
10505 * symfile.c (generic_load): Whitespace and long line cleanups.
10506 Remove duplicate variable, change several local variables to
10507 more appropriate data types.
10508 (print_transfer_performance): Use %lu instead of %ld for ulongs.
10510 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10512 From Peter Schauer:
10513 * language.c (longest_local_hex_string_custom): Use phex_nz to
10514 convert NUM to a hex string.
10516 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
10518 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
10520 Update Copyright year.
10522 2002-01-12 Andrew Cagney <ac131313@redhat.com>
10524 * language.c (longest_raw_hex_string): Delete unused function.
10526 2002-01-11 Petr Sorfa <petrs@caldera.com>
10528 * MAINTAINERS (write-after-approval): Add myself.
10529 * dwarf2read.c (read_tag_string_type): Handling of
10531 (read_tag_string_type): FORTRAN fix to prevent propagation of
10533 (set_cu_language): Handling of DW_LANG_Fortran95
10535 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
10537 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
10538 GETPID(inferior_ptid).
10539 (store_inferior_registers): Likewise.
10541 2002-01-10 Jason Merrill <jason@redhat.com>
10543 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
10546 2002-01-10 Andrew Cagney <ac131313@redhat.com>
10548 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
10549 and bfd/elf32-sh-nbsd.c.
10551 2002-01-10 Michael Snyder <msnyder@redhat.com>
10553 * NEWS: Mention --pid and corefile/proc-id behavior change.
10555 * Makefile.in: Add rules for gcore.o and linux-proc.o.
10556 * gcore.c: Include cli/cli-decode.h instead of command.h.
10558 * main.c (captured_main): Add new command line option "--pid".
10559 If the second command line argument (following the symbol-file)
10560 begins with a digit, try to attach to it before trying to open
10562 (print_gdb_help): Document the "--pid" argument.
10564 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
10566 * completer.c (command_completer): New function.
10568 * completer.h <command_completer>: Add prototype.
10570 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
10571 completer for the "help" command.
10573 2002-01-09 Jason Merrill <jason@redhat.com>
10575 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
10577 2002-01-09 Michael Snyder <msnyder@redhat.com>
10579 * i386-linux-nat.c (fill_fpxregset): Make global.
10580 (store_fpxregset): Ditto.
10582 * gregset.h (gdb_fpxregset_t): Define.
10583 (supply_fpxregset): Prototype.
10584 (fill_fpxregset): Prototype.
10586 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
10588 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10590 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
10591 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
10592 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
10594 2002-01-09 Andrew Cagney <ac131313@redhat.com>
10596 * MAINTAINERS: Update target maintainer rules so that any
10597 Maintainer can approve a tested patch for a maintenance-only
10600 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
10602 * MAINTAINERS (write-after-approval): Add myself.
10604 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
10607 2002-01-08 Michael Snyder <msnyder@redhat.com>
10609 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
10610 real name of the executable, rather than the /proc name.
10612 2002-01-03 Michael Snyder <msnyder@redhat.com>
10614 Implement a "generate-core-file" command in gdb, save target state.
10615 * gcore.c: New file. Implement new command 'generate-core-file'.
10616 Save a corefile image of the current state of the inferior.
10617 * linux-proc.c: Add linux-specific code for saving corefiles.
10618 * target.h (struct target_ops): Add new target vectors for saving
10619 corefiles; to_find_memory_regions and to_make_corefile_notes.
10620 (target_find_memory_regions): New macro.
10621 (target_make_corefile_notes): New macro.
10622 * target.c (update_current_target): Inherit new target methods.
10623 (dummy_find_memory_regions): New place-holder method.
10624 (dummy_make_corefile_notes): New place-holder method.
10625 (init_dummy_target): Initialize new dummy target vectors.
10626 * exec.c (exec_set_find_memory_regions): New function.
10627 Allow the exec_ops vector for memory regions to be taken over.
10628 (exec_make_note_section): New function, target vector method.
10629 * defs.h (exec_set_find_memory_regions): Export prototype.
10630 * procfs.c (proc_find_memory_regions): New function, corefile method.
10631 (procfs_make_note_section): New function, corefile method.
10632 (init_procfs_ops): Set new target vector pointers.
10633 (find_memory_regions_callback): New function.
10634 (procfs_do_thread_registers): New function.
10635 (procfs_corefile_thread_callback): New function.
10636 * sol-thread.c (sol_find_memory_regions): New function.
10637 (sol_make_note_section): New function.
10638 (init_sol_thread_ops): Initialize new target vectors.
10639 * inftarg.c (inftarg_set_find_memory_regions): New function.
10640 Allow to_find_memory_regions vector to be taken over.
10641 (inftarg_set_make_corefile_notes): New function.
10642 Allow to_make_corefile_notes vector to be taken over.
10643 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
10644 interface layer if not target_has_execution (may be a corefile).
10645 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
10646 * config/sparc/sun4sol2.mh: Ditto.
10647 * config/alpha/alpha-linux.mh: Ditto.
10648 * config/arm/linux.mh: Ditto.
10649 * config/i386/x86-64linux.mh: Ditto.
10650 * config/ia64/linux.mh: Ditto.
10651 * config/m68k/linux.mh: Ditto.
10652 * config/mips/linux.mh: Ditto.
10653 * config/powerpc/linux.mh: Ditto.
10654 * config/sparc/linux.mh: Ditto.
10656 2002-01-07 Michael Snyder <msnyder@redhat.com>
10658 * arm-linux-nat.c: Remove references to regcache.c internal data
10659 (registers[] and register_valid[]).
10661 2002-01-07 Michael Snyder <msnyder@redhat.com>
10663 * linux-proc.c: New file. Implement child_pid_to_exec_file,
10664 so that attaching to a pid will automatically read the process's
10665 symbol file and shlibs.
10666 * Makefile.in: Add rule for linux-proc.o.
10667 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
10668 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
10669 * config/arm/linux.mh: Ditto.
10670 * config/i386/linux.mh: Ditto.
10671 * config/i386/x86-64linux.mh: Ditto.
10672 * config/ia64/linux.mh: Ditto.
10673 * config/m68k/linux.mh: Ditto.
10674 * config/mips/linux.mh: Ditto.
10675 * config/powerpc/linux.mh: Ditto.
10676 * config/sparc/linux.mh: Ditto.
10678 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
10680 * win32-nat.c: Add i386-tdep.h dependency.
10682 2002-01-07 Michael Snyder <msnyder@redhat.com>
10684 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
10685 instead of bfd_get_arch_size. Don't bail out just because
10686 there's no exec_bfd.
10688 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
10689 * p-valprint.c (pascal_object_print_value): Ditto.
10690 * somread.c (som_symtab_read): Ditto.
10691 * symfile.c (simple_free_overlay_region_table): Ditto.
10692 * valops.c (value_assign): Ditto.
10694 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
10695 use tilde_expand and strerror for opening save-tracepoints file.
10697 * thread-db.c (thread_db_new_objfile): Indendation fix.
10699 * infptrace.c (GDB_MAX_ALLOCA): New define.
10700 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
10701 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
10702 can be overridden with whatever value is appropriate to the host).
10703 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
10704 alloca to allocate potentially large buffer.
10705 * rs6000-nat.c (child_xfer_memory): Ditto.
10706 * symm-nat.c (child_xfer_memory): Ditto.
10707 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
10709 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
10711 From Nick Clifton <nickc@redhat.com>
10712 * d10v-tdep.c: Set STACK_START to 0x200bffe.
10714 2002-01-07 Michael Snyder <msnyder@redhat.com>
10716 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
10717 Don't use exec_bfd if it's NULL.
10719 2002-01-06 Mark Kettenis <kettenis@gnu.org>
10721 * valops.c (value_arg_coerce): Fix formatting.
10723 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10725 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
10726 * gnu-nat.c: Ditto.
10728 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10730 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
10731 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
10732 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
10733 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
10734 z8k-coff have not been multi-arched. Update z8k-coff build
10737 2002-01-06 Andrew Cagney <ac131313@redhat.com>
10739 * MAINTAINERS: Mark a29k target as obsolete.
10740 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
10741 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
10743 * NEWS: Note that a29k targets are obsolete.
10744 * a29k-tdep.c: Mark as obsolete.
10745 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
10746 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
10747 a29k-*-vxworks* targets as obsolete.
10748 * remote-adapt.c: Obsolete.
10749 * remote-eb.c: Obsolete.
10750 * remote-mm.c: Obsolete.
10751 * remote-udi.c: Obsolete.
10752 * config/a29k/a29k-udi.mt: Obsolete.
10753 * config/a29k/a29k.mt: Obsolete.
10754 * config/a29k/tm-a29k.h: Obsolete.
10755 * config/a29k/tm-vx29k.h: Obsolete.
10756 * config/a29k/vx29k.mt: Obsolete.
10758 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10760 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
10761 with BFD_ENDIAN_BIG.
10763 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10765 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
10766 * configure, config.in: Re-generate.
10767 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
10768 * defs.h: Do not include <endian.h>.
10770 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
10772 * acconfig.h (HAVE_PT_GETXMMREGS): New.
10773 * config.in: Regenerate.
10774 * configure.in: Update copyright years.
10775 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
10776 * configure: Regenerate.
10777 * i386bsd-nat.c: Update copyright years.
10778 (fill_gregset): Use regcache_collect.
10779 (fetch_inferior_registers): Only fetch integer registers
10780 if requested to do so. Add support for XMM registers
10781 using PT_GETXMMREGS.
10782 (store_inferior_registers): Only store integer registers
10783 if requested to do so. Add support for XMM registers
10784 using PT_SETXMMREGS.
10785 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
10786 (store_inferior_registers): Remove.
10787 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
10788 (fetch_elfcore_registers): New function.
10789 (i386nbsd_elfcore_fns): New.
10790 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
10791 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
10793 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10794 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
10795 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
10796 * config/i386/tm-nbsd.h: Update copyright years.
10797 (HAVE_SSE_REGS): Define.
10798 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
10799 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
10800 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
10801 (SIGCONTEXT_PC_OFFSET): Remove.
10802 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
10804 2002-01-05 Andrew Cagney <ac131313@redhat.com>
10806 * configure.tgt: Remove powerpc-*-macos* target.
10807 * config/m68k/xm-mpw.h: Delete file.
10808 * config/xm-mpw.h: Delete file.
10809 * ser-mac.c: Delete file.
10810 * mpw-make.sed: Delete file.
10811 * mpw-config.in: Delete file.
10812 * mac-xdep.c: Delete file.
10813 * mac-gdb.r: Delete file.
10814 * mac-defs.h: Delete file.
10815 * mac-nat.c: Delete file.
10816 * config/powerpc/macos.mh: Delete file.
10817 * config/powerpc/macos.mt: Delete file.
10818 * config/powerpc/nm-macos.h: Delete file.
10819 * config/powerpc/tm-macos.h: Delete file.
10820 * source.c (openp, open_source_file): Remove obsolete code.
10821 * top.c (gdb_readline): Ditto.
10822 * utils.c (query): Ditto.
10823 * event-top.c (display_gdb_prompt): Ditto.
10824 * Makefile.in (ser-mac.o): Delete obsolete target.
10827 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10829 * defs.h (BIG_ENDIAN): Delete macro definition.
10830 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
10831 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
10832 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
10833 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
10834 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
10835 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
10836 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
10837 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
10838 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
10839 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
10840 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
10841 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
10842 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10843 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
10844 * gdbarch.c: Re-generate.
10846 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10848 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
10851 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10853 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
10855 2002-01-04 Andrew Cagney <ac131313@redhat.com>
10857 * value.h (value_ptr): Delete typedef.
10859 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
10861 * i386nbsd-nat.c: Update copyright years.
10862 Include i386-tdep.h.
10864 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
10866 * stabsread.c: Update copyright years.
10868 From Debashis Mahata <debashis.mahata@wipro.com>:
10869 (read_struct_fields): Deal with Sun C compiler erroneous stab
10870 output for structs and unions.
10873 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10875 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
10878 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10880 * cp-abi.c: Fix whitespace.
10881 (baseclass_offset): New wrapper function.
10882 * cp-abi.h (baseclass_offset): Add prototype.
10883 (struct cp_abi_ops): Add baseclass_offset pointer.
10885 * valops.c (vb_match): Move to...
10886 * gnu-v2-abi.c (vb_match): here.
10887 * valops.c (baseclass_offset): Move to...
10888 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
10890 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
10892 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
10893 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
10894 * hpacc-abi.c (init_hpacc_ops): Likewise.
10896 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
10898 * valops.c (find_overload_match): Accept obj as a
10899 reference parameter. Update it before returning.
10900 * value.h (find_overload_match): Update prototype.
10901 * eval.c (evaluate_subexp_standard): Pass object to
10902 find_overload_match by reference.
10904 2002-01-03 Andrew Cagney <ac131313@redhat.com>
10906 * valarith.c: Replace value_ptr with struct value pointer. Remove
10907 register attribute from value declarations.
10910 * scm-lang.c (scm_lookup_name): Ditto.
10912 2002-01-03 Michael Snyder <msnyder@redhat.com>
10914 Abstract the functionality of iterating over mapped memory
10915 regions into a general purpose iterator function.
10916 * procfs.c (iterate_over_mappings): New function, general purpose
10917 iterator for memory sections.
10918 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
10919 (solib_mappings_callback): New function, callback for above.
10920 (info_proc_mappings): Reimpliment using iterate_over_mappings.
10921 (info_mappings_callback): New function, callback for above.
10923 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
10925 2002-01-01 Mark Kettenis <kettenis@gnu.org>
10927 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
10928 * i386-tdep.c: Include "elf-bfd.h".
10929 (process_note_abi_tag_sections): New function.
10930 (i386_gdbarch_init): Add code to recognize various OS/ABI
10933 * maint.c (_initialize_maint_cmds): Add missing \ in
10936 For older changes see ChangeLog-2001
10942 version-control: never