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