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