1 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
6 2002-01-14 Andrew Cagney <ac131313@redhat.com>
8 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
9 CLEAN_UP_REGISTER_VALUE.
10 * regcache.c (supply_register): Update only call.
12 2002-01-14 Andrew Cagney <ac131313@redhat.com>
14 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
16 a29k-*-vxworks* targets as obsolete.
18 2002-01-14 Michael Snyder <msnyder@redhat.com>
20 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
21 until we can resolve portability issues.
22 * gregset.h: Remove references to fpxregs.
23 * gcore.c (gcore_command): Initialize note_sec to NULL.
25 2002-01-13 Andrew Cagney <ac131313@redhat.com>
27 * signals.c (target_signal_to_name): Rewrite. Only use
28 signals[].name when in bounds and non-NULL.
30 2002-01-13 Andrew Cagney <ac131313@redhat.com>
32 From Petr Ledvina <ledvinap@kae.zcu.cz>:
33 * signals.c (target_signal_to_name): Verify that SIG is within the
34 bounds of the signals array.
36 2002-01-13 Andrew Cagney <ac131313@redhat.com>
38 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
40 2002-01-13 Keith Seitz <keiths@redhat.com>
42 * stack.c (print_frame_info_base): Print the frame's pc
43 only if when print_frame_info_listing_hook is not defined.
45 2002-01-13 Keith Seitz <keiths@redhat.com>
47 * varobj.c (varobj_set_value): Make sure that there were no
48 errors evaluating the object before attempting to set its
50 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
51 so this offset adjustment is no longer necessary.
52 (create_child): Don't set the error flag if the child is
54 (value_of_child): If value_fetch_lazy fails, return NULL
55 so that callers will be notified that an error occurred.
56 (c_value_of_variable): Delay check of variable's validity
57 until later. We actually want all structs and unions to have
59 Do not return "???" for variables which could not be evaluated.
60 This error condition must be returned to the caller so that it
61 can get the error condition from gdb.
62 (cplus_name_of_child): Adjust index for vptr before figuring
63 out the name of the child.
64 (cplus_value_of_child): If a child's (real) parent is not valid,
65 don't even bother trying to give a value for it. Just return
66 an error. Change all instances in this function.
67 (cplus_type_of_child): If our parent is one of the "fake"
68 parents, we need to get at the type of the real parent, and
69 derive the child's true type using this information.
71 2002-01-13 Andrew Cagney <ac131313@redhat.com>
73 From 2002-01-09 John Marshall <johnm@falch.net>:
74 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
75 sources.redhat.com, and tweak some related URLs which had
76 suffered from linkrot.
78 2002-01-13 Andrew Cagney <ac131313@redhat.com>
81 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
82 structures passed in registers.
84 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
86 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
87 white space which prevented compilation. Reported by DSK
88 <dsk@student.unsw.edu.au>.
90 2002-01-11 Michael Snyder <msnyder@redhat.com>
92 * symfile.c (build_section_addr_info_from_section_tab):
93 Use bfd access method instead of manipulating bfd directly.
94 (syms_from_objfile): Ditto.
95 (simple_overlay_update_1): Ditto.
96 (simple_overlay_update): Ditto.
97 (generic_load): Ditto.
98 (overlay_unmapped_address): FIXME comment, bfd access methods.
99 (sections_overlap): FIXME comment, bfd access methods.
100 (pc_in_mapped_range): FIXME comment, bfd access methods.
101 (pc_in_unmapped_range): FIXME comment, bfd access methods.
102 (section_is_mapped): FIXME comment, bfd access methods.
103 (section_is_overlay): FIXME comment, bfd access methods.
105 * symfile.c (generic_load): Whitespace and long line cleanups.
106 Remove duplicate variable, change several local variables to
107 more appropriate data types.
108 (print_transfer_performance): Use %lu instead of %ld for ulongs.
110 2002-01-12 Andrew Cagney <ac131313@redhat.com>
113 * language.c (longest_local_hex_string_custom): Use phex_nz to
114 convert NUM to a hex string.
116 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
118 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
120 Update Copyright year.
122 2002-01-12 Andrew Cagney <ac131313@redhat.com>
124 * language.c (longest_raw_hex_string): Delete unused function.
126 2002-01-11 Petr Sorfa <petrs@caldera.com>
128 * MAINTAINERS (write-after-approval): Add myself.
129 * dwarf2read.c (read_tag_string_type): Handling of
131 (read_tag_string_type): FORTRAN fix to prevent propagation of
133 (set_cu_language): Handling of DW_LANG_Fortran95
135 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
137 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
138 GETPID(inferior_ptid).
139 (store_inferior_registers): Likewise.
141 2002-01-10 Jason Merrill <jason@redhat.com>
143 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
146 2002-01-10 Andrew Cagney <ac131313@redhat.com>
148 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
149 and bfd/elf32-sh-nbsd.c.
151 2002-01-10 Michael Snyder <msnyder@redhat.com>
153 * NEWS: Mention --pid and corefile/proc-id behavior change.
155 * Makefile.in: Add rules for gcore.o and linux-proc.o.
156 * gcore.c: Include cli/cli-decode.h instead of command.h.
158 * main.c (captured_main): Add new command line option "--pid".
159 If the second command line argument (following the symbol-file)
160 begins with a digit, try to attach to it before trying to open
162 (print_gdb_help): Document the "--pid" argument.
164 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
166 * completer.c (command_completer): New function.
168 * completer.h <command_completer>: Add prototype.
170 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
171 completer for the "help" command.
173 2002-01-09 Jason Merrill <jason@redhat.com>
175 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
177 2002-01-09 Michael Snyder <msnyder@redhat.com>
179 * i386-linux-nat.c (fill_fpxregset): Make global.
180 (store_fpxregset): Ditto.
182 * gregset.h (gdb_fpxregset_t): Define.
183 (supply_fpxregset): Prototype.
184 (fill_fpxregset): Prototype.
186 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
188 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
190 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
191 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
192 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
194 2002-01-09 Andrew Cagney <ac131313@redhat.com>
196 * MAINTAINERS: Update target maintainer rules so that any
197 Maintainer can approve a tested patch for a maintenance-only
200 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
202 * MAINTAINERS (write-after-approval): Add myself.
204 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
207 2002-01-08 Michael Snyder <msnyder@redhat.com>
209 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
210 real name of the executable, rather than the /proc name.
212 2002-01-03 Michael Snyder <msnyder@redhat.com>
214 Implement a "generate-core-file" command in gdb, save target state.
215 * gcore.c: New file. Implement new command 'generate-core-file'.
216 Save a corefile image of the current state of the inferior.
217 * linux-proc.c: Add linux-specific code for saving corefiles.
218 * target.h (struct target_ops): Add new target vectors for saving
219 corefiles; to_find_memory_regions and to_make_corefile_notes.
220 (target_find_memory_regions): New macro.
221 (target_make_corefile_notes): New macro.
222 * target.c (update_current_target): Inherit new target methods.
223 (dummy_find_memory_regions): New place-holder method.
224 (dummy_make_corefile_notes): New place-holder method.
225 (init_dummy_target): Initialize new dummy target vectors.
226 * exec.c (exec_set_find_memory_regions): New function.
227 Allow the exec_ops vector for memory regions to be taken over.
228 (exec_make_note_section): New function, target vector method.
229 * defs.h (exec_set_find_memory_regions): Export prototype.
230 * procfs.c (proc_find_memory_regions): New function, corefile method.
231 (procfs_make_note_section): New function, corefile method.
232 (init_procfs_ops): Set new target vector pointers.
233 (find_memory_regions_callback): New function.
234 (procfs_do_thread_registers): New function.
235 (procfs_corefile_thread_callback): New function.
236 * sol-thread.c (sol_find_memory_regions): New function.
237 (sol_make_note_section): New function.
238 (init_sol_thread_ops): Initialize new target vectors.
239 * inftarg.c (inftarg_set_find_memory_regions): New function.
240 Allow to_find_memory_regions vector to be taken over.
241 (inftarg_set_make_corefile_notes): New function.
242 Allow to_make_corefile_notes vector to be taken over.
243 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
244 interface layer if not target_has_execution (may be a corefile).
245 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
246 * config/sparc/sun4sol2.mh: Ditto.
247 * config/alpha/alpha-linux.mh: Ditto.
248 * config/arm/linux.mh: Ditto.
249 * config/i386/x86-64linux.mh: Ditto.
250 * config/ia64/linux.mh: Ditto.
251 * config/m68k/linux.mh: Ditto.
252 * config/mips/linux.mh: Ditto.
253 * config/powerpc/linux.mh: Ditto.
254 * config/sparc/linux.mh: Ditto.
256 2002-01-07 Michael Snyder <msnyder@redhat.com>
258 * arm-linux-nat.c: Remove references to regcache.c internal data
259 (registers[] and register_valid[]).
261 2002-01-07 Michael Snyder <msnyder@redhat.com>
263 * linux-proc.c: New file. Implement child_pid_to_exec_file,
264 so that attaching to a pid will automatically read the process's
265 symbol file and shlibs.
266 * Makefile.in: Add rule for linux-proc.o.
267 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
268 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
269 * config/arm/linux.mh: Ditto.
270 * config/i386/linux.mh: Ditto.
271 * config/i386/x86-64linux.mh: Ditto.
272 * config/ia64/linux.mh: Ditto.
273 * config/m68k/linux.mh: Ditto.
274 * config/mips/linux.mh: Ditto.
275 * config/powerpc/linux.mh: Ditto.
276 * config/sparc/linux.mh: Ditto.
278 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
280 * win32-nat.c: Add i386-tdep.h dependency.
282 2002-01-07 Michael Snyder <msnyder@redhat.com>
284 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
285 instead of bfd_get_arch_size. Don't bail out just because
288 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
289 * p-valprint.c (pascal_object_print_value): Ditto.
290 * somread.c (som_symtab_read): Ditto.
291 * symfile.c (simple_free_overlay_region_table): Ditto.
292 * valops.c (value_assign): Ditto.
294 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
295 use tilde_expand and strerror for opening save-tracepoints file.
297 * thread-db.c (thread_db_new_objfile): Indendation fix.
299 * infptrace.c (GDB_MAX_ALLOCA): New define.
300 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
301 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
302 can be overridden with whatever value is appropriate to the host).
303 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
304 alloca to allocate potentially large buffer.
305 * rs6000-nat.c (child_xfer_memory): Ditto.
306 * symm-nat.c (child_xfer_memory): Ditto.
307 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
309 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
311 From Nick Clifton <nickc@redhat.com>
312 * d10v-tdep.c: Set STACK_START to 0x200bffe.
314 2002-01-07 Michael Snyder <msnyder@redhat.com>
316 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
317 Don't use exec_bfd if it's NULL.
319 2002-01-06 Mark Kettenis <kettenis@gnu.org>
321 * valops.c (value_arg_coerce): Fix formatting.
323 2002-01-06 Andrew Cagney <ac131313@redhat.com>
325 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
328 2002-01-06 Andrew Cagney <ac131313@redhat.com>
330 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
331 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
332 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
333 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
334 z8k-coff have not been multi-arched. Update z8k-coff build
337 2002-01-06 Andrew Cagney <ac131313@redhat.com>
339 * MAINTAINERS: Mark a29k target as obsolete.
340 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
341 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
343 * NEWS: Note that a29k targets are obsolete.
344 * a29k-tdep.c: Mark as obsolete.
345 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
346 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
347 a29k-*-vxworks* targets as obsolete.
348 * remote-adapt.c: Obsolete.
349 * remote-eb.c: Obsolete.
350 * remote-mm.c: Obsolete.
351 * remote-udi.c: Obsolete.
352 * config/a29k/a29k-udi.mt: Obsolete.
353 * config/a29k/a29k.mt: Obsolete.
354 * config/a29k/tm-a29k.h: Obsolete.
355 * config/a29k/tm-vx29k.h: Obsolete.
356 * config/a29k/vx29k.mt: Obsolete.
358 2002-01-05 Andrew Cagney <ac131313@redhat.com>
360 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
363 2002-01-05 Andrew Cagney <ac131313@redhat.com>
365 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
366 * configure, config.in: Re-generate.
367 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
368 * defs.h: Do not include <endian.h>.
370 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
372 * acconfig.h (HAVE_PT_GETXMMREGS): New.
373 * config.in: Regenerate.
374 * configure.in: Update copyright years.
375 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
376 * configure: Regenerate.
377 * i386bsd-nat.c: Update copyright years.
378 (fill_gregset): Use regcache_collect.
379 (fetch_inferior_registers): Only fetch integer registers
380 if requested to do so. Add support for XMM registers
382 (store_inferior_registers): Only store integer registers
383 if requested to do so. Add support for XMM registers
385 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
386 (store_inferior_registers): Remove.
387 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
388 (fetch_elfcore_registers): New function.
389 (i386nbsd_elfcore_fns): New.
390 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
391 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
393 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
394 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
395 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
396 * config/i386/tm-nbsd.h: Update copyright years.
397 (HAVE_SSE_REGS): Define.
398 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
399 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
400 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
401 (SIGCONTEXT_PC_OFFSET): Remove.
402 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
404 2002-01-05 Andrew Cagney <ac131313@redhat.com>
406 * configure.tgt: Remove powerpc-*-macos* target.
407 * config/m68k/xm-mpw.h: Delete file.
408 * config/xm-mpw.h: Delete file.
409 * ser-mac.c: Delete file.
410 * mpw-make.sed: Delete file.
411 * mpw-config.in: Delete file.
412 * mac-xdep.c: Delete file.
413 * mac-gdb.r: Delete file.
414 * mac-defs.h: Delete file.
415 * mac-nat.c: Delete file.
416 * config/powerpc/macos.mh: Delete file.
417 * config/powerpc/macos.mt: Delete file.
418 * config/powerpc/nm-macos.h: Delete file.
419 * config/powerpc/tm-macos.h: Delete file.
420 * source.c (openp, open_source_file): Remove obsolete code.
421 * top.c (gdb_readline): Ditto.
422 * utils.c (query): Ditto.
423 * event-top.c (display_gdb_prompt): Ditto.
424 * Makefile.in (ser-mac.o): Delete obsolete target.
427 2002-01-04 Andrew Cagney <ac131313@redhat.com>
429 * defs.h (BIG_ENDIAN): Delete macro definition.
430 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
431 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
432 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
433 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
434 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
435 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
436 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
437 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
438 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
439 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
440 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
441 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
442 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
443 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
444 * gdbarch.c: Re-generate.
446 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
448 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
451 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
453 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
455 2002-01-04 Andrew Cagney <ac131313@redhat.com>
457 * value.h (value_ptr): Delete typedef.
459 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
461 * i386nbsd-nat.c: Update copyright years.
464 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
466 * stabsread.c: Update copyright years.
468 From Debashis Mahata <debashis.mahata@wipro.com>:
469 (read_struct_fields): Deal with Sun C compiler erroneous stab
470 output for structs and unions.
473 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
475 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
478 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
480 * cp-abi.c: Fix whitespace.
481 (baseclass_offset): New wrapper function.
482 * cp-abi.h (baseclass_offset): Add prototype.
483 (struct cp_abi_ops): Add baseclass_offset pointer.
485 * valops.c (vb_match): Move to...
486 * gnu-v2-abi.c (vb_match): here.
487 * valops.c (baseclass_offset): Move to...
488 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
490 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
492 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
493 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
494 * hpacc-abi.c (init_hpacc_ops): Likewise.
496 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
498 * valops.c (find_overload_match): Accept obj as a
499 reference parameter. Update it before returning.
500 * value.h (find_overload_match): Update prototype.
501 * eval.c (evaluate_subexp_standard): Pass object to
502 find_overload_match by reference.
504 2002-01-03 Andrew Cagney <ac131313@redhat.com>
506 * valarith.c: Replace value_ptr with struct value pointer. Remove
507 register attribute from value declarations.
510 * scm-lang.c (scm_lookup_name): Ditto.
512 2002-01-03 Michael Snyder <msnyder@redhat.com>
514 Abstract the functionality of iterating over mapped memory
515 regions into a general purpose iterator function.
516 * procfs.c (iterate_over_mappings): New function, general purpose
517 iterator for memory sections.
518 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
519 (solib_mappings_callback): New function, callback for above.
520 (info_proc_mappings): Reimpliment using iterate_over_mappings.
521 (info_mappings_callback): New function, callback for above.
523 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
525 2002-01-01 Mark Kettenis <kettenis@gnu.org>
527 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
528 * i386-tdep.c: Include "elf-bfd.h".
529 (process_note_abi_tag_sections): New function.
530 (i386_gdbarch_init): Add code to recognize various OS/ABI
533 * maint.c (_initialize_maint_cmds): Add missing \ in
536 For older changes see ChangeLog-2001
542 version-control: never