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