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