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