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