1 2002-01-19 Per Bothner <per@bothner.com>
3 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
4 isn't NULL, which can happen with some gcj-3.x-produced code.
6 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
8 * alpha-tdep.c (alpha_register_virtual_type): New function.
9 (alpha_init_frame_pc_first): Ditto.
10 (alpha_fix_call_dummy): Ditto.
11 (alpha_store_struct_return): Ditto.
12 (alpha_extract_struct_value_address): Ditto.
13 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14 alpha_register_virtual_type.
15 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
16 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
17 alpha_extract_struct_value_address.
18 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
19 (INIT_FRAME_PC): Use init_frame_pc_noop.
20 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
22 2002-01-19 Mark Kettenis <kettenis@gnu.org>
24 * i386gnu-nat.c: Include "i386-tdep.h".
25 (fetch_fpregs): Simplify code dealing with uninitialized floating
26 point states such that it doesn't require FP7_REGNUM.
28 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
30 * alpha-tdep.c (frame_extra_info): New.
31 (alpha_find_saved_regs): Make static. Use
33 (alpha_frame_init_saved_regs): New function.
34 (alpha_frame_saved_pc): Use frame->extra_info.
35 (temp_saved_regs): Don't declare as struct frame_saved_regs.
36 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
37 (init_extra_frame_info): Rename to...
38 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
39 (alpha_print_extra_frame_info): New function.
40 (alpha_frame_locals_address): Ditto.
41 (alpha_frame_args_address): Ditto.
42 (alpha_pop_frame): Use frame->extra_info.
43 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
44 alpha_frame_args_address.
45 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
46 (alpha_find_saved_regs): Remove prototype.
47 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
48 (EXTRA_FRAME_INFO): Remove.
49 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
50 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
52 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
54 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
55 (alpha_cannot_fetch_register): Ditto.
56 (alpha_cannot_store_register): Ditto.
57 (alpha_register_convertible): Ditto.
58 (alpha_use_struct_convention): Ditto.
59 * config/alpha/tm-alpha.h: Update copyright years.
60 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
61 (INNER_THAN): Use core_addr_lessthan.
62 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
63 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
64 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
65 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
66 (FRAME_CHAIN): Remove unnecessary cast.
68 2002-01-18 Andrew Cagney <ac131313@redhat.com>
70 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
73 2002-01-18 Andrew Cagney <ac131313@redhat.com>
75 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
76 * monitor.c, remote-array.c, remote-bug.c: Ditto.
77 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
78 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
79 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
80 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
81 * x86-64-linux-nat.c: Ditto.
83 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
85 * alpha-tdep.c (alpha_register_name): New function.
86 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
87 (REGISTER_NAME): Define.
89 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
91 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
93 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
95 * alpha-tdep.c: Update copyright years.
96 (alpha_next_pc): New function.
97 (alpha_software_single_step): Ditto.
98 * config/alpha/tm-alpha.h: Add prototype for
99 alpha_software_single_step.
101 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
103 * alphabsd-nat.c: Update copyright years.
104 (fill_gregset): Use regcache_collect.
105 (fill_fpregset): Likewise.
106 (fetch_inferior_registers): Only fetch integer registers
107 if requested to do so.
108 (store_inferior_registers): Only store integer registers
109 if requested to do so.
111 2002-01-17 Andrew Cagney <ac131313@redhat.com>
113 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
114 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
115 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
116 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
117 * config/alpha/fbsd.mh (XDEPFILES): Delete.
118 * config/arm/linux.mh (XDEPFILES): Delete.
119 * config/arm/nbsd.mh (XDEPFILES): Delete.
120 * config/i386/i386dgux.mh (XDEPFILES): Delete.
121 * config/i386/i386sol2.mh (XDEPFILES): Delete.
122 * config/i386/i386m3.mh (XDEPFILES): Delete.
123 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
124 * config/i386/i386gnu.mh (XDEPFILES): Delete.
125 * config/i386/fbsd.mh (XDEPFILES): Delete.
126 * config/i386/i386bsd.mh (XDEPFILES): Delete.
127 * config/i386/i386sco5.mh (XDEPFILES): Delete.
128 * config/i386/i386v4.mh (XDEPFILES): Delete.
129 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
130 * config/i386/i386sco4.mh (XDEPFILES): Delete.
131 * config/i386/i386aix.mh (XDEPFILES): Delete.
132 * config/i386/go32.mh (XDEPFILES): Delete.
133 * config/i386/cygwin.mh (XDEPFILES): Delete.
134 * config/i386/i386lynx.mh (XDEPFILES): Delete.
135 * config/i386/i386mach.mh (XDEPFILES): Delete.
136 * config/i386/i386v32.mh (XDEPFILES): Delete.
137 * config/i386/linux.mh (XDEPFILES): Delete.
138 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
139 * config/i386/ncr3000.mh (XDEPFILES): Delete.
140 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
141 * config/i386/i386sco.mh (XDEPFILES): Delete.
142 * config/i386/i386v.mh (XDEPFILES): Delete.
143 * config/i386/nbsd.mh (XDEPFILES): Delete.
144 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
145 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
146 * config/i386/symmetry.mh (XDEPFILES): Delete.
147 * config/i386/obsd.mh (XDEPFILES): Delete.
148 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
149 * config/ia64/linux.mh (XDEPFILES): Delete.
150 * config/ia64/aix.mh (XDEPFILES): Delete.
151 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
152 * config/m68k/dpx2.mh (XDEPFILES): Delete.
153 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
154 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
155 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
156 * config/m68k/linux.mh (XDEPFILES): Delete.
157 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
158 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
159 * config/m68k/nbsd.mh (XDEPFILES): Delete.
160 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
161 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
162 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
163 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
164 * config/m88k/delta88.mh (XDEPFILES): Delete.
165 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
166 * config/m88k/m88k.mh (XDEPFILES): Delete.
167 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
168 * config/mips/linux.mh (XDEPFILES): Delete.
169 * config/mips/irix6.mh (XDEPFILES): Delete.
170 * config/mips/irix5.mh (XDEPFILES): Delete.
171 * config/mips/irix4.mh (XDEPFILES): Delete.
172 * config/mips/irix3.mh (XDEPFILES): Delete.
173 * config/mips/decstation.mh (XDEPFILES): Delete.
174 * config/mips/mipsm3.mh (XDEPFILES): Delete.
175 (NATDEPFILES): Move core-aout.o to here.
176 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
177 * config/pa/hpux1020.mh (XDEPFILES): Delete.
178 * config/pa/hppabsd.mh (XDEPFILES): Delete.
179 * config/pa/hppahpux.mh (XDEPFILES): Delete.
180 * config/pa/hpux11w.mh (XDEPFILES): Delete.
181 * config/pa/hppaosf.mh (XDEPFILES): Delete.
182 * config/pa/hpux11.mh (XDEPFILES): Delete.
183 * config/powerpc/aix.mh (XDEPFILES): Delete.
184 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
185 * config/powerpc/linux.mh (XDEPFILES): Delete.
186 * config/romp/rtbsd.mh: Rename XDEPFILES.
187 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
188 * config/rs6000/aix4.mh (XDEPFILES): Delete.
189 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
190 * config/s390/s390.mh (XDEPFILES): Delete.
191 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
192 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
193 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
194 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
195 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
196 * config/sparc/nbsd.mh (XDEPFILES): Delete.
197 * config/sparc/linux.mh (XDEPFILES): Delete.
198 * config/vax/vaxult.mh (XDEPFILES): Delete.
199 * config/vax/vaxult2.mh (XDEPFILES): Delete.
200 * Makefile.in (DEPFILES): Remove XDEPFILES.
202 2002-01-17 Andrew Cagney <ac131313@redhat.com>
204 * utils.c (internal_verror): Fix comments, default is yes not no.
205 Update queries to match. Default to quit and dump core.
207 2002-01-17 Andrew Cagney <ac131313@redhat.com>
209 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
211 * defs.h, event-top.c, gdbcmd.h: Ditto.
212 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
213 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
214 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
215 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
216 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
217 * mi/mi-main.c:Ditto.
219 * stack.c, symfile.c: Update copyright.
221 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
223 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
224 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
225 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
226 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
228 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
230 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
231 * gdbserver/low-lynx.c (myattach): Likewise.
232 * gdbserver/low-nbsd.c (myattach): Likewise.
233 * gdbserver/low-sim.c (myattach): Likewise.
234 * gdbserver/low-sparc.c (myattach): Likewise.
235 * gdbserver/low-sun3.c (myattach): Likewise.
237 * gdbserver/low-linux.c (myattach): New function.
239 * gdbserver/server.c (attach_inferior): New function.
240 (main): Handle "--attach".
242 2002-01-16 Andrew Cagney <ac131313@redhat.com>
244 * MAINTAINERS (language support): Daniel Jacobwitz is C++
247 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
249 * c-typeprint.c (is_type_conversion_operator): Add additional
250 check for non-conversion operators.
252 2002-01-15 Michael Snyder <msnyder@redhat.com>
254 * linux-proc.c: Add "info proc" command, a la procfs.c.
255 (read_mapping): New function, abstract and re-use code.
256 (linux_find_memory_regions): Use new func read_mapping.
257 (linux_info_proc_cmd): New function, implement "info proc".
258 (_initialize_linux_proc): Add new command "info proc".
260 2002-01-15 Michael Snyder <msnyder@redhat.com>
262 * symfile.c (generic_load): Use bfd_map_over_sections method
263 instead of manipulating bfd structure members directly.
264 (add_section_size_callback): New function, bfd sections callback
265 used by generic_load.
266 (load_sections_callback): New function, bfd sections callback
267 used by generic_load.
269 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
271 [Based on work by Jim Blandy]
272 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
273 (builtin_type_vec128): Export.
274 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
276 (builtin_type_vec128): New builtin type for 128 bit vector
278 (build_gdbtypes): Initialize builtin_type_v16qi and
279 builtin_type_v8hi. Create the vec128 register builtin type
281 (build_builtin_type_vec128): New function.
282 (_initialize_gdbtypes): Register builtin_type_v16qi and
283 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
284 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
285 AltiVec register to new builtin type.
287 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
289 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
292 2002-01-14 Andrew Cagney <ac131313@redhat.com>
294 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
295 CLEAN_UP_REGISTER_VALUE.
296 * regcache.c (supply_register): Update only call.
298 2002-01-14 Andrew Cagney <ac131313@redhat.com>
300 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
301 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
302 a29k-*-vxworks* targets as obsolete.
304 2002-01-14 Michael Snyder <msnyder@redhat.com>
306 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
307 until we can resolve portability issues.
308 * gregset.h: Remove references to fpxregs.
309 * gcore.c (gcore_command): Initialize note_sec to NULL.
311 2002-01-13 Andrew Cagney <ac131313@redhat.com>
313 * signals.c (target_signal_to_name): Rewrite. Only use
314 signals[].name when in bounds and non-NULL.
316 2002-01-13 Andrew Cagney <ac131313@redhat.com>
318 From Petr Ledvina <ledvinap@kae.zcu.cz>:
319 * signals.c (target_signal_to_name): Verify that SIG is within the
320 bounds of the signals array.
322 2002-01-13 Andrew Cagney <ac131313@redhat.com>
324 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
326 2002-01-13 Keith Seitz <keiths@redhat.com>
328 * stack.c (print_frame_info_base): Print the frame's pc
329 only if when print_frame_info_listing_hook is not defined.
331 2002-01-13 Keith Seitz <keiths@redhat.com>
333 * varobj.c (varobj_set_value): Make sure that there were no
334 errors evaluating the object before attempting to set its
336 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
337 so this offset adjustment is no longer necessary.
338 (create_child): Don't set the error flag if the child is
340 (value_of_child): If value_fetch_lazy fails, return NULL
341 so that callers will be notified that an error occurred.
342 (c_value_of_variable): Delay check of variable's validity
343 until later. We actually want all structs and unions to have
345 Do not return "???" for variables which could not be evaluated.
346 This error condition must be returned to the caller so that it
347 can get the error condition from gdb.
348 (cplus_name_of_child): Adjust index for vptr before figuring
349 out the name of the child.
350 (cplus_value_of_child): If a child's (real) parent is not valid,
351 don't even bother trying to give a value for it. Just return
352 an error. Change all instances in this function.
353 (cplus_type_of_child): If our parent is one of the "fake"
354 parents, we need to get at the type of the real parent, and
355 derive the child's true type using this information.
357 2002-01-13 Andrew Cagney <ac131313@redhat.com>
359 From 2002-01-09 John Marshall <johnm@falch.net>:
360 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
361 sources.redhat.com, and tweak some related URLs which had
362 suffered from linkrot.
364 2002-01-13 Andrew Cagney <ac131313@redhat.com>
367 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
368 structures passed in registers.
370 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
372 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
373 white space which prevented compilation. Reported by DSK
374 <dsk@student.unsw.edu.au>.
376 2002-01-11 Michael Snyder <msnyder@redhat.com>
378 * symfile.c (build_section_addr_info_from_section_tab):
379 Use bfd access method instead of manipulating bfd directly.
380 (syms_from_objfile): Ditto.
381 (simple_overlay_update_1): Ditto.
382 (simple_overlay_update): Ditto.
383 (generic_load): Ditto.
384 (overlay_unmapped_address): FIXME comment, bfd access methods.
385 (sections_overlap): FIXME comment, bfd access methods.
386 (pc_in_mapped_range): FIXME comment, bfd access methods.
387 (pc_in_unmapped_range): FIXME comment, bfd access methods.
388 (section_is_mapped): FIXME comment, bfd access methods.
389 (section_is_overlay): FIXME comment, bfd access methods.
391 * symfile.c (generic_load): Whitespace and long line cleanups.
392 Remove duplicate variable, change several local variables to
393 more appropriate data types.
394 (print_transfer_performance): Use %lu instead of %ld for ulongs.
396 2002-01-12 Andrew Cagney <ac131313@redhat.com>
399 * language.c (longest_local_hex_string_custom): Use phex_nz to
400 convert NUM to a hex string.
402 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
404 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
406 Update Copyright year.
408 2002-01-12 Andrew Cagney <ac131313@redhat.com>
410 * language.c (longest_raw_hex_string): Delete unused function.
412 2002-01-11 Petr Sorfa <petrs@caldera.com>
414 * MAINTAINERS (write-after-approval): Add myself.
415 * dwarf2read.c (read_tag_string_type): Handling of
417 (read_tag_string_type): FORTRAN fix to prevent propagation of
419 (set_cu_language): Handling of DW_LANG_Fortran95
421 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
423 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
424 GETPID(inferior_ptid).
425 (store_inferior_registers): Likewise.
427 2002-01-10 Jason Merrill <jason@redhat.com>
429 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
432 2002-01-10 Andrew Cagney <ac131313@redhat.com>
434 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
435 and bfd/elf32-sh-nbsd.c.
437 2002-01-10 Michael Snyder <msnyder@redhat.com>
439 * NEWS: Mention --pid and corefile/proc-id behavior change.
441 * Makefile.in: Add rules for gcore.o and linux-proc.o.
442 * gcore.c: Include cli/cli-decode.h instead of command.h.
444 * main.c (captured_main): Add new command line option "--pid".
445 If the second command line argument (following the symbol-file)
446 begins with a digit, try to attach to it before trying to open
448 (print_gdb_help): Document the "--pid" argument.
450 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
452 * completer.c (command_completer): New function.
454 * completer.h <command_completer>: Add prototype.
456 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
457 completer for the "help" command.
459 2002-01-09 Jason Merrill <jason@redhat.com>
461 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
463 2002-01-09 Michael Snyder <msnyder@redhat.com>
465 * i386-linux-nat.c (fill_fpxregset): Make global.
466 (store_fpxregset): Ditto.
468 * gregset.h (gdb_fpxregset_t): Define.
469 (supply_fpxregset): Prototype.
470 (fill_fpxregset): Prototype.
472 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
474 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
476 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
477 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
478 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
480 2002-01-09 Andrew Cagney <ac131313@redhat.com>
482 * MAINTAINERS: Update target maintainer rules so that any
483 Maintainer can approve a tested patch for a maintenance-only
486 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
488 * MAINTAINERS (write-after-approval): Add myself.
490 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
493 2002-01-08 Michael Snyder <msnyder@redhat.com>
495 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
496 real name of the executable, rather than the /proc name.
498 2002-01-03 Michael Snyder <msnyder@redhat.com>
500 Implement a "generate-core-file" command in gdb, save target state.
501 * gcore.c: New file. Implement new command 'generate-core-file'.
502 Save a corefile image of the current state of the inferior.
503 * linux-proc.c: Add linux-specific code for saving corefiles.
504 * target.h (struct target_ops): Add new target vectors for saving
505 corefiles; to_find_memory_regions and to_make_corefile_notes.
506 (target_find_memory_regions): New macro.
507 (target_make_corefile_notes): New macro.
508 * target.c (update_current_target): Inherit new target methods.
509 (dummy_find_memory_regions): New place-holder method.
510 (dummy_make_corefile_notes): New place-holder method.
511 (init_dummy_target): Initialize new dummy target vectors.
512 * exec.c (exec_set_find_memory_regions): New function.
513 Allow the exec_ops vector for memory regions to be taken over.
514 (exec_make_note_section): New function, target vector method.
515 * defs.h (exec_set_find_memory_regions): Export prototype.
516 * procfs.c (proc_find_memory_regions): New function, corefile method.
517 (procfs_make_note_section): New function, corefile method.
518 (init_procfs_ops): Set new target vector pointers.
519 (find_memory_regions_callback): New function.
520 (procfs_do_thread_registers): New function.
521 (procfs_corefile_thread_callback): New function.
522 * sol-thread.c (sol_find_memory_regions): New function.
523 (sol_make_note_section): New function.
524 (init_sol_thread_ops): Initialize new target vectors.
525 * inftarg.c (inftarg_set_find_memory_regions): New function.
526 Allow to_find_memory_regions vector to be taken over.
527 (inftarg_set_make_corefile_notes): New function.
528 Allow to_make_corefile_notes vector to be taken over.
529 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
530 interface layer if not target_has_execution (may be a corefile).
531 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
532 * config/sparc/sun4sol2.mh: Ditto.
533 * config/alpha/alpha-linux.mh: Ditto.
534 * config/arm/linux.mh: Ditto.
535 * config/i386/x86-64linux.mh: Ditto.
536 * config/ia64/linux.mh: Ditto.
537 * config/m68k/linux.mh: Ditto.
538 * config/mips/linux.mh: Ditto.
539 * config/powerpc/linux.mh: Ditto.
540 * config/sparc/linux.mh: Ditto.
542 2002-01-07 Michael Snyder <msnyder@redhat.com>
544 * arm-linux-nat.c: Remove references to regcache.c internal data
545 (registers[] and register_valid[]).
547 2002-01-07 Michael Snyder <msnyder@redhat.com>
549 * linux-proc.c: New file. Implement child_pid_to_exec_file,
550 so that attaching to a pid will automatically read the process's
551 symbol file and shlibs.
552 * Makefile.in: Add rule for linux-proc.o.
553 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
554 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
555 * config/arm/linux.mh: Ditto.
556 * config/i386/linux.mh: Ditto.
557 * config/i386/x86-64linux.mh: Ditto.
558 * config/ia64/linux.mh: Ditto.
559 * config/m68k/linux.mh: Ditto.
560 * config/mips/linux.mh: Ditto.
561 * config/powerpc/linux.mh: Ditto.
562 * config/sparc/linux.mh: Ditto.
564 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
566 * win32-nat.c: Add i386-tdep.h dependency.
568 2002-01-07 Michael Snyder <msnyder@redhat.com>
570 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
571 instead of bfd_get_arch_size. Don't bail out just because
574 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
575 * p-valprint.c (pascal_object_print_value): Ditto.
576 * somread.c (som_symtab_read): Ditto.
577 * symfile.c (simple_free_overlay_region_table): Ditto.
578 * valops.c (value_assign): Ditto.
580 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
581 use tilde_expand and strerror for opening save-tracepoints file.
583 * thread-db.c (thread_db_new_objfile): Indendation fix.
585 * infptrace.c (GDB_MAX_ALLOCA): New define.
586 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
587 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
588 can be overridden with whatever value is appropriate to the host).
589 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
590 alloca to allocate potentially large buffer.
591 * rs6000-nat.c (child_xfer_memory): Ditto.
592 * symm-nat.c (child_xfer_memory): Ditto.
593 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
595 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
597 From Nick Clifton <nickc@redhat.com>
598 * d10v-tdep.c: Set STACK_START to 0x200bffe.
600 2002-01-07 Michael Snyder <msnyder@redhat.com>
602 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
603 Don't use exec_bfd if it's NULL.
605 2002-01-06 Mark Kettenis <kettenis@gnu.org>
607 * valops.c (value_arg_coerce): Fix formatting.
609 2002-01-06 Andrew Cagney <ac131313@redhat.com>
611 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
614 2002-01-06 Andrew Cagney <ac131313@redhat.com>
616 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
617 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
618 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
619 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
620 z8k-coff have not been multi-arched. Update z8k-coff build
623 2002-01-06 Andrew Cagney <ac131313@redhat.com>
625 * MAINTAINERS: Mark a29k target as obsolete.
626 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
627 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
629 * NEWS: Note that a29k targets are obsolete.
630 * a29k-tdep.c: Mark as obsolete.
631 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
632 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
633 a29k-*-vxworks* targets as obsolete.
634 * remote-adapt.c: Obsolete.
635 * remote-eb.c: Obsolete.
636 * remote-mm.c: Obsolete.
637 * remote-udi.c: Obsolete.
638 * config/a29k/a29k-udi.mt: Obsolete.
639 * config/a29k/a29k.mt: Obsolete.
640 * config/a29k/tm-a29k.h: Obsolete.
641 * config/a29k/tm-vx29k.h: Obsolete.
642 * config/a29k/vx29k.mt: Obsolete.
644 2002-01-05 Andrew Cagney <ac131313@redhat.com>
646 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
649 2002-01-05 Andrew Cagney <ac131313@redhat.com>
651 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
652 * configure, config.in: Re-generate.
653 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
654 * defs.h: Do not include <endian.h>.
656 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
658 * acconfig.h (HAVE_PT_GETXMMREGS): New.
659 * config.in: Regenerate.
660 * configure.in: Update copyright years.
661 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
662 * configure: Regenerate.
663 * i386bsd-nat.c: Update copyright years.
664 (fill_gregset): Use regcache_collect.
665 (fetch_inferior_registers): Only fetch integer registers
666 if requested to do so. Add support for XMM registers
668 (store_inferior_registers): Only store integer registers
669 if requested to do so. Add support for XMM registers
671 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
672 (store_inferior_registers): Remove.
673 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
674 (fetch_elfcore_registers): New function.
675 (i386nbsd_elfcore_fns): New.
676 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
677 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
679 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
680 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
681 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
682 * config/i386/tm-nbsd.h: Update copyright years.
683 (HAVE_SSE_REGS): Define.
684 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
685 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
686 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
687 (SIGCONTEXT_PC_OFFSET): Remove.
688 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
690 2002-01-05 Andrew Cagney <ac131313@redhat.com>
692 * configure.tgt: Remove powerpc-*-macos* target.
693 * config/m68k/xm-mpw.h: Delete file.
694 * config/xm-mpw.h: Delete file.
695 * ser-mac.c: Delete file.
696 * mpw-make.sed: Delete file.
697 * mpw-config.in: Delete file.
698 * mac-xdep.c: Delete file.
699 * mac-gdb.r: Delete file.
700 * mac-defs.h: Delete file.
701 * mac-nat.c: Delete file.
702 * config/powerpc/macos.mh: Delete file.
703 * config/powerpc/macos.mt: Delete file.
704 * config/powerpc/nm-macos.h: Delete file.
705 * config/powerpc/tm-macos.h: Delete file.
706 * source.c (openp, open_source_file): Remove obsolete code.
707 * top.c (gdb_readline): Ditto.
708 * utils.c (query): Ditto.
709 * event-top.c (display_gdb_prompt): Ditto.
710 * Makefile.in (ser-mac.o): Delete obsolete target.
713 2002-01-04 Andrew Cagney <ac131313@redhat.com>
715 * defs.h (BIG_ENDIAN): Delete macro definition.
716 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
717 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
718 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
719 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
720 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
721 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
722 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
723 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
724 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
725 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
726 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
727 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
728 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
729 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
730 * gdbarch.c: Re-generate.
732 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
734 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
737 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
739 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
741 2002-01-04 Andrew Cagney <ac131313@redhat.com>
743 * value.h (value_ptr): Delete typedef.
745 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
747 * i386nbsd-nat.c: Update copyright years.
750 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
752 * stabsread.c: Update copyright years.
754 From Debashis Mahata <debashis.mahata@wipro.com>:
755 (read_struct_fields): Deal with Sun C compiler erroneous stab
756 output for structs and unions.
759 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
761 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
764 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
766 * cp-abi.c: Fix whitespace.
767 (baseclass_offset): New wrapper function.
768 * cp-abi.h (baseclass_offset): Add prototype.
769 (struct cp_abi_ops): Add baseclass_offset pointer.
771 * valops.c (vb_match): Move to...
772 * gnu-v2-abi.c (vb_match): here.
773 * valops.c (baseclass_offset): Move to...
774 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
776 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
778 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
779 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
780 * hpacc-abi.c (init_hpacc_ops): Likewise.
782 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
784 * valops.c (find_overload_match): Accept obj as a
785 reference parameter. Update it before returning.
786 * value.h (find_overload_match): Update prototype.
787 * eval.c (evaluate_subexp_standard): Pass object to
788 find_overload_match by reference.
790 2002-01-03 Andrew Cagney <ac131313@redhat.com>
792 * valarith.c: Replace value_ptr with struct value pointer. Remove
793 register attribute from value declarations.
796 * scm-lang.c (scm_lookup_name): Ditto.
798 2002-01-03 Michael Snyder <msnyder@redhat.com>
800 Abstract the functionality of iterating over mapped memory
801 regions into a general purpose iterator function.
802 * procfs.c (iterate_over_mappings): New function, general purpose
803 iterator for memory sections.
804 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
805 (solib_mappings_callback): New function, callback for above.
806 (info_proc_mappings): Reimpliment using iterate_over_mappings.
807 (info_mappings_callback): New function, callback for above.
809 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
811 2002-01-01 Mark Kettenis <kettenis@gnu.org>
813 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
814 * i386-tdep.c: Include "elf-bfd.h".
815 (process_note_abi_tag_sections): New function.
816 (i386_gdbarch_init): Add code to recognize various OS/ABI
819 * maint.c (_initialize_maint_cmds): Add missing \ in
822 For older changes see ChangeLog-2001
828 version-control: never