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