1 2002-11-26 Andrew Cagney <ac131313@redhat.com>
3 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
4 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
5 * gdbarch.c: Re-generate.
7 2002-11-26 Andrew Cagney <ac131313@redhat.com>
9 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
10 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
11 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
12 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
13 pc_in_call_dummy_at_entry_point.
14 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
15 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
16 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
17 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
18 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
19 pc_in_call_dummy_on_stack.
20 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
21 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
22 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
23 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
24 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
26 2002-11-26 Andrew Cagney <ac131313@redhat.com>
28 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
29 pc_in_call_dummy_before_text_end
30 (deprecated_pc_in_call_dummy_after_text_end): Rename
31 pc_in_call_dummy_after_text_end.
32 (deprecated_pc_in_call_dummy_on_stack): Rename
33 pc_in_call_dummy_on_stack.
34 (deprecated_pc_in_call_dummy_at_entry_point): Rename
35 pc_in_call_dummy_at_entry_point.
36 * m68k-tdep.c (m68k_gdbarch_init): Update.
37 * s390-tdep.c (s390_gdbarch_init): Update.
38 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
39 * vax-tdep.c (vax_gdbarch_init): Update.
40 * sparc-tdep.c (sparc_gdbarch_init): Update.
41 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
42 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
43 * i386-tdep.c (i386_gdbarch_init): Update.
44 * frv-tdep.c (frv_gdbarch_init): Update.
45 * cris-tdep.c (cris_gdbarch_init): Update.
46 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
47 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
48 (deprecated_pc_in_call_dummy_after_text_end)
49 (deprecated_pc_in_call_dummy_on_stack)
50 (deprecated_pc_in_call_dummy_at_entry_point): Update.
51 * alpha-tdep.c (alpha_gdbarch_init): Update.
53 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
55 * acconfig.h (HAVE_PREAD64): Add.
56 * configure.in: Check for pread64.
57 * config.in: Regenerated.
58 * configure: Regenerated.
59 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
60 * linux-proc.c (linux_proc_xfer_memory): New function.
61 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
63 2002-11-25 David Carlton <carlton@math.stanford.edu>
65 * dwarf2read.c (scan_partial_symbols): Descend into namespace
68 2002-11-25 Andrew Cagney <ac131313@redhat.com>
70 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
71 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
73 2002-11-25 Jim Blandy <jimb@redhat.com>
75 * symfile.c (init_objfile_sect_indices): New function.
76 (default_symfile_offsets): Move the section-index-initializing
77 stuff into init_objfile_sect_indices, and call that.
79 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
80 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
82 * symfile.c (syms_from_objfile): Adjust indentation.
84 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
85 || info_verbose isn't true.
87 2002-11-24 Andrew Cagney <ac131313@redhat.com>
89 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
90 default to get_frame_base.
91 * gdbarch.h, gdbarch.c: Regenerate.
92 * arch-utils.c (default_frame_address): Delete function.
93 * arch-utils.h (default_frame_address): Delete declaration
95 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
97 * varobj.c (find_frame_addr_in_frame_chain):
98 Use get_frame_base instead of FRAME_FP,
101 2002-11-19 Andrew Cagney <ac131313@redhat.com>
103 * frame.h (FRAME_FP): Delete macro.
104 (get_frame_base): New function declaration.
105 * frame.c (get_frame_base): New function.
106 (get_frame_id): Use ->frame.
107 (frame_find_by_id): Rewrite to use get_frame_id.
108 * blockframe.c: Use get_frame_base instead of FRAME_FP.
109 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
110 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
111 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
112 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
113 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
114 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
116 2002-11-24 Andrew Cagney <ac131313@redhat.com>
118 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
120 2002-11-24 Andrew Cagney <ac131313@redhat.com>
122 * frame.c (set_unwind_by_pc): Revert change below, use
124 (get_prev_frame): Ditto.
126 2002-11-24 Andrew Cagney <ac131313@redhat.com>
128 * dummy-frame.c (pc_in_dummy_frame): New function.
129 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
130 (find_dummy_frame): Update comment.
131 (generic_pop_current_frame): Use get_frame_type.
132 * dummy-frame.h (pc_in_dummy_frame): Declare.
133 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
134 (create_new_frame): Use pc_in_dummy_frame.
135 (get_prev_frame): Use pc_in_dummy_frame.
136 (frame_saved_regs_register_unwind): Use get_prev_frame.
137 (deprecated_generic_get_saved_register): Use get_prev_frame.
139 2002-11-23 Andrew Cagney <ac131313@redhat.com>
141 * blockframe.c (find_frame_addr_in_frame_chain): Move function
143 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
144 (varobj_create): Note that frame ID should be used.
145 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
147 2002-11-23 Andrew Cagney <ac131313@redhat.com>
149 * breakpoint.c: Include "gdb_assert.h".
150 (deprecated_frame_in_dummy): Assert that generic dummy frames are
152 * Makefile.in (breakpoint.o): Update dependencies.
153 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
154 deprecated_frame_in_dummy.
155 * stack.c (print_frame_info_base): Ditto.
157 (print_frame_info_base): Ditto. Delete dead code.
159 2002-11-23 Andreas Schwab <schwab@suse.de>
161 * Makefile.in (m68k_tdep_h): Define.
162 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
163 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
164 * m68k-tdep.c: Move register number enum ...
165 * m68k-tdep.h: ... to this new file and rename the constants from
166 E_* to M68K_*. All uses changed.
167 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
168 * abug-rom.c: Include "m68k-tdep.h". Use
169 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
170 * cpu32bug-rom.c: Likewise.
171 * dbug-rom.c: Likewise.
172 * m68k-tdep.c: Likewise.
173 * m68klinux-nat.c: Likewise.
174 * remote-est.c: Likewise.
175 * rom68k-rom.c: Likewise.
176 * config/m68k/tm-linux.h: Likewise.
178 2002-11-23 Andrew Cagney <ac131313@redhat.com>
180 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
181 dummy frame initialization code.
182 * mips-tdep.c (mips_gdbarch_init): Ditto.
184 2002-11-22 Christopher Faylor <cgf@redhat.com>
186 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
189 2002-11-22 Andrew Cagney <ac131313@redhat.com>
191 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
192 to default_frame_address.
193 * gdbarch.h, gdbarch.c: Re-generate.
195 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
196 or frame_locals_address to default_frame_address.
197 * m68k-tdep.c (m68k_gdbarch_init): Update.
198 * i386-tdep.c (i386_gdbarch_init): Update.
199 * frv-tdep.c (frv_gdbarch_init): Update.
200 * sh-tdep.c (sh_gdbarch_init): Update.
201 * v850-tdep.c (v850_gdbarch_init): Update.
202 * sparc-tdep.c (sparc_gdbarch_init): Update.
203 * mips-tdep.c (mips_gdbarch_init): Update.
204 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
205 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
206 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
208 * cris-tdep.c (cris_frame_args_address): Delete function.
209 (cris_frame_locals_address): Delete function.
210 (cris_gdbarch_init): Do not set frame_args_address or
211 frame_locals_address.
213 2002-11-22 Michael Snyder <msnyder@redhat.com>
215 * thread-db.c (thread_db_load): Tell the user what's going on
216 if dlopen fails on libthread_db.
218 2002-11-23 Andreas Schwab <schwab@suse.de>
220 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
221 invariant return values.
223 2002-11-22 Andreas Schwab <schwab@suse.de>
225 * valops.c (value_slice): Move declaration of `offset' to avoid
228 2002-11-22 Christopher Faylor <cgf@redhat.com>
230 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
231 (struct so_stuff): Add end_addr field.
232 (register_loaded_dll): Calculate and store end address of loaded dll.
233 (solib_address): New function.
234 (child_solib_loaded_library_pathname): Pass carefully constructed
235 section info to safe_symbol_file_add rather than ignoring it.
236 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
238 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
239 (child_create_inferior): Fix a compiler warning.
240 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
241 (solib_address): Declare new function.
243 2002-11-22 Andreas Schwab <schwab@suse.de>
245 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
248 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
250 * maint.c (_initialize_maint_cmds): Fix typo. From
251 Francesco Potorti` <pot@gnu.org>.
253 2002-11-21 Andrew Cagney <cagney@redhat.com>
255 * mips-tdep.c (mips_dump_tdep): Delete references to
256 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
257 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
258 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
259 * printcmd.c (build_address_symbolic): Delete calls to
260 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
261 (address_info): Ditto.
264 2002-11-19 Klee Dienes <kdienes@apple.com>
265 Adam Fedor <fedor@gnu.org>
267 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
268 the ability to explicitly specify the quote characters and word
269 break characters; if NULL is specified for either, use the old
270 behavior of using the characters used by the completer.
271 (skip_chars): New function. Convenience wrapper around
272 skip_quoted_chars to provide the original skip_chars behavior.
273 * completer.h (skip_quoted_chars): Add prototype.
275 2002-11-19 Andrew Cagney <ac131313@redhat.com>
277 Problems reported by Paul Eggert.
278 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
280 2002-11-19 Andreas Schwab <schwab@suse.de>
282 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
283 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
284 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
285 (m68k_linux_frame_saved_pc): Move to ...
286 * m68klinux-tdep.c: ... here. New file.
287 * Makefile.in (m68klinux-tdep.o): Add dependencies.
288 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
290 2002-11-19 Adam Fedor <fedor@gnu.org>
292 * objc-exp.y: Revert to old skip_quoted usage.
294 2002-11-19 Adam Fedor <fedor@gnu.org>
296 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
297 (objc_lang_h): Define.
298 (YYFILES): Add objc-exp.tab.c.
299 (local-maintainer-clean): Remove objc-exp.tab.c.
300 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
302 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
304 * p-exp.y (typecast rule): Add automatic dereference of
305 pascal classes if needed.
306 (THIS): Set current_type.
307 Automatically dereference pascal classes.
308 (typebase rule): Add ^typebase recognition.
310 2002-11-18 Adam Fedor <fedor@gnu.org>
312 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
313 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
314 (op_name): Handle OP_OBJC_SELF.
315 * Makefile.in (expprint.o): Add additional depends.
317 2002-11-18 Adam Fedor <fedor@gnu.org>
319 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
320 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
321 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
322 * objc-exp.y: Likewise.
324 2002-11-18 Adam Fedor <fedor@gnu.org>
326 * gdb/parser-defs.h: (struct objc_class_str): New structure
327 for parsing ObjC classes.
329 2002-11-18 Andrew Cagney <ac131313@redhat.com>
331 * stack.c (frame_relative_level): Copy function from here ...
332 * frame.c (frame_relative_level): ...to here.
334 2002-11-18 Andrew Cagney <ac131313@redhat.com>
336 * frame.h (enum frame_type): Define.
337 (get_frame_type): Declare.
338 (struct frame_info): Add field `type'. Delete field
339 signal_handler_caller.
340 (deprecated_set_frame_signal_handler_caller): Declare.
341 * frame.c (get_frame_type): New function.
342 (deprecated_set_frame_type): New function.
343 (create_new_frame): Set the frame's type.
344 (get_prev_frame): Similar.
345 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
346 * s390-tdep.c: Ditto.
347 * m68klinux-nat.c: Ditto.
348 * ns32k-tdep.c: Ditto.
349 * x86-64-linux-tdep.c: Ditto.
351 * rs6000-tdep.c: Ditto.
352 * ppc-linux-tdep.c: Ditto.
353 * i386-interix-tdep.c: Ditto.
354 * mips-tdep.c: Ditto.
355 * m68k-tdep.c: Ditto.
356 * hppa-tdep.c: Ditto.
357 * ia64-tdep.c: Ditto.
358 * cris-tdep.c: Ditto.
360 * alpha-tdep.c: Ditto.
361 * i386-tdep.c: Ditto.
364 * blockframe.c: Update.
365 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
366 deprecated_set_frame_type instead of signal_handler_caller.
367 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
368 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
369 * breakpoint.h: Delete FIXME suggesting get_frame_type.
371 2002-11-18 Klee Dienes <kdienes@apple.com>
373 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
375 2002-11-18 Klee Dienes <kdienes@apple.com>
377 * buildsym.c (pop_context): Add comment.
379 2002-11-18 Klee Dienes <kdienes@apple.com>
381 * buildsym.h (pop_context): Convert to function, defined in
383 * buildsym.c: Include gdb_assert.h.
384 (pop_context): Implement as C function. Add check for stack
386 * dbxread.c (process_one_symbol): Complain and stop processing
387 that symbol if we are already at the top of the context stack for
388 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
389 when processing N_RBRAC.
391 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
393 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
395 (struct target_waitstatus): Add opaque definition.
396 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
397 * exec.c (init_exec_ops): Likewise.
398 * fork-child.c (clone_and_follow_inferior): Remove.
399 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
400 * inferior.h (clone_and_follow_inferior): Remove prototype.
401 * infrun.c (follow_fork_mode_both): Remove.
402 (follow_fork_mode_kind_names): Remove commented out "both".
403 (follow_inferior_fork): Remove follow_fork_mode_both support.
404 * inftarg.c (child_clone_and_follow_inferior): Remove.
405 (child_post_follow_inferior_by_clone): Remove.
406 (init_child_ops): Don't set to_clone_and_follow_inferior
407 or to_post_follow_inferior_by_clone.
408 * target.c (default_clone_and_follow_inferior): Remove.
409 (cleanup_target): Don't set to_clone_and_follow_inferior
410 or to_post_follow_inferior_by_clone.
411 (find_default_clone_and_follow_inferior): Remove.
412 (init_dummy_target): Don't set to_clone_and_follow_inferior.
413 (debug_to_clone_and_follow_inferior): Remove.
414 (debug_to_post_follow_inferior_by_clone): Remove.
415 (setup_target_debug): Don't set to_clone_and_follow_inferior
416 or to_post_follow_inferior_by_clone.
417 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
418 and to_post_follow_inferior_by_clone.
419 (child_clone_and_follow_inferior): Remove prototype.
420 (child_post_follow_inferior_by_clone): Remove prototype.
421 (target_clone_and_follow_inferior): Remove macro.
422 (target_post_follow_inferior_by_clone): Remove macro.
423 (find_default_clone_and_follow_inferior): Remove prototype.
425 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
427 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
428 inferior_has_vforked, and inferior_has_execd instead of
429 target_has_forked, target_has_vforked, and target_has_execd.
430 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
431 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
432 (CHILD_WAIT): Define.
433 (child_wait): Add prototype.
434 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
436 (hpux_has_vforked): Likewise, from child_has_vforked.
437 (hpux_has_execd): Likewise, from child_has_execd.
438 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
439 (not_same_real_pid, child_wait): New, copied from inftarg.c.
440 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
441 and hpux_has_syscall_event instead of the target hooks.
442 * infrun.c (inferior_has_forked, inferior_has_vforked)
443 (inferior_has_execd): New functions.
444 * inftarg.c (not_same_real_pid): Remove.
445 (child_wait): Remove references to not_same_real_pid,
446 target_has_forked, target_has_vforked, target_has_execd,
447 and target_has_syscall_event.
448 (child_has_forked, child_has_vforked, child_has_execd)
449 (child_has_syscall_event): Remove.
450 (init_child_ops): Remove references to child_has_forked,
451 child_has_vforked, child_has_execd, and child_has_syscall_event.
452 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
453 (hpux_has_vforked): Likewise, from child_has_vforked.
454 (hpux_has_execd): Likewise, from child_has_execd.
455 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
456 * target.c (cleanup_target): Remove references to
457 to_has_forked, to_has_vforked, to_has_execd, and
458 to_has_syscall_event.
459 (update_current_target): Likewise.
460 (setup_target_debug): Likewise.
461 (debug_to_has_forked): Remove.
462 (debug_to_has_vforked): Remove.
463 (debug_to_has_execd): Remove.
464 (debug_to_has_syscall_event): Remove.
465 * target.h (struct target_ops): Remove to_has_forked.
466 to_has_vforked, to_has_execd, and to_has_syscall_event.
467 (child_has_forked, child_has_vforked, child_has_execd)
468 (child_has_syscall_event): Remove prototypes.
469 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
471 (target_has_forked, target_has_vforked, target_has_execd)
472 (target_has_syscall_event): Remove macros.
474 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
476 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
477 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
478 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
479 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
480 * target.c (cleanup_target): Remove reference to
481 to_can_follow_vfork_prior_to_exec.
482 (update_current_target): Likewise.
483 (debug_to_can_follow_vfork_prior_to_exec): Remove.
484 (setup_target_debug): Remove reference to
485 to_can_follow_vfork_prior_to_exec.
486 * target.h (struct target_ops): Remove
487 to_can_follow_vfork_prior_to_exec.
488 (child_can_follow_vfork_prior_to_exec): Remove prototype.
489 (target_can_follow_vfork_prior_to_exec): Remove definition.
490 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
492 * infrun.c (follow_vfork_when_exec): Remove.
493 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
494 (follow_exec): Likewise.
495 (handle_inferior_event): Likewise.
496 (keep_going): Likewise.
498 2002-11-15 Andrew Cagney <cagney@redhat.com>
500 * frame.c (generic_unwind_get_saved_register): Make static.
501 * frame.h (generic_unwind_get_saved_register): Delete declaration.
502 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
503 defaults to generic_unwind_get_saved_register.
504 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
505 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
506 * frv-tdep.c (frv_gdbarch_init): Ditto.
507 * i386-tdep.c (i386_gdbarch_init): Ditto.
508 * s390-tdep.c (s390_gdbarch_init): Ditto.
509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
510 * v850-tdep.c (v850_gdbarch_init): Ditto.
511 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
512 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
513 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
515 2002-11-15 Andrew Cagney <cagney@redhat.com>
517 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
520 2002-11-15 Andrew Cagney <cagney@redhat.com>
522 * frame.h (sigtramp_saved_pc): Delete declaration.
523 * blockframe.c (sigtramp_saved_pc): Delete function.
524 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
525 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
526 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
527 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
529 2002-11-15 Andrew Cagney <ac131313@redhat.com>
531 * frame.c (frame_pc_unwind): New function.
532 (frame_saved_regs_pc_unwind): New function.
533 (frame_register_unwind): Pass unwind_cache instead of
534 register_unwind_cache.
535 (set_unwind_by_pc): Add unwind_pc parameter, set.
536 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
537 (get_prev_frame): Ditto.
538 * frame.h (frame_pc_unwind_ftype): Declare.
539 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
540 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
541 (frame_pc_unwind): Declare.
542 * dummy-frame.c (dummy_frame_pc_unwind): New function.
543 (struct dummy_frame): Add comment mentioning that values are for
545 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
546 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
547 (generic_file_frame_chain_valid): Ditto.
548 * stack.c (frame_info): Ditto.
550 2002-11-15 David Carlton <carlton@math.stanford.edu>
552 * linespec.c (locate_first_half): New function.
553 (decode_line_1): Move code into locate_first_half.
555 2002-11-15 Andrew Cagney <ac131313@redhat.com>
557 * complaints.h: Add comment explaining how to eliminate a
558 deprecated_complain call.
559 * complaints.h: Fix spelling errors.
561 2002-11-15 David Carlton <carlton@math.stanford.edu>
563 * printcmd.c: Remove #include "disasm.h".
565 2002-11-14 Andrew Cagney <ac131313@redhat.com>
567 * frame.h: Move the most relevant interface functions to the start
570 2002-11-14 Andrew Cagney <ac131313@redhat.com>
572 * regcache.h (deprecated_registers): Rename registers.
573 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
574 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
575 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
576 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
577 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
578 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
579 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
580 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
581 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
582 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
583 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
586 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
588 * utils.c (gdb_realpath): Add comment mentioning realpath with a
591 2002-11-13 Andrew Cagney <cagney@redhat.com>
593 * regcache.h (deprecated_read_register_bytes): Rename
595 (deprecated_write_register_bytes): Rename write_register_bytes.
596 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
597 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
598 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
599 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
600 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
601 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
602 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
603 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
604 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
605 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
606 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
607 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
608 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
609 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
611 2002-11-13 Jim Blandy <jimb@redhat.com>
613 * findvar.c (read_var_value): Doc fix.
615 2002-11-13 Andrew Cagney <cagney@redhat.com>
617 * regcache.c (struct regcache): Replace passthough_p with
619 (regcache_xmalloc): Initialize readonly_p.
620 (build_regcache): Initialize readonly_p.
621 (regcache_save): New function.
622 (regcache_restore): New function.
623 (regcache_cpy): Re-implement using regcache_save and
625 (regcache_raw_read): Update.
626 (regcache_cooked_read): When a read-only cache, checked for cached
627 pseudo register values.
628 (regcache_raw_write): Assert that the cache is not read-only.
629 Remove code handling a non-passthrough cache.
630 * regcache.h (regcache_save): Declare.
631 (regcache_restore): Declare.
633 2002-11-13 Andrew Cagney <cagney@redhat.com>
635 * regcache.c (struct regcache_descr): Add fields
636 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
637 (init_legacy_regcache_descr): Compute the size of a cooked
638 register cache and then assign that to sizeof_raw_registers. Set
639 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
640 (init_legacy_regcache_descr): Ditto.
642 2002-11-13 Andrew Cagney <cagney@redhat.com>
644 * regcache.c (register_buffer): Move to near start of file, update
646 (regcache_raw_read): Use.
647 (regcache_raw_write): Use.
648 (struct regcache): Rename raw_registers to registers and
649 raw_register_valid_p to register_valid_p.
650 (regcache_xmalloc): Update.
651 (regcache_xfree): Update.
652 (register_buffer): Update.
653 (regcache_cpy): Update.
654 (regcache_cpy_no_passthrough): Update.
655 (regcache_valid_p): Update.
656 (deprecated_grub_regcache_for_registers): Update.
657 (deprecated_grub_regcache_for_register_valid): Update.
658 (set_register_cached): Update.
659 (regcache_raw_write): Update.
661 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
663 * p-exp.y (name_not_typename): Use copy_name to
664 set current_type variable for fields of THIS.
666 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
668 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
669 * monitor.c (init_base_monitor_ops): Likewise.
670 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
671 * remote-array.c (init_array_ops): Likewise.
672 * remote-e7000.c (init_e7000_ops): Likewise.
673 * remote-es.c (init_es1800_ops): Likewise.
674 (init_es1800_child_ops): Likewise.
675 * remote-rdp.c (init_remote_rdp_ops): Likewise.
676 * remote-sim.c (init_gdbsim_ops): Likewise.
677 * remote-st.c (init_st2000_ops): Likewise.
678 * sol-thread.c (init_sol_core_ops): Likewise.
679 (init_sol_thread_ops): Likewise.
680 * v850ice.c (init_850ice_ops): Likewise.
681 * win32-nat.c (init_child_ops): Likewise.
682 * wince.c (init_child_ops): Likewise.
684 2002-11-12 Andrew Cagney <ac131313@redhat.com>
686 * utils.c (gdb_realpath): Make rp a constant pointer.
688 2002-11-12 Andrew Cagney <ac131313@redhat.com>
690 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
691 a constant buffer; cannonicalize_file_name(); realpath() with a
692 pathconf() defined buffer, xstrdup().
694 2002-11-12 Andrew Cagney <ac131313@redhat.com>
696 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
697 to hang2.C; hang3.c to hang3.C.
699 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
701 * findvar.c (read_var_value): Reenable TLS code.
703 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
704 Jim Blandy <jimb@redhat.com>
706 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
707 * target.c (update_current_target): Add
708 to_get_thread_local_address.
709 * target.h (to_get_thread_local_address): Export.
710 (target_get_thread_local_address): Define.
711 (target_get_thread_local_address_p): Define.
712 * thread-db.c: Include solib-svr4.h.
713 (td_thr_tls_get_addr_p): Define.
714 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
715 (thread_db_get_thread_local_address): New function.
716 (init_thread_db_ops): Initialize to_get_thread_local_address.
717 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
718 * configure: Regenerate.
719 * config.in: Regenerate.
721 2002-11-11 David Carlton <carlton@math.stanford.edu>
723 * linespec.c (set_flags): New function.
724 (decode_line_1): Move code into set_flags.
726 2002-11-11 David Carlton <carlton@math.stanford.edu>
728 * linespec.c (decode_line_1): Move chunks of code to separate
730 (initialize_defaults): New function.
731 (decode_indirect): New function.
733 2002-11-11 Andrew Cagney <ac131313@redhat.com>
735 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
736 instead of void_code_ptr.
737 (sigtramp_saved_pc): Ditto.
739 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
742 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
744 * gdbtypes.h (struct main_type): Move artificial flag out of
745 loc. New member of ``struct field'' named static_kind. Reduce
746 overloaded meaning of bitsize.
747 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
748 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
749 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
751 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
753 (template_to_fixed_record_type, template_to_static_fixed_type)
754 (to_record_with_fixed_variant_part): Likewise.
755 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
756 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
757 * dwarfread.c (struct_type, enum_type): Likewise.
758 * hpread.c (hpread_read_enum_type)
759 (hpread_read_function_type, hpread_read_doc_function_type)
760 (hpread_read_struct_type): Likewise.
761 * mdebugread.c (parse_symbol): Likewise.
763 2002-11-10 Andrew Cagney <ac131313@redhat.com>
765 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
766 * stack.c (print_frame_info_base): Update.
767 (print_frame_info_base, frame_info): Update.
768 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
769 (sparc_frame_saved_pc): Update.
770 * ada-lang.c (find_printable_frame): Update.
771 * breakpoint.c (deprecated_frame_in_dummy): Update.
773 2002-11-09 Mark Kettenis <kettenis@gnu.org>
775 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
777 (regmap): Extend to cover all registers.
778 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
779 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
781 (fetch_register, sore_register): Simplify.
782 (old_fetch_inferior_registers, old_store_inferior_registers):
784 (cannot_fetch_register, cannot_store_register): Change
785 implementation to use regmap array to decide which registers
786 cannot be fetched/stored. This removes $orig_eax from the
787 registers that cannot be fetched/stored.
788 (fetch_inferior_registers): Call fetch_register directly instead
789 of calling old_fetch_inferior_registers.
790 (store_inferior_registers): Call store_register directly instead
791 of calling old_store_inferior_registers.
792 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
793 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
794 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
796 2002-11-09 Klee Dienes <kdienes@apple.com>
798 * i387-tdep.c (i387_supply_register): When called with NULL as a
799 buffer, mark the register as not provided (to mirror the behavior
801 (i387_supply_fxsave): Ditto.
802 (i387_supply_fsave): Ditto (inherits the behavior from
803 i387_supply_register).
805 2002-11-09 Klee Dienes <kdienes@apple.com>
807 * blockframe.c (sigtramp_saved_pc): Use
808 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
809 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
810 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
812 2002-11-09 Andrew Cagney <ac131313@redhat.com>
814 * frame.c (get_prev_frame): Test prev_p to identify a previously
815 unwound frame. Initialize prev_p.
816 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
819 2002-11-09 Andrew Cagney <ac131313@redhat.com>
821 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
822 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
823 more comments. Zap dead code.
825 2002-11-09 Mark Kettenis <kettenis@gnu.org>
827 * infcmd.c (print_vector_info, print_float_info): Move code that
828 checks whether the target has any registers and whether there is a
829 selected frame up, such that it is also used if a target provides
830 multi-arch definitions of these functions.
832 2002-11-08 Andrew Cagney <ac131313@redhat.com>
834 * Makefile.in (DESTDIR): Define.
835 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
838 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
839 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
841 2002-11-08 Andrew Cagney <ac131313@redhat.com>
843 * i386-linux-tdep.c: Include "reggroups.h".
844 (i386_linux_register_reggroup_p): New function.
845 (i386_linux_init_abi): Set register_reggroup_p to
846 i386_linux_register_reggroup_p.
847 * i386-tdep.h (i386_register_reggroup_p): Declare.
848 * i386-tdep.c: Include "reggroups.h".
849 (i386_init_reggroups): New function.
850 (i386_add_reggroups): New function.
851 (i386_register_reggroup_p): New function.
852 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
853 (_initialize_i386_tdep): Call i386_init_reggroups.
854 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
857 2002-11-09 Mark Kettenis <kettenis@gnu.org>
859 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
860 request that's available in *BSD.
862 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
864 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
867 2002-11-08 Andrew Cagney <ac131313@redhat.com>
869 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
870 * dummy-frame.c (find_dummy_frame): Rename
871 generic_find_dummy_frame, make static. Return the dummy frame
872 instead of the regcache.
873 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
874 (cached_find_dummy_frame): New function. Use find_dummy_frame.
875 (dummy_frame_register_unwind): Rename
876 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
877 * dummy-frame.h (dummy_frame_register_unwind): Rename
878 generic_call_dummy_register_unwind.
880 2002-11-08 Mark Kettenis <kettenis@gnu.org>
882 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
883 except the inclusion of "i386/tm-i386.h", to...
884 * config/i386/nm-i386v42mp.h: ...here.
885 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
887 2002-11-08 Andrew Cagney <ac131313@redhat.com>
889 * Makefile.in (frame.o): Update dependencies.
890 * blockframe.c (current_frame, frame_obstack_alloc)
891 (frame_saved_regs_zalloc, get_current_frame)
892 (set_current_frame, create_new_frame)
893 (set_unwind_by_pc, get_next_frame)
894 (flush_cached_frames, reinit_frame_cache)
895 (frame_saved_regs_register_unwind)
896 (deprecated_generic_get_saved_register)
897 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
898 (_initialize_blockframe): Move frame code from here...
899 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
900 "annotate.h" and "dummy-frame.h".
901 (_initialize_frame): New function.
903 2002-11-08 Jim Blandy <jimb@redhat.com>
905 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
906 when we finish a function a context.
907 * buildsym.h (outermost_context_p): New macro.
908 (Bug analyzed by David Edelsohn.)
910 2002-11-08 Andrew Cagney <ac131313@redhat.com>
912 * blockframe.c: Include "dummy-frame.h".
913 (struct dummy_frame, dummy_frame_stack)
914 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
915 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
916 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
917 (generic_save_call_dummy_addr, generic_pop_current_frame)
918 (generic_pop_dummy_frame, generic_fix_call_dummy)
919 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
920 dummy frame code from here...
921 * dummy-frame.c: ...to here. New file.
922 * dummy-frame.h: New file.
923 (generic_call_dummy_register_unwind): Declare.
924 (generic_find_dummy_frame): Declare.
925 * Makefile.in (SFILES): Add dummy-frame.c.
926 (dummy-frame.o): Specify dependencies.
927 (dummy_frame_h): Define.
928 (COMMON_OBS): Add dummy-frame.o.
929 (blockframe.o): Update dependencies.
931 2002-11-08 Jim Blandy <jimb@redhat.com>
933 * dwarf2read.c (read_func_scope): Restore local_symbols and
934 param_symbols after we finish the function context. (Based on a
935 patch from David Edelsohn.)
937 2002-11-08 David Carlton <carlton@math.stanford.edu>
939 * linespec.c (symbol_found): New function.
940 (minsym_found): New function.
941 (decode_line_1): Separate out some code into separate functions.
943 2002-11-08 Joel Brobecker <brobecker@gnat.com>
945 * i386-tdep.c (i386_frameless_signal_p): Make non static for
946 the benefit of the interix target.
947 * i386-tdep.h (i386_frameless_signal_p): Declare.
949 2002-11-08 Andrew Cagney <ac131313@redhat.com>
951 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
952 declaration that snuck in from change below.
954 2002-11-06 Andrew Cagney <cagney@redhat.com>
956 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
958 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
959 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
960 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
961 (i386_mxcsr_regnum_p): new function. Use instead of
963 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
964 (i386_sse_regnum_p): Declare.
965 (i386_mxcsr_regnum_p): Declare.
966 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
967 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
968 (IS_FP_REGNUM): Update definition.
969 (IS_FPU_CTRL_REGNUM): Update definition..
970 (IS_SSE_REGNUM): Update definition..
971 * i386v-nat.c (register_u_addr): Update.
972 * go32-nat.c (fetch_register): Update.
973 (store_register): Update.
975 2002-11-07 Joel Brobecker <brobecker@gnat.com>
977 Preparation work to convert the hppa targets to multiarch partial.
979 * hppa-tdep.c: Add new functions replacing macro bodies from
980 config/pa/tm-hppa.h. These function will be used to initialize
981 the gdbarch structure. Import some comments from tm-hppa.h,
982 and place them where appropriate, to avoid loosing them when
983 we cleanup this file.
984 (hppa_reg_struct_has_addr): New function.
985 (hppa_inner_than): New function.
986 (hppa_stack_align): New function.
987 (hppa_pc_requires_run_before_use): New function.
988 (hppa_instruction_nullified): New function.
989 (hppa_register_byte): New function.
990 (hppa_register_virtual_type): New function.
991 (hppa_store_struct_return): New function.
992 (hppa_cannot_store_register): New function.
993 (hppa_frame_args_address): New function.
994 (hppa_frame_locals_address): New function.
995 (hppa_smash_text_address): New function.
996 (hppa_coerce_float_to_double): New function. Requires the inclusion
999 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1001 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1002 gdbarch-eligible macro to a call to the new associated function
1003 created in hppa-tdep.c.
1004 (INNER_THAN): Likewise.
1005 (STACK_ALIGN): Likewise.
1006 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1007 (INSTRUCTION_NULLIFIED): Likewise.
1008 (REGISTER_BYTE): Likewise.
1009 (REGISTER_VIRTUAL_TYPE): Likewise.
1010 (STORE_STRUCT_RETURN): Likewise.
1011 (CANNOT_STORE_REGISTER): Likewise.
1012 (FRAME_ARGS_ADDRESS): Likewise.
1013 (FRAME_LOCALS_ADDRESS): Likewise.
1014 (SMASH_TEXT_ADDRESS): Likewise.
1015 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1016 (ABOUT_TO_RETURN): Delete, as no longer used.
1018 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1020 * printcmd.c (disassemble_command): Remove obsolete function.
1021 (_initialize_printcmd): Do not create disassemble command here.
1022 * cli/cli-cmds.c (disassemble_command): New function. Implements
1023 disassemble command.
1024 (init_cli_cmds): Create disassemble command here instead.
1026 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1028 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1030 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1032 * regcache.h (regcache_cooked_read_using_offset_hack)
1033 (regcache_cooked_write_using_offset_hack): Delete declarations.
1034 (register_changed): Delete declaration.
1035 * regcache.c (regcache_cooked_read_using_offset_hack)
1036 (regcache_cooked_write_using_offset_hack): Delete functions.
1037 (cooked_xfer_using_offset_hack): Delete function.
1038 (register_changed): Delete function.
1040 2002-11-07 Jim Blandy <jimb@redhat.com>
1042 * macroscope.c: #include "complaints.h".
1043 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1044 but not in the macro table.
1045 * Makefile.in (macroscope.o): Record dependency.
1047 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1049 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1051 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1053 * regcache.c (deprecated_registers_fetched): Update.
1054 * regcache.h (deprecated_registers_fetched): Rename
1056 * remote-vxsparc.c (vx_read_register): Update.
1057 * remote-vxmips.c (vx_read_register): Update.
1058 * remote-vx68.c (vx_read_register): Update.
1059 * irix5-nat.c (fetch_core_registers): Update.
1060 * mipsm3-nat.c (fetch_inferior_registers): Update.
1061 * sun3-nat.c (fetch_inferior_registers): Update.
1062 * symm-nat.c (fetch_inferior_registers): Update.
1063 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1064 (fetch_core_registers): Update.
1065 (fetch_kcore_registers): Update.
1066 * mips-nat.c (fetch_inferior_registers): Update.
1067 * corelow.c (get_core_registers): Update.
1068 * a68v-nat.c (fetch_inferior_registers): Update.
1070 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1072 Put in place the framework necessary for multiarching the hppa targets.
1073 * hppa-tdep.c (hppa_gdbarch_init): New function.
1074 (hppa_dump_tdep): New function.
1075 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1076 tdep structure dumper.
1077 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1078 until the multi-arching conversion has partially been completed.
1080 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1082 * valops.c (value_assign): Merge lval_register case into
1083 lval_reg_frame_relative. Use frame_register and
1084 regcache_cooked_write instead of get_saved_register and
1085 write_register_bytes. After flushing the register cache, try to
1086 re-select the selected frame.
1088 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1090 * regcache.h (deprecated_register_valid): Rename register_valid.
1091 * regcache.c: Update.
1092 * ia64-aix-nat.c: Update.
1093 * i386gnu-nat.c: Update.
1094 * alpha-nat.c: Update.
1095 * sparc-nat.c: Update.
1096 * lynx-nat.c: Update.
1097 * remote-mips.c: Update.
1099 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1101 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1102 to end of file, to be more consistent with the pratice followed
1105 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1107 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1108 (print_float_info): Print registers in float_reggroup.
1109 (print_vector_info): Print registers in vector_reggroup.
1110 (default_print_registers_info): When all, print registers in
1111 all_reggroup. Otherwize, print registers in general_reggroup.
1112 (registers_info): Rewrite. Add support for register groups.
1115 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1117 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1119 (symtab_symbol_info): Remove eons old ifdeffed out code.
1120 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1123 2002-11-06 Theodore A. Roth <troth@openavr.org>
1125 * c-exp.y: Add missing semi-colons.
1126 * f-exp.y: Add missing semi-colons.
1127 * m2-exp.y: Add missing semi-colons.
1128 * p-exp.y: Add missing semi-colons.
1129 Add empty action to start rule to avoid a type clash error when
1130 building with bison >= 1.50.
1132 2002-11-06 Jim Blandy <jimb@redhat.com>
1134 * macrotab.h (struct macro_source_file): Doc fix.
1136 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1138 * varobj.c (child_exists, cplus_number_of_children): Change
1139 STREQ macro references to strcmp.
1140 (cplus_name_of_child): Change code to handle the fact that
1141 fields are not necessarily contiguous with regards to their
1142 access control. This is a fix for PR gdb/792.
1144 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1146 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1147 * gdbarch.h, gdbarch.c: Regnerate.
1148 * frame.h (frame_register): Declare.
1149 * frame.c (frame_register): New function.
1150 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1151 GET_SAVED_REGISTER, otherwize call
1152 generic_unwind_get_saved_register.
1153 (frame_register_read): Use frame_register instead of
1156 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1158 From Jim Ingham <jingham@apple.com>:
1159 * event-top.c (gdb_disable_readline): New function.
1160 (_initialize_event_loop): Move comment.
1162 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1164 * event-loop.c (start_event_loop): Add comment.
1167 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1169 * infcmd.c (default_print_registers_info): Do not call
1170 PRINT_REGISTER_HOOK.
1172 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1174 * sparc-tdep.c (sparc_print_register_hook): Make static.
1175 (sparc_print_registers_info): New function.
1176 (sparc_do_registers_info): New function.
1177 (sparclet_print_registers_info): New function.
1178 (sparclet_do_registers_info): New function.
1179 (do_sparc_print_registers_info): New function.
1180 (sparc_print_registers): New static function, clone of infcmd.c's
1181 default_print_registers_info.
1182 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1183 (sparclet_do_registers_info): Declare.
1184 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1185 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1187 (sparc_do_registers_info): Declare.
1188 (PRINT_REGISTER_HOOK): Delete macro.
1189 (sparc_print_register_hook): Delete declaration.
1191 2002-11-05 David Carlton <carlton@math.stanford.edu>
1193 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1195 (lookup_symbol_aux_local): New function.
1196 (lookup_symbol_aux_symtabs): New function.
1197 (lookup_symbol_aux_psymtabs): New function.
1199 2002-11-05 David Carlton <carlton@math.stanford.edu>
1201 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1202 previous values of 'objfile' and 'block'.
1204 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1206 * values.c (value_change_enclosing_type): Set
1207 enclosing_type field correctly also for the case where
1208 more memory needs to be allocated.
1210 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1212 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1215 * i387-tdep.c (i387_print_float_info): Replace calls to
1216 register_read and deprecated_read_register_gen with calls to
1217 frame_register_read, and make the necessary adjustments to the
1220 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1222 * gdbarch.sh (register_reggroup_p): Allow default value.
1223 * gdbarch.h, gdbarch.c: Regenerate.
1225 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1227 * regcache.h: Add coment indicating replacements for deprecated
1230 2002-11-02 Andrew Cagney <cagney@redhat.com>
1232 * reggroups.h, reggroups.c: New files.
1233 * regcache.c: Include "reggroups.h".
1234 (enum regcache_dump_what): Add `regcache_dump_groups'.
1235 (regcache_dump): Contract size of the "Type" column. When
1236 specified, dump the register's groups.
1237 (maintenance_print_register_groups): New function.
1238 (_initialize_regcache): Add command `maint print register-groups'.
1239 * Makefile.in (COMMON_OBS): Add reggroups.o
1240 (SFILES): Add reggroups.c.
1241 (reggroups_h): Define.
1242 (regcache.o, gdbarch.o): Update dependencies.
1243 (reggroups.o): Specify dependencies.
1244 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1245 Add opaque declaration for `struct reggroup' in generated .h file.
1246 Include "reggroups.h" in generated .c file.
1247 gdbarch.h, gdbarch.c: Re-generate.
1249 2002-11-02 Andrew Cagney <cagney@redhat.com>
1251 * regcache.h (deprecated_read_register_gen): Rename
1253 (deprecated_write_register_gen): Rename write_register_gen.
1254 * i387-tdep.c: Update.
1255 * x86-64-linux-nat.c: Update
1257 * thread-db.c: Update.
1258 * win32-nat.c: Update.
1259 * mips-tdep.c: Update.
1260 * d10v-tdep.c: Update.
1261 * cris-tdep.c: Update.
1262 * remote-sim.c: Update.
1263 * remote-rdi.c: Update.
1264 * remote-rdp.c: Update.
1267 * blockframe.c: Update.
1268 * x86-64-tdep.c: Update.
1269 * xstormy16-tdep.c: Update.
1270 * sh-tdep.c: Update.
1271 * s390-tdep.c: Update.
1272 * rs6000-tdep.c: Update.
1273 * sparc-tdep.c: Update.
1274 * i386-tdep.c: Update.
1275 * dwarf2cfi.c: Update.
1276 * regcache.c: Update.
1278 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1280 New interix-specific files:
1281 * config/i386/nm-interix.h: New file.
1282 * config/i386/interix.mh: New file.
1283 * config/i386/interix.mt: New file.
1284 * i386-interix-nat.c: New file.
1285 * i386-interix-tdep.c: New file.
1287 2002-11-01 Andrew Cagney <cagney@redhat.com>
1289 * frame.h (deprecated_generic_get_saved_register): Rename
1290 generic_get_saved_register.
1291 * blockframe.c (deprecated_generic_get_saved_register): Update.
1292 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1293 (xstormy16_frame_saved_register): Update.
1294 * sh-tdep.c (sh_gdbarch_init): Update.
1295 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1296 * ia64-tdep.c (ia64_get_saved_register): Update.
1297 * cris-tdep.c (cris_gdbarch_init): Update.
1298 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1299 * arm-tdep.c (arm_gdbarch_init): Update.
1301 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1303 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1305 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1307 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1308 trampolines in sigaction.
1310 2002-10-31 Andrew Cagney <cagney@redhat.com>
1312 * h8300-tdep.c: Include "gdb_assert.h".
1313 (h8300_print_register): Add gdbarch, file and frame parameters.
1314 Use frame_read_unsigned_register to read the register's value.
1315 Use fprintf_filtered to display output.
1316 (h8300_print_registers_info): Replace h8300_do_registers_info.
1317 (h8300_gdbarch_init): Set print_registers_info.
1319 2002-10-31 Andrew Cagney <cagney@redhat.com>
1321 * frame.c (frame_read_unsigned_register): New function.
1322 (frame_read_signed_register): New function.
1323 * frame.h (frame_read_unsigned_register): Declare.
1324 (frame_read_signed_register): Declare.
1326 2002-10-31 Andrew Cagney <cagney@redhat.com>
1328 * h8500-tdep.c (h8500_print_registers_info): New static function,
1329 clone of infcmd.c's default_print_registers_info.
1330 (h8500_do_registers_info): New funtion.
1331 (h8500_print_register_hook): Rename print_register_hook, make
1334 * config/h8500/tm-h8500.h: Update copyright.
1335 (DEPRECATED_DO_REGISTERS_INFO): Define.
1336 (h8500_do_registers_info: Declare.
1337 (PRINT_REGISTER_HOOK): Delete macro.
1338 (print_register_hook): Delete function.
1340 2002-10-31 Andrew Cagney <cagney@redhat.com>
1342 * z8k-tdep.c (z8k_print_register_hook): Make static.
1343 (z8k_print_registers_info): New static function, clone of
1344 infcmd.c's default_print_registers_info.
1345 (z8k_do_registers_info): New function. Wrap
1346 z8k_print_registers_info.
1347 * config/z8k/tm-z8k.h: Update copyright.
1348 (PRINT_REGISTER_HOOK): Delete macro.
1349 (z8k_print_register_hook): Delete declaration.
1350 (DEPRECATED_DO_REGISTERS_INFO): Define.
1351 (z8k_do_registers_info): Declare.
1353 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1355 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1356 as this is already provided by value.h, and was actually causing
1357 a compilation error because of a conflict in parameter type
1358 declaration due to a missing const keyword.
1359 (low_text_segment_addres): Fix a compilation warning.
1361 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1363 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1364 registers without a name.
1365 (mips_linux_cannot_store_register): Don't store registers without
1368 2002-10-28 David Carlton <carlton@math.stanford.edu>
1370 * symtab.c (find_addr_symbol): Delete. (It was already commented
1372 * symtab.h: Delete prototype for find_addr_symbol.
1374 2002-10-26 Andrew Cagney <cagney@redhat.com>
1376 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1378 gdbarch.h, gdbarch.c: Re-generate.
1379 * infcmd.c (default_print_registers_info): Update reference.
1380 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1381 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1382 * sh-tdep.c (sh_gdbarch_init): Ditto.
1383 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1384 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1386 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1388 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1389 cfi_init_extra_frame_info.
1390 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1391 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1393 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1394 target where necessary. Add more comments and remove the ones
1395 that don't provide any useful information.
1397 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1398 deprecated_read_register_dummy with
1399 frame_unwind_unsigned_register.
1401 * i386-tdep.c (i386_extract_struct_value_address): Use
1402 regcache_raw_read_unsigned instead of
1403 regcache_cooked_read_unsigned since we know that the register
1404 we're reading isn't a pseudo register. Rename variable 'val' into
1405 the more descriptive 'addr'.
1407 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1408 (x86_64_push_return_address): Add comment.
1409 (x86_64_pop_frame): Make static.
1410 (examine_argument): Clarify comment.
1411 (x86_64_skip_prologue): Make prolog_expact variable static.
1413 * dwarf2cfi.c: Fix some formatting problems.
1414 (context_cpy, read_encoded_pointer): Clarify comments.
1416 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1417 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1418 i386 target back into x86_64_gdbarch_init. Add some comments and
1419 remove meaningless ones.
1421 2002-10-25 Andrew Cagney <cagney@redhat.com>
1423 * complaints.h (struct deprecated_complaint): Rename `struct
1425 * complaints.c (complain): Update.
1426 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1427 incorrect comment indicating that "symfile.h" was being included
1428 for the `struct complaint' definition.
1429 * remote-vx.c: Update.
1430 * objc-lang.c: Update.
1431 * xcoffread.c: Update.
1433 * mdebugread.c: Update.
1434 * stabsread.c: Update.
1435 * dwarf2read.c: Update.
1436 * dwarfread.c: Update.
1437 * elfread.c: Update.
1438 * coffread.c: Update.
1439 * stabsread.h: Update.
1440 * dbxread.c: Update.
1441 * buildsym.c: Update.
1442 * gdbtypes.c: Update.
1443 * macrotab.c: Update.
1445 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1447 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1448 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1449 (x86_64_init_abi): ...new function.
1451 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1452 * i386v-nat.c: Include "i386-tdep.h".
1454 2002-10-25 Andrew Cagney <cagney@redhat.com>
1456 * gdbtypes.c (address_space_name_to_int): Update.
1457 (address_space_int_to_name): Update.
1458 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1459 multi-arch predicate.
1460 (address_class_name_to_type_flags): Ditto.
1461 * gdbarch.h, gdbarch.c: Re-generate.
1463 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1465 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1467 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1469 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1471 * symtab.h (INIT_SAL): Delete macro.
1473 * symtab.c (init_sal): New function.
1475 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1476 to init_sal function call.
1477 (find_sal_from_funcs_and_line): Ditto.
1478 (all_sals_for_line): Ditto.
1479 * breakpoint.c (create_internal_breakpoint): Ditto.
1480 (create_fork_vfork_event_catchpoint): Ditto.
1481 (create_exec_event_catchpoint): Ditto.
1482 (parse_breakpoint_sals): Ditto.
1483 (watch_command_1): Ditto.
1484 (handle_gnu_4_16_catch_command): Ditto.
1485 (clear_command): Ditto.
1486 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1487 * infcmd.c (run_stack_dummy): Ditto.
1488 * infrun.c (process_event_stop_test): Ditto.
1489 (check_sigtramp2): Ditto.
1490 (step_over_function): Ditto.
1491 * linespec.c (decode_line_2): Ditto.
1492 (decode_line_1): Ditto.
1493 * source.c (line_info): Ditto.
1494 * symtab.c (find_pc_sect_line): Ditto.
1496 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1498 * dwarf2cfi.c (struct context)
1499 (struct context_reg): Moved to dwarf2cfi.h
1500 (context_alloc, frame_state_alloc, context_cpy):
1501 Made extern instead of static, removed prototypes.
1502 * dwarf2cfi.h (struct context)
1503 (struct context_reg): New, moved from dwarf2cfi.c
1504 (context_alloc, frame_state_alloc, context_cpy):
1506 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1507 Changed from static to extern.
1508 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1509 (LINUX_SIGCONTEXT_FP_OFFSET)
1510 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1511 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1512 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1513 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1514 set_gdbarch_*() calls now use x86-64 specific functions
1515 instead of DWARF2 CFI ones.
1516 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1517 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1518 (x86_64_init_extra_frame_info): New prototypes.
1520 2002-10-23 David Carlton <carlton@math.stanford.edu>
1522 * linespec.c: #include "parser-defs.h".
1523 Delete prototype for find_template_name_end.
1524 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1526 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1528 * NEWS: add recent mi fixes.
1529 * varobj.c (struct varobj): Add new "updated" flag.
1530 (new_variable): Default "updated" flag to 0.
1531 (varobj_set_value): Set "updated" flag to 1 if value
1533 (varobj_update): Check varobj "updated" flag before
1534 comparing old and refreshed values. Fix for
1537 2002-10-23 David Carlton <carlton@math.stanford.edu>
1539 * parse.c (parse_exp_1): Use BLOCK_START.
1540 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1542 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1544 2002-10-23 David Carlton <carlton@math.stanford.edu>
1546 * symtab.c: Delete cplusplus_hint.
1547 Delete prototype for find_template_name_end.
1549 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1551 * symtab.h: Update comment.
1553 2002-10-23 Michael Snyder <msnyder@redhat.com>
1555 * printcmd.c (address_info): Restore quotes in output.
1556 * valops.c (value_of_local): Restore quotes in error message.
1558 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1560 * symtab.c (symbol_demangled_name): New function.
1561 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1562 turning most of it into a function.
1563 (symbol_demangled_name): Export.
1565 2002-10-23 Michael Snyder <msnyder@redhat.com>
1567 * valops.c (value_of_local): Restore quotes in error message.
1569 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1571 * symtab.c (symbol_init_language_specific): New function.
1572 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1573 turning most of it into a function.
1574 (symbol_init_language_specific): Export.
1576 2002-10-23 David Carlton <carlton@math.stanford.edu>
1578 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1579 (dwarf_attr_name): Ditto.
1580 (dwarf_type_encoding_name): Ditto.
1581 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1582 (process_die): Handle DW_TAG_namespace,
1583 DW_TAG_imported_declaration, DW_TAG_imported_module.
1584 (read_namespace): New function.
1586 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1588 * configure.in: Define NEW_PROC_API on Interix too.
1589 * configure: Regenerate.
1591 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1593 * configure: Regenerate using the proper version of autoconf.
1595 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1597 * findvar.c (read_var_value): Temporarily disable TLS code, until
1598 complete TLS support is added.
1600 2002-10-21 Jim Blandy <jimb@redhat.com>
1601 Elena Zannoni <ezannoni@redhat.com>
1603 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1604 for thread local storage locations.
1605 (struct symbol): Add objfile field.
1606 (SYMBOL_OBJFILE): Define.
1607 * dwarf2read.c (is_thread_local): New static variable.
1608 (new_symbol): If variable is in thread local fill in address class
1609 and objfile appropriately.
1610 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1612 * printcmd.c (address_info): Print the information for thread
1613 local storage variable.
1614 * findvar.c (read_var_value): In case of thread local variable,
1615 defer to the target vector code to compute address.
1617 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1619 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1620 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1622 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1624 * symtab.h (address_class): Rename
1625 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1626 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1627 * printcmd.c (address_info): Ditto.
1628 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1630 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1632 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1633 DBREG_DRX macro to acces debug registers.
1635 * Makefile.in (i386obsd-tdep.o): New target.
1637 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1638 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1640 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1641 * config/i386/obsd.mt: New file.
1642 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1643 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1644 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1645 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1646 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1647 * i386obsd-tdep.c: New file.
1649 2002-10-19 Adam Fedor <fedor@gnu.org>
1651 * objc-exp.y (name_not_typename): Fix invalid comment.
1653 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1655 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1656 to allocate partial syms and macro byte caches.
1658 2002-10-18 David Carlton <carlton@math.stanford.edu>
1660 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1662 2002-10-18 Adam Fedor <fedor@gnu.org>
1664 * stabsread.c (find_name_end): New function.
1665 (define_symbol): Use it.
1667 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1669 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1670 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1671 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1672 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1674 2002-10-17 David Carlton <carlton@math.stanford.edu>
1676 * symfile.h: Add opaque declaration for struct obstack.
1677 Declare obsavestring to take a const char *.
1678 * symfile.c (obsavestring): Make first argument a const char *.
1680 2002-10-16 Adam Fedor <fedor@gnu.org>
1682 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1683 names when matching breakpoints in current file.
1685 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1687 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1688 (read_tag_pointer_type): Add address class support.
1689 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1690 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1692 * gdbarch.h, gdbarch.c: Regenerate.
1693 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1694 (make_type_with_address_space, recursive_type_dump): Add address
1696 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1697 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1698 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1700 2002-10-16 Klee Dienes <kdienes@apple.com>
1702 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1703 to get the last character of a char[] buffer, not
1704 name[sizeof(vptr_name)-1].
1706 2002-10-14 Adam Fedor <fedor@gnu.org>
1708 * symtab.h: New objc_specific struct.
1709 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1710 (SYMBOL_DEMANGLED_NAME): Likewise.
1712 2002-10-14 Adam Fedor <fedor@gnu.org>
1714 * symfile.c (init_filename_language_table): Add ObjC file extension.
1716 2002-10-14 Adam Fedor <fedor@gnu.org>
1718 * utils.c (puts_filtered_tabular): New function.
1719 (fprintf_symbol_filtered): Get ObjC demangled name.
1720 * defs.h (puts_filtered_tabular): Declared.
1722 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1724 * c-lang.h (c_type_print_varspec_prefix): Delete.
1725 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1726 ``need_post_space'' parameter. Adjust all callers.
1728 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1730 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1731 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1732 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1733 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1735 2002-10-13 Adam Fedor <fedor@gnu.org>
1737 * source.c (print_source_lines): Update comments.
1739 2002-10-13 Adam Fedor <fedor@gnu.org>
1741 * valops.c (value_of_local): New function.
1742 (value_of_this): Use it.
1743 * value.h (value_of_local): Declared.
1745 2002-10-13 Adam Fedor <fedor@gnu.org>
1747 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1748 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1750 2002-10-12 Adam Fedor <fedor@gnu.org>
1752 * language.c (binop_result_type): Add language_objc to case.
1753 (integral_type): Likewise.
1754 (character_type): Likewise.
1755 (string_type): Likewise.
1756 (boolean_type): Likewise.
1757 (structured_type): Likewise.
1758 (binop_type_check): Likewise.
1760 2002-10-11 Adam Fedor <fedor@gnu.org>
1762 * printcmd.c (address_info): Print 'self' for ObjC.
1764 2002-10-11 Adam Fedor <fedor@gnu.org>
1766 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1769 2002-10-11 Adam Fedor <fedor@gnu.org>
1771 * language.h (CAST_IS_CONVERSION): Add language_objc.
1773 2002-10-11 Adam Fedor <fedor@gnu.org>
1775 * defs.h (enum language): Add language_objc.
1777 2002-10-11 Klee Dienes <kdienes@apple.com>
1779 * corefile.c (read_memory_typed_address): New function.
1780 * gdbcore.h (read_memory_typed_address): Add prototype.
1781 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1782 to read a value destined for a CORE_ADDR, not read_memory_integer.
1783 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1784 (f77_get_dynamic_lowerbound): Ditto.
1786 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1788 * utils.c (string_to_core_addr): After turning string into
1789 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1790 which will do necessary sign-extension, etc.
1792 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1794 * c-exp.y (THIS): Delete token and grammar rule.
1795 (yylex): Don't return THIS.
1796 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1797 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1798 * demangle.c (cplus_markers): Update comment. Put '$'
1799 first. Remove CPLUS_MARKER.
1800 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1801 * jv-exp.y (THIS): Delete token and grammar rule.
1802 (yylex): Don't return THIS.
1803 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1804 * objc-exp.y (THIS): Delete token and grammar rule.
1805 (yylex): Don't return THIS.
1806 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1807 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1808 (read_member_functions): Likewise for opname.
1809 (read_tilde_fields): Use is_cplus_marker.
1811 * defs.h (CPLUS_MARKER): Don't define.
1812 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1813 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1814 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1815 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1816 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1818 * config/i386/tm-i386v4.h: Delete file.
1819 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1820 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1821 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1822 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1823 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1824 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1825 * config/i386/i386v4.mt (TM_FILE): Likewise.
1826 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1828 2002-10-10 Marko Mlinar <markom@opencores.org>
1830 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1831 accidentially not commited 2002-10-09
1832 * gdbarch.h, gdbarch.c: Re-generate.
1834 2002-10-09 Marko Mlinar <markom@opencores.org>
1836 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1837 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1838 * gdbarch.h, gdbarch.c: Re-generate.
1840 2002-10-08 Petr Sorfa <petrs@caldera.com>
1842 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1844 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1845 so we can work on more than one compilation unit at a time. This
1846 helps prepare GDB to handle inter-CU die references.
1847 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1848 the code to be defined before struct comp_unit_head.
1849 (comp_unit_head): Added new members - offset, cu_head,
1850 begin_die, next and dwarf2_abbrevs.
1851 (dwarf2_abbrevs): Removed single static var; now member of
1852 struct comp_unit_head.
1853 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1855 (psymtab_to_symtab_1): Changed to work with the new
1856 struct comp_unit_head.
1857 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1858 constructs the dwarf2_abbrevs[] inside the cu_header.
1859 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1860 dwarf2_abbrev table to clean up.
1861 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1862 handling of dwarf2_abbrevs inside the cu_header.
1863 (read_partial_die): Now supports the call to the new
1864 dwarf2_lookup_abbrev.
1865 (read_full_die): Now supports the call to the new
1866 dwarf2_lookup_abbrev.
1868 2002-10-06 Christopher Faylor <cgf@redhat.com>
1870 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1871 insure that shell variables, such as "transformed_name" are propagated
1872 to later shell statements in rule.
1874 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1876 * config/i386/nm-i386sco.h: Add protection against
1877 multiple-inclusion. Include "i386/nm-i386v.h".
1878 (REGISTER_U_ADDR): Remove define.
1879 (i386_register_u_addr): Remove prototype.
1881 2002-10-04 Michael Snyder <msnyder@redhat.com>
1883 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1884 before treating it as a single-step event.
1886 2002-10-03 Adam Fedor <fedor@gnu.org>
1888 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1889 (objc_demangle): Remove assignment in if statements, Replace
1891 (add_msglist): Likewise.
1892 (end_msglist): Likewise.
1893 (complare_selectors): Likewise.
1894 (selectors_info): Likewise.
1895 (compare_classes): Likewise.
1896 (classes_info): Likewise.
1897 (print_object_command): Likewise.
1898 (find_objc_msgcall_submethod): Replace PTR with void *.
1899 * objc-lang.h: Remove check for __STDC__.
1901 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1903 * ui-out.h (ui_out_field_fmt_int): New prototype.
1904 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1905 of field width and alignment.
1906 * stack.c (print_frame_info_base): When printing frame level, use
1907 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1910 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1912 * MAINTAINERS: Add self to Write After Approval list.
1914 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1916 * infcmd.c (interrupt_target_command_wrapper): Delete.
1917 (interrupt_target_command): Make non static.
1918 (nofp_registers_info): Make static.
1919 * stack.c (return_command_wrapper): Delete.
1920 (return_command): Make non static.
1922 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1924 * event-top.c (gdb_setup_readline): New function. Code moved from
1925 _initialize_event_loop().
1926 (_initialize_event_loop): Call gdb_setup_readline().
1928 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1930 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1931 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1932 * gdbarch.h, gdbarch.c: Re-generate.
1934 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1937 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1939 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1940 of fill_in_vptr_fieldno.
1942 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1944 * inferior.h (registers_info, stepi_command, nexti_command,
1945 continue_command, interrupt_target_command): Export from infcmd.c.
1946 * frame.h (args_info, selected_frame_level_changed_hook,
1947 return_command): Export from stack.c.
1948 * v850ice.c (stepi_command, nexti_command, continue_command): use
1949 prototypes from inferior.h.
1950 * tracepoint.c (registers_info, args_info, locals_info): Use
1951 prototypes from frame.h and inferior.h.
1952 * Makefile.in (mi-main.o): Add dependency on frame.h.
1954 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1956 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1957 value in register 3 adjusted by ppc_gp0_regnum.
1959 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1961 2002-10-02 Marko Mlinar <markom@opencores.org>
1963 * MAINTAINERS: Add myself to the Write After Approval list.
1965 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1967 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1968 of the section for the N64 ABI, fixed.
1970 * config/mips/tm-irix6.h: Include solib.h.
1972 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1974 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1977 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1979 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1980 and that "mi0" syntax has been removed.
1982 2002-09-30 David Carlton <carlton@math.stanford.edu>
1984 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1985 * ppc-sysv-tdep.c: #include "gdb_string.h".
1986 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1989 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1991 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1992 "vrsave"'s register number.
1994 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1996 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1997 use frame_unwind_signed_register to obtain the PC.
1998 (mips_frame_chain): Handle a generic dummy frame.
1999 (mips_init_extra_frame_info): When a generic dummy frame, don't
2000 re-compute the frame base.
2001 (mips_pop_frame): Handle generic dummy frames.
2002 (mips_gdbarch_init): When generic dummy frames, set
2003 use_generic_dummy_frames, push_dummy_frame to
2004 generic_push_dummy_frame, pc_in_call_dummy to
2005 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2006 generic_save_dummy_frame_tos.
2008 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2010 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2011 against TOP when TOP was explictly set.
2012 (generic_push_dummy_frame): Set TOP to zero.
2014 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2016 * event-loop.c (start_event_loop): Rename variable 'result' to
2017 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2019 2002-09-30 Keith Seitz <keiths@redhat.com>
2021 * gdb-events.sh (selected_thread_changed): New event.
2022 * gdb-events.c: Regenerated.
2023 * gdb-events.h: Regenerated.
2025 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2027 * MAINTAINERS: Add self to Write After Approval list.
2029 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2031 * disasm.c: New file.
2032 * disasm.h: New file.
2033 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2034 (compare_lines): Ditto.
2035 (dump_insns): Ditto.
2036 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2038 (do_assembly_only): Ditto.
2039 (do_disassembly): Renamed to gdb_disassembly and moved to
2040 disasm.c. Sdded uiout argument.
2041 * Makefile.in: Add new files. Reorder SFILES list. Update
2042 dependencies. Include libgdb.a later in the insight executable.
2044 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2046 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2047 bfd/elf64-alpha-fbsd.c.
2049 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2051 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2054 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2056 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2058 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2060 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2061 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2062 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2063 (S_msg_sig_post_reply): Ditto.
2065 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2067 * sh-tdep.c (sh_use_struct_convention): Use definition according
2069 (sh_push_arguments): Store in register with correct endianess.
2070 (sh_default_store_return_value): Ditto.
2071 (sh_gdbarch_init): Set sizeof long double to 8.
2073 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2075 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2076 Fix some whitespace problems.
2078 2002-09-27 David Carlton <carlton@math.stanford.edu>
2080 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2081 (mcore-tdep.o): Ditto.
2082 (ns32k-tdep.o): Ditto.
2083 (ns32knbsd-tdep.o): Ditto.
2085 (vax-tdep.o): Ditto.
2086 * cris-tdep.c: #include "gdb_string.h"
2087 * mcore-tdep.c: Ditto.
2088 * ns32k-tdep.c: Ditto.
2089 * ns32knbsd-tdep.c: Ditto.
2091 * vax-tdep.c: Ditto.
2093 2002-09-27 David Carlton <carlton@math.stanford.edu>
2095 * config/djgpp/fnchange.lst: Add entries for
2096 gdb/testsuite/gdb.c++/m-static files.
2098 2002-09-27 Jim Wilson <wilson@redhat.com>
2100 * MAINTAINERS: Add myself to the Write After Approval list.
2102 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2104 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2107 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2109 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2112 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2114 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2115 (rs6000_struct_return_address): Delete variable.
2116 (rs6000_store_struct_return): Update.
2117 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2118 deprecated_extract_struct_value_address.
2119 (rs6000_frame_align): New function.
2120 (rs6000_gdbarch_init): Set frame_align.
2122 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2124 From Grace Sainsbury <graces@redhat.com>:
2125 * Makefile.in (gdbtk-main.o): New target.
2126 (gdb.o): New target.
2128 (main.o): Update dependencies.
2129 (gdb$(EXEEXT)): Add gdb.o.
2130 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2131 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2132 (SUBDIR_GDBTK_CLEAN): Set.
2133 (install-gdbtk): Install the insight binary.
2134 (uninstall-gdbtk): New target.
2135 (all-gdbtk, clean-gdbtk): New rule.
2136 * top.c (use_windows): Default to zero.
2137 * main.c: Include "main.h".
2139 (struct captured_main_args): Delete.
2140 (gdb_main): New function.
2144 2002-09-25 Andrew Cagney <cagney@redhat.com>
2146 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2147 (frame_map_regnum_to_name): New function.
2148 (frame_map_name_to_regnum): New function.
2149 * frame.h (frame_map_name_to_regnum): Declare.
2150 (frame_map_regnum_to_name): Declare.
2151 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2152 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2153 * parse.c: Do not include "builtin-regs.h".
2154 (target_map_name_to_register): Delete function.
2155 (write_dollar_variable): Use frame_map_name_to_regnum.
2156 * parser-defs.h (target_map_name_to_register): Delete declaration.
2157 * expprint.c: Include "frame.h".
2158 (print_subexp): Use frame_map_regnum_to_name.
2159 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2160 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2162 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2164 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2165 wasn't saved, and the next innermost frame is a dummy, return the
2166 dummy frame's link register.
2168 2002-09-24 Jim Blandy <jimb@redhat.com>
2170 Fix from Paul Breed:
2171 * main.c (captured_main): Add a `break' after the case for 'b'.
2173 2002-09-24 Keith Seitz <keiths@redhat.com>
2175 * varobj.c (c_type_of_child): Use get_target_type instead
2176 of TYPE_TARGET_TYPE.
2178 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2180 * source.c (get_current_or_default_source_symtab_and_line): Remove
2182 (set_default_source_symtab_and_line): New function. Attempts to
2183 determine a source file to list lines from if one is not currently
2185 (get_current_source_symtab_and_line): Initialize sal.pc and
2187 (set_current_source_symtab_and_line): Mark argument as const.
2188 * source.h: Update declarations and comments.
2189 * linespec.c (decode_line_1): Replace call to removed routine above.
2190 * stack.c (print_frame_info_base): Ditto.
2191 * cli/cli-cmds.c (edit_command): Ditto.
2192 (list_command): Ditto.
2194 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2196 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2197 sal.pc and sal.end fields.
2198 (get_current_or_default_source_symtab_and_line): Ditto.
2199 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2200 so we do not cause a new source symtab to be searched for (reverting an
2201 unintentional change from the 2002-09-20 patch).
2202 * scm-lang.c (scm_unpac): Ditto.
2204 2002-09-21 Andrew Cagney <cagney@redhat.com>
2206 * complaints.c (symfile_explanations): Remove new-line from
2207 ``isolated_message''.
2208 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2209 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2211 2002-09-20 Nick Clifton <nickc@redhat.com>
2213 * NEWS: Announce that V850EA ISA is no longer supported.
2214 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2216 2002-09-20 David Carlton <carlton@math.stanford.edu>
2218 * Makefile.in (c-lang.o): Correct dependencies.
2219 (utils.o): Gather dependencies.
2221 * c-lang.c: #include "gdb_string.h"
2223 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2225 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2226 * cli/cli-cmds.c (list_command): New function. Implements the new
2228 (_init_cli_cmds): Add new command definition.
2229 * gdb.1: Document edit command.
2230 * doc/gdb.texinfo: Document edit command.
2232 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2234 * source.c: Make global variables current_source_symtab and
2235 current_source_line static.
2236 (list_command): Moved to cli/cli-cmds.c.
2237 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2238 (get_first_line_listed): New accessor function.
2239 (get_lines_to_list): New accessor function.
2240 (get_current_source_symtab_and_line): New function. Retrieves the
2241 position in the source code that we consider current.
2242 (get_current_or_default_source_symtab_and_line): New function.
2243 Like the above but attempts to determine a default position if one
2244 is not currently defined.
2245 (set_current_source_symtab_and_line): New function. Sets the source
2246 code position considered current and returns the previously set one.
2247 (clear_current_source_symtab_and_line): Reset stored information about
2248 a current source line.
2249 (_initialize_source): Remove registration for the "list" command and
2251 * source.h: Add declarations for the new functions above.
2252 * symtab.h: Remove declarations for the global variables mentioned
2254 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2255 obtain current source line.
2256 * linespec.c (decode_line_1): Ditto.
2257 * macroscope.c (default_macro_scope): Ditto.
2258 * scm-lang.c (scm_unpac): Ditto.
2259 * stack.c (print_frame_info_base): Ditto.
2260 * symfile.c (clear_symtab_users): Ditto.
2261 * symtab.c (decode_line_spec): Ditto.
2262 * cli/cli-cmds.c (list_command): Moved here from source.c.
2263 (ambiguous_line_spec): Moved here from source.c.
2264 (_init_cli_cmds): Add definition for "list" and its alias.
2265 * Makefile.in: Update dependencies.
2267 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2269 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2270 with what gcc thinks is correct.
2272 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2274 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2275 multiple register push instruction.
2277 2002-09-19 Jim Blandy <jimb@redhat.com>
2279 Add support for distinct host and target character sets.
2280 * charset.c, charset.h: New files.
2281 * c-exp.y: #include "charset.h".
2282 (yylex): Convert character and string literals to the target
2283 character set, before returning them as the semantic value of the
2285 * c-lang.c: #include "charset.h".
2286 (c_emit_char): Use charset-specific methods to recognize
2287 characters with backslash escape forms, to decide which characters
2288 to print literally and which to print using numeric escape
2289 sequences, and to convert target characters to host characters
2291 * utils.c: #include "charset.h".
2292 (no_control_char_error): New function.
2293 (parse_escape): Use charset-specific methods to recognize
2294 backslash escapes, parse `control character' notation, and convert
2295 characters from the host character set to the target character set.
2296 * configure.in: Set the default host character set.
2297 Check where to find iconv, and what its argument types might be.
2298 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2299 * Makefile.in (SFILES): List charset.c.
2300 (COMMON_OBS): List charset.o.
2301 (charset.o): New rule.
2302 (charset_h): New header dependency variable.
2303 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2304 (LIBICONV): New variable, set by configure.
2305 (CLIBS): Include $(LIBICONV) here.
2306 * aclocal.m4, config.in, configure: Regenerated.
2308 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2310 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2313 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2315 * gdb_mbuild.sh: New file.
2317 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2319 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2321 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2323 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2324 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2325 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2326 valops.c, value.h: Revert previous change.
2328 2002-09-18 Michael Snyder <msnyder@redhat.com>
2330 Preliminary support for Objective-C:
2331 * defs.h (language_objc): New enum value.
2332 (puts_filtered_tabular): Declaration only, exported from utils.c.
2333 (skip_quoted): Delete, declared in completer.h.
2334 * c-exp.y: Include completer.h.
2337 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2338 New operator enum values.
2339 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2340 * language.c (binop_result_type): Handle language_objc case.
2341 (integral_type, character_type, string_type, boolean_type,
2342 structured_type, binop_type_check): Ditto.
2343 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2344 (struct objc_specific): Add to general_symbol_info.
2345 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2346 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2347 * parser-defs.h (struct objc_class_str): New struct type.
2348 (start_msglist, end_msglist, add_msglist): Declaration only,
2349 exported from objc-lang.c.
2350 * value.h (value_of_local, value_nsstring,
2351 call_function_by_hand_expecting_type): Exported from valops.c.
2352 * valops.c (find_function_addr): Export.
2353 (call_function_by_hand_expecting_type): New function.
2354 (value_of_local): New function.
2355 * symfile.c (init_filename_language_table): Add ".m" extension
2357 * utils.c (puts_filtered_tabular): New function.
2358 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2359 (set/show demangle): Extend help-string to refer to ObjC.
2360 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2361 * stabsread.c (symbol_reference_defined): Objective-C symbols
2362 may contain colons: make allowances when scanning stabs strings
2364 (objc_find_colon): New function.
2365 * printcmd.c (address_info): If language == objc then print
2366 "self" instead of "this".
2367 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2368 OP_NSSTRING, and OP_SELF.
2369 (prefixify_subexp): Ditto.
2370 * source.c (print_source_lines): Mention objc in comment.
2371 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2374 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2376 * complaints.h: Update copyright.
2377 (struct complaints): Declare.
2378 (struct complaint): Make `message' constant.
2379 (internal_complaint): Declare.
2380 (complaint): Declare.
2381 (complaint_root): Delete declaration.
2382 (symfile_complaints): Delete declaration.
2383 (struct complaints): Add opaque declaration.
2384 (clear_complaints): Add a complaints parameter.
2385 * complaints.c: Update copyright.
2386 (enum complaint_series): Define.
2387 (complaint_root): Delete.
2388 (struct complaints): Define.
2389 (complaint_sentinel, symfile_complaint_book): New variables.
2390 (symfile_explanations, symfile_complaints): New variables.
2392 (get_complaints): New function.
2393 (vcomplaint): New function.
2394 (complaint): New function.
2395 (internal_complaint): New function.
2396 (complain): Call vcomplain with symfile_complaint.
2397 (clear_complaints): Rewrite.
2398 (_initialize_complaints): Use add_setshow_command.
2399 * Makefile.in (complaints.o): Update dependencies.
2400 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2401 to call to clear_complaints.
2402 (new_symfile_objfile, reread_symbols): Ditto.
2403 (oldsyms_complaint): Delete.
2404 (empty_symtab_complaint, unknown_option_complaint): Delete.
2405 (free_named_symtabs): Use complaint instead of complain.
2407 2002-09-18 Michael Snyder <msnyder@redhat.com>
2409 Contributed by Apple Computer, Inc. Merged with current sources
2410 by Adam Fedor <fedor@doc.com> [cagney].
2412 * objc-lang.c: First clean-up round: comments, indentation.
2413 * objc-lang.h: Ditto.
2414 * objc-lang.y: Ditto.
2416 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2418 * maint.c (maintenance_internal_error): Print the parameter as the
2420 (maintenance_internal_warning): New function.
2421 (_initialize_maint_cmds): Add command `maint internal-warning'.
2423 * defs.h (internal_warning, internal_vwarning): Declare.
2424 * utils.c (struct internal_problem): Define.
2425 (internal_vproblem): New function.
2426 (internal_warning): New function.
2427 (internal_vwarning): New function.
2428 (internal_warning_problem, internal_error_problem): New variables.
2429 (internal_verror): Just call internal_vproblem.
2431 2002-09-18 Michael Snyder <msnyder@redhat.com>
2433 * objc-lang.c: New file, support for Objective-C.
2434 Preliminary check-in, not yet integrated into gdb.
2435 * objc-lang.h: New file.
2436 * objc-exp.y: New file.
2438 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2440 * infrun.c (signal_stop_update): Convert definition to ISO C.
2441 (signal_print_update): Ditto.
2442 (signal_pass_update): Ditto.
2443 * inflow.c (terminal_save_ours): Ditto.
2445 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2448 * config/djgpp/fnchange.lst: Handle name clashes between
2449 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2452 * i386-linux-tdep.h: Fix tipo.
2454 2002-09-18 Adam Fedor <fedor@gnu.org>
2456 * MAINTAINERS: Add myself to the Write After Approval list.
2458 2002-09-18 Jim Blandy <jimb@redhat.com>
2460 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2461 texthigh and textlow to reader-specific structs caused
2462 objfile_relocate to miss them. This is fixable, but the work that
2463 the change was supposed to prepare GDB for never got done anyway.
2465 2002-09-18 David Carlton <carlton@math.stanford.edu>
2467 * MAINTAINERS: Alphabetize Write After Approval list.
2469 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2472 * values.c (value_static_field): Call read_var_value.
2474 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2476 * valops.c (hand_function_call): Align the initial stack pointer
2477 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2478 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2480 * mips-tdep.c (mips_frame_align): New function.
2481 (mips_gdbarch_init): Set frame_align.
2482 * gdbarch.sh (FRAME_ALIGN): New method.
2483 * gdbarch.h, gdbarch.c: Re-generate.
2485 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2487 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2490 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2492 * NEWS: Mention that MIPS $fp behavior changed.
2493 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2494 reference to FP_REGNUM.
2495 (mipsnbsd_cannot_store_register): Ditto.
2496 * mips-linux-nat.c: Update copyright.
2497 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2498 (mips_linux_cannot_store_register): Ditto.
2499 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2500 * config/mips/tm-mips.h: Update copyright.
2501 (FP_REGNUM): Delete macro.
2502 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2503 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2504 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2505 (mips_r3041_reg_names, mips_r3051_reg_names)
2506 (mips_r3081_reg_names): Replace "fp" with "".
2509 2002-09-17 Theodore A. Roth <troth@verinet.com>
2511 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2512 generic_read_register_dummy() (PR gdb/703).
2513 (avr_push_return_address): #if 0 out unused vars.
2514 (avr_gdbarch_init): Enable use of avr_push_return_address().
2516 2002-09-17 Michael Snyder <msnyder@redhat.com>
2518 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2519 RTE will take care of it.
2521 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2523 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2524 invalid, return SP_REGNUM.
2526 2002-09-17 Michael Snyder <msnyder@redhat.com>
2528 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2529 point registers without sign extension.
2531 2002-09-17 Andrew Cagney <cagney@redhat.com>
2533 * blockframe.c (deprecated_read_register_dummy): Rename
2534 generic_read_register_dummy.
2535 * frame.c (frame_unwind_signed_register): New function.
2536 (frame_unwind_unsigned_register): New function.
2537 * frame.h (frame_unwind_signed_register): Declare.
2538 (frame_unwind_unsigned_register): Declare.
2539 (deprecated_read_register_dummy): Rename
2540 generic_read_register_dummy.
2542 * h8300-tdep.c (h8300_frame_chain): Update.
2543 (h8300_frame_saved_pc): Update.
2544 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2545 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2546 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2547 (s390_frame_chain): Update.
2548 * v850-tdep.c (v850_find_callers_reg): Update.
2549 (v850_frame_saved_pc): Update.
2550 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2551 (m32r_find_callers_reg): Update.
2552 (m32r_frame_saved_pc): Update.
2553 * sh-tdep.c (sh_find_callers_reg): Update.
2554 (sh64_get_saved_pr): Update.
2555 (sh_init_extra_frame_info): Update.
2556 (sh_init_extra_frame_info): Update.
2557 (sh64_init_extra_frame_info): Update.
2558 (sh64_init_extra_frame_info): Update.
2559 * mcore-tdep.c (mcore_find_callers_reg): Update.
2560 (mcore_frame_saved_pc): Update.
2561 (mcore_init_extra_frame_info): Update.
2562 * i386-tdep.c (i386_frame_saved_pc): Update.
2563 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2564 (ia64_init_extra_frame_info): Update.
2565 (ia64_init_extra_frame_info): Update.
2566 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2567 * cris-tdep.c (cris_init_extra_frame_info): Update.
2568 * avr-tdep.c (avr_frame_chain): Update.
2569 (avr_init_extra_frame_info): Update.
2570 (avr_frame_saved_pc): Update.
2571 * arm-tdep.c (arm_find_callers_reg): Update.
2572 (arm_init_extra_frame_info): Update.
2573 (arm_frame_saved_pc): Update.
2575 2002-09-17 Tom Tromey <tromey@redhat.com>
2577 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2580 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2582 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2583 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2585 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2588 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2590 * osfsolib.c: Remove file, replaced by solib-osf.c.
2591 * Makefile.in: Remove compilation rules for osfsolib.c.
2593 2002-09-16 David Carlton <carlton@math.stanford.edu>
2595 * cp-valprint.c (cp_print_class_method): Correct args to
2596 check_stub_method_group.
2598 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2600 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2601 `set architecture'. Unify naming convention of functions.
2602 (h8300_skip_prologue): Improve prologue analysis.
2603 (h8300_push_arguments): Rewritten to more closely match GCC's
2604 bizarre argument-passing behavior, along with the comment describing
2606 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2607 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2608 sim, remote-e7000.c, remote-hms.c and remote.c
2610 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2612 * i386-tdep.c (gdb_print_insn_i386): Removed.
2613 (i386_print_insn): New function.
2614 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2615 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2618 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2620 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2623 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2625 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2626 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2627 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2629 2002-09-13 Christopher Faylor <cgf@redhat.com>
2631 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2633 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2635 * gdbtypes.c (check_stub_method): Make static.
2636 (check_stub_method_group): New function.
2637 * gdbtypes.h: Update prototypes.
2638 * cp-support.c: New file.
2639 * cp-support.h: New file.
2641 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2642 (update_method_name_from_physname): New function.
2643 (read_member_functions): Correct method names for operators
2644 and v3 constructors/destructors. Separate v2 constructors and
2646 * Makefile.in (stabsread.o): Update dependencies.
2647 (SFILES): Add cp-support.c.
2648 (COMMON_OBS): Add cp-support.o.
2649 (cp_support_h, cp-support.o): Add.
2651 * cp-valprint.c (cp_print_class_method): Call
2652 check_stub_method_group instead of check_stub_method. Remove
2654 * p-valprint.c (pascal_object_print_class_method): Likewise.
2655 * valops.c (search_struct_method): Likewise.
2656 (find_method_list, value_struct_elt_for_reference): Likewise.
2658 2002-09-13 Andrew Cagney <cagney@redhat.com>
2660 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2661 * gdbarch.h, gdbarch.c: Regenerate.
2663 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2665 * frame.c (find_saved_register): Delete function.
2666 * frame.h (find_saved_register): Delete declaration.
2669 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2671 * mips-tdep.c (read_next_frame_reg): Re-hack using
2672 frame_register_unwind.
2674 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2676 * mips-tdep.c (mips_get_saved_register): Re-hack using
2677 frame_register_unwind.
2679 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2681 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2682 vector. Will be useful for Interix.
2683 * gdbarch.h, gdbarch.c: Regenerate.
2685 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2686 name of the malloc function by NAME_OF_MALLOC.
2688 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2690 * value.h (find_function_in_inferior): Add const keyword to
2691 one of the parameters. Allows us to invoke this function with
2693 * valops.c (find_function_in_inferior): Likewise.
2695 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2697 * exec.c (xfer_memory): Fix compilation warning with old versions
2699 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2701 2002-09-12 David Carlton <carlton@math.stanford.edu>
2703 * symtab.h: Run through gdb_indent.h.
2704 Add 2002 to Copyright year list.
2706 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2708 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2710 * MAINTAINERS: Add myself to write after approval list.
2712 2002-09-11 J. Brobecker <brobecker@gnat.com>
2714 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2716 2002-09-11 J. Brobecker <brobecker@gnat.com>
2718 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2721 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2723 * procfs.c (do_detach): Clear current signal, not just fault.
2724 Corrects problem with breakpoint trap signal leaking to detached
2727 2002-09-10 Michael Snyder <msnyder@redhat.com>
2729 * buildsym.c (finish_block): Protect against null pointer.
2731 2002-09-10 Andrew Cagney <cagney@redhat.com>
2733 * infcmd.c (default_print_registers_info): Send all output to
2734 ``file'' instead of ``gdb_stdout''.
2736 2002-09-10 Michael Snyder <msnyder@redhat.com>
2738 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2739 LONGEST, and use signed register read (addresses are sign-
2742 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2744 * event-loop.c (gdb_do_one_event): Make public.
2745 * event-loop.h (gdb_do_one_event): Declare.
2747 2002-09-10 Jeff Law <law@redhat.com>
2749 * infttrace.c (child_resume): Simplify and rework to avoid
2752 2002-09-09 Fred Fish <fnf@intrinsity.com>
2754 * printcmd.c (print_scalar_formatted): "len" is the number of
2755 target bytes, NOT the number of target bits.
2757 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2759 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2760 * top.c (init_main): Set rl_terminal_name.
2762 2002-09-08 Aidan Skinner <aidan@velvet.net>
2764 * ada-lang.c (ada_array_bound, ada_type_match,
2765 _initialize_ada_language): Fix K&R definitions.
2766 * ada-tasks.c (get_current_task): Fix K&R definitions.
2767 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2769 2002-09-07 Christopher Faylor <cgf@redhat.com>
2771 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2774 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2776 * i386-tdep.c (i386_register_virtual_type,
2777 i386_register_convertible, i386_register_convert_to_virtual,
2778 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2779 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2780 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2781 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2782 Don't set push_arguments twice.
2784 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2785 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2786 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2787 sigtramp_end to NULL.
2788 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2790 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2792 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2795 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2796 * gdbarch.h, gdbarch.c: Re-generate.
2797 * blockframe.c (find_pc_sect_partial_function): Convert to use
2798 SIGTRAMP_START_P predicate.
2800 2002-09-05 Michael Snyder <msnyder@redhat.com>
2802 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2803 generic_dummy_frame method and old method. Also distinguish
2804 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2805 (arm_extract_return_value): Use new regcache method.
2807 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2808 adjustment that doesn't conform to the ABI.
2809 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2810 saved regcache, not from current regcache.
2812 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2814 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2817 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2819 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2820 if arm_apcs_32 is false.
2822 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2824 GDB 5.3 branch created.
2826 2002-09-03 Theodore A. Roth <troth@verinet.com>
2828 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2829 generic_unwind_get_saved_register.
2831 2002-09-03 David Carlton <carlton@math.stanford.edu>
2833 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2834 argument (PR gdb/653). Update call to smash_to_method_type.
2835 (read_structure_scope): Update call to dwarf2_add_member_fn.
2837 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2839 * x86-64-linux-tdep.c: Include gdb_string.h
2840 * x86-64-linux-nat.c: Ditto.
2842 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2844 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2845 when YYDEBUG is set to 1.
2846 * c-exp.y: Likewise.
2847 * f-exp.y: Likewise.
2848 * jv-exp.y: Likewise.
2849 * m2-exp.y: Likewise.
2850 * p-exp.y: Likewise.
2852 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2854 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2856 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2857 solib_svr4_fetch_link_map_offsets to
2858 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2859 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2860 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2861 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2862 solib-svr4.o, and solib-legacy.o.
2863 * config/i386/tm-nbsd.h: Include solib.h.
2865 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2867 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2868 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2869 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2870 comment noting that this needs its own target configuration.
2871 * config/i386/nbsd.mt: New file.
2872 * config/i386/nbsdaout.mt: Remove.
2873 * config/i386/nbsdelf.mt: Ditto.
2874 * config/i386/tm-nbsdaout.h: Ditto.
2876 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2878 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2879 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2880 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2882 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2883 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2884 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2886 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2888 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2889 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2890 * i386-tdep.h (i386bsd_init_abi): New prototype.
2891 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2892 function declaration.
2893 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2894 for NetBSD-a.out or NetBSD-ELF.
2895 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2896 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2897 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2898 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2900 (i386nbsd_pc_in_sigtramp): New function.
2901 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2902 i386nbsd_pc_in_sigtramp.
2903 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2904 and i386nbsdelf_init_abi OS ABI handlers.
2905 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2906 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2908 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2910 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2911 registers if the target really has them.
2913 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2915 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2918 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2920 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2922 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2923 (alphanbsd_skip_sigtramp_frame): New functions.
2924 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2925 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2926 to alphanbsd_sigcontext_addr.
2928 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2930 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2932 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2933 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2934 nbsd_pc_in_sigtramp.
2935 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2936 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2937 * nbsd-tdep.c: Include gdb_string.h.
2938 (nbsd_pc_in_sigtramp): New function.
2939 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2940 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2941 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2942 ppcnbsd_pc_in_sigtramp.
2943 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2944 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2945 shnbsd_pc_in_sigtramp.
2946 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2947 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2948 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2950 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2952 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2953 watchpoints to NULL.
2954 (insert_breakpoints): set val field of watchpoints if NULL.
2957 2002-08-29 Jim Blandy <jimb@redhat.com>
2959 * symtab.c (lookup_symbol_aux): In the cases where we find a
2960 minimal symbol of an appropriate name and use its address to
2961 select a symtab to read and search, use `name' (as passed to us)
2962 as the demangled name when searching the symtab's global and
2963 static blocks, not the minsym's name.
2965 2002-08-29 Keith Seitz <keiths@redhat.com>
2967 * stack.c (print_frame_info_base): Always set current_source_symtab
2968 and current_source_line.
2970 2002-08-29 Donn Terry <donnte@microsoft.com>
2972 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2974 2002-08-28 Keith Seitz <keiths@redhat.com>
2976 * stack.c (select_frame): Add FIXME concerning selected-frame
2978 (select_frame_command): Send selected-frame-level-changed
2979 event notification, but only if the level actually changed.
2980 (up_silently_base): Add selected-frame-level-changed event
2982 (down_silently_base): Likewise.
2984 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2986 * Makefile.in: Update dependencies for all gdb/*.c files.
2988 2002-08-27 Tom Tromey <tromey@redhat.com>
2990 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2991 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2992 Update dependencies.
2993 * i387-tdep.c: Include gdb_string.h.
2994 * osabi.c: Likewise.
2995 * i386-linux-nat.c: Likewise.
2996 * lin-lwp.c: Likewise.
2997 * ax-gdb.c: Likewise.
2998 * signals/signals.c: Likewise.
2999 * jv-valprint.c: Likewise.
3000 * p-lang.c: Likewise.
3001 * c-valprint.c: Likewise.
3002 * cp-abi.c: Likewise.
3004 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3006 * cli/cli-script.h (copy_command_lines): Export.
3007 * breakpoint.c: Include cli/cli-script.h.
3008 * Makefile.in (breakpoint.o): Update dependencies.
3010 2002-08-26 Michael Snyder <msnyder@redhat.com>
3012 * breakpoint.c (insert_breakpoints): Protect all references
3013 to 'process_warning'. Shorten long lines.
3015 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3017 * cli/cli-script.c (copy_command_lines): New function.
3018 * defs.h (copy_command_lines): Export.
3019 * testsuite/gdb.base/commands.exp: New tests for commands
3020 attached to a temporary breakpoint, and for commands that
3021 delete the breakpoint they are attached to.
3023 2002-08-26 Michael Snyder <msnyder@redhat.com>
3025 * breakpoint.c (bpstat_stop_status): Instead of copying the
3026 pointer to the breakpoint commands struct, make a new copy
3027 of the struct and point to that.
3028 (bpstat_clear): Free the commands struct.
3029 (bpstat_clear_actions): Free the commands struct.
3030 (bpstat_do_actions): Free the command actions. Also execute
3031 the local cleanups, instead of deleting them.
3032 (delete_breakpoint): Leave the commands field of the bpstat
3033 chain alone -- it will be freed later.
3035 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3037 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3038 deleted in 2002-08-20 commit. This function is still used by
3041 2002-08-26 Keith Seitz <keiths@redhat.com>
3043 * gdb-events.sh: Add selected-frame-level-changed event.
3044 * gdb-events.c: Regenerated.
3045 * gdb-events.h: Regenerated.
3047 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3050 * inflow.c (terminal_save_ours): New function to save terminal
3052 * inferior.h (terminal_save_ours): Declare.
3053 * target.c (debug_to_terminal_save_ours): New function.
3054 (cleanup_target): Defaults to_terminal_save_ours.
3055 (update_current_target): Inherit to_terminal_save_ours.
3056 (setup_target_debug): Set to_terminal_save_ours.
3057 * target.h (target_terminal_save_ours): New to save terminal settings.
3058 (target_ops): New member to_terminal_save_ours.
3059 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3060 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3061 * inftarg.c (init_child_ops): Likewise.
3062 * m3-nat.c (init_m3_ops): Likewise.
3063 * procfs.c (init_procfs_ops): Likewise.
3064 * wince.c (init_child_ops): Likewise.
3065 * win32-nat.c (init_child_ops): Likewise.
3066 * sol-thread.c (init_sol_thread_ops): Likewise.
3068 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3070 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3071 use regcache_* functions.
3072 (i386_gdbarch_init): Set store_return_value instead of
3073 deprecated_store_return_value.
3075 * regcache.c (regcache_raw_write_signed,
3076 regcache_raw_write_unsigned): New functions.
3077 * regcache.h (regcache_raw_write_signed,
3078 regcache_raw_write_unsigned): New prototypes.
3080 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3082 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3083 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3084 source file dependencies. Cleanup corresponding generator rules.
3086 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3088 * regcache.h (register_offset_hack): Declare.
3089 (regcache_cooked_read_using_offset_hack): Declare.
3090 (regcache_cooked_write_using_offset_hack): Declare.
3092 * regcache.c (register_offset_hack): New function.
3093 (regcache_cooked_read_using_offset_hack): New function.
3094 (regcache_cooked_write_using_offset_hack): New function.
3095 (regcache_dump): Check that the registers, according to their
3096 offset, are packed hard against each other.
3097 (cooked_xfer_using_offset_hack): New function.
3099 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3101 * regcache.c (struct regcache_descr): Add field register_type.
3102 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3104 (init_regcache_descr): Initialize register_type. Pass the descr
3105 to init_legacy_regcache_descr. Use register_type instead of
3106 REGISTER_VIRTUAL_TYPE.
3107 (register_type): New function.
3108 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3109 * regcache.h (register_type): Declare.
3111 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3113 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3114 instead of deprecated_store_return_value. Fix fallout from
3115 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3117 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3119 * regcache.c (max_register_size): New function.
3120 (init_legacy_regcache_descr): Ensure that max_register_size is
3121 large enough for REGISTER_VIRTUAL_SIZE.
3122 * regcache.h (max_register_size): Declare.
3124 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3126 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3128 (e500_extract_return_value): Change type of valbuf pointer to
3131 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3133 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3136 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3137 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3138 long long) to prevent compiler warning on 64-bit systems.
3140 2002-08-23 Andrew Cagney <cagney@redhat.com>
3142 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3143 (DEPRECATED_STORE_RETURN_VALUE): New method.
3144 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3145 * gdbarch.h, gdbarch.c: Re-generate.
3147 * values.c (set_return_value): Pass current_regcache to
3149 * arch-utils.h (legacy_store_return_value): Declare.
3150 * arch-utils.c (legacy_store_return_value): New function.
3151 (legacy_extract_return_value): Update parameters.
3153 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3155 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3156 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3157 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3158 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3159 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3160 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3161 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3162 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3163 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3164 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3167 * i386-tdep.c (i386_extract_return_value): Update.
3168 * arch-utils.c (legacy_extract_return_value): Update.
3169 * frv-tdep.c (frv_gdbarch_init): Update.
3170 * cris-tdep.c (cris_gdbarch_init): Update.
3171 * d10v-tdep.c (d10v_gdbarch_init): Update.
3172 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3173 * m68k-tdep.c (m68k_gdbarch_init): Update.
3174 * mcore-tdep.c (mcore_gdbarch_init): Update.
3175 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3176 * s390-tdep.c (s390_gdbarch_init): Update.
3177 * sparc-tdep.c (sparc_gdbarch_init): Update.
3178 * sh-tdep.c (sh_gdbarch_init): Update.
3179 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3180 * v850-tdep.c (v850_gdbarch_init): Update.
3181 * avr-tdep.c (avr_gdbarch_init): Update.
3182 * ia64-tdep.c (ia64_gdbarch_init): Update.
3183 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3184 * vax-tdep.c (vax_gdbarch_init): Update.
3185 * alpha-tdep.c (alpha_gdbarch_init): Update.
3186 * arm-tdep.c (arm_gdbarch_init): Update.
3187 * mips-tdep.c (mips_gdbarch_init): Update.
3188 * i386-tdep.c (i386_gdbarch_init): Update.
3190 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3192 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3193 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3195 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3197 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3200 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3202 * infrun.c (handle_inferior_event): Move a comment outside of a
3203 function call, in order to avoid indent reformatting this part
3204 of the code in an unreadable way.
3206 2002-08-23 Grace Sainsbury <graces@redhat.com>
3208 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3209 when breakpoints fail. Move general breakpoint error messages to
3211 * breakpoint.c (insert_breakpoints): Change warnings when
3212 breakpoints are nto inserted to specify the type. Remove call to
3213 memory_error when hardware breakpoints can't be inserted. Remove
3214 multiple calls to warning so all messages are sent to the user at
3216 (delete_breakpoints): Make insert error messsages more explicit.
3218 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3220 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3221 gdbserver/ChangeLog.
3223 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3225 * i386-tdep.c: Include "objfiles.h".
3226 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3227 skip_trampoline_code.
3228 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3229 (CPLUS_MARKER): Define to '.'.
3231 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3233 (linux_corefile_thread_callback): Increase args->num_notes.
3234 (linux_make_note_section): Initialize thread_args.num_notes, and
3235 use it to determine whether notes for any threads were created.
3237 2002-08-23 Donn Terry <donnte@microsoft.com>
3239 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3240 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3242 (write_with_trace): Conditionalize out the switch branch handling
3243 PCSHOLD if the corresponding macro is not defined. Likewise for
3244 PRSABORT and PRSTOP.
3245 This change will be needed by the Interix port.
3247 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3249 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3250 write_register wherever possible instead of manipulating the
3251 register bytes directly.
3252 Assign VALUE_CONTENTS to a variable and use that.
3253 The GPR numbers are now dependent on the architecture.
3255 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3257 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3259 (skip_prologue): Add support for BookE/e500 instructions.
3260 (e500_extract_return_value): New function.
3261 (frame_get_saved_regs): Add support for saving ev registers and
3263 (e500_store_return_value): New function.
3264 (rs6000_gdbarch_init): Move up default intializations of
3265 deprecated_extract_return_value and store_return_value. Overwrite
3266 init of store_return_value with e500 specific version.
3267 Set extract_return_value for e500.
3269 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3271 * blockframe.c (generic_call_dummy_register_unwind): Use
3272 regcache_cooked_read to catch cases in which the variable is
3273 stored in a pseudo register.
3275 2002-08-22 Andrew Cagney <cagney@redhat.com>
3277 * NEWS: Mention that the i960 has been made obsolete.
3278 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3280 (remote-nrom.o): Obsolete target.
3281 (remote-nindy.o, i960-tdep.o): Ditto.
3282 * remote-nrom.c: Make file obsolete.
3283 * remote-nindy.c, remote-vx960.c: Ditto.
3284 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3285 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3286 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3287 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3288 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3289 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3290 i960-*-vxworks* obsolete.
3291 * MAINTAINERS: Note that the i960 is obsolete.
3293 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3295 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3296 detach to allow reinitialization.
3298 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3300 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3303 2002-08-22 Jim Blandy <jimb@redhat.com>
3305 * coffread.c (coff_symfile_read): Don't try to read the line
3306 number table from disk if the image file doesn't have a symbol
3307 table; we'll never actually look at the info anyway, and Windows
3308 ships DLL's with bogus file offsets for the line number data.
3310 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3312 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3315 2002-08-21 Michael Snyder <msnyder@redhat.com>
3317 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3318 (MSYMBOL_SIZE): Replace macro with function.
3319 (DEFAULT_MIPS_TYPE): Delete unused macro.
3320 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3321 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3323 2002-08-21 Jim Blandy <jimb@redhat.com>
3325 * valops.c (value_cast): Simplify and correct logic for doing a
3326 static cast from a pointer to a base class to a pointer to a
3329 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3331 * infcmd.c (default_print_registers_info): Replace
3333 (registers_info): Use gdbarch_print_registers_info instead of
3335 * inferior.h (default_print_registers_info): Replace
3337 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3338 (DO_REGISTERS_INFO): Change to a predicate function.
3339 * gdbarch.h, gdbarch.c: Regenerate.
3341 2002-08-21 Keith Seitz <keiths@redhat.com>
3343 * gdb-events.sh: Add target-changed event.
3344 * gdb-events.c: Regenerated.
3345 * gdb-events.c: Regenerated.
3346 * valops.c (value_assign): Add target-changed event notification
3347 to inlval_register, lval_memory, and lval_reg_frame_relative.
3349 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3351 * NEWS: Add an entry regarding the improvement of the next/step
3352 operation on Alpha Tru64 multi-processor machines.
3354 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3356 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3358 * Makefile.in: Update all _h macro definitions.
3359 * Makefile.in (install-gdbtk): Move to install section.
3360 (rdi-share/libangsd.a): Move to end of file.
3362 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3364 * frame.c (frame_register_unwind): When a register, set addrp to
3365 the register's byte.
3367 2002-08-20 Michael Snyder <msnyder@redhat.com>
3369 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3370 used locally, so move them from the target machine header to here.
3371 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3372 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3374 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3376 2002-08-20 Andrew Cagney <cagney@redhat.com>
3378 * NEWS: Mention that the Apollo line was made obsolete.
3379 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3380 m68*-hp-hpux* obsolete.
3381 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3382 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3383 * buildsym.c (make_blockvector): Make static.
3384 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3385 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3386 (ALLDEPFILES): Remove dstread.c.
3387 (dstread.o): Obsolete make rule.
3388 * dstread.c: Makefile obsolete.
3390 * config/m68k/hp300hpux.mt: Ditto.
3391 * config/m68k/hp300hpux.mh: Ditto.
3392 * config/m68k/hp300bsd.mt: Ditto.
3393 * config/m68k/hp300bsd.mh: Ditto.
3394 * config/m68k/apollo68b.mt: Ditto.
3395 * config/m68k/apollo68v.mh: Ditto.
3396 * config/m68k/apollo68b.mh: Ditto.
3398 2002-08-20 Michael Snyder <msnyder@redhat.com>
3400 * mips-tdep.c (mips_in_return_stub): Make static.
3401 (mips_gdbarch_init): Set in_solib_return_trampoline.
3402 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3404 2002-08-20 Michael Snyder <msnyder@redhat.com>
3406 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3407 * gdbarch.c, gdbarch.h: Regenerate.
3408 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3410 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3412 2002-08-20 Michael Snyder <msnyder@redhat.com>
3414 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3415 (mips_gdbarch_init): Set skip_trampoline_code,
3416 in_solib_call_trampoline.
3417 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3418 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3420 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3422 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3424 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3425 vector type for ev registers.
3426 (e500_pseudo_register_read): New function.
3427 (e500_pseudo_register_write): New function.
3428 (e500_dwarf2_reg_to_regnum): New function.
3429 (PPC_UISA_NOFP_SPRS): New macro.
3430 (PPC_EV_REGS): New macro.
3431 (PPC_GPRS_PSEUDO_REGS): New macro.
3432 (registers_e500): New register set for e500.
3433 (variants): Add e500 variant.
3434 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3435 before setting architectural dependent variations. Initialize ev
3436 registers numbers. Add case for e500 architecture. Set the
3437 number of pseudo registers.
3439 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3441 * rs6000-tdep.c: Clean up comments.
3443 2002-08-20 Andrew Cagney <cagney@redhat.com>
3445 * h8300-tdep.c: Re-indent file.
3447 2002-08-20 Jim Blandy <jimb@redhat.com>
3449 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3452 2002-08-20 Keith Seitz <keiths@redhat.com>
3454 * breakpoints.c (watch_command_1): Use internal breakpoint
3455 when setting a watchpoint_scope breakpoint.
3457 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3459 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3460 (build_builtin_type_vec64i): Ditto.
3461 (build_builtin_type_vec128): Ditto.
3462 (build_builtin_type_vec128i): Ditto.
3464 2002-08-19 Michael Snyder <msnyder@redhat.com>
3466 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3467 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3468 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3469 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3470 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3471 CALL_DUMMY_ADDRESS): Delete.
3472 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3473 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3474 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3475 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3476 push_return_address.
3477 (mips_register_raw_size, mips_eabi_use_struct_convention,
3478 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3479 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3480 mips_init_extra_frame_info, mips_eabi_push_arguments,
3481 mips_n32n64_push_arguments, mips_push_return_address,
3482 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3483 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3485 2002-08-19 Michael Snyder <msnyder@redhat.com>
3487 * mips-tdep.c (mips_frame_num_args): New function.
3488 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3489 frame_saved_pc, frame_args_address, frame_locals_address,
3490 frame_num_args, and frame_args_skip.
3491 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3492 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3493 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3494 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3496 2002-08-20 Michael Snyder <msnyder@redhat.com>
3498 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3499 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3500 * mips-tdep.c (mips_store_struct_return): New function.
3501 (mips_extract_struct_value_address): New function.
3502 (mips_gdbarch_init): Set store_struct_return and
3503 extract_struct_value_address.
3505 2002-08-20 David Carlton <carlton@math.stanford.edu>
3507 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3508 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3509 (read_file_scope): Check that line_header is nonzero before
3510 decoding macro information.
3512 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3514 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3515 flag the general-purpose registers as floating-point on targets
3516 that don't support the floating-point registers.
3518 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3520 * rs6000-tdep.c (altivec_register_p): Delete.
3521 (rs6000_do_altivec_registers): Delete.
3522 (rs6000_altivec_registers_info): Delete.
3523 (rs6000_do_registers_info): Delete.
3524 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3525 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3527 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3529 * infcmd.c (do_registers_info): Print vector registers in hex
3531 (print_vector_info): Check that printing registers
3533 (print_float_info): Ditto.
3535 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3537 * mips-tdep.c (mips_gdbarch_init): Update.
3538 (mips_o32_extract_return_value): Rewrite.
3539 (mips_o32_store_return_value): Rewrite.
3540 (mips_o32_xfer_return_value): New function.
3541 (mips_xfer_register): Tweak debug print message. Allow for
3542 buf_offset when dumping the value transfered.
3544 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3546 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3547 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3548 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3549 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3550 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3552 2002-08-14 Michael Snyder <msnyder@redhat.com>
3554 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3556 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3558 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3560 (P): New macro to define a register as a pseudo register.
3561 (R, R4, R8, R16, FR32, R64, R0): Updated.
3562 (struct variant): Add new fields for number of pseudo registers
3563 and number of total registers.
3564 (tot_num_registers): New macro replacing....
3565 (num_registers): ...deleted macro.
3566 (num_registers): New function.
3567 (num_pseudo_registers): New function.
3568 (variants): Update all variants to intialize new fields correctly.
3569 Postpone initialization of number of pseudo regs and real regs.
3570 (init_variants): New function.
3571 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3574 2002-08-19 David Carlton <carlton@math.stanford.edu>
3576 * valops.c (search_struct_field): Change error message to treat
3577 return value of 0 from value_static_field as meaning that field is
3579 (value_struct_elt_for_reference): Ditto.
3580 * values.c (value_static_field): Treat an unresolved location the
3581 same as a nonexistent symbol. Fix PR gdb/635.
3582 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3583 enclosed. Fix PR gdb/574.
3584 * MAINTAINERS: Add self to Write After Approval list.
3586 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3588 * mips-tdep.c (mips_xfer_register): New function.
3589 (mips_n32n64_extract_return_value): Rewrite.
3590 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3591 instead of deprecated_extract_return_value.
3593 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3595 * rs6000-tdep.c (TDEP): Delete macro.
3596 (branch_dest): Replace use of TDEP macro with its body.
3597 (rs6000_pop_frame): Ditto.
3598 (rs6000_push_arguments): Ditto.
3599 (rs6000_skip_trampoline_code): Ditto.
3600 (rs6000_frame_saved_pc): Ditto.
3601 (rs6000_frame_chain): Ditto.
3602 (rs6000_register_name): Ditto.
3603 (rs6000_register_byte): Ditto.
3604 (rs6000_register_raw_size): Ditto.
3605 (rs6000_register_virtual_type): Ditto.
3606 (rs6000_register_convertible): Ditto.
3607 (rs6000_convert_from_func_ptr_addr): Ditto.
3609 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3611 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3613 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3614 MIPS_LINUX_JB_ELEMENT_SIZE.
3615 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3616 for MAX_REGISTER_RAW_SIZE arrays.
3617 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3618 MIPS_LINUX_JB_ELEMENT_SIZE.
3620 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3622 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3624 2002-08-19 Aidan Skinner <aidan@velvet.net>
3626 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3627 ada-valprint.c ada-tasks.c.
3628 (YYFILES): Add ada-exp.y.
3629 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3630 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3631 (ada-exp.tab.o): New target.
3633 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3635 * regcache.c (regcache_xfer_part): New function.
3636 (regcache_raw_read_part): New function.
3637 (regcache_raw_write_part): New function.
3638 (regcache_cooked_read_part): New function.
3639 (regcache_cooked_write_part): New function.
3640 * regcache.h (regcache_raw_read_part): Declare.
3641 (regcache_raw_write_part): Declare.
3642 (regcache_cooked_read_part): Declare.
3643 (regcache_cooked_write_part): Declare.
3645 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3647 * remote.c (remote_open_1): Add async_p.
3648 (remote_async_open_1): Delete.
3649 (open_remote_target): Delete.
3650 (remote_open, extended_remote_open): Update calls to remote_open_1.
3651 (remote_async_open, extended_remote_async_open): Call
3652 remote_open_1 instead of remote_async_open_1.
3654 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3656 * blockframe.c: Fix a few coding standard violations.
3658 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3660 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3662 * config/i386/tm-i386sco5.h: ... here. File removed.
3663 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3665 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3666 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3667 (TM_FILE): Set to tm-i386.h.
3668 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3669 * config/i386/tm-i386v.h: Remove file.
3670 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3671 instead of "i386/tm-i386v.h".
3672 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3673 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3675 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3676 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3679 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3681 * config/i386/nm-i386v.h: Add protection against
3683 (i386_register_u_addr): Remove prototype.
3684 (register_u_addr): New prototype.
3685 (REGISTER_U_ADDR): Redefine accordingly.
3686 * i386v-nat.c: Improve several comments.
3687 (i386_register_u_addr): Change signature and rename to
3688 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3691 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3693 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3694 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3695 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3696 deprecated_extract_return_value.
3697 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3698 rename mips_o32o64_push_arguments.
3699 (mips_gdbarch_init): Update.
3700 (mips_extract_return_value): Delete.
3701 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3702 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3703 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3704 (mips_n32n64_extract_return_value): Clone
3705 mips_extract_return_value.
3706 (mips_store_return_value): Delete.
3707 (mips_o32_store_return_value): Clone mips_store_return_value.
3708 (mips_o64_store_return_value): Clone mips_store_return_value.
3709 (mips_eabi_store_return_value): Clone mips_store_return_value.
3710 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3712 2002-08-18 Aidan Skinner <aidan@velvet.net>
3714 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3715 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3717 2002-08-18 Aidan Skinner <aidan@velvet.net>
3719 * ada-lang.c: Run through gdb_indent.sh.
3720 * ada-lang.h: Run through gdb_indent.sh.
3721 * ada-tasks.c: Run through gdb_indent.sh.
3722 * ada-typeprint.c: Run through gdb_indent.sh.
3723 * ada-valprint.c: Run through gdb_indent.sh.
3725 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3727 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3730 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3732 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3734 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3735 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3737 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3738 write_register_gen instead of write_register_bytes.
3740 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3741 i[3456]-*-osf1mk* configurations have been made obsolete.
3742 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3743 i[3456]86-*-osf1mk* hosts obsolete.
3744 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3746 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3747 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3748 config/i386/i386m3.mt, config/i386/nm-m3.h,
3749 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3750 config/i386/i386mk.mh, config/i386/i386mk.mt,
3751 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3753 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3754 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3755 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3757 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3759 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3760 (hppa_value_returned_from_stack): Declare.
3761 (hppa_extract_return_value): Declare.
3762 * config/pa/hppa.mt: New file.
3763 * configure.tgt: Recognize hppa*-*-*.
3764 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3766 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3768 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3771 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3773 * top.c (gdb_rl_operate_and_get_next): Make sure
3774 operate-and-get-next functions correctly even when the history
3775 list is completely filled.
3777 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3779 * MAINTAINERS (Target Instruction Set Architectures): Rename
3780 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3781 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3782 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3783 already listed under Host/Native.
3785 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3786 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3789 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3791 * config/ia64/ia64.mt: New file.
3792 * config/alpha/alpha.mt: New file.
3793 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3794 ia64-linux-gnu. Mention that ia64-elf is broken.
3795 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3797 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3799 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3800 generic_func_frame_valid instead of func_frame_valid.
3802 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3804 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3805 procfs appears to be broken when debugging on multi-processor
3806 machines. So enable software single stepping in order to avoid
3807 using the procfs interface to do next/step operations, using
3808 internal breakpoints instead.
3810 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3811 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3812 make this pc address equal to the value it would have if the
3813 system stepping capability was used. Also set a new flag used
3814 to ensure that we don't readjust the PC one more time later.
3816 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3817 address by DECR_PC_AFTER_BREAK when software single step is
3818 in use for this architecture, as this has already been taken
3819 care of in handle_inferior_event().
3821 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3823 * infrun.c (handle_inferior_event): Minor reformatting, to make
3824 a rather long condition expression easier to read.
3826 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3828 * Makefile.in (gdbtk.o): Move to end of file.
3829 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3830 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3831 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3832 (gdbtk-wrapper.o, gdbres.o): Ditto.
3834 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3836 * Makefile.in (copying.o): Separate out compile rule.
3837 (hpux-thread.o, procfs.o, signals.o): Ditto.
3838 (v850ice.o, z8k-tdep.o): Ditto.
3839 (tui-file.o): Move to TUI section.
3840 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3841 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3843 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3845 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3846 skip_trampoline_code, for better namespace-proofing.
3848 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3850 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3852 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3854 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3856 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3857 signal, check whether we hit a breakpoint before checking for a
3858 single step breakpoint. Otherwise, GDB fails to notice that a
3859 breakpoint has been hit when stepping onto a breakpoint.
3861 2002-08-16 Keith Seitz <keiths@redhat.com>
3863 * gdb-events.sh (clear_gdb_event_hooks): New function.
3864 * gdb-events.c: Regenerate.
3865 * gdb-events.h: Regenerate.
3867 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3869 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3870 not_a_sw_breakpoint.
3871 * breakpoint.h (bpstat_stop_status): Add parameter names.
3873 2002-08-16 Grace Sainsbury <graces@redhat.com>
3875 * remote.c (remote_insert_hw_breakpoint)
3876 (remote_remove_hw_breakpoint): Fix calculation of length field
3879 2002-08-15 Michael Snyder <msnyder@redhat.com>
3881 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3882 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3883 (supply_fpregset): Ditto.
3885 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3886 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3887 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3888 (TARGET_READ_SP): Delete.
3889 (DO_REGISTERS_INFO): Delete.
3890 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3892 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3893 from macros to functions.
3895 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3896 (mips_register_convertible, mips_register_convert_to_virtual,
3897 mips_register_convert_to_raw): Make static.
3898 (mips_read_sp): New function.
3899 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3900 (mips_do_registers_info): Make static.
3901 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3902 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3903 (mips_register_convert_from_type, mips_register_convert_to_type):
3905 (mips_gdbarch_init): Set up function_start_offset,
3906 register_virtual_size, pc_in_sigtramp.
3908 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3910 * infcmd.c (vector_info): New function.
3911 (_initialize_infcmd): Add command "info vector".
3912 (print_vector_info): New function.
3914 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3915 * gdbarch.h, gdbarch.c: Regenerate.
3917 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3919 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3920 ``print_all''. Only print vector registers when ``print_all''.
3922 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3924 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3925 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3927 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3928 Add `args' parameter.
3929 * gdbarch.h, gdbarch.c: Regenerate.
3931 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3933 * infcmd.c (float_info): Call print_float_info.
3934 (print_float_info): New function. By default, print the
3935 floating-point registers.
3937 * arch-utils.h (default_print_float_info): Delete declaration.
3938 * arch-utils.c (default_print_float_info): Delete function.
3940 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3942 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3945 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3948 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3949 * configure.host: Make i[3456]86-*-aix host obsolete.
3950 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3951 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3952 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3953 config/i386/xm-i386aix.h: Make files obsolete.
3954 * i386aix-nat.c: Make file obsolete.
3955 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3956 (i386aix-nat.o): Make target obsolete.
3958 * config/i386/nm-gnu.h: Removed.
3959 * config/i386/nm-i386gnu.h: New file.
3960 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3961 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3963 * config/i386/tm-i386gnu.h: ... here. Removed.
3964 * config/i386/xm-i386gnu.h: Removed.
3965 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3966 (NAT_FILE): Set to nm-i386gnu.h.
3967 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3968 * i386-tdep.c: New file.
3969 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3970 (i386gnu-tdep.o): Specify dependencies.
3972 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3974 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3975 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3976 Adjust a few comments to reflect reality a bit closer.
3977 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3978 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3979 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3980 target_insert_watchpoint, target_remove_watchpoint):
3982 * config/i386/nm-i386sco5.h: ... here.
3983 (kernel_u_size): Add prototype. Improve a few comments and add
3984 protection against multiple inclusion.
3986 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3989 * uw-thread.c (SP_ARG0): Define if not already defined.
3990 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3992 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3994 * config/i386/tm-i386.h: Don't include "regcache.h".
3996 * i387-tdep.h (i387_print_float_info): New prototype.
3997 * i387-tdep.c (print_i387_value, print_i387_ext,
3998 print_i387_status_word, print_i387_control_word): Add `struct
3999 ui_file *' argument and use it for output.
4000 (i387_print_float_info): Renamed from i387_float_info. Add
4001 `struct gdbarch *' and `struct ui_file *' arguments and use the
4003 * i386-tdep.c: Include "i387-tdep.h".
4004 (i386_gdbarch_init): Set print_float_info.
4005 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4006 (FLOAT_INFO): Remove define.
4008 2002-08-13 Michael Snyder <msnyder@redhat.com>
4010 * mips-tdep.c (mips_push_arguments): Rename to
4011 mips_eabi_push_arguments, and tune for EABI.
4012 (MIPS_REGS_HAVE_HOME_P): Delete.
4013 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4014 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4015 Delete references to mips_regs_have_home_p.
4017 2002-08-14 Keith Seitz <keiths@redhat.com>
4019 * Makefile.in (install-gdbtk): Create insight plugin directory.
4020 Install plugins.tcl file.
4022 2002-08-14 Keith Seitz <keiths@redhat.com>
4024 * configure.in: Move SUBDIRS to near top of the file so that
4025 --enable options may add things to it.
4026 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4027 * configure: Regenerate.
4029 2002-08-13 Michael Snyder <msnyder@redhat.com>
4031 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4032 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4033 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4035 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4037 * vax-tdep.c (vax_get_saved_register): Delete function.
4038 (vax_gdbarch_init): Update.
4039 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4040 (ns32k_gdbarch_init): Update.
4041 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4042 (alpha_gdbarch_init): Update.
4044 2002-08-13 Andrew Cagney <cagney@redhat.com>
4046 * regcache.c (init_regcache_descr): Overallocate the
4047 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4048 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4050 (set_register_cached): Add range checking assertions. Use
4053 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4055 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4056 numbers for MMX registers.
4058 2002-08-13 Andrew Cagney <cagney@redhat.com>
4060 * i386-tdep.c (i386_gdbarch_init): Use
4061 generic_unwind_get_saved_register.
4063 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4065 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4066 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4068 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4069 Delete. Add comment regarding this now-deleted target method.
4071 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4073 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4074 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4075 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4076 real PC and the page number (if it's within the memory bank window).
4077 (m68hc11_pseudo_register_write): Likewise when saving.
4078 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4079 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4080 (m68hc11_register_raw_size): And use 32-bit for it.
4081 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4082 16K memory bank is used by the prog; also use the virtual pc.
4084 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4086 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4087 (m68hc11_gdbarch_init): Install it in gdbarch.
4088 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4089 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4090 (MSYMBOL_SIZE): New for documentation.
4091 (insn_return_kind): Enum to specify how a function returns.
4092 (frame_extra_info): Cleanup and record the return mode.
4093 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4094 register in address computation.
4095 (m68hc11_get_return_insn): New to obtain the return instruction used
4097 (m68hc11_frame_init_saved_regs): Take into account the return
4098 instruction used by the function for far and interrupt functions.
4099 (m68hc11_init_extra_frame_info): Take into account page register.
4100 (m68hc11_frame_args_address): Adjust according to the return mode.
4101 (show_regs): Print page register only when it's used.
4103 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4105 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4106 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4107 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4109 (m68hc11_register_raw_size): Likewise.
4111 2002-08-13 Andrew Cagney <cagney@redhat.com>
4113 * i386-tdep.c (i386_register_name): Handle mmx registers.
4114 (mmx_regnum_p): New function.
4115 (i386_mmx_names): New array.
4116 (mmx_num_regs): New variable.
4117 (i386_pseudo_register_read): New function.
4118 (i386_pseudo_register_write): New function.
4119 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4121 * regcache.c (regcache_raw_read_unsigned): New function.
4122 (regcache_raw_read_signed): New function.
4123 * regcache.h (regcache_raw_read_unsigned): Declare.
4124 (regcache_raw_read_signed): Declare.
4126 2002-08-13 Andrew Cagney <cagney@redhat.com>
4128 * regcache.c (regcache_raw_read_as_address): Delete function.
4129 (regcache_cooked_read_signed): New function.
4130 (regcache_cooked_read_unsigned): New function.
4131 * regcache.h (regcache_cooked_read_signed): Declare.
4132 (regcache_cooked_read_unsigned): Declare.
4133 (regcache_raw_read_as_address): Delete declaration.
4135 * blockframe.c (generic_read_register_dummy): Use
4136 regcache_cooked_read_unsigned.
4137 * i386-tdep.c (i386_extract_struct_value_address): Use
4138 regcache_cooked_read_unsigned.
4140 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4142 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4143 double sizes according to ELF ABI flags.
4144 (gdbarch_tdep): Record elf_flags.
4146 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4148 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4149 (m6812_prolog): They can appear in 68HC12 function prologue.
4150 (m68hc11_frame_chain): Cleanup.
4152 2002-08-12 Andrew Cagney <cagney@redhat.com>
4154 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4156 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4157 (i386_linux_register_raw_size): Delete function.
4158 (i386_linux_init_abi): Update.
4159 * i386-tdep.c (i386_register_raw_size): Delete function.
4160 (i386_register_byte): Delete function.
4161 (i386_gdbarch_init): Update.
4162 (i386_register_size): Delete array.
4163 (i386_register_offset): Delete array.
4165 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4166 (REGISTER_RAW_SIZE): Delete macro.
4167 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4168 (REGISTER_BYTE): Delete macro.
4170 2002-08-11 Aidan Skinner <aidan@velvet.net>
4172 * ada-lang.c (ada_lookup_partial_symbol)
4173 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4174 prototype names so that grep ^func works properly.
4176 * ada-lang.c (ada_array_element_type)
4177 (ada_lookup_partial_symbol): Fix typos in parameter list.
4179 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4180 Fix prototype names so that grep ^func works properly.
4182 2002-08-10 Andrew Cagney <cagney@redhat.com>
4183 Elena Zannoni <ezannoni@redhat.com>
4184 Martin M. Hunt <hunt@redhat.com>
4186 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4187 (build_builtin_type_vec128i): Set the vector bit.
4188 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4189 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4190 (build_builtin_type_vec64): New function.
4191 (build_builtin_type_vec64i): New function.
4192 (build_gdbtypes): Initialize builtin_type_vec64 and
4193 builtin_type_vec64i.
4195 2002-08-09 Andrew Cagney <cagney@redhat.com>
4197 * regcache.c (regcache_dump): Compare the register offset
4199 * arch-utils.c (generic_register_byte): New function.
4200 * arch-utils.h (generic_register_byte): Declare.
4201 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4202 * gdbarch.h, gdbarch.c: Regenerate.
4204 2002-08-09 Andrew Cagney <cagney@redhat.com>
4206 * regcache.c: Include "gdbcmd.h"
4207 (_initialize_regcache): Add commands "maintenance print
4208 registers", "maintenance print raw-registers" and "maintenance
4209 print cooked-registers".
4210 (enum regcache_dump_what): Define.
4211 (dump_endian_bytes): New function.
4212 (regcache_dump): New function.
4213 (regcache_print): New function.
4214 (maintenance_print_registers): New function.
4215 (maintenance_print_raw_registers): New function.
4216 (maintenance_print_cooked_registers): New function.
4217 * Makefile.in (regcache.o): Update dependencies.
4219 2002-08-09 Michael Snyder <msnyder@redhat.com>
4221 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4222 (mips_push_arguments): Correct some comments. Use paddr_nz
4223 for printing addresses in debug output. Replace static
4224 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4225 (mips_n32n64_push_arguments): New function, cloned from
4226 mips_push_arguments and tuned for the n32/n64 ABI.
4227 (mips_push_register): Buffer needs dynamic allocation.
4228 (mips_print_register): Ditto.
4229 (do_gp_register_row): Ditto.
4230 (mips_store_return_value): Ditto.
4231 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4233 2002-08-09 Don Howard <dhoward@redhat.com>
4235 * memattr.c (mem_info_command): Print special case of upper bound
4236 as max CORE_ADDR + 1.
4238 2002-08-08 Michael Snyder <msnyder@redhat.com>
4240 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4241 returns structs by ref if they're too big to fit in two registers.
4243 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4245 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4247 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4248 mips_find_saved_regs().
4249 (mips_pop_frame): Likewise.
4251 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4253 * blockframe.c (frame_saved_regs_register_unwind): Revise
4254 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4257 2002-08-09 Grace Sainsbury <graces@redhat.com>
4259 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4260 T-packets; the 'a' is not taken as a register number.
4261 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4262 (remote_stopped_data_address): New functions; add to target
4264 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4265 prototypes to match other implementations of this
4266 function. replace integer argument with pointer -- the length
4267 field in the Z-packet is the length of what is pointed to or 1 if
4268 pointer is null. Add to target vector.
4269 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4273 * remote.c (remote_wait): Add support to extract optional
4274 watchpoint information from T-packet. Ignore unrecognized
4275 optional info in T-packet.
4276 (remote_async_wait): Ditto.
4278 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4280 * cli/cli-dump.c: Change fopen modes to use binary open modes
4281 as defined in include/fopen-bin.h throughout.
4283 2002-08-08 Michael Snyder <msnyder@redhat.com>
4285 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4287 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4289 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4290 assertion failure by returning early after a warning.
4292 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4294 * mips-tdep.c (mips_find_saved_regs): Make static.
4295 (mips_frame_init_saved_regs): New function.
4296 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4297 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4298 (mips_find_saved_regs): Delete declaration.
4300 2002-08-08 Grace Sainsbury <graces@redhat.com>
4302 * remote.c (remote_wait, remote_async_wait): Change
4303 thread_num from int to ULONGEST.
4304 (unpack_varlen_hex): Change result parameter from
4305 int * to ULONGEST *.
4307 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4309 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4310 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4312 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4314 2002-08-08 Andrew Cagney <cagney@redhat.com>
4316 * gcore.c (override_derive_stack_segment): Delete variable.
4317 (preempt_derive_stack_segment): Delete function.
4318 (derive_stack_segment): Delete function.
4319 (default_derive_stack_segment): Renamed to derive_stack_segment.
4320 (override_derive_heap_segment): Delete variable.
4321 (preempt_derive_heap_segment): Delete function.
4322 (derive_heap_segment): Delete function.
4323 (default_derive_heap_segment): Rename to derive_heap_segment.
4325 2002-08-06 Michael Snyder <msnyder@redhat.com>
4327 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4328 * mips-tdep.c (mips_EABI_use_struct_convention,
4329 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4330 New functions. (mips_use_struct_convention): Delete.
4331 (mips_gdbarch_init): set use_gdbarch_convention.
4333 2002-08-06 Michael Snyder <msnyder@redhat.com>
4335 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4336 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4337 mips_o32_reg_struct_has_addr): New functions.
4338 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4340 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4342 * regcache.c (pseudo_register): Delete function.
4343 (fetch_register): Delete function.
4344 (store_register): Delete function.
4345 (regcache_raw_read, legacy_read_register_gen): Use
4346 target_fetch_registers instead of fetch_register.
4347 (legacy_write_register_gen, regcache_raw_write): Use
4348 target_store_register instead of store_register.
4349 (write_register_bytes): Ditto.
4351 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4352 (STORE_PSEUDO_REGISTER): Delete.
4353 * gdbarch.h, gdbarch.c: Regenerate.
4355 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4357 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4358 write dump file binary.
4360 2002-08-05 Michael Snyder <msnyder@redhat.com>
4362 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4363 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4364 (mips_gdbarch_init): Set N32 target to be mips64.
4366 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4368 * frame.c (find_saved_register): Break out of loop once saved
4369 register address is found. Don't mention sparc in loop comment
4372 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4374 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4375 mips_default_saved_regsize to 8.
4377 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4379 * gcore.c: Do not include <sys/procfs.h>.
4380 * Makefile.in (gcore.o): Update dependencies.
4382 2002-08-06 Andrew Cagney <cagney@redhat.com>
4384 * configure.tgt: Make arc-*-* obsolete.
4385 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4386 * MAINTAINERS: Make arc-elf obsolete.
4387 * arc-tdep.c: Make file obsolete.
4388 * config/arc/arc.mt: Ditto.
4389 * config/arc/tm-arc.h: Ditto.
4391 2002-08-05 Theodore A. Roth <troth@verinet.com>
4393 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4395 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4397 * mcore-tdep.c (mcore_gdbarch_init): Use
4398 generic_unwind_get_saved_register instead of
4399 generic_get_saved_register.
4400 * v850-tdep.c (v850_gdbarch_init): Ditto.
4401 * frv-tdep.c (frv_gdbarch_init): Ditto.
4402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4403 * s390-tdep.c (s390_gdbarch_init): Ditto.
4404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4405 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4406 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4408 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4410 * objfiles.h: Add missing #include "symfile.h"
4412 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4414 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4416 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4417 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4420 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4422 * NEWS: Cleanup and nitpick.
4424 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4426 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4428 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4430 * Makefile.in (gdbtk-bp.o): Update dependencies.
4431 (gdbtk-register.o): Ditto.
4432 (gdbtk-varobj.o): Ditto.
4434 2002-08-03 Andrew Cagney <cagney@redhat.com>
4436 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4437 m68hc11_fetch_pseudo_register.
4438 (m68hc11_pseudo_register_write): Replace
4439 m68hc11_store_pseudo_register.
4440 (m68hc11_gdbarch_init): Update.
4442 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4444 * gdbarch.sh: Include "gdb_string.h".
4445 * gdbarch.c: Regenerate.
4447 * regcache.c: Include "gdb_string.h".
4448 * ax-general.c: Ditto.
4450 * std-regs.c: Ditto.
4451 * fbsd-proc.c: Ditto.
4454 * Makefile.in (regcache.o): Update dependencies.
4455 (thread.o, gdbarch.o): Ditto.
4456 (ax-general.o, gdbarch.o): Ditto.
4457 (varobj.o, std-regs.o): Ditto.
4458 (fbsd-proc.o): Specify dependencies.
4460 2002-08-02 Andrew Cagney <cagney@redhat.com>
4462 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4464 (regcache_cooked_write): Ditto.
4466 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4468 * regcache.c (regcache_cooked_read): New function.
4469 (regcache_cooked_write): New function.
4470 (read_register_gen): Rewrite using regcache_cooked_read.
4471 (write_register_gen): Rewrite using regcache_cooked_write.
4473 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4476 2002-08-02 Andrew Cagney <cagney@redhat.com>
4478 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4479 Replace the architecture methods register_read and register_write.
4480 * gdbarch.h, gdbarch.c: Regenerate.
4481 * regcache.c (init_regcache_descr): Update.
4482 (read_register_gen): Update.
4483 (write_register_gen): Update.
4484 (supply_register): Update comment.
4486 * sh-tdep.c (sh_gdbarch_init): Update.
4487 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4488 `regcache' and `gdbarch' parameters. Make `buffer' a void
4489 pointer. Update code.
4490 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4491 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4492 void pointer. Update code.
4493 (sh64_register_write): Delete.
4494 (sh4_register_read): Delete.
4495 (sh64_register_read): Delete.
4496 (sh4_register_write): Delete.
4497 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4498 void pointer, `to' parameter a void pointer.
4499 (sh_sh64_register_convert_to_raw): Ditto.
4501 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4503 * mips-tdep.c (mips_register_virtual_type): Use architecture
4504 invariant return values.
4506 2002-08-01 Andrew Cagney <cagney@redhat.com>
4508 * linux-proc.c: Include "gdb_string.h".
4509 * Makefile.in (linux-proc.o): Update dependency list.
4511 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4513 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4516 2002-08-01 Grace Sainsbury <graces@redhat.com>
4518 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4519 to_insert_watchpoint, to_remove_watchpoint,
4520 to_stopped_by_watchpoint, to_stopped_data_address,
4521 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4522 target vecctor. Define their corresponding macros so they call
4525 * target.c: Add default and debug versions of for
4526 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4527 to_insert_watchpoint, to_remove_watchpoint,
4528 to_stopped_by_watchpoint, to_stopped_data_address,
4529 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4531 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4533 * mips-tdep.c (mips_register_virtual_type): New function.
4534 (mips_gdbarch_init): Register mips_register_virtual_type()
4535 with gdbarch machinery.
4536 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4537 this file instead of tm-bigmips.h.
4538 (MIPS_REGSIZE): Delete this macro.
4539 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4540 multiarch version in mips-tdep.c will be found.
4542 2002-08-01 Andrew Cagney <cagney@redhat.com>
4544 * NEWS: Menion that CHILL has been made obsolete.
4546 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4547 * stabsread.c (read_range_type): Ditto.
4548 * gdbtypes.h: Ditto.
4549 * language.c (binop_type_check): Ditto.
4550 (binop_result_type): Ditto.
4551 (integral_type): Ditto.
4552 (character_type): Ditto.
4553 (string_type): Ditto.
4554 (boolean_type): Ditto.
4555 (structured_type): Ditto.
4556 (lang_bool_type): Ditto.
4557 (binop_type_check): Ditto.
4558 * language.h (_LANG_chill): Ditto.
4559 * dwarfread.c (set_cu_language): Ditto.
4560 * dwarfread.c (CHILL_PRODUCER): Ditto.
4561 * dwarfread.c (handle_producer): Ditto.
4562 * expression.h (enum exp_opcode): Ditto.
4563 * eval.c: Ditto for comments.
4564 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4565 * expprint.c (print_subexp): Ditto.
4566 (print_subexp): Ditto.
4567 * valops.c (value_cast): Ditto.
4568 (search_struct_field): Ditto.
4569 * value.h (COERCE_VARYING_ARRAY): Ditto.
4570 * symfile.c (init_filename_language_table): Ditto.
4571 (add_psymbol_with_dem_name_to_list): Ditto.
4572 * valarith.c (value_binop): Ditto.
4574 * valops.c (value_slice): Ditto.
4575 * symtab.h (union language_specific): Ditto.
4576 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4577 (SYMBOL_DEMANGLED_NAME): Ditto.
4578 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4579 * defs.h (enum language): Ditto.
4580 * symtab.c (got_symtab): Ditto.
4581 * utils.c (fprintf_symbol_filtered): Ditto.
4583 * ch-typeprint.c: Make file obsolete.
4584 * ch-valprint.c: Make file obsolete.
4585 * ch-lang.h: Make file obsolete.
4586 * ch-exp.c: Make file obsolete.
4587 * ch-lang.c: Make file obsolete.
4589 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4591 (TARGET_FLAGS_TO_PASS): Ditto.
4592 (CHILLFLAGS): Obsolete.
4594 (CHILL_FOR_TARGET): Obsolete.
4595 (CHILL_LIB): Obsolete.
4596 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4598 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4599 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4601 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4604 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4606 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4607 This does not change anything at the moment, but will be helpful
4608 later when full Ada support is integrated.
4610 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4612 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4615 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4617 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4618 and save it in a local variable. Use variable in later test.
4620 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4622 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4623 test. (Thanks to Daniel Jacobowitz.)
4625 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4627 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4628 (mips_abi_strings): Add "n64".
4629 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4631 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4633 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4634 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4636 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4638 * utils.c (host_pointer_to_address, address_to_host_pointer):
4639 Use gdb_assert() instead of explicit call to internal_error().
4641 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4643 * Makefile.in (rs6000-nat.o): Update dependencies.
4645 From Nicholas Duffek:
4646 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4647 (aix-thread.o): New rule.
4648 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4649 * config/powerpc/aix432.mh: New file.
4651 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4653 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4654 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4655 (fetch_core_registers, ppc_linux_supply_gregset)
4656 (ppc_linux_supply_fpregset): New functions.
4657 (ppc_linux_regset_core_fns): New.
4658 (_initialize_ppc_linux_tdep): Call add_core_fns.
4659 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4660 and ppc_linux_supply_gregset.
4661 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4662 (supply_fpregset): Call ppc_linux_supply_fpregset.
4663 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4665 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4667 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4669 * symtab.c (lookup_symbol): Demangle before lowercasing.
4671 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4673 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4675 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4676 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4677 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4678 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4680 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4681 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4682 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4683 (avr-tdep.o, mon960-rom.o): Ditto.
4684 (aout_stabs_gnu_h): Define.
4685 (symtab_h): Remove $(gdb_obstack_h).
4687 2002-07-30 Jim Blandy <jimb@redhat.com>
4689 Patch from David Carlton <carlton@math.stanford.edu>:
4690 * gdbinit.in: Move the `dir' commands that add GDB's own source
4691 directory to the search path to the end, so that the `gdb' source
4692 directory will be searched first.
4694 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4696 * gdb_obstack.h: New file.
4697 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4698 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4699 * objfiles.h: Include "gdb_obstack.h".
4700 * Makefile.in (gdb_obstack_h): Define.
4701 (symtab_h): Add $(gdb_obstack_h).
4702 (objfiles_h): Add $(gdb_obstack_h).
4704 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4705 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4706 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4707 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4708 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4709 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4710 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4711 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4713 * Makefile.in (bcache.o): Update dependencies.
4714 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4715 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4716 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4717 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4718 (stabsread.o, symfile.o, symmisc.o): Ditto.
4719 (symtab.o, typeprint.o, macroexp.o): Ditto.
4720 (macrotab.o, mdebugread.o): Ditto.
4721 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4722 (coff_ecoff_h, aout_aout64_h): Define.
4723 (aout_stabs_gnu_h, libaout_h): Define.
4725 2002-07-29 Andrew Cagney <cagney@redhat.com>
4727 * regcache.c (struct regcache_descr): Rename nr_registers to
4728 nr_cooked_registers. Revise comments describing the structure
4730 (init_regcache_descr): Update.
4731 (init_legacy_regcache_descr): Update.
4732 (read_register_gen, write_register_gen): When a cooked register in
4733 the raw register range, directly access the value from the raw
4736 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4738 * z8k-tdep.c: Do not include "obstack.h".
4739 * h8300-tdep.c, h8500-tdep.c: Ditto.
4740 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4741 * valprint.c, v850-tdep.c: Ditto.
4742 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4743 * mn10200-tdep.c: Ditto.
4745 * Makefile.in (z8k-tdep.o): Update dependencies.
4746 (m68hc11-tdep.o, valprint.o): Ditto.
4747 (v850-tdep.o, d10v-tdep.o): Ditto.
4748 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4749 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4750 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4751 (sh_opc_h, gdb_sim_sh_h): Define.
4752 (elf_sh_h, elf_bfd_h): Define.
4753 (opcode_m68hc11_h): Define.
4754 (OPCODES_SRC, OPCODES_DIR): define.
4755 (OPCODES): Use $(OPCODES_DIR).
4756 (gdb_sim_d10v_h): Rename sim_d10v_h.
4757 (gdb_sim_arm_h): Rename sim_arm_h.
4759 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4761 * utils.c (host_pointer_to_address, address_to_host_pointer):
4762 Change internal_error() message to indicate function responsible
4765 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4767 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4768 calls to local_hex_string_custom().
4770 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4772 * irix5-nat.c: Move IRIX shared library support from here...
4773 * solib-irix.c: ...to here. Revised substantially to work with
4774 generic solib framework.
4776 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4777 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4778 * mips-irix-tdep.c: New file.
4780 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4781 (mips-irix-tdep.o, solib-irix.o): New rules.
4782 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4784 * config/mips/irix6.mt (TDEPFILES): Likewise.
4785 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4787 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4789 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4790 disabled (via ``#if 0'') includes.
4792 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4794 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4795 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4796 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4797 Add support for the fpscr register.
4798 * rs6000-nat.c (regmap, fetch_inferior_registers)
4799 (store_inferior_registers, fetch_core_registers): Likewise.
4801 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4803 * rs6000-nat.c (language.h): Include.
4804 (special_regs): Delete this array.
4805 (regmap): New function.
4806 (fetch_register, store_register): Use regmap() to map gdb
4807 register numbers to ptrace register numbers. Also, use
4808 outputs from regmap() to make decisions regarding type of
4809 ptrace() call to make. In particular, don't compare against
4810 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4811 (fetch_inferior_registers, store_inferior_registers): Where
4812 possible, obtain register numbers from tdep struct. Don't
4813 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4814 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4815 (LAST_UISA_SP_REGNUM): Delete.
4817 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4819 * rs6000-nat.c (ppc-tdep.h): Include.
4820 (fetch_registers, store_register, fetch_core_registers): Don't
4821 access registers[] directly. Instead, use supply_register() or
4822 regcache_collect() as appropriate.
4823 (find_toc_address): Format hex address with local_hex_string().
4825 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4827 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4830 2002-07-24 Tom Tromey <tromey@redhat.com>
4832 * jv-exp.y: Marked all strings with _().
4833 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4835 (MethodInvocation, CastExpression, parse_number, yyerror,
4836 java_type_from_name, push_expression_name, yylex): Typo fixes.
4838 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4840 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4841 (tee_file_flush, tee_file_write, tee_file_fputs)
4842 (tee_file_isatty): New.
4843 * ui-file.h (tee_file_new): Add prototype.
4845 2002-07-24 Aidan Skinner <aidan@velvet.net>
4847 * ada-lang.c: Change k&r style function definitions to prototyped
4849 * ada-typeprint.c: Change k&r style function definitions to prototyped
4851 * ada-valprint.c: Change k&r style function definitions to prototyped
4854 2002-07-24 Andrew Cagney <cagney@redhat.com>
4856 * README: Remove reference to remote-bug.
4857 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4859 (m88k-nat.o): Delete rule.
4860 (m88k-tdep.o): Delete rule.
4861 (remote-bug.o): Delete rule.
4862 * MAINTAINERS: Mark as obsolete.
4863 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4864 * m88k-tdep.c: Make file obsolete.
4865 * config/m88k/m88k.mh: Ditto.
4866 * config/m88k/delta88v4.mh: Ditto.
4867 * config/m88k/delta88v4.mt: Ditto.
4868 * config/m88k/delta88.mt: Ditto.
4869 * config/m88k/delta88.mh: Ditto.
4870 * remote-bug.c: Ditto.
4871 * config/m88k/tm-delta88.h: Ditto.
4872 * config/m88k/nm-delta88v4.h: Ditto.
4873 * config/m88k/xm-delta88.h: Ditto.
4874 * config/m88k/xm-dgux.h: Ditto.
4875 * config/m88k/tm-m88k.h: Ditto.
4876 * config/m88k/nm-m88k.h: Ditto.
4877 * config/m88k/tm-delta88v4.h: Ditto.
4878 * m88k-nat.c: Ditto.
4879 * cxux-nat.c: Ditto.
4880 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4881 and m88*-*-* obsolete.
4882 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4885 2002-07-24 Andrew Cagney <cagney@redhat.com>
4887 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4888 constant. Same for local pointer variables.
4889 (extract_signed_integer): Ditto.
4890 * defs.h (extract_unsigned_integer): Update.
4891 (extract_signed_integer): Update.
4893 2002-07-24 Andrew Cagney <cagney@redhat.com>
4895 * regcache.c (regcache_raw_write): Change buf parameter to a
4896 constant void pointer.
4897 (regcache_raw_read): Change buf parameter to a void pointer.
4898 (legacy_write_register_gen): Change myaddr parameter a constant
4900 (supply_register): Change val parameter to a const void pointer.
4901 * regcache.h (regcache_raw_write): Update declaration.
4902 (regcache_raw_read): Update declaration.
4903 (supply_register): Update declaration.
4905 2002-07-24 Tom Tromey <tromey@redhat.com>
4907 * defs.h (gdb_readline_wrapper): Declare.
4908 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4909 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4910 * top.c (gdb_readline_wrapper): New function.
4911 (command_line_input): Use it.
4913 2002-07-24 Andrew Cagney <cagney@redhat.com>
4915 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4916 regcache_read and regcache_write.
4917 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4918 * regcache.c: Update.
4919 * sh-tdep.c (sh64_push_arguments): Update comment.
4920 (sh_pseudo_register_read): Update.
4921 (sh_pseudo_register_write): Update.
4922 (sh4_register_read): Update.
4923 (sh4_register_write): Update.
4924 (sh64_pseudo_register_read): Update.
4925 (sh64_pseudo_register_write): Update.
4926 (sh64_register_read): Update.
4927 (sh64_register_write): Update.
4928 * i386-tdep.c (i386_extract_return_value): Update.
4929 (i386_extract_struct_value_address): Update.
4930 (i386_extract_return_value): Update.
4931 * blockframe.c (generic_read_register_dummy): Update.
4932 (generic_call_dummy_register_unwind): Update
4933 * infrun.c (write_inferior_status_register): Update.
4935 2002-07-23 Jim Blandy <jimb@redhat.com>
4937 * parser-defs.h (expression_context_pc): Make this extern.
4938 (Thanks to Michael Snyder.)
4940 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4942 GDB 5.2.1 released from 5.2 branch.
4943 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4944 * README: Update to mention 5.2.1.
4946 2002-07-23 Mark Salter <msalter@redhat.com>
4948 * remote.c (remote_read_bytes): Fix check for error.
4950 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4952 * aix-thread.c (language.h): Include.
4953 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4954 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4955 Print newlines at end of debug messages.
4956 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4957 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4959 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4961 * aix-thread.c (ppc-tdep.h): Include.
4962 (special_register_p): New function.
4963 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4964 (store_regs_user_thread): Use register number information from
4965 gdbarch_tdep struct instead of hardcoded offsets relative to
4966 FIRST_UISA_SP_REGNUM.
4967 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4968 special_register_p() instead of using FPLAST_REGNUM and
4969 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4970 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4971 will be MQ's register number.
4973 2002-07-22 Michael Snyder <msnyder@redhat.com>
4975 * aix-thread.c (ops): Rename to aix_thread_ops.
4976 (base_ops): Rename to base_target.
4977 (ops_attach): Rename to aix_thread_attach.
4978 (ops_detach): Rename to aix_thread_detach.
4979 (ops_resume): Rename to aix_thread_detach.
4980 (ops_wait): Rename to aix_thread_wait.
4981 (ops_kill): Rename to aix_thread_kill.
4982 (init_ops): Rename to init_aix_thread_ops.
4983 (ops_fetch_register): Rename to aix_thread_fetch_register.
4984 (ops_store_register): Rename to aix_thread_store_register.
4985 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4986 (ops_thread_alive): Rename to aix_thread_thread_alive.
4987 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4988 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4989 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4990 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4991 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4992 (store_regs_lib): Rename to store_regs_user_thread.
4993 (store_regs_kern): Rename to store_regs_kernel_thread.
4995 2002-07-22 Michael Snyder <msnyder@redhat.com>
4997 * aix-thread.c (ops_prepare_to_store): Eliminate.
4998 (init_ops): Don't initialize ops.prepare_to_store.
4999 (store_regs_kern): Pre-fetch register buffers from child,
5000 because some registers may not be in the cache. Copy
5001 regs from register cache only if they are cached.
5002 (store_regs_lib): Copy regs from register cache only
5004 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5005 fill_gprs64): Ditto.
5007 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5009 * aix-thread.c (gdb_assert.h): Include.
5010 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5011 register sizes (from register cache) match size of buffer holding
5013 (fill_sprs32): Change parameter types to match those in the ptrace()
5015 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5016 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5018 2002-07-22 Michael Snyder <msnyder@redhat.com>
5020 * aix-thread.c (supply_sprs64): Cosmetic change.
5021 (supply_sprs32): Cosmetic change.
5022 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5023 (fill_sprs64): Use regcache_collect instead of read_register.
5024 (store_regs_lib): Use regcache_collect instead of
5025 read_register. Use fill_sprs32 instead of fill_sprs64,
5026 if debugging a 32-bit architecture.
5027 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5028 out of the register cache, instead of passing a pointer into
5029 the register cache directly to ptrace. Use regcache_collect
5030 insteaad of read_register.
5031 (ops_prepare_to_store): Use target_read_registers instead
5032 of read_register_bytes.
5034 2002-07-20 Aidan Skinner <aidan@velvet.net>
5036 * MAINTAINERS: Add self under write after approval.
5038 2002-07-20 Aidan Skinner <aidan@velvet.net>
5040 * ada-tasks.c: Change k&r style function definitions to prototyped
5043 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5045 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5046 * x86-64-tdep.c: Include "objfiles.h".
5047 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5048 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5050 2002-07-17 Michal Ludvig <michal@suse.cz>
5052 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5053 (update_context): Initialise cfa variable.
5055 2002-07-17 Michael Snyder <msnyder@redhat.com>
5057 * aix-thread.c: Shorten some long lines.
5058 Bring comments into line with code spec.
5060 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5062 * infrun.c: Re-indent using gdb_indent.sh.
5064 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5066 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5067 Leave the indentation temporarily untouched, to minimize the diffs.
5069 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5071 * stabsread.c: Make os9k sections of the code obsolete,
5073 * stabsread.h: Make os9k sections of the code obsolete.
5075 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5077 * linux-low.c (regsets_store_inferior_registers): Add free()
5078 at the end of a loop to prevent memory leak.
5079 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5080 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5081 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5083 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5085 2002-07-17 Jim Blandy <jimb@redhat.com>
5087 * macrocmd.c (info_macro_command): Remove newline from error
5090 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5092 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5093 (sh_gdbarch_init): Use it for sh-dsp.
5095 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5097 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5098 64-bit DWARF2 format.
5100 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5102 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5103 <sys/proc.h> when not available.
5105 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5107 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5108 * stabsread.c: Make os9k sections of the code obsolete.
5109 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5110 * config/i386/i386os9k.mt: Make file obsolete.
5111 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5112 (COMMON_OBS): Remove os9kread.o
5113 (SFILES): Remove os9kread.c.
5114 (os9kread.o, remote-os9k.o): Make target obsolete.
5115 * remote-os9k.c: Make file obsolete.
5116 * os9kread.c: Make file obsolete.
5119 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5121 * NEWS: Mention that the FR30 has been made obsolete.
5122 * fr30-tdep.c: Make file obsolete.
5123 * config/fr30/tm-fr30.h: Ditto.
5124 * config/fr30/fr30.mt: Ditto.
5125 * configure.tgt: Make fr30-*-elf obsolete.
5126 * MAINTAINERS: Make fr30-elf obsolete.
5128 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5130 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5131 found is not inside a section.
5133 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5135 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5137 (pdc_realloc): Use xrealloc() instead of realloc().
5139 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5141 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5142 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5143 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5146 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5148 * aix-thread.c (ptrace_check): Eliminate goto.
5149 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5152 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5154 * aix-thread.c (gdbcmd.h): Include.
5155 (DEBUG, DBG, DBG2, dbg): Eliminate.
5156 (debug_aix_thread): New static global.
5157 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5158 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5159 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5160 invocations to DBG and DBG2 macros to test against
5161 ``debug_aix_thread'' and call fprintf_unfiltered().
5162 (_initialize_aix_thread): Add new command "set debug aix-thread".
5164 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5166 From Gerhard Tonn <TON@de.ibm.com>:
5167 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5168 instead of supply_register.
5170 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5172 * dwarf2cfi.c: Include "gdb_assert.h".
5173 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5175 (update_context): Do not use __func__. Add missing ``break''.
5176 (update_context): Do not use __func__.
5178 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5180 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5181 and its setting. Set gdbarch instruction printing functions
5182 directly. For non-rs6000 case use new function
5183 gdb_print_insn_powerpc.
5184 (gdb_print_insn_powerpc): New function.
5186 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5188 * NEWS: Mention that the d30v has been marked obsolete.
5189 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5190 * configure.tgt: Mark d30v-*-* as obsolete.
5191 * d30v-tdep.c: Mark file as obsolete.
5192 * config/d30v/d30v.mt: Ditto.
5193 * config/d30v/tm-d30v.h: Ditto.
5195 2002-07-13 Aidan Skinner <aidan@velvet.net>
5197 * ada-tasks.c (add_task_entry): replace calls to
5198 malloc() with xmalloc
5199 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5201 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5202 ada_finish_decode_line_1, all_sals_for_line
5203 ada_breakpoint_rewrite): replace calls to free() with xfree()
5205 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5207 From Nicholas Duffek (with minor changes by Martin Hunt,
5208 Louis Hamilton, and Kevin Buettner):
5209 * aix-thread.c: New file.
5211 2002-07-12 Petr Sorfa <petrs@caldera.com>
5213 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5214 complaint for invalid attribute class or form.
5215 (read_func_scope): DW_AT_frame_base
5216 better handling of DW_AT_block*.
5217 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5218 better handling of DW_AT_block*.
5219 (read_common_block): DW_AT_location
5220 better handling of DW_AT_block*.
5221 (read_partial_die): DW_AT_location better handling
5223 (new_symbol): DW_AT_external better handling of
5224 DW_AT_block*. Proper initialization of variable
5226 (attr_form_is_block): New function that returns true
5227 if the attribute's form is of DW_FORM_block*.
5229 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5231 * valops.c (find_method_list): Remove comment about
5232 removed STATIC_MEMFUNCP argument.
5233 (value_find_oload_method_list): Likewise.
5235 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5237 From Nicholas Duffek:
5238 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5239 target_new_objfile_hook.
5241 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5243 From Nicholas Duffek:
5244 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5247 2002-07-12 Andrew Cagney <cagney@redhat.com>
5249 * MAINTAINERS: Mention --enable-sim-build-warnings.
5250 (m68hc11-elf): Disable sim build warnings.
5251 (m32r-elf): Mark as broken obsolete candidate.
5252 (x86_64-linux-gnu): Mark as buildable with -Werror.
5253 (arm-elf): Change -w to ``,'' which enables warnings but not
5256 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5258 * bcache.h: Update copyright.
5259 (struct bstring, struct bcache): Move definition to "bcache.c".
5260 Replaced by opaque declaration.
5261 (bcache_xfree): Replace free_bcache.
5262 (bcache_xmalloc, bcache_memory_used): Declare.
5264 * bcache.c: Update copyright.
5265 (struct bstring, struct bcache): Moved to here from "bcache.h".
5267 (bcache_xmalloc, bcache_memory_used): New functions.
5268 (bcache_xfree): Replace function free_bcache.
5270 * Makefile.in (objfiles.o): Add $(bcache_h).
5271 (objfiles_h): Remove $(bcache_h).
5272 (symfile.o): Add $(bcache_h).
5274 * symmisc.c: Update copyright.
5275 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5276 (print_objfile_statistics): Use bcache_memory_used.
5278 * symfile.c: Include "bcache.h".
5279 (reread_symbols): Use bcache_xfree.
5280 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5281 (add_psymbol_to_list): Pass psymbol_cache by value.
5282 (add_psymbol_with_dem_name_to_list): Ditto.
5284 * objfiles.h: Update copyright.
5285 (struct bcache): Declare opaque. Do not include "bcache.h".
5286 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5288 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5290 * objfiles.c: Include "bcache.h". Update copyright.
5291 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5293 (free_objfile): Use bcache_xfree.
5295 2002-07-11 Grace Sainsbury <graces@redhat.com>
5297 * monitor.c (monitor_fetch_register): Make name a constant.
5298 (monitor_store_register): Same.
5300 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5302 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5303 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5304 (finish_block) For non-function blocks, hash the symbol table. For
5305 function blocks, mark the symbol table as unhashed.
5306 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5307 (msymbol_hash_iw): Likewise.
5308 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5310 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5311 (lookup_minimal_symbol): Likewise for both.
5312 * symtab.h (struct block): Add `hashtable' flag. Comment the
5314 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5315 (ALL_BLOCK_SYMBOLS): Update.
5316 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5317 (struct symbol): Add `hash_next' pointer.
5318 * symtab.c (lookup_block_symbol): Search using the hash table when
5320 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5321 (search_symbols, find_addr_symbol): Likewise.
5323 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5324 (read_dst_symtab): Likewise.
5325 * jv-lang.c (get_java_class_symtab): Likewise.
5326 * mdebugread.c: Include "gdb_assert.h".
5327 (shrink_block): Assert that the block being modified is not hashed.
5328 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5329 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5331 (dump_symtab): Recognize hashed blocks.
5332 * printcmd.c (print_frame_args): Assert that function blocks do not
5333 have hashed symbol tables.
5334 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5335 (fill_in_ada_prototype, debug_print_block): Likewise.
5336 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5338 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5340 * stack.c (print_frame): Use result of frame_address_in_block()
5341 instead of fi->pc when evaluating symbols.
5342 (backtrace_command_1): Ditto.
5344 2002-07-11 Andrew Cagney <cagney@redhat.com>
5346 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5349 * arm-tdep.c (arm_register_name): Make return type constant.
5351 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5353 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5355 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5356 * s390-tdep.c (s390_fp_regnum): Ditto.
5357 (s390_read_fp): Ditto.
5358 (s390_pop_frame): Ditto.
5359 (_initialize_s390_tdep): Ditto.
5360 * remote.c (get_remote_state): Ditto.
5361 * procfs.c (mappingflags): Ditto.
5362 * memattr.c (_initialize_mem): Ditto.
5363 * mcore-tdep.c (mcore_pop_frame): Ditto.
5364 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5365 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5366 * language.c (set_case_str): Ditto.
5367 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5368 * frv-tdep.c (new_variant): Ditto.
5369 (frv_stopped_data_address): Ditto.
5370 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5371 (context_alloc): Ditto.
5372 (frame_state_alloc): Ditto.
5373 (unwind_tmp_obstack_init): Ditto.
5374 (unwind_tmp_obstack_free): Ditto.
5375 (cfi_read_fp): Ditto.
5376 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5377 (cris_pop_frame): Ditto.
5378 * c-lang.c (scanning_macro_expansion): Ditto.
5379 (finished_macro_expansion): Ditto.
5380 (c_preprocess_and_parse): Ditto.
5381 * gdbarch.sh: Ditto.
5382 * gdbarch.h, gdbarch.c: Regenerate.
5383 * config/mn10200/tm-mn10200.h: Adjust indentation.
5384 * target.c: Adjust indentation.
5385 * symtab.h: Adjust indentation.
5386 * stabsread.h: Adjust indentation.
5387 * remote-es.c: Adjust indentation.
5388 * os9kread.c: Adjust indentation.
5390 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5392 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5393 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5395 2002-07-10 Grace Sainsbury <graces@redhat.com>
5397 * NEWS: Mention m68k, mcore multi-arching.
5398 * MAINTAINERS: Change status of m68k, mcore to reflect
5401 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5403 * valops.c (find_overload_match): Free oload_syms.
5405 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5407 Define HAVE_SYS_PROC_H if sys/proc.h exists
5408 * configure.in: Add check for sys/proc.h
5409 * config.in: Regenerate.
5410 * configure: Regenerate.
5412 2002-07-09 Grace Sainsbury <graces@redhat.com>
5414 * config/m68k/tm-m68k.h: Remove macros wrapped in
5415 #if !GDB_MULTI_ARCH.
5417 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5419 * config.in, configure: Regenerate.
5421 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5423 * dwarf2cfi.c: Include "gcore.h".
5424 (execute_stack_op): Fix implementation of the
5425 DW_OP_deref and DW_OP_deref_size operators by letting do their
5426 lookup in the target.
5428 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5430 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5431 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5434 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5436 Fix PR gdb/595, gdb/602
5437 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5438 Don't call value_cast, just read the vtable pointer; update comments
5441 2002-07-05 Grace Sainsbury <graces@redhat.com>
5443 * config/mcore/tm-mcore.h: Remove file.
5444 * config/mcore/mcore.mt: Remove definition of TM_FILE
5445 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5447 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5449 * i386bsd-tdep.c: Include "gdb_string.h".
5451 2002-07-04 Grace Sainsbury <graces@redhat.com>
5453 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5454 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5456 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5457 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5458 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5459 (RETVAL_REGNUM): Move macros from tm-mcore.h
5460 (mcore_reg_struct_has_addr): New function.
5461 (mcore_gdbarch_init): Added initializations for the macros removed
5464 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5466 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5467 traditonal string branding within the ELF header.
5469 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5471 * symtab.c (remove_params): New function.
5472 (make_symbol_overload_list): Use it instead of cplus_demangle.
5473 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5475 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5477 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5479 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5481 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5482 and tdep->sigtramp_end.
5483 * i386obsd-nat.c: New file.
5484 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5486 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5487 Don't call get_current_frame().
5489 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5491 * i386-nat.c (child_post_startup_inferior): New function
5492 calling i386_cleanup_dregs if
5493 I386_USE_GENERIC_WATCHPOINTS is defined.
5494 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5495 conditional to acknowledge that i386-nat.c has its
5496 own child_post_startup_inferior function.
5498 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5500 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5501 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5502 instead of MAX_REGISTER_RAW_SIZE.
5503 (i386_extract_return_value, i386_extract_struct_value_address):
5504 Convert to use regcache.
5505 (i386_gdbarch_init): Set max_register_raw_size and
5506 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5507 Set extract_return_value and extract_struct_value_address instead
5508 of their deprecated variants.
5510 Convert i386 target to generic dummy frames.
5511 * i386-tdep.c: Include "symfile.h".
5512 (i386_frameless_signal_p): Consider a function to be frameless if
5513 the pc points at the first instruction of the function.
5514 (i386_frame_chain): Handle (generic) call dummies.
5515 (i386_frame_saved_pc): Likewise.
5516 (i386_frame_init_saved_regs): Remove code dealing with call
5517 dummies on the stack.
5518 (i386_push_dummy_frame): Removed.
5519 (i386_call_dummy_words): Removed.
5520 (i386_fix_call_dummy): Removed.
5521 (i386_push_return_address): New function.
5522 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5523 parameter, and don't call get_current_frame.
5524 (i386_pop_frame): New function.
5525 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5526 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5527 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5528 call_dummy_length to 0, set call_dummy_words to NULL, set
5529 sizeof_call_dummy_words to 0, set fix_call_dummy to
5530 generic_fix_call_dummy, set pc_in_call_dummy to
5531 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5532 generic_push_dummy_frame, set push_return_address to
5533 i386_push_return_address and set frame_chain_valid to
5534 generic_file_frame_chain_valid.
5536 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5538 * gdbarch.sh (struct regcache): Add opaque declaration.
5539 (EXTRACT_RETURN_VALUE): New architecture method.
5540 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5541 * gdbarch.h, gdbarch.c: Regenerate.
5542 * arch-utils.c (legacy_extract_return_value): New function.
5543 * arch-utils.h (legacy_extract_return_value): Declare.
5544 * values.c (value_being_returned): Re-enable code handling
5545 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5546 deprecated_grub_regcache_for_registers call to block handling
5547 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5548 (EXTRACT_RETURN_VALUE): Do not define.
5550 2002-07-03 Grace Sainsbury <graces@redhat.com>
5552 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5553 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5554 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5555 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5556 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5557 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5558 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5559 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5560 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5561 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5562 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5563 argument so the function fits the prototype in the architecture
5565 (mcore_pop_frame): Remove argument so the function fits the
5566 prototype. Use get_current_frame instead of the argument.
5567 (mcore_push_arguments): Change type of struct_return so the
5568 function can be used in the architecture vector.
5569 (mcore_store_struct_return): Add.
5570 (mcore_frame_init_saved_regs): Add.
5571 (mcore_gdbarch_init): Add function calls to replace the macros
5572 removed from tm-mcore.h
5574 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5576 * infcmd.c (print_return_value): Remove compatibility code calling
5577 deprecated_grub_regcache_for_registers.
5579 * values.c: Include "regcache.h".
5580 (value_being_returned): Update. Use
5581 deprecated_grub_regcache_for_registers to extract the register
5583 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5584 ``struct regcache''.
5585 * Makefile.in (values.o): Add dependency on $(regcache_h).
5587 * inferior.h (run_stack_dummy): Change type of second parameter to
5588 a ``struct regcache''.
5589 * valops.c (hand_function_call): Change type of retbuf to ``struct
5590 regcache''. Allocate using regcache_xmalloc, clean using
5591 make_cleanup_regcache_xfree.
5592 * infcmd.c (run_stack_dummy): Update. Use
5593 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5595 * regcache.c (do_regcache_xfree): New function.
5596 (make_cleanup_regcache_xfree): New function.
5597 * regcache.h (make_cleanup_regcache_xfree): Declare.
5599 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5601 * event-top.c (command_line_handler): Don't read past
5602 beginning of buffer.
5604 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5606 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5608 (varobj_create): Store frame_id for root.
5609 (varobj_gen_name): Use xasprintf.
5610 (varobj_update): Save and restore frame using get_frame_id() and
5612 (create_child): Use xasprintf.
5613 (new_root_variable): Initialize frame_id.
5614 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5615 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5616 to prevent memory leak.
5618 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5620 * valops.c (hand_function_call): Move declaration of retbuf to
5621 start of function, allocate using malloc, add a cleanup but before
5622 the inf_status cleanup, cleanup the buffer. Rename local variable
5623 old_chain to inf_status_cleanup.
5625 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5627 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5629 * cli/cli-decode.c (cmd_func_p): New function.
5630 (cmd_func): New function.
5632 * command.h: Add cmd_func() and cmd_func_p().
5634 2002-07-03 Grace Sainsbury <graces@redhat.com>
5636 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5637 (REGISTER_SIZE): Remove.
5638 (MAX_REGISTER_RAW_SIZE): Remove.
5639 (REGISTER_VIRTUAL_TYPE): Remove.
5640 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5641 (REGISTER_NAME): Remove.
5642 (USE_GENERIC_DUMMY_FRAMES): Remove.
5643 (CALL_DUMMY): Remove.
5644 (CALL_DUMMY_START_OFFSET): Remove.
5645 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5646 (CALL_DUMMY_LOCATION): Remove.
5647 (FIX_CALL_DUMMY): Remove.
5648 (CALL_DUMMY_ADDRESS): Remove.
5649 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5650 (SAVE_DUMMY_FRAME_TOS): Remove.
5651 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5652 (mcore_register_virtual_type): New function.
5653 (mcore_register_byte): New function.
5654 (mcore_register_size): New function.
5655 (mcore_register_name): New function.
5656 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5657 macros removed from tm-mcore.h.
5658 (mcore_dump_tdep): Add.
5659 (_initialize_mcore_tdep): Add gdbarch_register call.
5661 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5663 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5664 frameless_look_for_prologue, such that we actually call this
5667 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5669 * frame.h (frame_address_in_block): New function.
5671 * blockframe.c (frame_address_in_block): New function extracted
5672 from get_frame_block().
5673 (get_frame_block): Use frame_address_in_block().
5674 (block_innermost_frame): Use frame_address_in_block() to match
5675 the frame pc address against the block boundaries rather than
5676 the frame pc directly. This prevents a failure when a frame pc
5677 is actually a return-address pointing immediately after the end
5680 2002-07-02 Grace Sainsbury <graces@redhat.com>
5682 * MAINTAINERS: Add self under write after approval.
5684 2002-07-02 Grace Sainsbury <graces@redhat.com>
5686 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5687 used in architecture vector. The default is
5688 m68k_local_breakpoint_from_pc.
5689 (m68k_local_breakpoint_from_pc): Add.
5690 (enum): Add register numbers from tm-m68k.h.
5691 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5693 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5694 GDB_MULTI_ARCH_PARTIAL.
5695 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5696 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5698 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5699 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5700 to enum in m68k-tdep.c
5702 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5704 * solib-osf.c (open_map): Compute the list of shared libraries
5705 loaded by the inferior, rather than the list of libraries loaded
5706 by GDB itself. Otherwise, GDB ends up reading the symbols from
5707 the wrong shared libraries...
5709 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5711 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5712 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5714 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5716 (FRAMELESS_SIGNAL): Remove function.
5717 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5718 i386_linux_saved_pc_after_call): Removed.
5719 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5720 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5721 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5723 * i386-tdep.c (i386_frameless_signal_p): New function.
5724 (i386_frame_chain): Deal with frameless signals.
5725 (i386_sigtramp_saved_sp): New function.
5726 (i386_frame_saved_pc): Deal with frameless signals.
5727 (i386_saved_pc_after_call): Make sure the correct value is
5728 returned just after entry into a sigtramp.
5729 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5730 i386fbsd4_sc_sp_offset): New variables.
5731 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5732 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5733 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5734 similiar to what we already did for sc_pc_offset.
5735 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5738 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5740 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5742 * config/i386/tm-x86-64linux.h: New.
5743 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5745 * config/i386/nm-x86-64.h: Rename to ...
5746 * config/i386/nm-x86-64linux.h: ... this one.
5747 * config/i386/x86-64linux.mh: Reflect the above change.
5749 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5751 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5752 with sigcontext_addr. Add sc_sp_offset.
5753 (i386bsd_sigtramp_saved_pc): Remove prototype.
5754 (i386bsd_sicontext_addr): Add prototype.
5755 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5756 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5757 (i386_svr4_sigtramp_saved_pc): Removed.
5758 (i386_svr4_sigcontext_addr): New function.
5759 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5760 Initialize tdep->sigcontext_addr instead. Initialize
5761 tdep->sc_pc_offset and tdep->sc_sp_offset.
5762 (i386_gdbarch_init): Likewise.
5763 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5765 (i386bsd_sigtramp_saved_pc): Remove function.
5766 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5767 Initialize tdep->sigcontext_addr instead. Initialize
5769 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5770 of tdep->sigtramp_saved_pc.
5771 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5772 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5775 * i386-tdep.c (i386_frameless_function_invocation,
5776 i386_frame_num_args, i386_frame_init_saved_regs,
5777 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5778 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5779 i386_extract_return_value, i386_store_return_value,
5780 i386_extract_struct_value_address, i386_register_virtual_type,
5781 i386_register_convertible, i386_register_convert_to_virtual,
5782 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5783 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5786 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5788 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5790 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5791 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5792 this macro. Include "value.h".
5794 2002-06-30 Aidan Skinner <aidan@velvet.net>
5796 * ada-exp.tab.c: remove as it's a generated file
5797 * ada-lex.c: remove as it's a generated file
5799 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5801 * config/i386/tm-i386.h (struct frame_info, struct
5802 frame_saved_regs, struct value, struct type): Remove forward
5805 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5806 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5807 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5808 (FILL_FPXREGSET): Define.
5810 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5812 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5813 i[3456]86-*-netbsd* case.
5814 * config/i386/tm-obsd.h: Removed.
5815 * config/i386/obsd.mt: Removed.
5816 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5818 (MH_CFLAGS): Add -DYYDEBUG=0.
5820 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5821 i386nbsd_sc_pc_offset on OpenBSD too.
5823 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5824 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5825 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5827 * i386bsd-tdep.c: Include "arch-utils.h".
5828 (i386bsd_aout_in_solib_call_trampoline): New function.
5829 (i386bsd_init_abi): Set in_solib_call_trampoline to
5830 i386bsd_aout_in_solib_call_trampoline.
5831 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5832 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5834 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5836 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5837 (struct obstack, struct bcache): Add opaque declarations.
5838 * Makefile.in (macrotab_h): Update
5840 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5842 * blockframe.c (generic_find_dummy_frame): Change return type to
5843 ``struct regcache''.
5844 (struct dummy_frame): Replace field ``registers'' with regcache, a
5845 struct regcache object.
5846 (generic_find_dummy_frame): Update.
5847 (generic_push_dummy_frame): Update. Use regcache_xfree,
5848 regcache_xmalloc and regcache_cpy.
5849 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5851 (deprecated_generic_find_dummy_frame): Update.
5852 (generic_read_register_dummy): Update. Use
5853 regcache_read_as_address.
5854 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5855 (generic_get_saved_register): Update. Use regcache_read.
5857 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5859 * Makefile.in (objfiles_h): Add $(bcache_h).
5860 * objfiles.h: Include "bcache.h".
5862 * Makefile.in (symtab_h): Remove $(bcache_h).
5863 * symtab.h: Do not include "bcache.h".
5865 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5867 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5868 generic_func_frame_chain_valid.
5870 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5872 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5873 * config/i386/tm-fbsd.h: Likewise.
5875 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5877 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5878 generic_unwind_get_saved_register.
5880 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5882 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5883 * regcache.c (supply_register): Add missing argument to
5884 register_buffer call.
5886 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5888 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5889 Solaris /bin/grep does not not like it. From Peter Schauer.
5891 2002-06-26 Tom Tromey <tromey@redhat.com>
5893 * command.h (add_setshow_cmd): Declare.
5894 (add_setshow_cmd_full): Declare.
5895 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5896 returns void. Use add_setshow_cmd_full.
5897 (add_setshow_cmd_full): New function.
5898 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5899 (add_setshow_boolean_cmd): Likewise.
5901 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5903 * config/vax/tm-vax.h: Protect from multiple inclusion.
5904 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5905 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5906 * config/vax/tm-vaxbsd.h: ...here. New file.
5907 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5909 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5911 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5912 (BELIEVE_PCC_PROMOTION): Remove.
5913 (AP_REGNUM): Move to...
5914 * config/vax/nm-vax.h: ...here.
5915 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5916 (vax_breakpoint_from_pc): New function.
5917 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5918 and gdbarch_believe_pcc_promotion.
5920 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5922 * Makefile.in (vax_tdep_h): Define.
5923 (vax-tdep.o): Use $(vax_tdep_h).
5924 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5925 (vax_dump_tdep): New function.
5926 (_initialize_vax_tdep): Register vax_dump_tdep.
5927 * vax-tdep.h: Include osabi.h.
5928 (struct gdbarch_tdep): New.
5930 2002-06-26 Andrew Cagney <cagney@redhat.com>
5932 * frame.h (deprecated_generic_find_dummy_frame): Rename
5933 generic_find_dummy_frame.
5934 * blockframe.c (generic_find_dummy_frame): Make static.
5935 (deprecated_generic_find_dummy_frame): New function.
5936 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5937 generic_find_dummy_frame with deprecated_find_dummy_frame.
5938 (sh64_nofp_frame_init_saved_regs): Ditto.
5939 (sh_fp_frame_init_saved_regs): Ditto.
5940 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5941 (s390_frame_chain): Ditto.
5942 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5944 2002-06-26 Grace Sainsbury <graces@redhat.com>
5946 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5947 gdbarch vector are at the top.
5949 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5950 (FRAME_ARGS_ADDRESS): Remove.
5951 (FRAME_LOCALS_ADDRESS): Remove.
5952 (FRAME_NUM_ARGS): Remove.
5953 (FRAME_ARGS_SKIP): Remove.
5954 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5955 (m68k_gdbarch_init): Add gdbarch initializations for macros
5956 undefined in tm-m68k.h
5958 2002-06-26 Grace Sainsbury <graces@redhat.com>
5960 * monitor.h: Add the function regname to monitor_ops
5961 structure. This way NUM_REGS does not have to be a constant.
5962 * monitor.c (monitor_fetch_register): Added support for regname
5963 function. The function is called if the array regnames is NULL.
5964 (monitor_store_register): Same.
5965 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5967 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5968 cpu32bug_cmds.regname to point to new function.
5969 * abug-rom.c (abug_regname): Same as above.
5970 (init_abug_cmds): Same.
5971 * dbug-rom.c (dbug_regname): Same as above.
5972 (init_dbug_cmds): Same.
5973 * remote-est.c (est_regname): Same.
5974 (init_est_cmds): Same.
5975 * rom68k-rom.c (rom68k_regname): Same.
5976 (init_rom68k_cmds): Same.
5978 2002-06-25 Tom Tromey <tromey@redhat.com>
5980 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5982 2002-06-25 Andrew Cagney <cagney@redhat.com>
5984 * infrun.c (stop_registers): Change variable's type to ``struct
5986 (xmalloc_inferior_status): Delete function.
5987 (free_inferior_status): Delete function.
5988 (normal_stop): Use regcache_cpy.
5989 (struct inferior_status): Change type of fields ``stop_registers''
5990 and ``registers'' to ``struct regcache''.
5991 (write_inferior_status_register): Use regcache_write.
5992 (save_inferior_status): Instead of calling
5993 xmalloc_inferior_status, allocate the inf_status buffer directly.
5994 Use regcache_dup_no_passthrough and regcache_dup to save the
5996 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5997 Replace the stop_registers regcache instead of overriding it. Use
5998 regcache_xfree. Instead of calling free_inferior_status, xfree
5999 the buffer directly.
6000 (discard_inferior_status): Use regcache_xfree. Instead of calling
6001 free_inferior_status, xfree the buffer directly.
6002 (build_infrun): Use regcache_xmalloc.
6003 (_initialize_infrun): Delete redundant call to build_infrun.
6005 * Makefile.in (infcmd.o): Add $(regcache_h).
6007 * infcmd.c: Include "regcache.h".
6008 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6009 obtain the address of `stop_registers' register buffer.
6010 (print_return_value): Ditto.
6012 * inferior.h (struct regcache): Add opaque declaration.
6013 (stop_registers): Change variable's declared type to ``struct
6016 2002-06-24 Tom Tromey <tromey@redhat.com>
6018 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6019 * target.c (initialize_targets): Fixed typo in
6020 trust-readonly-sections `show' documentation.
6022 * main.c: Marked all strings with _().
6024 2002-06-24 Don Howard <dhoward@redhat.com>
6026 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6027 that means max CORE_ADDR+1.
6028 (lookup_mem_region): Ditto.
6029 (mem_info_command): Ditto.
6031 2002-06-24 Grace Sainsbury <graces@redhat.com>
6033 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6034 (REGISTER_BYTES_OK): Remove.
6035 (REGISTER_BYTES): Remove.
6036 (STORE_STRUCT_RETURN): Remove.
6037 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6038 (STORE_RETURN_VALUE): Remove.
6039 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6040 (FRAME_CHAIN): Remove.
6041 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6042 (FRAME_SAVED_PC): Remove.
6043 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6044 (m68k_store_struct_return): Add.
6045 (m68k_deprecated_extract_return_value): Add.
6046 (m68k_deprecated_extract_struct_value_address): Add.
6047 (m68k_store_return_value): Add.
6048 (m68k_frame_chain): Add.
6049 (m68k_frameless_function_invocation): Add.
6050 (m68k_frame_saved_pc): Add.
6051 (m68k_gdbarch_init): added set_gdbarch calls for new
6052 functions and deleted macros.
6054 2002-06-23 Tom Tromey <tromey@redhat.com>
6056 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6057 (ALLDEPFILES): Likewise.
6058 (udiheaders): Removed.
6059 (udip2soc.o): Likewise.
6060 (udi2go32.o): Likewise.
6062 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6064 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6066 * infrun.c (_initialize_infrun): Delete unnecessary call to
6069 * regcache.h: Update comments describing the regcache_cpy family
6071 (regcache_save, regcache_restore): Delete declaration.
6072 (regcache_save_no_passthrough): Delete declaration.
6073 (regcache_restore_no_passthrough): Delete declaration.
6074 * regcache.c (regcache_save): Delete function.
6075 (regcache_save_no_passthrough): Delete function.
6076 (regcache_restore): Delete function.
6077 (regcache_restore_no_passthrough): Delete function.
6079 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6081 * config/m68k/tm-m68k.h: Fix typo.
6082 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6083 (m68k_frame_init_saved_regs): Declare.
6085 2002-06-21 Jim Blandy <jimb@redhat.com>
6087 Remove some vestiges of Harris 88k support.
6088 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6089 register numbering quirk.
6090 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6091 odd symbols occurring in Harris 88k ELF targets.
6093 2002-06-21 Tom Tromey <tromey@redhat.com>
6095 * gdb_locale.h: New file.
6096 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6097 (defs_h): Added gdb_locale.h.
6098 * configure, config.in: Rebuilt.
6099 * configure.in (PACKAGE): Define.
6100 * defs.h: Include gdb_locale.h.
6101 * main.c (captured_main): Call setlocale, bindtextdomain,
6104 2002-06-21 Dave Brolley <brolley@redhat.com>
6106 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6107 * config/frv/frv.mt: New file.
6108 * config/frv/tm-frv.h: New file.
6109 * configure.tgt: Support frv-*-*.
6110 * Makefile.in (frv-tdep.o): New target.
6111 * frv-tdep.c: New file.
6112 * NEWS: Mention frv.
6114 2002-06-21 Dave Brolley <brolley@redhat.com>
6116 * MAINTAINERS: Add self to "Write After Approval" list.
6118 2002-06-21 Grace Sainsbury <graces@redhat.com>
6120 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6121 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6122 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6123 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6124 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6126 * m68k-tdep.c: Include arch-utils.h
6127 (m68k_register_raw_size): Add.
6128 (m68k_register_virtual_size): Add.
6129 (m68k_register_virtual_type): Add.
6130 (m68k_register_name): Add.
6131 (m68k_stack_align): Add.
6132 (m68k_register_byte): Add.
6133 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6136 2002-06-21 Grace Sainsbury <graces@redhat.com>
6138 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6139 m68k_find_saved_regs.
6140 (m68k_pop_frame): Removed saved_regs structure, and replaced
6141 references to it with frame->saved_regs.
6142 (m68k_gdbarch_init): Added function calls to initialize the
6144 (m68k_fix_call_dummy): Add.
6145 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6146 (CALL_DUMMY): Remove.
6147 (CALL_DUMMY_LENGTH): Remove.
6148 (CALL_DUMMY_START_OFFSET): Remove.
6149 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6150 (FIX_CALL_DUMMY): Remove.
6151 (PUSH_DUMMY_FRAME): Remove.
6152 (POP_FRAME): Remove.
6154 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6156 * parse.c (parse_fprintf): New function used to avoid calls to
6157 fprintf in bison parser generated debug code.
6158 * parser-defs.h: Declaration of new parse_fprintf function.
6159 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6160 Set YYDEBUG to 1 by default.
6161 Set YYFPRINTF as parse_fprintf.
6163 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6165 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6167 (pointer_encoding, enum ptr_encoding): New.
6168 (execute_cfa_program): Take care about pointer encoding.
6169 (dwarf2_build_frame_info): Only call parse_frame_info for
6170 .debug_frame and .eh_frame.
6171 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6172 fixed augmentation handling, added relative addressing,
6173 ignore duplicate FDEs. Added comments.
6174 * dwarf2cfi.c: Reindented.
6176 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6178 * event-top.c (command_handler): Don't use space_at_cmd_start
6179 unless there is sbrk() on the host. Assign time and space data
6180 to union fields of the appropriate length.
6182 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6184 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6185 x86_64_register_name. Return type changed to 'const char *'.
6186 (x86_64_register_name2nr): Rename to x86_64_register_number.
6187 (x86_64_gdbarch_init): Update to reflect the change.
6188 * x86-64-tdep.h: Ditto.
6189 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6190 (supply_fpregset): Ditto.
6192 2002-06-19 Andrew Cagney <cagney@redhat.com>
6194 * regcache.h: Update copyright.
6195 (struct regcache, struct gdbarch): Add opaque declarations.
6196 (current_regcache): Declare global variable.
6197 (regcache_read, regcache_write): Add gdbarch parameter.
6198 (regcache_save, regcache_save_no_passthrough)
6199 (regcache_restore, regcache_restore_no_passthrough)
6200 (regcache_dup, regcache_dup_no_passthrough)
6201 (regcache_cpy, regcache_cpy_no_passthrough)
6202 (deprecated_grub_regcache_for_registers)
6203 (deprecated_grub_regcache_for_register_valid)
6204 (regcache_valid_p): Add function declarations.
6206 * regcache.c: Update copyright.
6207 (regcache_descr_handle): New global variable.
6208 (struct regcache_descr): Define.
6209 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6210 (regcache_descr, xfree_regcache_descr): New functions.
6211 (struct regcache): Define.
6212 (regcache_xmalloc, regcache_xfree): New functions.
6213 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6214 (regcache_dup, regcache_dup_no_passthrough): New functions.
6215 (regcache_valid_p, regcache_read_as_address): New functions.
6216 (deprecated_grub_regcache_for_registers): New function.
6217 (deprecated_grub_regcache_for_register_valid): New function.
6218 (current_regcache): New global variable.
6219 (register_buffer): Add regcache parameter. Update calls.
6220 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6221 (read_register_gen, write_register_gen): Update register_buffer
6222 call. Test for legacy_p instead of gdbarch_register_read_p or
6223 gdbarch_register_write_p.
6224 (regcache_collect): Update register_buffer call.
6225 (build_regcache): Rewrite. Use deprecated grub functions.
6226 (regcache_save, regcache_save_no_passthrough): New functions.
6227 (regcache_restore, regcache_restore_no_passthrough): New
6229 (_initialize_regcache): Create the regcache_data_handle. Swap
6230 current_regcache global variable.
6232 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6233 parameter to regcache_read and regcache_write calls.
6234 (sh4_register_read): Ditto.
6235 (sh64_pseudo_register_read): Ditto.
6236 (sh64_register_read): Ditto.
6237 (sh_pseudo_register_write): Ditto.
6238 (sh4_register_write): Ditto.
6239 (sh64_pseudo_register_write): Ditto.
6240 (sh64_register_write): Ditto.
6242 * defs.h (XCALLOC): Define.
6244 2002-06-19 Grace Sainsbury <graces@redhat.com>
6246 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6247 * m68k-tdep.c (m68k_gdbarch_init): Added.
6248 (m68k_dump_tdep): Added.
6250 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6252 * ada-lang.c (fill_in_ada_prototype): Update comment.
6254 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6256 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6258 (mips_abi_string, mips_abi_strings): New.
6259 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6260 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6261 tdep->mips_abi_string. Honor mips_abi_string. Default to
6262 O32 if no ABI is found.
6263 (mips_dump_tdep): Use mips_abi_strings.
6264 (mips_abi_update): New function.
6265 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6266 ``set mips abi'' and ``show mips abi''. Check the size of
6269 2002-06-19 Andrew Cagney <cagney@redhat.com>
6271 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6274 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6276 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6277 current frame using only the first stack size adjustment. All
6278 subsequent size adjustments are not considered to be part of
6279 the "static" part of the current frame.
6280 Compute the address of the saved registers relative to the
6281 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6282 in use in this frame.
6284 2002-06-18 Don Howard <dhoward@redhat.com>
6286 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6287 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6288 suggesting this solution.
6290 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6292 * config/romp/xm-rtbsd.h: Delete file.
6293 * config/romp/rtbsd.mh: Delete file.
6295 2002-06-18 Keith Seitz <keiths@redhat.com>
6297 * breakpoint.c (condition_command): Post breakpoint_modify
6298 when a condition is added to an existing breakpoint.
6299 (commands_command): Likewise for commands.
6300 (set_ignore_count): Likewise for ignore counts.
6301 If no tty, do not simply return, still need to send event
6303 (ignore_command): Only print a newline if the command came
6305 Don't call breakpoints_changed, since this is now properly
6306 handled by set_ignore_count.
6308 2002-06-18 Andrew Cagney <cagney@redhat.com>
6310 * MAINTAINERS: Note that cris-elf target can be compiled with
6312 * cris-tdep.c (cris_register_name): Make return type constant.
6313 (cris_breakpoint_from_pc): Ditto.
6315 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6317 * frame.h (struct frame_info): Change type of context to
6320 2002-06-17 Andrew Cagney <cagney@redhat.com>
6322 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6324 * gdbarch.h, gdbarch.c: Regenerate.
6325 * config/mips/tm-mips.h (mips_register_name): Update.
6326 * i386-tdep.h (i386_register_name): Update.
6327 * mips-tdep.c (mips_register_name): Update
6328 * alpha-tdep.c (alpha_register_name): Update.
6329 * arch-utils.c (legacy_register_name): Update.
6330 * arch-utils.h (legacy_register_name): Update.
6331 * avr-tdep.c (avr_register_name): Update.
6332 * ia64-tdep.c (ia64_register_name): Update.
6333 * i386-tdep.c (i386_register_name): Update.
6334 * sparc-tdep.c (sparc32_register_name): Update.
6335 (sparc64_register_name): Update.
6336 (sparclite_register_name): Update.
6337 (sparclet_register_name): Update.
6338 * sh-tdep.c (sh_generic_register_name): Update.
6339 (sh_sh_register_name): Update.
6340 (sh_sh3_register_name): Update.
6341 (sh_sh3e_register_name): Update.
6342 (sh_sh_dsp_register_name): Update.
6343 (sh_sh3_dsp_register_name): Update.
6344 (sh_sh4_register_name): Update.
6345 (sh_sh64_register_name): Update.
6346 * s390-tdep.c (s390_register_name): Update.
6347 * rs6000-tdep.c (rs6000_register_name): Update.
6348 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6349 (ns32k_register_name_32382): Update.
6350 * d10v-tdep.c (d10v_ts2_register_name): Update.
6351 (d10v_ts3_register_name): Update.
6352 * xstormy16-tdep.c (xstormy16_register_name): Update.
6353 * vax-tdep.c (vax_register_name): Update.
6354 * v850-tdep.c (v850_register_name): Update.
6355 * m68hc11-tdep.c (m68hc11_register_name): Update.
6356 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6357 (am33_register_name): Update.
6359 2002-06-17 Grace Sainsbury <graces@redhat.com>
6361 * m68k-tdep.c: Reindented.
6363 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6365 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6366 list of predefined types.
6368 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6370 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6371 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6372 REGISTER_CONVERT_TO_RAW): Remove defines.
6373 (i386_register_virtual_type, i386_register_convertible,
6374 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6376 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6377 macros mentioned above.
6379 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6380 (i386lynx_saved_pc_after_call): Remove prototype.
6381 * i386ly-tdep.c: Include "i386-tdep.h".
6382 (i386lynx_saved_pc_after_call): Make static. Use
6383 read_memory_nobpt instead of read_memory. Use
6384 read_memory_unsigned_integer instead of read_memory_integer.
6385 (i386lynx_init_abi): New function.
6386 (i386lynx_coff_osabi_sniffer): New function.
6387 (_initialize_i386bsd_tdep): New function.
6389 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6390 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6391 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6392 (i386_fix_call_dummy): Remove prototype.
6393 * i386-tdep.c (i386_call_dummy_words): New variable.
6394 (i386_gdbarch_init): Adjust for removal of the
6395 macros mentioned above.
6397 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6399 * command.h (add_setshow_auto_boolean_cmd): Replace
6400 add_set_auto_boolean_cmd.
6401 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6402 add_set_auto_boolean_cmd.
6403 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6404 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6405 mask-address'' command.
6406 (show_mask_address): Add cmd parameter.
6407 * remote.c (add_packet_config_cmd): Update. Change type of
6408 set_func and show_func to cmd_sfunc_ftype.
6409 (_initialize_remote): Update `set remote Z-packet'
6410 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6411 (show_remote_protocol_e_packet_cmd): Ditto.
6412 (show_remote_protocol_E_packet_cmd): Ditto.
6413 (show_remote_protocol_P_packet_cmd): Ditto.
6414 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6415 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6416 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6417 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6418 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6419 (show_remote_protocol_Z_packet_cmd): Ditto.
6420 (show_remote_protocol_binary_download_cmd): Ditto.
6421 (show_remote_cmd): Pass NULL to all of above.
6423 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6425 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6426 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6427 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6428 POP_FRAME): Remove defines.
6429 (i386_push_arguments, i386_store_struct_return,
6430 i386_extract_return_value, i386_store_return_value,
6431 i386_extract_struct_value_address, i386_push_dummy_frame,
6432 i386_pop_frame): Renove prototypes.
6433 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6434 macros mentioned above.
6436 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6438 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6439 add_set_boolean_cmd.
6440 (add_setshow_cmd): New function.
6441 * command.h (add_setshow_boolean_cmd): Replace
6442 add_set_boolean_cmd.
6443 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6444 and ``set rdiromatzero''.
6445 * maint.c (_initialize_maint_cmds): Update commented out code.
6446 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6447 * target.c (initialize_targets): Update `set
6448 trust-readonly-sections'.
6449 * remote.c (_initialize_remote): Update `set remotebreak'.
6451 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6453 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6454 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6455 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6456 fit into multi-arch framework.
6457 (i386_breakpoint_from_pc): New function.
6458 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6461 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6462 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6463 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6464 (i386_frameless_function_invocation, i386_frame_num_args,
6465 i386_frame_init_saved_regs): Remove prototypes.
6466 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6467 macros mentioned above.
6469 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6471 * cli/cli-decode.c (set_cmd_cfunc): Update.
6472 (set_cmd_sfunc): Update.
6473 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6474 (set_cmd_sfunc, set_cmd_cfunc): Update.
6475 * cli/cli-decode.h: Update.
6477 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6479 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6480 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6482 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6484 * defs.h (auto_boolean): Declare enum.
6485 * command.h (cmd_auto_boolean): Delete enum.
6486 * mips-tdep.c (mask_address_var): Update.
6487 (mips_mask_address_p): Update.
6488 (show_mask_address): Update.
6489 * remote.c (struct packet_config): Update.
6490 (update_packet_config): Update.
6491 (show_packet_config_cmd): Update.
6492 (packet_ok): Update.
6493 (add_packet_config_cmd): Update.
6494 (_initialize_remote):
6495 * command.h: Update.
6496 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6497 (do_setshow_command): Update.
6498 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6499 * cli/cli-decode.h: Update.
6501 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6503 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6504 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6505 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6506 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6507 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6508 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6510 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6511 list of DJGPP COFF targets.
6513 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6514 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6515 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6516 (FP0_REGNUM): Remove define.
6517 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6518 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6519 (i386_register_virtual_size): Remove protoype.
6520 * i386-tdep.c (i386_register_virtual_size): Removed.
6521 (i386_extract_return_value, i386_store_return_value): Use
6522 FP0_REGNUM instead of NUM_FREGS to determine whether the
6523 floating-point registers are available.
6524 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6525 Adjust for removal of macros mentioned above.
6527 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6529 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6531 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6533 (supply_gregset, fill_gregset): Remove use of register keyword and
6534 remove declaration for regmap. Use I386_NUM_GREGS instead of
6535 NUM_REGS and NUM_FREGS.
6536 (FPREGSET_FSAVE_OFFSET): Remove.
6537 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6538 NUM_FREGS to determine whether the floating-point registers are
6541 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6542 gnu_store_registers): Replace usage of NUM_GREGS with
6545 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6546 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6547 usage of NUM_GREGS with I386_NUM_GREGS.
6549 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6551 * i386bsd-nat.c: Include "i386-tdep.h".
6552 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6555 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6556 and associated comment. They no longer make any sense, since we
6557 don't use this file anymore on Linux.
6559 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6560 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6561 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6562 elements in these arrays.
6563 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6566 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6568 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6569 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6571 2002-06-14 Andrew Cagney <cagney@redhat.com>
6573 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6574 EXTRACT_RETURN_VALUE.
6575 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6576 EXTRACT_STRUCT_VALUE_ADDRESS.
6577 * gdbarch.h, gdbarch.c: Regenerate.
6579 * values.c (value_being_returned): Handle
6580 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6581 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6583 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6584 * arm-tdep.c (arm_gdbarch_init): Update.
6585 * avr-tdep.c (avr_gdbarch_init): Update.
6586 * cris-tdep.c (cris_gdbarch_init): Update.
6587 * d10v-tdep.c (d10v_gdbarch_init): Update.
6588 * ia64-tdep.c (ia64_gdbarch_init): Update.
6589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6590 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6591 * s390-tdep.c (s390_gdbarch_init): Update.
6592 * sh-tdep.c (sh_gdbarch_init): Update.
6593 * s390-tdep.c (s390_gdbarch_init): Update.
6594 * sparc-tdep.c (sparc_gdbarch_init): Update.
6595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6596 * v850-tdep.c (v850_gdbarch_init): Update.
6597 * vax-tdep.c (vax_gdbarch_init): Update.
6598 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6599 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6601 * config/arc/tm-arc.h: Update.
6602 * config/d30v/tm-d30v.h: Update.
6603 * config/fr30/tm-fr30.h: Update.
6604 * config/h8300/tm-h8300.h: Update.
6605 * config/h8500/tm-h8500.h: Update.
6606 * config/i386/tm-i386.h: Update.
6607 * config/i386/tm-ptx.h: Update.
6608 * config/i386/tm-symmetry.h: Update.
6609 * config/i960/tm-i960.h: Update.
6610 * config/m32r/tm-m32r.h: Update.
6611 * config/m68k/tm-delta68.h: Update.
6612 * config/m68k/tm-linux.h: Update.
6613 * config/m68k/tm-m68k.h: Update.
6614 * config/m88k/tm-m88k.h: Update.
6615 * config/mcore/tm-mcore.h: Update.
6616 * config/mips/tm-mips.h: Update.
6617 * config/mn10200/tm-mn10200.h: Update.
6618 * config/pa/tm-hppa.h: Update.
6619 * config/pa/tm-hppa64.h: Update.
6620 * config/sparc/tm-sp64.h: Update.
6621 * config/sparc/tm-sparc.h: Update.
6622 * config/sparc/tm-sparclet.h: Update.
6623 * config/z8k/tm-z8k.h: Update.
6625 2002-06-14 Andrew Cagney <cagney@redhat.com>
6627 * Makefile.in (i386_linux_tdep_h): Define.
6628 (i386_tdep_h, i387_tdep_h): Define.
6629 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6630 $(i386_tdep_h) and $(i387_tdep_h).
6631 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6633 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6635 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6636 Already covered by the default.
6638 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6639 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6640 (i386_gdbarch_init): Initialize long_double_format and long_double
6643 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6644 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6646 * config/i386/i386sol2.mh: ... here.
6647 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6648 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6649 (SIGCONTEXT_PC_OFFSET): Remove define.
6650 (IN_SIGTRAMP): Remove define.
6651 * i386-sol2-tdep.c: New file.
6653 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6654 * config/i386/tm-i386nw.h: Removed.
6656 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6657 USE_STRUCT_CONVENTION): Remove defines.
6658 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6659 (get_longjmp_target): Remove prototype.
6660 (IN_SIGTRAMP): Remove define.
6661 (i386bsd_in_sigtramp): Remove prototype.
6662 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6663 function. Update comment accordingly
6664 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6665 (FRAME_SAVED_PC): Remove define.
6666 (i386bsd_frame_saved_pc): Remove prototype.
6667 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6668 GET_LONGJMP_TARGET): Remove defines.
6669 (get_longjmp_target): Remove prototype.
6670 (IN_SIGTRAMP): Remove define.
6671 (i386bsd_in_sigtramp): Remove prototype.
6672 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6673 function. Update comment accordingly
6674 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6675 (FRAME_SAVED_PC): Remove define.
6676 (i386bsd_frame_saved_pc): Remove prototype.
6677 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6679 (USE_STRUCT_CONVENTION): Remove prototype.
6680 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6682 (_initialize_i386bsd_nat): Revise logic to determine some
6683 constants at compile time when compiling a native GDB. Warn if
6684 things don't match up with what we expect.
6685 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6687 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6688 to use date stored in `struct gdbarch_tdep'.
6689 (i386bsd_sigcontext_offset): Remove varaible.
6690 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6691 stored in `struct gdbarch_tdep'.
6692 (i386bsd_frame_saved_pc): Make static.
6693 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6694 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6695 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6696 i386fbsd4_sc_pc_offset): New variables.
6697 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6698 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6700 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6702 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6703 Modify the value of i386fbsd_sigtramp_start and
6704 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6705 i386fbsd_sigtramp_end.
6706 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6709 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6710 define to i386-linux-tdep.h.
6711 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6712 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6714 (i386_linux_register_name, i386_linux_register_byte,
6715 i386_linux_register_raw_size): Remove prototypes.
6716 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6717 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6718 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6719 TARGET_WRITE_PC): Remove defines.
6720 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6721 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6722 i386_linux_write_pc): Remove prototypes.
6723 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6724 (get_longjmp_target): Remove prototype.
6725 * i386-linux-tdep.h: New file.
6726 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6727 * i386-linux-tdep.c: Include "i386-tdep.h" and
6728 "i386-linux-tdep.h".
6729 (i386_linux_register_name, i386_linux_register_byte,
6730 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6731 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6733 (i386_linux_init_abi): New function.
6734 (_initialize_i386_linux_tdep): New function.
6736 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6737 (i386_saved_pc_after_call): Remove prototype.
6738 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6739 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6740 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6741 (i386_register_name, i386_stab_reg_to_regnum,
6742 i386_dwarf_reg_to_regnum): Remove prototypes.
6743 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6744 SIZEOF_SSE_REGS): Remove defines.
6745 (REGISTER_BYTES): Remove define.
6746 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6747 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6748 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6749 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6750 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6751 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6752 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6753 (get_longjmp_target): Remove prototype.
6754 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6755 (sigtramp_saved_pc): Remove define.
6756 (i386v4_sigtramp_saved_pc): Remove prototype.
6757 * config/i386/tm-go32.h (FRAME_CHAIN,
6758 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6759 (i386go32_frame_saved_pc): Remove prototype.
6760 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6761 (get_longjmp_target): Remove prototype.
6762 * i386-tdep.h: Include "osabi.h".
6763 (enum i386_abi): Removed.
6764 (enum struct_return): New enum.
6765 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6766 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6767 sc_pc_offset members.
6768 (i386_gdbarch_register_os_abi): Remove prototype.
6769 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6770 I386_SSE_NUM_REGS): New defines.
6771 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6772 I386_SSE_SIZEOF_REGS): New defines.
6773 (i386_register_name, i386_register_byte, i386_register_raw_size):
6775 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6776 (i386bsd_sigtramp_saved_pc): New prototype.
6777 * i386-tdep.c: Don't include "elf-bfd.h".
6778 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6779 i386_frame_chain, i386_saved_pc_after_call): Make static.
6780 (i386_frame_saved_pc): Rewrite to call architecture dependent
6781 function to deal with signal handlers. Make static.
6782 (i386go32_frame_saved_pc): Removed.
6783 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6785 (i386_get_longjmp_target): New function.
6786 (default_struct_convention, pcc_struct_convention,
6787 reg_struct_convention, valid_conventions, struct_convention): New
6789 (i386_use_struct_convention): New function.
6790 (i386v4_sigtramp_saved_pc): Renamed to
6791 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6792 (i386_pc_in_sigtramp): New function.
6793 (i386_abi_names): Removed.
6794 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6795 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6797 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6798 i386_gdbarch_register_os_abi): Removed.
6799 (struct i386_abi_handler): Removed.
6800 (i386_abi_handler_list): Removed.
6801 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6803 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6804 i386_nw_init_abi): New functions.
6805 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6806 Use set_gdbarch_xxx() calls instead of relying on macros for a
6808 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6809 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6810 Register the various architecture variants defined in this file.
6812 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6814 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6815 (struct main_type): Remove arg_types member. Update comments for
6817 (TYPE_ARG_TYPES): Remove.
6818 (TYPE_FN_FIELD_ARGS): Update.
6819 (smash_to_method_type): Update prototype.
6821 * c-typeprint.c (cp_type_print_method_args): Take method type
6822 instead of argument list. Use new argument layout. Simplify.
6823 (c_type_print_args): Use new argument layout. Simplify.
6824 (c_type_print_base): Update call to cp_type_print_method_args.
6825 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6826 argument; use die->type instead. Update call to
6827 smash_to_method_type.
6828 (read_structure_scope): Update call to dwarf2_add_member_fn.
6829 * gdbtypes.c (allocate_stub_method): Update comment.
6830 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6831 Use new argument layout.
6832 (check_stub_method): Use new argument layout. Don't count
6833 void as an argument.
6834 (print_arg_types): Update comments. Use new argument layout.
6835 (recursive_dump_type): Don't print arg_types member.
6836 * hpread.c (hpread_read_struct_type): Use new argument layout.
6837 (fixup_class_method_type): Likewise.
6838 (hpread_type_lookup): Likewise.
6839 * stabsread.c (read_type): Update calls to read_args and
6840 smash_to_method_type.
6841 (read_args): Use new argument layout. Simplify.
6842 * valops.c (typecmp): Use new argument layout. Update parameters
6843 and comments. Simplify.
6844 (hand_function_call): Use new argument layout.
6845 (search_struct_method): Update call to typecmp.
6846 (find_overload_match): Use new argument layout.
6848 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6850 * NEWS: Mention multithreaded debug support for gdbserver.
6852 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6854 * MAINTAINERS: Mention NEWS.
6856 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6858 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6859 (struct mips_objfile_private, compare_pdr_entries): New.
6860 (non_heuristic_proc_desc): Read the ".pdr" section if it
6863 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6865 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6866 (arm_debug): New static variable.
6867 (_initialize_arm_tdep): Add ``set debug arm'' command.
6869 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6871 * Makefile.in (sim_arm_h): Define.
6872 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6873 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6874 (arm_register_sim_regno): New function, map an internal REGNUM
6875 onto a simulator register number.
6876 (arm_gdbarch_init): Set register_sim_regno.
6878 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6880 * MAINTAINERS: Add self.
6882 2002-06-11 Jim Blandy <jimb@redhat.com>
6884 * source.c (source_info): Mention whether the symtab has
6885 information about preprocessor macros.
6887 Call the command `info macro', not `show macro'.
6888 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6890 (_initialize_macrocmd): Register `info_macro_command' in
6891 `infolist', not `showlist'.
6893 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6895 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6896 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6897 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6898 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6899 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6901 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6902 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6903 (_initialize_mips_tdep): Remove dead code.
6904 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6905 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6906 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6907 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6908 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6909 MIPS_LAST_FP_ARG_REGNUM): Remove.
6911 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6913 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6914 (unwind_tmp_obstack_free, parse_frame_info)
6915 (update_context, cfi_read_fp, cfi_write_fp)
6916 (cfi_frame_chain, cfi_init_extra_frame_info)
6917 (cfi_virtual_frame_pointer): Use the above function.
6918 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6920 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6922 * v850-tdep.c (v850_type_is_scalar): New function.
6923 (v850_use_struct_convention): Match current gcc implementation
6924 as close as possible.
6925 (v850_push_arguments): Fix stack_offset handling. Don't write
6926 struct_addr into register. This is done by v850_store_struct_return.
6927 (v850_extract_return_value): Care for structs.
6928 (v850_store_return_value): Ditto.
6929 (v850_store_struct_return): Actually write address.
6931 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6933 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6934 without debug information too.
6936 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6938 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6939 Make multi-arch pure.
6940 * gdbarch.h, gdbarch.c: Re-generate.
6941 * arm-tdep.c (arm_print_float_info): Update.
6942 * arch-utils.h (default_print_float_info): Update.
6943 * arch-utils.c (default_print_float_info): Update.
6944 * infcmd.c (float_info): Update call.
6946 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6948 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6949 the front of the initialize list.
6951 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6953 * infrun.c (struct inferior_status): Replace fields
6954 selected_frame_address and selected_level with field
6956 (save_inferior_status): Update. Use get_frame_id.
6957 (struct restore_selected_frame_args): Delete.
6958 (restore_selected_frame): Update. Use frame_find_by_id.
6959 (restore_inferior_status): Update.
6961 * breakpoint.h (struct breakpoint): Change type of
6962 watchpoint_frame to frame_id.
6963 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6964 call to get_current_frame.
6965 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6967 (watchpoint_check): Use frame_find_by_id.
6969 * frame.h (record_selected_frame): Delete declaration.
6970 * stack.c (record_selected_frame): Delete function.
6972 * frame.h (struct frame_id): Define.
6973 (get_frame_id): Declare.
6974 (frame_find_by_id): Declare.
6975 * frame.c (frame_find_by_id): New function.
6976 (get_frame_id): New function.
6978 2002-06-10 Andrey Volkov <avolkov@transas.com>
6980 * ser-e7kpc.c: Fix duplicated define and call of
6981 _initialize_ser_e7000pc
6983 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6985 * signals/signals.c (target_signal_from_host): Fix #ifdef
6987 (do_target_signal_to_host): Likewise.
6989 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6991 * mips-tdep.c (mips_find_abi_section): New function.
6992 (mips_gdbarch_init): Call it.
6994 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6996 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6997 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6998 after Andrew's 2002-06-08 gdbarch change.
7000 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7002 * i386-linux-nat.c (suppy_gregset): Don't supply
7003 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7005 (fill_gregset): Don't fetch it under the same circumstances.
7007 2002-06-09 Andrew Cagney <cagney@redhat.com>
7009 * Makefile.in (callback_h): Define.
7010 (remote_sim_h): Update path to remote-sim.h.
7011 (remote-rdp.o): Add $(callback_h).
7012 (remote-sim.o): Use $(callback_h).
7013 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7014 * remote-rdp.c: Include "gdb/callback.h".
7016 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7018 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7019 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7021 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7023 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7024 * rdi-share/serpardr.c: Ditto.
7025 * rdi-share/unixcomm.c: Ditto.
7026 * rdi-share/serdrv.c: Ditto.
7027 * rdi-share/hostchan.h: Ditto.
7028 * rdi-share/hostchan.c: Ditto.
7029 * rdi-share/host.h: Ditto.
7030 * rdi-share/devsw.c: Ditto.
7032 * objfiles.h: Change type of obj_private to void pointer.
7033 * pa64solib.c: Update copyright. Don't include "assert.h", use
7034 strcmp instead of STREQ, use LONGEST, do not use PTR
7035 * somsolib.c: Ditto.
7037 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7038 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7039 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7041 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7043 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7044 (default_get_saved_register): Delete function.
7045 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7046 generic_unwind_get_saved_register.
7047 * gdbarch.h, gdbarch.c: Re-generate.
7049 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7051 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7052 generic_func_frame_chain_valid.
7053 * gdbarch.h, gdbarch.c: Re-generate.
7054 * blockframe.c (generic_func_frame_chain_valid): Only check
7055 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7056 passing FP to PC_IN_CALL_DUMMY.
7059 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7061 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7062 (register_gdbarch_data): Initialize init_p.
7063 (gdbarch_data): Initialize data pointer using the init function.
7064 (init_gdbarch_data): Delete function.
7065 (gdbarch_update_p): Update.
7066 (initialize_non_multiarch): Update.
7067 (struct gdbarch): Add field initialized_p.
7068 * gdbarch.h, gdbarch.c: Re-generate.
7070 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7072 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7073 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7074 better do the things actually here.
7075 * x86-64-tdep.c (x86_64_register_name2nr): New.
7076 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7077 (x86_64_gdbarch_init): Respect the above change.
7078 * x86-64-tdep.h (x86_64_register_name2nr)
7079 (x86_64_register_nr2name): Add prototypes.
7080 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7082 2002-06-06 Michael Snyder <msnyder@redhat.com>
7084 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7085 Delete extra braces and re-indent.
7086 (d10v_store_return_value): Char return values
7087 must be shifted over by one byte in R0.
7088 (d10v_extract_return_value): Delete extra braces, re-indent.
7090 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7092 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7093 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7094 (d10v_integer_to_address): Rewrite.
7095 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7096 the d10v specific functions which take care of converting to the
7099 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7101 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7102 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7104 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7106 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7108 * config/tm-linux.h: Ditto.
7109 * config/alpha/tm-alphalinux.h: Ditto.
7110 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7111 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7112 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7113 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7114 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7115 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7116 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7117 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7118 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7119 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7120 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7121 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7122 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7123 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7124 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7125 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7126 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7127 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7128 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7129 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7130 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7131 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7132 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7133 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7134 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7135 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7136 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7137 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7138 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7139 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7140 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7141 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7142 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7143 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7144 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7145 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7146 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7148 2002-05-04 Aidan Skinner <aidan@velvet.net>
7150 * ada-exp.tab.c: New file
7151 * ada-exp.y: New file
7152 * ada-lang.c: New file
7153 * ada-lang.h: New file
7154 * ada-lex.c: New file
7155 * ada-lex.l: New file
7156 * ada-tasks.c: New file
7157 * ada-typeprint.c: New file
7158 * ada-valprint.c: New file
7160 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7162 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7163 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7165 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7167 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7168 insetead of ppc-linux-tdep.o.
7169 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7170 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7172 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7174 2002-05-07 Christian Groessler <chris@groessler.org>
7175 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7176 bit register contents for little endian hosts.
7178 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7180 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7183 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7185 * gdbarch.h: Regenerate.
7187 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7189 * MAINTAINERS: Add everyone to write-after-approval list.
7191 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7193 * stack.c (frame_info): Use frame_register_unwind instead of
7194 saved_regs. Mention when the SP is on the stack or in a register.
7196 * frame.h (frame_register_unwind_ftype): Define. Document.
7197 (struct frame_info): Add field register_unwind and
7198 register_unwind_cache.
7199 (frame_register_unwind): Declare.
7200 (generic_unwind_get_saved_register): Declare.
7202 * frame.c (frame_register_unwind): New function.
7203 (generic_unwind_get_saved_register): New function.
7205 * blockframe.c (generic_call_dummy_register_unwind): New function.
7206 (frame_saved_regs_register_unwind): New function.
7207 (set_unwind_by_pc): New function.
7208 (create_new_frame): New function.
7209 (get_prev_frame): New function.
7211 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7213 * a29k-share/: Delete directory.
7214 * remote-vx29k.c: Delete file.
7216 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7218 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7219 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7221 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7223 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7224 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7227 (sparcnbsd-tdep.o): New dependency lists.
7228 * NEWS: Note new UltraSPARC NetBSD native configuration.
7229 * configure.host (sparc64-*-netbsd*): New host.
7230 * configure.tgt (sparc-*-netbsdelf*)
7231 (sparc-*-netbsd*): Set gdb_target to nbsd.
7232 (sparc64-*-netbsd*): New target.
7233 * sparc64nbsd-nat.c: New file.
7234 * sparcnbsd-nat.c: New file.
7235 * sparcnbsd-tdep.c: New file.
7236 * sparcnbsd-tdep.h: New file.
7237 * config/sparc/nbsd.mt: New file.
7238 * config/sparc/nbsd64.mh: New file.
7239 * config/sparc/nbsd64.mt: New file.
7240 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7241 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7243 * config/sparc/nbsdaout.mt: Remove.
7244 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7245 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7247 * config/sparc/nbsdelf.mt: Remove.
7248 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7249 sparc-nat.c compatiblity defines.
7250 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7251 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7252 * config/sparc/tm-nbsd64.h: New file.
7253 * config/sparc/tm-nbsdaout.h: Remove.
7254 * config/sparc/xm-nbsd.h: Remove.
7256 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7258 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7259 * sparc-tdep.c: Include osabi.h.
7260 (gdbarch_tdep): Add osabi member.
7261 (_initialize_sparc_tdep): Use gdbarch_register.
7262 (sparc_gdbarch_init): Use generic OS ABI framework.
7263 (sparc_dump_tdep): New function.
7265 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7267 * corefile.c (do_captured_read_memory_integer): Return non-zero
7269 (safe_read_memory_integer): Copy result of memory read when
7270 status is non-zero. Also, add comments.
7272 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7274 * Makefile.in (ppc_tdep_h): Define.
7277 (rs6000-tdep.o): Use $(ppc_tdep_h).
7280 (ppcnbsd-tdep.o): New dependency lists.
7281 * ppc-tdep.h: Use generic OS ABI framework.
7282 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7283 (ppc_linux_init_abi): New functions.
7284 (ppc_sysv_abi_broken_use_struct_convention)
7285 (ppc_sysv_abi_use_struct_convention)
7286 (ppc_sysv_abi_push_arguments): Move to...
7287 * ppc-sysv-tdep.c: ...here.
7288 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7289 * rs6000-tdep.c (process_note_abi_tag_sections)
7290 (get_elfosabi): Remove.
7291 (rs6000_gdbarch_init): Use generic OS ABI framework.
7292 (rs6000_dump_tdep): New function.
7293 (_initialize_rs6000_tdep): Use gdbarch_register.
7294 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7295 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7296 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7297 of ppc-linux-tdep.o.
7298 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7299 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7300 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7301 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7302 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7303 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7305 2002-05-29 Jim Blandy <jimb@redhat.com>
7307 * macroscope.c (default_macro_scope): Put `void' in empty argument
7310 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7312 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7313 * arch-utils.c: Include "sim-regno.h".
7314 * gdbarch.sh: Don't include "sim-regno.h".
7315 * gdbarch.h, gdbarch.c: Regenerate.
7316 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7318 * arch-utils.h (legacy_register_sim_regno): To here.
7319 * remote-sim.c (legacy_register_sim_regno): Move function from
7321 * arch-utils.c (legacy_register_sim_regno): To here.
7323 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7325 * sim-regno.h: New file.
7326 * Makefile.in (sim_regno_h): Define.
7327 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7328 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7329 (legacy_register_sim_regno): New function.
7330 (one2one_register_sim_regno): New function.
7331 (gdbsim_fetch_register): Rewrite.
7332 (gdbsim_store_register): Only store a register when
7333 REGISTER_SIM_REGNO is valid.
7334 * d10v-tdep.c: Include "sim-regno.h".
7335 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7336 (d10v_ts3_register_sim_regno): Ditto.
7337 * gdbarch.sh: Include "sim-regno.h".
7338 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7339 * gdbarch.h, gdbarch.c: Regenerate.
7340 * arch-utils.h (default_register_sim_regno): Delete declaration.
7341 * arch-utils.c (default_register_sim_regno): Delete function.
7343 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7345 * ppcnbsd-nat.c: Rewrite.
7346 * ppcnbsd-tdep.c: New file.
7347 * ppcnbsd-tdep.h: New file.
7348 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7349 solib.o, and solib-svr4.o.
7350 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7351 nbsd-tdep.o, and corelow.o.
7353 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7355 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7356 `tr' and `sed'. Mention that `broken' targets are not expected to
7359 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7361 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7362 Let PC point right after the prologue before looking up symbols.
7364 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7366 * i386-tdep.c (i386_register_virtual_type): Return
7367 builtin_type_vec128i for SSE registers.
7369 * gdbtypes.h (builtin_type_vec128i): Declare.
7371 * gdbtypes.c (build_builtin_type_vec128i): New function.
7372 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7373 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7374 (build_gdbtypes): Initialize new builtin vector types.
7375 (_initialize_gdbtypes): Register new vector types with gdbarch.
7377 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7379 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7380 since it has been multi-arch'd.
7381 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7382 Move Alpha and VAX multi-arch news entries to same section
7383 as other multi-arch news.
7385 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7387 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7388 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7389 static. Rename some register numbers to put them in ns32k-tdep
7391 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7392 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7394 (_initialize_ns32k_tdep): Use gdbarch_register.
7395 * ns32k-tdep.h: New file.
7396 * ns32knbsd-tdep.c: New file.
7397 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7398 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7399 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7400 REGISTER_BYTES, REGISTER_BYTE): Remove.
7401 * config/ns32k/tm-ns32k.h: New file.
7402 * config/ns32k/tm-umax.h: Remove.
7404 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7406 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7407 ns32k_store_struct_return, ns32k_extract_return_value,
7408 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7410 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7411 ns32k_saved_pc_after_call.
7412 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7413 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7414 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7415 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7416 ns32k_extract_struct_value_address.
7418 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7420 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7421 ns32k_fix_call_dummy): New.
7422 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7423 ns32k_call_dummy_words.
7424 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7425 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7426 CALL_DUMMY_NARGS): Remove.
7427 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7429 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7431 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7432 ns32k_frame_saved_pc, ns32k_frame_args_address,
7433 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7434 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7435 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7436 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7437 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7438 (BREAKPOINT): Remove..
7439 (FRAME_CHAIN): Define as ns32k_frame_chain.
7440 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7441 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7442 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7443 (FRAME_FIND_SAVED_REGS): Remove.
7444 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7445 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7446 (POP_FRAME): Define as ns32k_pop_frame.
7448 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7450 * ns32k-tdep.c (ns32k_register_byte_32082,
7451 ns32k_register_byte_32382, ns32k_register_raw_size,
7452 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7454 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7455 ns32k_register_byte_32382.
7456 * config/ns32k/tm-umax.h: Update copyright years.
7457 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7458 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7459 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7460 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7461 (ns32k_get_enter_addr): Fix prototype.
7463 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7465 * ns32k-tdep.c: Update copyright years.
7466 (ns32k_register_name_32082): New function.
7467 (ns32k_register_name_32382): Ditto.
7468 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7469 (REGISTER_NAME): Define as ns32k_register_name_32382.
7470 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7471 (REGISTER_NAME): Define as ns32k_register_name_32082.
7473 2002-05-24 Jim Blandy <jimb@redhat.com>
7475 * dwarf2read.c (free_line_header): Use xfree, not free.
7477 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7479 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7480 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7482 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7484 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7486 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7488 From Ross Alexander at NEC Europe:
7489 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7491 2002-05-23 Michael Snyder <msnyder@redhat.com>
7493 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7494 for input, rather than parse_and_eval_address.
7496 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7498 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7499 * Makefile.in (sim_d10v_h): Update definition.
7501 2002-05-24 Andrew Cagney <cagney@redhat.com>
7503 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7504 change `2002-05-22 Michael Snyder' below.
7505 (d10v_push_arguments): Ditto.
7506 (d10v_extract_return_value): Ditto.
7508 2002-05-23 Jim Blandy <jimb@redhat.com>
7510 * macrotab.c (check_for_redefinition): Don't complain if the new
7511 definition is the same as the previous one. Take more arguments
7512 to allow the comparison.
7513 (macro_define_object, macro_define_function): Pass more arguments
7514 to check_for_redefinition.
7516 2002-05-22 Michael Snyder <msnyder@redhat.com>
7518 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7519 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7520 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7521 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7522 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7523 Add a temp variable to save a call (and a memory read).
7524 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7525 if possible (so that PC_IN_CALL_DUMMY will work).
7527 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7529 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7531 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7533 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7535 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7536 (dwarf2_build_frame_info): Add offset to fde->initial_location
7537 so that frames of shared libraries are mapped correctly.
7538 (execute_stack_op): Change type of 'result' from ULONGEST to
7541 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7543 * config/alpha/tm-nbsd.h: Include solib.h.
7545 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7547 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7548 assumptions about the host's byte order.
7550 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7552 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7554 * alphanbsd-tdep.c: Include solib-svr4.h.
7555 * shnbsd-tdep.c: Ditto.
7557 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7559 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7560 nbsd-tdep.h to dependency list.
7561 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7562 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7563 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7564 nbsdaout.mh and nbsdelf.mh consistently.
7565 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7566 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7567 nbsdaout.mt and nbsdelf.mh consistently.
7568 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7569 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7570 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7571 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7572 a.out shared library stuff from here...
7573 * config/nm-nbsdaout.h: ...to here.
7574 * config/tm-nbsd.h: Remove.
7575 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7576 * config/arm/nbsd.mh: Remove.
7577 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7579 * config/arm/nbsdaout.mh: New file.
7580 * config/arm/nbsdelf.mh: New file.
7581 * config/arm/nm-nbsdaout.h: New file.
7582 * config/i386/nbsd.mh: Remove.
7583 * config/i386/nbsd.mt: Remove.
7584 * config/i386/nbsdaout.mh: New file.
7585 * config/i386/nbsdaout.mt: New file.
7586 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7587 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7588 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7589 i386_register_u_addr): Remove.
7590 * config/i386/nm-nbsdaout.h: New file.
7591 * config/i386/nm-nbsdelf.h: Remove.
7592 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7593 (USE_STRUCT_CONVENTION): Remove.
7594 * config/i386/tm-nbsdaout.h: New file.
7595 * config/i386/tm-nbsdelf.h: Remove.
7596 * config/m68k/nbsd.mh: Remove.
7597 * config/m68k/nbsd.mt: Remove.
7598 * config/m68k/nbsdaout.mh: New file.
7599 * config/m68k/nbsdaout.mt: New file.
7600 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7601 * config/m68k/nm-nbsdaout.h: New file.
7602 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7603 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7604 * config/ns32k/nbsd.mh: Remove.
7605 * config/ns32k/nbsd.mt: Remove.
7606 * config/ns32k/nbsdaout.mh: New file.
7607 * config/ns32k/nbsdaout.mt: New file.
7608 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7609 * config/ns32k/nm-nbsdaout.h: New file.
7610 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7611 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7612 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7613 (SVR4_SHARED_LIBS): Remove.
7614 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7615 * config/sparc/nbsd.mh: Remove.
7616 * config/sparc/nbsd.mt: Remove.
7617 * config/sparc/nbsdaout.mh: New file.
7618 * config/sparc/nbsdaout.mt: New file.
7619 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7620 * config/sparc/nbsdelf.mt: New file.
7621 * config/sparc/nm-nbsdaout.h: New file.
7622 * config/sparc/nm-nbsdelf.h: Remove.
7623 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7624 * config/sparc/tm-nbsdaout.h: New file.
7626 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7628 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7630 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7632 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7634 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7636 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7638 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7640 * NEWS: Note new MIPS NetBSD native configuration.
7641 * configure.host (mips*-*-netbsd*): New host.
7642 * configure.tgt (mips*-*-netbsd*): New target.
7643 * mipsnbsd-nat.c: New file.
7644 * mipsnbsd-tdep.c: New file.
7645 * mipsnbsd-tdep.h: New file.
7646 * config/mips/nbsd.mh: New file.
7647 * config/mips/nbsd.mt: New file.
7648 * config/mips/nm-nbsd.h: New file.
7649 * config/mips/tm-nbsd.h: New file.
7651 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7653 * Makefile.in (SFILES): Add osabi.c.
7654 (COMMON_OBS): Add osabi.o.
7655 (osabi.o): New dependency list.
7656 * osabi.c: New file.
7657 * osabi.h: New file.
7658 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7660 * Makefile.in (alpha_tdep_h): Define and use instead of
7662 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7663 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7665 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7666 * alpha-tdep.h: Include osabi.h.
7667 (alpha_abi): Remove.
7668 (gdbarch_tdep): Use generic OS ABI framework.
7669 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7670 gdbarch_register_osabi.
7671 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7672 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7673 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7675 * Makefile.in (sh_tdep_h): Add osabi.h.
7676 * sh-tdep.h (sh_osabi): Remove.
7677 (gdbarch_tdep): Use generic OS ABI framework.
7678 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7679 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7680 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7681 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7683 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7684 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7685 gdbarch_register_osabi.
7686 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7687 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7688 (get_elfosabi): Rename to...
7689 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7690 ABI framework support routines.
7691 (arm_gdbarch_init): Use generic OS ABI framework.
7692 (arm_dump_tdep): Likewise.
7693 (_initialize_arm_tdep): Likewise.
7694 * arm-tdep.h: Include osabi.h.
7696 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7698 (arm_gdbarch_register_os_abi): Remove prototype.
7699 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7700 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7702 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7703 * mips-tdep.c: Include osabi.h.
7704 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7707 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7709 * h8300-tdep.c: Fix formatting.
7711 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7713 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7714 printing vector registers.
7716 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7718 From Fernando Nasser:
7719 * remote.c (remote_async_open_1): Re-throw the exception when the
7721 (remote_cisco_open): Ditto.
7722 (remote_open_1): Ditto.
7724 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7726 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7727 (remote_start_remote): Add uiout parameter. Pass through to
7728 remote_start_remote_dummy.
7729 (remote_open_1): Use catch_exception instead of catch_errors.
7730 (remote_async_open_1): Ditto.
7731 (remote_cisco_open): Ditto.
7733 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7735 * remote.c (remote_start_remote): Replace PTR with void pointer.
7736 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7739 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7741 * gdb_indent.sh: Allow the script to be run in the sim directory.
7743 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7745 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7746 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7748 * corelow.c (core_open): Only call set_gdbarch_from_file if
7751 2002-05-17 Andrey Volkov <avolkov@transas.com>
7753 * h8300-tdep.c: Add support of EXR register
7754 * config/h8300/tm-h8300.h: Ditto.
7756 2002-05-17 Andrey Volkov <avolkov@transas.com>
7758 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7760 2002-05-17 Andrey Volkov <avolkov@transas.com>
7762 * h8300-tdep.c: Change literal regnums to REGNO.
7764 2002-05-17 Jim Blandy <jimb@redhat.com>
7766 * NEWS: Note addition of macro support.
7768 Expand preprocessor macros in C expressions.
7769 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7770 (scan_macro_expansion, scanning_macro_expansion,
7771 finished_macro_expansion): New function declarations.
7772 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7773 variable declarations.
7774 * parser-defs.h (expression_context_pc): New declaration.
7775 * parse.c (expression_context_pc): New variable.
7776 (parse_exp_1): Set expression_context_pc, as well as
7777 expression_context_block.
7778 * c-exp.y (yylex): If we're not already reading the result of a
7779 macro expansion, try to macro-expand the next token. When we're
7780 done scanning a macro expansion, switch back to the mainline text.
7781 Commas and `if's in a macro's expansion don't terminate the input.
7782 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7783 (macro_original_text, macro_expanded_text,
7784 expression_macro_lookup_func, expression_macro_lookup_baton): New
7786 (scan_macro_expansion, scanning_macro_expansion,
7787 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7788 c_preprocess_and_parse): New functions.
7789 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7790 c_preprocess_and_parse, instead of c_parse.
7791 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7792 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7794 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7796 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7797 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7798 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7800 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7802 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7804 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7806 * Makefile.in (sh_tdep_h): Define and use.
7807 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7808 register enum): Move to...
7809 * * sh-tdep.h: ...here.
7810 * sh-tdep.c: Include sh-tdep.h.
7811 * sh3-rom.c: Likewise.
7812 * shnbsd-tdep.c: Likewise.
7814 2002-05-16 Michael Snyder <msnyder@redhat.com>
7816 * arm-tdep.c: Spelling fix in comment.
7818 2002-05-16 Jim Blandy <jimb@redhat.com>
7820 Add commands for manually expanding macros and showing their
7822 * macrocmd.c, macroscope.c, macroscope.h: New files.
7823 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7824 (macroscope_h): New variable.
7825 (HFILES_NO_SRCDIR): Add macroscope.h.
7826 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7827 (macroscope.o, macrocmd.o): New rules.
7829 Teach the Dwarf 2 reader to read macro information.
7830 * dwarf2read.c: #include "macrotab.h".
7831 (dwarf_macinfo_buffer): New variable.
7832 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7834 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7835 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7836 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7837 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7838 dwarf2_macro_spaces_in_definition): New complaints.
7839 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7840 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7841 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7842 the partial symbol table.
7843 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7844 from what's recorded in the partial symbol table.
7845 (read_file_scope): If the compilation unit has a
7846 `DW_AT_macro_info' attribute, read its macro information.
7847 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7849 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7852 * ser-tcp.c: Don't include <netinet/udp.h>.
7854 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7856 * MAINTAINERS: Update my email address.
7858 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7860 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7861 include file of the same name.
7863 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7865 * configure.tgt: Mark v850 as multi-arched.
7866 * config/v850/tm-v850.h: Remove file.
7867 * config/v850/v850.mt: Eliminate TM_FILE.
7869 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7871 * v850-tdep.c: Full multi-arch.
7872 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7873 Define GDB_MULTI_ARCH to 2.
7875 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7877 * p-exp.y (current_type): New static variable.
7878 Carries the type of the expression at the position that is parsed.
7879 (push_current_type, pop_current_type): Two new functions. Used
7880 to store/restore current_type in expression on specific tokens.
7881 (search_field): New static variable. Set to one after parsing a point
7882 as at that point only a FIELDNAME token should be searched.
7883 (FIELDNAME): New token. After a point only a token belonging to
7884 current_type type definition is allowed.
7885 (all over token rules): reset and change current_type according
7887 (exp '[' rule): insert implicit array index field if
7888 exp is a pascal string type.
7890 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7892 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7893 frame info. Use frame_info's saved_regs instead of matching member
7894 in extra_frame_info throughout.
7895 (v850_frame_init_saved_regs): New function.
7896 (v850_init_extra_frame_info): Move most functionality into
7897 v850_frame_init_saved_regs().
7898 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7899 (v850_frame_find_saved_regs): Remove declaration.
7900 (FRAME_FIND_SAVED_REGS): Remove definition.
7901 (v850_frame_init_saved_regs): Add declaration.
7902 (FRAME_INIT_SAVED_REGS): Add definition.
7904 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7906 * v850-tdep.c: Begin multi-arch'ing v850.
7907 (v850_target_architecture_hook): Remove function.
7908 (v850_gdbarch_init): New function. Add code previously in
7909 v850_target_architecture_hook().
7910 (_initialize_v850_tdep): Don't set target_architecture_hook.
7911 Call register_gdbarch_init() instead.
7913 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7915 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7916 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7917 (fixup_class_method_type): Likewise.
7919 2002-05-15 Jim Blandy <jimb@redhat.com>
7921 Add macro structures to GDB's symbol tables. Nobody puts anything
7923 * symtab.h (struct symtab): New member: `macro_table'.
7924 * buildsym.h (pending_macros): New global variable.
7925 * buildsym.c: #include "macrotab.h".
7926 (buildsym_init): Initialize `pending_macros'.
7927 (end_symtab): If we found macro information while reading a CU's
7928 debugging info, do build a symtab structure for it. Make the
7929 symtab point to the macro information, and clear the
7930 `pending_macros' pointer which held it while we were reading the
7932 (really_free_pendings): Free any pending macro table.
7933 * objfiles.h (struct objfile): New member: `macro_cache'.
7934 * objfiles.c (allocate_objfile): Set allocate and free functions
7935 for the macro cache's objstack.
7936 (free_objfile): Empty the macro cache's obstack.
7937 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7938 set new allocate and free functions for it.
7939 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7940 free functions for the macro cache's objstack. (Why is this
7941 function building its own objfile?)
7942 * symmisc.c (print_objfile_statistics): Print statistics on the
7944 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7946 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7948 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7949 (REGISTER_U_ADDR): Delete definition.
7950 (arm_register_u_addr): Delete declaration.
7952 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7954 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7955 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7957 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7959 * regcache.c (register_valid): Revise comments refering to "Not
7960 available" and "unavailable".
7961 * frame.c (frame_register_read): Ditto.
7962 * findvar.c (value_of_register): Ditto.
7964 2002-05-15 Andrew Cagney <cagney@redhat.com>
7966 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7967 (remote-sim.o): Update dependencies.
7968 (d10v-tdep.o): Specify dependencies.
7969 (sim_d10v_h): Define.
7971 2002-05-14 Jim Blandy <jimb@redhat.com>
7973 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7974 * macrotab.c (macro_lookup_inclusion, find_definition,
7975 new_macro_table): Same.
7977 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7978 not `! strcmp ()'. This is a dubious improvement.
7979 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7981 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7982 although it's not necessary, to avoid a warning.
7984 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7986 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7987 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7988 TYPE_INSTANCE_FLAGS.
7989 (struct main_type): New.
7990 (struct type): Move most members to struct main_type. Change
7991 cv_type and as_type to new type_chain member. Add instance_flags.
7992 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7993 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7994 (finish_cv_type): Remove prototype.
7995 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7997 (alloc_type_instance): New function.
7998 (smash_type): New function.
7999 (make_pointer_type, make_reference_type, make_function_type)
8000 (smash_to_member_type, smash_to_method_type): Call smash_type.
8001 (make_qualified_type): New function.
8002 (make_type_with_address_space): Call make_qualified_type.
8003 (make_cv_type): Likewise.
8004 (finish_cv_type): Remove unnecessary function.
8005 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8006 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8007 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8008 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8009 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8010 * hpread.c (hpread_read_struct_type): Likewise.
8011 * stabsread.c (read_struct_type): Likewise.
8013 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8015 * configure.tgt: Add a catch all sh* target, for cases like
8016 sh[2,3,4]-elf and sh-hms.
8018 2002-05-14 Keith Seitz <keiths@redhat.com>
8020 * event-loop.c (create_file_handler): Don't do anything but
8021 update data when we are given a fd which we are already
8024 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8026 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8027 (update_context): Use __func__ in warnings.
8029 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8031 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8032 and tcp_close to net_open and net_close.
8033 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8034 using UDP if requested. Don't try to disable Nagle on UDP
8036 * remote.c (remote_serial_open): New function. Warn about UDP.
8037 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8039 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8041 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8043 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8045 * configure.tgt: Remove sh-hms target.
8046 * MAINTAINERS: Don't list sh-hms as a separate target.
8048 2002-05-13 Jim Blandy <jimb@redhat.com>
8050 Add first preprocessor macro-expansion files.
8051 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8052 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8053 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8054 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8055 (COMMON_OBS): Add macrotab.o, macroexp.o.
8056 (macroexp.o, macrotab.o): New rules.
8058 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8060 * config/m88k/tm-m88k.h: Update copyright.
8061 (m88k_target_write_pc): Declare
8062 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8063 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8064 (SHIFT_INST_REGS): Update definition.
8065 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8066 using old definition of TARGET_WRITE_PC.
8067 * regcache.c (generic_target_write_pc): Delete code handling
8069 * gdbarch.sh (NNPC_REGNUM): Delete.
8070 * gdbarch.h, gdbarch.c: Regenerate.
8072 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8074 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8077 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8079 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8080 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8081 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8083 * c-typeprint.c (cp_type_print_method_args): Likewise.
8084 (c_type_print_args): Likewise.
8085 * d10v-tdep.c (d10v_push_arguments): Likewise.
8086 (d10v_extract_return_value): Likewise.
8087 * expprint.c (print_subexp): Likewise.
8088 * gdbtypes.c (lookup_primitive_typename): Likewise.
8089 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8090 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8091 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8092 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8093 (TYPE_VECTOR): Likewise.
8094 * hpread.c (hpread_read_struct_type)
8095 (fix_static_member_physnames, fixup_class_method_type)
8096 (hpread_type_lookup): Likewise.
8097 * mdebugread.c (parse_symbol, parse_type): Likewise.
8098 * p-lang.c (is_pascal_string_type): Likewise.
8099 * valops.c (hand_function_call): Likewise.
8100 * x86-64-tdep.c (classify_argument): Likewise.
8102 * hpread.c (hpread_read_function_type)
8103 (hpread_read_doc_function_type): Call replace_type.
8104 * dstread.c (create_new_type): Delete.
8105 (decode_dst_structure, process_dst_function): Call alloc_type.
8106 Use type access macros.
8108 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8110 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8111 the're not supported by the current architecture.
8112 (i387_fill_fxsave): Likewise.
8114 2002-05-12 Fred Fish <fnf@redhat.com>
8116 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8117 sect_index_xxx members to index the first slot in section_offsets
8118 if all of the section_offsets are zero.
8120 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8122 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8123 checked in with last change.
8125 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8127 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8128 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8131 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8133 * Makefile.in: Update dependencies.
8135 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8137 * language.c (local_hex_string_custom): Simplify. Do not depend
8138 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8140 * memattr.c (mem_info_command): Replace calls to
8141 longest_local_hex_string and longest_local_hex_string_custom.
8142 * buildsym.c (make_blockvector): Ditto.
8143 * solib.c (info_sharedlibrary_command): Ditto.
8144 * tracepoint.c (tracepoints_info): Ditto.
8145 * symtab.c (print_msymbol_info): Ditto.
8147 * language.c (local_hex_string): Delete.
8148 (local_hex_string_custom): Delete.
8149 (longest_local_hex_string): Rename to local_hex_string.
8150 (longest_local_hex_string_custom): Rename to
8151 local_hex_string_custom.
8152 * language.h (local_hex_string): Change parameter type to LONGEST.
8153 (local_hex_string_custom): Ditto.
8154 (longest_local_hex_string): Delete declaration.
8155 (longest_local_hex_string_custom): Ditto.
8157 * solib.c: Update copyright.
8158 * memattr.c: Update copyright.
8160 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8162 * arch-utils.h (legacy_register_to_value): Declare.
8163 (legacy_value_to_register): Declare.
8164 (legacy_convert_register_p): Declare.
8165 * arch-utils.c (legacy_register_to_value): New function.
8166 (legacy_value_to_register): New function.
8167 (legacy_convert_register_p): New function.
8169 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8170 (VALUE_TO_REGISTER): Define.
8171 (CONVERT_REGISTER_P): Define.
8172 * gdbarch.h, gdbarch.c: Regenerate.
8174 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8176 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8179 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8180 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8182 * Makefile.in: Update dependencies for valops.c.
8183 * valops.c: Include "gdb_assert.h".
8184 (typecmp): Skip THIS parameter to methods.
8185 (find_method_list): Remove static_memfuncp argument,
8186 update callers. Check for stub methods.
8187 (find_value_oload_method_list): Don't set *static_memfuncp.
8188 (find_overload_match): Don't check for stub methods. Assert
8189 that methods are not stubbed. Handle static methods.
8190 (value_find_oload_method_list): Remove static_memfuncp argument.
8191 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8192 to the argument list for static stub methods.
8193 * value.h (value_find_oload_method_list): Update prototype.
8195 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8197 * arch-utils.h (generic_register_size): Declare.
8198 (generic_register_raw_size, generic_register_virtual_size): Delete
8200 * arch-utils.c (generic_register_raw_size): Delete.
8201 (generic_register_size): New function.
8202 (generic_register_virtual_size): Delete.
8204 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8205 default generic_register_size.
8206 * gdbarch.h, gdbarch.c: Re-generate.
8208 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8209 register_virtual_size.
8210 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8211 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8213 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8215 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8216 * gdbarch.h, gdbarch.c: Regenerate.
8217 * gnu-v3-abi.c: Update copyright.
8218 (vtable_address_point_offset): Update.
8219 (gnuv3_rtti_type): Update.
8220 (gnuv3_baseclass_offset): Update.
8221 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8222 (init_fetch_link_map_offsets): Update.
8223 * remote.c (get_remote_state): Update.
8225 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8227 * TODO: Remove value_headof/value_from_vtable_info comment.
8228 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8229 * values.c (value_headof, value_from_vtable_info): Delete.
8230 * value.h (value_from_vtable_info): Delete prototype.
8232 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8234 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8235 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8237 (gdb_assert_h): Define.
8238 (gdb_wait_h): Define.
8239 (gdb_regex_h): Define.
8241 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8243 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8244 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8246 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8248 * nbsd-tdep.c: Fix comment.
8250 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8252 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8253 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8254 (nbsd-tdep.o): New dependency list.
8255 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8257 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8258 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8259 * nbsd-tdep.c: New file.
8260 * nbsd-tdep.h: New file.
8261 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8263 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8264 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8265 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8266 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8268 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8270 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8271 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8272 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8273 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8274 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8275 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8277 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8279 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8280 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8281 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8282 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8283 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8284 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8285 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8287 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8289 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8290 fetch_elfcore_registers to...
8291 * i386nbsd-tdep.c: ...here.
8292 (i386nbsd_use_struct_convention): Rename to...
8293 (i386nbsd_aout_use_struct_convention): ...this.
8294 (i386nbsd_supply_reg): New function.
8295 (i386nbsd_fill_reg): New function.
8296 (fetch_core_registers): Use i386nbsd_supply_reg.
8297 (fetch_elfcore_registers): Likewise.
8298 (_initialize_i386nbsd_tdep): New function.
8299 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8300 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8301 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8302 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8303 (i386nbsd_aout_use_struct_convention): ...this.
8305 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8307 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8308 (store_inferior_registers): Use shnbsd_fill_reg.
8309 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8310 sh_nbsd_supply_register): Collapse into...
8311 (shnbsd_supply_reg): ...this.
8312 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8313 (shnbsd_fill_reg): ...this.
8314 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8315 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8316 (fetch_core_registers): Use shnbsd_supply_reg.
8317 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8318 (sh_nbsd_core_fns): Rename to...
8319 (shnbsd_core_fns): ...this.
8320 (sh_nbsd_elfcore_fns): Rename to...
8321 (shnbsd_elfcore_fns): ...this.
8322 (sh_nbsd_init_abi): Rename to...
8323 (shnbsd_init_abi): ...this.
8324 (_initialize_sh_nbsd_tdep): Rename to...
8325 (_initialize_shnbsd_tdep): ...this.
8326 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8327 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8328 sh_nbsd_fill_register): Remove prototypes.
8329 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8331 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8333 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8334 (i387-nat.o): Delete dependency list.
8335 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8336 (x86-64-linux-nat.o): Likewise.
8337 * i387-nat.c: Delete file, moving contents to...
8338 * i387-tdep.c: ...here.
8339 * i387-nat.h: Rename...
8340 * i387-tdep.h: ...to this.
8341 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8342 * i386-linux-nat.c: Likewise.
8343 * i386bsd-nat.c: Likewise.
8344 * i386gnu-nat.c: Likewise.
8345 * i386nbsd-nat.c: Likewise.
8346 * i386v4-nat.c: Likewise.
8347 * x86-64-linux-nat.c: Likewise.
8348 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8349 * config/i386/go32.mh (NATDEPFILES): Likewise.
8350 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8351 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8352 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8353 * config/i386/linux.mh (NATDEPFILES): Likewise.
8354 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8355 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8356 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8357 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8359 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8361 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8362 (alphanbsd-nat.o): Remove dependency list.
8363 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8364 * alphanbsd-nat.c: Delete. Contents moved to...
8365 * alphanbsd-tdep.c: ...here.
8366 (_initialize_alphanbsd_tdep): Register core functions.
8367 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8369 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8371 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8372 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8373 (alphanbsd-nat.o): Likewise.
8374 (alphabsd-tdep.o): New dependency list.
8375 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8376 (fill_gregset): Use alphabsd_fill_reg.
8377 (supply_fpregset): Use alphabsd_supply_fpreg.
8378 (fill_fpregset): Use alphabsd_fill_fpreg.
8379 (fetch_inferior_registers): Use struct reg and struct fpreg
8380 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8381 and alphabsd_supply_fpreg.
8382 (store_inferior_registers): Use struct reg and struct fpreg
8383 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8384 and alphabsd_fill_fpreg.
8385 * alphabsd-tdep.c: New file.
8386 * alphabsd-tdep.h: New file.
8387 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8388 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8389 alphabsd_supply_fpreg.
8390 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8391 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8393 2002-05-11 Eric Christopher <echristo@redhat.com>
8395 * mips-tdep.c (mips_double_register_type): Fix thinko.
8396 (mips_single_register_type): Ditto.
8397 * MAINTAINERS: Add self.
8399 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8401 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8402 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8403 right thing on architectures with different endianness and/or
8406 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8408 From Christian Limpach <chris@Pin.LU>
8409 * configure.in: Change sed expression which comments out
8410 NATDEPFILES to also comment out continuation lines.
8411 * configure: Regenerate.
8413 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8415 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8418 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8420 * sh-tdep.c: Include correct file.
8422 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8424 New support for sh64-elf (sh5) target.
8426 * configure.tgt: For sh64-elf target, default to sh-elf.
8428 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8429 (struct gdbarch_tdep): Add new fields for new registers and ABI
8432 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8433 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8434 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8435 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8436 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8437 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8438 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8439 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8440 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8441 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8442 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8443 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8444 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8445 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8446 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8447 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8448 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8449 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8450 sign_extend, sh64_nofp_frame_init_saved_regs,
8451 sh64_init_extra_frame_info, sh64_get_saved_register,
8452 sh64_extract_struct_value_address, sh64_pop_frame,
8453 sh64_push_arguments, sh64_extract_return_value,
8454 sh64_store_return_value, sh64_show_media_regs,
8455 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8456 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8457 sh_sh64_register_virtual_type,
8458 sh_sh64_register_convert_to_virtual,
8459 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8460 sh64_register_read, sh64_pseudo_register_write,
8461 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8462 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8463 sh64_do_pseudo_register, sh_compact_do_registers_info,
8464 sh64_do_registers_info, sh_gdbarch_init): New functions.
8466 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8468 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8470 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8472 * linespec.c (decode_line_1): Check for a double quote after
8473 a filename correctly.
8475 2002-05-10 Jim Blandy <jimb@redhat.com>
8477 Properly track the size of the current objfile's .debug_line section.
8478 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8479 (DWARF_LINE_SIZE): New macro.
8480 (dwarf2_build_psymtabs_hard): Record the line section's size in
8481 the partial symbol table.
8482 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8485 2002-05-10 Petr Sorfa <petrs@caldera.com>
8487 * ia64-tdep.c: Handle breakpoints on L instruction type
8488 in MLX instruction bundle by moving the breakpoint to
8489 the third slot (X instruction type) as L holds only data.
8491 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8493 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8494 (process_one_symbol): Complain about discarding local symbols
8495 due to a misplaced N_LBRAC entry.
8497 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8499 From Daniel Berlin <dan@cgsoftware.com>
8500 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8501 decrease the depth we are at, in the case of templates.
8503 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8505 * mips-tdep.c (mips_float_register_type): New function.
8506 (mips_double_register_type): New function.
8507 (mips_print_register): Use them.
8508 (do_fp_register_row): Likewise.
8510 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8512 * signals/signals.c (signals): Remove conditional compilation around
8513 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8514 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8516 2002-05-09 Michael Snyder <msnyder@redhat.com>
8518 * remote-rdp.c (remote_rdp_can_run): Remove.
8520 2002-05-09 Tom Tromey <tromey@redhat.com>
8522 * jv-valprint.c (java_val_print): Handle `char' as a special case
8525 2002-05-09 Michael Snyder <msnyder@redhat.com>
8527 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8528 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8529 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8530 str r(0123),[sp,#nn].
8531 (arm_skip_prologue): Ditto. Also make disassembly
8532 order-independent by placing it in a loop.
8534 2002-05-06 Michael Snyder <msnyder@redhat.com>
8536 * stabsread.c (read_type): Add recognition for new attribute:
8537 "@V;" means that an array type is actually a vector.
8538 This is analogous to the vector flag that's been added to dwarf2.
8540 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8542 * i386-tdep.h (i386_abi): New enum.
8543 (struct gdbarch_tdep): Replace os_ident member with abi.
8544 (i386_gdbarch_register_os_abi): New prototype.
8545 * i386-tdep.c (i386_abi_names): New array.
8546 (process_note_abi_tag_sections): Removed.
8547 (process_note_sections): New function.
8548 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8549 (struct i386_abi_handler): New struct.
8550 (i386_abi_handler_list): New variable.
8551 (i386_gdbarch_register_os_abi): New function.
8552 (i386_gdbarch_init): Adapt for the changes given above.
8554 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8556 * gregset.h: Say "GNU/Linux".
8558 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8560 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8561 (build_gdbtypes): Build builtin_type_v2_float.
8562 (_initialize_gdbtypes): Register new builtin type.
8564 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8566 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8567 (clear_gdbarch_swap): New function.
8568 (initialize_non_multiarch): Call.
8569 (gdbarch_update_p): Before calling init(), swap out and clear the
8570 existing architecture.
8571 * gdbarch.c: Regenerate.
8573 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8575 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8578 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8580 * sh-nbsd-nat.c: Rename to...
8581 * shnbsd-nat.c: ...this.
8582 * sh-nbsd-tdep.c: Rename to...
8583 * shnbsd-tdep.c: ...this.
8584 * sh-nbsd-tdep.h: Rename to...
8585 * shnbsd-tdep.h: ...this.
8586 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8587 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8589 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8591 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8592 concatenation for command help messages.
8594 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8596 * NEWS: Note new sh*-*-netbsdelf* configuration.
8597 * configure.host: Set gdb_host_cpu to sh for all sh*.
8598 (sh*-*-netbsdelf*): New host.
8599 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8600 (sh*-*-netbsdelf*): New target.
8601 * sh-nbsd-nat.c: New file.
8602 * sh-nbsd-tdep.c: New file.
8603 * sh-nbsd-tdep.h: New file.
8604 * config/sh/nbsd.mh: New file.
8605 * config/sh/nbsd.mt: New file.
8606 * config/sh/nm-nbsd.h: New file.
8607 * config/sh/tm-nbsd.h: New file.
8609 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8611 * sh-tdep.c (sh_osabi_names): Declare.
8612 (process_note_abi_tag_sections): New function.
8613 (get_elfosabi): Ditto.
8614 (sh_gdbarch_register_os_abi): Ditto.
8615 (sh_dump_tdep): Ditto.
8616 _initialize_sh_tdep): Use gdbarch_register to register
8617 sh_gdbarch_init and sh_dump_tdep.
8618 * config/sh/tm-sh.h (sh_osabi): Declare.
8619 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8621 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8623 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8624 (thumb_scan_prologue): Ditto.
8625 (arm_find_callers_reg): Ditto.
8626 (arm_frame_chain): Ditto.
8627 (arm_init_extra_frame_info): Ditto.
8628 (arm_frame_saved_pc): Ditto.
8629 (arm_pop_frame): Ditto.
8630 (arm_push_return_address): New function.
8631 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8632 call_dummy_location, call_dummy_breakpoint_offset_p,
8633 call_dummy_breakpoint_offset, call_dummy_p,
8634 call_dummy_stack_adjust_p, call_dummy_words,
8635 sizeof_call_dummy_words, call_dummy_start_offset,
8636 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8637 call_dummy_address, push_return_address and push_dummy_frame for
8638 generic dummy frames.
8640 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8642 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8643 size computation for alloca.
8644 (sh_fp_frame_init_saved_regs): Likewise.
8646 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8648 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8649 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8650 * arm-tdep.c (arm_store_return_value): Use them.
8651 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8652 * remote-rdp.c (remote_rdp_fetch_register): Use
8653 ARM_MAX_REGISTER_RAW_SIZE.
8654 (remote_rdp_store_register): Likewise.
8656 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8658 * dwarf2cfi.c: Code cleanup, removed unused variables,
8659 added default labels to switch {} statements.
8660 * x86-64-tdep.c: Ditto.
8661 * x86-64-linux-nat.c: Ditto.
8663 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8665 * solib.h: Protect against multiple inclusion.
8667 2002-05-06 Jim Blandy <jimb@redhat.com>
8669 Add first preprocessor macro-expansion files.
8670 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8671 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8672 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8673 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8674 (COMMON_OBS): Add macrotab.o, macroexp.o.
8675 (macroexp.o, macrotab.o): New rules.
8677 Separate the job of reading the line number info statement program
8678 header (...expialidocious) out into its own function.
8679 * dwarf2read.c (struct line_head, struct filenames, struct
8680 directories): Replace with...
8681 (struct line_header): New structure, containing the full
8682 contents of the statement program header, including the
8683 include directory and file name tables.
8684 (read_file_scope): If we have line number info, instead of just
8685 calling dwarf_decode_lines to do all the work, call
8686 dwarf_decode_line_header first to get a `struct line_header'
8687 containing the data in the statement program header, and then
8688 pass that to dwarf_decode_lines, which will pick up where that
8689 left off. Be sure to clean up the `struct line_header' object.
8690 (dwarf_decode_line_header, free_line_header, add_include_dir,
8691 add_file_name): New functions.
8692 (dwarf_decode_lines): Move all the code to read the statement
8693 program header into dwarf_decode_line_header. Take the line
8694 header it built as the first argument, instead of the offset to
8695 the compilation unit's line number info. Use the new `struct
8696 line_header' type instead of the old structures. No need to do
8697 cleanups here now, since we don't allocate anything.
8698 (dwarf2_statement_list_fits_in_line_number_section,
8699 dwarf2_line_header_too_long): New complaints.
8701 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8703 * gdbtypes.c (init_vector_type): New function.
8704 (build_builtin_type_vec128): Simplify the representation of SIMD
8706 (build_gdbtypes): Initialize new builtin vector types.
8707 (_initialize_gdbtypes): Register new vector types with gdbarch.
8708 (builtin_type_v4_float, builtin_type_v4_int32,
8709 builtin_type_v8_int16, builtin_type_v16_int8,
8710 builtin_type_v2_int32, builtin_type_v4_int16,
8711 builtin_type_v8_int8): New (renamed) SIMD types.
8713 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8715 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8716 (i387_fill_fxsave): Likewise.
8718 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8720 * alpha-tdep.c (alpha_extract_return_value): Don't use
8721 non-constant array size in prototype.
8723 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8725 From Brian Taylor <briant at model dot com>:
8726 * ui-out.c (ui_out_field_core_addr): Use the function
8727 longest_local_hex_string_custom'to format addresses > 32 bits
8730 * ui-out.c (ui_out_field_core_addr): Update comment.
8732 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8734 * stack.c (select_and_print_frame): Make static. Delete the
8736 (func_command): Update call.
8737 (select_frame_command): Delete code computing the frame level.
8738 * frame.h (select_and_print_frame): Delete declaration.
8740 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8742 * sparc-tdep.c (sparc_get_saved_register): Comment why
8743 get_prev_frame call is safe.
8745 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8747 * frame.h (select_frame): Delete level parameter.
8748 * stack.c (select_frame): Update. Use frame_relative_level to
8749 obtain the frame's level.
8750 (select_and_print_frame): Update call.
8751 (select_frame_command): Ditto.
8752 (up_silently_base): Ditto.
8753 (down_silently_base): Ditto.
8754 * ocd.c (ocd_start_remote): Ditto.
8755 * remote-rdp.c (remote_rdp_open): Ditto.
8756 * remote-mips.c (mips_initialize): Ditto.
8757 (common_open): Ditto.
8758 * remote-e7000.c (e7000_start_remote): Ditto.
8759 * m3-nat.c (select_thread): Ditto.
8760 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8761 (child_get_current_exception_event): Ditto.
8762 * varobj.c (varobj_create): Ditto.
8763 (varobj_update): Ditto.
8764 (c_value_of_root): Ditto.
8765 * tracepoint.c (finish_tfind_command): Ditto.
8766 * corelow.c (core_open): Ditto.
8767 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8768 * thread.c (info_threads_command): Ditto.
8769 (switch_to_thread): Ditto.
8770 * infrun.c (normal_stop): Ditto.
8771 (restore_selected_frame): Ditto.
8772 (restore_inferior_status): Ditto.
8773 * breakpoint.c (insert_breakpoints): Ditto.
8774 (watchpoint_check): Ditto.
8775 (bpstat_stop_status): Ditto.
8776 (do_enable_breakpoint): Ditto.
8777 * blockframe.c (flush_cached_frames): Ditto.
8778 (reinit_frame_cache): Ditto.
8780 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8782 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8785 2002-05-04 Jim Blandy <jimb@redhat.com>
8787 * gdbtypes.c (replace_type): Doc fix.
8789 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8791 * valprint.c (strcat_longest): Delete commented out function.
8794 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8796 * MAINTAINERS: Mark a29k as deleted.
8797 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8798 Move new configurations to the top.
8799 * configure.tgt: Remove a29k.
8800 * config/a29k/tm-vx29k.h: Delete.
8801 * config/a29k/vx29k.mt: Delete.
8802 * config/a29k/tm-a29k.h: Delete.
8803 * config/a29k/a29k-udi.mt: Delete.
8804 * config/a29k/a29k.mt: Delete.
8805 * a29k-tdep.c: Delete.
8806 * remote-udi.c: Delete.
8807 * remote-mm.c: Delete.
8808 * remote-eb.c: Delete.
8809 * remote-adapt.c: Delete.
8810 * Makefile.in: Remove obsolete code.
8811 * config/s390/s390x.mt: Ditto.
8812 * config/s390/s390.mt: Ditto.
8813 * config/sparc/sparclynx.mh: Ditto.
8814 * config/sparc/linux.mh: Ditto.
8815 * config/pa/hppaosf.mh: Ditto.
8816 * config/pa/hppabsd.mh: Ditto.
8817 * config/ns32k/nbsd.mt: Ditto.
8818 * config/mips/vr5000.mt: Ditto.
8819 * config/m68k/sun3os4.mh: Ditto.
8820 * config/m68k/nbsd.mt: Ditto.
8821 * config/m68k/m68klynx.mh: Ditto.
8822 * config/m32r/m32r.mt: Ditto.
8823 * config/i386/x86-64linux.mt: Ditto.
8824 * config/i386/nbsdelf.mt: Ditto.
8825 * config/i386/nbsd.mt: Ditto.
8826 * config/i386/i386lynx.mh: Ditto.
8828 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8830 * target.c (debug_print_register): New function. Handle oversize
8832 (debug_to_fetch_registers): Call.
8833 (debug_to_store_registers): Call.
8835 2002-05-03 Jim Blandy <jimb@redhat.com>
8837 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8838 (read_type): Doc fix.
8839 * gdbtypes.c (replace_type): Doc fix.
8841 * stabsread.c (multiply_defined_struct): New complaint.
8842 (read_struct_type): If the type we were passed isn't empty, or
8843 incomplete, don't read the new struct type into it; complain,
8844 and return the original type unchanged. Take a new `type_code'
8845 argument, which is the type code for the new type.
8846 (read_type): Rather than storing the type's type code here, pass
8847 it as an argument to read_struct_type, and let that take care of
8848 storing it. That way, we don't overwrite the original type code,
8849 so read_struct_type can use it to decide whether we're overwriting
8850 something we shouldn't.
8851 (complain_about_struct_wipeout): New function.
8853 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8855 * gdbarch.sh: Assert that gdbarch is non-NULL.
8856 * gdbarch.c: Regenerate.
8858 2002-05-03 Jason Merrill <jason@redhat.com>
8860 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8863 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8865 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8866 (x86_64_dwarf2gdb_regno_map_length),
8867 (x86_64_dwarf2_reg_to_regnum): Added.
8868 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8869 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8870 (_initialize_x86_64_tdep): Synced with the change above.
8871 (x86_64_skip_prologue): Reformulated message.
8873 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8875 * f-exp.y: Also use new prev_lexptr variable
8876 to improve error reporting. Based on Michael Snyder
8877 2002-04-24 dated patch to c-exp.y.
8878 * jv-exp.y: Likewise.
8879 * m2-exp.y: Likewise.
8881 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8883 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8884 we are dealing with vectors.
8886 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8888 * config/m68k/tm-nbsd.h: Obvious fix,
8889 correct machine name.
8891 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8893 * p-typeprint.c (pascal_type_print_base): Add support
8894 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8896 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8898 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8899 for fondamental pascal 'char' type.
8901 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8903 * p-lang.h (is_pascal_string_type): Declaration changed,
8904 new sixth argument of type char ** added.
8905 * p-lang.c (is_pascal_string_type): Implementation
8906 changed. Args length_pos, length_size, string_pos, char_size
8907 can now be NULL. New argument arrayname set to the field
8908 name of the char array. Return value set to char array
8909 field index plus one.
8910 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8911 is_pascal_string_type function.
8913 2002-05-02 Andrew Cagney <cagney@redhat.com>
8915 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8916 <cagney@redhat.com> change.
8917 * gdbarch.c: Regenerate.
8919 2002-05-02 Andrew Cagney <cagney@redhat.com>
8921 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8922 before probing for a new one. Detect errorenous gdbarch_init
8924 * gdbarch.c: Regenerate.
8926 2002-05-01 Andrew Cagney <cagney@redhat.com>
8928 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8929 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8930 * config/v850/tm-v850.h: Ditto. Update copyright.
8932 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8934 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8937 2002-04-30 Michael Snyder <msnyder@redhat.com>
8939 * arm-tdep.c: Whitespace clean-ups.
8940 (arm_skip_prologue): Fix thinko; two lines
8941 should have been removed as part of 4/24 change.
8943 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8945 * rs6000-tdep.c: Added comment describing how fpscr register
8946 numbers were chosen.
8948 2002-04-30 Michael Snyder <msnyder@redhat.com>
8950 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8952 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8954 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8955 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8956 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8958 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8960 From Louis Hamilton <hamilton@redhat.com>:
8961 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8962 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8963 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8964 not bfd-private xcoff data, to determine wordsize.
8965 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8967 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8969 GDB 5.2 released from 5.2 branch.
8971 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8973 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8974 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8975 (x86_64_register_info_table): Added comments with register numbers.
8977 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8979 * rs6000-tdep.c (rs6000_extract_return_value,
8980 rs6000_store_return_value): Handle returning vectors.
8981 (rs6000_gdbarch_init): Use
8982 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8983 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8985 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8987 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8988 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8990 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8992 * hpread.c (hpread_psymtab_to_symtab_1,
8993 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8994 with fprintf_unfiltered (gdb_stderr,...).
8996 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8998 * remote-array.c (printf_monitor, write_monitor,
8999 array_insert_breakpoint, array_remove_breakpoint ):
9000 Replace fprintf (stderr,...
9001 with fprintf_unfiltered (gdb_stderr,....
9002 * remote-es.c: Likewise.
9003 * remote-os9k.c: Likewise.
9004 * remote-st.c: Likewise.
9006 2002-04-28 Andreas Schwab <schwab@suse.de>
9008 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9009 linux-proc.o and gcore.o.
9011 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9013 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9014 code without frame pointers.
9016 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9018 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9021 2002-04-26 Ben Elliston <bje@redhat.com>
9023 * target.c (do_xfer_memory): Correct reference to the new option
9024 "trust-readonly-sections".
9026 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9028 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9029 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9030 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9032 (read_array_type): Record the fact that this array type is really a
9033 vector (i.e. are passed in by value).
9035 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9037 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9038 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9039 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9040 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9041 * alpha-linux-tdep.c: Include frame.h.
9042 (alpha_linux_sigcontext_addr): New function.
9043 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9044 alpha_linux_sigcontext_addr.
9045 * alpha-osf1-tdep.c: Include gdbcore.h.
9046 (alpha_osf1_sigcontext_addr): New function.
9047 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9048 alpha_osf1_sigcontext_addr.
9049 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9050 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9052 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9054 * stack.c (selected_frame_level):
9055 (select_frame): Do not set selected_frame_level.
9056 * frame.h (selected_frame_level): Delete declaration.
9058 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9060 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9061 convert_from_func_ptr-addr when AIX / PowerOpen.
9063 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9065 * valops.c (hand_function_call): Call
9066 generic_save_call_dummy_addr.
9067 * frame.h (generic_save_call_dummy_addr): Declare.
9068 * blockframe.c (struct dummy_frame): Add fields call_lo and
9070 (generic_find_dummy_frame): Check for PC in range call_lo to
9071 call_hi instead of entry_point_address.
9072 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9073 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9074 (generic_save_call_dummy_addr): New function.
9076 2002-04-24 David S. Miller <davem@redhat.com>
9078 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9079 sparc_skip_prologue.
9080 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9081 information to find prologue when possible.
9082 (sparc_prologue_frameless_p): Call examine_prologue directly.
9083 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9084 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9086 (SKIP_PROLOGUE): Likewise.
9088 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9090 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9091 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9092 indicate that the condition it was testing is always true.
9093 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9094 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9095 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9097 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9099 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9100 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9101 tdep->jb_pc and tdep->jb_elt_size.
9102 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9103 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9104 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9105 * alpha-nat.c (get_longjmp_target): Remove.
9106 (JB_ELEMENT_SIZE): Ditto.
9108 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9109 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9110 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9111 to alpha_get_longjmp_target.
9112 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9113 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9114 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9116 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9118 * README: Update to GDB 5.2.
9120 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9122 * gdbarch.sh (LC_ALL): Set to `c'.
9124 2002-04-25 Theodore A. Roth <troth@verinet.com>
9126 * avr-tdep.c: Ran through gdb_indent.sh.
9128 2002-04-25 Theodore A. Roth <troth@verinet.com>
9130 * MAINTAINERS: Add myself as AVR maintainer.
9131 * NEWS: Note new target avr.
9133 2002-04-25 Theodore A. Roth <troth@verinet.com>
9135 * Makefile.in: Add support for AVR target.
9136 * configure.tgt: Add support for AVR target.
9137 * avr-tdep.c: New file
9138 * config/avr/avr.mt: New file.
9140 2002-04-25 Theodore A. Roth <troth@verinet.com>
9142 * MAINTAINERS: Add myself to write-after-approval.
9144 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9146 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9147 with fprintf_unfiltered (gdb_stderr,....
9149 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9152 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9154 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9156 * p-exp.y: Also use new prev_lexptr variable
9157 to improve error reporting. Based on Michael Snyder
9158 2002-04-24 dated patch to c-exp.y.
9160 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9162 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9163 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9164 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9166 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9168 (FUNCTION_START_OFFSET): Remove.
9169 (BREAKPOINT): Ditto.
9171 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9173 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9176 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9178 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9179 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9180 alpha_linux_pc_in_sigtramp.
9181 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9182 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9183 alpha_osf1_pc_in_sigtramp.
9184 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9185 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9186 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9187 alphafbsd_pc_in_sigtramp.
9188 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9189 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9190 alphanbsd_pc_in_sigtramp.
9191 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9192 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9194 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9196 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9198 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9200 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9202 (alphanbsd-nat.o): New dependency list.
9203 (alphanbsd-tdep.o): Ditto.
9204 * NEWS: Note new native NetBSD/alpha configuration.
9205 * alphanbsd-nat.c: New file.
9206 * alphanbsd-tdep.c: Ditto.
9207 * configure.host (alpha*-*-netbsd*): New host.
9208 * configure.tgt (alpha*-*-netbsd*): New target.
9209 * config/alpha/nbsd.mh: New file.
9210 * config/alpha/nbsd.mt: Ditto.
9211 * config/alpha/nm-nbsd.h: Ditto.
9212 * config/alpha/tm-nbsd.h: Ditto.
9214 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9216 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9217 (alpha-osf1-tdep.o): New dependency list.
9218 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9219 and skip_sigtramp_frame members.
9220 * alpha-linux-tdep.c: Include gdbcore.h.
9221 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9222 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9223 * alpha-osf1-tdep.c: New file.
9224 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9226 (alpha_frame_past_sigtramp_frame): New function.
9227 (alpha_dynamic_sigtramp_offset): Ditto.
9228 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9229 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9230 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9231 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9232 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9233 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9234 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9235 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9236 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9237 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9238 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9239 to find_solib_trampoline_target.
9240 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9241 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9242 (SKIP_TRAMPOLINE_CODE): Remove.
9243 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9244 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9245 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9246 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9247 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9248 (PROC_SIGTRAMP_MAGIC): Ditto.
9249 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9250 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9251 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9252 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9253 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9255 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9257 * NEWS: Note that Alpha targets are now multi-arch.
9259 2002-04-24 Michael Snyder <msnyder@redhat.com>
9261 * parser-defs.h (prev_lexptr): New external variable.
9262 * parse.c (parse_exp_1): Set prev_lexptr to null before
9263 calling the language-specific parser.
9264 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9265 (yyerror): Use prev_lexptr in error reporting.
9267 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9269 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9270 * gregset.h: If FILL_FPXREGSET is defined, provide
9271 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9272 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9273 is defined, call fill_fpxregset.
9275 2002-04-24 Roland McGrath <roland@frob.com>
9277 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9278 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9279 (supply_gregset, supply_fpregset): New functions.
9281 * gnu-nat.c (gnu_find_memory_regions): New function.
9282 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9283 (gnu_xfer_memory): Add a cast.
9285 2002-04-24 Michael Snyder <msnyder@redhat.com>
9287 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9288 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9289 of argument regs ("str r(0123), [r11, #-nn"]).
9290 (arm_skip_prologue): Better handling for frameless functions.
9291 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9292 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9294 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9296 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9297 NUM_PSEUDO_REGS can be used.
9299 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9301 * arch-utils.h: Update copyright.
9303 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9304 * gdbarch.h, gdbarch.c: Re-generate.
9306 * inferior.h (IN_SIGTRAMP): Delete definition.
9307 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9308 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9310 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9311 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9312 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9313 (find_proc_framesize): Ditto.
9314 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9315 (alpha_init_extra_frame_info): Ditto.
9316 * infrun.c (handle_inferior_event): Ditto.
9317 (handle_inferior_event): Ditto.
9318 (check_sigtramp2): Ditto.
9319 * blockframe.c (create_new_frame): Ditto.
9320 (get_prev_frame): Ditto.
9321 * ppc-linux-tdep.c: Update comments.
9322 * i386-linux-tdep.c: Update comments.
9323 * breakpoint.c (bpstat_what): Update comment.
9325 2002-04-24 David S. Miller <davem@redhat.com>
9327 * i960-tdep.c (register_in_window_p): New function.
9328 (i960_find_saved_register): Use it instead of
9329 REGISTER_IN_WINDOW_P.
9330 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9332 * symtab.h (find_stab_function_addr): Kill extern.
9333 * minsyms.c (find_stab_function_addr): Remove from here...
9334 * dbxread.c: ... to here, and mark it static.
9336 2002-04-20 David S. Miller <davem@redhat.com>
9338 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9339 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9341 2002-04-21 David S. Miller <davem@redhat.com>
9343 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9344 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9345 (vx_write_register): Likewise.
9347 2002-04-23 J. Brobecker <brobecker@gnat.com>
9349 * source.c (is_regular_file): New function.
9350 (openp): Check wether file to open is a regular file
9351 to avoid opening directories.
9353 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9355 * findvar.c (extract_signed_integer): Cast printf argument
9356 to suppress format warning.
9357 (extract_unsigned_integer): Likewise.
9358 * infcmd.c (registers_info): Likewise.
9359 * top.c (get_prompt_1): Likewise.
9360 * valops.c (value_assign): Likewise.
9361 * valprint.c (print_decimal): Likewise.
9363 2002-04-22 H.J. Lu (hjl@gnu.org)
9365 * c-exp.y (typebase): Support
9367 [long|long long|short] [signed|unsigned] [int|]
9371 signed [long|long long|short] int
9373 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9375 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9377 * vax-tdep.h: New file.
9378 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9379 Make several routines static.
9380 (vax_get_saved_register): New function.
9381 (vax_gdbarch_init): New function.
9382 (_initialize_vax_tdep): Register vax_gdbarch_init.
9383 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9384 Remove macros now under the control of gdbarch.
9386 2002-04-22 Michael Snyder <msnyder@redhat.com>
9388 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9389 Some whitespace and coding standards tweaks.
9391 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9393 * vax-tdep.c: Include regcache.h.
9394 (vax_call_dummy_words): New.
9395 (sizeof_vax_call_dummy_words): New.
9396 (vax_fix_call_dummy): New function.
9397 (vax_saved_pc_after_call): Ditto.
9398 * config/vax/tm-vax.h: Don't include regcache.h.
9399 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9400 (CALL_DUMMY): Remove.
9401 (CALL_DUMMY_WORDS): Define.
9402 (SIZEOF_CALL_DUMMY_WORDS): Define.
9403 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9405 2002-04-18 Michael Snyder <msnyder@redhat.com>
9407 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9409 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9411 * vax-tdep.c (vax_frame_chain): New function.
9412 (vax_push_dummy_frame): Ditto.
9413 (vax_pop_frame): Ditto.
9414 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9415 (FRAMELESS_FUNCTION_INVOCATION): Use
9416 generic_frameless_function_invocation_not.
9417 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9418 (POP_FRAME): Use vax_pop_frame.
9420 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9422 * vax-tdep.c (vax_store_struct_return): New function.
9423 (vax_extract_return_value): Ditto.
9424 (vax_store_return_value): Ditto.
9425 (vax_extract_struct_value_address): Ditto.
9426 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9427 vax_store_struct_return.
9428 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9429 (STORE_RETURN_VALUE): Use vax_store_return_value.
9430 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9432 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9434 * vax-tdep.c (vax_frame_saved_pc): New function.
9435 (vax_frame_args_address_correct): Ditto.
9436 (vax_frame_args_address): Ditto.
9437 (vax_frame_locals_address): Ditto.
9438 (vax_frame_num_args): Move code to be in proximity to
9439 other frame-related functions.
9440 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9441 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9442 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9443 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9444 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9446 2002-04-22 H.J. Lu (hjl@gnu.org)
9448 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9451 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9453 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9454 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9455 (FRAME_INIT_SAVED_REGS): New macro.
9457 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9459 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9461 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9463 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9465 (fetch_osf_core_registers): Likewise.
9466 (supply_gregset): Likewise.
9468 2002-04-22 J. Brobecker <brobecker@gnat.com>
9470 * symfile.h (get_section_index): Define.
9471 * symfile.c (get_section_index): New function.
9472 * mdebugread.c (SC_IS_SBSS): New macro.
9473 (SC_IS_BSS): Return true for the scBss storage class only, as
9474 the scSBss storage class refers to the .sbss section.
9475 (parse_partial_symbols): Discard the symbols which associated
9476 section does not exist.
9477 Make sure to use the .sbss section index for symbols which
9478 storage class is scBss, rather than using the .bss section index.
9480 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9482 * vax-tdep.c: Update copyright years.
9483 (vax_register_name): New function.
9484 (vax_register_byte): Ditto.
9485 (vax_register_raw_size): Ditto.
9486 (vax_register_virtual_size): Ditto.
9487 (vax_register_virtual_type): Ditto.
9488 * config/vax/tm-vax.h: Update copyright years.
9489 (REGISTER_NAMES): Remove.
9490 (REGISTER_NAME): Define.
9491 (REGISTER_BYTE): Use vax_register_byte.
9492 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9493 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9494 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9496 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9498 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9500 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9502 2002-04-21 David S. Miller <davem@redhat.com>
9504 * arch-utils.c (generic_prologue_frameless_p): Kill
9505 SKIP_PROLOGUE_FRAMELESS_P code.
9506 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9508 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9509 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9510 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9512 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9513 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9514 (sparc_gdbarch_init): Pass it to
9515 set_gdbarch_prologue_frameless_p.
9517 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9519 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9520 (alphabsd-nat.o): New dependency list.
9522 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9524 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9526 (alpha-linux-tdep.o): New dependency list.
9527 (alphafbsd-tdep.o): Likewise.
9529 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9531 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9533 * alpha-tdep.c: ...from here.
9534 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9536 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9538 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9539 prototype from here...
9540 * alpha-tdep.h: ...to here.
9542 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9544 * frame.h (selected_frame_level): Document as deprecated.
9545 (frame_relative_level): Declare.
9546 * stack.c (frame_relative_level): New function.
9547 (selected_frame_level): Document as deprecated.
9548 (select_frame): Do not set the selected_frame_level.
9550 * stack.c (frame_info, record_selected_frame): Update.
9551 (frame_command, current_frame_command): Update.
9552 (up_silently_base, up_command, down_silently_base): Update.
9553 (down_command): Update.
9554 * inflow.c (kill_command): Update.
9555 * tracepoint.c (finish_tfind_command): Update.
9556 * corelow.c (core_open): Update.
9557 * thread.c (info_threads_command): Update.
9558 (do_captured_thread_select): Update.
9559 * infcmd.c (finish_command): Update.
9560 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9562 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9564 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9566 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9568 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9571 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9573 * alphafbsd-tdep.c: Update copyright years. Include
9575 (alphafbsd_use_struct_convention): Make static.
9576 (alphafbsd_init_abi): New function.
9577 (_initialize_alphafbsd_tdep): New function.
9578 * config/alpha/tm-fbsd.h: Update copyright years.
9579 (USE_STRUCT_CONVENTION): Remove.
9581 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9583 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9584 an Alpha ABI variant.
9585 (alpha_abi_handler_list): Declare.
9586 (alpha_gdbarch_register_os_abi): New function.
9587 (alpha_gdbarch_init): Give registered ABI variant handlers a
9588 chance to tweak the gdbarch once we have set up defaults.
9589 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9591 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9593 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9594 to standard_coerce_float_to_double.
9595 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9597 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9599 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9600 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9601 from gdbarch_tdep rather than a constant.
9602 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9603 the default text address for all Alpha Unix ABIs.
9604 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9605 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9607 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9609 * alpha-tdep.h: New file. Includes several Alpha target constants
9611 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9612 let gdbarch deal with.
9613 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9614 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9616 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9617 Alpha target register names.
9618 * alphabsd-nat.c: Likewise.
9619 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9620 Alpha target register names. Make serveral routines static.
9621 (alpha_get_saved_register): New function.
9622 (alpha_abi_names): New.
9623 (process_note_abi_tag_sections): New function.
9624 (get_elfosabi): New function.
9625 (alpha_gdbarch_init): New function.
9626 (alpha_dump_tdep): New function.
9627 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9629 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9631 * frame.c (find_saved_register): Delete #ifdef
9632 HAVE_REGISTER_WINDOWS code.
9633 * config/sparc/tm-sparc.h: Update comments.
9634 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9636 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9638 * i960-tdep.c (i960_find_saved_register): New function.
9639 (i960_get_saved_register): New function.
9640 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9641 (i960_get_saved_register): Declare.
9642 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9644 2002-04-20 David S. Miller <davem@redhat.com>
9646 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9648 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9650 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9651 instead of NUM_PSEUDO_REGS.
9653 2002-04-20 David S. Miller <davem@redhat.com>
9655 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9656 GDB_MULTI_ARCH_PARTIAL
9657 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9658 define, let tm-sp64.h do it.
9660 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9662 * frame.c (find_saved_register): Avoid a NULL pointer
9663 dereference and actually walk the frame list.
9665 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9667 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9668 sorted in most most-recent-used order. Document.
9669 * gdbarch.h, gdbarch.c: Regenerate.
9671 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9673 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9675 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9676 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9677 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9680 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9683 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9684 (build_builtin_type_vec128): Ditto.
9685 (append_composite_type_field): Fix calculation of type length in
9688 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9690 * config/djgpp/README: Update.
9692 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9695 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9697 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9698 (alpha_setup_arbitrary_frame): ...to this.
9699 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9700 for alpha_setup_arbitrary_frame.
9702 2002-04-18 Andrew Cagney <cagney@redhat.com>
9704 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9705 * gdbarch.h, gdbarch.c: Regenerate.
9707 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9708 * target.h (memory_breakpoint_from_pc): Update declaration.
9709 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9711 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9712 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9713 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9714 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9715 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9716 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9717 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9718 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9719 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9720 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9721 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9722 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9724 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9726 * monitor.c (monitor_insert_breakpoint): Ditto.
9727 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9729 * config/mcore/tm-mcore.h: Update copyright.
9730 * mem-break.c: Ditto.
9731 * xstormy16-tdep.c: Ditto.
9733 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9735 * p-exp.y: Add precedence rule for '^' token.
9736 This removes the shift/reduce conflicts.
9737 Remove the comment concerning these shift/reduce conflicts.
9739 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9741 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9742 (registers_powerpc_nofp): New register set for processors
9743 without floating point unit.
9745 2002-04-18 David S. Miller <davem@redhat.com>
9747 * MAINTAINERS: Add myself to write-after-approval.
9749 2002-04-17 Michael Snyder <msnyder@redhat.com>
9751 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9753 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9755 * rs6000-tdep.c (frame_initial_stack_address): Use
9756 frame_register_read to read the alloca_reg.
9758 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9760 * frame.c (find_saved_register): Find saved registers in the next
9764 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9766 * gdbarch.sh (LANG): Set to ``c''.
9768 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9770 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9772 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9774 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9777 * hpread.c (hpread_get_lntt): Add declaration.
9778 Also fix PR gdb/391.
9780 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9782 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9783 * aclocal.m4, configure: Re-generate.
9786 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9788 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9789 instead of tm_print_insn.
9791 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9793 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9795 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9797 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9798 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9799 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9801 2002-04-12 Don Howard <dhoward@redhat.com>
9803 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9804 max_user_call_depth.
9805 (init_cmd_lists): Initialize the new value;
9806 * cli/cli-script.c (execute_user_command): Limit the call depth of
9807 user defined commands. This avoids a core-dump when user commands
9808 are infinitly recursive.
9810 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9812 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9813 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9814 from tdep struct instead of DEFAULT_LR_SAVE.
9815 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9816 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9817 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9819 2002-04-12 Michael Snyder <msnyder@redhat.com>
9821 * Remote.c: Spelling fix.
9822 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9823 If no symbol found for "sbrk", try "_sbrk".
9824 (make_output_phdrs): Use bfd_section_name.
9825 (gcore_copy_callback): Use bfd_section_name.
9826 * eval.c: Indentation fix-ups.
9827 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9828 in case it gets applied to an address that is already
9829 in the instruction space.
9830 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9831 * symfile.c: Fix indentation, long lines.
9832 * source.c: White space fix-up.
9834 2002-04-12 Andrew Cagney <cagney@redhat.com>
9836 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9837 * frame.c (frame_register_read): New function. Return non-zero on
9839 (read_relative_register_raw_bytes_for_frame): Delete.
9840 (read_relative_register_raw_bytes): Delete.
9841 * frame.h (frame_register_read): Declare.
9842 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9844 * infcmd.c (do_registers_info): Ditto.
9845 * hppa-tdep.c: Ditto.
9846 * rs6000-tdep.c: Ditto.
9847 * h8500-tdep.c: Ditto.
9848 * mips-tdep.c: Ditto.
9849 * h8300-tdep.c: Ditto.
9850 * z8k-tdep.c: Ditto.
9852 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9854 From Jimi X <jimix@watson.ibm.com>:
9855 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9858 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9860 From Jimi X <jimix@watson.ibm.com>:
9861 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9864 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9866 From Jimi X <jimix@watson.ibm.com>:
9867 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9868 register sets for these processor variants.
9870 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9872 * regformats/reg-ppc.dat: Support FPSCR.
9874 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9876 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9877 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9878 Add fpscr as an invalid/unfetchable register.
9879 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9880 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9881 (fill_fpregset): Add support for register fpscr.
9882 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9883 (fill_gregset): Account for the fact that register ``mq'' might
9885 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9886 (registers_power): Add fpscr to register set at slot 71.
9887 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9888 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9890 2002-04-11 Michael Snyder <msnyder@redhat.com>
9892 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9893 * configure: Regenerate.
9894 * config.in: Regenerate.
9895 * acconfig.h: Add define for _SYSCALL32.
9896 * core-sol2.c: Remove #define _SYSCALL32.
9897 * solib-legacy.c: Remove #define _SYSCALL32.
9899 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9901 * stack.c (select_frame): Cleanup internal error message, do not
9904 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9906 * stack.c (select_frame): Check that selected_frame and the
9907 specified level are as expected.
9908 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9910 * frame.h (struct frame_info): Add field `level'. Update
9912 Work-in-progress PR gdb/464.
9914 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9916 * maint.c (maint_print_section_info): Rename print_section_info.
9917 (print_bfd_section_info, print_objfile_section_info): Update.
9918 * inferior.h (struct gdbarch): Add opaque declaration.
9919 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9920 * gdbarch.h: Regenerate.
9922 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9924 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9925 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9926 (kernel_u_size): Added.
9927 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9928 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9930 2002-04-04 Jim Ingham <jingham@apple.com>
9932 * valarith.c (find_size_for_pointer_math): New function, either returns
9933 the size for a pointer's target, returns 1 for void *, or errors for
9935 (value_add, value_sub): use find_size_for_pointer_math.
9937 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9939 * linux-low.c (linux_look_up_symbols): New hook.
9940 (linux_target_ops): Add linux_look_up_symbols.
9941 * remote-utils.c (decode_address): New function.
9942 (look_up_one_symbol): New function.
9943 * server.c (handle_query): Call target look_up_symbols hook.
9944 * server.h (look_up_one_symbol): Add prototype.
9945 * target.h (struct target_ops): Add look_up_symbols hook.
9947 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9949 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9950 override FP_REGNUM with frame->fp. Update copyright.
9951 * parse.c (num_std_regs, std_regs): Delete.
9952 (target_map_name_to_register): Do not search std_regs. Update
9953 function description.
9954 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9955 declarations. Update copyright.
9958 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9960 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9961 after the last symbol in a block.
9963 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9965 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9966 is non zero as a found symbol.
9968 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9970 * findvar.c: Include "builtin-regs.h".
9971 (value_of_register): Call value_of_builtin_reg when applicable.
9972 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9973 (target_map_name_to_register): Call
9974 builtin_reg_map_name_to_regnum.
9975 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9976 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9977 (builtin_regs_h): Define.
9978 (builtin-regs.o): New target.
9979 (findvar.o): Add $(builtin_regs_h).
9980 * builtin-regs.c, builtin-regs.h: New files.
9981 * std-regs.c: New file.
9982 Partial fix for PR gdb/251.
9984 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9986 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9987 it's no longer required.
9989 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9991 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9993 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9995 From Jimi X <jimix@watson.ibm.com>:
9996 * rs6000-tdep.c (rs6000_software_single_step): Use
9997 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9998 and size. Use target_insert_breakpoint() and
9999 target_remove_breakpoint() to insert and remove breakpoints
10000 instead of explicit memory reads and writes.
10002 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10004 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10005 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10006 ELF_OBJECT_FORMAT ifdef.
10008 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10010 From Jimi X <jimix@watson.ibm.com>:
10011 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10013 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10015 From Jimi X <jimix@watson.ibm.com>:
10016 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10017 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10019 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10021 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10022 s/asprintf/xasprintf/.
10023 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10025 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10027 I believe Jeff Law denies responsability for this one:
10028 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10029 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10030 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10031 Work-around for PR gdb/366.
10033 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10035 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10036 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10037 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10039 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10041 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10042 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10045 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10047 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10050 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10052 * README (Reporting Bugs in GDB): Document the bug web page as the
10053 prefered way of submitting bugs.
10056 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10058 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10059 -1. Update comment.
10060 * gdbarch.h, gdbarch.c: Re-generate.
10062 2002-04-07 Andreas Schwab <schwab@suse.de>
10064 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10065 buffer to regcache_collect.
10067 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10069 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10070 * gdbarch.c, gdbarch.h: Re-generate.
10072 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10074 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10075 declaration. Fix -Werror.
10077 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10079 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10080 * gdbarch.c: Regenerate.
10082 2002-04-05 Michael Snyder <msnyder@redhat.com>
10084 * breakpoint.c (clear_command): Rewrite middle section to
10085 combine two loops with identical control conditions.
10086 Add a cleanup to eliminate a memory leak.
10087 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10089 2002-04-05 H.J. Lu (hjl@gnu.org)
10091 * solib-svr4.c (bkpt_names): Add "__start".
10093 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10095 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10096 as test for 64 bit target.
10098 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10100 * h8500-tdep.c (h8500_write_fp): Delete function.
10101 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10102 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10103 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10104 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10105 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10106 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10108 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10109 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10110 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10111 (d10v_write_fp): Delete function.
10112 * inferior.h (write_fp, generic_target_write_fp): Delete
10114 * regcache.c (generic_target_write_fp): Delete function.
10115 (write_fp): Delete function.
10116 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10117 * gdbarch.h, gdbarch.c: Regenerate.
10118 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10119 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10120 (sparc64_write_fp): Delete declaration.
10121 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10122 (h8500_write_fp): Delete declaration.
10124 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10126 * sparc-tdep.c (sparc64_write_fp): Delete.
10127 (sparc_push_dummy_frame): Replace write_fp call with code to store
10129 (sparc_gdbarch_init): Do not initialize write_fp.
10131 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10133 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10136 2002-03-29 Jim Blandy <jimb@redhat.com>
10138 * stack.c (get_selected_block): Add new argument `addr_in_block',
10139 used to return the exact code address we used to select the block,
10140 not just the block.
10141 * blockframe.c (get_frame_block, get_current_block): Same.
10142 * frame.h (get_frame_block, get_current_block,
10143 get_selected_block): Update declarations.
10144 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10145 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10147 2002-04-05 Michael Snyder <msnyder@redhat.com>
10149 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10152 2002-04-05 J. Brobecker <brobecker@gnat.com>
10154 * utils.c (xfullpath): New function.
10155 * defs.h (xfullpath): Add declaration.
10156 * source.c (openp): Use xfullpath in place of gdb_realpath to
10157 avoid resolving the basename part of filenames when the
10158 associated file is a symbolic link. This fixes a potential
10159 inconsistency between the filenames known to GDB and the
10160 filenames it prints in the annotations.
10161 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10162 to be able to match a filename with either the real filename, or
10163 the name of any symbolic link to this file.
10164 (lookup_partial_symtab): Ditto.
10166 2002-04-04 Michael Snyder <msnyder@redhat.com>
10168 * breakpoint.c: Add support for hardware breakpoints in overlays.
10169 (overlay_events_enabled): New state variable.
10170 (insert_breakpoints): Use overlay_events_enabled to decide
10171 whether to attempt to set a breakpoint at the overlay load addr.
10172 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10173 (remove_breakpoint): Use overlay_events_enabled to decide
10174 whether breakpoints need to be removed from overlay load addr.
10175 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10176 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10177 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10178 disable_overlay_breakpoints): Update overlay_events_enabled.
10180 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10182 * dwarf2read.c (struct function_range): New.
10183 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10184 (check_cu_functions): New.
10185 (read_file_scope): Initialize global function lists.
10186 Call dwarf_decode_line after processing children.
10187 (read_func_scope): Add to global function list.
10188 (dwarf_decode_lines): Call check_cu_functions everywhere
10189 record_line is called. Call record_line with a linenumber
10190 of 0 to mark sequence ends.
10192 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10194 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10195 change sync with glibc.
10197 2002-04-03 Jim Blandy <jimb@redhat.com>
10199 * configure.in: Call AC_C_INLINE.
10200 * configure: Regenerated.
10202 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10204 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10205 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10207 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10209 * NEWS: Mention gcore support on FreeBSD/i386.
10211 * fbsd-proc.c: New file.
10212 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10213 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10215 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10218 2002-03-29 Jim Blandy <jimb@redhat.com>
10220 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10221 unescaped newlines in string literals, but newer ones don't. So
10224 2002-03-26 Michael Snyder <msnyder@redhat.com>
10225 Andrew Cagney <cagney@redhat.com>
10227 * cli/cli-dump.c: New file. Dump memory to file,
10228 restore file to memory.
10229 * cli/cli-dump.h: New file.
10230 * Makefile.in: Add rules, dependencies for cli-dump.o.
10231 * NEWS: Mention new commands.
10233 2002-03-28 Michael Snyder <msnyder@redhat.com>
10235 * symfile.c (symbol_file_add): Move test for null symbols to later.
10237 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10239 From veksler at il.ibm.com:
10240 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10241 the xstrduped original path.
10244 2002-03-27 Michael Snyder <msnyder@redhat.com>
10246 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10247 * infcmd.c (_initialize_infcmd): Ditto.
10248 * language.c (_initialize_language): Ditto.
10249 * symfile.c (_initialize_symfile): Ditto.
10250 * top.c (_init_main): Ditto.
10251 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10253 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10255 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10256 vector registers handling.
10257 (skip_prologue): Handle new AltiVec instructions. Fill in new
10258 fields of frame data.
10259 (frame_get_saved_regs): Fill in information for AltiVec registers.
10261 2002-03-27 Jim Blandy <jimb@redhat.com>
10263 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10264 a function; leave this macro here to invoke that function.
10265 (symbol_init_mangled_name): Declaration for that function.
10266 * symtab.c (symbol_init_mangled_name): New function.
10268 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10270 * valarith.c: Replace strerror with safe_strerror.
10271 * tracepoint.c: Ditto.
10272 * lin-lwp.c: Ditto.
10273 * go32-nat.c: Ditto.
10275 * gnu-nat.c: Ditto.
10277 2002-03-27 Andreas Schwab <schwab@suse.de>
10279 * event-top.c (command_line_handler): Remove useless if.
10281 2002-03-27 Andreas Jaeger <aj@suse.de>
10283 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10286 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10288 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10289 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10290 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10291 (x86_64_linux_dr_get_status, supply_gregset),
10292 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10293 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10294 (x86_64_register_info_table): Add.
10295 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10296 (x86_64_register_raw_size, x86_64_register_virtual_type),
10297 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10298 general x86_64_register_info_table.
10299 (i386_gdbarch_init): gdbarch_register_bytes is now set
10300 dynamicaly during initialization.
10301 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10302 * gdbserver/linux-x86-64-low.c: Ditto.
10304 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10306 * gdbserver/server.c (main): Call target_signal_to_host_p
10307 and target_signal_to_host on signals received from the remote.
10308 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10309 target_signal_from_host on signals sent to the remote.
10310 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10311 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10313 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10315 * signals/signals.c: Include "server.h" in gdbserver build.
10316 (target_signal_from_name): Don't use STREQ.
10317 (_initialize_signals): Likewise. Don't include function in
10320 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10322 * signals.c: Moved to...
10323 * signals/signals.c: Here.
10324 * Makefile (signals.o): Update.
10326 2002-03-26 Jeff Law (law@redhat.com)
10328 * somread.c (som_symtab_read): Remove some commented out code and
10329 updated related comments. Do not set the minimal symbol table to
10330 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10331 in a dynamic executable.
10332 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10333 where we are unable to find the minimal symbol for the given
10336 2002-03-25 Jeff Law (law@redhat.com)
10338 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10340 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10342 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10344 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10346 * command.h: Update copyright.
10347 (struct cmd_list_element): Replace definition with opaque
10349 (enum cmd_types): Document that it will eventually be moved to
10351 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10352 (MALLOCED_REPLACEMENT): Delete macro.
10353 * Makefile.in (cli_decode_h): Add $(command_h).
10354 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10355 * top.c: Include "cli/cli-decode.h".
10356 * completer.c: Include "cli/cli-decode.h".
10357 * maint.c: Include "cli/cli-decode.h".
10358 * cli/cli-decode.h: Include "command.h".
10359 (enum command_class): Delete.
10360 (enum cmd_types): Comment out.
10361 (enum cmd_auto_boolean): Delete.
10362 (enum var_types): Delete.
10364 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10366 * cli/cli-decode.c: Include "gdb_assert.h".
10367 (add_set_or_show_cmd): New static function.
10368 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10369 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10370 all fields, such as func, from the set command.
10372 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10374 * MAINTAINERS (sh-elf): Change warning flag to -w.
10376 2002-03-23 Andrew Cagney <cagney@redhat.com>
10378 * defs.h (error): Add printf format attribute.
10379 * thread-db.c (thread_from_lwp): Fix error format string.
10380 * stack.c (parse_frame_specification): Ditto.
10381 * cli/cli-decode.c (undef_cmd_error): Ditto.
10382 * scm-lang.c (scm_lookup_name): Ditto.
10383 * tracepoint.c (trace_error): Ditto.
10384 * remote-utils.c (usage): Ditto.
10385 * remote.c (compare_sections_command): Ditto.
10388 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10390 * gdbtypes.c (append_composite_type_field): New function.
10391 (init_composite_type): New function.
10392 * gdbtypes.h (append_composite_type_field): Declare.
10393 (init_composite_type): Ditto.
10395 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10397 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10399 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10400 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10401 structure returning convention for SYSV ABI case, but not
10402 for GNU/Linux, FreeBSD, or NetBSD.
10404 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10406 * symtab.h (lookup_block_symbol): Add mangled_name argument
10409 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10410 with new mangled_name argument.
10411 * linespec.c (decode_line_1): Likewise.
10412 * valops (value_of_this): Likewise.
10413 * symtab.c (lookup_transparent_type): Likewise.
10414 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10415 (lookup_symbol): If we are given a mangled name, pass it down
10416 to lookup_symbol_aux.
10417 (lookup_block_symbol): If we are given a mangled name to check
10418 against, only return symbols which match it.
10420 2002-03-22 Christopher Faylor <cgf@redhat.com>
10422 * win32-nat.c (child_create_inferior): Check for proper shell to use
10423 here, in case the user changes it on the fly.
10424 (_initialize_inftarg): Remove shell path considerations.
10426 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10428 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10429 for gdbarch_max_register_raw_size and max_register_virtual_size.
10430 Adjust copyright year.
10432 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10434 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10435 in a function to cover the entire beginning of the function
10436 as well if it does not already.
10438 2002-03-21 Tom Rix <trix@redhat.com>
10440 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10441 (rs6000_ptrace64): Renamed from ptrace64.
10443 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10445 * gdbserver/remote-utils.c (remote_open): Don't call
10446 getprotobyname, we're all using TCP here so just use
10448 * gdbserver/gdbreplay.c (remote_open): Ditto.
10450 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10452 * regcache.c (_initialize_regcache): No need to call
10453 build_regcache() at this time; it gets called whenever
10454 the gdbarch changes.
10456 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10458 * sparc-nat.c: Include sys/param.h where possible.
10460 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10463 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10464 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10465 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10467 * stabsread.c (rs6000_builtin_type): Likewise.
10468 (read_sun_floating_type): Likewise.
10470 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10472 * stabsread.c (read_member_functions): Remove skip code for duplicate
10473 constructor/destructor methods. Use standard parsing for these
10474 methods and just do not chain them to the list of methods after
10477 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10479 * coffread.c: Remove redundant static declarations. Replace
10480 occurrences of `PTR' with `void *'.
10481 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10482 * top.h (quit_cover): Likewise.
10483 * defs.h (catch_errors): Likewise.
10485 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10487 * defs.h (XMALLOC): Define.
10488 * gdb-events.sh (XMALLOC): Delete macro.
10489 * gdb-events.c, gdb-events.h: Regenerate.
10490 * gdbarch.sh (XMALLOC): Delete macro.
10491 * gdbarch.c: Regenerate.
10492 * serial.c (XMALLOC): Delete macro.
10493 * ui-file.c (XMALLOC): Ditto.
10494 * ser-unix.h (XMALLOC): Ditto.
10495 * sh-tdep.c (XMALLOC): Ditto.
10496 * ui-out.c (XMALLOC): Ditto.
10497 * utils.c (XMALLOC): Ditto.
10498 * i386-tdep.c (XMALLOC): Ditto.
10499 * gdb-events.c (XMALLOC): Ditto.
10500 * d10v-tdep.c (XMALLOC): Ditto.
10501 * cli-out.c (XMALLOC): Ditto.
10503 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10504 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10505 * ui-file.c, ui-out.c: Ditto.
10507 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10509 * command.h (struct cmd_list_element): Add field context.
10510 (set_cmd_context, get_cmd_context): Declare.
10511 * cli/cli-decode.h: Ditto.
10512 * cli/cli-decode.c (get_cmd_context): New function.
10513 (set_cmd_context): New function.
10514 (add_cmd): Initialize context.
10515 Part of fixing PR gdb/145 and PR gdb/146.
10517 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10519 * cli/cli-decode.c (cmd_type): New function.
10520 * command.h (cmd_type): Declare.
10521 * infrun.c (set_schedlock_func): Call function cmd_type.
10522 * kod.c (kod_set_os): Call cmd_type.
10523 * cris-tdep.c (cris_version_update): Use function cmd_type.
10524 (cris_mode_update, cris_abi_update): Ditto.
10526 * command.h: (execute_cmd_post_hook): Declare.
10527 (execute_cmd_pre_hook): Declare.
10528 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10529 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10530 functions. Execute pre/post hook while ensuring that afterwords
10531 hook_in is cleared.
10532 * top.c (execute_command): Use execute_cmd_post_hook, and
10533 execute_cmd_pre_hook to execute pre/post commands.
10534 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10536 (hook_stop_stub): Call execute_cmd_pre_hook.
10538 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10540 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10541 set'' and this leads to a core dump. Move xstrdup of
10542 operating_system to after check that it is not NULL.
10544 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10546 * kod.c (kod_set_os): Remove unnecessary check that
10547 ``command->type'' is set_cmd.
10549 * valprint.c (set_input_radix): Use input_radix.
10550 (set_output_radix): Use output_radix.
10551 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10554 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10556 * value.h (struct value): Delete field ``substring_addr''. Change
10557 aligner fields to force_doublest_align, force_longest_align,
10558 force_core_addr_align and force_pointer_aligh.
10560 * value.h (struct value): Fix typo in above change.
10562 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10564 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10565 to fix internal_error from ``maintenance print architecture''.
10567 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10569 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10570 for gcc versions after gcc-2.8.1.
10572 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10574 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10575 for method resolution. Restore adjustment of ``this'' pointer after
10576 calling value_struct_elt, which was accidentally removed during the
10579 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10581 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10583 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10584 get_saved_register.
10585 * value.h (value_of_register): Update.
10587 2002-03-14 Richard Henderson <rth@redhat.com>
10589 * configure.in: Detect declaration for canonicalize_file_name.
10590 * utils.c (canonicalize_file_name): Declare, if needed.
10591 (gdb_realpath): Prefer realpath if available and usable.
10592 * config.in, configure: Rebuild.
10594 2002-03-14 Richard Henderson <rth@redhat.com>
10596 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10597 a constant array bound.
10599 * MAINTAINERS: Add myself to write-after-approval.
10601 2002-03-14 Michael Snyder <msnyder@redhat.com>
10603 * symfile.c (syms_from_objfile): Return immediately if no syms.
10604 (symbol_file_add): Return immediately if no syms.
10605 (find_sym_fns): Return immediately if no syms.
10607 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10609 * gdbserver/remote-util.c (remote_open): Print remote-side's
10610 IP address when remote debugging over the network.
10612 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10614 * config/sparc/fbsd.mh: Fix copyright.
10615 * config/sparc/fbsd.mt: Likewise.
10617 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10619 * MAINTAINERS: Fix typo in name of gdb warnings option.
10620 (x86-64): Fix formating so that this can be parsed by awk.
10622 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10624 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10625 * defs.h: Include "gdb/signals.h".
10626 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10628 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10630 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10631 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10634 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10635 Don Howard <dhoward@redhat.com>
10637 * mips-tdep.c (ST0_FR): Define.
10638 (mips2_fp_compat): New function, temporarily disabled.
10639 (mips_read_fp_register_single): New function.
10640 (mips_read_fp_register_double): New function.
10641 (mips_print_register): Use them.
10642 (do_fp_register_row): Likewise.
10644 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10646 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10649 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10651 * stabsread.c (read_member_functions): Fix is_stub test for
10652 static member functions, improve comment.
10654 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10656 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10657 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10658 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10659 commands that set boolean values.
10660 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10661 (arm_rdi_resume): Always initialize PC.
10662 (arm_rdi_open): Don't use rslt as a boolean.
10663 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10664 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10665 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10666 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10668 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10670 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10671 * configure: Rebuilt.
10673 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10675 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10676 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10678 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10680 * cli/cli-decode.c (set_cmd_completer): New function.
10681 * command.h (set_cmd_completer): Declare.
10682 * cli/cli-decode.h (set_cmd_completer): Ditto.
10684 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10685 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10686 * win32-nat.c (_initialize_inftarg): Ditto.
10687 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10688 * proc-api.c (_initialize_proc_api): Ditto.
10689 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10690 * source.c (_initialize_source): Ditto.
10691 * exec.c (_initialize_exec): Ditto.
10692 * solib.c (_initialize_solib): Ditto.
10693 * top.c (init_main): Ditto.
10694 * tracepoint.c (_initialize_tracepoint): Ditto.
10695 * symfile.c (_initialize_symfile): Ditto.
10696 * printcmd.c (_initialize_printcmd): Ditto.
10697 * infcmd.c (_initialize_infcmd): Ditto.
10698 * corefile.c (_initialize_core): Ditto.
10700 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10702 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10704 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10706 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10708 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10710 * NEWS: Update headings, 5.2 has branched.
10712 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10714 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10715 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10716 (register_addr, REGISTER_RAW_SIZE): Likewise.
10717 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10718 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10720 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10722 * MAINTAINERS (x86-64): Add myself.
10723 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10724 changed value_ptr -> struct value *
10726 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10728 * configure.host (sparc64-*-freebsd): Add.
10729 * configure.tgt: Likewise.
10730 * config/sparc/fbsd.mh: New file.
10731 * config/sparc/fbsd.mt: Likewise.
10732 * config/sparc/nm-fbsd.h: Likewise.
10733 * config/sparc/tm-fbsd.h: Likewise.
10735 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10737 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10738 regformats/reg-s390x.dat.
10740 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10742 * utils.c: Add FIXME explaining true/false problem.
10744 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10746 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10748 2002-02-28 Michael Chastain <mec@shout.net>
10750 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10752 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10754 * gdbserver/linux-s390-low.c: New file.
10755 * regformats/reg-s390.dat: New file.
10756 * regformats/reg-s390x.dat: New file.
10757 * gdbserver/configure.srv: Add S/390.
10758 * gdbserver/Makefile.in: Add S/390.
10759 * configure.tgt: Enable gdbserver for S/390.
10761 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10763 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10764 first line of the doc string for "info dos", except at the end of
10765 the sentence, since the short help stops at the first period.
10767 2002-02-28 Jason Merrill <jason@redhat.com>
10769 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10771 2002-02-27 Fred Fish <fnf@redhat.com>
10773 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10774 comment (dumy -> dummy).
10776 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10778 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10780 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10782 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10784 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10786 * gdbserver/acconfig.h: New file.
10787 * gdbserver/i387-fp.c: New file.
10788 * gdbserver/i387-fp.h: New file.
10789 * gdbserver/linux-x86-64.c: New file.
10790 * regformats/reg-x86-64.dat: New file.
10791 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10792 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10793 * gdbserver/configure.in: Add support for regsets.
10794 * gdbserver/config.in: Regenerate.
10795 * gdbserver/configure: Regenerate.
10796 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10797 * gdbserver/linux-low.h: New file.
10798 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10800 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10801 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10802 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10803 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10804 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10805 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10806 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10807 "i387-fp.h". Add PTRACE_GETREGS and friends.
10808 * gdbserver/regcache.c (supply_register): New function.
10809 (supply_register_by_name): New function.
10810 (collect_register): New function.
10811 (collect_register_by_name): New function.
10813 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10815 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10816 (config.status): Add configure.srv dependency.
10817 (server_h): Add config.h dependency.
10819 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10821 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10822 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10823 * gdbserver/configure.srv: Change i386-*-linux* to use
10826 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10828 * x86-64-tdep.c: Re-indent. Update copyright date.
10830 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10832 From Michal Ludvig <mludvig@suse.cz>:
10833 * x86-64-tdep.c (value.h): Delete.
10834 (gdb_assert.h): Include.
10835 (x86_64_register_convert_to_virtual,
10836 x86_64_register_convert_to_raw ): Add check which lets only
10837 floating-point values to be converted.
10838 (value_push): Delete.
10839 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10840 (i386_gdbarch_init): Number of register_bytes fixed.
10842 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10844 * MAINTAINERS: Add x86-64 target.
10846 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10848 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10849 * osfsolib.c (solib_map_sections): Ditto.
10850 * irix5-nat.c (solib_map_sections): Ditto.
10851 * corelow.c (gdb_check_format): Ditto.
10852 * symfile.c (symfile_bfd_open): Ditto.
10853 * solib.c (solib_map_sections): Ditto.
10856 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10858 * remote.c (_initialize_remote): By default, disable ``e'' and
10859 ``E'' step out-of-range packets.
10861 2002-02-26 Andreas Schwab <schwab@suse.de>
10863 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10864 m68k_linux_frame_saved_pc.
10865 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10867 (SIGCONTEXT_PC_OFFSET): Remove.
10868 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10869 m68k_linux_sigtramp_saved_pc): New functions.
10870 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10871 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10872 (UCONTEXT_PC_OFFSET): Define.
10873 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10874 non-RT and RT signal trampolines.
10876 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10878 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10879 (TARGET_NBPG, STACK_END_ADDR): Delete
10880 (VARIABLES_INSIDE_BLOCK): Delete.
10882 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10884 * utils.c (perror_with_name): Make string parameter constant.
10885 (print_sys_errmsg): Ditto.
10887 * defs.h (perror_with_name): Update.
10888 (print_sys_errmsg): Update.
10891 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10893 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10894 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10896 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10898 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10899 if it already matches the current architecture from the exec file.
10900 Include arch-utils.h for gdbarch_info_init prototype.
10901 * Makefile.in (rs6000-nat.o): Update dependencies.
10903 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10905 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10906 list of exported variables.
10908 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10910 * gdbserver/configure.srv: New file.
10911 * gdbserver/configure.in: Use configure.srv instead
10912 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10914 * gdbserver/configure: Regenerated.
10915 * gdbserver/terminal.h: New file.
10916 * gdbserver/Makefile.in: Update for configure changes. Remove
10917 more unneeded include paths.
10919 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10921 From wiz at danbala:
10922 * config/sparc/tm-sp64.h: Fix grammar and typos.
10925 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10927 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10928 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10929 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10930 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10931 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10932 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10933 * s390-tdep.c: Ditto.
10934 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10935 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10936 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10937 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10938 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10939 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10940 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10941 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10942 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10943 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10946 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10948 * lin-thread.c: Delete file.
10949 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10950 to gdb_proc_service.h.
10951 * configure: Re-generate.
10953 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10954 * serial.c (serial_open): Delete check for "ocd".
10957 * Makefile.in (linux-thread.o): Delete target.
10958 * linux-thread.c: Delete file.
10960 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10961 renamed SH files to be consistent.
10963 * symtab.c (sort_search_symbols): Use xfree.
10965 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10967 * arm-linux-tdep.c (arm_linux_init_abi): Register
10968 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10969 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10970 definition with undef, since we don't want the sysvr4 definition.
10971 (SKIP_TRAMPOLINE_CODE): Likewise.
10973 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10975 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10977 * configure.in: (AC_CHECK_FUNCS) Added test for
10978 canonicalize_file_name Regenerated.
10979 * config.in, configure: Regenerated.
10980 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10981 defined use canonicalize_file_name.
10983 2002-02-23 Michael Chastain <mec@shout.net>
10985 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10987 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10989 * README: Remove references to cygnus.com.
10990 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10991 dot com'' form. Remove references to cygnus.com and sourceware.
10993 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10995 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10996 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10997 1003.1-2001 no longer allows "head -1".
10998 * gdb/Makefile.in (version.c): Likewise.
10999 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11000 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11001 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11003 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11005 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11006 * command.h (cmd_cfunc_eq): Declare.
11007 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11009 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11010 ``struct cmd_list_element *''.
11011 * cli/cli-cmds.c (is_complete_command): Update. Use
11013 * top.c (execute_command): Pass the command to
11014 is_complete_command.
11015 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11017 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11019 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11020 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11021 architecture defines.
11022 * s390-tdep.c (s390_gdbarch_init): Likewise.
11024 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11026 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11027 (arm_linux_push_arguments): Likewise.
11028 (arm_linux_init_abi): Register them. Also register linux-specific
11030 (find_minsym_and_objfile): Use strcmp, not STREQ.
11031 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11032 (arm_linux_call_dummy_words): Delete declaration.
11033 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11034 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11036 (LOWEST_PC): Delete.
11038 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11040 * maint.c (print_section_info): Do not prepend `0x' to filepos
11041 output, it will be handled by local_hex_string_custom.
11043 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11045 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11046 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11047 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11049 2002-02-22 Jim Blandy <jimb@redhat.com>
11051 Indicate that the bcache functions don't change the strings
11053 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11054 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11056 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11058 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11060 2002-02-21 Christopher Faylor <cgf@redhat.com>
11062 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11063 find the complete path to a loaded DLL.
11065 2002-02-21 Fred Fish <fnf@redhat.com>
11067 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11068 that marks the end of the range of a function, enter a line number
11069 entry that has a line number of zero and a PC offset that matches
11070 the end of the function. This starts a range of PC's for which no
11071 line number information is known.
11072 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11073 PC's for which no line number info is found (line number is zero)
11074 then we didn't find any valid line information.
11075 * symtab.h: Document use of zero line number entry.
11077 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11079 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11080 (have_ptrace_getvrregs): Define for run time checks.
11081 (gdb_vrregset_t): New type for Altivec register handling.
11082 (fetch_register, store_register): Fetch/store altivec register
11084 (fetch_altivec_register, store_altivec_register): New functions.
11085 (supply_vrregset, fill_vrregset): New functions.
11086 (fetch_altivec_registers, store_altivec_registers): New functions.
11087 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11090 2002-02-21 Jiri Smid <smid@suse.cz>
11092 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11094 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11096 * Makefile.in (armnbsd-nat.o): Update dependencies.
11097 * armnbsd-nat.c (supply_gregset): New function. Common code to
11098 supply the integer register set.
11099 (supply_fparegset): New function. Similar for FPA registers.
11100 (fetch_regs, fetch_fp_regs): Use them.
11101 (fetch_core_registers): Likewise.
11102 (fetch_elfcore_registers): New function.
11103 (arm_netbsd_elfcore_fns): New core-file type specification.
11104 (_initialize_arm_netbsd_nat): Register it.
11106 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11108 * armnbsd-nat.c: Include gdbcore.h.
11109 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11110 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11111 'void' to declaration, to shut up ARI.
11112 (fetch_core_registers): Make static. Rewrite using supply_register.
11113 (arm_netbsd_core_fns): New core-file type specification.
11114 (_initialize_arm_netbsd_nat): New function.
11116 2002-02-21 Christopher Faylor <cgf@redhat.com>
11118 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11121 2002-02-20 Christopher Faylor <cgf@redhat.com>
11123 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11126 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11128 * jv-exp.y (parse_number): Change type of implicit longs
11129 to builtin_type_uint64.
11131 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11133 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11134 to be an integer instead of a `union wait'.
11136 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11138 * mips-linux-nat.c: Call the operating system GNU/Linux.
11139 * mips-linux-tdep.c: Likewise.
11140 * mips-tdep.c: Likewise.
11142 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11145 * jv-exp.y (parse_number): Handle 64-bit integers.
11147 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11149 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11150 AC_STDC_HEADERS to AC_HEADER_STDC.
11151 * gdbserver/configure: Regenerated.
11153 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11155 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11157 * sparc-tdep.c (get_longjmp_target): Likewise.
11159 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11161 * News: Add news about ARM and Multi-arch. Mention the new target
11164 2002-02-19 Jim Blandy <jimb@redhat.com>
11166 * stabsread.c (error_type_complaint): Improve error message.
11168 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11170 * gdbserver/README: Update documentation.
11171 * gdbserver/configure.in: Update configury to match documentation.
11172 * gdbserver/Makefile.in: Likewise.
11173 * gdbserver/configure: Regenerated.
11174 * gdbserver/aclocal.m4: New file, generated by aclocal.
11175 * gdbserver/config.in: New file, generated by autoheader.
11177 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11179 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11182 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11184 * arm-tdep.h (enum arm_float_model): New enum.
11185 (struct gdbarch_tdep): Add fp_model.
11186 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11187 up floating-point conversions until we know the floating-point model
11188 in use by the inferior. Don't complain about being unable to
11189 determine the ABI of the inferior when we don't have one.
11190 (arm_extract_return_value): Support different floating-point models.
11191 (arm_store_return_value): Likewise.
11192 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11194 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11196 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11198 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11199 of ``current_gdbarch''.
11201 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11203 * armnbsd-nat.c : ANSIfy all function declarations.
11204 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11205 (fetch_inferior_registers): Re-implement in terms of above.
11206 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11207 (store_inferior_registers): Re-implement in terms of above.
11209 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11211 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11213 * arm-linux-tdep.c: Likewise.
11214 * config/arm/tm-linux.h: Likewise.
11216 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11218 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11219 * config/arm/nbsd.mt (TM_FILE): Delete.
11220 * config/arm/tm-nbsd.h: Delete.
11222 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11224 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11225 Initialize CALL_DUMMY_LENGTH.
11227 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11229 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11231 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11232 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11233 defines one thing and that is incorrect for this port.
11234 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11236 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11238 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11240 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11242 * win32-nat.c (display_selector): New function. Displays information
11243 about the information returned by GetThreadSelectorEntry API function.
11244 (display_selectors): New function. Displays the infomation of
11245 the selector given as argument, or of CS, DS ans FS selectors
11246 if no argument is given.
11247 ( _initialize_inftarg): Add "w32" as info prefix command.
11248 Add "info w32 selector" as command calling display_selectors.
11250 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11252 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11253 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11256 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11258 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11260 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11262 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11263 (arm_fix_call_dummy): Call it.
11264 (arm_call_dummy_breakpoint_offset): Delete.
11265 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11266 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11268 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11270 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11271 Default to func_frame_chain_valid.
11272 * gdbarch.h, gdbarch.c: Re-generate.
11273 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11275 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11277 * ppc-linux-nat.c: Update copyright.
11278 (fetch_register, store_register): Add tid parameter, don't compute
11280 (fetch_ppc_registers, store_ppc_registers): Add tid
11281 parameter. Pass it along to callees.
11282 (fetch_inferior_registers, store_inferior_registers): Compute tid
11283 here, and pass it to calleed functions.
11284 (fill_gregset, supply_fpregset): Clean up formatting.
11286 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11288 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11289 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11291 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11293 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11294 * gdbarch.c gdbarch.h: Regenerate.
11295 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11297 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11298 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11299 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11301 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11302 * arm-tdep.c (arm_get_longjmp_target): New function.
11303 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11304 this to a positive value register arm_get_longjmp_target as the
11306 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11307 (arm_linux_init_abi): Set up longjmp description in tdep.
11308 * armnbsd-nat.c (get_longjmp_target): Delete.
11309 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11310 description in tdep.
11311 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11312 (get_longjmp_target): Delete declaration.
11313 (GET_LONGJMP_TARGET): Delete.
11314 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11315 (GET_LONGJMP_TARGET): Delete.
11317 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11319 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11320 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11321 of ``current_gdbarch''.
11323 2002-02-17 Tom Tromey <tromey@redhat.com>
11325 * cli/cli-cmds.c (compare_strings): New function.
11326 (complete_command): Only print each unique item once.
11327 * completer.h (complete_line): Declare.
11328 * completer.c (complete_line): New function.
11329 (line_completion_function): Use it.
11331 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11333 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11334 * gdbarch.h, gdbarch.c: Re-generate.
11336 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11338 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11340 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11342 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11343 * valops.c (value_arg_coerce): Don't take the address of a reference
11344 to convert an argument to a reference.
11346 2002-02-15 Christopher Faylor <cgf@redhat.com>
11348 * win32-nat.c (get_image_name): New function.
11349 (handle_load_dll): Use get_image_name function.
11350 (get_child_debug_event): Avoid registering debug events until possibly
11351 execed process is started.
11352 (child_create_inferior): Allow invocation via shell so that command
11353 line redirection, etc. works ok.
11354 (_initialize_inftarg): Add new command: "set shell" to control whether
11355 a shell is used to start a process.
11357 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11359 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11360 instead of find_register_by_number.
11361 (cannot_store_register): Likewise.
11363 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11365 * dwarf2read.c: Replace fprintf (stderr, ...) by
11366 fprintf_unfiltered (gdb_stderr, ...).
11368 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11370 * gdbserver/gdbserver.1: Document --attach.
11372 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11374 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11376 * arm-tdep.c (arm_default_arm_le_breakpoint)
11377 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11378 (arm_default_thumb_be_breakpoint): New. Initialize them from
11379 traditional breakpoint defines.
11380 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11381 (arm_gdbarch_init): Initialize new breakpoint variables.
11382 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11383 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11384 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11385 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11387 (arm_netbsd_init_abi_common): ... here; new function.
11388 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11389 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11390 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11391 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11393 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11395 * arm-tdep.h (enum arm_abi): New enum.
11396 (struct gdbarch_tdep): New structure.
11397 (LOWEST_PC): Provide a default.
11398 (arm_gdbarch_register_os_abi): Declare new function.
11399 * arm-tdep.c (arm_abi_names): New array.
11400 (process_note_abi_tag_sections): New function.
11401 (get_elfosabi): New function.
11402 (arm_gdbarch_register_os_abi): New function.
11403 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11404 support for that ABI has been built in, then call the appropriate
11405 configuration routine. Use gdbarch_num_regs() to get the number
11407 (arm_dump_tdep): New function.
11408 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11409 place-holder functions.
11410 (_initialize_arm_tdep): Register them.
11411 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11413 * armnbsd-tdep.c: New file.
11414 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11415 * config/arm/nbsd.mt (TDEPFILES): Add it.
11416 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11418 * armnbsd-nat.c: Include regcache.h.
11419 * Makefile.in (armnbsd-nat.o): Update dependency list.
11421 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11423 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11425 * gdbserver/Makefile.in: Fix typos in target rules.
11427 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11429 Fix part of PR gdb/267.
11430 * linespec.c (find_methods): Handle constructors specially for now.
11432 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11434 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11436 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11437 standard_coerce_float_to_double().
11439 2002-02-14 Christopher Faylor <cgf@redhat.com>
11441 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11444 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11446 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11447 find_variant_by_name, because it confuses the multiarch
11448 framework. Return NULL if there isn't an architecture with the
11449 user supplied name, instead of forcing a different one without
11450 recording the change with the multiarch machinery.
11451 (find_variant_by_name): Delete.
11453 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11455 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11456 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11458 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11460 * stack.c (print_frame_info_base): When calling
11461 print_frame_info_listing_hook, set current_source_symtab.
11463 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11465 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11466 and remove unused $(INCLUDE_DIR).
11467 Add regcache.c to OBS.
11468 Add generated register protocol files to clean target.
11469 Update dependencies for new objects, obsolete old target code.
11471 * gdbserver/linux-low.c: Remove all platform-specific code to
11472 new files. Remove various dead code. Update to use regcache
11474 * gdbserver/remote-utils.c (fromhex): Add return statement
11476 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11478 (input_interrupt): Add integer parameter to match prototype
11479 of a signal handler.
11480 (outreg): Use register_data ().
11481 (prepare_resume_reply): Use gdbserver_expedite_regs.
11482 * gdbserver/server.c (main): Dynamically allocate own_buf because
11483 PBUFSIZ is no longer constant. Use registers_to_string () and
11484 registers_from_string ().
11485 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11486 for error (), fatal (), and warning (). Update definition of
11487 PBUFSIZ to use regcache functionality. Add include guard.
11488 * gdbserver/utils.c (fatal): Add missing ``const''.
11489 (warning): New function.
11491 * regformats/regdat.sh: Include "regcache.h" in generated files.
11492 Provide init_registers () function.
11493 * regformats/regdef.h: Add prototype for set_register_cache ().
11496 * gdbserver/linux-arm-low.c: New file.
11497 * gdbserver/linux-i386-low.c: New file.
11498 * gdbserver/linux-ia64-low.c: New file.
11499 * gdbserver/linux-m68k-low.c: New file.
11500 * gdbserver/linux-mips-low.c: New file.
11501 * gdbserver/linux-ppc-low.c: New file.
11502 * gdbserver/linux-sh-low.c: New file.
11504 * gdbserver/regcache.c: New file.
11505 * gdbserver/regcache.h: New file.
11507 * gdbserver/low-linux.c: Removed obsolete file.
11509 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11511 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11512 * config/i386/linux.mt: Likewise.
11513 * config/ia64/linux.mt: Likewise.
11514 * config/m68k/linux.mh: Likewise.
11515 * config/powerpc/linux.mh: Likewise.
11516 * config/mips/linux.mt: Likewise.
11518 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11520 * config/i386/i386lynx.mh: Mark gdbserver variables
11521 as (currently) obsolete for this target.
11522 * config/i386/nbsd.mt: Likewise.
11523 * config/i386/nbsdelf.mt: Likewise.
11524 * config/m32r/m32r.mt: Likewise.
11525 * config/m68k/m68klynx.mh: Likewise.
11526 * config/m68k/nbsd.mt: Likewise.
11527 * config/m68k/sun3os4.mh: Likewise.
11528 * config/mips/vr5000.mt: Likewise.
11529 * config/ns32k/nbsd.mt: Likewise.
11530 * config/pa/hppabsd.mh: Likewise.
11531 * config/pa/hppaosf.mh: Likewise.
11532 * config/powerpc/nbsd.mt: Likewise.
11533 * config/rs6000/rs6000lynx.mh: Likewise.
11534 * config/s390/s390.mt: Likewise.
11535 * config/s390/s390x.mt: Likewise.
11536 * config/sparc/sparclynx.mh: Likewise.
11537 * config/sparc/sun4os4.mh: Likewise.
11538 * config/i386/x86-64linux.mt: Likewise.
11539 * config/sparc/linux.mh: Likewise.
11541 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11543 * configure.tgt: Configure gdbserver only for known working
11544 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11545 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11546 SUBDIRS if it is configured. Update comment for ${nativefile}.
11547 * configure: Regenerated.
11549 2002-02-13 Michael Snyder <msnyder@redhat.com>
11551 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11553 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11554 (default_gcore_mach): Just return 0, work around a problem in bfd.
11555 (default_gcore_target): OK to return NULL if exec_bfd is null.
11556 (make_mem_sec): Use a cast, avoid a warning.
11558 * procfs.c (find_memory_regions_callback): Use a cast instead of
11559 calling host_pointer_to_address (which complains if
11560 sizeof (host pointer) != sizeof (target pointer)).
11561 (procfs_make_note_section): Avoid overflow in psargs string.
11563 * procfs.c (procfs_make_note_section): Make the default
11564 implementation return an error.
11566 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11568 * procfs.c (procfs_make_note_section): Provide a default definition
11569 (for alpha-dec-osf4.0f). Fix typos.
11571 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11573 * linux-proc.c: Add include of regcache.h.
11574 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11576 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11578 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11579 * memattr.c (create_mem_region): Disallow useless empty region.
11580 Regions are half-open intervals, so allow [A..B) [B..C) as
11583 2002-02-13 Michael Chastain <mec@shout.net>
11585 * defs.h: Kill CONST_PTR.
11586 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11587 * c-lang.c (c_builtin_types): Likewise.
11588 * ch-lang.c (ch_builtin_types): Likewise.
11589 * f-lang.c (f_builtin_types): Likewise.
11590 * language.c (unknown_builtin_types): Likewise.
11591 * m2-lang.c (m2_builtin_types): Likewise.
11592 * p-lang.c (pascal_builtin_types): Likewise.
11593 * scm-lang.c (c_builtin_types): Likewise.
11595 2002-02-13 Keith Seitz <keiths@redhat.com>
11597 * arm-tdep.h (arm_get_next_pc): Add declaration.
11599 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11601 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11602 with other related struct-returning functions.
11603 (arm_extract_struct_value_address): New function.
11604 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11605 initialize float_format, double_format and long_double_format as
11606 appropriate to the endianness of the target.
11607 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11608 (arm_use_struct_convention): Delete declaration.
11609 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11611 2002-02-13 Keith Seitz <keiths@redhat.com>
11613 * defs.h (core_addr_to_string_nz): New function.
11615 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11617 Apply missing bits of 2002-01-15 patch.
11618 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11619 (fill_fpregset): Use i387_fill_fsave.
11621 2002-02-12 Keith Seitz <keiths@redhat.com>
11623 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11624 (core_addr_to_string_nz): New function.
11626 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11628 * arm-linux-nat.c: Really include arm-tdep.h.
11629 * config/arm/tm-linux.h (struct type, struct value): Declare.
11631 2002-02-11 Michael Snyder <msnyder@redhat.com>
11633 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11634 (gcore section): Ifdef for Solaris and Unixware only.
11635 (procfs_do_thread_registers): Unixware needs one lwpstatus
11636 per thread (not one prstatus or pstatus).
11637 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11638 not over all gdb threads. For unixware, call elfcore_write_pstatus
11639 once before iterating over threads.
11641 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11643 * arm-tdep.h: New file.
11644 * arm-tdep.c: Include arm-tdep.h.
11645 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11646 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11647 (arm_print_float_info, arm_register_type, convert_to_extended)
11648 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11649 (arm_extract_return_value, arm_register_name): Make static.
11650 (arm_software_single_step): Similarly. Fix types in declaration.
11651 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11652 (arm_store_return_value, arm_store_struct_return): New functions.
11653 (arm_gdbarch_init): Register the above functions. Also register
11654 call_dummy_start_offset, sizeof_call_dummy_words,
11655 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11656 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11657 max_register_virtual_size, register_size. Set up
11658 prologue_cache.saved_regs here, rather than ...
11659 (_initialize_arm_tdep): ... here.
11660 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11662 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11663 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11664 (arm_print_float_info, arm_register_type, convert_to_extended)
11665 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11666 (arm_extract_return_value, arm_register_name): Delete declarations.
11667 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11668 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11669 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11670 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11671 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11672 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11673 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11674 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11675 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11676 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11677 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11678 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11680 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11681 * remote-rdi.c remote-rdp.c: Likewise.
11682 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11683 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11684 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11687 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11688 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11689 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11690 from non-ARM_ prefixed definitions.
11691 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11693 * remote-rdi.c remote-rdp.c: Likewise.
11694 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11696 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11698 * arm-tdep.c (arm_frameless_function_invocation)
11699 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11700 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11701 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11702 (arm_pop_frame, arm_get_next_pc): Make static.
11703 (arm_gdbarch_init): Register above in gdbarch structure.
11704 (arm_read_fp): Renamed from arm_target_read_fp.
11705 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11706 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11707 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11708 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11709 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11710 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11711 (arm_pc_is_thumb_dummy): Delete declarations.
11712 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11713 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11714 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11715 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11717 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11719 * symtab.c (compare_search_syms): New function.
11720 (sort_search_symbols): New function.
11721 (search_symbols): Sort symbols after searching rather than
11724 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11726 * NEWS: Linux -> GNU/Linux.
11728 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11730 * gdbarch.sh: For for level one methods, disallow a definition
11731 when partially multi-arched. Add comments explaining rationale.
11732 * gdbarch.h: Re-generate.
11734 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11736 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11737 multi-arch partial.
11739 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11741 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11742 field. Use diff -u.
11743 * gdbarch.c: Re-generate.
11745 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11747 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11748 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11751 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11753 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11754 multi-arch partial.
11755 (PUSH_ARGUMENTS): Switch to using predefault.
11756 * gdbarch.c: Regenerate.
11758 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11760 * valops.c (PUSH_ARGUMENTS): Delete definition.
11761 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11762 partial. Default to default_push_arguments.
11763 * gdbarch.h, gdbarch.c: Regenerate.
11765 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11767 * defs.h (throw_exception): Rename return_to_top_level. Update
11769 * utils.c (error_stream, internal_verror, quit): Ditto.
11770 * top.c (throw_exception, catcher): Ditto.
11771 * sparclet-rom.c (sparclet_load): Ditto.
11772 * remote.c (interrupt_query, minitelnet): Ditto.
11773 * remote-sds.c (interrupt_query): Ditto.
11774 * remote-mips.c (mips_error, mips_kill): Ditto.
11775 * ocd.c (interrupt_query): Ditto.
11776 * monitor.c (monitor_interrupt_query): Ditto.
11777 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11778 * target.h: Update comment.
11780 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11782 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11784 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11785 default_double_format.
11786 * gdbarch.h, gdbarch.c: Re-generate.
11787 * findvar.c (floatformat_unknown): Delete variable definition.
11788 * doublest.h (floatformat_unknown): Delete variable declaration.
11790 2002-02-09 Jim Blandy <jimb@redhat.com>
11792 * stabsread.c (read_type): Add code to parse Sun's syntax for
11793 prototyped function types.
11795 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11797 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11798 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11800 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11802 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11803 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11804 now _initialize_xcoffsolib gets called again and overrides the
11805 commands from solib.c in a native configuration.
11807 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11809 * doublest.c (store_typed_floating): Don't try to return a value.
11812 2002-02-08 Jim Blandy <jimb@redhat.com>
11814 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11815 is prototyped and has no arguments, print its argument list as
11818 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11820 * MAINTAINERS (write-after-approval): Add myself.
11821 (paper-trail): I've escaped!
11823 2002-02-08 Christopher Faylor <cgf@redhat.com>
11825 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11827 (_initialize_check_for_gdb_ini): Ditto.
11829 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11831 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11832 xaprintf -> xasprintf.
11834 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11836 * win32-nat.c: Remove use of printf and sprintf functions.
11838 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11840 * arm-tdep.c (arm_frame_chain_valid): Make static.
11841 (arm_push_arguments): Likewise.
11842 (arm_gdbarch_init): New function.
11843 (_initialize_arm_tdep): Call it.
11844 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11845 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11846 (FRAME_CHAIN_VALID): Delete.
11847 (arm_frame_chain_valid): Delete declaration.
11848 (PUSH_ARGUMENTS): Delete.
11849 (arm_push_arguments): Delete declaration.
11850 (CALL_DUMMY_P): Delete.
11852 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11853 Corinna Vinschen <vinschen@redhat.com>
11855 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11856 on builtin float types.
11858 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11860 * utils.c: Include <curses.h> before "bfd.h".
11861 * tui/tui-hooks.c: Likewise.
11862 * tui/tui.c: Likewise.
11863 * tui/tuiCommand.c: Likewise.
11864 * tui/tuiData.c: Likewise.
11865 * tui/tuiDataWin.c: Likewise.
11866 * tui/tuiDisassem.c: Likewise.
11867 * tui/tuiGeneralWin.c: Likewise.
11868 * tui/tuiIO.c: Likewise.
11869 * tui/tuiLayout.c: Likewise.
11870 * tui/tuiRegs.c: Likewise.
11871 * tui/tuiSource.c: Likewise.
11872 * tui/tuiSourceWin.c: Likewise.
11873 * tui/tuiStack.c: Likewise.
11874 * tui/tuiWin.c: Likewise.
11876 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11878 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11879 to include space for pseudoregs as well. Update loops accordingly.
11880 (sh_fp_frame_init_saved_regs): Ditto.
11881 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11883 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11885 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11886 Add Richard Earnshaw to Arm maintainers.
11888 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11890 * defs.h (warning_begin): Delete declaration.
11892 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11895 2002-02-07 Michael Snyder <msnyder@redhat.com>
11897 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11898 Logic bug, remove misplaced else.
11900 2002-02-07 Klee Dienes <klee@apple.com>
11902 * fork-inferior.c (fork_inferior): Add '!' to the list of
11903 characters that need to be quoted when building a string for the
11904 shell. Quote '!' specifically with a backslash, since CSH chokes
11905 when trying to evaluate "str!str".
11907 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11909 * rdi-share/host.h: Only provide a typedef for bool if it is not
11912 2002-02-04 Michael Snyder <msnyder@redhat.com>
11914 * breakpoint.h (enum bptype): Add new overlay event bp type.
11915 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11917 * breakpoint.c (create_internal_breakpoint): New function.
11918 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11919 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11920 (create_thread_event_breakpoint): Ditto.
11921 (create_solib_event_breakpoint): Ditto.
11922 (create_overlay_event_breakpoint): New function.
11923 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11924 (update_breakpoints_after_exec): Delete and re-initialize
11925 overlay event breakpoints after an exec. Add FIXME comment
11926 about longjmp breakpoint.
11927 (print_it_typical): Ignore overlay event breakpoints.
11928 (print_one_breakpoint): Ditto.
11930 (bpstat_what): Do not stop for overlay event breakpoints.
11931 (delete_breakpoint): Don't delete overlay event breakpoints.
11932 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11933 (breakpoint_re_set): Re-create overlay event breakpoint.
11935 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11936 (overlay_manual_command): Disable overlay breakpoints.
11937 (overlay_off_command): Disable overlay breakpoints.
11939 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11941 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11942 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11943 to here from config/tm-arm.h.
11944 (coff_sym_is_thumb): Make static.
11945 (arm_elf_make_msymbol_special): New function.
11946 (arm_coff_make_msymbol_special): New function.
11947 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11948 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11949 (coff_sym_is_thumb): Delete declaration.
11950 (arm_elf_make_msymbol_special): Declare.
11951 (arm_coff_make_msymbol_special): Declare.
11952 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11953 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11955 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11957 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11959 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11961 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11962 * gdbarch.c gdbarch.h: Regenerate.
11963 * arch-utils.c (default_print_float_info): New function.
11964 * arch-utils.h (default_print_float_info): Prototype it.
11965 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11966 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11967 (PRINT_FLOAT_INFO): Document it.
11969 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11970 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11971 (PRINT_FLOAT_INFO): Define.
11973 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11975 * win32-nat.c (_initialize_check_for_gdb_ini):
11976 Add typecast to sprintf argument to suppress a warning.
11978 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11980 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11981 to allow easier handling of pass state.
11982 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11983 that gives exception name and address.
11984 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11985 and set last_sig value to ourstatus->value.sig. Some missing
11987 (child_continue): Correctly report continue_status.
11988 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11989 TARGET_SIGNAL_0 (new default value).
11990 (child_resume): consider sig argument passed to decide if
11991 the exception should be passed to debuggee or not.
11993 2002-02-05 Michael Snyder <msnyder@redhat.com>
11995 * regcache.c (fetch_register): Call target_fetch_register
11996 only if we don't call FETCH_PSEUDO_REGISTER.
11997 (store_register): Call target_store_register only if we
11998 don't call STORE_PSEUDO_REGISTER.
12000 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12002 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12003 ELF_MAKE_MSYMBOL_SPECIAL.
12004 * gdbarch.c, gdbarch.h: Regenerate.
12005 * arch-utils.c (default_make_msymbol_special): New function.
12006 * arch-utils.h (default_make_msymbol_special): Export.
12007 * elfread.c (elf_symtab_read): Compile use of
12008 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12010 * coffread.c (coff_symtab_read): Ditto, for
12011 COFF_MAKE_MSYMBOL_SPECIAL.
12013 2002-02-05 Jim Blandy <jimb@redhat.com>
12015 * solib-svr4.c (svr4_truncate_ptr): New function.
12016 (svr4_relocate_section_addresses): Do the address arithmetic with
12017 the appropriate truncation for target addresses, even when
12018 CORE_ADDR is larger than a target address.
12020 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12022 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12025 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12027 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12030 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12032 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12034 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12036 * gdbserver/linux-low.c: Remove unused include files.
12038 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12040 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12041 (read_inferior_memory): Use it.
12042 (write_inferior_memory): Likewise.
12044 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12046 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12047 grubbing through sys_errlist.
12049 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12051 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12053 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12054 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12056 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12058 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12059 (do_sfunc, set_cmd_sfunc): New functions.
12061 * command.h (struct cmd_list_element): Add field func.
12062 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12063 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12064 * cli/cli-decode.h: Ditto.
12066 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12067 (help_all, help_cmd_list): Ditto.
12068 (find_cmd, complete_on_cmdlist): Ditto.
12069 * top.c (execute_command): Ditto.
12071 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12074 * infcmd.c (notice_args_read): Fix function signature.
12076 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12077 * cli/cli-decode.c (add_set_cmd): Ditto.
12078 * utils.c (initialize_utils): Ditto.
12079 * maint.c (_initialize_maint_cmds): Ditto.
12080 * infrun.c (_initialize_infrun): Ditto.
12081 * demangle.c (_initialize_demangler): Ditto.
12082 * remote.c (add_packet_config_cmd): Ditto.
12083 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12084 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12085 * proc-api.c (_initialize_proc_api): Ditto.
12086 * kod.c (_initialize_kod): Ditto.
12087 * valprint.c (_initialize_valprint): Ditto.
12088 * top.c (init_main): Ditto.
12089 * infcmd.c (_initialize_infcmd): Ditto.
12090 * corefile.c (_initialize_core): Ditto.
12091 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12092 * arch-utils.c (initialize_current_architecture): Ditto.
12093 (_initialize_gdbarch_utils): Ditto.
12094 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12096 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12097 * wince.c (_initialize_inftarg): Ditto.
12098 * symfile.c (_initialize_symfile): Ditto.
12099 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12100 * language.c (_initialize_language): Ditto.
12101 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12103 2002-02-04 Michael Snyder <msnyder@redhat.com>
12105 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12107 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12109 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12110 Add rules for building the register data files.
12112 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12114 * regformats/regdat.sh: Add braces to the definition of
12115 expedite_regs_${arch}.
12117 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12119 * regformats/regdef.h (struct reg): Add comment describing the
12120 requirements for offset and size fields.
12122 2002-02-04 Andreas Schwab <schwab@suse.de>
12124 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12125 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12127 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12129 * gdbarch.sh (copyright): Update years in generated header.
12130 (SMASH_TEXT_ADDRESS): Add rule.
12131 * gdbarch.h, gdbarch.c: Re-generate.
12132 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12133 * dbxread.c: Likewise.
12134 * dwarfread.c: Likewise.
12135 * elfread.c: Likewise.
12136 * somread.c: Likewise.
12138 * arm-tdep.c (arm_smash_text_address): New function.
12139 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12141 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12143 Add support for hardware watchpoints on win32 native.
12144 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12145 CONTEXT_DEBUG_REGISTERS.
12146 (dr variable): New variable. Static array containing a local copy
12147 of debug registers.
12148 (debug_registers_changed): New variable. Reflects when debug registers
12149 are changed and need to be written to inferior.
12150 (debug_registers_used): New variable. Reflects when any debug register
12151 was set, used when new threads are created.
12152 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12154 (thread_rec): Set dr array if id is the thread of current_event .
12155 (child_continue, child_resume): Change the debug registers for all
12156 threads if debug_registers_changed.
12157 (child_add_thread): Change the debug registers if debug_registers_used.
12158 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12159 Link nm.h to new nm-cygwin.h file.
12160 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12161 of hardware registers.
12163 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12165 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12166 Restore behavour broken by 2002-01-20 Andrew Cagney
12167 <ac131313@redhat.com> IEEE_FLOAT removal.
12169 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12171 * c-valprint.c (c_val_print): Pass a proper valaddr to
12172 cp_print_class_method.
12173 * valops.c (search_struct_method): If there is only one method
12174 and args is NULL, return that method.
12176 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12178 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12179 accessing tag_name directly.
12181 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12183 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12184 of accessing tag_name directly.
12186 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12189 * gdbtypes.c (replace_type): New function.
12190 * gdbtypes.h (replace_type): Add prototype.
12191 * stabsread.c (read_type): Use replace_type.
12193 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12195 * Makefile.in (memattr.o): Add missing dependencies rule.
12197 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12199 * breakpoint.c (break_at_finish_command): Really export.
12200 (break_at_finish_at_depth_command): Ditto.
12201 (tbreak_at_finish_command): Ditto.
12202 * hppa-tdep.c: Include completer.h.
12203 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12204 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12206 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12208 * utils.c (do_write): New function.
12209 (error_stream): Rewrite combining the code from error_begin and
12211 (verror): Rewrite using error_stream.
12212 (error_begin): Delete function.
12214 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12216 * utils.c (error_begin): Make static.
12217 * defs.h (error_begin): Delete declaration.
12219 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12220 (decode_line_1): Use cplusplus_error instead of error_begin,
12221 cplusplus_hint and return_to_top_level.
12222 * coffread.c (coff_symfile_read): Use error instead of error_begin
12223 and return_to_top_level.
12224 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12226 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12228 * language.h (type_error, range_error): Make string parameter
12230 * language.c (warning_pre_print): Delete extern declaration.
12231 * dwarfread.c (warning_pre_print): Ditto.
12232 * language.c (type_error, range_error): Rewrite to use verror and
12233 vwarning instead of warning_begin.
12235 2002-02-01 Michael Snyder <msnyder@redhat.com>
12237 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12238 (set_ignore_count): Move misplaced comment back where it belongs.
12240 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12242 * command.h (NO_FUNCTION): Delete macro.
12243 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12244 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12245 * tracepoint.c (_initialize_tracepoint): Ditto.
12246 * cli/cli-decode.c (add_set_cmd): Ditto.
12247 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12249 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12251 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12252 Update ``this'' pointer when calling virtual functions.
12254 2002-02-01 Michael Snyder <msnyder@redhat.com>
12256 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12257 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12259 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12261 * regformats/reg-arm.dat: New file.
12262 * regformats/reg-i386.dat: New file.
12263 * regformats/reg-ia64.dat: New file.
12264 * regformats/reg-m68k.dat: New file.
12265 * regformats/reg-mips.dat: New file.
12266 * regformats/reg-ppc.dat: New file.
12267 * regformats/reg-sh.dat: New file.
12268 * regformats/regdef.h: New file.
12269 * regformats/regdat.sh: New file.
12271 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12273 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12274 (arm_frame_args_address, arm_frame_locals_address): New functions.
12275 (arm_frame_num_args): New function.
12276 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12277 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12278 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12280 2002-01-31 Michael Snyder <msnyder@redhat.com>
12282 * breakpoint.c (break_at_finish_command): Export.
12283 (break_at_finish_at_depth_command): Export.
12284 (tbreak_at_finish_command): Export.
12285 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12286 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12287 "txbreak" commands, which are HPPA specific.
12289 * printcmd.c (disassemble_command): Remove an ancient
12290 artifact of an old merge.
12292 * symfile.h (enum overlay_debugging_state):
12293 Define enum constant values for overlay mode.
12294 * symfile.c (overlay_debugging): Use enums instead of literals.
12295 (overlay_is_mapped, overlay_auto_command,
12296 overlay_manual_command): Ditto.
12298 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12299 breakpoint_here_p, breakpoint_inserted_here_p,
12300 breakpoint_thread_match, bpstat_stop_status,
12301 describe_other_breakpoints, check_duplicates, clear_command):
12302 Coding standard fixes.
12304 * target.c (target_xfer_memory): Add spaces, coding standard.
12305 (do_xfer_memory): Add missing line to trust-readonly
12306 code: check bfd SEC_READONLY flag for section.
12308 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12310 * PROBLEMS: Fix typo, 5.1->5.1.1.
12312 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12314 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12315 data symbols, since we search based on textlow and texthigh.
12316 (find_pc_sect_symtab): Likewise.
12318 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12320 * defs.h (vwarning): Declare.
12321 * utils.c (vwarning): New function.
12322 (warning): Call vwarning.
12323 (warning_begin): Delete function.
12325 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12326 the warning message.
12327 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12330 2002-01-30 Michael Snyder <msnyder@redhat.com>
12332 * NEWS: Mention "set trust-readonly-sections" command.
12333 Mention generate-core-file command.
12335 2002-01-15 Michael Snyder <msnyder@redhat.com>
12337 * target.c: New command, "set trust-readonly-sections on".
12338 (do_xfer_memory): Honor the suggestion to trust readonly sections
12339 by reading them from the object file instead of from the target.
12340 (initialize_targets): Register command "set trust-readonly-sections".
12342 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12344 * parse.c (target_map_name_to_register): Simplify, search regs and
12345 pseudo-regs using a single loop.
12347 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12349 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12351 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12353 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12354 * config/i386/i386v42mp.mh: Add i387-nat.o .
12355 * i386v4-nat.c: Include i387-nat.h.
12356 (supply_fpregset): Use i387_supply_fsave.
12357 (fill_fpregset): Use i387_fill_fsave.
12359 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12361 * arm-tdep.c (arm_call_dummy_words): Define.
12362 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12363 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12364 (CALL_DUMMY_WORDS): Define.
12365 (arm_call_dummy_words): Declare.
12366 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12367 (arm_linux_call_dummy_words): Declare.
12369 2002-01-30 Andreas Schwab <schwab@suse.de>
12371 * m68klinux-nat.c: Fix last change to use regcache_collect
12372 instead of referencing registers[] directly.
12374 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12376 * parse.c (target_map_name_to_register): Delete code wrapped in
12377 #ifdef REGISTER_NAME_ALIAS_HOOK.
12379 2002-01-28 Michael Snyder <msnyder@redhat.com>
12381 * regcache.c (legacy_read_register_gen): Need to be able to
12382 read pseudo-register as well as real register.
12383 (legacy_write_register_gen): Ditto.
12385 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12387 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12388 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12389 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12390 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12391 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12392 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12393 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12394 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12395 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12396 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12397 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12398 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12399 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12400 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12401 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12402 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12403 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12404 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12405 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12406 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12408 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12410 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12411 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12412 (initialize_current_architecture): Update target_byte_order using
12413 information from BFD.
12414 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12415 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12417 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12419 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12420 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12422 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12423 #ifdef INVALID_FLOAT.
12424 * infcmd.c (do_registers_info): Ditto.
12425 * values.c (unpack_double): Ditto. Add comment.
12427 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12428 already commented out.
12430 2002-01-26 Andreas Schwab <schwab@suse.de>
12432 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12433 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12434 registers and add support for PTRACE_GETREGS.
12436 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12438 GDB 5.1.1 released from 5.1 branch.
12439 * NEWS: Add 5.1.1 news.
12440 * README: Sync with 5.1 branch.
12442 2002-01-23 Fred Fish <fnf@redhat.com>
12444 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12445 stabstring on initial malloc. Reallocing will copy it for us,
12448 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12450 * Makefile.in (hpread_h): Delete.
12451 (HFILES_NO_SRCDIR): Remove hpread.h.
12452 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12453 (hpread.o): Update dependencies.
12454 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12456 * hp-psymtab-read.c: Remove file.
12457 * hp-symtab-read.c: Remove file.
12458 * hpread.h: Remove file.
12460 * hpread.c: Merge all contents of hp-psymtab-read.c,
12461 hp-symtab-read.c and hpread.h into this file, as it was prior to
12464 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12465 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12466 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12467 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12469 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12471 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12472 fill_gregset): Call gdbarch_tdep() just once, assign result to
12473 variable and use that, instead of calling the function several
12476 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12478 * configure.host: Accept sparcv9 as alias for sparc64.
12479 * configure.tgt: Likewise.
12481 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12483 * solib-aix5.c (build_so_list_from_mapfile)
12484 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12485 arguments is not reversed.
12486 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12487 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12489 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12491 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12492 modified version of obsolete sh_fetch_pseudo_register.
12493 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12494 (sh4_register_read): New function.
12495 (sh_pseudo_register_write): New function. Renamed and modified
12496 version of obsolete sh_store_pseudo_register.
12497 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12498 (sh4_register_write): New function.
12499 (sh_gdbarch_init): Remove setting of gdbarch function
12500 fetch_pseudo_register and store_pseudo_register. Remove setting of
12501 register_convert_to_raw, register_convert_to_virtual,
12502 register_convertible.
12503 (sh_sh4_register_convertible): Delete. No longer needed. All is
12504 taken care by architecture specific functions
12505 register_read/register_write.
12506 (sh_sh4_register_convert_to_virtual): Make static.
12507 (sh_sh4_register_convert_to_raw): Ditto.
12509 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12511 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12512 (floatformat_is_nan, floatformat_mantissa): Ditto.
12514 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12515 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12516 builtin_type_ieee_double_little,
12517 builtin_type_ieee_double_littlebyte_bigword,
12518 builtin_type_m68881_ext, builtin_type_i960_ext,
12519 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12520 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12521 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12522 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12524 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12526 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12527 parameter. Set frameless flag if it exists and depended of
12528 whether the scanned function is frameless or not.
12529 (xstormy16_skip_prologue): If function is frameless, return
12530 result of xstormy16_scan_prologue().
12531 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12534 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12536 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12537 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12538 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12539 sh_sh4_register_byte, sh_sh4_register_raw_size,
12540 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12541 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12542 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12543 sh_store_pseudo_register, sh_do_pseudo_register): Call
12544 gdbarch_tdep() just once, assign result to variable and use that,
12545 instead of calling the function several times.
12547 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12549 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12550 macros instead of LAST_FPU_CTRL_REGNUM.
12551 (store_register): Likewise.
12553 2002-01-21 Jim Blandy <jimb@redhat.com>
12555 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12556 is up-to-date before running the program, not just when a program
12559 2002-01-21 Fred Fish <fnf@redhat.com>
12561 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12562 when we have found all instructions we are looking for.
12564 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12566 * arm-tdep.c (arm_register_name): New function.
12567 (arm_registers_names): Make static.
12568 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12569 (arm_register_name): Declare.
12570 (REGISTER_NAME): Use it.
12572 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12573 Kevin Buettner <kevinb@redhat.com>
12575 Convert arm targets to new FRAME interface.
12576 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12577 (arm_frame_find_save_regs): Delete.
12578 (arm_frame_init_saved_regs): New.
12579 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12580 Allocate extra_info as required. Convert all uses of fsr.regs
12581 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12583 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12584 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12585 (check_prologue_cache, save_prologue_cache): Likewise.
12586 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12587 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12588 (FRAME_FIND_SAVED_REGS): Delete.
12589 (arm_frame_find_saved_regs): Delete prototype.
12590 (arm_frame_init_saved_regs): New prototype.
12591 (FRAME_INIT_SAVED_REGS): Define.
12593 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12595 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12597 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12599 From Jeff Law <law@redhat.com>:
12600 * infttrace.c: Include <sys/pstat.h>.
12601 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12602 exec file if the ttrace equivalent fails.
12604 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12606 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12607 (closeLogFile): Ditto.
12609 2002-01-20 Michael Chastain <mec@shout.net>
12611 * top.c (print_gdb_version): Bump copyright year to 2002.
12613 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12615 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12616 Zannoni and Eli Zaretskii.
12618 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12620 * buildsym.c: Update copyright years.
12621 * c-typeprint.c: Likewise.
12622 * dwarf2read.c: Likewise.
12623 * f-typeprint.c: Likewise.
12624 * gdbtypes.c: Likewise.
12625 * gdbtypes.h: Likewise.
12626 * hp-symtab-read.c: Likewise.
12627 * hpread.c: Likewise.
12628 * mdebugread.c: Likewise.
12629 * p-typeprint.c: Likewise.
12631 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12633 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12634 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12635 byte-order selectable.
12636 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12637 * arch-utils.c: Ditto.
12638 (set_endian): Ditto.
12639 (set_endian_from_file): Ditto.
12640 * gdbserver/low-sim.c (create_inferior): Ditto.
12641 * gdbarch.sh: Ditto.
12642 * gdbarch.h: Re-generate.
12643 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12644 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12645 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12646 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12647 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12648 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12649 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12650 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12652 * config/mips/tm-wince.h: Remove #undef of macro
12653 TARGET_BYTE_ORDER_SELECTABLE.
12654 * config/sh/tm-wince.h: Ditto.
12656 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12658 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12659 member function fields. Add accessor macro
12660 TYPE_FN_FIELD_ARTIFICIAL.
12661 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12662 * c-typeprint.c (c_type_print_base): Skip artificial member
12665 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12667 * f-typeprint.c: Delete unused function f_type_print_args.
12668 * p-typeprint.c: Delete unused function pascal_type_print_args.
12670 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12672 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12673 comment. Add ``artificial'' to ``union field_location''.
12675 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12677 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12678 * mdebugread.c (parse_symbol): Likewise.
12679 * stabsread.c (define_symbol): Likewise.
12680 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12681 initializing TYPE_FIELD_BITPOS to n (obsolete).
12682 (hpread_doc_function_type): Likewise.
12683 * hpread.c (hpread_function_type): Likewise.
12685 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12687 * configure.in (host_makefile_frag): Only require a host makefile
12688 fragment when a native build.
12689 * configure: Re-generate.
12691 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12693 * doublest.h (floatformat_from_type): Declare.
12694 * doublest.c (floatformat_from_type): New function.
12695 (convert_typed_floating): Use.
12697 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12698 call to function floatformat_from_type.
12700 * gdbarch.sh (IEEE_FLOAT): Delete.
12701 * gdbarch.h, gdbarch.c: Re-generate.
12702 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12703 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12704 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12705 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12706 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12707 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12708 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12709 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12710 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12711 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12712 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12713 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12715 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12716 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12717 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12718 * sh-tdep.c (sh_gdbarch_init): Ditto.
12719 * mips-tdep.c (mips_gdbarch_init): Ditto.
12720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12721 * cris-tdep.c (cris_gdbarch_init): Ditto.
12723 2002-01-20 Jiri Smid <smid@suse.cz>
12725 * configure.host, configure.tgt: Support x86-64.
12726 * NEWS: Note new target x86-64.
12728 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12729 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12730 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12731 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12732 x86-64-linux-nat.o): Fix dependencies.
12734 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12736 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12737 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12738 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12739 * config/sparc/xm-sun4os4.h: Delete file.
12740 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12742 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12744 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12745 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12746 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12747 * config/i386/i386lynx.mh (XM_FILE): Delete.
12748 * config/rs6000/xm-rs6000ly.h: Delete file.
12749 * config/sparc/xm-sparclynx.h: Delete file.
12750 * config/m68k/xm-m68klynx.h: Delete file.
12751 * config/i386/xm-i386lynx.h: Delete file.
12752 * config/xm-lynx.h: Delete file.
12753 * config/djgpp/fnchange.lst: Update.
12755 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12757 * alpha-tdep.c (alpha_register_byte): New function.
12758 (alpha_register_raw_size): Ditto.
12759 (alpha_register_virtual_size): Ditto.
12760 (alpha_skip_prologue_internal): Renamed from
12761 alpha_skip_prologue.
12762 (alpha_skip_prologue): New version that calls
12763 alpha_skip_prologue_internal.
12764 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12765 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12766 second argument from alpha_skip_prologue.
12767 (REGISTER_BYTE): Use alpha_register_byte.
12768 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12769 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12770 (FRAMELESS_FUNCTION_INVOCATION): Use
12771 generic_frameless_function_invocation_not.
12772 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12773 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12775 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12777 * config/mips/xm-news-mips.h: Delete file.
12778 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12780 * config/m88k/xm-m88k.h: Delete file.
12781 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12782 * config/m88k/xm-delta88v4.h: Ditto.
12783 * config/m88k/xm-delta88.h: Ditto.
12785 * config/alpha/xm-fbsd.h: Delete file.
12786 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12788 * config/sparc/xm-sparc.h: Delete file.
12789 * Makefile.in (xm-sun4os4.h): Delete dependency.
12790 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12791 * config/sparc/xm-sun4os4.h: Ditto.
12792 * config/sparc/xm-linux.h: Ditto.
12794 * config/i386/xm-windows.h: Delete file.
12796 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12798 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12799 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12801 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12803 * alpha-tdep.c (alpha_call_dummy_words): New.
12804 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12805 (CALL_DUMMY_P): Define.
12806 (CALL_DUMMY_WORDS): Define.
12807 (SIZEOF_CALL_DUMMY_WORDS): Define.
12809 2002-01-19 Per Bothner <per@bothner.com>
12811 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12812 isn't NULL, which can happen with some gcj-3.x-produced code.
12814 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12816 * alpha-tdep.c (alpha_register_virtual_type): New function.
12817 (alpha_init_frame_pc_first): Ditto.
12818 (alpha_fix_call_dummy): Ditto.
12819 (alpha_store_struct_return): Ditto.
12820 (alpha_extract_struct_value_address): Ditto.
12821 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12822 alpha_register_virtual_type.
12823 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12824 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12825 alpha_extract_struct_value_address.
12826 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12827 (INIT_FRAME_PC): Use init_frame_pc_noop.
12828 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12830 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12832 * i386gnu-nat.c: Include "i386-tdep.h".
12833 (fetch_fpregs): Simplify code dealing with uninitialized floating
12834 point states such that it doesn't require FP7_REGNUM.
12836 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12838 * alpha-tdep.c (frame_extra_info): New.
12839 (alpha_find_saved_regs): Make static. Use
12841 (alpha_frame_init_saved_regs): New function.
12842 (alpha_frame_saved_pc): Use frame->extra_info.
12843 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12844 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12845 (init_extra_frame_info): Rename to...
12846 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12847 (alpha_print_extra_frame_info): New function.
12848 (alpha_frame_locals_address): Ditto.
12849 (alpha_frame_args_address): Ditto.
12850 (alpha_pop_frame): Use frame->extra_info.
12851 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12852 alpha_frame_args_address.
12853 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12854 (alpha_find_saved_regs): Remove prototype.
12855 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12856 (EXTRA_FRAME_INFO): Remove.
12857 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12858 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12860 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12862 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12863 (alpha_cannot_fetch_register): Ditto.
12864 (alpha_cannot_store_register): Ditto.
12865 (alpha_register_convertible): Ditto.
12866 (alpha_use_struct_convention): Ditto.
12867 * config/alpha/tm-alpha.h: Update copyright years.
12868 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12869 (INNER_THAN): Use core_addr_lessthan.
12870 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12871 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12872 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12873 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12874 (FRAME_CHAIN): Remove unnecessary cast.
12876 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12878 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12881 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12883 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12884 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12885 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12886 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12887 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12888 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12889 * x86-64-linux-nat.c: Ditto.
12891 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12893 * alpha-tdep.c (alpha_register_name): New function.
12894 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12895 (REGISTER_NAME): Define.
12897 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12899 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12901 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12903 * alpha-tdep.c: Update copyright years.
12904 (alpha_next_pc): New function.
12905 (alpha_software_single_step): Ditto.
12906 * config/alpha/tm-alpha.h: Add prototype for
12907 alpha_software_single_step.
12909 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12911 * alphabsd-nat.c: Update copyright years.
12912 (fill_gregset): Use regcache_collect.
12913 (fill_fpregset): Likewise.
12914 (fetch_inferior_registers): Only fetch integer registers
12915 if requested to do so.
12916 (store_inferior_registers): Only store integer registers
12917 if requested to do so.
12919 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12921 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12922 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12923 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12924 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12925 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12926 * config/arm/linux.mh (XDEPFILES): Delete.
12927 * config/arm/nbsd.mh (XDEPFILES): Delete.
12928 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12929 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12930 * config/i386/i386m3.mh (XDEPFILES): Delete.
12931 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12932 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12933 * config/i386/fbsd.mh (XDEPFILES): Delete.
12934 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12935 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12936 * config/i386/i386v4.mh (XDEPFILES): Delete.
12937 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12938 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12939 * config/i386/i386aix.mh (XDEPFILES): Delete.
12940 * config/i386/go32.mh (XDEPFILES): Delete.
12941 * config/i386/cygwin.mh (XDEPFILES): Delete.
12942 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12943 * config/i386/i386mach.mh (XDEPFILES): Delete.
12944 * config/i386/i386v32.mh (XDEPFILES): Delete.
12945 * config/i386/linux.mh (XDEPFILES): Delete.
12946 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12947 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12948 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12949 * config/i386/i386sco.mh (XDEPFILES): Delete.
12950 * config/i386/i386v.mh (XDEPFILES): Delete.
12951 * config/i386/nbsd.mh (XDEPFILES): Delete.
12952 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12953 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12954 * config/i386/symmetry.mh (XDEPFILES): Delete.
12955 * config/i386/obsd.mh (XDEPFILES): Delete.
12956 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12957 * config/ia64/linux.mh (XDEPFILES): Delete.
12958 * config/ia64/aix.mh (XDEPFILES): Delete.
12959 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12960 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12961 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12962 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12963 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12964 * config/m68k/linux.mh (XDEPFILES): Delete.
12965 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12966 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12967 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12968 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12969 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12970 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12971 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12972 * config/m88k/delta88.mh (XDEPFILES): Delete.
12973 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12974 * config/m88k/m88k.mh (XDEPFILES): Delete.
12975 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12976 * config/mips/linux.mh (XDEPFILES): Delete.
12977 * config/mips/irix6.mh (XDEPFILES): Delete.
12978 * config/mips/irix5.mh (XDEPFILES): Delete.
12979 * config/mips/irix4.mh (XDEPFILES): Delete.
12980 * config/mips/irix3.mh (XDEPFILES): Delete.
12981 * config/mips/decstation.mh (XDEPFILES): Delete.
12982 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12983 (NATDEPFILES): Move core-aout.o to here.
12984 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12985 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12986 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12987 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12988 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12989 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12990 * config/pa/hpux11.mh (XDEPFILES): Delete.
12991 * config/powerpc/aix.mh (XDEPFILES): Delete.
12992 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12993 * config/powerpc/linux.mh (XDEPFILES): Delete.
12994 * config/romp/rtbsd.mh: Rename XDEPFILES.
12995 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12996 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12997 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12998 * config/s390/s390.mh (XDEPFILES): Delete.
12999 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13000 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13001 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13002 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13003 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13004 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13005 * config/sparc/linux.mh (XDEPFILES): Delete.
13006 * config/vax/vaxult.mh (XDEPFILES): Delete.
13007 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13008 * Makefile.in (DEPFILES): Remove XDEPFILES.
13010 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13012 * utils.c (internal_verror): Fix comments, default is yes not no.
13013 Update queries to match. Default to quit and dump core.
13015 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13017 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13019 * defs.h, event-top.c, gdbcmd.h: Ditto.
13020 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13021 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13022 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13023 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13024 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13025 * mi/mi-main.c:Ditto.
13027 * stack.c, symfile.c: Update copyright.
13029 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13031 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13032 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13033 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13034 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13036 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13038 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13039 * gdbserver/low-lynx.c (myattach): Likewise.
13040 * gdbserver/low-nbsd.c (myattach): Likewise.
13041 * gdbserver/low-sim.c (myattach): Likewise.
13042 * gdbserver/low-sparc.c (myattach): Likewise.
13043 * gdbserver/low-sun3.c (myattach): Likewise.
13045 * gdbserver/low-linux.c (myattach): New function.
13047 * gdbserver/server.c (attach_inferior): New function.
13048 (main): Handle "--attach".
13050 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13052 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13055 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13057 * c-typeprint.c (is_type_conversion_operator): Add additional
13058 check for non-conversion operators.
13060 2002-01-15 Michael Snyder <msnyder@redhat.com>
13062 * linux-proc.c: Add "info proc" command, a la procfs.c.
13063 (read_mapping): New function, abstract and re-use code.
13064 (linux_find_memory_regions): Use new func read_mapping.
13065 (linux_info_proc_cmd): New function, implement "info proc".
13066 (_initialize_linux_proc): Add new command "info proc".
13068 2002-01-15 Michael Snyder <msnyder@redhat.com>
13070 * symfile.c (generic_load): Use bfd_map_over_sections method
13071 instead of manipulating bfd structure members directly.
13072 (add_section_size_callback): New function, bfd sections callback
13073 used by generic_load.
13074 (load_sections_callback): New function, bfd sections callback
13075 used by generic_load.
13077 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13079 [Based on work by Jim Blandy]
13080 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13081 (builtin_type_vec128): Export.
13082 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13084 (builtin_type_vec128): New builtin type for 128 bit vector
13086 (build_gdbtypes): Initialize builtin_type_v16qi and
13087 builtin_type_v8hi. Create the vec128 register builtin type
13089 (build_builtin_type_vec128): New function.
13090 (_initialize_gdbtypes): Register builtin_type_v16qi and
13091 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13092 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13093 AltiVec register to new builtin type.
13095 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13097 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13100 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13102 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13103 CLEAN_UP_REGISTER_VALUE.
13104 * regcache.c (supply_register): Update only call.
13106 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13108 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13109 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13110 a29k-*-vxworks* targets as obsolete.
13112 2002-01-14 Michael Snyder <msnyder@redhat.com>
13114 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13115 until we can resolve portability issues.
13116 * gregset.h: Remove references to fpxregs.
13117 * gcore.c (gcore_command): Initialize note_sec to NULL.
13119 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13121 * signals.c (target_signal_to_name): Rewrite. Only use
13122 signals[].name when in bounds and non-NULL.
13124 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13126 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13127 * signals.c (target_signal_to_name): Verify that SIG is within the
13128 bounds of the signals array.
13130 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13132 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13134 2002-01-13 Keith Seitz <keiths@redhat.com>
13136 * stack.c (print_frame_info_base): Print the frame's pc
13137 only if when print_frame_info_listing_hook is not defined.
13139 2002-01-13 Keith Seitz <keiths@redhat.com>
13141 * varobj.c (varobj_set_value): Make sure that there were no
13142 errors evaluating the object before attempting to set its
13144 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13145 so this offset adjustment is no longer necessary.
13146 (create_child): Don't set the error flag if the child is
13147 a CPLUS_FAKE_CHILD.
13148 (value_of_child): If value_fetch_lazy fails, return NULL
13149 so that callers will be notified that an error occurred.
13150 (c_value_of_variable): Delay check of variable's validity
13151 until later. We actually want all structs and unions to have
13153 Do not return "???" for variables which could not be evaluated.
13154 This error condition must be returned to the caller so that it
13155 can get the error condition from gdb.
13156 (cplus_name_of_child): Adjust index for vptr before figuring
13157 out the name of the child.
13158 (cplus_value_of_child): If a child's (real) parent is not valid,
13159 don't even bother trying to give a value for it. Just return
13160 an error. Change all instances in this function.
13161 (cplus_type_of_child): If our parent is one of the "fake"
13162 parents, we need to get at the type of the real parent, and
13163 derive the child's true type using this information.
13165 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13167 From 2002-01-09 John Marshall <johnm@falch.net>:
13168 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13169 sources.redhat.com, and tweak some related URLs which had
13170 suffered from linkrot.
13172 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13175 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13176 structures passed in registers.
13178 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13180 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13181 white space which prevented compilation. Reported by DSK
13182 <dsk@student.unsw.edu.au>.
13184 2002-01-11 Michael Snyder <msnyder@redhat.com>
13186 * symfile.c (build_section_addr_info_from_section_tab):
13187 Use bfd access method instead of manipulating bfd directly.
13188 (syms_from_objfile): Ditto.
13189 (simple_overlay_update_1): Ditto.
13190 (simple_overlay_update): Ditto.
13191 (generic_load): Ditto.
13192 (overlay_unmapped_address): FIXME comment, bfd access methods.
13193 (sections_overlap): FIXME comment, bfd access methods.
13194 (pc_in_mapped_range): FIXME comment, bfd access methods.
13195 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13196 (section_is_mapped): FIXME comment, bfd access methods.
13197 (section_is_overlay): FIXME comment, bfd access methods.
13199 * symfile.c (generic_load): Whitespace and long line cleanups.
13200 Remove duplicate variable, change several local variables to
13201 more appropriate data types.
13202 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13204 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13206 From Peter Schauer:
13207 * language.c (longest_local_hex_string_custom): Use phex_nz to
13208 convert NUM to a hex string.
13210 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13212 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13214 Update Copyright year.
13216 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13218 * language.c (longest_raw_hex_string): Delete unused function.
13220 2002-01-11 Petr Sorfa <petrs@caldera.com>
13222 * MAINTAINERS (write-after-approval): Add myself.
13223 * dwarf2read.c (read_tag_string_type): Handling of
13225 (read_tag_string_type): FORTRAN fix to prevent propagation of
13227 (set_cu_language): Handling of DW_LANG_Fortran95
13229 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13231 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13232 GETPID(inferior_ptid).
13233 (store_inferior_registers): Likewise.
13235 2002-01-10 Jason Merrill <jason@redhat.com>
13237 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13240 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13242 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13243 and bfd/elf32-sh-nbsd.c.
13245 2002-01-10 Michael Snyder <msnyder@redhat.com>
13247 * NEWS: Mention --pid and corefile/proc-id behavior change.
13249 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13250 * gcore.c: Include cli/cli-decode.h instead of command.h.
13252 * main.c (captured_main): Add new command line option "--pid".
13253 If the second command line argument (following the symbol-file)
13254 begins with a digit, try to attach to it before trying to open
13256 (print_gdb_help): Document the "--pid" argument.
13258 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13260 * completer.c (command_completer): New function.
13262 * completer.h <command_completer>: Add prototype.
13264 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13265 completer for the "help" command.
13267 2002-01-09 Jason Merrill <jason@redhat.com>
13269 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13271 2002-01-09 Michael Snyder <msnyder@redhat.com>
13273 * i386-linux-nat.c (fill_fpxregset): Make global.
13274 (store_fpxregset): Ditto.
13276 * gregset.h (gdb_fpxregset_t): Define.
13277 (supply_fpxregset): Prototype.
13278 (fill_fpxregset): Prototype.
13280 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13282 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13284 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13285 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13286 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13288 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13290 * MAINTAINERS: Update target maintainer rules so that any
13291 Maintainer can approve a tested patch for a maintenance-only
13294 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13296 * MAINTAINERS (write-after-approval): Add myself.
13298 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13301 2002-01-08 Michael Snyder <msnyder@redhat.com>
13303 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13304 real name of the executable, rather than the /proc name.
13306 2002-01-03 Michael Snyder <msnyder@redhat.com>
13308 Implement a "generate-core-file" command in gdb, save target state.
13309 * gcore.c: New file. Implement new command 'generate-core-file'.
13310 Save a corefile image of the current state of the inferior.
13311 * linux-proc.c: Add linux-specific code for saving corefiles.
13312 * target.h (struct target_ops): Add new target vectors for saving
13313 corefiles; to_find_memory_regions and to_make_corefile_notes.
13314 (target_find_memory_regions): New macro.
13315 (target_make_corefile_notes): New macro.
13316 * target.c (update_current_target): Inherit new target methods.
13317 (dummy_find_memory_regions): New place-holder method.
13318 (dummy_make_corefile_notes): New place-holder method.
13319 (init_dummy_target): Initialize new dummy target vectors.
13320 * exec.c (exec_set_find_memory_regions): New function.
13321 Allow the exec_ops vector for memory regions to be taken over.
13322 (exec_make_note_section): New function, target vector method.
13323 * defs.h (exec_set_find_memory_regions): Export prototype.
13324 * procfs.c (proc_find_memory_regions): New function, corefile method.
13325 (procfs_make_note_section): New function, corefile method.
13326 (init_procfs_ops): Set new target vector pointers.
13327 (find_memory_regions_callback): New function.
13328 (procfs_do_thread_registers): New function.
13329 (procfs_corefile_thread_callback): New function.
13330 * sol-thread.c (sol_find_memory_regions): New function.
13331 (sol_make_note_section): New function.
13332 (init_sol_thread_ops): Initialize new target vectors.
13333 * inftarg.c (inftarg_set_find_memory_regions): New function.
13334 Allow to_find_memory_regions vector to be taken over.
13335 (inftarg_set_make_corefile_notes): New function.
13336 Allow to_make_corefile_notes vector to be taken over.
13337 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13338 interface layer if not target_has_execution (may be a corefile).
13339 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13340 * config/sparc/sun4sol2.mh: Ditto.
13341 * config/alpha/alpha-linux.mh: Ditto.
13342 * config/arm/linux.mh: Ditto.
13343 * config/i386/x86-64linux.mh: Ditto.
13344 * config/ia64/linux.mh: Ditto.
13345 * config/m68k/linux.mh: Ditto.
13346 * config/mips/linux.mh: Ditto.
13347 * config/powerpc/linux.mh: Ditto.
13348 * config/sparc/linux.mh: Ditto.
13350 2002-01-07 Michael Snyder <msnyder@redhat.com>
13352 * arm-linux-nat.c: Remove references to regcache.c internal data
13353 (registers[] and register_valid[]).
13355 2002-01-07 Michael Snyder <msnyder@redhat.com>
13357 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13358 so that attaching to a pid will automatically read the process's
13359 symbol file and shlibs.
13360 * Makefile.in: Add rule for linux-proc.o.
13361 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13362 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13363 * config/arm/linux.mh: Ditto.
13364 * config/i386/linux.mh: Ditto.
13365 * config/i386/x86-64linux.mh: Ditto.
13366 * config/ia64/linux.mh: Ditto.
13367 * config/m68k/linux.mh: Ditto.
13368 * config/mips/linux.mh: Ditto.
13369 * config/powerpc/linux.mh: Ditto.
13370 * config/sparc/linux.mh: Ditto.
13372 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13374 * win32-nat.c: Add i386-tdep.h dependency.
13376 2002-01-07 Michael Snyder <msnyder@redhat.com>
13378 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13379 instead of bfd_get_arch_size. Don't bail out just because
13380 there's no exec_bfd.
13382 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13383 * p-valprint.c (pascal_object_print_value): Ditto.
13384 * somread.c (som_symtab_read): Ditto.
13385 * symfile.c (simple_free_overlay_region_table): Ditto.
13386 * valops.c (value_assign): Ditto.
13388 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13389 use tilde_expand and strerror for opening save-tracepoints file.
13391 * thread-db.c (thread_db_new_objfile): Indendation fix.
13393 * infptrace.c (GDB_MAX_ALLOCA): New define.
13394 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13395 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13396 can be overridden with whatever value is appropriate to the host).
13397 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13398 alloca to allocate potentially large buffer.
13399 * rs6000-nat.c (child_xfer_memory): Ditto.
13400 * symm-nat.c (child_xfer_memory): Ditto.
13401 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13403 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13405 From Nick Clifton <nickc@redhat.com>
13406 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13408 2002-01-07 Michael Snyder <msnyder@redhat.com>
13410 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13411 Don't use exec_bfd if it's NULL.
13413 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13415 * valops.c (value_arg_coerce): Fix formatting.
13417 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13419 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13420 * gnu-nat.c: Ditto.
13422 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13424 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13425 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13426 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13427 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13428 z8k-coff have not been multi-arched. Update z8k-coff build
13431 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13433 * MAINTAINERS: Mark a29k target as obsolete.
13434 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13435 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13437 * NEWS: Note that a29k targets are obsolete.
13438 * a29k-tdep.c: Mark as obsolete.
13439 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13440 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13441 a29k-*-vxworks* targets as obsolete.
13442 * remote-adapt.c: Obsolete.
13443 * remote-eb.c: Obsolete.
13444 * remote-mm.c: Obsolete.
13445 * remote-udi.c: Obsolete.
13446 * config/a29k/a29k-udi.mt: Obsolete.
13447 * config/a29k/a29k.mt: Obsolete.
13448 * config/a29k/tm-a29k.h: Obsolete.
13449 * config/a29k/tm-vx29k.h: Obsolete.
13450 * config/a29k/vx29k.mt: Obsolete.
13452 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13454 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13455 with BFD_ENDIAN_BIG.
13457 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13459 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13460 * configure, config.in: Re-generate.
13461 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13462 * defs.h: Do not include <endian.h>.
13464 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13466 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13467 * config.in: Regenerate.
13468 * configure.in: Update copyright years.
13469 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13470 * configure: Regenerate.
13471 * i386bsd-nat.c: Update copyright years.
13472 (fill_gregset): Use regcache_collect.
13473 (fetch_inferior_registers): Only fetch integer registers
13474 if requested to do so. Add support for XMM registers
13475 using PT_GETXMMREGS.
13476 (store_inferior_registers): Only store integer registers
13477 if requested to do so. Add support for XMM registers
13478 using PT_SETXMMREGS.
13479 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13480 (store_inferior_registers): Remove.
13481 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13482 (fetch_elfcore_registers): New function.
13483 (i386nbsd_elfcore_fns): New.
13484 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13485 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13487 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13488 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13489 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13490 * config/i386/tm-nbsd.h: Update copyright years.
13491 (HAVE_SSE_REGS): Define.
13492 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13493 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13494 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13495 (SIGCONTEXT_PC_OFFSET): Remove.
13496 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13498 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13500 * configure.tgt: Remove powerpc-*-macos* target.
13501 * config/m68k/xm-mpw.h: Delete file.
13502 * config/xm-mpw.h: Delete file.
13503 * ser-mac.c: Delete file.
13504 * mpw-make.sed: Delete file.
13505 * mpw-config.in: Delete file.
13506 * mac-xdep.c: Delete file.
13507 * mac-gdb.r: Delete file.
13508 * mac-defs.h: Delete file.
13509 * mac-nat.c: Delete file.
13510 * config/powerpc/macos.mh: Delete file.
13511 * config/powerpc/macos.mt: Delete file.
13512 * config/powerpc/nm-macos.h: Delete file.
13513 * config/powerpc/tm-macos.h: Delete file.
13514 * source.c (openp, open_source_file): Remove obsolete code.
13515 * top.c (gdb_readline): Ditto.
13516 * utils.c (query): Ditto.
13517 * event-top.c (display_gdb_prompt): Ditto.
13518 * Makefile.in (ser-mac.o): Delete obsolete target.
13521 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13523 * defs.h (BIG_ENDIAN): Delete macro definition.
13524 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13525 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13526 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13527 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13528 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13529 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13530 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13531 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13532 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13533 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13534 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13535 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13536 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13537 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13538 * gdbarch.c: Re-generate.
13540 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13542 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13545 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13547 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13549 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13551 * value.h (value_ptr): Delete typedef.
13553 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13555 * i386nbsd-nat.c: Update copyright years.
13556 Include i386-tdep.h.
13558 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13560 * stabsread.c: Update copyright years.
13562 From Debashis Mahata <debashis.mahata@wipro.com>:
13563 (read_struct_fields): Deal with Sun C compiler erroneous stab
13564 output for structs and unions.
13567 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13569 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13572 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13574 * cp-abi.c: Fix whitespace.
13575 (baseclass_offset): New wrapper function.
13576 * cp-abi.h (baseclass_offset): Add prototype.
13577 (struct cp_abi_ops): Add baseclass_offset pointer.
13579 * valops.c (vb_match): Move to...
13580 * gnu-v2-abi.c (vb_match): here.
13581 * valops.c (baseclass_offset): Move to...
13582 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13584 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13586 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13587 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13588 * hpacc-abi.c (init_hpacc_ops): Likewise.
13590 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13592 * valops.c (find_overload_match): Accept obj as a
13593 reference parameter. Update it before returning.
13594 * value.h (find_overload_match): Update prototype.
13595 * eval.c (evaluate_subexp_standard): Pass object to
13596 find_overload_match by reference.
13598 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13600 * valarith.c: Replace value_ptr with struct value pointer. Remove
13601 register attribute from value declarations.
13604 * scm-lang.c (scm_lookup_name): Ditto.
13606 2002-01-03 Michael Snyder <msnyder@redhat.com>
13608 Abstract the functionality of iterating over mapped memory
13609 regions into a general purpose iterator function.
13610 * procfs.c (iterate_over_mappings): New function, general purpose
13611 iterator for memory sections.
13612 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13613 (solib_mappings_callback): New function, callback for above.
13614 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13615 (info_mappings_callback): New function, callback for above.
13617 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13619 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13621 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13622 * i386-tdep.c: Include "elf-bfd.h".
13623 (process_note_abi_tag_sections): New function.
13624 (i386_gdbarch_init): Add code to recognize various OS/ABI
13627 * maint.c (_initialize_maint_cmds): Add missing \ in
13630 For older changes see ChangeLog-2001
13636 version-control: never