1 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
6 2002-01-12 Andrew Cagney <ac131313@redhat.com>
8 * language.c (longest_raw_hex_string): Delete unused function.
10 2002-01-11 Petr Sorfa <petrs@caldera.com>
12 * MAINTAINERS (write-after-approval): Add myself.
13 * dwarf2read.c (read_tag_string_type): Handling of
15 (read_tag_string_type): FORTRAN fix to prevent propagation of
17 (set_cu_language): Handling of DW_LANG_Fortran95
19 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
21 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
22 GETPID(inferior_ptid).
23 (store_inferior_registers): Likewise.
25 2002-01-10 Jason Merrill <jason@redhat.com>
27 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
30 2002-01-10 Andrew Cagney <ac131313@redhat.com>
32 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
33 and bfd/elf32-sh-nbsd.c.
35 2002-01-10 Michael Snyder <msnyder@redhat.com>
37 * NEWS: Mention --pid and corefile/proc-id behavior change.
39 * Makefile.in: Add rules for gcore.o and linux-proc.o.
40 * gcore.c: Include cli/cli-decode.h instead of command.h.
42 * main.c (captured_main): Add new command line option "--pid".
43 If the second command line argument (following the symbol-file)
44 begins with a digit, try to attach to it before trying to open
46 (print_gdb_help): Document the "--pid" argument.
48 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
50 * completer.c (command_completer): New function.
52 * completer.h <command_completer>: Add prototype.
54 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
55 completer for the "help" command.
57 2002-01-09 Jason Merrill <jason@redhat.com>
59 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
61 2002-01-09 Michael Snyder <msnyder@redhat.com>
63 * i386-linux-nat.c (fill_fpxregset): Make global.
64 (store_fpxregset): Ditto.
66 * gregset.h (gdb_fpxregset_t): Define.
67 (supply_fpxregset): Prototype.
68 (fill_fpxregset): Prototype.
70 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
72 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
74 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
75 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
76 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
78 2002-01-09 Andrew Cagney <ac131313@redhat.com>
80 * MAINTAINERS: Update target maintainer rules so that any
81 Maintainer can approve a tested patch for a maintenance-only
84 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
86 * MAINTAINERS (write-after-approval): Add myself.
88 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
91 2002-01-08 Michael Snyder <msnyder@redhat.com>
93 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
94 real name of the executable, rather than the /proc name.
96 2002-01-03 Michael Snyder <msnyder@redhat.com>
98 Implement a "generate-core-file" command in gdb, save target state.
99 * gcore.c: New file. Implement new command 'generate-core-file'.
100 Save a corefile image of the current state of the inferior.
101 * linux-proc.c: Add linux-specific code for saving corefiles.
102 * target.h (struct target_ops): Add new target vectors for saving
103 corefiles; to_find_memory_regions and to_make_corefile_notes.
104 (target_find_memory_regions): New macro.
105 (target_make_corefile_notes): New macro.
106 * target.c (update_current_target): Inherit new target methods.
107 (dummy_find_memory_regions): New place-holder method.
108 (dummy_make_corefile_notes): New place-holder method.
109 (init_dummy_target): Initialize new dummy target vectors.
110 * exec.c (exec_set_find_memory_regions): New function.
111 Allow the exec_ops vector for memory regions to be taken over.
112 (exec_make_note_section): New function, target vector method.
113 * defs.h (exec_set_find_memory_regions): Export prototype.
114 * procfs.c (proc_find_memory_regions): New function, corefile method.
115 (procfs_make_note_section): New function, corefile method.
116 (init_procfs_ops): Set new target vector pointers.
117 (find_memory_regions_callback): New function.
118 (procfs_do_thread_registers): New function.
119 (procfs_corefile_thread_callback): New function.
120 * sol-thread.c (sol_find_memory_regions): New function.
121 (sol_make_note_section): New function.
122 (init_sol_thread_ops): Initialize new target vectors.
123 * inftarg.c (inftarg_set_find_memory_regions): New function.
124 Allow to_find_memory_regions vector to be taken over.
125 (inftarg_set_make_corefile_notes): New function.
126 Allow to_make_corefile_notes vector to be taken over.
127 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
128 interface layer if not target_has_execution (may be a corefile).
129 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
130 * config/sparc/sun4sol2.mh: Ditto.
131 * config/alpha/alpha-linux.mh: Ditto.
132 * config/arm/linux.mh: Ditto.
133 * config/i386/x86-64linux.mh: Ditto.
134 * config/ia64/linux.mh: Ditto.
135 * config/m68k/linux.mh: Ditto.
136 * config/mips/linux.mh: Ditto.
137 * config/powerpc/linux.mh: Ditto.
138 * config/sparc/linux.mh: Ditto.
140 2002-01-07 Michael Snyder <msnyder@redhat.com>
142 * arm-linux-nat.c: Remove references to regcache.c internal data
143 (registers[] and register_valid[]).
145 2002-01-07 Michael Snyder <msnyder@redhat.com>
147 * linux-proc.c: New file. Implement child_pid_to_exec_file,
148 so that attaching to a pid will automatically read the process's
149 symbol file and shlibs.
150 * Makefile.in: Add rule for linux-proc.o.
151 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
152 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
153 * config/arm/linux.mh: Ditto.
154 * config/i386/linux.mh: Ditto.
155 * config/i386/x86-64linux.mh: Ditto.
156 * config/ia64/linux.mh: Ditto.
157 * config/m68k/linux.mh: Ditto.
158 * config/mips/linux.mh: Ditto.
159 * config/powerpc/linux.mh: Ditto.
160 * config/sparc/linux.mh: Ditto.
162 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
164 * win32-nat.c: Add i386-tdep.h dependency.
166 2002-01-07 Michael Snyder <msnyder@redhat.com>
168 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
169 instead of bfd_get_arch_size. Don't bail out just because
172 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
173 * p-valprint.c (pascal_object_print_value): Ditto.
174 * somread.c (som_symtab_read): Ditto.
175 * symfile.c (simple_free_overlay_region_table): Ditto.
176 * valops.c (value_assign): Ditto.
178 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
179 use tilde_expand and strerror for opening save-tracepoints file.
181 * thread-db.c (thread_db_new_objfile): Indendation fix.
183 * infptrace.c (GDB_MAX_ALLOCA): New define.
184 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
185 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
186 can be overridden with whatever value is appropriate to the host).
187 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
188 alloca to allocate potentially large buffer.
189 * rs6000-nat.c (child_xfer_memory): Ditto.
190 * symm-nat.c (child_xfer_memory): Ditto.
191 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
193 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
195 From Nick Clifton <nickc@redhat.com>
196 * d10v-tdep.c: Set STACK_START to 0x200bffe.
198 2002-01-07 Michael Snyder <msnyder@redhat.com>
200 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
201 Don't use exec_bfd if it's NULL.
203 2002-01-06 Mark Kettenis <kettenis@gnu.org>
205 * valops.c (value_arg_coerce): Fix formatting.
207 2002-01-06 Andrew Cagney <ac131313@redhat.com>
209 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
212 2002-01-06 Andrew Cagney <ac131313@redhat.com>
214 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
215 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
216 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
217 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
218 z8k-coff have not been multi-arched. Update z8k-coff build
221 2002-01-06 Andrew Cagney <ac131313@redhat.com>
223 * MAINTAINERS: Mark a29k target as obsolete.
224 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
225 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
227 * NEWS: Note that a29k targets are obsolete.
228 * a29k-tdep.c: Mark as obsolete.
229 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
230 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
231 a29k-*-vxworks* targets as obsolete.
232 * remote-adapt.c: Obsolete.
233 * remote-eb.c: Obsolete.
234 * remote-mm.c: Obsolete.
235 * remote-udi.c: Obsolete.
236 * config/a29k/a29k-udi.mt: Obsolete.
237 * config/a29k/a29k.mt: Obsolete.
238 * config/a29k/tm-a29k.h: Obsolete.
239 * config/a29k/tm-vx29k.h: Obsolete.
240 * config/a29k/vx29k.mt: Obsolete.
242 2002-01-05 Andrew Cagney <ac131313@redhat.com>
244 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
247 2002-01-05 Andrew Cagney <ac131313@redhat.com>
249 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
250 * configure, config.in: Re-generate.
251 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
252 * defs.h: Do not include <endian.h>.
254 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
256 * acconfig.h (HAVE_PT_GETXMMREGS): New.
257 * config.in: Regenerate.
258 * configure.in: Update copyright years.
259 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
260 * configure: Regenerate.
261 * i386bsd-nat.c: Update copyright years.
262 (fill_gregset): Use regcache_collect.
263 (fetch_inferior_registers): Only fetch integer registers
264 if requested to do so. Add support for XMM registers
266 (store_inferior_registers): Only store integer registers
267 if requested to do so. Add support for XMM registers
269 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
270 (store_inferior_registers): Remove.
271 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
272 (fetch_elfcore_registers): New function.
273 (i386nbsd_elfcore_fns): New.
274 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
275 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
277 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
278 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
279 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
280 * config/i386/tm-nbsd.h: Update copyright years.
281 (HAVE_SSE_REGS): Define.
282 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
283 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
284 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
285 (SIGCONTEXT_PC_OFFSET): Remove.
286 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
288 2002-01-05 Andrew Cagney <ac131313@redhat.com>
290 * configure.tgt: Remove powerpc-*-macos* target.
291 * config/m68k/xm-mpw.h: Delete file.
292 * config/xm-mpw.h: Delete file.
293 * ser-mac.c: Delete file.
294 * mpw-make.sed: Delete file.
295 * mpw-config.in: Delete file.
296 * mac-xdep.c: Delete file.
297 * mac-gdb.r: Delete file.
298 * mac-defs.h: Delete file.
299 * mac-nat.c: Delete file.
300 * config/powerpc/macos.mh: Delete file.
301 * config/powerpc/macos.mt: Delete file.
302 * config/powerpc/nm-macos.h: Delete file.
303 * config/powerpc/tm-macos.h: Delete file.
304 * source.c (openp, open_source_file): Remove obsolete code.
305 * top.c (gdb_readline): Ditto.
306 * utils.c (query): Ditto.
307 * event-top.c (display_gdb_prompt): Ditto.
308 * Makefile.in (ser-mac.o): Delete obsolete target.
311 2002-01-04 Andrew Cagney <ac131313@redhat.com>
313 * defs.h (BIG_ENDIAN): Delete macro definition.
314 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
315 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
316 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
317 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
318 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
319 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
320 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
321 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
322 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
323 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
324 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
325 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
326 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
327 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
328 * gdbarch.c: Re-generate.
330 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
332 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
335 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
337 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
339 2002-01-04 Andrew Cagney <ac131313@redhat.com>
341 * value.h (value_ptr): Delete typedef.
343 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
345 * i386nbsd-nat.c: Update copyright years.
348 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
350 * stabsread.c: Update copyright years.
352 From Debashis Mahata <debashis.mahata@wipro.com>:
353 (read_struct_fields): Deal with Sun C compiler erroneous stab
354 output for structs and unions.
357 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
359 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
362 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
364 * cp-abi.c: Fix whitespace.
365 (baseclass_offset): New wrapper function.
366 * cp-abi.h (baseclass_offset): Add prototype.
367 (struct cp_abi_ops): Add baseclass_offset pointer.
369 * valops.c (vb_match): Move to...
370 * gnu-v2-abi.c (vb_match): here.
371 * valops.c (baseclass_offset): Move to...
372 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
374 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
376 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
377 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
378 * hpacc-abi.c (init_hpacc_ops): Likewise.
380 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
382 * valops.c (find_overload_match): Accept obj as a
383 reference parameter. Update it before returning.
384 * value.h (find_overload_match): Update prototype.
385 * eval.c (evaluate_subexp_standard): Pass object to
386 find_overload_match by reference.
388 2002-01-03 Andrew Cagney <ac131313@redhat.com>
390 * valarith.c: Replace value_ptr with struct value pointer. Remove
391 register attribute from value declarations.
394 * scm-lang.c (scm_lookup_name): Ditto.
396 2002-01-03 Michael Snyder <msnyder@redhat.com>
398 Abstract the functionality of iterating over mapped memory
399 regions into a general purpose iterator function.
400 * procfs.c (iterate_over_mappings): New function, general purpose
401 iterator for memory sections.
402 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
403 (solib_mappings_callback): New function, callback for above.
404 (info_proc_mappings): Reimpliment using iterate_over_mappings.
405 (info_mappings_callback): New function, callback for above.
407 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
409 2002-01-01 Mark Kettenis <kettenis@gnu.org>
411 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
412 * i386-tdep.c: Include "elf-bfd.h".
413 (process_note_abi_tag_sections): New function.
414 (i386_gdbarch_init): Add code to recognize various OS/ABI
417 * maint.c (_initialize_maint_cmds): Add missing \ in
420 For older changes see ChangeLog-2001
426 version-control: never