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