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