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