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