1 2002-11-24 Andrew Cagney <ac131313@redhat.com>
3 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
4 default to get_frame_base.
5 * gdbarch.h, gdbarch.c: Regenerate.
6 * arch-utils.c (default_frame_address): Delete function.
7 * arch-utils.h (default_frame_address): Delete declaration
9 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
11 * varobj.c (find_frame_addr_in_frame_chain):
12 Use get_frame_base instead of FRAME_FP,
15 2002-11-19 Andrew Cagney <ac131313@redhat.com>
17 * frame.h (FRAME_FP): Delete macro.
18 (get_frame_base): New function declaration.
19 * frame.c (get_frame_base): New function.
20 (get_frame_id): Use ->frame.
21 (frame_find_by_id): Rewrite to use get_frame_id.
22 * blockframe.c: Use get_frame_base instead of FRAME_FP.
23 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
24 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
25 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
26 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
27 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
28 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
30 2002-11-24 Andrew Cagney <ac131313@redhat.com>
32 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
34 2002-11-24 Andrew Cagney <ac131313@redhat.com>
36 * frame.c (set_unwind_by_pc): Revert change below, use
38 (get_prev_frame): Ditto.
40 2002-11-24 Andrew Cagney <ac131313@redhat.com>
42 * dummy-frame.c (pc_in_dummy_frame): New function.
43 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
44 (find_dummy_frame): Update comment.
45 (generic_pop_current_frame): Use get_frame_type.
46 * dummy-frame.h (pc_in_dummy_frame): Declare.
47 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
48 (create_new_frame): Use pc_in_dummy_frame.
49 (get_prev_frame): Use pc_in_dummy_frame.
50 (frame_saved_regs_register_unwind): Use get_prev_frame.
51 (deprecated_generic_get_saved_register): Use get_prev_frame.
53 2002-11-23 Andrew Cagney <ac131313@redhat.com>
55 * blockframe.c (find_frame_addr_in_frame_chain): Move function
57 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
58 (varobj_create): Note that frame ID should be used.
59 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
61 2002-11-23 Andrew Cagney <ac131313@redhat.com>
63 * breakpoint.c: Include "gdb_assert.h".
64 (deprecated_frame_in_dummy): Assert that generic dummy frames are
66 * Makefile.in (breakpoint.o): Update dependencies.
67 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
68 deprecated_frame_in_dummy.
69 * stack.c (print_frame_info_base): Ditto.
71 (print_frame_info_base): Ditto. Delete dead code.
73 2002-11-23 Andreas Schwab <schwab@suse.de>
75 * Makefile.in (m68k_tdep_h): Define.
76 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
77 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
78 * m68k-tdep.c: Move register number enum ...
79 * m68k-tdep.h: ... to this new file and rename the constants from
80 E_* to M68K_*. All uses changed.
81 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
82 * abug-rom.c: Include "m68k-tdep.h". Use
83 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
84 * cpu32bug-rom.c: Likewise.
85 * dbug-rom.c: Likewise.
86 * m68k-tdep.c: Likewise.
87 * m68klinux-nat.c: Likewise.
88 * remote-est.c: Likewise.
89 * rom68k-rom.c: Likewise.
90 * config/m68k/tm-linux.h: Likewise.
92 2002-11-23 Andrew Cagney <ac131313@redhat.com>
94 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
95 dummy frame initialization code.
96 * mips-tdep.c (mips_gdbarch_init): Ditto.
98 2002-11-22 Christopher Faylor <cgf@redhat.com>
100 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
103 2002-11-22 Andrew Cagney <ac131313@redhat.com>
105 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
106 to default_frame_address.
107 * gdbarch.h, gdbarch.c: Re-generate.
109 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
110 or frame_locals_address to default_frame_address.
111 * m68k-tdep.c (m68k_gdbarch_init): Update.
112 * i386-tdep.c (i386_gdbarch_init): Update.
113 * frv-tdep.c (frv_gdbarch_init): Update.
114 * sh-tdep.c (sh_gdbarch_init): Update.
115 * v850-tdep.c (v850_gdbarch_init): Update.
116 * sparc-tdep.c (sparc_gdbarch_init): Update.
117 * mips-tdep.c (mips_gdbarch_init): Update.
118 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
119 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
120 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
122 * cris-tdep.c (cris_frame_args_address): Delete function.
123 (cris_frame_locals_address): Delete function.
124 (cris_gdbarch_init): Do not set frame_args_address or
125 frame_locals_address.
127 2002-11-22 Michael Snyder <msnyder@redhat.com>
129 * thread-db.c (thread_db_load): Tell the user what's going on
130 if dlopen fails on libthread_db.
132 2002-11-23 Andreas Schwab <schwab@suse.de>
134 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
135 invariant return values.
137 2002-11-22 Andreas Schwab <schwab@suse.de>
139 * valops.c (value_slice): Move declaration of `offset' to avoid
142 2002-11-22 Christopher Faylor <cgf@redhat.com>
144 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
145 (struct so_stuff): Add end_addr field.
146 (register_loaded_dll): Calculate and store end address of loaded dll.
147 (solib_address): New function.
148 (child_solib_loaded_library_pathname): Pass carefully constructed
149 section info to safe_symbol_file_add rather than ignoring it.
150 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
152 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
153 (child_create_inferior): Fix a compiler warning.
154 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
155 (solib_address): Declare new function.
157 2002-11-22 Andreas Schwab <schwab@suse.de>
159 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
162 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
164 * maint.c (_initialize_maint_cmds): Fix typo. From
165 Francesco Potorti` <pot@gnu.org>.
167 2002-11-21 Andrew Cagney <cagney@redhat.com>
169 * mips-tdep.c (mips_dump_tdep): Delete references to
170 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
171 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
172 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
173 * printcmd.c (build_address_symbolic): Delete calls to
174 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
175 (address_info): Ditto.
178 2002-11-19 Klee Dienes <kdienes@apple.com>
179 Adam Fedor <fedor@gnu.org>
181 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
182 the ability to explicitly specify the quote characters and word
183 break characters; if NULL is specified for either, use the old
184 behavior of using the characters used by the completer.
185 (skip_chars): New function. Convenience wrapper around
186 skip_quoted_chars to provide the original skip_chars behavior.
187 * completer.h (skip_quoted_chars): Add prototype.
189 2002-11-19 Andrew Cagney <ac131313@redhat.com>
191 Problems reported by Paul Eggert.
192 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
194 2002-11-19 Andreas Schwab <schwab@suse.de>
196 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
197 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
198 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
199 (m68k_linux_frame_saved_pc): Move to ...
200 * m68klinux-tdep.c: ... here. New file.
201 * Makefile.in (m68klinux-tdep.o): Add dependencies.
202 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
204 2002-11-19 Adam Fedor <fedor@gnu.org>
206 * objc-exp.y: Revert to old skip_quoted usage.
208 2002-11-19 Adam Fedor <fedor@gnu.org>
210 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
211 (objc_lang_h): Define.
212 (YYFILES): Add objc-exp.tab.c.
213 (local-maintainer-clean): Remove objc-exp.tab.c.
214 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
216 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
218 * p-exp.y (typecast rule): Add automatic dereference of
219 pascal classes if needed.
220 (THIS): Set current_type.
221 Automatically dereference pascal classes.
222 (typebase rule): Add ^typebase recognition.
224 2002-11-18 Adam Fedor <fedor@gnu.org>
226 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
227 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
228 (op_name): Handle OP_OBJC_SELF.
229 * Makefile.in (expprint.o): Add additional depends.
231 2002-11-18 Adam Fedor <fedor@gnu.org>
233 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
234 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
235 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
236 * objc-exp.y: Likewise.
238 2002-11-18 Adam Fedor <fedor@gnu.org>
240 * gdb/parser-defs.h: (struct objc_class_str): New structure
241 for parsing ObjC classes.
243 2002-11-18 Andrew Cagney <ac131313@redhat.com>
245 * stack.c (frame_relative_level): Copy function from here ...
246 * frame.c (frame_relative_level): ...to here.
248 2002-11-18 Andrew Cagney <ac131313@redhat.com>
250 * frame.h (enum frame_type): Define.
251 (get_frame_type): Declare.
252 (struct frame_info): Add field `type'. Delete field
253 signal_handler_caller.
254 (deprecated_set_frame_signal_handler_caller): Declare.
255 * frame.c (get_frame_type): New function.
256 (deprecated_set_frame_type): New function.
257 (create_new_frame): Set the frame's type.
258 (get_prev_frame): Similar.
259 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
260 * s390-tdep.c: Ditto.
261 * m68klinux-nat.c: Ditto.
262 * ns32k-tdep.c: Ditto.
263 * x86-64-linux-tdep.c: Ditto.
265 * rs6000-tdep.c: Ditto.
266 * ppc-linux-tdep.c: Ditto.
267 * i386-interix-tdep.c: Ditto.
268 * mips-tdep.c: Ditto.
269 * m68k-tdep.c: Ditto.
270 * hppa-tdep.c: Ditto.
271 * ia64-tdep.c: Ditto.
272 * cris-tdep.c: Ditto.
274 * alpha-tdep.c: Ditto.
275 * i386-tdep.c: Ditto.
278 * blockframe.c: Update.
279 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
280 deprecated_set_frame_type instead of signal_handler_caller.
281 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
282 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
283 * breakpoint.h: Delete FIXME suggesting get_frame_type.
285 2002-11-18 Klee Dienes <kdienes@apple.com>
287 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
289 2002-11-18 Klee Dienes <kdienes@apple.com>
291 * buildsym.c (pop_context): Add comment.
293 2002-11-18 Klee Dienes <kdienes@apple.com>
295 * buildsym.h (pop_context): Convert to function, defined in
297 * buildsym.c: Include gdb_assert.h.
298 (pop_context): Implement as C function. Add check for stack
300 * dbxread.c (process_one_symbol): Complain and stop processing
301 that symbol if we are already at the top of the context stack for
302 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
303 when processing N_RBRAC.
305 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
307 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
309 (struct target_waitstatus): Add opaque definition.
310 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
311 * exec.c (init_exec_ops): Likewise.
312 * fork-child.c (clone_and_follow_inferior): Remove.
313 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
314 * inferior.h (clone_and_follow_inferior): Remove prototype.
315 * infrun.c (follow_fork_mode_both): Remove.
316 (follow_fork_mode_kind_names): Remove commented out "both".
317 (follow_inferior_fork): Remove follow_fork_mode_both support.
318 * inftarg.c (child_clone_and_follow_inferior): Remove.
319 (child_post_follow_inferior_by_clone): Remove.
320 (init_child_ops): Don't set to_clone_and_follow_inferior
321 or to_post_follow_inferior_by_clone.
322 * target.c (default_clone_and_follow_inferior): Remove.
323 (cleanup_target): Don't set to_clone_and_follow_inferior
324 or to_post_follow_inferior_by_clone.
325 (find_default_clone_and_follow_inferior): Remove.
326 (init_dummy_target): Don't set to_clone_and_follow_inferior.
327 (debug_to_clone_and_follow_inferior): Remove.
328 (debug_to_post_follow_inferior_by_clone): Remove.
329 (setup_target_debug): Don't set to_clone_and_follow_inferior
330 or to_post_follow_inferior_by_clone.
331 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
332 and to_post_follow_inferior_by_clone.
333 (child_clone_and_follow_inferior): Remove prototype.
334 (child_post_follow_inferior_by_clone): Remove prototype.
335 (target_clone_and_follow_inferior): Remove macro.
336 (target_post_follow_inferior_by_clone): Remove macro.
337 (find_default_clone_and_follow_inferior): Remove prototype.
339 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
341 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
342 inferior_has_vforked, and inferior_has_execd instead of
343 target_has_forked, target_has_vforked, and target_has_execd.
344 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
345 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
346 (CHILD_WAIT): Define.
347 (child_wait): Add prototype.
348 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
350 (hpux_has_vforked): Likewise, from child_has_vforked.
351 (hpux_has_execd): Likewise, from child_has_execd.
352 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
353 (not_same_real_pid, child_wait): New, copied from inftarg.c.
354 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
355 and hpux_has_syscall_event instead of the target hooks.
356 * infrun.c (inferior_has_forked, inferior_has_vforked)
357 (inferior_has_execd): New functions.
358 * inftarg.c (not_same_real_pid): Remove.
359 (child_wait): Remove references to not_same_real_pid,
360 target_has_forked, target_has_vforked, target_has_execd,
361 and target_has_syscall_event.
362 (child_has_forked, child_has_vforked, child_has_execd)
363 (child_has_syscall_event): Remove.
364 (init_child_ops): Remove references to child_has_forked,
365 child_has_vforked, child_has_execd, and child_has_syscall_event.
366 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
367 (hpux_has_vforked): Likewise, from child_has_vforked.
368 (hpux_has_execd): Likewise, from child_has_execd.
369 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
370 * target.c (cleanup_target): Remove references to
371 to_has_forked, to_has_vforked, to_has_execd, and
372 to_has_syscall_event.
373 (update_current_target): Likewise.
374 (setup_target_debug): Likewise.
375 (debug_to_has_forked): Remove.
376 (debug_to_has_vforked): Remove.
377 (debug_to_has_execd): Remove.
378 (debug_to_has_syscall_event): Remove.
379 * target.h (struct target_ops): Remove to_has_forked.
380 to_has_vforked, to_has_execd, and to_has_syscall_event.
381 (child_has_forked, child_has_vforked, child_has_execd)
382 (child_has_syscall_event): Remove prototypes.
383 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
385 (target_has_forked, target_has_vforked, target_has_execd)
386 (target_has_syscall_event): Remove macros.
388 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
390 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
391 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
392 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
393 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
394 * target.c (cleanup_target): Remove reference to
395 to_can_follow_vfork_prior_to_exec.
396 (update_current_target): Likewise.
397 (debug_to_can_follow_vfork_prior_to_exec): Remove.
398 (setup_target_debug): Remove reference to
399 to_can_follow_vfork_prior_to_exec.
400 * target.h (struct target_ops): Remove
401 to_can_follow_vfork_prior_to_exec.
402 (child_can_follow_vfork_prior_to_exec): Remove prototype.
403 (target_can_follow_vfork_prior_to_exec): Remove definition.
404 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
406 * infrun.c (follow_vfork_when_exec): Remove.
407 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
408 (follow_exec): Likewise.
409 (handle_inferior_event): Likewise.
410 (keep_going): Likewise.
412 2002-11-15 Andrew Cagney <cagney@redhat.com>
414 * frame.c (generic_unwind_get_saved_register): Make static.
415 * frame.h (generic_unwind_get_saved_register): Delete declaration.
416 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
417 defaults to generic_unwind_get_saved_register.
418 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
419 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
420 * frv-tdep.c (frv_gdbarch_init): Ditto.
421 * i386-tdep.c (i386_gdbarch_init): Ditto.
422 * s390-tdep.c (s390_gdbarch_init): Ditto.
423 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
424 * v850-tdep.c (v850_gdbarch_init): Ditto.
425 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
426 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
427 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
429 2002-11-15 Andrew Cagney <cagney@redhat.com>
431 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
434 2002-11-15 Andrew Cagney <cagney@redhat.com>
436 * frame.h (sigtramp_saved_pc): Delete declaration.
437 * blockframe.c (sigtramp_saved_pc): Delete function.
438 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
439 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
440 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
441 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
443 2002-11-15 Andrew Cagney <ac131313@redhat.com>
445 * frame.c (frame_pc_unwind): New function.
446 (frame_saved_regs_pc_unwind): New function.
447 (frame_register_unwind): Pass unwind_cache instead of
448 register_unwind_cache.
449 (set_unwind_by_pc): Add unwind_pc parameter, set.
450 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
451 (get_prev_frame): Ditto.
452 * frame.h (frame_pc_unwind_ftype): Declare.
453 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
454 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
455 (frame_pc_unwind): Declare.
456 * dummy-frame.c (dummy_frame_pc_unwind): New function.
457 (struct dummy_frame): Add comment mentioning that values are for
459 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
460 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
461 (generic_file_frame_chain_valid): Ditto.
462 * stack.c (frame_info): Ditto.
464 2002-11-15 David Carlton <carlton@math.stanford.edu>
466 * linespec.c (locate_first_half): New function.
467 (decode_line_1): Move code into locate_first_half.
469 2002-11-15 Andrew Cagney <ac131313@redhat.com>
471 * complaints.h: Add comment explaining how to eliminate a
472 deprecated_complain call.
473 * complaints.h: Fix spelling errors.
475 2002-11-15 David Carlton <carlton@math.stanford.edu>
477 * printcmd.c: Remove #include "disasm.h".
479 2002-11-14 Andrew Cagney <ac131313@redhat.com>
481 * frame.h: Move the most relevant interface functions to the start
484 2002-11-14 Andrew Cagney <ac131313@redhat.com>
486 * regcache.h (deprecated_registers): Rename registers.
487 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
488 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
489 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
490 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
491 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
492 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
493 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
494 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
495 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
496 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
497 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
500 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
502 * utils.c (gdb_realpath): Add comment mentioning realpath with a
505 2002-11-13 Andrew Cagney <cagney@redhat.com>
507 * regcache.h (deprecated_read_register_bytes): Rename
509 (deprecated_write_register_bytes): Rename write_register_bytes.
510 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
511 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
512 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
513 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
514 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
515 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
516 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
517 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
518 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
519 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
520 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
521 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
522 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
523 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
525 2002-11-13 Jim Blandy <jimb@redhat.com>
527 * findvar.c (read_var_value): Doc fix.
529 2002-11-13 Andrew Cagney <cagney@redhat.com>
531 * regcache.c (struct regcache): Replace passthough_p with
533 (regcache_xmalloc): Initialize readonly_p.
534 (build_regcache): Initialize readonly_p.
535 (regcache_save): New function.
536 (regcache_restore): New function.
537 (regcache_cpy): Re-implement using regcache_save and
539 (regcache_raw_read): Update.
540 (regcache_cooked_read): When a read-only cache, checked for cached
541 pseudo register values.
542 (regcache_raw_write): Assert that the cache is not read-only.
543 Remove code handling a non-passthrough cache.
544 * regcache.h (regcache_save): Declare.
545 (regcache_restore): Declare.
547 2002-11-13 Andrew Cagney <cagney@redhat.com>
549 * regcache.c (struct regcache_descr): Add fields
550 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
551 (init_legacy_regcache_descr): Compute the size of a cooked
552 register cache and then assign that to sizeof_raw_registers. Set
553 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
554 (init_legacy_regcache_descr): Ditto.
556 2002-11-13 Andrew Cagney <cagney@redhat.com>
558 * regcache.c (register_buffer): Move to near start of file, update
560 (regcache_raw_read): Use.
561 (regcache_raw_write): Use.
562 (struct regcache): Rename raw_registers to registers and
563 raw_register_valid_p to register_valid_p.
564 (regcache_xmalloc): Update.
565 (regcache_xfree): Update.
566 (register_buffer): Update.
567 (regcache_cpy): Update.
568 (regcache_cpy_no_passthrough): Update.
569 (regcache_valid_p): Update.
570 (deprecated_grub_regcache_for_registers): Update.
571 (deprecated_grub_regcache_for_register_valid): Update.
572 (set_register_cached): Update.
573 (regcache_raw_write): Update.
575 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
577 * p-exp.y (name_not_typename): Use copy_name to
578 set current_type variable for fields of THIS.
580 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
582 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
583 * monitor.c (init_base_monitor_ops): Likewise.
584 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
585 * remote-array.c (init_array_ops): Likewise.
586 * remote-e7000.c (init_e7000_ops): Likewise.
587 * remote-es.c (init_es1800_ops): Likewise.
588 (init_es1800_child_ops): Likewise.
589 * remote-rdp.c (init_remote_rdp_ops): Likewise.
590 * remote-sim.c (init_gdbsim_ops): Likewise.
591 * remote-st.c (init_st2000_ops): Likewise.
592 * sol-thread.c (init_sol_core_ops): Likewise.
593 (init_sol_thread_ops): Likewise.
594 * v850ice.c (init_850ice_ops): Likewise.
595 * win32-nat.c (init_child_ops): Likewise.
596 * wince.c (init_child_ops): Likewise.
598 2002-11-12 Andrew Cagney <ac131313@redhat.com>
600 * utils.c (gdb_realpath): Make rp a constant pointer.
602 2002-11-12 Andrew Cagney <ac131313@redhat.com>
604 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
605 a constant buffer; cannonicalize_file_name(); realpath() with a
606 pathconf() defined buffer, xstrdup().
608 2002-11-12 Andrew Cagney <ac131313@redhat.com>
610 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
611 to hang2.C; hang3.c to hang3.C.
613 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
615 * findvar.c (read_var_value): Reenable TLS code.
617 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
618 Jim Blandy <jimb@redhat.com>
620 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
621 * target.c (update_current_target): Add
622 to_get_thread_local_address.
623 * target.h (to_get_thread_local_address): Export.
624 (target_get_thread_local_address): Define.
625 (target_get_thread_local_address_p): Define.
626 * thread-db.c: Include solib-svr4.h.
627 (td_thr_tls_get_addr_p): Define.
628 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
629 (thread_db_get_thread_local_address): New function.
630 (init_thread_db_ops): Initialize to_get_thread_local_address.
631 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
632 * configure: Regenerate.
633 * config.in: Regenerate.
635 2002-11-11 David Carlton <carlton@math.stanford.edu>
637 * linespec.c (set_flags): New function.
638 (decode_line_1): Move code into set_flags.
640 2002-11-11 David Carlton <carlton@math.stanford.edu>
642 * linespec.c (decode_line_1): Move chunks of code to separate
644 (initialize_defaults): New function.
645 (decode_indirect): New function.
647 2002-11-11 Andrew Cagney <ac131313@redhat.com>
649 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
650 instead of void_code_ptr.
651 (sigtramp_saved_pc): Ditto.
653 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
656 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
658 * gdbtypes.h (struct main_type): Move artificial flag out of
659 loc. New member of ``struct field'' named static_kind. Reduce
660 overloaded meaning of bitsize.
661 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
662 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
663 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
665 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
667 (template_to_fixed_record_type, template_to_static_fixed_type)
668 (to_record_with_fixed_variant_part): Likewise.
669 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
670 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
671 * dwarfread.c (struct_type, enum_type): Likewise.
672 * hpread.c (hpread_read_enum_type)
673 (hpread_read_function_type, hpread_read_doc_function_type)
674 (hpread_read_struct_type): Likewise.
675 * mdebugread.c (parse_symbol): Likewise.
677 2002-11-10 Andrew Cagney <ac131313@redhat.com>
679 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
680 * stack.c (print_frame_info_base): Update.
681 (print_frame_info_base, frame_info): Update.
682 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
683 (sparc_frame_saved_pc): Update.
684 * ada-lang.c (find_printable_frame): Update.
685 * breakpoint.c (deprecated_frame_in_dummy): Update.
687 2002-11-09 Mark Kettenis <kettenis@gnu.org>
689 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
691 (regmap): Extend to cover all registers.
692 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
693 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
695 (fetch_register, sore_register): Simplify.
696 (old_fetch_inferior_registers, old_store_inferior_registers):
698 (cannot_fetch_register, cannot_store_register): Change
699 implementation to use regmap array to decide which registers
700 cannot be fetched/stored. This removes $orig_eax from the
701 registers that cannot be fetched/stored.
702 (fetch_inferior_registers): Call fetch_register directly instead
703 of calling old_fetch_inferior_registers.
704 (store_inferior_registers): Call store_register directly instead
705 of calling old_store_inferior_registers.
706 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
707 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
708 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
710 2002-11-09 Klee Dienes <kdienes@apple.com>
712 * i387-tdep.c (i387_supply_register): When called with NULL as a
713 buffer, mark the register as not provided (to mirror the behavior
715 (i387_supply_fxsave): Ditto.
716 (i387_supply_fsave): Ditto (inherits the behavior from
717 i387_supply_register).
719 2002-11-09 Klee Dienes <kdienes@apple.com>
721 * blockframe.c (sigtramp_saved_pc): Use
722 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
723 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
724 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
726 2002-11-09 Andrew Cagney <ac131313@redhat.com>
728 * frame.c (get_prev_frame): Test prev_p to identify a previously
729 unwound frame. Initialize prev_p.
730 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
733 2002-11-09 Andrew Cagney <ac131313@redhat.com>
735 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
736 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
737 more comments. Zap dead code.
739 2002-11-09 Mark Kettenis <kettenis@gnu.org>
741 * infcmd.c (print_vector_info, print_float_info): Move code that
742 checks whether the target has any registers and whether there is a
743 selected frame up, such that it is also used if a target provides
744 multi-arch definitions of these functions.
746 2002-11-08 Andrew Cagney <ac131313@redhat.com>
748 * Makefile.in (DESTDIR): Define.
749 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
752 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
753 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
755 2002-11-08 Andrew Cagney <ac131313@redhat.com>
757 * i386-linux-tdep.c: Include "reggroups.h".
758 (i386_linux_register_reggroup_p): New function.
759 (i386_linux_init_abi): Set register_reggroup_p to
760 i386_linux_register_reggroup_p.
761 * i386-tdep.h (i386_register_reggroup_p): Declare.
762 * i386-tdep.c: Include "reggroups.h".
763 (i386_init_reggroups): New function.
764 (i386_add_reggroups): New function.
765 (i386_register_reggroup_p): New function.
766 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
767 (_initialize_i386_tdep): Call i386_init_reggroups.
768 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
771 2002-11-09 Mark Kettenis <kettenis@gnu.org>
773 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
774 request that's available in *BSD.
776 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
778 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
781 2002-11-08 Andrew Cagney <ac131313@redhat.com>
783 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
784 * dummy-frame.c (find_dummy_frame): Rename
785 generic_find_dummy_frame, make static. Return the dummy frame
786 instead of the regcache.
787 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
788 (cached_find_dummy_frame): New function. Use find_dummy_frame.
789 (dummy_frame_register_unwind): Rename
790 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
791 * dummy-frame.h (dummy_frame_register_unwind): Rename
792 generic_call_dummy_register_unwind.
794 2002-11-08 Mark Kettenis <kettenis@gnu.org>
796 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
797 except the inclusion of "i386/tm-i386.h", to...
798 * config/i386/nm-i386v42mp.h: ...here.
799 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
801 2002-11-08 Andrew Cagney <ac131313@redhat.com>
803 * Makefile.in (frame.o): Update dependencies.
804 * blockframe.c (current_frame, frame_obstack_alloc)
805 (frame_saved_regs_zalloc, get_current_frame)
806 (set_current_frame, create_new_frame)
807 (set_unwind_by_pc, get_next_frame)
808 (flush_cached_frames, reinit_frame_cache)
809 (frame_saved_regs_register_unwind)
810 (deprecated_generic_get_saved_register)
811 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
812 (_initialize_blockframe): Move frame code from here...
813 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
814 "annotate.h" and "dummy-frame.h".
815 (_initialize_frame): New function.
817 2002-11-08 Jim Blandy <jimb@redhat.com>
819 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
820 when we finish a function a context.
821 * buildsym.h (outermost_context_p): New macro.
822 (Bug analyzed by David Edelsohn.)
824 2002-11-08 Andrew Cagney <ac131313@redhat.com>
826 * blockframe.c: Include "dummy-frame.h".
827 (struct dummy_frame, dummy_frame_stack)
828 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
829 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
830 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
831 (generic_save_call_dummy_addr, generic_pop_current_frame)
832 (generic_pop_dummy_frame, generic_fix_call_dummy)
833 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
834 dummy frame code from here...
835 * dummy-frame.c: ...to here. New file.
836 * dummy-frame.h: New file.
837 (generic_call_dummy_register_unwind): Declare.
838 (generic_find_dummy_frame): Declare.
839 * Makefile.in (SFILES): Add dummy-frame.c.
840 (dummy-frame.o): Specify dependencies.
841 (dummy_frame_h): Define.
842 (COMMON_OBS): Add dummy-frame.o.
843 (blockframe.o): Update dependencies.
845 2002-11-08 Jim Blandy <jimb@redhat.com>
847 * dwarf2read.c (read_func_scope): Restore local_symbols and
848 param_symbols after we finish the function context. (Based on a
849 patch from David Edelsohn.)
851 2002-11-08 David Carlton <carlton@math.stanford.edu>
853 * linespec.c (symbol_found): New function.
854 (minsym_found): New function.
855 (decode_line_1): Separate out some code into separate functions.
857 2002-11-08 Joel Brobecker <brobecker@gnat.com>
859 * i386-tdep.c (i386_frameless_signal_p): Make non static for
860 the benefit of the interix target.
861 * i386-tdep.h (i386_frameless_signal_p): Declare.
863 2002-11-08 Andrew Cagney <ac131313@redhat.com>
865 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
866 declaration that snuck in from change below.
868 2002-11-06 Andrew Cagney <cagney@redhat.com>
870 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
872 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
873 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
874 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
875 (i386_mxcsr_regnum_p): new function. Use instead of
877 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
878 (i386_sse_regnum_p): Declare.
879 (i386_mxcsr_regnum_p): Declare.
880 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
881 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
882 (IS_FP_REGNUM): Update definition.
883 (IS_FPU_CTRL_REGNUM): Update definition..
884 (IS_SSE_REGNUM): Update definition..
885 * i386v-nat.c (register_u_addr): Update.
886 * go32-nat.c (fetch_register): Update.
887 (store_register): Update.
889 2002-11-07 Joel Brobecker <brobecker@gnat.com>
891 Preparation work to convert the hppa targets to multiarch partial.
893 * hppa-tdep.c: Add new functions replacing macro bodies from
894 config/pa/tm-hppa.h. These function will be used to initialize
895 the gdbarch structure. Import some comments from tm-hppa.h,
896 and place them where appropriate, to avoid loosing them when
897 we cleanup this file.
898 (hppa_reg_struct_has_addr): New function.
899 (hppa_inner_than): New function.
900 (hppa_stack_align): New function.
901 (hppa_pc_requires_run_before_use): New function.
902 (hppa_instruction_nullified): New function.
903 (hppa_register_byte): New function.
904 (hppa_register_virtual_type): New function.
905 (hppa_store_struct_return): New function.
906 (hppa_cannot_store_register): New function.
907 (hppa_frame_args_address): New function.
908 (hppa_frame_locals_address): New function.
909 (hppa_smash_text_address): New function.
910 (hppa_coerce_float_to_double): New function. Requires the inclusion
913 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
915 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
916 gdbarch-eligible macro to a call to the new associated function
917 created in hppa-tdep.c.
918 (INNER_THAN): Likewise.
919 (STACK_ALIGN): Likewise.
920 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
921 (INSTRUCTION_NULLIFIED): Likewise.
922 (REGISTER_BYTE): Likewise.
923 (REGISTER_VIRTUAL_TYPE): Likewise.
924 (STORE_STRUCT_RETURN): Likewise.
925 (CANNOT_STORE_REGISTER): Likewise.
926 (FRAME_ARGS_ADDRESS): Likewise.
927 (FRAME_LOCALS_ADDRESS): Likewise.
928 (SMASH_TEXT_ADDRESS): Likewise.
929 (COERCE_FLOAT_TO_DOUBLE): Likewise.
930 (ABOUT_TO_RETURN): Delete, as no longer used.
932 2002-11-07 Fernando Nasser <fnasser@redhat.com>
934 * printcmd.c (disassemble_command): Remove obsolete function.
935 (_initialize_printcmd): Do not create disassemble command here.
936 * cli/cli-cmds.c (disassemble_command): New function. Implements
938 (init_cli_cmds): Create disassemble command here instead.
940 2002-11-07 Andrew Cagney <ac131313@redhat.com>
942 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
944 2002-11-07 Andrew Cagney <ac131313@redhat.com>
946 * regcache.h (regcache_cooked_read_using_offset_hack)
947 (regcache_cooked_write_using_offset_hack): Delete declarations.
948 (register_changed): Delete declaration.
949 * regcache.c (regcache_cooked_read_using_offset_hack)
950 (regcache_cooked_write_using_offset_hack): Delete functions.
951 (cooked_xfer_using_offset_hack): Delete function.
952 (register_changed): Delete function.
954 2002-11-07 Jim Blandy <jimb@redhat.com>
956 * macroscope.c: #include "complaints.h".
957 (sal_macro_scope): Cope with filenames that appear in the symtabs,
958 but not in the macro table.
959 * Makefile.in (macroscope.o): Record dependency.
961 2002-11-07 Joel Brobecker <brobecker@gnat.com>
963 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
965 2002-11-07 Andrew Cagney <ac131313@redhat.com>
967 * regcache.c (deprecated_registers_fetched): Update.
968 * regcache.h (deprecated_registers_fetched): Rename
970 * remote-vxsparc.c (vx_read_register): Update.
971 * remote-vxmips.c (vx_read_register): Update.
972 * remote-vx68.c (vx_read_register): Update.
973 * irix5-nat.c (fetch_core_registers): Update.
974 * mipsm3-nat.c (fetch_inferior_registers): Update.
975 * sun3-nat.c (fetch_inferior_registers): Update.
976 * symm-nat.c (fetch_inferior_registers): Update.
977 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
978 (fetch_core_registers): Update.
979 (fetch_kcore_registers): Update.
980 * mips-nat.c (fetch_inferior_registers): Update.
981 * corelow.c (get_core_registers): Update.
982 * a68v-nat.c (fetch_inferior_registers): Update.
984 2002-11-06 Joel Brobecker <brobecker@gnat.com>
986 Put in place the framework necessary for multiarching the hppa targets.
987 * hppa-tdep.c (hppa_gdbarch_init): New function.
988 (hppa_dump_tdep): New function.
989 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
990 tdep structure dumper.
991 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
992 until the multi-arching conversion has partially been completed.
994 2002-11-06 Andrew Cagney <ac131313@redhat.com>
996 * valops.c (value_assign): Merge lval_register case into
997 lval_reg_frame_relative. Use frame_register and
998 regcache_cooked_write instead of get_saved_register and
999 write_register_bytes. After flushing the register cache, try to
1000 re-select the selected frame.
1002 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1004 * regcache.h (deprecated_register_valid): Rename register_valid.
1005 * regcache.c: Update.
1006 * ia64-aix-nat.c: Update.
1007 * i386gnu-nat.c: Update.
1008 * alpha-nat.c: Update.
1009 * sparc-nat.c: Update.
1010 * lynx-nat.c: Update.
1011 * remote-mips.c: Update.
1013 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1015 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1016 to end of file, to be more consistent with the pratice followed
1019 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1021 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1022 (print_float_info): Print registers in float_reggroup.
1023 (print_vector_info): Print registers in vector_reggroup.
1024 (default_print_registers_info): When all, print registers in
1025 all_reggroup. Otherwize, print registers in general_reggroup.
1026 (registers_info): Rewrite. Add support for register groups.
1029 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1031 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1033 (symtab_symbol_info): Remove eons old ifdeffed out code.
1034 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1037 2002-11-06 Theodore A. Roth <troth@openavr.org>
1039 * c-exp.y: Add missing semi-colons.
1040 * f-exp.y: Add missing semi-colons.
1041 * m2-exp.y: Add missing semi-colons.
1042 * p-exp.y: Add missing semi-colons.
1043 Add empty action to start rule to avoid a type clash error when
1044 building with bison >= 1.50.
1046 2002-11-06 Jim Blandy <jimb@redhat.com>
1048 * macrotab.h (struct macro_source_file): Doc fix.
1050 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1052 * varobj.c (child_exists, cplus_number_of_children): Change
1053 STREQ macro references to strcmp.
1054 (cplus_name_of_child): Change code to handle the fact that
1055 fields are not necessarily contiguous with regards to their
1056 access control. This is a fix for PR gdb/792.
1058 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1060 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1061 * gdbarch.h, gdbarch.c: Regnerate.
1062 * frame.h (frame_register): Declare.
1063 * frame.c (frame_register): New function.
1064 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1065 GET_SAVED_REGISTER, otherwize call
1066 generic_unwind_get_saved_register.
1067 (frame_register_read): Use frame_register instead of
1070 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1072 From Jim Ingham <jingham@apple.com>:
1073 * event-top.c (gdb_disable_readline): New function.
1074 (_initialize_event_loop): Move comment.
1076 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1078 * event-loop.c (start_event_loop): Add comment.
1081 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1083 * infcmd.c (default_print_registers_info): Do not call
1084 PRINT_REGISTER_HOOK.
1086 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1088 * sparc-tdep.c (sparc_print_register_hook): Make static.
1089 (sparc_print_registers_info): New function.
1090 (sparc_do_registers_info): New function.
1091 (sparclet_print_registers_info): New function.
1092 (sparclet_do_registers_info): New function.
1093 (do_sparc_print_registers_info): New function.
1094 (sparc_print_registers): New static function, clone of infcmd.c's
1095 default_print_registers_info.
1096 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1097 (sparclet_do_registers_info): Declare.
1098 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1099 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1101 (sparc_do_registers_info): Declare.
1102 (PRINT_REGISTER_HOOK): Delete macro.
1103 (sparc_print_register_hook): Delete declaration.
1105 2002-11-05 David Carlton <carlton@math.stanford.edu>
1107 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1109 (lookup_symbol_aux_local): New function.
1110 (lookup_symbol_aux_symtabs): New function.
1111 (lookup_symbol_aux_psymtabs): New function.
1113 2002-11-05 David Carlton <carlton@math.stanford.edu>
1115 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1116 previous values of 'objfile' and 'block'.
1118 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1120 * values.c (value_change_enclosing_type): Set
1121 enclosing_type field correctly also for the case where
1122 more memory needs to be allocated.
1124 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1126 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1129 * i387-tdep.c (i387_print_float_info): Replace calls to
1130 register_read and deprecated_read_register_gen with calls to
1131 frame_register_read, and make the necessary adjustments to the
1134 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1136 * gdbarch.sh (register_reggroup_p): Allow default value.
1137 * gdbarch.h, gdbarch.c: Regenerate.
1139 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1141 * regcache.h: Add coment indicating replacements for deprecated
1144 2002-11-02 Andrew Cagney <cagney@redhat.com>
1146 * reggroups.h, reggroups.c: New files.
1147 * regcache.c: Include "reggroups.h".
1148 (enum regcache_dump_what): Add `regcache_dump_groups'.
1149 (regcache_dump): Contract size of the "Type" column. When
1150 specified, dump the register's groups.
1151 (maintenance_print_register_groups): New function.
1152 (_initialize_regcache): Add command `maint print register-groups'.
1153 * Makefile.in (COMMON_OBS): Add reggroups.o
1154 (SFILES): Add reggroups.c.
1155 (reggroups_h): Define.
1156 (regcache.o, gdbarch.o): Update dependencies.
1157 (reggroups.o): Specify dependencies.
1158 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1159 Add opaque declaration for `struct reggroup' in generated .h file.
1160 Include "reggroups.h" in generated .c file.
1161 gdbarch.h, gdbarch.c: Re-generate.
1163 2002-11-02 Andrew Cagney <cagney@redhat.com>
1165 * regcache.h (deprecated_read_register_gen): Rename
1167 (deprecated_write_register_gen): Rename write_register_gen.
1168 * i387-tdep.c: Update.
1169 * x86-64-linux-nat.c: Update
1171 * thread-db.c: Update.
1172 * win32-nat.c: Update.
1173 * mips-tdep.c: Update.
1174 * d10v-tdep.c: Update.
1175 * cris-tdep.c: Update.
1176 * remote-sim.c: Update.
1177 * remote-rdi.c: Update.
1178 * remote-rdp.c: Update.
1181 * blockframe.c: Update.
1182 * x86-64-tdep.c: Update.
1183 * xstormy16-tdep.c: Update.
1184 * sh-tdep.c: Update.
1185 * s390-tdep.c: Update.
1186 * rs6000-tdep.c: Update.
1187 * sparc-tdep.c: Update.
1188 * i386-tdep.c: Update.
1189 * dwarf2cfi.c: Update.
1190 * regcache.c: Update.
1192 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1194 New interix-specific files:
1195 * config/i386/nm-interix.h: New file.
1196 * config/i386/interix.mh: New file.
1197 * config/i386/interix.mt: New file.
1198 * i386-interix-nat.c: New file.
1199 * i386-interix-tdep.c: New file.
1201 2002-11-01 Andrew Cagney <cagney@redhat.com>
1203 * frame.h (deprecated_generic_get_saved_register): Rename
1204 generic_get_saved_register.
1205 * blockframe.c (deprecated_generic_get_saved_register): Update.
1206 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1207 (xstormy16_frame_saved_register): Update.
1208 * sh-tdep.c (sh_gdbarch_init): Update.
1209 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1210 * ia64-tdep.c (ia64_get_saved_register): Update.
1211 * cris-tdep.c (cris_gdbarch_init): Update.
1212 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1213 * arm-tdep.c (arm_gdbarch_init): Update.
1215 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1217 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1219 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1221 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1222 trampolines in sigaction.
1224 2002-10-31 Andrew Cagney <cagney@redhat.com>
1226 * h8300-tdep.c: Include "gdb_assert.h".
1227 (h8300_print_register): Add gdbarch, file and frame parameters.
1228 Use frame_read_unsigned_register to read the register's value.
1229 Use fprintf_filtered to display output.
1230 (h8300_print_registers_info): Replace h8300_do_registers_info.
1231 (h8300_gdbarch_init): Set print_registers_info.
1233 2002-10-31 Andrew Cagney <cagney@redhat.com>
1235 * frame.c (frame_read_unsigned_register): New function.
1236 (frame_read_signed_register): New function.
1237 * frame.h (frame_read_unsigned_register): Declare.
1238 (frame_read_signed_register): Declare.
1240 2002-10-31 Andrew Cagney <cagney@redhat.com>
1242 * h8500-tdep.c (h8500_print_registers_info): New static function,
1243 clone of infcmd.c's default_print_registers_info.
1244 (h8500_do_registers_info): New funtion.
1245 (h8500_print_register_hook): Rename print_register_hook, make
1248 * config/h8500/tm-h8500.h: Update copyright.
1249 (DEPRECATED_DO_REGISTERS_INFO): Define.
1250 (h8500_do_registers_info: Declare.
1251 (PRINT_REGISTER_HOOK): Delete macro.
1252 (print_register_hook): Delete function.
1254 2002-10-31 Andrew Cagney <cagney@redhat.com>
1256 * z8k-tdep.c (z8k_print_register_hook): Make static.
1257 (z8k_print_registers_info): New static function, clone of
1258 infcmd.c's default_print_registers_info.
1259 (z8k_do_registers_info): New function. Wrap
1260 z8k_print_registers_info.
1261 * config/z8k/tm-z8k.h: Update copyright.
1262 (PRINT_REGISTER_HOOK): Delete macro.
1263 (z8k_print_register_hook): Delete declaration.
1264 (DEPRECATED_DO_REGISTERS_INFO): Define.
1265 (z8k_do_registers_info): Declare.
1267 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1269 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1270 as this is already provided by value.h, and was actually causing
1271 a compilation error because of a conflict in parameter type
1272 declaration due to a missing const keyword.
1273 (low_text_segment_addres): Fix a compilation warning.
1275 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1277 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1278 registers without a name.
1279 (mips_linux_cannot_store_register): Don't store registers without
1282 2002-10-28 David Carlton <carlton@math.stanford.edu>
1284 * symtab.c (find_addr_symbol): Delete. (It was already commented
1286 * symtab.h: Delete prototype for find_addr_symbol.
1288 2002-10-26 Andrew Cagney <cagney@redhat.com>
1290 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1292 gdbarch.h, gdbarch.c: Re-generate.
1293 * infcmd.c (default_print_registers_info): Update reference.
1294 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1295 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1296 * sh-tdep.c (sh_gdbarch_init): Ditto.
1297 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1298 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1300 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1302 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1303 cfi_init_extra_frame_info.
1304 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1305 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1307 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1308 target where necessary. Add more comments and remove the ones
1309 that don't provide any useful information.
1311 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1312 deprecated_read_register_dummy with
1313 frame_unwind_unsigned_register.
1315 * i386-tdep.c (i386_extract_struct_value_address): Use
1316 regcache_raw_read_unsigned instead of
1317 regcache_cooked_read_unsigned since we know that the register
1318 we're reading isn't a pseudo register. Rename variable 'val' into
1319 the more descriptive 'addr'.
1321 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1322 (x86_64_push_return_address): Add comment.
1323 (x86_64_pop_frame): Make static.
1324 (examine_argument): Clarify comment.
1325 (x86_64_skip_prologue): Make prolog_expact variable static.
1327 * dwarf2cfi.c: Fix some formatting problems.
1328 (context_cpy, read_encoded_pointer): Clarify comments.
1330 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1331 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1332 i386 target back into x86_64_gdbarch_init. Add some comments and
1333 remove meaningless ones.
1335 2002-10-25 Andrew Cagney <cagney@redhat.com>
1337 * complaints.h (struct deprecated_complaint): Rename `struct
1339 * complaints.c (complain): Update.
1340 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1341 incorrect comment indicating that "symfile.h" was being included
1342 for the `struct complaint' definition.
1343 * remote-vx.c: Update.
1344 * objc-lang.c: Update.
1345 * xcoffread.c: Update.
1347 * mdebugread.c: Update.
1348 * stabsread.c: Update.
1349 * dwarf2read.c: Update.
1350 * dwarfread.c: Update.
1351 * elfread.c: Update.
1352 * coffread.c: Update.
1353 * stabsread.h: Update.
1354 * dbxread.c: Update.
1355 * buildsym.c: Update.
1356 * gdbtypes.c: Update.
1357 * macrotab.c: Update.
1359 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1361 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1362 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1363 (x86_64_init_abi): ...new function.
1365 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1366 * i386v-nat.c: Include "i386-tdep.h".
1368 2002-10-25 Andrew Cagney <cagney@redhat.com>
1370 * gdbtypes.c (address_space_name_to_int): Update.
1371 (address_space_int_to_name): Update.
1372 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1373 multi-arch predicate.
1374 (address_class_name_to_type_flags): Ditto.
1375 * gdbarch.h, gdbarch.c: Re-generate.
1377 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1379 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1381 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1383 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1385 * symtab.h (INIT_SAL): Delete macro.
1387 * symtab.c (init_sal): New function.
1389 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1390 to init_sal function call.
1391 (find_sal_from_funcs_and_line): Ditto.
1392 (all_sals_for_line): Ditto.
1393 * breakpoint.c (create_internal_breakpoint): Ditto.
1394 (create_fork_vfork_event_catchpoint): Ditto.
1395 (create_exec_event_catchpoint): Ditto.
1396 (parse_breakpoint_sals): Ditto.
1397 (watch_command_1): Ditto.
1398 (handle_gnu_4_16_catch_command): Ditto.
1399 (clear_command): Ditto.
1400 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1401 * infcmd.c (run_stack_dummy): Ditto.
1402 * infrun.c (process_event_stop_test): Ditto.
1403 (check_sigtramp2): Ditto.
1404 (step_over_function): Ditto.
1405 * linespec.c (decode_line_2): Ditto.
1406 (decode_line_1): Ditto.
1407 * source.c (line_info): Ditto.
1408 * symtab.c (find_pc_sect_line): Ditto.
1410 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1412 * dwarf2cfi.c (struct context)
1413 (struct context_reg): Moved to dwarf2cfi.h
1414 (context_alloc, frame_state_alloc, context_cpy):
1415 Made extern instead of static, removed prototypes.
1416 * dwarf2cfi.h (struct context)
1417 (struct context_reg): New, moved from dwarf2cfi.c
1418 (context_alloc, frame_state_alloc, context_cpy):
1420 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1421 Changed from static to extern.
1422 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1423 (LINUX_SIGCONTEXT_FP_OFFSET)
1424 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1425 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1426 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1427 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1428 set_gdbarch_*() calls now use x86-64 specific functions
1429 instead of DWARF2 CFI ones.
1430 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1431 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1432 (x86_64_init_extra_frame_info): New prototypes.
1434 2002-10-23 David Carlton <carlton@math.stanford.edu>
1436 * linespec.c: #include "parser-defs.h".
1437 Delete prototype for find_template_name_end.
1438 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1440 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1442 * NEWS: add recent mi fixes.
1443 * varobj.c (struct varobj): Add new "updated" flag.
1444 (new_variable): Default "updated" flag to 0.
1445 (varobj_set_value): Set "updated" flag to 1 if value
1447 (varobj_update): Check varobj "updated" flag before
1448 comparing old and refreshed values. Fix for
1451 2002-10-23 David Carlton <carlton@math.stanford.edu>
1453 * parse.c (parse_exp_1): Use BLOCK_START.
1454 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1456 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1458 2002-10-23 David Carlton <carlton@math.stanford.edu>
1460 * symtab.c: Delete cplusplus_hint.
1461 Delete prototype for find_template_name_end.
1463 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1465 * symtab.h: Update comment.
1467 2002-10-23 Michael Snyder <msnyder@redhat.com>
1469 * printcmd.c (address_info): Restore quotes in output.
1470 * valops.c (value_of_local): Restore quotes in error message.
1472 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1474 * symtab.c (symbol_demangled_name): New function.
1475 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1476 turning most of it into a function.
1477 (symbol_demangled_name): Export.
1479 2002-10-23 Michael Snyder <msnyder@redhat.com>
1481 * valops.c (value_of_local): Restore quotes in error message.
1483 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1485 * symtab.c (symbol_init_language_specific): New function.
1486 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1487 turning most of it into a function.
1488 (symbol_init_language_specific): Export.
1490 2002-10-23 David Carlton <carlton@math.stanford.edu>
1492 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1493 (dwarf_attr_name): Ditto.
1494 (dwarf_type_encoding_name): Ditto.
1495 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1496 (process_die): Handle DW_TAG_namespace,
1497 DW_TAG_imported_declaration, DW_TAG_imported_module.
1498 (read_namespace): New function.
1500 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1502 * configure.in: Define NEW_PROC_API on Interix too.
1503 * configure: Regenerate.
1505 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1507 * configure: Regenerate using the proper version of autoconf.
1509 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1511 * findvar.c (read_var_value): Temporarily disable TLS code, until
1512 complete TLS support is added.
1514 2002-10-21 Jim Blandy <jimb@redhat.com>
1515 Elena Zannoni <ezannoni@redhat.com>
1517 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1518 for thread local storage locations.
1519 (struct symbol): Add objfile field.
1520 (SYMBOL_OBJFILE): Define.
1521 * dwarf2read.c (is_thread_local): New static variable.
1522 (new_symbol): If variable is in thread local fill in address class
1523 and objfile appropriately.
1524 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1526 * printcmd.c (address_info): Print the information for thread
1527 local storage variable.
1528 * findvar.c (read_var_value): In case of thread local variable,
1529 defer to the target vector code to compute address.
1531 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1533 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1534 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1536 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1538 * symtab.h (address_class): Rename
1539 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1540 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1541 * printcmd.c (address_info): Ditto.
1542 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1544 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1546 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1547 DBREG_DRX macro to acces debug registers.
1549 * Makefile.in (i386obsd-tdep.o): New target.
1551 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1552 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1554 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1555 * config/i386/obsd.mt: New file.
1556 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1557 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1558 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1559 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1560 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1561 * i386obsd-tdep.c: New file.
1563 2002-10-19 Adam Fedor <fedor@gnu.org>
1565 * objc-exp.y (name_not_typename): Fix invalid comment.
1567 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1569 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1570 to allocate partial syms and macro byte caches.
1572 2002-10-18 David Carlton <carlton@math.stanford.edu>
1574 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1576 2002-10-18 Adam Fedor <fedor@gnu.org>
1578 * stabsread.c (find_name_end): New function.
1579 (define_symbol): Use it.
1581 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1583 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1584 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1585 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1586 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1588 2002-10-17 David Carlton <carlton@math.stanford.edu>
1590 * symfile.h: Add opaque declaration for struct obstack.
1591 Declare obsavestring to take a const char *.
1592 * symfile.c (obsavestring): Make first argument a const char *.
1594 2002-10-16 Adam Fedor <fedor@gnu.org>
1596 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1597 names when matching breakpoints in current file.
1599 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1601 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1602 (read_tag_pointer_type): Add address class support.
1603 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1604 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1606 * gdbarch.h, gdbarch.c: Regenerate.
1607 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1608 (make_type_with_address_space, recursive_type_dump): Add address
1610 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1611 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1612 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1614 2002-10-16 Klee Dienes <kdienes@apple.com>
1616 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1617 to get the last character of a char[] buffer, not
1618 name[sizeof(vptr_name)-1].
1620 2002-10-14 Adam Fedor <fedor@gnu.org>
1622 * symtab.h: New objc_specific struct.
1623 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1624 (SYMBOL_DEMANGLED_NAME): Likewise.
1626 2002-10-14 Adam Fedor <fedor@gnu.org>
1628 * symfile.c (init_filename_language_table): Add ObjC file extension.
1630 2002-10-14 Adam Fedor <fedor@gnu.org>
1632 * utils.c (puts_filtered_tabular): New function.
1633 (fprintf_symbol_filtered): Get ObjC demangled name.
1634 * defs.h (puts_filtered_tabular): Declared.
1636 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1638 * c-lang.h (c_type_print_varspec_prefix): Delete.
1639 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1640 ``need_post_space'' parameter. Adjust all callers.
1642 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1644 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1645 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1646 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1647 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1649 2002-10-13 Adam Fedor <fedor@gnu.org>
1651 * source.c (print_source_lines): Update comments.
1653 2002-10-13 Adam Fedor <fedor@gnu.org>
1655 * valops.c (value_of_local): New function.
1656 (value_of_this): Use it.
1657 * value.h (value_of_local): Declared.
1659 2002-10-13 Adam Fedor <fedor@gnu.org>
1661 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1662 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1664 2002-10-12 Adam Fedor <fedor@gnu.org>
1666 * language.c (binop_result_type): Add language_objc to case.
1667 (integral_type): Likewise.
1668 (character_type): Likewise.
1669 (string_type): Likewise.
1670 (boolean_type): Likewise.
1671 (structured_type): Likewise.
1672 (binop_type_check): Likewise.
1674 2002-10-11 Adam Fedor <fedor@gnu.org>
1676 * printcmd.c (address_info): Print 'self' for ObjC.
1678 2002-10-11 Adam Fedor <fedor@gnu.org>
1680 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1683 2002-10-11 Adam Fedor <fedor@gnu.org>
1685 * language.h (CAST_IS_CONVERSION): Add language_objc.
1687 2002-10-11 Adam Fedor <fedor@gnu.org>
1689 * defs.h (enum language): Add language_objc.
1691 2002-10-11 Klee Dienes <kdienes@apple.com>
1693 * corefile.c (read_memory_typed_address): New function.
1694 * gdbcore.h (read_memory_typed_address): Add prototype.
1695 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1696 to read a value destined for a CORE_ADDR, not read_memory_integer.
1697 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1698 (f77_get_dynamic_lowerbound): Ditto.
1700 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1702 * utils.c (string_to_core_addr): After turning string into
1703 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1704 which will do necessary sign-extension, etc.
1706 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1708 * c-exp.y (THIS): Delete token and grammar rule.
1709 (yylex): Don't return THIS.
1710 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1711 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1712 * demangle.c (cplus_markers): Update comment. Put '$'
1713 first. Remove CPLUS_MARKER.
1714 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1715 * jv-exp.y (THIS): Delete token and grammar rule.
1716 (yylex): Don't return THIS.
1717 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1718 * objc-exp.y (THIS): Delete token and grammar rule.
1719 (yylex): Don't return THIS.
1720 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1721 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1722 (read_member_functions): Likewise for opname.
1723 (read_tilde_fields): Use is_cplus_marker.
1725 * defs.h (CPLUS_MARKER): Don't define.
1726 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1727 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1728 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1729 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1730 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1732 * config/i386/tm-i386v4.h: Delete file.
1733 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1734 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1735 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1736 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1737 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1738 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1739 * config/i386/i386v4.mt (TM_FILE): Likewise.
1740 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1742 2002-10-10 Marko Mlinar <markom@opencores.org>
1744 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1745 accidentially not commited 2002-10-09
1746 * gdbarch.h, gdbarch.c: Re-generate.
1748 2002-10-09 Marko Mlinar <markom@opencores.org>
1750 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1751 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1752 * gdbarch.h, gdbarch.c: Re-generate.
1754 2002-10-08 Petr Sorfa <petrs@caldera.com>
1756 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1758 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1759 so we can work on more than one compilation unit at a time. This
1760 helps prepare GDB to handle inter-CU die references.
1761 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1762 the code to be defined before struct comp_unit_head.
1763 (comp_unit_head): Added new members - offset, cu_head,
1764 begin_die, next and dwarf2_abbrevs.
1765 (dwarf2_abbrevs): Removed single static var; now member of
1766 struct comp_unit_head.
1767 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1769 (psymtab_to_symtab_1): Changed to work with the new
1770 struct comp_unit_head.
1771 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1772 constructs the dwarf2_abbrevs[] inside the cu_header.
1773 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1774 dwarf2_abbrev table to clean up.
1775 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1776 handling of dwarf2_abbrevs inside the cu_header.
1777 (read_partial_die): Now supports the call to the new
1778 dwarf2_lookup_abbrev.
1779 (read_full_die): Now supports the call to the new
1780 dwarf2_lookup_abbrev.
1782 2002-10-06 Christopher Faylor <cgf@redhat.com>
1784 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1785 insure that shell variables, such as "transformed_name" are propagated
1786 to later shell statements in rule.
1788 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1790 * config/i386/nm-i386sco.h: Add protection against
1791 multiple-inclusion. Include "i386/nm-i386v.h".
1792 (REGISTER_U_ADDR): Remove define.
1793 (i386_register_u_addr): Remove prototype.
1795 2002-10-04 Michael Snyder <msnyder@redhat.com>
1797 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1798 before treating it as a single-step event.
1800 2002-10-03 Adam Fedor <fedor@gnu.org>
1802 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1803 (objc_demangle): Remove assignment in if statements, Replace
1805 (add_msglist): Likewise.
1806 (end_msglist): Likewise.
1807 (complare_selectors): Likewise.
1808 (selectors_info): Likewise.
1809 (compare_classes): Likewise.
1810 (classes_info): Likewise.
1811 (print_object_command): Likewise.
1812 (find_objc_msgcall_submethod): Replace PTR with void *.
1813 * objc-lang.h: Remove check for __STDC__.
1815 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1817 * ui-out.h (ui_out_field_fmt_int): New prototype.
1818 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1819 of field width and alignment.
1820 * stack.c (print_frame_info_base): When printing frame level, use
1821 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1824 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1826 * MAINTAINERS: Add self to Write After Approval list.
1828 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1830 * infcmd.c (interrupt_target_command_wrapper): Delete.
1831 (interrupt_target_command): Make non static.
1832 (nofp_registers_info): Make static.
1833 * stack.c (return_command_wrapper): Delete.
1834 (return_command): Make non static.
1836 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1838 * event-top.c (gdb_setup_readline): New function. Code moved from
1839 _initialize_event_loop().
1840 (_initialize_event_loop): Call gdb_setup_readline().
1842 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1844 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1845 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1846 * gdbarch.h, gdbarch.c: Re-generate.
1848 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1851 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1853 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1854 of fill_in_vptr_fieldno.
1856 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1858 * inferior.h (registers_info, stepi_command, nexti_command,
1859 continue_command, interrupt_target_command): Export from infcmd.c.
1860 * frame.h (args_info, selected_frame_level_changed_hook,
1861 return_command): Export from stack.c.
1862 * v850ice.c (stepi_command, nexti_command, continue_command): use
1863 prototypes from inferior.h.
1864 * tracepoint.c (registers_info, args_info, locals_info): Use
1865 prototypes from frame.h and inferior.h.
1866 * Makefile.in (mi-main.o): Add dependency on frame.h.
1868 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1870 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1871 value in register 3 adjusted by ppc_gp0_regnum.
1873 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1875 2002-10-02 Marko Mlinar <markom@opencores.org>
1877 * MAINTAINERS: Add myself to the Write After Approval list.
1879 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1881 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1882 of the section for the N64 ABI, fixed.
1884 * config/mips/tm-irix6.h: Include solib.h.
1886 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1888 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1891 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1893 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1894 and that "mi0" syntax has been removed.
1896 2002-09-30 David Carlton <carlton@math.stanford.edu>
1898 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1899 * ppc-sysv-tdep.c: #include "gdb_string.h".
1900 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1903 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1905 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1906 "vrsave"'s register number.
1908 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1910 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1911 use frame_unwind_signed_register to obtain the PC.
1912 (mips_frame_chain): Handle a generic dummy frame.
1913 (mips_init_extra_frame_info): When a generic dummy frame, don't
1914 re-compute the frame base.
1915 (mips_pop_frame): Handle generic dummy frames.
1916 (mips_gdbarch_init): When generic dummy frames, set
1917 use_generic_dummy_frames, push_dummy_frame to
1918 generic_push_dummy_frame, pc_in_call_dummy to
1919 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1920 generic_save_dummy_frame_tos.
1922 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1924 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1925 against TOP when TOP was explictly set.
1926 (generic_push_dummy_frame): Set TOP to zero.
1928 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1930 * event-loop.c (start_event_loop): Rename variable 'result' to
1931 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1933 2002-09-30 Keith Seitz <keiths@redhat.com>
1935 * gdb-events.sh (selected_thread_changed): New event.
1936 * gdb-events.c: Regenerated.
1937 * gdb-events.h: Regenerated.
1939 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1941 * MAINTAINERS: Add self to Write After Approval list.
1943 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1945 * disasm.c: New file.
1946 * disasm.h: New file.
1947 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1948 (compare_lines): Ditto.
1949 (dump_insns): Ditto.
1950 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1952 (do_assembly_only): Ditto.
1953 (do_disassembly): Renamed to gdb_disassembly and moved to
1954 disasm.c. Sdded uiout argument.
1955 * Makefile.in: Add new files. Reorder SFILES list. Update
1956 dependencies. Include libgdb.a later in the insight executable.
1958 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1960 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1961 bfd/elf64-alpha-fbsd.c.
1963 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1965 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1968 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1970 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1972 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1974 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1975 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1976 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1977 (S_msg_sig_post_reply): Ditto.
1979 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1981 * sh-tdep.c (sh_use_struct_convention): Use definition according
1983 (sh_push_arguments): Store in register with correct endianess.
1984 (sh_default_store_return_value): Ditto.
1985 (sh_gdbarch_init): Set sizeof long double to 8.
1987 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1989 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1990 Fix some whitespace problems.
1992 2002-09-27 David Carlton <carlton@math.stanford.edu>
1994 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1995 (mcore-tdep.o): Ditto.
1996 (ns32k-tdep.o): Ditto.
1997 (ns32knbsd-tdep.o): Ditto.
1999 (vax-tdep.o): Ditto.
2000 * cris-tdep.c: #include "gdb_string.h"
2001 * mcore-tdep.c: Ditto.
2002 * ns32k-tdep.c: Ditto.
2003 * ns32knbsd-tdep.c: Ditto.
2005 * vax-tdep.c: Ditto.
2007 2002-09-27 David Carlton <carlton@math.stanford.edu>
2009 * config/djgpp/fnchange.lst: Add entries for
2010 gdb/testsuite/gdb.c++/m-static files.
2012 2002-09-27 Jim Wilson <wilson@redhat.com>
2014 * MAINTAINERS: Add myself to the Write After Approval list.
2016 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2018 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2021 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2023 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2026 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2028 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2029 (rs6000_struct_return_address): Delete variable.
2030 (rs6000_store_struct_return): Update.
2031 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2032 deprecated_extract_struct_value_address.
2033 (rs6000_frame_align): New function.
2034 (rs6000_gdbarch_init): Set frame_align.
2036 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2038 From Grace Sainsbury <graces@redhat.com>:
2039 * Makefile.in (gdbtk-main.o): New target.
2040 (gdb.o): New target.
2042 (main.o): Update dependencies.
2043 (gdb$(EXEEXT)): Add gdb.o.
2044 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2045 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2046 (SUBDIR_GDBTK_CLEAN): Set.
2047 (install-gdbtk): Install the insight binary.
2048 (uninstall-gdbtk): New target.
2049 (all-gdbtk, clean-gdbtk): New rule.
2050 * top.c (use_windows): Default to zero.
2051 * main.c: Include "main.h".
2053 (struct captured_main_args): Delete.
2054 (gdb_main): New function.
2058 2002-09-25 Andrew Cagney <cagney@redhat.com>
2060 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2061 (frame_map_regnum_to_name): New function.
2062 (frame_map_name_to_regnum): New function.
2063 * frame.h (frame_map_name_to_regnum): Declare.
2064 (frame_map_regnum_to_name): Declare.
2065 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2066 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2067 * parse.c: Do not include "builtin-regs.h".
2068 (target_map_name_to_register): Delete function.
2069 (write_dollar_variable): Use frame_map_name_to_regnum.
2070 * parser-defs.h (target_map_name_to_register): Delete declaration.
2071 * expprint.c: Include "frame.h".
2072 (print_subexp): Use frame_map_regnum_to_name.
2073 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2074 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2076 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2078 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2079 wasn't saved, and the next innermost frame is a dummy, return the
2080 dummy frame's link register.
2082 2002-09-24 Jim Blandy <jimb@redhat.com>
2084 Fix from Paul Breed:
2085 * main.c (captured_main): Add a `break' after the case for 'b'.
2087 2002-09-24 Keith Seitz <keiths@redhat.com>
2089 * varobj.c (c_type_of_child): Use get_target_type instead
2090 of TYPE_TARGET_TYPE.
2092 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2094 * source.c (get_current_or_default_source_symtab_and_line): Remove
2096 (set_default_source_symtab_and_line): New function. Attempts to
2097 determine a source file to list lines from if one is not currently
2099 (get_current_source_symtab_and_line): Initialize sal.pc and
2101 (set_current_source_symtab_and_line): Mark argument as const.
2102 * source.h: Update declarations and comments.
2103 * linespec.c (decode_line_1): Replace call to removed routine above.
2104 * stack.c (print_frame_info_base): Ditto.
2105 * cli/cli-cmds.c (edit_command): Ditto.
2106 (list_command): Ditto.
2108 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2110 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2111 sal.pc and sal.end fields.
2112 (get_current_or_default_source_symtab_and_line): Ditto.
2113 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2114 so we do not cause a new source symtab to be searched for (reverting an
2115 unintentional change from the 2002-09-20 patch).
2116 * scm-lang.c (scm_unpac): Ditto.
2118 2002-09-21 Andrew Cagney <cagney@redhat.com>
2120 * complaints.c (symfile_explanations): Remove new-line from
2121 ``isolated_message''.
2122 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2123 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2125 2002-09-20 Nick Clifton <nickc@redhat.com>
2127 * NEWS: Announce that V850EA ISA is no longer supported.
2128 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2130 2002-09-20 David Carlton <carlton@math.stanford.edu>
2132 * Makefile.in (c-lang.o): Correct dependencies.
2133 (utils.o): Gather dependencies.
2135 * c-lang.c: #include "gdb_string.h"
2137 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2139 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2140 * cli/cli-cmds.c (list_command): New function. Implements the new
2142 (_init_cli_cmds): Add new command definition.
2143 * gdb.1: Document edit command.
2144 * doc/gdb.texinfo: Document edit command.
2146 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2148 * source.c: Make global variables current_source_symtab and
2149 current_source_line static.
2150 (list_command): Moved to cli/cli-cmds.c.
2151 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2152 (get_first_line_listed): New accessor function.
2153 (get_lines_to_list): New accessor function.
2154 (get_current_source_symtab_and_line): New function. Retrieves the
2155 position in the source code that we consider current.
2156 (get_current_or_default_source_symtab_and_line): New function.
2157 Like the above but attempts to determine a default position if one
2158 is not currently defined.
2159 (set_current_source_symtab_and_line): New function. Sets the source
2160 code position considered current and returns the previously set one.
2161 (clear_current_source_symtab_and_line): Reset stored information about
2162 a current source line.
2163 (_initialize_source): Remove registration for the "list" command and
2165 * source.h: Add declarations for the new functions above.
2166 * symtab.h: Remove declarations for the global variables mentioned
2168 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2169 obtain current source line.
2170 * linespec.c (decode_line_1): Ditto.
2171 * macroscope.c (default_macro_scope): Ditto.
2172 * scm-lang.c (scm_unpac): Ditto.
2173 * stack.c (print_frame_info_base): Ditto.
2174 * symfile.c (clear_symtab_users): Ditto.
2175 * symtab.c (decode_line_spec): Ditto.
2176 * cli/cli-cmds.c (list_command): Moved here from source.c.
2177 (ambiguous_line_spec): Moved here from source.c.
2178 (_init_cli_cmds): Add definition for "list" and its alias.
2179 * Makefile.in: Update dependencies.
2181 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2183 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2184 with what gcc thinks is correct.
2186 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2188 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2189 multiple register push instruction.
2191 2002-09-19 Jim Blandy <jimb@redhat.com>
2193 Add support for distinct host and target character sets.
2194 * charset.c, charset.h: New files.
2195 * c-exp.y: #include "charset.h".
2196 (yylex): Convert character and string literals to the target
2197 character set, before returning them as the semantic value of the
2199 * c-lang.c: #include "charset.h".
2200 (c_emit_char): Use charset-specific methods to recognize
2201 characters with backslash escape forms, to decide which characters
2202 to print literally and which to print using numeric escape
2203 sequences, and to convert target characters to host characters
2205 * utils.c: #include "charset.h".
2206 (no_control_char_error): New function.
2207 (parse_escape): Use charset-specific methods to recognize
2208 backslash escapes, parse `control character' notation, and convert
2209 characters from the host character set to the target character set.
2210 * configure.in: Set the default host character set.
2211 Check where to find iconv, and what its argument types might be.
2212 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2213 * Makefile.in (SFILES): List charset.c.
2214 (COMMON_OBS): List charset.o.
2215 (charset.o): New rule.
2216 (charset_h): New header dependency variable.
2217 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2218 (LIBICONV): New variable, set by configure.
2219 (CLIBS): Include $(LIBICONV) here.
2220 * aclocal.m4, config.in, configure: Regenerated.
2222 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2224 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2227 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2229 * gdb_mbuild.sh: New file.
2231 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2233 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2235 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2237 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2238 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2239 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2240 valops.c, value.h: Revert previous change.
2242 2002-09-18 Michael Snyder <msnyder@redhat.com>
2244 Preliminary support for Objective-C:
2245 * defs.h (language_objc): New enum value.
2246 (puts_filtered_tabular): Declaration only, exported from utils.c.
2247 (skip_quoted): Delete, declared in completer.h.
2248 * c-exp.y: Include completer.h.
2251 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2252 New operator enum values.
2253 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2254 * language.c (binop_result_type): Handle language_objc case.
2255 (integral_type, character_type, string_type, boolean_type,
2256 structured_type, binop_type_check): Ditto.
2257 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2258 (struct objc_specific): Add to general_symbol_info.
2259 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2260 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2261 * parser-defs.h (struct objc_class_str): New struct type.
2262 (start_msglist, end_msglist, add_msglist): Declaration only,
2263 exported from objc-lang.c.
2264 * value.h (value_of_local, value_nsstring,
2265 call_function_by_hand_expecting_type): Exported from valops.c.
2266 * valops.c (find_function_addr): Export.
2267 (call_function_by_hand_expecting_type): New function.
2268 (value_of_local): New function.
2269 * symfile.c (init_filename_language_table): Add ".m" extension
2271 * utils.c (puts_filtered_tabular): New function.
2272 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2273 (set/show demangle): Extend help-string to refer to ObjC.
2274 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2275 * stabsread.c (symbol_reference_defined): Objective-C symbols
2276 may contain colons: make allowances when scanning stabs strings
2278 (objc_find_colon): New function.
2279 * printcmd.c (address_info): If language == objc then print
2280 "self" instead of "this".
2281 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2282 OP_NSSTRING, and OP_SELF.
2283 (prefixify_subexp): Ditto.
2284 * source.c (print_source_lines): Mention objc in comment.
2285 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2288 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2290 * complaints.h: Update copyright.
2291 (struct complaints): Declare.
2292 (struct complaint): Make `message' constant.
2293 (internal_complaint): Declare.
2294 (complaint): Declare.
2295 (complaint_root): Delete declaration.
2296 (symfile_complaints): Delete declaration.
2297 (struct complaints): Add opaque declaration.
2298 (clear_complaints): Add a complaints parameter.
2299 * complaints.c: Update copyright.
2300 (enum complaint_series): Define.
2301 (complaint_root): Delete.
2302 (struct complaints): Define.
2303 (complaint_sentinel, symfile_complaint_book): New variables.
2304 (symfile_explanations, symfile_complaints): New variables.
2306 (get_complaints): New function.
2307 (vcomplaint): New function.
2308 (complaint): New function.
2309 (internal_complaint): New function.
2310 (complain): Call vcomplain with symfile_complaint.
2311 (clear_complaints): Rewrite.
2312 (_initialize_complaints): Use add_setshow_command.
2313 * Makefile.in (complaints.o): Update dependencies.
2314 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2315 to call to clear_complaints.
2316 (new_symfile_objfile, reread_symbols): Ditto.
2317 (oldsyms_complaint): Delete.
2318 (empty_symtab_complaint, unknown_option_complaint): Delete.
2319 (free_named_symtabs): Use complaint instead of complain.
2321 2002-09-18 Michael Snyder <msnyder@redhat.com>
2323 Contributed by Apple Computer, Inc. Merged with current sources
2324 by Adam Fedor <fedor@doc.com> [cagney].
2326 * objc-lang.c: First clean-up round: comments, indentation.
2327 * objc-lang.h: Ditto.
2328 * objc-lang.y: Ditto.
2330 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2332 * maint.c (maintenance_internal_error): Print the parameter as the
2334 (maintenance_internal_warning): New function.
2335 (_initialize_maint_cmds): Add command `maint internal-warning'.
2337 * defs.h (internal_warning, internal_vwarning): Declare.
2338 * utils.c (struct internal_problem): Define.
2339 (internal_vproblem): New function.
2340 (internal_warning): New function.
2341 (internal_vwarning): New function.
2342 (internal_warning_problem, internal_error_problem): New variables.
2343 (internal_verror): Just call internal_vproblem.
2345 2002-09-18 Michael Snyder <msnyder@redhat.com>
2347 * objc-lang.c: New file, support for Objective-C.
2348 Preliminary check-in, not yet integrated into gdb.
2349 * objc-lang.h: New file.
2350 * objc-exp.y: New file.
2352 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2354 * infrun.c (signal_stop_update): Convert definition to ISO C.
2355 (signal_print_update): Ditto.
2356 (signal_pass_update): Ditto.
2357 * inflow.c (terminal_save_ours): Ditto.
2359 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2362 * config/djgpp/fnchange.lst: Handle name clashes between
2363 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2366 * i386-linux-tdep.h: Fix tipo.
2368 2002-09-18 Adam Fedor <fedor@gnu.org>
2370 * MAINTAINERS: Add myself to the Write After Approval list.
2372 2002-09-18 Jim Blandy <jimb@redhat.com>
2374 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2375 texthigh and textlow to reader-specific structs caused
2376 objfile_relocate to miss them. This is fixable, but the work that
2377 the change was supposed to prepare GDB for never got done anyway.
2379 2002-09-18 David Carlton <carlton@math.stanford.edu>
2381 * MAINTAINERS: Alphabetize Write After Approval list.
2383 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2386 * values.c (value_static_field): Call read_var_value.
2388 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2390 * valops.c (hand_function_call): Align the initial stack pointer
2391 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2392 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2394 * mips-tdep.c (mips_frame_align): New function.
2395 (mips_gdbarch_init): Set frame_align.
2396 * gdbarch.sh (FRAME_ALIGN): New method.
2397 * gdbarch.h, gdbarch.c: Re-generate.
2399 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2401 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2404 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2406 * NEWS: Mention that MIPS $fp behavior changed.
2407 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2408 reference to FP_REGNUM.
2409 (mipsnbsd_cannot_store_register): Ditto.
2410 * mips-linux-nat.c: Update copyright.
2411 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2412 (mips_linux_cannot_store_register): Ditto.
2413 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2414 * config/mips/tm-mips.h: Update copyright.
2415 (FP_REGNUM): Delete macro.
2416 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2417 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2418 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2419 (mips_r3041_reg_names, mips_r3051_reg_names)
2420 (mips_r3081_reg_names): Replace "fp" with "".
2423 2002-09-17 Theodore A. Roth <troth@verinet.com>
2425 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2426 generic_read_register_dummy() (PR gdb/703).
2427 (avr_push_return_address): #if 0 out unused vars.
2428 (avr_gdbarch_init): Enable use of avr_push_return_address().
2430 2002-09-17 Michael Snyder <msnyder@redhat.com>
2432 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2433 RTE will take care of it.
2435 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2437 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2438 invalid, return SP_REGNUM.
2440 2002-09-17 Michael Snyder <msnyder@redhat.com>
2442 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2443 point registers without sign extension.
2445 2002-09-17 Andrew Cagney <cagney@redhat.com>
2447 * blockframe.c (deprecated_read_register_dummy): Rename
2448 generic_read_register_dummy.
2449 * frame.c (frame_unwind_signed_register): New function.
2450 (frame_unwind_unsigned_register): New function.
2451 * frame.h (frame_unwind_signed_register): Declare.
2452 (frame_unwind_unsigned_register): Declare.
2453 (deprecated_read_register_dummy): Rename
2454 generic_read_register_dummy.
2456 * h8300-tdep.c (h8300_frame_chain): Update.
2457 (h8300_frame_saved_pc): Update.
2458 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2459 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2460 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2461 (s390_frame_chain): Update.
2462 * v850-tdep.c (v850_find_callers_reg): Update.
2463 (v850_frame_saved_pc): Update.
2464 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2465 (m32r_find_callers_reg): Update.
2466 (m32r_frame_saved_pc): Update.
2467 * sh-tdep.c (sh_find_callers_reg): Update.
2468 (sh64_get_saved_pr): Update.
2469 (sh_init_extra_frame_info): Update.
2470 (sh_init_extra_frame_info): Update.
2471 (sh64_init_extra_frame_info): Update.
2472 (sh64_init_extra_frame_info): Update.
2473 * mcore-tdep.c (mcore_find_callers_reg): Update.
2474 (mcore_frame_saved_pc): Update.
2475 (mcore_init_extra_frame_info): Update.
2476 * i386-tdep.c (i386_frame_saved_pc): Update.
2477 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2478 (ia64_init_extra_frame_info): Update.
2479 (ia64_init_extra_frame_info): Update.
2480 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2481 * cris-tdep.c (cris_init_extra_frame_info): Update.
2482 * avr-tdep.c (avr_frame_chain): Update.
2483 (avr_init_extra_frame_info): Update.
2484 (avr_frame_saved_pc): Update.
2485 * arm-tdep.c (arm_find_callers_reg): Update.
2486 (arm_init_extra_frame_info): Update.
2487 (arm_frame_saved_pc): Update.
2489 2002-09-17 Tom Tromey <tromey@redhat.com>
2491 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2494 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2496 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2497 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2499 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2502 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2504 * osfsolib.c: Remove file, replaced by solib-osf.c.
2505 * Makefile.in: Remove compilation rules for osfsolib.c.
2507 2002-09-16 David Carlton <carlton@math.stanford.edu>
2509 * cp-valprint.c (cp_print_class_method): Correct args to
2510 check_stub_method_group.
2512 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2514 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2515 `set architecture'. Unify naming convention of functions.
2516 (h8300_skip_prologue): Improve prologue analysis.
2517 (h8300_push_arguments): Rewritten to more closely match GCC's
2518 bizarre argument-passing behavior, along with the comment describing
2520 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2521 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2522 sim, remote-e7000.c, remote-hms.c and remote.c
2524 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2526 * i386-tdep.c (gdb_print_insn_i386): Removed.
2527 (i386_print_insn): New function.
2528 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2529 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2532 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2534 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2537 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2539 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2540 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2541 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2543 2002-09-13 Christopher Faylor <cgf@redhat.com>
2545 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2547 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2549 * gdbtypes.c (check_stub_method): Make static.
2550 (check_stub_method_group): New function.
2551 * gdbtypes.h: Update prototypes.
2552 * cp-support.c: New file.
2553 * cp-support.h: New file.
2555 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2556 (update_method_name_from_physname): New function.
2557 (read_member_functions): Correct method names for operators
2558 and v3 constructors/destructors. Separate v2 constructors and
2560 * Makefile.in (stabsread.o): Update dependencies.
2561 (SFILES): Add cp-support.c.
2562 (COMMON_OBS): Add cp-support.o.
2563 (cp_support_h, cp-support.o): Add.
2565 * cp-valprint.c (cp_print_class_method): Call
2566 check_stub_method_group instead of check_stub_method. Remove
2568 * p-valprint.c (pascal_object_print_class_method): Likewise.
2569 * valops.c (search_struct_method): Likewise.
2570 (find_method_list, value_struct_elt_for_reference): Likewise.
2572 2002-09-13 Andrew Cagney <cagney@redhat.com>
2574 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2575 * gdbarch.h, gdbarch.c: Regenerate.
2577 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2579 * frame.c (find_saved_register): Delete function.
2580 * frame.h (find_saved_register): Delete declaration.
2583 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2585 * mips-tdep.c (read_next_frame_reg): Re-hack using
2586 frame_register_unwind.
2588 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2590 * mips-tdep.c (mips_get_saved_register): Re-hack using
2591 frame_register_unwind.
2593 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2595 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2596 vector. Will be useful for Interix.
2597 * gdbarch.h, gdbarch.c: Regenerate.
2599 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2600 name of the malloc function by NAME_OF_MALLOC.
2602 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2604 * value.h (find_function_in_inferior): Add const keyword to
2605 one of the parameters. Allows us to invoke this function with
2607 * valops.c (find_function_in_inferior): Likewise.
2609 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2611 * exec.c (xfer_memory): Fix compilation warning with old versions
2613 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2615 2002-09-12 David Carlton <carlton@math.stanford.edu>
2617 * symtab.h: Run through gdb_indent.h.
2618 Add 2002 to Copyright year list.
2620 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2622 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2624 * MAINTAINERS: Add myself to write after approval list.
2626 2002-09-11 J. Brobecker <brobecker@gnat.com>
2628 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2630 2002-09-11 J. Brobecker <brobecker@gnat.com>
2632 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2635 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2637 * procfs.c (do_detach): Clear current signal, not just fault.
2638 Corrects problem with breakpoint trap signal leaking to detached
2641 2002-09-10 Michael Snyder <msnyder@redhat.com>
2643 * buildsym.c (finish_block): Protect against null pointer.
2645 2002-09-10 Andrew Cagney <cagney@redhat.com>
2647 * infcmd.c (default_print_registers_info): Send all output to
2648 ``file'' instead of ``gdb_stdout''.
2650 2002-09-10 Michael Snyder <msnyder@redhat.com>
2652 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2653 LONGEST, and use signed register read (addresses are sign-
2656 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2658 * event-loop.c (gdb_do_one_event): Make public.
2659 * event-loop.h (gdb_do_one_event): Declare.
2661 2002-09-10 Jeff Law <law@redhat.com>
2663 * infttrace.c (child_resume): Simplify and rework to avoid
2666 2002-09-09 Fred Fish <fnf@intrinsity.com>
2668 * printcmd.c (print_scalar_formatted): "len" is the number of
2669 target bytes, NOT the number of target bits.
2671 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2673 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2674 * top.c (init_main): Set rl_terminal_name.
2676 2002-09-08 Aidan Skinner <aidan@velvet.net>
2678 * ada-lang.c (ada_array_bound, ada_type_match,
2679 _initialize_ada_language): Fix K&R definitions.
2680 * ada-tasks.c (get_current_task): Fix K&R definitions.
2681 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2683 2002-09-07 Christopher Faylor <cgf@redhat.com>
2685 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2688 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2690 * i386-tdep.c (i386_register_virtual_type,
2691 i386_register_convertible, i386_register_convert_to_virtual,
2692 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2693 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2694 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2695 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2696 Don't set push_arguments twice.
2698 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2699 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2700 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2701 sigtramp_end to NULL.
2702 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2704 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2706 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2709 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2710 * gdbarch.h, gdbarch.c: Re-generate.
2711 * blockframe.c (find_pc_sect_partial_function): Convert to use
2712 SIGTRAMP_START_P predicate.
2714 2002-09-05 Michael Snyder <msnyder@redhat.com>
2716 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2717 generic_dummy_frame method and old method. Also distinguish
2718 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2719 (arm_extract_return_value): Use new regcache method.
2721 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2722 adjustment that doesn't conform to the ABI.
2723 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2724 saved regcache, not from current regcache.
2726 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2728 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2731 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2733 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2734 if arm_apcs_32 is false.
2736 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2738 GDB 5.3 branch created.
2740 2002-09-03 Theodore A. Roth <troth@verinet.com>
2742 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2743 generic_unwind_get_saved_register.
2745 2002-09-03 David Carlton <carlton@math.stanford.edu>
2747 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2748 argument (PR gdb/653). Update call to smash_to_method_type.
2749 (read_structure_scope): Update call to dwarf2_add_member_fn.
2751 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2753 * x86-64-linux-tdep.c: Include gdb_string.h
2754 * x86-64-linux-nat.c: Ditto.
2756 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2758 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2759 when YYDEBUG is set to 1.
2760 * c-exp.y: Likewise.
2761 * f-exp.y: Likewise.
2762 * jv-exp.y: Likewise.
2763 * m2-exp.y: Likewise.
2764 * p-exp.y: Likewise.
2766 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2768 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2770 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2771 solib_svr4_fetch_link_map_offsets to
2772 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2773 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2774 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2775 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2776 solib-svr4.o, and solib-legacy.o.
2777 * config/i386/tm-nbsd.h: Include solib.h.
2779 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2781 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2782 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2783 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2784 comment noting that this needs its own target configuration.
2785 * config/i386/nbsd.mt: New file.
2786 * config/i386/nbsdaout.mt: Remove.
2787 * config/i386/nbsdelf.mt: Ditto.
2788 * config/i386/tm-nbsdaout.h: Ditto.
2790 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2792 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2793 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2794 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2796 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2797 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2798 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2800 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2802 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2803 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2804 * i386-tdep.h (i386bsd_init_abi): New prototype.
2805 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2806 function declaration.
2807 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2808 for NetBSD-a.out or NetBSD-ELF.
2809 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2810 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2811 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2812 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2814 (i386nbsd_pc_in_sigtramp): New function.
2815 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2816 i386nbsd_pc_in_sigtramp.
2817 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2818 and i386nbsdelf_init_abi OS ABI handlers.
2819 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2820 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2822 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2824 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2825 registers if the target really has them.
2827 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2829 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2832 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2834 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2836 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2837 (alphanbsd_skip_sigtramp_frame): New functions.
2838 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2839 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2840 to alphanbsd_sigcontext_addr.
2842 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2844 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2846 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2847 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2848 nbsd_pc_in_sigtramp.
2849 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2850 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2851 * nbsd-tdep.c: Include gdb_string.h.
2852 (nbsd_pc_in_sigtramp): New function.
2853 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2854 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2855 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2856 ppcnbsd_pc_in_sigtramp.
2857 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2858 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2859 shnbsd_pc_in_sigtramp.
2860 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2861 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2862 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2864 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2866 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2867 watchpoints to NULL.
2868 (insert_breakpoints): set val field of watchpoints if NULL.
2871 2002-08-29 Jim Blandy <jimb@redhat.com>
2873 * symtab.c (lookup_symbol_aux): In the cases where we find a
2874 minimal symbol of an appropriate name and use its address to
2875 select a symtab to read and search, use `name' (as passed to us)
2876 as the demangled name when searching the symtab's global and
2877 static blocks, not the minsym's name.
2879 2002-08-29 Keith Seitz <keiths@redhat.com>
2881 * stack.c (print_frame_info_base): Always set current_source_symtab
2882 and current_source_line.
2884 2002-08-29 Donn Terry <donnte@microsoft.com>
2886 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2888 2002-08-28 Keith Seitz <keiths@redhat.com>
2890 * stack.c (select_frame): Add FIXME concerning selected-frame
2892 (select_frame_command): Send selected-frame-level-changed
2893 event notification, but only if the level actually changed.
2894 (up_silently_base): Add selected-frame-level-changed event
2896 (down_silently_base): Likewise.
2898 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2900 * Makefile.in: Update dependencies for all gdb/*.c files.
2902 2002-08-27 Tom Tromey <tromey@redhat.com>
2904 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2905 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2906 Update dependencies.
2907 * i387-tdep.c: Include gdb_string.h.
2908 * osabi.c: Likewise.
2909 * i386-linux-nat.c: Likewise.
2910 * lin-lwp.c: Likewise.
2911 * ax-gdb.c: Likewise.
2912 * signals/signals.c: Likewise.
2913 * jv-valprint.c: Likewise.
2914 * p-lang.c: Likewise.
2915 * c-valprint.c: Likewise.
2916 * cp-abi.c: Likewise.
2918 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2920 * cli/cli-script.h (copy_command_lines): Export.
2921 * breakpoint.c: Include cli/cli-script.h.
2922 * Makefile.in (breakpoint.o): Update dependencies.
2924 2002-08-26 Michael Snyder <msnyder@redhat.com>
2926 * breakpoint.c (insert_breakpoints): Protect all references
2927 to 'process_warning'. Shorten long lines.
2929 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2931 * cli/cli-script.c (copy_command_lines): New function.
2932 * defs.h (copy_command_lines): Export.
2933 * testsuite/gdb.base/commands.exp: New tests for commands
2934 attached to a temporary breakpoint, and for commands that
2935 delete the breakpoint they are attached to.
2937 2002-08-26 Michael Snyder <msnyder@redhat.com>
2939 * breakpoint.c (bpstat_stop_status): Instead of copying the
2940 pointer to the breakpoint commands struct, make a new copy
2941 of the struct and point to that.
2942 (bpstat_clear): Free the commands struct.
2943 (bpstat_clear_actions): Free the commands struct.
2944 (bpstat_do_actions): Free the command actions. Also execute
2945 the local cleanups, instead of deleting them.
2946 (delete_breakpoint): Leave the commands field of the bpstat
2947 chain alone -- it will be freed later.
2949 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2951 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2952 deleted in 2002-08-20 commit. This function is still used by
2955 2002-08-26 Keith Seitz <keiths@redhat.com>
2957 * gdb-events.sh: Add selected-frame-level-changed event.
2958 * gdb-events.c: Regenerated.
2959 * gdb-events.h: Regenerated.
2961 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2964 * inflow.c (terminal_save_ours): New function to save terminal
2966 * inferior.h (terminal_save_ours): Declare.
2967 * target.c (debug_to_terminal_save_ours): New function.
2968 (cleanup_target): Defaults to_terminal_save_ours.
2969 (update_current_target): Inherit to_terminal_save_ours.
2970 (setup_target_debug): Set to_terminal_save_ours.
2971 * target.h (target_terminal_save_ours): New to save terminal settings.
2972 (target_ops): New member to_terminal_save_ours.
2973 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2974 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2975 * inftarg.c (init_child_ops): Likewise.
2976 * m3-nat.c (init_m3_ops): Likewise.
2977 * procfs.c (init_procfs_ops): Likewise.
2978 * wince.c (init_child_ops): Likewise.
2979 * win32-nat.c (init_child_ops): Likewise.
2980 * sol-thread.c (init_sol_thread_ops): Likewise.
2982 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2984 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2985 use regcache_* functions.
2986 (i386_gdbarch_init): Set store_return_value instead of
2987 deprecated_store_return_value.
2989 * regcache.c (regcache_raw_write_signed,
2990 regcache_raw_write_unsigned): New functions.
2991 * regcache.h (regcache_raw_write_signed,
2992 regcache_raw_write_unsigned): New prototypes.
2994 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2996 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2997 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2998 source file dependencies. Cleanup corresponding generator rules.
3000 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3002 * regcache.h (register_offset_hack): Declare.
3003 (regcache_cooked_read_using_offset_hack): Declare.
3004 (regcache_cooked_write_using_offset_hack): Declare.
3006 * regcache.c (register_offset_hack): New function.
3007 (regcache_cooked_read_using_offset_hack): New function.
3008 (regcache_cooked_write_using_offset_hack): New function.
3009 (regcache_dump): Check that the registers, according to their
3010 offset, are packed hard against each other.
3011 (cooked_xfer_using_offset_hack): New function.
3013 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3015 * regcache.c (struct regcache_descr): Add field register_type.
3016 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3018 (init_regcache_descr): Initialize register_type. Pass the descr
3019 to init_legacy_regcache_descr. Use register_type instead of
3020 REGISTER_VIRTUAL_TYPE.
3021 (register_type): New function.
3022 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3023 * regcache.h (register_type): Declare.
3025 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3027 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3028 instead of deprecated_store_return_value. Fix fallout from
3029 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3031 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3033 * regcache.c (max_register_size): New function.
3034 (init_legacy_regcache_descr): Ensure that max_register_size is
3035 large enough for REGISTER_VIRTUAL_SIZE.
3036 * regcache.h (max_register_size): Declare.
3038 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3040 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3042 (e500_extract_return_value): Change type of valbuf pointer to
3045 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3047 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3050 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3051 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3052 long long) to prevent compiler warning on 64-bit systems.
3054 2002-08-23 Andrew Cagney <cagney@redhat.com>
3056 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3057 (DEPRECATED_STORE_RETURN_VALUE): New method.
3058 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3059 * gdbarch.h, gdbarch.c: Re-generate.
3061 * values.c (set_return_value): Pass current_regcache to
3063 * arch-utils.h (legacy_store_return_value): Declare.
3064 * arch-utils.c (legacy_store_return_value): New function.
3065 (legacy_extract_return_value): Update parameters.
3067 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3069 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3070 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3071 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3072 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3073 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3074 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3075 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3076 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3077 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3078 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3080 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3081 * i386-tdep.c (i386_extract_return_value): Update.
3082 * arch-utils.c (legacy_extract_return_value): Update.
3083 * frv-tdep.c (frv_gdbarch_init): Update.
3084 * cris-tdep.c (cris_gdbarch_init): Update.
3085 * d10v-tdep.c (d10v_gdbarch_init): Update.
3086 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3087 * m68k-tdep.c (m68k_gdbarch_init): Update.
3088 * mcore-tdep.c (mcore_gdbarch_init): Update.
3089 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3090 * s390-tdep.c (s390_gdbarch_init): Update.
3091 * sparc-tdep.c (sparc_gdbarch_init): Update.
3092 * sh-tdep.c (sh_gdbarch_init): Update.
3093 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3094 * v850-tdep.c (v850_gdbarch_init): Update.
3095 * avr-tdep.c (avr_gdbarch_init): Update.
3096 * ia64-tdep.c (ia64_gdbarch_init): Update.
3097 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3098 * vax-tdep.c (vax_gdbarch_init): Update.
3099 * alpha-tdep.c (alpha_gdbarch_init): Update.
3100 * arm-tdep.c (arm_gdbarch_init): Update.
3101 * mips-tdep.c (mips_gdbarch_init): Update.
3102 * i386-tdep.c (i386_gdbarch_init): Update.
3104 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3106 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3107 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3109 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3111 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3114 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3116 * infrun.c (handle_inferior_event): Move a comment outside of a
3117 function call, in order to avoid indent reformatting this part
3118 of the code in an unreadable way.
3120 2002-08-23 Grace Sainsbury <graces@redhat.com>
3122 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3123 when breakpoints fail. Move general breakpoint error messages to
3125 * breakpoint.c (insert_breakpoints): Change warnings when
3126 breakpoints are nto inserted to specify the type. Remove call to
3127 memory_error when hardware breakpoints can't be inserted. Remove
3128 multiple calls to warning so all messages are sent to the user at
3130 (delete_breakpoints): Make insert error messsages more explicit.
3132 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3134 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3135 gdbserver/ChangeLog.
3137 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3139 * i386-tdep.c: Include "objfiles.h".
3140 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3141 skip_trampoline_code.
3142 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3143 (CPLUS_MARKER): Define to '.'.
3145 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3147 (linux_corefile_thread_callback): Increase args->num_notes.
3148 (linux_make_note_section): Initialize thread_args.num_notes, and
3149 use it to determine whether notes for any threads were created.
3151 2002-08-23 Donn Terry <donnte@microsoft.com>
3153 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3154 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3156 (write_with_trace): Conditionalize out the switch branch handling
3157 PCSHOLD if the corresponding macro is not defined. Likewise for
3158 PRSABORT and PRSTOP.
3159 This change will be needed by the Interix port.
3161 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3163 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3164 write_register wherever possible instead of manipulating the
3165 register bytes directly.
3166 Assign VALUE_CONTENTS to a variable and use that.
3167 The GPR numbers are now dependent on the architecture.
3169 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3171 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3173 (skip_prologue): Add support for BookE/e500 instructions.
3174 (e500_extract_return_value): New function.
3175 (frame_get_saved_regs): Add support for saving ev registers and
3177 (e500_store_return_value): New function.
3178 (rs6000_gdbarch_init): Move up default intializations of
3179 deprecated_extract_return_value and store_return_value. Overwrite
3180 init of store_return_value with e500 specific version.
3181 Set extract_return_value for e500.
3183 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3185 * blockframe.c (generic_call_dummy_register_unwind): Use
3186 regcache_cooked_read to catch cases in which the variable is
3187 stored in a pseudo register.
3189 2002-08-22 Andrew Cagney <cagney@redhat.com>
3191 * NEWS: Mention that the i960 has been made obsolete.
3192 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3194 (remote-nrom.o): Obsolete target.
3195 (remote-nindy.o, i960-tdep.o): Ditto.
3196 * remote-nrom.c: Make file obsolete.
3197 * remote-nindy.c, remote-vx960.c: Ditto.
3198 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3199 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3200 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3201 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3202 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3203 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3204 i960-*-vxworks* obsolete.
3205 * MAINTAINERS: Note that the i960 is obsolete.
3207 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3209 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3210 detach to allow reinitialization.
3212 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3214 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3217 2002-08-22 Jim Blandy <jimb@redhat.com>
3219 * coffread.c (coff_symfile_read): Don't try to read the line
3220 number table from disk if the image file doesn't have a symbol
3221 table; we'll never actually look at the info anyway, and Windows
3222 ships DLL's with bogus file offsets for the line number data.
3224 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3226 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3229 2002-08-21 Michael Snyder <msnyder@redhat.com>
3231 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3232 (MSYMBOL_SIZE): Replace macro with function.
3233 (DEFAULT_MIPS_TYPE): Delete unused macro.
3234 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3235 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3237 2002-08-21 Jim Blandy <jimb@redhat.com>
3239 * valops.c (value_cast): Simplify and correct logic for doing a
3240 static cast from a pointer to a base class to a pointer to a
3243 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3245 * infcmd.c (default_print_registers_info): Replace
3247 (registers_info): Use gdbarch_print_registers_info instead of
3249 * inferior.h (default_print_registers_info): Replace
3251 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3252 (DO_REGISTERS_INFO): Change to a predicate function.
3253 * gdbarch.h, gdbarch.c: Regenerate.
3255 2002-08-21 Keith Seitz <keiths@redhat.com>
3257 * gdb-events.sh: Add target-changed event.
3258 * gdb-events.c: Regenerated.
3259 * gdb-events.c: Regenerated.
3260 * valops.c (value_assign): Add target-changed event notification
3261 to inlval_register, lval_memory, and lval_reg_frame_relative.
3263 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3265 * NEWS: Add an entry regarding the improvement of the next/step
3266 operation on Alpha Tru64 multi-processor machines.
3268 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3270 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3272 * Makefile.in: Update all _h macro definitions.
3273 * Makefile.in (install-gdbtk): Move to install section.
3274 (rdi-share/libangsd.a): Move to end of file.
3276 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3278 * frame.c (frame_register_unwind): When a register, set addrp to
3279 the register's byte.
3281 2002-08-20 Michael Snyder <msnyder@redhat.com>
3283 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3284 used locally, so move them from the target machine header to here.
3285 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3286 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3288 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3290 2002-08-20 Andrew Cagney <cagney@redhat.com>
3292 * NEWS: Mention that the Apollo line was made obsolete.
3293 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3294 m68*-hp-hpux* obsolete.
3295 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3296 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3297 * buildsym.c (make_blockvector): Make static.
3298 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3299 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3300 (ALLDEPFILES): Remove dstread.c.
3301 (dstread.o): Obsolete make rule.
3302 * dstread.c: Makefile obsolete.
3304 * config/m68k/hp300hpux.mt: Ditto.
3305 * config/m68k/hp300hpux.mh: Ditto.
3306 * config/m68k/hp300bsd.mt: Ditto.
3307 * config/m68k/hp300bsd.mh: Ditto.
3308 * config/m68k/apollo68b.mt: Ditto.
3309 * config/m68k/apollo68v.mh: Ditto.
3310 * config/m68k/apollo68b.mh: Ditto.
3312 2002-08-20 Michael Snyder <msnyder@redhat.com>
3314 * mips-tdep.c (mips_in_return_stub): Make static.
3315 (mips_gdbarch_init): Set in_solib_return_trampoline.
3316 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3318 2002-08-20 Michael Snyder <msnyder@redhat.com>
3320 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3321 * gdbarch.c, gdbarch.h: Regenerate.
3322 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3324 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3326 2002-08-20 Michael Snyder <msnyder@redhat.com>
3328 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3329 (mips_gdbarch_init): Set skip_trampoline_code,
3330 in_solib_call_trampoline.
3331 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3332 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3334 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3336 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3338 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3339 vector type for ev registers.
3340 (e500_pseudo_register_read): New function.
3341 (e500_pseudo_register_write): New function.
3342 (e500_dwarf2_reg_to_regnum): New function.
3343 (PPC_UISA_NOFP_SPRS): New macro.
3344 (PPC_EV_REGS): New macro.
3345 (PPC_GPRS_PSEUDO_REGS): New macro.
3346 (registers_e500): New register set for e500.
3347 (variants): Add e500 variant.
3348 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3349 before setting architectural dependent variations. Initialize ev
3350 registers numbers. Add case for e500 architecture. Set the
3351 number of pseudo registers.
3353 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3355 * rs6000-tdep.c: Clean up comments.
3357 2002-08-20 Andrew Cagney <cagney@redhat.com>
3359 * h8300-tdep.c: Re-indent file.
3361 2002-08-20 Jim Blandy <jimb@redhat.com>
3363 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3366 2002-08-20 Keith Seitz <keiths@redhat.com>
3368 * breakpoints.c (watch_command_1): Use internal breakpoint
3369 when setting a watchpoint_scope breakpoint.
3371 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3373 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3374 (build_builtin_type_vec64i): Ditto.
3375 (build_builtin_type_vec128): Ditto.
3376 (build_builtin_type_vec128i): Ditto.
3378 2002-08-19 Michael Snyder <msnyder@redhat.com>
3380 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3381 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3382 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3383 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3384 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3385 CALL_DUMMY_ADDRESS): Delete.
3386 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3387 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3388 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3389 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3390 push_return_address.
3391 (mips_register_raw_size, mips_eabi_use_struct_convention,
3392 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3393 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3394 mips_init_extra_frame_info, mips_eabi_push_arguments,
3395 mips_n32n64_push_arguments, mips_push_return_address,
3396 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3397 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3399 2002-08-19 Michael Snyder <msnyder@redhat.com>
3401 * mips-tdep.c (mips_frame_num_args): New function.
3402 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3403 frame_saved_pc, frame_args_address, frame_locals_address,
3404 frame_num_args, and frame_args_skip.
3405 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3406 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3407 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3408 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3410 2002-08-20 Michael Snyder <msnyder@redhat.com>
3412 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3413 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3414 * mips-tdep.c (mips_store_struct_return): New function.
3415 (mips_extract_struct_value_address): New function.
3416 (mips_gdbarch_init): Set store_struct_return and
3417 extract_struct_value_address.
3419 2002-08-20 David Carlton <carlton@math.stanford.edu>
3421 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3422 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3423 (read_file_scope): Check that line_header is nonzero before
3424 decoding macro information.
3426 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3428 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3429 flag the general-purpose registers as floating-point on targets
3430 that don't support the floating-point registers.
3432 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3434 * rs6000-tdep.c (altivec_register_p): Delete.
3435 (rs6000_do_altivec_registers): Delete.
3436 (rs6000_altivec_registers_info): Delete.
3437 (rs6000_do_registers_info): Delete.
3438 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3439 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3441 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3443 * infcmd.c (do_registers_info): Print vector registers in hex
3445 (print_vector_info): Check that printing registers
3447 (print_float_info): Ditto.
3449 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3451 * mips-tdep.c (mips_gdbarch_init): Update.
3452 (mips_o32_extract_return_value): Rewrite.
3453 (mips_o32_store_return_value): Rewrite.
3454 (mips_o32_xfer_return_value): New function.
3455 (mips_xfer_register): Tweak debug print message. Allow for
3456 buf_offset when dumping the value transfered.
3458 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3460 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3461 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3462 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3463 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3464 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3466 2002-08-14 Michael Snyder <msnyder@redhat.com>
3468 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3470 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3472 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3474 (P): New macro to define a register as a pseudo register.
3475 (R, R4, R8, R16, FR32, R64, R0): Updated.
3476 (struct variant): Add new fields for number of pseudo registers
3477 and number of total registers.
3478 (tot_num_registers): New macro replacing....
3479 (num_registers): ...deleted macro.
3480 (num_registers): New function.
3481 (num_pseudo_registers): New function.
3482 (variants): Update all variants to intialize new fields correctly.
3483 Postpone initialization of number of pseudo regs and real regs.
3484 (init_variants): New function.
3485 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3488 2002-08-19 David Carlton <carlton@math.stanford.edu>
3490 * valops.c (search_struct_field): Change error message to treat
3491 return value of 0 from value_static_field as meaning that field is
3493 (value_struct_elt_for_reference): Ditto.
3494 * values.c (value_static_field): Treat an unresolved location the
3495 same as a nonexistent symbol. Fix PR gdb/635.
3496 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3497 enclosed. Fix PR gdb/574.
3498 * MAINTAINERS: Add self to Write After Approval list.
3500 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3502 * mips-tdep.c (mips_xfer_register): New function.
3503 (mips_n32n64_extract_return_value): Rewrite.
3504 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3505 instead of deprecated_extract_return_value.
3507 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3509 * rs6000-tdep.c (TDEP): Delete macro.
3510 (branch_dest): Replace use of TDEP macro with its body.
3511 (rs6000_pop_frame): Ditto.
3512 (rs6000_push_arguments): Ditto.
3513 (rs6000_skip_trampoline_code): Ditto.
3514 (rs6000_frame_saved_pc): Ditto.
3515 (rs6000_frame_chain): Ditto.
3516 (rs6000_register_name): Ditto.
3517 (rs6000_register_byte): Ditto.
3518 (rs6000_register_raw_size): Ditto.
3519 (rs6000_register_virtual_type): Ditto.
3520 (rs6000_register_convertible): Ditto.
3521 (rs6000_convert_from_func_ptr_addr): Ditto.
3523 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3525 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3527 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3528 MIPS_LINUX_JB_ELEMENT_SIZE.
3529 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3530 for MAX_REGISTER_RAW_SIZE arrays.
3531 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3532 MIPS_LINUX_JB_ELEMENT_SIZE.
3534 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3536 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3538 2002-08-19 Aidan Skinner <aidan@velvet.net>
3540 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3541 ada-valprint.c ada-tasks.c.
3542 (YYFILES): Add ada-exp.y.
3543 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3544 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3545 (ada-exp.tab.o): New target.
3547 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3549 * regcache.c (regcache_xfer_part): New function.
3550 (regcache_raw_read_part): New function.
3551 (regcache_raw_write_part): New function.
3552 (regcache_cooked_read_part): New function.
3553 (regcache_cooked_write_part): New function.
3554 * regcache.h (regcache_raw_read_part): Declare.
3555 (regcache_raw_write_part): Declare.
3556 (regcache_cooked_read_part): Declare.
3557 (regcache_cooked_write_part): Declare.
3559 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3561 * remote.c (remote_open_1): Add async_p.
3562 (remote_async_open_1): Delete.
3563 (open_remote_target): Delete.
3564 (remote_open, extended_remote_open): Update calls to remote_open_1.
3565 (remote_async_open, extended_remote_async_open): Call
3566 remote_open_1 instead of remote_async_open_1.
3568 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3570 * blockframe.c: Fix a few coding standard violations.
3572 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3574 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3576 * config/i386/tm-i386sco5.h: ... here. File removed.
3577 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3579 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3580 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3581 (TM_FILE): Set to tm-i386.h.
3582 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3583 * config/i386/tm-i386v.h: Remove file.
3584 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3585 instead of "i386/tm-i386v.h".
3586 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3587 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3589 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3590 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3593 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3595 * config/i386/nm-i386v.h: Add protection against
3597 (i386_register_u_addr): Remove prototype.
3598 (register_u_addr): New prototype.
3599 (REGISTER_U_ADDR): Redefine accordingly.
3600 * i386v-nat.c: Improve several comments.
3601 (i386_register_u_addr): Change signature and rename to
3602 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3605 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3607 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3608 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3609 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3610 deprecated_extract_return_value.
3611 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3612 rename mips_o32o64_push_arguments.
3613 (mips_gdbarch_init): Update.
3614 (mips_extract_return_value): Delete.
3615 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3616 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3617 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3618 (mips_n32n64_extract_return_value): Clone
3619 mips_extract_return_value.
3620 (mips_store_return_value): Delete.
3621 (mips_o32_store_return_value): Clone mips_store_return_value.
3622 (mips_o64_store_return_value): Clone mips_store_return_value.
3623 (mips_eabi_store_return_value): Clone mips_store_return_value.
3624 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3626 2002-08-18 Aidan Skinner <aidan@velvet.net>
3628 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3629 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3631 2002-08-18 Aidan Skinner <aidan@velvet.net>
3633 * ada-lang.c: Run through gdb_indent.sh.
3634 * ada-lang.h: Run through gdb_indent.sh.
3635 * ada-tasks.c: Run through gdb_indent.sh.
3636 * ada-typeprint.c: Run through gdb_indent.sh.
3637 * ada-valprint.c: Run through gdb_indent.sh.
3639 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3641 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3644 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3646 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3648 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3649 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3651 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3652 write_register_gen instead of write_register_bytes.
3654 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3655 i[3456]-*-osf1mk* configurations have been made obsolete.
3656 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3657 i[3456]86-*-osf1mk* hosts obsolete.
3658 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3660 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3661 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3662 config/i386/i386m3.mt, config/i386/nm-m3.h,
3663 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3664 config/i386/i386mk.mh, config/i386/i386mk.mt,
3665 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3667 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3668 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3669 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3671 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3673 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3674 (hppa_value_returned_from_stack): Declare.
3675 (hppa_extract_return_value): Declare.
3676 * config/pa/hppa.mt: New file.
3677 * configure.tgt: Recognize hppa*-*-*.
3678 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3680 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3682 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3685 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3687 * top.c (gdb_rl_operate_and_get_next): Make sure
3688 operate-and-get-next functions correctly even when the history
3689 list is completely filled.
3691 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3693 * MAINTAINERS (Target Instruction Set Architectures): Rename
3694 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3695 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3696 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3697 already listed under Host/Native.
3699 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3700 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3703 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3705 * config/ia64/ia64.mt: New file.
3706 * config/alpha/alpha.mt: New file.
3707 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3708 ia64-linux-gnu. Mention that ia64-elf is broken.
3709 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3711 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3713 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3714 generic_func_frame_valid instead of func_frame_valid.
3716 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3718 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3719 procfs appears to be broken when debugging on multi-processor
3720 machines. So enable software single stepping in order to avoid
3721 using the procfs interface to do next/step operations, using
3722 internal breakpoints instead.
3724 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3725 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3726 make this pc address equal to the value it would have if the
3727 system stepping capability was used. Also set a new flag used
3728 to ensure that we don't readjust the PC one more time later.
3730 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3731 address by DECR_PC_AFTER_BREAK when software single step is
3732 in use for this architecture, as this has already been taken
3733 care of in handle_inferior_event().
3735 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3737 * infrun.c (handle_inferior_event): Minor reformatting, to make
3738 a rather long condition expression easier to read.
3740 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3742 * Makefile.in (gdbtk.o): Move to end of file.
3743 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3744 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3745 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3746 (gdbtk-wrapper.o, gdbres.o): Ditto.
3748 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3750 * Makefile.in (copying.o): Separate out compile rule.
3751 (hpux-thread.o, procfs.o, signals.o): Ditto.
3752 (v850ice.o, z8k-tdep.o): Ditto.
3753 (tui-file.o): Move to TUI section.
3754 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3755 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3757 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3759 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3760 skip_trampoline_code, for better namespace-proofing.
3762 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3764 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3766 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3768 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3770 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3771 signal, check whether we hit a breakpoint before checking for a
3772 single step breakpoint. Otherwise, GDB fails to notice that a
3773 breakpoint has been hit when stepping onto a breakpoint.
3775 2002-08-16 Keith Seitz <keiths@redhat.com>
3777 * gdb-events.sh (clear_gdb_event_hooks): New function.
3778 * gdb-events.c: Regenerate.
3779 * gdb-events.h: Regenerate.
3781 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3783 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3784 not_a_sw_breakpoint.
3785 * breakpoint.h (bpstat_stop_status): Add parameter names.
3787 2002-08-16 Grace Sainsbury <graces@redhat.com>
3789 * remote.c (remote_insert_hw_breakpoint)
3790 (remote_remove_hw_breakpoint): Fix calculation of length field
3793 2002-08-15 Michael Snyder <msnyder@redhat.com>
3795 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3796 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3797 (supply_fpregset): Ditto.
3799 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3800 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3801 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3802 (TARGET_READ_SP): Delete.
3803 (DO_REGISTERS_INFO): Delete.
3804 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3806 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3807 from macros to functions.
3809 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3810 (mips_register_convertible, mips_register_convert_to_virtual,
3811 mips_register_convert_to_raw): Make static.
3812 (mips_read_sp): New function.
3813 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3814 (mips_do_registers_info): Make static.
3815 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3816 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3817 (mips_register_convert_from_type, mips_register_convert_to_type):
3819 (mips_gdbarch_init): Set up function_start_offset,
3820 register_virtual_size, pc_in_sigtramp.
3822 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3824 * infcmd.c (vector_info): New function.
3825 (_initialize_infcmd): Add command "info vector".
3826 (print_vector_info): New function.
3828 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3829 * gdbarch.h, gdbarch.c: Regenerate.
3831 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3833 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3834 ``print_all''. Only print vector registers when ``print_all''.
3836 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3838 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3839 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3841 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3842 Add `args' parameter.
3843 * gdbarch.h, gdbarch.c: Regenerate.
3845 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3847 * infcmd.c (float_info): Call print_float_info.
3848 (print_float_info): New function. By default, print the
3849 floating-point registers.
3851 * arch-utils.h (default_print_float_info): Delete declaration.
3852 * arch-utils.c (default_print_float_info): Delete function.
3854 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3856 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3859 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3862 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3863 * configure.host: Make i[3456]86-*-aix host obsolete.
3864 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3865 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3866 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3867 config/i386/xm-i386aix.h: Make files obsolete.
3868 * i386aix-nat.c: Make file obsolete.
3869 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3870 (i386aix-nat.o): Make target obsolete.
3872 * config/i386/nm-gnu.h: Removed.
3873 * config/i386/nm-i386gnu.h: New file.
3874 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3875 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3877 * config/i386/tm-i386gnu.h: ... here. Removed.
3878 * config/i386/xm-i386gnu.h: Removed.
3879 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3880 (NAT_FILE): Set to nm-i386gnu.h.
3881 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3882 * i386-tdep.c: New file.
3883 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3884 (i386gnu-tdep.o): Specify dependencies.
3886 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3888 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3889 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3890 Adjust a few comments to reflect reality a bit closer.
3891 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3892 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3893 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3894 target_insert_watchpoint, target_remove_watchpoint):
3896 * config/i386/nm-i386sco5.h: ... here.
3897 (kernel_u_size): Add prototype. Improve a few comments and add
3898 protection against multiple inclusion.
3900 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3903 * uw-thread.c (SP_ARG0): Define if not already defined.
3904 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3906 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3908 * config/i386/tm-i386.h: Don't include "regcache.h".
3910 * i387-tdep.h (i387_print_float_info): New prototype.
3911 * i387-tdep.c (print_i387_value, print_i387_ext,
3912 print_i387_status_word, print_i387_control_word): Add `struct
3913 ui_file *' argument and use it for output.
3914 (i387_print_float_info): Renamed from i387_float_info. Add
3915 `struct gdbarch *' and `struct ui_file *' arguments and use the
3917 * i386-tdep.c: Include "i387-tdep.h".
3918 (i386_gdbarch_init): Set print_float_info.
3919 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3920 (FLOAT_INFO): Remove define.
3922 2002-08-13 Michael Snyder <msnyder@redhat.com>
3924 * mips-tdep.c (mips_push_arguments): Rename to
3925 mips_eabi_push_arguments, and tune for EABI.
3926 (MIPS_REGS_HAVE_HOME_P): Delete.
3927 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3928 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3929 Delete references to mips_regs_have_home_p.
3931 2002-08-14 Keith Seitz <keiths@redhat.com>
3933 * Makefile.in (install-gdbtk): Create insight plugin directory.
3934 Install plugins.tcl file.
3936 2002-08-14 Keith Seitz <keiths@redhat.com>
3938 * configure.in: Move SUBDIRS to near top of the file so that
3939 --enable options may add things to it.
3940 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3941 * configure: Regenerate.
3943 2002-08-13 Michael Snyder <msnyder@redhat.com>
3945 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3946 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3947 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3949 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3951 * vax-tdep.c (vax_get_saved_register): Delete function.
3952 (vax_gdbarch_init): Update.
3953 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3954 (ns32k_gdbarch_init): Update.
3955 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3956 (alpha_gdbarch_init): Update.
3958 2002-08-13 Andrew Cagney <cagney@redhat.com>
3960 * regcache.c (init_regcache_descr): Overallocate the
3961 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3962 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3964 (set_register_cached): Add range checking assertions. Use
3967 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3969 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3970 numbers for MMX registers.
3972 2002-08-13 Andrew Cagney <cagney@redhat.com>
3974 * i386-tdep.c (i386_gdbarch_init): Use
3975 generic_unwind_get_saved_register.
3977 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3979 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3980 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3982 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3983 Delete. Add comment regarding this now-deleted target method.
3985 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3987 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3988 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3989 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3990 real PC and the page number (if it's within the memory bank window).
3991 (m68hc11_pseudo_register_write): Likewise when saving.
3992 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3993 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3994 (m68hc11_register_raw_size): And use 32-bit for it.
3995 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3996 16K memory bank is used by the prog; also use the virtual pc.
3998 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4000 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4001 (m68hc11_gdbarch_init): Install it in gdbarch.
4002 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4003 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4004 (MSYMBOL_SIZE): New for documentation.
4005 (insn_return_kind): Enum to specify how a function returns.
4006 (frame_extra_info): Cleanup and record the return mode.
4007 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4008 register in address computation.
4009 (m68hc11_get_return_insn): New to obtain the return instruction used
4011 (m68hc11_frame_init_saved_regs): Take into account the return
4012 instruction used by the function for far and interrupt functions.
4013 (m68hc11_init_extra_frame_info): Take into account page register.
4014 (m68hc11_frame_args_address): Adjust according to the return mode.
4015 (show_regs): Print page register only when it's used.
4017 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4019 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4020 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4021 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4023 (m68hc11_register_raw_size): Likewise.
4025 2002-08-13 Andrew Cagney <cagney@redhat.com>
4027 * i386-tdep.c (i386_register_name): Handle mmx registers.
4028 (mmx_regnum_p): New function.
4029 (i386_mmx_names): New array.
4030 (mmx_num_regs): New variable.
4031 (i386_pseudo_register_read): New function.
4032 (i386_pseudo_register_write): New function.
4033 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4035 * regcache.c (regcache_raw_read_unsigned): New function.
4036 (regcache_raw_read_signed): New function.
4037 * regcache.h (regcache_raw_read_unsigned): Declare.
4038 (regcache_raw_read_signed): Declare.
4040 2002-08-13 Andrew Cagney <cagney@redhat.com>
4042 * regcache.c (regcache_raw_read_as_address): Delete function.
4043 (regcache_cooked_read_signed): New function.
4044 (regcache_cooked_read_unsigned): New function.
4045 * regcache.h (regcache_cooked_read_signed): Declare.
4046 (regcache_cooked_read_unsigned): Declare.
4047 (regcache_raw_read_as_address): Delete declaration.
4049 * blockframe.c (generic_read_register_dummy): Use
4050 regcache_cooked_read_unsigned.
4051 * i386-tdep.c (i386_extract_struct_value_address): Use
4052 regcache_cooked_read_unsigned.
4054 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4056 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4057 double sizes according to ELF ABI flags.
4058 (gdbarch_tdep): Record elf_flags.
4060 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4062 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4063 (m6812_prolog): They can appear in 68HC12 function prologue.
4064 (m68hc11_frame_chain): Cleanup.
4066 2002-08-12 Andrew Cagney <cagney@redhat.com>
4068 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4070 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4071 (i386_linux_register_raw_size): Delete function.
4072 (i386_linux_init_abi): Update.
4073 * i386-tdep.c (i386_register_raw_size): Delete function.
4074 (i386_register_byte): Delete function.
4075 (i386_gdbarch_init): Update.
4076 (i386_register_size): Delete array.
4077 (i386_register_offset): Delete array.
4079 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4080 (REGISTER_RAW_SIZE): Delete macro.
4081 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4082 (REGISTER_BYTE): Delete macro.
4084 2002-08-11 Aidan Skinner <aidan@velvet.net>
4086 * ada-lang.c (ada_lookup_partial_symbol)
4087 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4088 prototype names so that grep ^func works properly.
4090 * ada-lang.c (ada_array_element_type)
4091 (ada_lookup_partial_symbol): Fix typos in parameter list.
4093 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4094 Fix prototype names so that grep ^func works properly.
4096 2002-08-10 Andrew Cagney <cagney@redhat.com>
4097 Elena Zannoni <ezannoni@redhat.com>
4098 Martin M. Hunt <hunt@redhat.com>
4100 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4101 (build_builtin_type_vec128i): Set the vector bit.
4102 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4103 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4104 (build_builtin_type_vec64): New function.
4105 (build_builtin_type_vec64i): New function.
4106 (build_gdbtypes): Initialize builtin_type_vec64 and
4107 builtin_type_vec64i.
4109 2002-08-09 Andrew Cagney <cagney@redhat.com>
4111 * regcache.c (regcache_dump): Compare the register offset
4113 * arch-utils.c (generic_register_byte): New function.
4114 * arch-utils.h (generic_register_byte): Declare.
4115 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4116 * gdbarch.h, gdbarch.c: Regenerate.
4118 2002-08-09 Andrew Cagney <cagney@redhat.com>
4120 * regcache.c: Include "gdbcmd.h"
4121 (_initialize_regcache): Add commands "maintenance print
4122 registers", "maintenance print raw-registers" and "maintenance
4123 print cooked-registers".
4124 (enum regcache_dump_what): Define.
4125 (dump_endian_bytes): New function.
4126 (regcache_dump): New function.
4127 (regcache_print): New function.
4128 (maintenance_print_registers): New function.
4129 (maintenance_print_raw_registers): New function.
4130 (maintenance_print_cooked_registers): New function.
4131 * Makefile.in (regcache.o): Update dependencies.
4133 2002-08-09 Michael Snyder <msnyder@redhat.com>
4135 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4136 (mips_push_arguments): Correct some comments. Use paddr_nz
4137 for printing addresses in debug output. Replace static
4138 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4139 (mips_n32n64_push_arguments): New function, cloned from
4140 mips_push_arguments and tuned for the n32/n64 ABI.
4141 (mips_push_register): Buffer needs dynamic allocation.
4142 (mips_print_register): Ditto.
4143 (do_gp_register_row): Ditto.
4144 (mips_store_return_value): Ditto.
4145 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4147 2002-08-09 Don Howard <dhoward@redhat.com>
4149 * memattr.c (mem_info_command): Print special case of upper bound
4150 as max CORE_ADDR + 1.
4152 2002-08-08 Michael Snyder <msnyder@redhat.com>
4154 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4155 returns structs by ref if they're too big to fit in two registers.
4157 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4159 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4161 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4162 mips_find_saved_regs().
4163 (mips_pop_frame): Likewise.
4165 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4167 * blockframe.c (frame_saved_regs_register_unwind): Revise
4168 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4171 2002-08-09 Grace Sainsbury <graces@redhat.com>
4173 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4174 T-packets; the 'a' is not taken as a register number.
4175 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4176 (remote_stopped_data_address): New functions; add to target
4178 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4179 prototypes to match other implementations of this
4180 function. replace integer argument with pointer -- the length
4181 field in the Z-packet is the length of what is pointed to or 1 if
4182 pointer is null. Add to target vector.
4183 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4187 * remote.c (remote_wait): Add support to extract optional
4188 watchpoint information from T-packet. Ignore unrecognized
4189 optional info in T-packet.
4190 (remote_async_wait): Ditto.
4192 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4194 * cli/cli-dump.c: Change fopen modes to use binary open modes
4195 as defined in include/fopen-bin.h throughout.
4197 2002-08-08 Michael Snyder <msnyder@redhat.com>
4199 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4201 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4203 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4204 assertion failure by returning early after a warning.
4206 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4208 * mips-tdep.c (mips_find_saved_regs): Make static.
4209 (mips_frame_init_saved_regs): New function.
4210 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4211 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4212 (mips_find_saved_regs): Delete declaration.
4214 2002-08-08 Grace Sainsbury <graces@redhat.com>
4216 * remote.c (remote_wait, remote_async_wait): Change
4217 thread_num from int to ULONGEST.
4218 (unpack_varlen_hex): Change result parameter from
4219 int * to ULONGEST *.
4221 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4223 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4224 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4226 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4228 2002-08-08 Andrew Cagney <cagney@redhat.com>
4230 * gcore.c (override_derive_stack_segment): Delete variable.
4231 (preempt_derive_stack_segment): Delete function.
4232 (derive_stack_segment): Delete function.
4233 (default_derive_stack_segment): Renamed to derive_stack_segment.
4234 (override_derive_heap_segment): Delete variable.
4235 (preempt_derive_heap_segment): Delete function.
4236 (derive_heap_segment): Delete function.
4237 (default_derive_heap_segment): Rename to derive_heap_segment.
4239 2002-08-06 Michael Snyder <msnyder@redhat.com>
4241 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4242 * mips-tdep.c (mips_EABI_use_struct_convention,
4243 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4244 New functions. (mips_use_struct_convention): Delete.
4245 (mips_gdbarch_init): set use_gdbarch_convention.
4247 2002-08-06 Michael Snyder <msnyder@redhat.com>
4249 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4250 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4251 mips_o32_reg_struct_has_addr): New functions.
4252 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4254 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4256 * regcache.c (pseudo_register): Delete function.
4257 (fetch_register): Delete function.
4258 (store_register): Delete function.
4259 (regcache_raw_read, legacy_read_register_gen): Use
4260 target_fetch_registers instead of fetch_register.
4261 (legacy_write_register_gen, regcache_raw_write): Use
4262 target_store_register instead of store_register.
4263 (write_register_bytes): Ditto.
4265 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4266 (STORE_PSEUDO_REGISTER): Delete.
4267 * gdbarch.h, gdbarch.c: Regenerate.
4269 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4271 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4272 write dump file binary.
4274 2002-08-05 Michael Snyder <msnyder@redhat.com>
4276 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4277 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4278 (mips_gdbarch_init): Set N32 target to be mips64.
4280 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4282 * frame.c (find_saved_register): Break out of loop once saved
4283 register address is found. Don't mention sparc in loop comment
4286 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4288 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4289 mips_default_saved_regsize to 8.
4291 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4293 * gcore.c: Do not include <sys/procfs.h>.
4294 * Makefile.in (gcore.o): Update dependencies.
4296 2002-08-06 Andrew Cagney <cagney@redhat.com>
4298 * configure.tgt: Make arc-*-* obsolete.
4299 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4300 * MAINTAINERS: Make arc-elf obsolete.
4301 * arc-tdep.c: Make file obsolete.
4302 * config/arc/arc.mt: Ditto.
4303 * config/arc/tm-arc.h: Ditto.
4305 2002-08-05 Theodore A. Roth <troth@verinet.com>
4307 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4309 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4311 * mcore-tdep.c (mcore_gdbarch_init): Use
4312 generic_unwind_get_saved_register instead of
4313 generic_get_saved_register.
4314 * v850-tdep.c (v850_gdbarch_init): Ditto.
4315 * frv-tdep.c (frv_gdbarch_init): Ditto.
4316 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4317 * s390-tdep.c (s390_gdbarch_init): Ditto.
4318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4319 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4320 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4322 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4324 * objfiles.h: Add missing #include "symfile.h"
4326 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4328 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4330 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4331 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4334 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4336 * NEWS: Cleanup and nitpick.
4338 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4340 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4342 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4344 * Makefile.in (gdbtk-bp.o): Update dependencies.
4345 (gdbtk-register.o): Ditto.
4346 (gdbtk-varobj.o): Ditto.
4348 2002-08-03 Andrew Cagney <cagney@redhat.com>
4350 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4351 m68hc11_fetch_pseudo_register.
4352 (m68hc11_pseudo_register_write): Replace
4353 m68hc11_store_pseudo_register.
4354 (m68hc11_gdbarch_init): Update.
4356 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4358 * gdbarch.sh: Include "gdb_string.h".
4359 * gdbarch.c: Regenerate.
4361 * regcache.c: Include "gdb_string.h".
4362 * ax-general.c: Ditto.
4364 * std-regs.c: Ditto.
4365 * fbsd-proc.c: Ditto.
4368 * Makefile.in (regcache.o): Update dependencies.
4369 (thread.o, gdbarch.o): Ditto.
4370 (ax-general.o, gdbarch.o): Ditto.
4371 (varobj.o, std-regs.o): Ditto.
4372 (fbsd-proc.o): Specify dependencies.
4374 2002-08-02 Andrew Cagney <cagney@redhat.com>
4376 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4378 (regcache_cooked_write): Ditto.
4380 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4382 * regcache.c (regcache_cooked_read): New function.
4383 (regcache_cooked_write): New function.
4384 (read_register_gen): Rewrite using regcache_cooked_read.
4385 (write_register_gen): Rewrite using regcache_cooked_write.
4387 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4390 2002-08-02 Andrew Cagney <cagney@redhat.com>
4392 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4393 Replace the architecture methods register_read and register_write.
4394 * gdbarch.h, gdbarch.c: Regenerate.
4395 * regcache.c (init_regcache_descr): Update.
4396 (read_register_gen): Update.
4397 (write_register_gen): Update.
4398 (supply_register): Update comment.
4400 * sh-tdep.c (sh_gdbarch_init): Update.
4401 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4402 `regcache' and `gdbarch' parameters. Make `buffer' a void
4403 pointer. Update code.
4404 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4405 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4406 void pointer. Update code.
4407 (sh64_register_write): Delete.
4408 (sh4_register_read): Delete.
4409 (sh64_register_read): Delete.
4410 (sh4_register_write): Delete.
4411 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4412 void pointer, `to' parameter a void pointer.
4413 (sh_sh64_register_convert_to_raw): Ditto.
4415 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4417 * mips-tdep.c (mips_register_virtual_type): Use architecture
4418 invariant return values.
4420 2002-08-01 Andrew Cagney <cagney@redhat.com>
4422 * linux-proc.c: Include "gdb_string.h".
4423 * Makefile.in (linux-proc.o): Update dependency list.
4425 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4427 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4430 2002-08-01 Grace Sainsbury <graces@redhat.com>
4432 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4433 to_insert_watchpoint, to_remove_watchpoint,
4434 to_stopped_by_watchpoint, to_stopped_data_address,
4435 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4436 target vecctor. Define their corresponding macros so they call
4439 * target.c: Add default and debug versions of for
4440 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4441 to_insert_watchpoint, to_remove_watchpoint,
4442 to_stopped_by_watchpoint, to_stopped_data_address,
4443 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4445 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4447 * mips-tdep.c (mips_register_virtual_type): New function.
4448 (mips_gdbarch_init): Register mips_register_virtual_type()
4449 with gdbarch machinery.
4450 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4451 this file instead of tm-bigmips.h.
4452 (MIPS_REGSIZE): Delete this macro.
4453 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4454 multiarch version in mips-tdep.c will be found.
4456 2002-08-01 Andrew Cagney <cagney@redhat.com>
4458 * NEWS: Menion that CHILL has been made obsolete.
4460 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4461 * stabsread.c (read_range_type): Ditto.
4462 * gdbtypes.h: Ditto.
4463 * language.c (binop_type_check): Ditto.
4464 (binop_result_type): Ditto.
4465 (integral_type): Ditto.
4466 (character_type): Ditto.
4467 (string_type): Ditto.
4468 (boolean_type): Ditto.
4469 (structured_type): Ditto.
4470 (lang_bool_type): Ditto.
4471 (binop_type_check): Ditto.
4472 * language.h (_LANG_chill): Ditto.
4473 * dwarfread.c (set_cu_language): Ditto.
4474 * dwarfread.c (CHILL_PRODUCER): Ditto.
4475 * dwarfread.c (handle_producer): Ditto.
4476 * expression.h (enum exp_opcode): Ditto.
4477 * eval.c: Ditto for comments.
4478 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4479 * expprint.c (print_subexp): Ditto.
4480 (print_subexp): Ditto.
4481 * valops.c (value_cast): Ditto.
4482 (search_struct_field): Ditto.
4483 * value.h (COERCE_VARYING_ARRAY): Ditto.
4484 * symfile.c (init_filename_language_table): Ditto.
4485 (add_psymbol_with_dem_name_to_list): Ditto.
4486 * valarith.c (value_binop): Ditto.
4488 * valops.c (value_slice): Ditto.
4489 * symtab.h (union language_specific): Ditto.
4490 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4491 (SYMBOL_DEMANGLED_NAME): Ditto.
4492 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4493 * defs.h (enum language): Ditto.
4494 * symtab.c (got_symtab): Ditto.
4495 * utils.c (fprintf_symbol_filtered): Ditto.
4497 * ch-typeprint.c: Make file obsolete.
4498 * ch-valprint.c: Make file obsolete.
4499 * ch-lang.h: Make file obsolete.
4500 * ch-exp.c: Make file obsolete.
4501 * ch-lang.c: Make file obsolete.
4503 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4505 (TARGET_FLAGS_TO_PASS): Ditto.
4506 (CHILLFLAGS): Obsolete.
4508 (CHILL_FOR_TARGET): Obsolete.
4509 (CHILL_LIB): Obsolete.
4510 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4512 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4513 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4515 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4518 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4520 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4521 This does not change anything at the moment, but will be helpful
4522 later when full Ada support is integrated.
4524 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4526 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4529 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4531 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4532 and save it in a local variable. Use variable in later test.
4534 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4536 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4537 test. (Thanks to Daniel Jacobowitz.)
4539 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4541 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4542 (mips_abi_strings): Add "n64".
4543 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4545 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4547 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4548 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4550 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4552 * utils.c (host_pointer_to_address, address_to_host_pointer):
4553 Use gdb_assert() instead of explicit call to internal_error().
4555 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4557 * Makefile.in (rs6000-nat.o): Update dependencies.
4559 From Nicholas Duffek:
4560 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4561 (aix-thread.o): New rule.
4562 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4563 * config/powerpc/aix432.mh: New file.
4565 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4567 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4568 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4569 (fetch_core_registers, ppc_linux_supply_gregset)
4570 (ppc_linux_supply_fpregset): New functions.
4571 (ppc_linux_regset_core_fns): New.
4572 (_initialize_ppc_linux_tdep): Call add_core_fns.
4573 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4574 and ppc_linux_supply_gregset.
4575 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4576 (supply_fpregset): Call ppc_linux_supply_fpregset.
4577 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4579 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4581 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4583 * symtab.c (lookup_symbol): Demangle before lowercasing.
4585 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4587 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4589 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4590 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4591 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4592 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4594 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4595 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4596 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4597 (avr-tdep.o, mon960-rom.o): Ditto.
4598 (aout_stabs_gnu_h): Define.
4599 (symtab_h): Remove $(gdb_obstack_h).
4601 2002-07-30 Jim Blandy <jimb@redhat.com>
4603 Patch from David Carlton <carlton@math.stanford.edu>:
4604 * gdbinit.in: Move the `dir' commands that add GDB's own source
4605 directory to the search path to the end, so that the `gdb' source
4606 directory will be searched first.
4608 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4610 * gdb_obstack.h: New file.
4611 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4612 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4613 * objfiles.h: Include "gdb_obstack.h".
4614 * Makefile.in (gdb_obstack_h): Define.
4615 (symtab_h): Add $(gdb_obstack_h).
4616 (objfiles_h): Add $(gdb_obstack_h).
4618 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4619 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4620 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4621 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4622 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4623 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4624 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4625 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4627 * Makefile.in (bcache.o): Update dependencies.
4628 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4629 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4630 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4631 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4632 (stabsread.o, symfile.o, symmisc.o): Ditto.
4633 (symtab.o, typeprint.o, macroexp.o): Ditto.
4634 (macrotab.o, mdebugread.o): Ditto.
4635 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4636 (coff_ecoff_h, aout_aout64_h): Define.
4637 (aout_stabs_gnu_h, libaout_h): Define.
4639 2002-07-29 Andrew Cagney <cagney@redhat.com>
4641 * regcache.c (struct regcache_descr): Rename nr_registers to
4642 nr_cooked_registers. Revise comments describing the structure
4644 (init_regcache_descr): Update.
4645 (init_legacy_regcache_descr): Update.
4646 (read_register_gen, write_register_gen): When a cooked register in
4647 the raw register range, directly access the value from the raw
4650 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4652 * z8k-tdep.c: Do not include "obstack.h".
4653 * h8300-tdep.c, h8500-tdep.c: Ditto.
4654 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4655 * valprint.c, v850-tdep.c: Ditto.
4656 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4657 * mn10200-tdep.c: Ditto.
4659 * Makefile.in (z8k-tdep.o): Update dependencies.
4660 (m68hc11-tdep.o, valprint.o): Ditto.
4661 (v850-tdep.o, d10v-tdep.o): Ditto.
4662 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4663 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4664 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4665 (sh_opc_h, gdb_sim_sh_h): Define.
4666 (elf_sh_h, elf_bfd_h): Define.
4667 (opcode_m68hc11_h): Define.
4668 (OPCODES_SRC, OPCODES_DIR): define.
4669 (OPCODES): Use $(OPCODES_DIR).
4670 (gdb_sim_d10v_h): Rename sim_d10v_h.
4671 (gdb_sim_arm_h): Rename sim_arm_h.
4673 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4675 * utils.c (host_pointer_to_address, address_to_host_pointer):
4676 Change internal_error() message to indicate function responsible
4679 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4681 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4682 calls to local_hex_string_custom().
4684 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4686 * irix5-nat.c: Move IRIX shared library support from here...
4687 * solib-irix.c: ...to here. Revised substantially to work with
4688 generic solib framework.
4690 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4691 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4692 * mips-irix-tdep.c: New file.
4694 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4695 (mips-irix-tdep.o, solib-irix.o): New rules.
4696 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4698 * config/mips/irix6.mt (TDEPFILES): Likewise.
4699 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4701 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4703 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4704 disabled (via ``#if 0'') includes.
4706 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4708 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4709 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4710 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4711 Add support for the fpscr register.
4712 * rs6000-nat.c (regmap, fetch_inferior_registers)
4713 (store_inferior_registers, fetch_core_registers): Likewise.
4715 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4717 * rs6000-nat.c (language.h): Include.
4718 (special_regs): Delete this array.
4719 (regmap): New function.
4720 (fetch_register, store_register): Use regmap() to map gdb
4721 register numbers to ptrace register numbers. Also, use
4722 outputs from regmap() to make decisions regarding type of
4723 ptrace() call to make. In particular, don't compare against
4724 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4725 (fetch_inferior_registers, store_inferior_registers): Where
4726 possible, obtain register numbers from tdep struct. Don't
4727 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4728 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4729 (LAST_UISA_SP_REGNUM): Delete.
4731 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4733 * rs6000-nat.c (ppc-tdep.h): Include.
4734 (fetch_registers, store_register, fetch_core_registers): Don't
4735 access registers[] directly. Instead, use supply_register() or
4736 regcache_collect() as appropriate.
4737 (find_toc_address): Format hex address with local_hex_string().
4739 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4741 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4744 2002-07-24 Tom Tromey <tromey@redhat.com>
4746 * jv-exp.y: Marked all strings with _().
4747 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4749 (MethodInvocation, CastExpression, parse_number, yyerror,
4750 java_type_from_name, push_expression_name, yylex): Typo fixes.
4752 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4754 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4755 (tee_file_flush, tee_file_write, tee_file_fputs)
4756 (tee_file_isatty): New.
4757 * ui-file.h (tee_file_new): Add prototype.
4759 2002-07-24 Aidan Skinner <aidan@velvet.net>
4761 * ada-lang.c: Change k&r style function definitions to prototyped
4763 * ada-typeprint.c: Change k&r style function definitions to prototyped
4765 * ada-valprint.c: Change k&r style function definitions to prototyped
4768 2002-07-24 Andrew Cagney <cagney@redhat.com>
4770 * README: Remove reference to remote-bug.
4771 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4773 (m88k-nat.o): Delete rule.
4774 (m88k-tdep.o): Delete rule.
4775 (remote-bug.o): Delete rule.
4776 * MAINTAINERS: Mark as obsolete.
4777 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4778 * m88k-tdep.c: Make file obsolete.
4779 * config/m88k/m88k.mh: Ditto.
4780 * config/m88k/delta88v4.mh: Ditto.
4781 * config/m88k/delta88v4.mt: Ditto.
4782 * config/m88k/delta88.mt: Ditto.
4783 * config/m88k/delta88.mh: Ditto.
4784 * remote-bug.c: Ditto.
4785 * config/m88k/tm-delta88.h: Ditto.
4786 * config/m88k/nm-delta88v4.h: Ditto.
4787 * config/m88k/xm-delta88.h: Ditto.
4788 * config/m88k/xm-dgux.h: Ditto.
4789 * config/m88k/tm-m88k.h: Ditto.
4790 * config/m88k/nm-m88k.h: Ditto.
4791 * config/m88k/tm-delta88v4.h: Ditto.
4792 * m88k-nat.c: Ditto.
4793 * cxux-nat.c: Ditto.
4794 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4795 and m88*-*-* obsolete.
4796 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4799 2002-07-24 Andrew Cagney <cagney@redhat.com>
4801 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4802 constant. Same for local pointer variables.
4803 (extract_signed_integer): Ditto.
4804 * defs.h (extract_unsigned_integer): Update.
4805 (extract_signed_integer): Update.
4807 2002-07-24 Andrew Cagney <cagney@redhat.com>
4809 * regcache.c (regcache_raw_write): Change buf parameter to a
4810 constant void pointer.
4811 (regcache_raw_read): Change buf parameter to a void pointer.
4812 (legacy_write_register_gen): Change myaddr parameter a constant
4814 (supply_register): Change val parameter to a const void pointer.
4815 * regcache.h (regcache_raw_write): Update declaration.
4816 (regcache_raw_read): Update declaration.
4817 (supply_register): Update declaration.
4819 2002-07-24 Tom Tromey <tromey@redhat.com>
4821 * defs.h (gdb_readline_wrapper): Declare.
4822 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4823 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4824 * top.c (gdb_readline_wrapper): New function.
4825 (command_line_input): Use it.
4827 2002-07-24 Andrew Cagney <cagney@redhat.com>
4829 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4830 regcache_read and regcache_write.
4831 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4832 * regcache.c: Update.
4833 * sh-tdep.c (sh64_push_arguments): Update comment.
4834 (sh_pseudo_register_read): Update.
4835 (sh_pseudo_register_write): Update.
4836 (sh4_register_read): Update.
4837 (sh4_register_write): Update.
4838 (sh64_pseudo_register_read): Update.
4839 (sh64_pseudo_register_write): Update.
4840 (sh64_register_read): Update.
4841 (sh64_register_write): Update.
4842 * i386-tdep.c (i386_extract_return_value): Update.
4843 (i386_extract_struct_value_address): Update.
4844 (i386_extract_return_value): Update.
4845 * blockframe.c (generic_read_register_dummy): Update.
4846 (generic_call_dummy_register_unwind): Update
4847 * infrun.c (write_inferior_status_register): Update.
4849 2002-07-23 Jim Blandy <jimb@redhat.com>
4851 * parser-defs.h (expression_context_pc): Make this extern.
4852 (Thanks to Michael Snyder.)
4854 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4856 GDB 5.2.1 released from 5.2 branch.
4857 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4858 * README: Update to mention 5.2.1.
4860 2002-07-23 Mark Salter <msalter@redhat.com>
4862 * remote.c (remote_read_bytes): Fix check for error.
4864 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4866 * aix-thread.c (language.h): Include.
4867 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4868 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4869 Print newlines at end of debug messages.
4870 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4871 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4873 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4875 * aix-thread.c (ppc-tdep.h): Include.
4876 (special_register_p): New function.
4877 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4878 (store_regs_user_thread): Use register number information from
4879 gdbarch_tdep struct instead of hardcoded offsets relative to
4880 FIRST_UISA_SP_REGNUM.
4881 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4882 special_register_p() instead of using FPLAST_REGNUM and
4883 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4884 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4885 will be MQ's register number.
4887 2002-07-22 Michael Snyder <msnyder@redhat.com>
4889 * aix-thread.c (ops): Rename to aix_thread_ops.
4890 (base_ops): Rename to base_target.
4891 (ops_attach): Rename to aix_thread_attach.
4892 (ops_detach): Rename to aix_thread_detach.
4893 (ops_resume): Rename to aix_thread_detach.
4894 (ops_wait): Rename to aix_thread_wait.
4895 (ops_kill): Rename to aix_thread_kill.
4896 (init_ops): Rename to init_aix_thread_ops.
4897 (ops_fetch_register): Rename to aix_thread_fetch_register.
4898 (ops_store_register): Rename to aix_thread_store_register.
4899 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4900 (ops_thread_alive): Rename to aix_thread_thread_alive.
4901 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4902 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4903 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4904 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4905 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4906 (store_regs_lib): Rename to store_regs_user_thread.
4907 (store_regs_kern): Rename to store_regs_kernel_thread.
4909 2002-07-22 Michael Snyder <msnyder@redhat.com>
4911 * aix-thread.c (ops_prepare_to_store): Eliminate.
4912 (init_ops): Don't initialize ops.prepare_to_store.
4913 (store_regs_kern): Pre-fetch register buffers from child,
4914 because some registers may not be in the cache. Copy
4915 regs from register cache only if they are cached.
4916 (store_regs_lib): Copy regs from register cache only
4918 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4919 fill_gprs64): Ditto.
4921 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4923 * aix-thread.c (gdb_assert.h): Include.
4924 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4925 register sizes (from register cache) match size of buffer holding
4927 (fill_sprs32): Change parameter types to match those in the ptrace()
4929 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4930 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4932 2002-07-22 Michael Snyder <msnyder@redhat.com>
4934 * aix-thread.c (supply_sprs64): Cosmetic change.
4935 (supply_sprs32): Cosmetic change.
4936 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4937 (fill_sprs64): Use regcache_collect instead of read_register.
4938 (store_regs_lib): Use regcache_collect instead of
4939 read_register. Use fill_sprs32 instead of fill_sprs64,
4940 if debugging a 32-bit architecture.
4941 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4942 out of the register cache, instead of passing a pointer into
4943 the register cache directly to ptrace. Use regcache_collect
4944 insteaad of read_register.
4945 (ops_prepare_to_store): Use target_read_registers instead
4946 of read_register_bytes.
4948 2002-07-20 Aidan Skinner <aidan@velvet.net>
4950 * MAINTAINERS: Add self under write after approval.
4952 2002-07-20 Aidan Skinner <aidan@velvet.net>
4954 * ada-tasks.c: Change k&r style function definitions to prototyped
4957 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4959 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4960 * x86-64-tdep.c: Include "objfiles.h".
4961 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4962 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4964 2002-07-17 Michal Ludvig <michal@suse.cz>
4966 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4967 (update_context): Initialise cfa variable.
4969 2002-07-17 Michael Snyder <msnyder@redhat.com>
4971 * aix-thread.c: Shorten some long lines.
4972 Bring comments into line with code spec.
4974 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4976 * infrun.c: Re-indent using gdb_indent.sh.
4978 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4980 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4981 Leave the indentation temporarily untouched, to minimize the diffs.
4983 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4985 * stabsread.c: Make os9k sections of the code obsolete,
4987 * stabsread.h: Make os9k sections of the code obsolete.
4989 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4991 * linux-low.c (regsets_store_inferior_registers): Add free()
4992 at the end of a loop to prevent memory leak.
4993 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4994 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4995 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4997 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4999 2002-07-17 Jim Blandy <jimb@redhat.com>
5001 * macrocmd.c (info_macro_command): Remove newline from error
5004 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5006 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5007 (sh_gdbarch_init): Use it for sh-dsp.
5009 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5011 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5012 64-bit DWARF2 format.
5014 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5016 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5017 <sys/proc.h> when not available.
5019 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5021 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5022 * stabsread.c: Make os9k sections of the code obsolete.
5023 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5024 * config/i386/i386os9k.mt: Make file obsolete.
5025 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5026 (COMMON_OBS): Remove os9kread.o
5027 (SFILES): Remove os9kread.c.
5028 (os9kread.o, remote-os9k.o): Make target obsolete.
5029 * remote-os9k.c: Make file obsolete.
5030 * os9kread.c: Make file obsolete.
5033 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5035 * NEWS: Mention that the FR30 has been made obsolete.
5036 * fr30-tdep.c: Make file obsolete.
5037 * config/fr30/tm-fr30.h: Ditto.
5038 * config/fr30/fr30.mt: Ditto.
5039 * configure.tgt: Make fr30-*-elf obsolete.
5040 * MAINTAINERS: Make fr30-elf obsolete.
5042 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5044 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5045 found is not inside a section.
5047 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5049 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5051 (pdc_realloc): Use xrealloc() instead of realloc().
5053 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5055 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5056 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5057 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5060 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5062 * aix-thread.c (ptrace_check): Eliminate goto.
5063 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5066 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5068 * aix-thread.c (gdbcmd.h): Include.
5069 (DEBUG, DBG, DBG2, dbg): Eliminate.
5070 (debug_aix_thread): New static global.
5071 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5072 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5073 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5074 invocations to DBG and DBG2 macros to test against
5075 ``debug_aix_thread'' and call fprintf_unfiltered().
5076 (_initialize_aix_thread): Add new command "set debug aix-thread".
5078 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5080 From Gerhard Tonn <TON@de.ibm.com>:
5081 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5082 instead of supply_register.
5084 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5086 * dwarf2cfi.c: Include "gdb_assert.h".
5087 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5089 (update_context): Do not use __func__. Add missing ``break''.
5090 (update_context): Do not use __func__.
5092 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5094 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5095 and its setting. Set gdbarch instruction printing functions
5096 directly. For non-rs6000 case use new function
5097 gdb_print_insn_powerpc.
5098 (gdb_print_insn_powerpc): New function.
5100 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5102 * NEWS: Mention that the d30v has been marked obsolete.
5103 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5104 * configure.tgt: Mark d30v-*-* as obsolete.
5105 * d30v-tdep.c: Mark file as obsolete.
5106 * config/d30v/d30v.mt: Ditto.
5107 * config/d30v/tm-d30v.h: Ditto.
5109 2002-07-13 Aidan Skinner <aidan@velvet.net>
5111 * ada-tasks.c (add_task_entry): replace calls to
5112 malloc() with xmalloc
5113 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5115 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5116 ada_finish_decode_line_1, all_sals_for_line
5117 ada_breakpoint_rewrite): replace calls to free() with xfree()
5119 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5121 From Nicholas Duffek (with minor changes by Martin Hunt,
5122 Louis Hamilton, and Kevin Buettner):
5123 * aix-thread.c: New file.
5125 2002-07-12 Petr Sorfa <petrs@caldera.com>
5127 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5128 complaint for invalid attribute class or form.
5129 (read_func_scope): DW_AT_frame_base
5130 better handling of DW_AT_block*.
5131 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5132 better handling of DW_AT_block*.
5133 (read_common_block): DW_AT_location
5134 better handling of DW_AT_block*.
5135 (read_partial_die): DW_AT_location better handling
5137 (new_symbol): DW_AT_external better handling of
5138 DW_AT_block*. Proper initialization of variable
5140 (attr_form_is_block): New function that returns true
5141 if the attribute's form is of DW_FORM_block*.
5143 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5145 * valops.c (find_method_list): Remove comment about
5146 removed STATIC_MEMFUNCP argument.
5147 (value_find_oload_method_list): Likewise.
5149 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5151 From Nicholas Duffek:
5152 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5153 target_new_objfile_hook.
5155 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5157 From Nicholas Duffek:
5158 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5161 2002-07-12 Andrew Cagney <cagney@redhat.com>
5163 * MAINTAINERS: Mention --enable-sim-build-warnings.
5164 (m68hc11-elf): Disable sim build warnings.
5165 (m32r-elf): Mark as broken obsolete candidate.
5166 (x86_64-linux-gnu): Mark as buildable with -Werror.
5167 (arm-elf): Change -w to ``,'' which enables warnings but not
5170 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5172 * bcache.h: Update copyright.
5173 (struct bstring, struct bcache): Move definition to "bcache.c".
5174 Replaced by opaque declaration.
5175 (bcache_xfree): Replace free_bcache.
5176 (bcache_xmalloc, bcache_memory_used): Declare.
5178 * bcache.c: Update copyright.
5179 (struct bstring, struct bcache): Moved to here from "bcache.h".
5181 (bcache_xmalloc, bcache_memory_used): New functions.
5182 (bcache_xfree): Replace function free_bcache.
5184 * Makefile.in (objfiles.o): Add $(bcache_h).
5185 (objfiles_h): Remove $(bcache_h).
5186 (symfile.o): Add $(bcache_h).
5188 * symmisc.c: Update copyright.
5189 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5190 (print_objfile_statistics): Use bcache_memory_used.
5192 * symfile.c: Include "bcache.h".
5193 (reread_symbols): Use bcache_xfree.
5194 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5195 (add_psymbol_to_list): Pass psymbol_cache by value.
5196 (add_psymbol_with_dem_name_to_list): Ditto.
5198 * objfiles.h: Update copyright.
5199 (struct bcache): Declare opaque. Do not include "bcache.h".
5200 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5202 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5204 * objfiles.c: Include "bcache.h". Update copyright.
5205 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5207 (free_objfile): Use bcache_xfree.
5209 2002-07-11 Grace Sainsbury <graces@redhat.com>
5211 * monitor.c (monitor_fetch_register): Make name a constant.
5212 (monitor_store_register): Same.
5214 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5216 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5217 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5218 (finish_block) For non-function blocks, hash the symbol table. For
5219 function blocks, mark the symbol table as unhashed.
5220 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5221 (msymbol_hash_iw): Likewise.
5222 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5224 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5225 (lookup_minimal_symbol): Likewise for both.
5226 * symtab.h (struct block): Add `hashtable' flag. Comment the
5228 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5229 (ALL_BLOCK_SYMBOLS): Update.
5230 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5231 (struct symbol): Add `hash_next' pointer.
5232 * symtab.c (lookup_block_symbol): Search using the hash table when
5234 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5235 (search_symbols, find_addr_symbol): Likewise.
5237 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5238 (read_dst_symtab): Likewise.
5239 * jv-lang.c (get_java_class_symtab): Likewise.
5240 * mdebugread.c: Include "gdb_assert.h".
5241 (shrink_block): Assert that the block being modified is not hashed.
5242 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5243 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5245 (dump_symtab): Recognize hashed blocks.
5246 * printcmd.c (print_frame_args): Assert that function blocks do not
5247 have hashed symbol tables.
5248 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5249 (fill_in_ada_prototype, debug_print_block): Likewise.
5250 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5252 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5254 * stack.c (print_frame): Use result of frame_address_in_block()
5255 instead of fi->pc when evaluating symbols.
5256 (backtrace_command_1): Ditto.
5258 2002-07-11 Andrew Cagney <cagney@redhat.com>
5260 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5263 * arm-tdep.c (arm_register_name): Make return type constant.
5265 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5267 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5269 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5270 * s390-tdep.c (s390_fp_regnum): Ditto.
5271 (s390_read_fp): Ditto.
5272 (s390_pop_frame): Ditto.
5273 (_initialize_s390_tdep): Ditto.
5274 * remote.c (get_remote_state): Ditto.
5275 * procfs.c (mappingflags): Ditto.
5276 * memattr.c (_initialize_mem): Ditto.
5277 * mcore-tdep.c (mcore_pop_frame): Ditto.
5278 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5279 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5280 * language.c (set_case_str): Ditto.
5281 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5282 * frv-tdep.c (new_variant): Ditto.
5283 (frv_stopped_data_address): Ditto.
5284 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5285 (context_alloc): Ditto.
5286 (frame_state_alloc): Ditto.
5287 (unwind_tmp_obstack_init): Ditto.
5288 (unwind_tmp_obstack_free): Ditto.
5289 (cfi_read_fp): Ditto.
5290 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5291 (cris_pop_frame): Ditto.
5292 * c-lang.c (scanning_macro_expansion): Ditto.
5293 (finished_macro_expansion): Ditto.
5294 (c_preprocess_and_parse): Ditto.
5295 * gdbarch.sh: Ditto.
5296 * gdbarch.h, gdbarch.c: Regenerate.
5297 * config/mn10200/tm-mn10200.h: Adjust indentation.
5298 * target.c: Adjust indentation.
5299 * symtab.h: Adjust indentation.
5300 * stabsread.h: Adjust indentation.
5301 * remote-es.c: Adjust indentation.
5302 * os9kread.c: Adjust indentation.
5304 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5306 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5307 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5309 2002-07-10 Grace Sainsbury <graces@redhat.com>
5311 * NEWS: Mention m68k, mcore multi-arching.
5312 * MAINTAINERS: Change status of m68k, mcore to reflect
5315 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5317 * valops.c (find_overload_match): Free oload_syms.
5319 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5321 Define HAVE_SYS_PROC_H if sys/proc.h exists
5322 * configure.in: Add check for sys/proc.h
5323 * config.in: Regenerate.
5324 * configure: Regenerate.
5326 2002-07-09 Grace Sainsbury <graces@redhat.com>
5328 * config/m68k/tm-m68k.h: Remove macros wrapped in
5329 #if !GDB_MULTI_ARCH.
5331 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5333 * config.in, configure: Regenerate.
5335 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5337 * dwarf2cfi.c: Include "gcore.h".
5338 (execute_stack_op): Fix implementation of the
5339 DW_OP_deref and DW_OP_deref_size operators by letting do their
5340 lookup in the target.
5342 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5344 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5345 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5348 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5350 Fix PR gdb/595, gdb/602
5351 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5352 Don't call value_cast, just read the vtable pointer; update comments
5355 2002-07-05 Grace Sainsbury <graces@redhat.com>
5357 * config/mcore/tm-mcore.h: Remove file.
5358 * config/mcore/mcore.mt: Remove definition of TM_FILE
5359 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5361 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5363 * i386bsd-tdep.c: Include "gdb_string.h".
5365 2002-07-04 Grace Sainsbury <graces@redhat.com>
5367 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5368 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5370 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5371 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5372 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5373 (RETVAL_REGNUM): Move macros from tm-mcore.h
5374 (mcore_reg_struct_has_addr): New function.
5375 (mcore_gdbarch_init): Added initializations for the macros removed
5378 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5380 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5381 traditonal string branding within the ELF header.
5383 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5385 * symtab.c (remove_params): New function.
5386 (make_symbol_overload_list): Use it instead of cplus_demangle.
5387 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5389 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5391 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5393 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5395 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5396 and tdep->sigtramp_end.
5397 * i386obsd-nat.c: New file.
5398 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5400 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5401 Don't call get_current_frame().
5403 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5405 * i386-nat.c (child_post_startup_inferior): New function
5406 calling i386_cleanup_dregs if
5407 I386_USE_GENERIC_WATCHPOINTS is defined.
5408 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5409 conditional to acknowledge that i386-nat.c has its
5410 own child_post_startup_inferior function.
5412 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5414 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5415 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5416 instead of MAX_REGISTER_RAW_SIZE.
5417 (i386_extract_return_value, i386_extract_struct_value_address):
5418 Convert to use regcache.
5419 (i386_gdbarch_init): Set max_register_raw_size and
5420 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5421 Set extract_return_value and extract_struct_value_address instead
5422 of their deprecated variants.
5424 Convert i386 target to generic dummy frames.
5425 * i386-tdep.c: Include "symfile.h".
5426 (i386_frameless_signal_p): Consider a function to be frameless if
5427 the pc points at the first instruction of the function.
5428 (i386_frame_chain): Handle (generic) call dummies.
5429 (i386_frame_saved_pc): Likewise.
5430 (i386_frame_init_saved_regs): Remove code dealing with call
5431 dummies on the stack.
5432 (i386_push_dummy_frame): Removed.
5433 (i386_call_dummy_words): Removed.
5434 (i386_fix_call_dummy): Removed.
5435 (i386_push_return_address): New function.
5436 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5437 parameter, and don't call get_current_frame.
5438 (i386_pop_frame): New function.
5439 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5440 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5441 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5442 call_dummy_length to 0, set call_dummy_words to NULL, set
5443 sizeof_call_dummy_words to 0, set fix_call_dummy to
5444 generic_fix_call_dummy, set pc_in_call_dummy to
5445 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5446 generic_push_dummy_frame, set push_return_address to
5447 i386_push_return_address and set frame_chain_valid to
5448 generic_file_frame_chain_valid.
5450 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5452 * gdbarch.sh (struct regcache): Add opaque declaration.
5453 (EXTRACT_RETURN_VALUE): New architecture method.
5454 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5455 * gdbarch.h, gdbarch.c: Regenerate.
5456 * arch-utils.c (legacy_extract_return_value): New function.
5457 * arch-utils.h (legacy_extract_return_value): Declare.
5458 * values.c (value_being_returned): Re-enable code handling
5459 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5460 deprecated_grub_regcache_for_registers call to block handling
5461 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5462 (EXTRACT_RETURN_VALUE): Do not define.
5464 2002-07-03 Grace Sainsbury <graces@redhat.com>
5466 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5467 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5468 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5469 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5470 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5471 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5472 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5473 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5474 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5475 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5476 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5477 argument so the function fits the prototype in the architecture
5479 (mcore_pop_frame): Remove argument so the function fits the
5480 prototype. Use get_current_frame instead of the argument.
5481 (mcore_push_arguments): Change type of struct_return so the
5482 function can be used in the architecture vector.
5483 (mcore_store_struct_return): Add.
5484 (mcore_frame_init_saved_regs): Add.
5485 (mcore_gdbarch_init): Add function calls to replace the macros
5486 removed from tm-mcore.h
5488 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5490 * infcmd.c (print_return_value): Remove compatibility code calling
5491 deprecated_grub_regcache_for_registers.
5493 * values.c: Include "regcache.h".
5494 (value_being_returned): Update. Use
5495 deprecated_grub_regcache_for_registers to extract the register
5497 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5498 ``struct regcache''.
5499 * Makefile.in (values.o): Add dependency on $(regcache_h).
5501 * inferior.h (run_stack_dummy): Change type of second parameter to
5502 a ``struct regcache''.
5503 * valops.c (hand_function_call): Change type of retbuf to ``struct
5504 regcache''. Allocate using regcache_xmalloc, clean using
5505 make_cleanup_regcache_xfree.
5506 * infcmd.c (run_stack_dummy): Update. Use
5507 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5509 * regcache.c (do_regcache_xfree): New function.
5510 (make_cleanup_regcache_xfree): New function.
5511 * regcache.h (make_cleanup_regcache_xfree): Declare.
5513 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5515 * event-top.c (command_line_handler): Don't read past
5516 beginning of buffer.
5518 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5520 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5522 (varobj_create): Store frame_id for root.
5523 (varobj_gen_name): Use xasprintf.
5524 (varobj_update): Save and restore frame using get_frame_id() and
5526 (create_child): Use xasprintf.
5527 (new_root_variable): Initialize frame_id.
5528 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5529 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5530 to prevent memory leak.
5532 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5534 * valops.c (hand_function_call): Move declaration of retbuf to
5535 start of function, allocate using malloc, add a cleanup but before
5536 the inf_status cleanup, cleanup the buffer. Rename local variable
5537 old_chain to inf_status_cleanup.
5539 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5541 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5543 * cli/cli-decode.c (cmd_func_p): New function.
5544 (cmd_func): New function.
5546 * command.h: Add cmd_func() and cmd_func_p().
5548 2002-07-03 Grace Sainsbury <graces@redhat.com>
5550 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5551 (REGISTER_SIZE): Remove.
5552 (MAX_REGISTER_RAW_SIZE): Remove.
5553 (REGISTER_VIRTUAL_TYPE): Remove.
5554 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5555 (REGISTER_NAME): Remove.
5556 (USE_GENERIC_DUMMY_FRAMES): Remove.
5557 (CALL_DUMMY): Remove.
5558 (CALL_DUMMY_START_OFFSET): Remove.
5559 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5560 (CALL_DUMMY_LOCATION): Remove.
5561 (FIX_CALL_DUMMY): Remove.
5562 (CALL_DUMMY_ADDRESS): Remove.
5563 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5564 (SAVE_DUMMY_FRAME_TOS): Remove.
5565 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5566 (mcore_register_virtual_type): New function.
5567 (mcore_register_byte): New function.
5568 (mcore_register_size): New function.
5569 (mcore_register_name): New function.
5570 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5571 macros removed from tm-mcore.h.
5572 (mcore_dump_tdep): Add.
5573 (_initialize_mcore_tdep): Add gdbarch_register call.
5575 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5577 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5578 frameless_look_for_prologue, such that we actually call this
5581 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5583 * frame.h (frame_address_in_block): New function.
5585 * blockframe.c (frame_address_in_block): New function extracted
5586 from get_frame_block().
5587 (get_frame_block): Use frame_address_in_block().
5588 (block_innermost_frame): Use frame_address_in_block() to match
5589 the frame pc address against the block boundaries rather than
5590 the frame pc directly. This prevents a failure when a frame pc
5591 is actually a return-address pointing immediately after the end
5594 2002-07-02 Grace Sainsbury <graces@redhat.com>
5596 * MAINTAINERS: Add self under write after approval.
5598 2002-07-02 Grace Sainsbury <graces@redhat.com>
5600 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5601 used in architecture vector. The default is
5602 m68k_local_breakpoint_from_pc.
5603 (m68k_local_breakpoint_from_pc): Add.
5604 (enum): Add register numbers from tm-m68k.h.
5605 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5607 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5608 GDB_MULTI_ARCH_PARTIAL.
5609 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5610 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5612 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5613 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5614 to enum in m68k-tdep.c
5616 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5618 * solib-osf.c (open_map): Compute the list of shared libraries
5619 loaded by the inferior, rather than the list of libraries loaded
5620 by GDB itself. Otherwise, GDB ends up reading the symbols from
5621 the wrong shared libraries...
5623 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5625 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5626 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5628 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5630 (FRAMELESS_SIGNAL): Remove function.
5631 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5632 i386_linux_saved_pc_after_call): Removed.
5633 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5634 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5635 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5637 * i386-tdep.c (i386_frameless_signal_p): New function.
5638 (i386_frame_chain): Deal with frameless signals.
5639 (i386_sigtramp_saved_sp): New function.
5640 (i386_frame_saved_pc): Deal with frameless signals.
5641 (i386_saved_pc_after_call): Make sure the correct value is
5642 returned just after entry into a sigtramp.
5643 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5644 i386fbsd4_sc_sp_offset): New variables.
5645 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5646 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5647 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5648 similiar to what we already did for sc_pc_offset.
5649 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5652 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5654 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5656 * config/i386/tm-x86-64linux.h: New.
5657 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5659 * config/i386/nm-x86-64.h: Rename to ...
5660 * config/i386/nm-x86-64linux.h: ... this one.
5661 * config/i386/x86-64linux.mh: Reflect the above change.
5663 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5665 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5666 with sigcontext_addr. Add sc_sp_offset.
5667 (i386bsd_sigtramp_saved_pc): Remove prototype.
5668 (i386bsd_sicontext_addr): Add prototype.
5669 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5670 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5671 (i386_svr4_sigtramp_saved_pc): Removed.
5672 (i386_svr4_sigcontext_addr): New function.
5673 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5674 Initialize tdep->sigcontext_addr instead. Initialize
5675 tdep->sc_pc_offset and tdep->sc_sp_offset.
5676 (i386_gdbarch_init): Likewise.
5677 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5679 (i386bsd_sigtramp_saved_pc): Remove function.
5680 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5681 Initialize tdep->sigcontext_addr instead. Initialize
5683 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5684 of tdep->sigtramp_saved_pc.
5685 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5686 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5689 * i386-tdep.c (i386_frameless_function_invocation,
5690 i386_frame_num_args, i386_frame_init_saved_regs,
5691 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5692 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5693 i386_extract_return_value, i386_store_return_value,
5694 i386_extract_struct_value_address, i386_register_virtual_type,
5695 i386_register_convertible, i386_register_convert_to_virtual,
5696 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5697 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5700 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5702 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5704 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5705 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5706 this macro. Include "value.h".
5708 2002-06-30 Aidan Skinner <aidan@velvet.net>
5710 * ada-exp.tab.c: remove as it's a generated file
5711 * ada-lex.c: remove as it's a generated file
5713 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5715 * config/i386/tm-i386.h (struct frame_info, struct
5716 frame_saved_regs, struct value, struct type): Remove forward
5719 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5720 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5721 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5722 (FILL_FPXREGSET): Define.
5724 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5726 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5727 i[3456]86-*-netbsd* case.
5728 * config/i386/tm-obsd.h: Removed.
5729 * config/i386/obsd.mt: Removed.
5730 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5732 (MH_CFLAGS): Add -DYYDEBUG=0.
5734 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5735 i386nbsd_sc_pc_offset on OpenBSD too.
5737 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5738 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5739 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5741 * i386bsd-tdep.c: Include "arch-utils.h".
5742 (i386bsd_aout_in_solib_call_trampoline): New function.
5743 (i386bsd_init_abi): Set in_solib_call_trampoline to
5744 i386bsd_aout_in_solib_call_trampoline.
5745 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5746 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5748 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5750 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5751 (struct obstack, struct bcache): Add opaque declarations.
5752 * Makefile.in (macrotab_h): Update
5754 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5756 * blockframe.c (generic_find_dummy_frame): Change return type to
5757 ``struct regcache''.
5758 (struct dummy_frame): Replace field ``registers'' with regcache, a
5759 struct regcache object.
5760 (generic_find_dummy_frame): Update.
5761 (generic_push_dummy_frame): Update. Use regcache_xfree,
5762 regcache_xmalloc and regcache_cpy.
5763 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5765 (deprecated_generic_find_dummy_frame): Update.
5766 (generic_read_register_dummy): Update. Use
5767 regcache_read_as_address.
5768 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5769 (generic_get_saved_register): Update. Use regcache_read.
5771 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5773 * Makefile.in (objfiles_h): Add $(bcache_h).
5774 * objfiles.h: Include "bcache.h".
5776 * Makefile.in (symtab_h): Remove $(bcache_h).
5777 * symtab.h: Do not include "bcache.h".
5779 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5781 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5782 generic_func_frame_chain_valid.
5784 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5786 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5787 * config/i386/tm-fbsd.h: Likewise.
5789 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5791 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5792 generic_unwind_get_saved_register.
5794 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5796 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5797 * regcache.c (supply_register): Add missing argument to
5798 register_buffer call.
5800 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5802 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5803 Solaris /bin/grep does not not like it. From Peter Schauer.
5805 2002-06-26 Tom Tromey <tromey@redhat.com>
5807 * command.h (add_setshow_cmd): Declare.
5808 (add_setshow_cmd_full): Declare.
5809 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5810 returns void. Use add_setshow_cmd_full.
5811 (add_setshow_cmd_full): New function.
5812 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5813 (add_setshow_boolean_cmd): Likewise.
5815 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5817 * config/vax/tm-vax.h: Protect from multiple inclusion.
5818 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5819 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5820 * config/vax/tm-vaxbsd.h: ...here. New file.
5821 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5823 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5825 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5826 (BELIEVE_PCC_PROMOTION): Remove.
5827 (AP_REGNUM): Move to...
5828 * config/vax/nm-vax.h: ...here.
5829 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5830 (vax_breakpoint_from_pc): New function.
5831 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5832 and gdbarch_believe_pcc_promotion.
5834 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5836 * Makefile.in (vax_tdep_h): Define.
5837 (vax-tdep.o): Use $(vax_tdep_h).
5838 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5839 (vax_dump_tdep): New function.
5840 (_initialize_vax_tdep): Register vax_dump_tdep.
5841 * vax-tdep.h: Include osabi.h.
5842 (struct gdbarch_tdep): New.
5844 2002-06-26 Andrew Cagney <cagney@redhat.com>
5846 * frame.h (deprecated_generic_find_dummy_frame): Rename
5847 generic_find_dummy_frame.
5848 * blockframe.c (generic_find_dummy_frame): Make static.
5849 (deprecated_generic_find_dummy_frame): New function.
5850 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5851 generic_find_dummy_frame with deprecated_find_dummy_frame.
5852 (sh64_nofp_frame_init_saved_regs): Ditto.
5853 (sh_fp_frame_init_saved_regs): Ditto.
5854 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5855 (s390_frame_chain): Ditto.
5856 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5858 2002-06-26 Grace Sainsbury <graces@redhat.com>
5860 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5861 gdbarch vector are at the top.
5863 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5864 (FRAME_ARGS_ADDRESS): Remove.
5865 (FRAME_LOCALS_ADDRESS): Remove.
5866 (FRAME_NUM_ARGS): Remove.
5867 (FRAME_ARGS_SKIP): Remove.
5868 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5869 (m68k_gdbarch_init): Add gdbarch initializations for macros
5870 undefined in tm-m68k.h
5872 2002-06-26 Grace Sainsbury <graces@redhat.com>
5874 * monitor.h: Add the function regname to monitor_ops
5875 structure. This way NUM_REGS does not have to be a constant.
5876 * monitor.c (monitor_fetch_register): Added support for regname
5877 function. The function is called if the array regnames is NULL.
5878 (monitor_store_register): Same.
5879 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5881 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5882 cpu32bug_cmds.regname to point to new function.
5883 * abug-rom.c (abug_regname): Same as above.
5884 (init_abug_cmds): Same.
5885 * dbug-rom.c (dbug_regname): Same as above.
5886 (init_dbug_cmds): Same.
5887 * remote-est.c (est_regname): Same.
5888 (init_est_cmds): Same.
5889 * rom68k-rom.c (rom68k_regname): Same.
5890 (init_rom68k_cmds): Same.
5892 2002-06-25 Tom Tromey <tromey@redhat.com>
5894 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5896 2002-06-25 Andrew Cagney <cagney@redhat.com>
5898 * infrun.c (stop_registers): Change variable's type to ``struct
5900 (xmalloc_inferior_status): Delete function.
5901 (free_inferior_status): Delete function.
5902 (normal_stop): Use regcache_cpy.
5903 (struct inferior_status): Change type of fields ``stop_registers''
5904 and ``registers'' to ``struct regcache''.
5905 (write_inferior_status_register): Use regcache_write.
5906 (save_inferior_status): Instead of calling
5907 xmalloc_inferior_status, allocate the inf_status buffer directly.
5908 Use regcache_dup_no_passthrough and regcache_dup to save the
5910 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5911 Replace the stop_registers regcache instead of overriding it. Use
5912 regcache_xfree. Instead of calling free_inferior_status, xfree
5913 the buffer directly.
5914 (discard_inferior_status): Use regcache_xfree. Instead of calling
5915 free_inferior_status, xfree the buffer directly.
5916 (build_infrun): Use regcache_xmalloc.
5917 (_initialize_infrun): Delete redundant call to build_infrun.
5919 * Makefile.in (infcmd.o): Add $(regcache_h).
5921 * infcmd.c: Include "regcache.h".
5922 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5923 obtain the address of `stop_registers' register buffer.
5924 (print_return_value): Ditto.
5926 * inferior.h (struct regcache): Add opaque declaration.
5927 (stop_registers): Change variable's declared type to ``struct
5930 2002-06-24 Tom Tromey <tromey@redhat.com>
5932 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5933 * target.c (initialize_targets): Fixed typo in
5934 trust-readonly-sections `show' documentation.
5936 * main.c: Marked all strings with _().
5938 2002-06-24 Don Howard <dhoward@redhat.com>
5940 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5941 that means max CORE_ADDR+1.
5942 (lookup_mem_region): Ditto.
5943 (mem_info_command): Ditto.
5945 2002-06-24 Grace Sainsbury <graces@redhat.com>
5947 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5948 (REGISTER_BYTES_OK): Remove.
5949 (REGISTER_BYTES): Remove.
5950 (STORE_STRUCT_RETURN): Remove.
5951 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5952 (STORE_RETURN_VALUE): Remove.
5953 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5954 (FRAME_CHAIN): Remove.
5955 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5956 (FRAME_SAVED_PC): Remove.
5957 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5958 (m68k_store_struct_return): Add.
5959 (m68k_deprecated_extract_return_value): Add.
5960 (m68k_deprecated_extract_struct_value_address): Add.
5961 (m68k_store_return_value): Add.
5962 (m68k_frame_chain): Add.
5963 (m68k_frameless_function_invocation): Add.
5964 (m68k_frame_saved_pc): Add.
5965 (m68k_gdbarch_init): added set_gdbarch calls for new
5966 functions and deleted macros.
5968 2002-06-23 Tom Tromey <tromey@redhat.com>
5970 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5971 (ALLDEPFILES): Likewise.
5972 (udiheaders): Removed.
5973 (udip2soc.o): Likewise.
5974 (udi2go32.o): Likewise.
5976 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5978 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5980 * infrun.c (_initialize_infrun): Delete unnecessary call to
5983 * regcache.h: Update comments describing the regcache_cpy family
5985 (regcache_save, regcache_restore): Delete declaration.
5986 (regcache_save_no_passthrough): Delete declaration.
5987 (regcache_restore_no_passthrough): Delete declaration.
5988 * regcache.c (regcache_save): Delete function.
5989 (regcache_save_no_passthrough): Delete function.
5990 (regcache_restore): Delete function.
5991 (regcache_restore_no_passthrough): Delete function.
5993 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5995 * config/m68k/tm-m68k.h: Fix typo.
5996 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5997 (m68k_frame_init_saved_regs): Declare.
5999 2002-06-21 Jim Blandy <jimb@redhat.com>
6001 Remove some vestiges of Harris 88k support.
6002 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6003 register numbering quirk.
6004 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6005 odd symbols occurring in Harris 88k ELF targets.
6007 2002-06-21 Tom Tromey <tromey@redhat.com>
6009 * gdb_locale.h: New file.
6010 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6011 (defs_h): Added gdb_locale.h.
6012 * configure, config.in: Rebuilt.
6013 * configure.in (PACKAGE): Define.
6014 * defs.h: Include gdb_locale.h.
6015 * main.c (captured_main): Call setlocale, bindtextdomain,
6018 2002-06-21 Dave Brolley <brolley@redhat.com>
6020 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6021 * config/frv/frv.mt: New file.
6022 * config/frv/tm-frv.h: New file.
6023 * configure.tgt: Support frv-*-*.
6024 * Makefile.in (frv-tdep.o): New target.
6025 * frv-tdep.c: New file.
6026 * NEWS: Mention frv.
6028 2002-06-21 Dave Brolley <brolley@redhat.com>
6030 * MAINTAINERS: Add self to "Write After Approval" list.
6032 2002-06-21 Grace Sainsbury <graces@redhat.com>
6034 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6035 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6036 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6037 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6038 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6040 * m68k-tdep.c: Include arch-utils.h
6041 (m68k_register_raw_size): Add.
6042 (m68k_register_virtual_size): Add.
6043 (m68k_register_virtual_type): Add.
6044 (m68k_register_name): Add.
6045 (m68k_stack_align): Add.
6046 (m68k_register_byte): Add.
6047 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6050 2002-06-21 Grace Sainsbury <graces@redhat.com>
6052 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6053 m68k_find_saved_regs.
6054 (m68k_pop_frame): Removed saved_regs structure, and replaced
6055 references to it with frame->saved_regs.
6056 (m68k_gdbarch_init): Added function calls to initialize the
6058 (m68k_fix_call_dummy): Add.
6059 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6060 (CALL_DUMMY): Remove.
6061 (CALL_DUMMY_LENGTH): Remove.
6062 (CALL_DUMMY_START_OFFSET): Remove.
6063 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6064 (FIX_CALL_DUMMY): Remove.
6065 (PUSH_DUMMY_FRAME): Remove.
6066 (POP_FRAME): Remove.
6068 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6070 * parse.c (parse_fprintf): New function used to avoid calls to
6071 fprintf in bison parser generated debug code.
6072 * parser-defs.h: Declaration of new parse_fprintf function.
6073 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6074 Set YYDEBUG to 1 by default.
6075 Set YYFPRINTF as parse_fprintf.
6077 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6079 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6081 (pointer_encoding, enum ptr_encoding): New.
6082 (execute_cfa_program): Take care about pointer encoding.
6083 (dwarf2_build_frame_info): Only call parse_frame_info for
6084 .debug_frame and .eh_frame.
6085 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6086 fixed augmentation handling, added relative addressing,
6087 ignore duplicate FDEs. Added comments.
6088 * dwarf2cfi.c: Reindented.
6090 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6092 * event-top.c (command_handler): Don't use space_at_cmd_start
6093 unless there is sbrk() on the host. Assign time and space data
6094 to union fields of the appropriate length.
6096 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6098 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6099 x86_64_register_name. Return type changed to 'const char *'.
6100 (x86_64_register_name2nr): Rename to x86_64_register_number.
6101 (x86_64_gdbarch_init): Update to reflect the change.
6102 * x86-64-tdep.h: Ditto.
6103 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6104 (supply_fpregset): Ditto.
6106 2002-06-19 Andrew Cagney <cagney@redhat.com>
6108 * regcache.h: Update copyright.
6109 (struct regcache, struct gdbarch): Add opaque declarations.
6110 (current_regcache): Declare global variable.
6111 (regcache_read, regcache_write): Add gdbarch parameter.
6112 (regcache_save, regcache_save_no_passthrough)
6113 (regcache_restore, regcache_restore_no_passthrough)
6114 (regcache_dup, regcache_dup_no_passthrough)
6115 (regcache_cpy, regcache_cpy_no_passthrough)
6116 (deprecated_grub_regcache_for_registers)
6117 (deprecated_grub_regcache_for_register_valid)
6118 (regcache_valid_p): Add function declarations.
6120 * regcache.c: Update copyright.
6121 (regcache_descr_handle): New global variable.
6122 (struct regcache_descr): Define.
6123 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6124 (regcache_descr, xfree_regcache_descr): New functions.
6125 (struct regcache): Define.
6126 (regcache_xmalloc, regcache_xfree): New functions.
6127 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6128 (regcache_dup, regcache_dup_no_passthrough): New functions.
6129 (regcache_valid_p, regcache_read_as_address): New functions.
6130 (deprecated_grub_regcache_for_registers): New function.
6131 (deprecated_grub_regcache_for_register_valid): New function.
6132 (current_regcache): New global variable.
6133 (register_buffer): Add regcache parameter. Update calls.
6134 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6135 (read_register_gen, write_register_gen): Update register_buffer
6136 call. Test for legacy_p instead of gdbarch_register_read_p or
6137 gdbarch_register_write_p.
6138 (regcache_collect): Update register_buffer call.
6139 (build_regcache): Rewrite. Use deprecated grub functions.
6140 (regcache_save, regcache_save_no_passthrough): New functions.
6141 (regcache_restore, regcache_restore_no_passthrough): New
6143 (_initialize_regcache): Create the regcache_data_handle. Swap
6144 current_regcache global variable.
6146 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6147 parameter to regcache_read and regcache_write calls.
6148 (sh4_register_read): Ditto.
6149 (sh64_pseudo_register_read): Ditto.
6150 (sh64_register_read): Ditto.
6151 (sh_pseudo_register_write): Ditto.
6152 (sh4_register_write): Ditto.
6153 (sh64_pseudo_register_write): Ditto.
6154 (sh64_register_write): Ditto.
6156 * defs.h (XCALLOC): Define.
6158 2002-06-19 Grace Sainsbury <graces@redhat.com>
6160 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6161 * m68k-tdep.c (m68k_gdbarch_init): Added.
6162 (m68k_dump_tdep): Added.
6164 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6166 * ada-lang.c (fill_in_ada_prototype): Update comment.
6168 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6170 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6172 (mips_abi_string, mips_abi_strings): New.
6173 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6174 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6175 tdep->mips_abi_string. Honor mips_abi_string. Default to
6176 O32 if no ABI is found.
6177 (mips_dump_tdep): Use mips_abi_strings.
6178 (mips_abi_update): New function.
6179 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6180 ``set mips abi'' and ``show mips abi''. Check the size of
6183 2002-06-19 Andrew Cagney <cagney@redhat.com>
6185 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6188 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6190 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6191 current frame using only the first stack size adjustment. All
6192 subsequent size adjustments are not considered to be part of
6193 the "static" part of the current frame.
6194 Compute the address of the saved registers relative to the
6195 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6196 in use in this frame.
6198 2002-06-18 Don Howard <dhoward@redhat.com>
6200 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6201 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6202 suggesting this solution.
6204 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6206 * config/romp/xm-rtbsd.h: Delete file.
6207 * config/romp/rtbsd.mh: Delete file.
6209 2002-06-18 Keith Seitz <keiths@redhat.com>
6211 * breakpoint.c (condition_command): Post breakpoint_modify
6212 when a condition is added to an existing breakpoint.
6213 (commands_command): Likewise for commands.
6214 (set_ignore_count): Likewise for ignore counts.
6215 If no tty, do not simply return, still need to send event
6217 (ignore_command): Only print a newline if the command came
6219 Don't call breakpoints_changed, since this is now properly
6220 handled by set_ignore_count.
6222 2002-06-18 Andrew Cagney <cagney@redhat.com>
6224 * MAINTAINERS: Note that cris-elf target can be compiled with
6226 * cris-tdep.c (cris_register_name): Make return type constant.
6227 (cris_breakpoint_from_pc): Ditto.
6229 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6231 * frame.h (struct frame_info): Change type of context to
6234 2002-06-17 Andrew Cagney <cagney@redhat.com>
6236 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6238 * gdbarch.h, gdbarch.c: Regenerate.
6239 * config/mips/tm-mips.h (mips_register_name): Update.
6240 * i386-tdep.h (i386_register_name): Update.
6241 * mips-tdep.c (mips_register_name): Update
6242 * alpha-tdep.c (alpha_register_name): Update.
6243 * arch-utils.c (legacy_register_name): Update.
6244 * arch-utils.h (legacy_register_name): Update.
6245 * avr-tdep.c (avr_register_name): Update.
6246 * ia64-tdep.c (ia64_register_name): Update.
6247 * i386-tdep.c (i386_register_name): Update.
6248 * sparc-tdep.c (sparc32_register_name): Update.
6249 (sparc64_register_name): Update.
6250 (sparclite_register_name): Update.
6251 (sparclet_register_name): Update.
6252 * sh-tdep.c (sh_generic_register_name): Update.
6253 (sh_sh_register_name): Update.
6254 (sh_sh3_register_name): Update.
6255 (sh_sh3e_register_name): Update.
6256 (sh_sh_dsp_register_name): Update.
6257 (sh_sh3_dsp_register_name): Update.
6258 (sh_sh4_register_name): Update.
6259 (sh_sh64_register_name): Update.
6260 * s390-tdep.c (s390_register_name): Update.
6261 * rs6000-tdep.c (rs6000_register_name): Update.
6262 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6263 (ns32k_register_name_32382): Update.
6264 * d10v-tdep.c (d10v_ts2_register_name): Update.
6265 (d10v_ts3_register_name): Update.
6266 * xstormy16-tdep.c (xstormy16_register_name): Update.
6267 * vax-tdep.c (vax_register_name): Update.
6268 * v850-tdep.c (v850_register_name): Update.
6269 * m68hc11-tdep.c (m68hc11_register_name): Update.
6270 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6271 (am33_register_name): Update.
6273 2002-06-17 Grace Sainsbury <graces@redhat.com>
6275 * m68k-tdep.c: Reindented.
6277 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6279 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6280 list of predefined types.
6282 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6284 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6285 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6286 REGISTER_CONVERT_TO_RAW): Remove defines.
6287 (i386_register_virtual_type, i386_register_convertible,
6288 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6290 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6291 macros mentioned above.
6293 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6294 (i386lynx_saved_pc_after_call): Remove prototype.
6295 * i386ly-tdep.c: Include "i386-tdep.h".
6296 (i386lynx_saved_pc_after_call): Make static. Use
6297 read_memory_nobpt instead of read_memory. Use
6298 read_memory_unsigned_integer instead of read_memory_integer.
6299 (i386lynx_init_abi): New function.
6300 (i386lynx_coff_osabi_sniffer): New function.
6301 (_initialize_i386bsd_tdep): New function.
6303 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6304 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6305 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6306 (i386_fix_call_dummy): Remove prototype.
6307 * i386-tdep.c (i386_call_dummy_words): New variable.
6308 (i386_gdbarch_init): Adjust for removal of the
6309 macros mentioned above.
6311 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6313 * command.h (add_setshow_auto_boolean_cmd): Replace
6314 add_set_auto_boolean_cmd.
6315 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6316 add_set_auto_boolean_cmd.
6317 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6318 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6319 mask-address'' command.
6320 (show_mask_address): Add cmd parameter.
6321 * remote.c (add_packet_config_cmd): Update. Change type of
6322 set_func and show_func to cmd_sfunc_ftype.
6323 (_initialize_remote): Update `set remote Z-packet'
6324 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6325 (show_remote_protocol_e_packet_cmd): Ditto.
6326 (show_remote_protocol_E_packet_cmd): Ditto.
6327 (show_remote_protocol_P_packet_cmd): Ditto.
6328 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6329 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6330 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6331 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6332 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6333 (show_remote_protocol_Z_packet_cmd): Ditto.
6334 (show_remote_protocol_binary_download_cmd): Ditto.
6335 (show_remote_cmd): Pass NULL to all of above.
6337 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6339 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6340 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6341 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6342 POP_FRAME): Remove defines.
6343 (i386_push_arguments, i386_store_struct_return,
6344 i386_extract_return_value, i386_store_return_value,
6345 i386_extract_struct_value_address, i386_push_dummy_frame,
6346 i386_pop_frame): Renove prototypes.
6347 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6348 macros mentioned above.
6350 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6352 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6353 add_set_boolean_cmd.
6354 (add_setshow_cmd): New function.
6355 * command.h (add_setshow_boolean_cmd): Replace
6356 add_set_boolean_cmd.
6357 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6358 and ``set rdiromatzero''.
6359 * maint.c (_initialize_maint_cmds): Update commented out code.
6360 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6361 * target.c (initialize_targets): Update `set
6362 trust-readonly-sections'.
6363 * remote.c (_initialize_remote): Update `set remotebreak'.
6365 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6367 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6368 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6369 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6370 fit into multi-arch framework.
6371 (i386_breakpoint_from_pc): New function.
6372 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6375 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6376 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6377 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6378 (i386_frameless_function_invocation, i386_frame_num_args,
6379 i386_frame_init_saved_regs): Remove prototypes.
6380 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6381 macros mentioned above.
6383 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6385 * cli/cli-decode.c (set_cmd_cfunc): Update.
6386 (set_cmd_sfunc): Update.
6387 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6388 (set_cmd_sfunc, set_cmd_cfunc): Update.
6389 * cli/cli-decode.h: Update.
6391 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6393 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6394 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6396 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6398 * defs.h (auto_boolean): Declare enum.
6399 * command.h (cmd_auto_boolean): Delete enum.
6400 * mips-tdep.c (mask_address_var): Update.
6401 (mips_mask_address_p): Update.
6402 (show_mask_address): Update.
6403 * remote.c (struct packet_config): Update.
6404 (update_packet_config): Update.
6405 (show_packet_config_cmd): Update.
6406 (packet_ok): Update.
6407 (add_packet_config_cmd): Update.
6408 (_initialize_remote):
6409 * command.h: Update.
6410 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6411 (do_setshow_command): Update.
6412 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6413 * cli/cli-decode.h: Update.
6415 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6417 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6418 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6419 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6420 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6421 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6422 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6424 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6425 list of DJGPP COFF targets.
6427 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6428 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6429 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6430 (FP0_REGNUM): Remove define.
6431 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6432 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6433 (i386_register_virtual_size): Remove protoype.
6434 * i386-tdep.c (i386_register_virtual_size): Removed.
6435 (i386_extract_return_value, i386_store_return_value): Use
6436 FP0_REGNUM instead of NUM_FREGS to determine whether the
6437 floating-point registers are available.
6438 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6439 Adjust for removal of macros mentioned above.
6441 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6443 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6445 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6447 (supply_gregset, fill_gregset): Remove use of register keyword and
6448 remove declaration for regmap. Use I386_NUM_GREGS instead of
6449 NUM_REGS and NUM_FREGS.
6450 (FPREGSET_FSAVE_OFFSET): Remove.
6451 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6452 NUM_FREGS to determine whether the floating-point registers are
6455 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6456 gnu_store_registers): Replace usage of NUM_GREGS with
6459 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6460 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6461 usage of NUM_GREGS with I386_NUM_GREGS.
6463 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6465 * i386bsd-nat.c: Include "i386-tdep.h".
6466 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6469 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6470 and associated comment. They no longer make any sense, since we
6471 don't use this file anymore on Linux.
6473 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6474 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6475 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6476 elements in these arrays.
6477 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6480 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6482 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6483 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6485 2002-06-14 Andrew Cagney <cagney@redhat.com>
6487 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6488 EXTRACT_RETURN_VALUE.
6489 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6490 EXTRACT_STRUCT_VALUE_ADDRESS.
6491 * gdbarch.h, gdbarch.c: Regenerate.
6493 * values.c (value_being_returned): Handle
6494 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6495 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6497 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6498 * arm-tdep.c (arm_gdbarch_init): Update.
6499 * avr-tdep.c (avr_gdbarch_init): Update.
6500 * cris-tdep.c (cris_gdbarch_init): Update.
6501 * d10v-tdep.c (d10v_gdbarch_init): Update.
6502 * ia64-tdep.c (ia64_gdbarch_init): Update.
6503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6504 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6505 * s390-tdep.c (s390_gdbarch_init): Update.
6506 * sh-tdep.c (sh_gdbarch_init): Update.
6507 * s390-tdep.c (s390_gdbarch_init): Update.
6508 * sparc-tdep.c (sparc_gdbarch_init): Update.
6509 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6510 * v850-tdep.c (v850_gdbarch_init): Update.
6511 * vax-tdep.c (vax_gdbarch_init): Update.
6512 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6513 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6515 * config/arc/tm-arc.h: Update.
6516 * config/d30v/tm-d30v.h: Update.
6517 * config/fr30/tm-fr30.h: Update.
6518 * config/h8300/tm-h8300.h: Update.
6519 * config/h8500/tm-h8500.h: Update.
6520 * config/i386/tm-i386.h: Update.
6521 * config/i386/tm-ptx.h: Update.
6522 * config/i386/tm-symmetry.h: Update.
6523 * config/i960/tm-i960.h: Update.
6524 * config/m32r/tm-m32r.h: Update.
6525 * config/m68k/tm-delta68.h: Update.
6526 * config/m68k/tm-linux.h: Update.
6527 * config/m68k/tm-m68k.h: Update.
6528 * config/m88k/tm-m88k.h: Update.
6529 * config/mcore/tm-mcore.h: Update.
6530 * config/mips/tm-mips.h: Update.
6531 * config/mn10200/tm-mn10200.h: Update.
6532 * config/pa/tm-hppa.h: Update.
6533 * config/pa/tm-hppa64.h: Update.
6534 * config/sparc/tm-sp64.h: Update.
6535 * config/sparc/tm-sparc.h: Update.
6536 * config/sparc/tm-sparclet.h: Update.
6537 * config/z8k/tm-z8k.h: Update.
6539 2002-06-14 Andrew Cagney <cagney@redhat.com>
6541 * Makefile.in (i386_linux_tdep_h): Define.
6542 (i386_tdep_h, i387_tdep_h): Define.
6543 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6544 $(i386_tdep_h) and $(i387_tdep_h).
6545 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6547 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6549 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6550 Already covered by the default.
6552 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6553 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6554 (i386_gdbarch_init): Initialize long_double_format and long_double
6557 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6558 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6560 * config/i386/i386sol2.mh: ... here.
6561 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6562 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6563 (SIGCONTEXT_PC_OFFSET): Remove define.
6564 (IN_SIGTRAMP): Remove define.
6565 * i386-sol2-tdep.c: New file.
6567 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6568 * config/i386/tm-i386nw.h: Removed.
6570 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6571 USE_STRUCT_CONVENTION): Remove defines.
6572 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6573 (get_longjmp_target): Remove prototype.
6574 (IN_SIGTRAMP): Remove define.
6575 (i386bsd_in_sigtramp): Remove prototype.
6576 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6577 function. Update comment accordingly
6578 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6579 (FRAME_SAVED_PC): Remove define.
6580 (i386bsd_frame_saved_pc): Remove prototype.
6581 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6582 GET_LONGJMP_TARGET): Remove defines.
6583 (get_longjmp_target): Remove prototype.
6584 (IN_SIGTRAMP): Remove define.
6585 (i386bsd_in_sigtramp): Remove prototype.
6586 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6587 function. Update comment accordingly
6588 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6589 (FRAME_SAVED_PC): Remove define.
6590 (i386bsd_frame_saved_pc): Remove prototype.
6591 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6593 (USE_STRUCT_CONVENTION): Remove prototype.
6594 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6596 (_initialize_i386bsd_nat): Revise logic to determine some
6597 constants at compile time when compiling a native GDB. Warn if
6598 things don't match up with what we expect.
6599 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6601 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6602 to use date stored in `struct gdbarch_tdep'.
6603 (i386bsd_sigcontext_offset): Remove varaible.
6604 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6605 stored in `struct gdbarch_tdep'.
6606 (i386bsd_frame_saved_pc): Make static.
6607 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6608 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6609 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6610 i386fbsd4_sc_pc_offset): New variables.
6611 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6612 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6614 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6616 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6617 Modify the value of i386fbsd_sigtramp_start and
6618 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6619 i386fbsd_sigtramp_end.
6620 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6623 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6624 define to i386-linux-tdep.h.
6625 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6626 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6628 (i386_linux_register_name, i386_linux_register_byte,
6629 i386_linux_register_raw_size): Remove prototypes.
6630 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6631 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6632 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6633 TARGET_WRITE_PC): Remove defines.
6634 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6635 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6636 i386_linux_write_pc): Remove prototypes.
6637 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6638 (get_longjmp_target): Remove prototype.
6639 * i386-linux-tdep.h: New file.
6640 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6641 * i386-linux-tdep.c: Include "i386-tdep.h" and
6642 "i386-linux-tdep.h".
6643 (i386_linux_register_name, i386_linux_register_byte,
6644 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6645 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6647 (i386_linux_init_abi): New function.
6648 (_initialize_i386_linux_tdep): New function.
6650 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6651 (i386_saved_pc_after_call): Remove prototype.
6652 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6653 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6654 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6655 (i386_register_name, i386_stab_reg_to_regnum,
6656 i386_dwarf_reg_to_regnum): Remove prototypes.
6657 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6658 SIZEOF_SSE_REGS): Remove defines.
6659 (REGISTER_BYTES): Remove define.
6660 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6661 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6662 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6663 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6664 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6665 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6666 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6667 (get_longjmp_target): Remove prototype.
6668 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6669 (sigtramp_saved_pc): Remove define.
6670 (i386v4_sigtramp_saved_pc): Remove prototype.
6671 * config/i386/tm-go32.h (FRAME_CHAIN,
6672 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6673 (i386go32_frame_saved_pc): Remove prototype.
6674 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6675 (get_longjmp_target): Remove prototype.
6676 * i386-tdep.h: Include "osabi.h".
6677 (enum i386_abi): Removed.
6678 (enum struct_return): New enum.
6679 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6680 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6681 sc_pc_offset members.
6682 (i386_gdbarch_register_os_abi): Remove prototype.
6683 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6684 I386_SSE_NUM_REGS): New defines.
6685 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6686 I386_SSE_SIZEOF_REGS): New defines.
6687 (i386_register_name, i386_register_byte, i386_register_raw_size):
6689 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6690 (i386bsd_sigtramp_saved_pc): New prototype.
6691 * i386-tdep.c: Don't include "elf-bfd.h".
6692 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6693 i386_frame_chain, i386_saved_pc_after_call): Make static.
6694 (i386_frame_saved_pc): Rewrite to call architecture dependent
6695 function to deal with signal handlers. Make static.
6696 (i386go32_frame_saved_pc): Removed.
6697 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6699 (i386_get_longjmp_target): New function.
6700 (default_struct_convention, pcc_struct_convention,
6701 reg_struct_convention, valid_conventions, struct_convention): New
6703 (i386_use_struct_convention): New function.
6704 (i386v4_sigtramp_saved_pc): Renamed to
6705 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6706 (i386_pc_in_sigtramp): New function.
6707 (i386_abi_names): Removed.
6708 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6709 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6711 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6712 i386_gdbarch_register_os_abi): Removed.
6713 (struct i386_abi_handler): Removed.
6714 (i386_abi_handler_list): Removed.
6715 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6717 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6718 i386_nw_init_abi): New functions.
6719 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6720 Use set_gdbarch_xxx() calls instead of relying on macros for a
6722 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6723 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6724 Register the various architecture variants defined in this file.
6726 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6728 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6729 (struct main_type): Remove arg_types member. Update comments for
6731 (TYPE_ARG_TYPES): Remove.
6732 (TYPE_FN_FIELD_ARGS): Update.
6733 (smash_to_method_type): Update prototype.
6735 * c-typeprint.c (cp_type_print_method_args): Take method type
6736 instead of argument list. Use new argument layout. Simplify.
6737 (c_type_print_args): Use new argument layout. Simplify.
6738 (c_type_print_base): Update call to cp_type_print_method_args.
6739 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6740 argument; use die->type instead. Update call to
6741 smash_to_method_type.
6742 (read_structure_scope): Update call to dwarf2_add_member_fn.
6743 * gdbtypes.c (allocate_stub_method): Update comment.
6744 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6745 Use new argument layout.
6746 (check_stub_method): Use new argument layout. Don't count
6747 void as an argument.
6748 (print_arg_types): Update comments. Use new argument layout.
6749 (recursive_dump_type): Don't print arg_types member.
6750 * hpread.c (hpread_read_struct_type): Use new argument layout.
6751 (fixup_class_method_type): Likewise.
6752 (hpread_type_lookup): Likewise.
6753 * stabsread.c (read_type): Update calls to read_args and
6754 smash_to_method_type.
6755 (read_args): Use new argument layout. Simplify.
6756 * valops.c (typecmp): Use new argument layout. Update parameters
6757 and comments. Simplify.
6758 (hand_function_call): Use new argument layout.
6759 (search_struct_method): Update call to typecmp.
6760 (find_overload_match): Use new argument layout.
6762 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6764 * NEWS: Mention multithreaded debug support for gdbserver.
6766 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6768 * MAINTAINERS: Mention NEWS.
6770 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6772 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6773 (struct mips_objfile_private, compare_pdr_entries): New.
6774 (non_heuristic_proc_desc): Read the ".pdr" section if it
6777 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6779 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6780 (arm_debug): New static variable.
6781 (_initialize_arm_tdep): Add ``set debug arm'' command.
6783 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6785 * Makefile.in (sim_arm_h): Define.
6786 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6787 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6788 (arm_register_sim_regno): New function, map an internal REGNUM
6789 onto a simulator register number.
6790 (arm_gdbarch_init): Set register_sim_regno.
6792 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6794 * MAINTAINERS: Add self.
6796 2002-06-11 Jim Blandy <jimb@redhat.com>
6798 * source.c (source_info): Mention whether the symtab has
6799 information about preprocessor macros.
6801 Call the command `info macro', not `show macro'.
6802 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6804 (_initialize_macrocmd): Register `info_macro_command' in
6805 `infolist', not `showlist'.
6807 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6809 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6810 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6811 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6812 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6813 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6815 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6816 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6817 (_initialize_mips_tdep): Remove dead code.
6818 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6819 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6820 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6821 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6822 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6823 MIPS_LAST_FP_ARG_REGNUM): Remove.
6825 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6827 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6828 (unwind_tmp_obstack_free, parse_frame_info)
6829 (update_context, cfi_read_fp, cfi_write_fp)
6830 (cfi_frame_chain, cfi_init_extra_frame_info)
6831 (cfi_virtual_frame_pointer): Use the above function.
6832 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6834 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6836 * v850-tdep.c (v850_type_is_scalar): New function.
6837 (v850_use_struct_convention): Match current gcc implementation
6838 as close as possible.
6839 (v850_push_arguments): Fix stack_offset handling. Don't write
6840 struct_addr into register. This is done by v850_store_struct_return.
6841 (v850_extract_return_value): Care for structs.
6842 (v850_store_return_value): Ditto.
6843 (v850_store_struct_return): Actually write address.
6845 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6847 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6848 without debug information too.
6850 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6852 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6853 Make multi-arch pure.
6854 * gdbarch.h, gdbarch.c: Re-generate.
6855 * arm-tdep.c (arm_print_float_info): Update.
6856 * arch-utils.h (default_print_float_info): Update.
6857 * arch-utils.c (default_print_float_info): Update.
6858 * infcmd.c (float_info): Update call.
6860 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6862 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6863 the front of the initialize list.
6865 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6867 * infrun.c (struct inferior_status): Replace fields
6868 selected_frame_address and selected_level with field
6870 (save_inferior_status): Update. Use get_frame_id.
6871 (struct restore_selected_frame_args): Delete.
6872 (restore_selected_frame): Update. Use frame_find_by_id.
6873 (restore_inferior_status): Update.
6875 * breakpoint.h (struct breakpoint): Change type of
6876 watchpoint_frame to frame_id.
6877 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6878 call to get_current_frame.
6879 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6881 (watchpoint_check): Use frame_find_by_id.
6883 * frame.h (record_selected_frame): Delete declaration.
6884 * stack.c (record_selected_frame): Delete function.
6886 * frame.h (struct frame_id): Define.
6887 (get_frame_id): Declare.
6888 (frame_find_by_id): Declare.
6889 * frame.c (frame_find_by_id): New function.
6890 (get_frame_id): New function.
6892 2002-06-10 Andrey Volkov <avolkov@transas.com>
6894 * ser-e7kpc.c: Fix duplicated define and call of
6895 _initialize_ser_e7000pc
6897 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6899 * signals/signals.c (target_signal_from_host): Fix #ifdef
6901 (do_target_signal_to_host): Likewise.
6903 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6905 * mips-tdep.c (mips_find_abi_section): New function.
6906 (mips_gdbarch_init): Call it.
6908 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6910 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6911 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6912 after Andrew's 2002-06-08 gdbarch change.
6914 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6916 * i386-linux-nat.c (suppy_gregset): Don't supply
6917 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6919 (fill_gregset): Don't fetch it under the same circumstances.
6921 2002-06-09 Andrew Cagney <cagney@redhat.com>
6923 * Makefile.in (callback_h): Define.
6924 (remote_sim_h): Update path to remote-sim.h.
6925 (remote-rdp.o): Add $(callback_h).
6926 (remote-sim.o): Use $(callback_h).
6927 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6928 * remote-rdp.c: Include "gdb/callback.h".
6930 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6932 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6933 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6935 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6937 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6938 * rdi-share/serpardr.c: Ditto.
6939 * rdi-share/unixcomm.c: Ditto.
6940 * rdi-share/serdrv.c: Ditto.
6941 * rdi-share/hostchan.h: Ditto.
6942 * rdi-share/hostchan.c: Ditto.
6943 * rdi-share/host.h: Ditto.
6944 * rdi-share/devsw.c: Ditto.
6946 * objfiles.h: Change type of obj_private to void pointer.
6947 * pa64solib.c: Update copyright. Don't include "assert.h", use
6948 strcmp instead of STREQ, use LONGEST, do not use PTR
6949 * somsolib.c: Ditto.
6951 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6952 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6953 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6955 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6957 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6958 (default_get_saved_register): Delete function.
6959 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6960 generic_unwind_get_saved_register.
6961 * gdbarch.h, gdbarch.c: Re-generate.
6963 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6965 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6966 generic_func_frame_chain_valid.
6967 * gdbarch.h, gdbarch.c: Re-generate.
6968 * blockframe.c (generic_func_frame_chain_valid): Only check
6969 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6970 passing FP to PC_IN_CALL_DUMMY.
6973 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6975 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6976 (register_gdbarch_data): Initialize init_p.
6977 (gdbarch_data): Initialize data pointer using the init function.
6978 (init_gdbarch_data): Delete function.
6979 (gdbarch_update_p): Update.
6980 (initialize_non_multiarch): Update.
6981 (struct gdbarch): Add field initialized_p.
6982 * gdbarch.h, gdbarch.c: Re-generate.
6984 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6986 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6987 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6988 better do the things actually here.
6989 * x86-64-tdep.c (x86_64_register_name2nr): New.
6990 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6991 (x86_64_gdbarch_init): Respect the above change.
6992 * x86-64-tdep.h (x86_64_register_name2nr)
6993 (x86_64_register_nr2name): Add prototypes.
6994 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6996 2002-06-06 Michael Snyder <msnyder@redhat.com>
6998 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6999 Delete extra braces and re-indent.
7000 (d10v_store_return_value): Char return values
7001 must be shifted over by one byte in R0.
7002 (d10v_extract_return_value): Delete extra braces, re-indent.
7004 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7006 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7007 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7008 (d10v_integer_to_address): Rewrite.
7009 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7010 the d10v specific functions which take care of converting to the
7013 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7015 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7016 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7018 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7020 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7022 * config/tm-linux.h: Ditto.
7023 * config/alpha/tm-alphalinux.h: Ditto.
7024 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7025 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7026 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7027 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7028 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7029 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7030 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7031 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7032 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7033 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7034 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7035 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7036 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7037 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7038 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7039 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7040 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7041 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7042 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7043 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7044 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7045 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7046 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7047 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7048 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7049 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7050 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7051 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7052 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7053 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7054 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7055 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7056 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7057 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7058 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7059 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7060 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7062 2002-05-04 Aidan Skinner <aidan@velvet.net>
7064 * ada-exp.tab.c: New file
7065 * ada-exp.y: New file
7066 * ada-lang.c: New file
7067 * ada-lang.h: New file
7068 * ada-lex.c: New file
7069 * ada-lex.l: New file
7070 * ada-tasks.c: New file
7071 * ada-typeprint.c: New file
7072 * ada-valprint.c: New file
7074 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7076 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7077 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7079 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7081 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7082 insetead of ppc-linux-tdep.o.
7083 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7084 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7086 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7088 2002-05-07 Christian Groessler <chris@groessler.org>
7089 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7090 bit register contents for little endian hosts.
7092 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7094 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7097 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7099 * gdbarch.h: Regenerate.
7101 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7103 * MAINTAINERS: Add everyone to write-after-approval list.
7105 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7107 * stack.c (frame_info): Use frame_register_unwind instead of
7108 saved_regs. Mention when the SP is on the stack or in a register.
7110 * frame.h (frame_register_unwind_ftype): Define. Document.
7111 (struct frame_info): Add field register_unwind and
7112 register_unwind_cache.
7113 (frame_register_unwind): Declare.
7114 (generic_unwind_get_saved_register): Declare.
7116 * frame.c (frame_register_unwind): New function.
7117 (generic_unwind_get_saved_register): New function.
7119 * blockframe.c (generic_call_dummy_register_unwind): New function.
7120 (frame_saved_regs_register_unwind): New function.
7121 (set_unwind_by_pc): New function.
7122 (create_new_frame): New function.
7123 (get_prev_frame): New function.
7125 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7127 * a29k-share/: Delete directory.
7128 * remote-vx29k.c: Delete file.
7130 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7132 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7133 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7135 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7137 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7138 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7141 (sparcnbsd-tdep.o): New dependency lists.
7142 * NEWS: Note new UltraSPARC NetBSD native configuration.
7143 * configure.host (sparc64-*-netbsd*): New host.
7144 * configure.tgt (sparc-*-netbsdelf*)
7145 (sparc-*-netbsd*): Set gdb_target to nbsd.
7146 (sparc64-*-netbsd*): New target.
7147 * sparc64nbsd-nat.c: New file.
7148 * sparcnbsd-nat.c: New file.
7149 * sparcnbsd-tdep.c: New file.
7150 * sparcnbsd-tdep.h: New file.
7151 * config/sparc/nbsd.mt: New file.
7152 * config/sparc/nbsd64.mh: New file.
7153 * config/sparc/nbsd64.mt: New file.
7154 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7155 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7157 * config/sparc/nbsdaout.mt: Remove.
7158 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7159 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7161 * config/sparc/nbsdelf.mt: Remove.
7162 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7163 sparc-nat.c compatiblity defines.
7164 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7165 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7166 * config/sparc/tm-nbsd64.h: New file.
7167 * config/sparc/tm-nbsdaout.h: Remove.
7168 * config/sparc/xm-nbsd.h: Remove.
7170 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7172 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7173 * sparc-tdep.c: Include osabi.h.
7174 (gdbarch_tdep): Add osabi member.
7175 (_initialize_sparc_tdep): Use gdbarch_register.
7176 (sparc_gdbarch_init): Use generic OS ABI framework.
7177 (sparc_dump_tdep): New function.
7179 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7181 * corefile.c (do_captured_read_memory_integer): Return non-zero
7183 (safe_read_memory_integer): Copy result of memory read when
7184 status is non-zero. Also, add comments.
7186 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7188 * Makefile.in (ppc_tdep_h): Define.
7191 (rs6000-tdep.o): Use $(ppc_tdep_h).
7194 (ppcnbsd-tdep.o): New dependency lists.
7195 * ppc-tdep.h: Use generic OS ABI framework.
7196 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7197 (ppc_linux_init_abi): New functions.
7198 (ppc_sysv_abi_broken_use_struct_convention)
7199 (ppc_sysv_abi_use_struct_convention)
7200 (ppc_sysv_abi_push_arguments): Move to...
7201 * ppc-sysv-tdep.c: ...here.
7202 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7203 * rs6000-tdep.c (process_note_abi_tag_sections)
7204 (get_elfosabi): Remove.
7205 (rs6000_gdbarch_init): Use generic OS ABI framework.
7206 (rs6000_dump_tdep): New function.
7207 (_initialize_rs6000_tdep): Use gdbarch_register.
7208 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7209 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7210 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7211 of ppc-linux-tdep.o.
7212 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7213 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7214 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7215 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7216 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7217 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7219 2002-05-29 Jim Blandy <jimb@redhat.com>
7221 * macroscope.c (default_macro_scope): Put `void' in empty argument
7224 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7226 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7227 * arch-utils.c: Include "sim-regno.h".
7228 * gdbarch.sh: Don't include "sim-regno.h".
7229 * gdbarch.h, gdbarch.c: Regenerate.
7230 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7232 * arch-utils.h (legacy_register_sim_regno): To here.
7233 * remote-sim.c (legacy_register_sim_regno): Move function from
7235 * arch-utils.c (legacy_register_sim_regno): To here.
7237 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7239 * sim-regno.h: New file.
7240 * Makefile.in (sim_regno_h): Define.
7241 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7242 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7243 (legacy_register_sim_regno): New function.
7244 (one2one_register_sim_regno): New function.
7245 (gdbsim_fetch_register): Rewrite.
7246 (gdbsim_store_register): Only store a register when
7247 REGISTER_SIM_REGNO is valid.
7248 * d10v-tdep.c: Include "sim-regno.h".
7249 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7250 (d10v_ts3_register_sim_regno): Ditto.
7251 * gdbarch.sh: Include "sim-regno.h".
7252 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7253 * gdbarch.h, gdbarch.c: Regenerate.
7254 * arch-utils.h (default_register_sim_regno): Delete declaration.
7255 * arch-utils.c (default_register_sim_regno): Delete function.
7257 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7259 * ppcnbsd-nat.c: Rewrite.
7260 * ppcnbsd-tdep.c: New file.
7261 * ppcnbsd-tdep.h: New file.
7262 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7263 solib.o, and solib-svr4.o.
7264 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7265 nbsd-tdep.o, and corelow.o.
7267 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7269 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7270 `tr' and `sed'. Mention that `broken' targets are not expected to
7273 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7275 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7276 Let PC point right after the prologue before looking up symbols.
7278 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7280 * i386-tdep.c (i386_register_virtual_type): Return
7281 builtin_type_vec128i for SSE registers.
7283 * gdbtypes.h (builtin_type_vec128i): Declare.
7285 * gdbtypes.c (build_builtin_type_vec128i): New function.
7286 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7287 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7288 (build_gdbtypes): Initialize new builtin vector types.
7289 (_initialize_gdbtypes): Register new vector types with gdbarch.
7291 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7293 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7294 since it has been multi-arch'd.
7295 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7296 Move Alpha and VAX multi-arch news entries to same section
7297 as other multi-arch news.
7299 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7301 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7302 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7303 static. Rename some register numbers to put them in ns32k-tdep
7305 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7306 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7308 (_initialize_ns32k_tdep): Use gdbarch_register.
7309 * ns32k-tdep.h: New file.
7310 * ns32knbsd-tdep.c: New file.
7311 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7312 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7313 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7314 REGISTER_BYTES, REGISTER_BYTE): Remove.
7315 * config/ns32k/tm-ns32k.h: New file.
7316 * config/ns32k/tm-umax.h: Remove.
7318 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7320 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7321 ns32k_store_struct_return, ns32k_extract_return_value,
7322 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7324 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7325 ns32k_saved_pc_after_call.
7326 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7327 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7328 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7329 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7330 ns32k_extract_struct_value_address.
7332 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7334 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7335 ns32k_fix_call_dummy): New.
7336 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7337 ns32k_call_dummy_words.
7338 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7339 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7340 CALL_DUMMY_NARGS): Remove.
7341 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7343 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7345 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7346 ns32k_frame_saved_pc, ns32k_frame_args_address,
7347 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7348 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7349 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7350 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7351 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7352 (BREAKPOINT): Remove..
7353 (FRAME_CHAIN): Define as ns32k_frame_chain.
7354 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7355 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7356 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7357 (FRAME_FIND_SAVED_REGS): Remove.
7358 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7359 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7360 (POP_FRAME): Define as ns32k_pop_frame.
7362 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7364 * ns32k-tdep.c (ns32k_register_byte_32082,
7365 ns32k_register_byte_32382, ns32k_register_raw_size,
7366 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7368 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7369 ns32k_register_byte_32382.
7370 * config/ns32k/tm-umax.h: Update copyright years.
7371 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7372 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7373 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7374 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7375 (ns32k_get_enter_addr): Fix prototype.
7377 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7379 * ns32k-tdep.c: Update copyright years.
7380 (ns32k_register_name_32082): New function.
7381 (ns32k_register_name_32382): Ditto.
7382 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7383 (REGISTER_NAME): Define as ns32k_register_name_32382.
7384 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7385 (REGISTER_NAME): Define as ns32k_register_name_32082.
7387 2002-05-24 Jim Blandy <jimb@redhat.com>
7389 * dwarf2read.c (free_line_header): Use xfree, not free.
7391 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7393 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7394 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7396 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7398 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7400 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7402 From Ross Alexander at NEC Europe:
7403 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7405 2002-05-23 Michael Snyder <msnyder@redhat.com>
7407 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7408 for input, rather than parse_and_eval_address.
7410 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7412 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7413 * Makefile.in (sim_d10v_h): Update definition.
7415 2002-05-24 Andrew Cagney <cagney@redhat.com>
7417 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7418 change `2002-05-22 Michael Snyder' below.
7419 (d10v_push_arguments): Ditto.
7420 (d10v_extract_return_value): Ditto.
7422 2002-05-23 Jim Blandy <jimb@redhat.com>
7424 * macrotab.c (check_for_redefinition): Don't complain if the new
7425 definition is the same as the previous one. Take more arguments
7426 to allow the comparison.
7427 (macro_define_object, macro_define_function): Pass more arguments
7428 to check_for_redefinition.
7430 2002-05-22 Michael Snyder <msnyder@redhat.com>
7432 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7433 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7434 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7435 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7436 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7437 Add a temp variable to save a call (and a memory read).
7438 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7439 if possible (so that PC_IN_CALL_DUMMY will work).
7441 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7443 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7445 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7447 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7449 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7450 (dwarf2_build_frame_info): Add offset to fde->initial_location
7451 so that frames of shared libraries are mapped correctly.
7452 (execute_stack_op): Change type of 'result' from ULONGEST to
7455 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7457 * config/alpha/tm-nbsd.h: Include solib.h.
7459 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7461 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7462 assumptions about the host's byte order.
7464 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7466 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7468 * alphanbsd-tdep.c: Include solib-svr4.h.
7469 * shnbsd-tdep.c: Ditto.
7471 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7473 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7474 nbsd-tdep.h to dependency list.
7475 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7476 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7477 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7478 nbsdaout.mh and nbsdelf.mh consistently.
7479 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7480 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7481 nbsdaout.mt and nbsdelf.mh consistently.
7482 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7483 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7484 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7485 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7486 a.out shared library stuff from here...
7487 * config/nm-nbsdaout.h: ...to here.
7488 * config/tm-nbsd.h: Remove.
7489 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7490 * config/arm/nbsd.mh: Remove.
7491 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7493 * config/arm/nbsdaout.mh: New file.
7494 * config/arm/nbsdelf.mh: New file.
7495 * config/arm/nm-nbsdaout.h: New file.
7496 * config/i386/nbsd.mh: Remove.
7497 * config/i386/nbsd.mt: Remove.
7498 * config/i386/nbsdaout.mh: New file.
7499 * config/i386/nbsdaout.mt: New file.
7500 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7501 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7502 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7503 i386_register_u_addr): Remove.
7504 * config/i386/nm-nbsdaout.h: New file.
7505 * config/i386/nm-nbsdelf.h: Remove.
7506 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7507 (USE_STRUCT_CONVENTION): Remove.
7508 * config/i386/tm-nbsdaout.h: New file.
7509 * config/i386/tm-nbsdelf.h: Remove.
7510 * config/m68k/nbsd.mh: Remove.
7511 * config/m68k/nbsd.mt: Remove.
7512 * config/m68k/nbsdaout.mh: New file.
7513 * config/m68k/nbsdaout.mt: New file.
7514 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7515 * config/m68k/nm-nbsdaout.h: New file.
7516 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7517 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7518 * config/ns32k/nbsd.mh: Remove.
7519 * config/ns32k/nbsd.mt: Remove.
7520 * config/ns32k/nbsdaout.mh: New file.
7521 * config/ns32k/nbsdaout.mt: New file.
7522 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7523 * config/ns32k/nm-nbsdaout.h: New file.
7524 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7525 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7526 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7527 (SVR4_SHARED_LIBS): Remove.
7528 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7529 * config/sparc/nbsd.mh: Remove.
7530 * config/sparc/nbsd.mt: Remove.
7531 * config/sparc/nbsdaout.mh: New file.
7532 * config/sparc/nbsdaout.mt: New file.
7533 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7534 * config/sparc/nbsdelf.mt: New file.
7535 * config/sparc/nm-nbsdaout.h: New file.
7536 * config/sparc/nm-nbsdelf.h: Remove.
7537 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7538 * config/sparc/tm-nbsdaout.h: New file.
7540 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7542 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7544 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7546 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7548 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7550 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7552 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7554 * NEWS: Note new MIPS NetBSD native configuration.
7555 * configure.host (mips*-*-netbsd*): New host.
7556 * configure.tgt (mips*-*-netbsd*): New target.
7557 * mipsnbsd-nat.c: New file.
7558 * mipsnbsd-tdep.c: New file.
7559 * mipsnbsd-tdep.h: New file.
7560 * config/mips/nbsd.mh: New file.
7561 * config/mips/nbsd.mt: New file.
7562 * config/mips/nm-nbsd.h: New file.
7563 * config/mips/tm-nbsd.h: New file.
7565 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7567 * Makefile.in (SFILES): Add osabi.c.
7568 (COMMON_OBS): Add osabi.o.
7569 (osabi.o): New dependency list.
7570 * osabi.c: New file.
7571 * osabi.h: New file.
7572 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7574 * Makefile.in (alpha_tdep_h): Define and use instead of
7576 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7577 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7579 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7580 * alpha-tdep.h: Include osabi.h.
7581 (alpha_abi): Remove.
7582 (gdbarch_tdep): Use generic OS ABI framework.
7583 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7584 gdbarch_register_osabi.
7585 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7586 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7587 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7589 * Makefile.in (sh_tdep_h): Add osabi.h.
7590 * sh-tdep.h (sh_osabi): Remove.
7591 (gdbarch_tdep): Use generic OS ABI framework.
7592 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7593 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7594 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7595 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7597 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7598 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7599 gdbarch_register_osabi.
7600 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7601 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7602 (get_elfosabi): Rename to...
7603 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7604 ABI framework support routines.
7605 (arm_gdbarch_init): Use generic OS ABI framework.
7606 (arm_dump_tdep): Likewise.
7607 (_initialize_arm_tdep): Likewise.
7608 * arm-tdep.h: Include osabi.h.
7610 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7612 (arm_gdbarch_register_os_abi): Remove prototype.
7613 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7614 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7616 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7617 * mips-tdep.c: Include osabi.h.
7618 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7621 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7623 * h8300-tdep.c: Fix formatting.
7625 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7627 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7628 printing vector registers.
7630 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7632 From Fernando Nasser:
7633 * remote.c (remote_async_open_1): Re-throw the exception when the
7635 (remote_cisco_open): Ditto.
7636 (remote_open_1): Ditto.
7638 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7640 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7641 (remote_start_remote): Add uiout parameter. Pass through to
7642 remote_start_remote_dummy.
7643 (remote_open_1): Use catch_exception instead of catch_errors.
7644 (remote_async_open_1): Ditto.
7645 (remote_cisco_open): Ditto.
7647 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7649 * remote.c (remote_start_remote): Replace PTR with void pointer.
7650 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7653 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7655 * gdb_indent.sh: Allow the script to be run in the sim directory.
7657 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7659 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7660 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7662 * corelow.c (core_open): Only call set_gdbarch_from_file if
7665 2002-05-17 Andrey Volkov <avolkov@transas.com>
7667 * h8300-tdep.c: Add support of EXR register
7668 * config/h8300/tm-h8300.h: Ditto.
7670 2002-05-17 Andrey Volkov <avolkov@transas.com>
7672 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7674 2002-05-17 Andrey Volkov <avolkov@transas.com>
7676 * h8300-tdep.c: Change literal regnums to REGNO.
7678 2002-05-17 Jim Blandy <jimb@redhat.com>
7680 * NEWS: Note addition of macro support.
7682 Expand preprocessor macros in C expressions.
7683 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7684 (scan_macro_expansion, scanning_macro_expansion,
7685 finished_macro_expansion): New function declarations.
7686 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7687 variable declarations.
7688 * parser-defs.h (expression_context_pc): New declaration.
7689 * parse.c (expression_context_pc): New variable.
7690 (parse_exp_1): Set expression_context_pc, as well as
7691 expression_context_block.
7692 * c-exp.y (yylex): If we're not already reading the result of a
7693 macro expansion, try to macro-expand the next token. When we're
7694 done scanning a macro expansion, switch back to the mainline text.
7695 Commas and `if's in a macro's expansion don't terminate the input.
7696 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7697 (macro_original_text, macro_expanded_text,
7698 expression_macro_lookup_func, expression_macro_lookup_baton): New
7700 (scan_macro_expansion, scanning_macro_expansion,
7701 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7702 c_preprocess_and_parse): New functions.
7703 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7704 c_preprocess_and_parse, instead of c_parse.
7705 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7706 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7708 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7710 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7711 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7712 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7714 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7716 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7718 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7720 * Makefile.in (sh_tdep_h): Define and use.
7721 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7722 register enum): Move to...
7723 * * sh-tdep.h: ...here.
7724 * sh-tdep.c: Include sh-tdep.h.
7725 * sh3-rom.c: Likewise.
7726 * shnbsd-tdep.c: Likewise.
7728 2002-05-16 Michael Snyder <msnyder@redhat.com>
7730 * arm-tdep.c: Spelling fix in comment.
7732 2002-05-16 Jim Blandy <jimb@redhat.com>
7734 Add commands for manually expanding macros and showing their
7736 * macrocmd.c, macroscope.c, macroscope.h: New files.
7737 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7738 (macroscope_h): New variable.
7739 (HFILES_NO_SRCDIR): Add macroscope.h.
7740 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7741 (macroscope.o, macrocmd.o): New rules.
7743 Teach the Dwarf 2 reader to read macro information.
7744 * dwarf2read.c: #include "macrotab.h".
7745 (dwarf_macinfo_buffer): New variable.
7746 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7748 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7749 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7750 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7751 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7752 dwarf2_macro_spaces_in_definition): New complaints.
7753 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7754 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7755 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7756 the partial symbol table.
7757 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7758 from what's recorded in the partial symbol table.
7759 (read_file_scope): If the compilation unit has a
7760 `DW_AT_macro_info' attribute, read its macro information.
7761 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7763 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7766 * ser-tcp.c: Don't include <netinet/udp.h>.
7768 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7770 * MAINTAINERS: Update my email address.
7772 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7774 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7775 include file of the same name.
7777 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7779 * configure.tgt: Mark v850 as multi-arched.
7780 * config/v850/tm-v850.h: Remove file.
7781 * config/v850/v850.mt: Eliminate TM_FILE.
7783 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7785 * v850-tdep.c: Full multi-arch.
7786 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7787 Define GDB_MULTI_ARCH to 2.
7789 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7791 * p-exp.y (current_type): New static variable.
7792 Carries the type of the expression at the position that is parsed.
7793 (push_current_type, pop_current_type): Two new functions. Used
7794 to store/restore current_type in expression on specific tokens.
7795 (search_field): New static variable. Set to one after parsing a point
7796 as at that point only a FIELDNAME token should be searched.
7797 (FIELDNAME): New token. After a point only a token belonging to
7798 current_type type definition is allowed.
7799 (all over token rules): reset and change current_type according
7801 (exp '[' rule): insert implicit array index field if
7802 exp is a pascal string type.
7804 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7806 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7807 frame info. Use frame_info's saved_regs instead of matching member
7808 in extra_frame_info throughout.
7809 (v850_frame_init_saved_regs): New function.
7810 (v850_init_extra_frame_info): Move most functionality into
7811 v850_frame_init_saved_regs().
7812 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7813 (v850_frame_find_saved_regs): Remove declaration.
7814 (FRAME_FIND_SAVED_REGS): Remove definition.
7815 (v850_frame_init_saved_regs): Add declaration.
7816 (FRAME_INIT_SAVED_REGS): Add definition.
7818 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7820 * v850-tdep.c: Begin multi-arch'ing v850.
7821 (v850_target_architecture_hook): Remove function.
7822 (v850_gdbarch_init): New function. Add code previously in
7823 v850_target_architecture_hook().
7824 (_initialize_v850_tdep): Don't set target_architecture_hook.
7825 Call register_gdbarch_init() instead.
7827 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7829 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7830 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7831 (fixup_class_method_type): Likewise.
7833 2002-05-15 Jim Blandy <jimb@redhat.com>
7835 Add macro structures to GDB's symbol tables. Nobody puts anything
7837 * symtab.h (struct symtab): New member: `macro_table'.
7838 * buildsym.h (pending_macros): New global variable.
7839 * buildsym.c: #include "macrotab.h".
7840 (buildsym_init): Initialize `pending_macros'.
7841 (end_symtab): If we found macro information while reading a CU's
7842 debugging info, do build a symtab structure for it. Make the
7843 symtab point to the macro information, and clear the
7844 `pending_macros' pointer which held it while we were reading the
7846 (really_free_pendings): Free any pending macro table.
7847 * objfiles.h (struct objfile): New member: `macro_cache'.
7848 * objfiles.c (allocate_objfile): Set allocate and free functions
7849 for the macro cache's objstack.
7850 (free_objfile): Empty the macro cache's obstack.
7851 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7852 set new allocate and free functions for it.
7853 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7854 free functions for the macro cache's objstack. (Why is this
7855 function building its own objfile?)
7856 * symmisc.c (print_objfile_statistics): Print statistics on the
7858 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7860 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7862 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7863 (REGISTER_U_ADDR): Delete definition.
7864 (arm_register_u_addr): Delete declaration.
7866 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7868 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7869 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7871 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7873 * regcache.c (register_valid): Revise comments refering to "Not
7874 available" and "unavailable".
7875 * frame.c (frame_register_read): Ditto.
7876 * findvar.c (value_of_register): Ditto.
7878 2002-05-15 Andrew Cagney <cagney@redhat.com>
7880 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7881 (remote-sim.o): Update dependencies.
7882 (d10v-tdep.o): Specify dependencies.
7883 (sim_d10v_h): Define.
7885 2002-05-14 Jim Blandy <jimb@redhat.com>
7887 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7888 * macrotab.c (macro_lookup_inclusion, find_definition,
7889 new_macro_table): Same.
7891 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7892 not `! strcmp ()'. This is a dubious improvement.
7893 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7895 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7896 although it's not necessary, to avoid a warning.
7898 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7900 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7901 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7902 TYPE_INSTANCE_FLAGS.
7903 (struct main_type): New.
7904 (struct type): Move most members to struct main_type. Change
7905 cv_type and as_type to new type_chain member. Add instance_flags.
7906 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7907 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7908 (finish_cv_type): Remove prototype.
7909 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7911 (alloc_type_instance): New function.
7912 (smash_type): New function.
7913 (make_pointer_type, make_reference_type, make_function_type)
7914 (smash_to_member_type, smash_to_method_type): Call smash_type.
7915 (make_qualified_type): New function.
7916 (make_type_with_address_space): Call make_qualified_type.
7917 (make_cv_type): Likewise.
7918 (finish_cv_type): Remove unnecessary function.
7919 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7920 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7921 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7922 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7923 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7924 * hpread.c (hpread_read_struct_type): Likewise.
7925 * stabsread.c (read_struct_type): Likewise.
7927 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7929 * configure.tgt: Add a catch all sh* target, for cases like
7930 sh[2,3,4]-elf and sh-hms.
7932 2002-05-14 Keith Seitz <keiths@redhat.com>
7934 * event-loop.c (create_file_handler): Don't do anything but
7935 update data when we are given a fd which we are already
7938 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7940 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7941 (update_context): Use __func__ in warnings.
7943 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7945 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7946 and tcp_close to net_open and net_close.
7947 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7948 using UDP if requested. Don't try to disable Nagle on UDP
7950 * remote.c (remote_serial_open): New function. Warn about UDP.
7951 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7953 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7955 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7957 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7959 * configure.tgt: Remove sh-hms target.
7960 * MAINTAINERS: Don't list sh-hms as a separate target.
7962 2002-05-13 Jim Blandy <jimb@redhat.com>
7964 Add first preprocessor macro-expansion files.
7965 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7966 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7967 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7968 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7969 (COMMON_OBS): Add macrotab.o, macroexp.o.
7970 (macroexp.o, macrotab.o): New rules.
7972 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7974 * config/m88k/tm-m88k.h: Update copyright.
7975 (m88k_target_write_pc): Declare
7976 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7977 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7978 (SHIFT_INST_REGS): Update definition.
7979 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7980 using old definition of TARGET_WRITE_PC.
7981 * regcache.c (generic_target_write_pc): Delete code handling
7983 * gdbarch.sh (NNPC_REGNUM): Delete.
7984 * gdbarch.h, gdbarch.c: Regenerate.
7986 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7988 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7991 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7993 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7994 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7995 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7997 * c-typeprint.c (cp_type_print_method_args): Likewise.
7998 (c_type_print_args): Likewise.
7999 * d10v-tdep.c (d10v_push_arguments): Likewise.
8000 (d10v_extract_return_value): Likewise.
8001 * expprint.c (print_subexp): Likewise.
8002 * gdbtypes.c (lookup_primitive_typename): Likewise.
8003 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8004 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8005 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8006 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8007 (TYPE_VECTOR): Likewise.
8008 * hpread.c (hpread_read_struct_type)
8009 (fix_static_member_physnames, fixup_class_method_type)
8010 (hpread_type_lookup): Likewise.
8011 * mdebugread.c (parse_symbol, parse_type): Likewise.
8012 * p-lang.c (is_pascal_string_type): Likewise.
8013 * valops.c (hand_function_call): Likewise.
8014 * x86-64-tdep.c (classify_argument): Likewise.
8016 * hpread.c (hpread_read_function_type)
8017 (hpread_read_doc_function_type): Call replace_type.
8018 * dstread.c (create_new_type): Delete.
8019 (decode_dst_structure, process_dst_function): Call alloc_type.
8020 Use type access macros.
8022 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8024 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8025 the're not supported by the current architecture.
8026 (i387_fill_fxsave): Likewise.
8028 2002-05-12 Fred Fish <fnf@redhat.com>
8030 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8031 sect_index_xxx members to index the first slot in section_offsets
8032 if all of the section_offsets are zero.
8034 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8036 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8037 checked in with last change.
8039 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8041 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8042 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8045 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8047 * Makefile.in: Update dependencies.
8049 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8051 * language.c (local_hex_string_custom): Simplify. Do not depend
8052 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8054 * memattr.c (mem_info_command): Replace calls to
8055 longest_local_hex_string and longest_local_hex_string_custom.
8056 * buildsym.c (make_blockvector): Ditto.
8057 * solib.c (info_sharedlibrary_command): Ditto.
8058 * tracepoint.c (tracepoints_info): Ditto.
8059 * symtab.c (print_msymbol_info): Ditto.
8061 * language.c (local_hex_string): Delete.
8062 (local_hex_string_custom): Delete.
8063 (longest_local_hex_string): Rename to local_hex_string.
8064 (longest_local_hex_string_custom): Rename to
8065 local_hex_string_custom.
8066 * language.h (local_hex_string): Change parameter type to LONGEST.
8067 (local_hex_string_custom): Ditto.
8068 (longest_local_hex_string): Delete declaration.
8069 (longest_local_hex_string_custom): Ditto.
8071 * solib.c: Update copyright.
8072 * memattr.c: Update copyright.
8074 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8076 * arch-utils.h (legacy_register_to_value): Declare.
8077 (legacy_value_to_register): Declare.
8078 (legacy_convert_register_p): Declare.
8079 * arch-utils.c (legacy_register_to_value): New function.
8080 (legacy_value_to_register): New function.
8081 (legacy_convert_register_p): New function.
8083 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8084 (VALUE_TO_REGISTER): Define.
8085 (CONVERT_REGISTER_P): Define.
8086 * gdbarch.h, gdbarch.c: Regenerate.
8088 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8090 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8093 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8094 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8096 * Makefile.in: Update dependencies for valops.c.
8097 * valops.c: Include "gdb_assert.h".
8098 (typecmp): Skip THIS parameter to methods.
8099 (find_method_list): Remove static_memfuncp argument,
8100 update callers. Check for stub methods.
8101 (find_value_oload_method_list): Don't set *static_memfuncp.
8102 (find_overload_match): Don't check for stub methods. Assert
8103 that methods are not stubbed. Handle static methods.
8104 (value_find_oload_method_list): Remove static_memfuncp argument.
8105 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8106 to the argument list for static stub methods.
8107 * value.h (value_find_oload_method_list): Update prototype.
8109 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8111 * arch-utils.h (generic_register_size): Declare.
8112 (generic_register_raw_size, generic_register_virtual_size): Delete
8114 * arch-utils.c (generic_register_raw_size): Delete.
8115 (generic_register_size): New function.
8116 (generic_register_virtual_size): Delete.
8118 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8119 default generic_register_size.
8120 * gdbarch.h, gdbarch.c: Re-generate.
8122 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8123 register_virtual_size.
8124 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8125 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8127 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8129 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8130 * gdbarch.h, gdbarch.c: Regenerate.
8131 * gnu-v3-abi.c: Update copyright.
8132 (vtable_address_point_offset): Update.
8133 (gnuv3_rtti_type): Update.
8134 (gnuv3_baseclass_offset): Update.
8135 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8136 (init_fetch_link_map_offsets): Update.
8137 * remote.c (get_remote_state): Update.
8139 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8141 * TODO: Remove value_headof/value_from_vtable_info comment.
8142 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8143 * values.c (value_headof, value_from_vtable_info): Delete.
8144 * value.h (value_from_vtable_info): Delete prototype.
8146 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8148 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8149 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8151 (gdb_assert_h): Define.
8152 (gdb_wait_h): Define.
8153 (gdb_regex_h): Define.
8155 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8157 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8158 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8160 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8162 * nbsd-tdep.c: Fix comment.
8164 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8166 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8167 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8168 (nbsd-tdep.o): New dependency list.
8169 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8171 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8172 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8173 * nbsd-tdep.c: New file.
8174 * nbsd-tdep.h: New file.
8175 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8177 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8178 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8179 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8180 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8182 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8184 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8185 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8186 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8187 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8188 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8189 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8191 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8193 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8194 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8195 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8196 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8197 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8198 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8199 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8201 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8203 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8204 fetch_elfcore_registers to...
8205 * i386nbsd-tdep.c: ...here.
8206 (i386nbsd_use_struct_convention): Rename to...
8207 (i386nbsd_aout_use_struct_convention): ...this.
8208 (i386nbsd_supply_reg): New function.
8209 (i386nbsd_fill_reg): New function.
8210 (fetch_core_registers): Use i386nbsd_supply_reg.
8211 (fetch_elfcore_registers): Likewise.
8212 (_initialize_i386nbsd_tdep): New function.
8213 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8214 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8215 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8216 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8217 (i386nbsd_aout_use_struct_convention): ...this.
8219 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8221 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8222 (store_inferior_registers): Use shnbsd_fill_reg.
8223 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8224 sh_nbsd_supply_register): Collapse into...
8225 (shnbsd_supply_reg): ...this.
8226 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8227 (shnbsd_fill_reg): ...this.
8228 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8229 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8230 (fetch_core_registers): Use shnbsd_supply_reg.
8231 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8232 (sh_nbsd_core_fns): Rename to...
8233 (shnbsd_core_fns): ...this.
8234 (sh_nbsd_elfcore_fns): Rename to...
8235 (shnbsd_elfcore_fns): ...this.
8236 (sh_nbsd_init_abi): Rename to...
8237 (shnbsd_init_abi): ...this.
8238 (_initialize_sh_nbsd_tdep): Rename to...
8239 (_initialize_shnbsd_tdep): ...this.
8240 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8241 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8242 sh_nbsd_fill_register): Remove prototypes.
8243 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8245 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8247 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8248 (i387-nat.o): Delete dependency list.
8249 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8250 (x86-64-linux-nat.o): Likewise.
8251 * i387-nat.c: Delete file, moving contents to...
8252 * i387-tdep.c: ...here.
8253 * i387-nat.h: Rename...
8254 * i387-tdep.h: ...to this.
8255 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8256 * i386-linux-nat.c: Likewise.
8257 * i386bsd-nat.c: Likewise.
8258 * i386gnu-nat.c: Likewise.
8259 * i386nbsd-nat.c: Likewise.
8260 * i386v4-nat.c: Likewise.
8261 * x86-64-linux-nat.c: Likewise.
8262 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8263 * config/i386/go32.mh (NATDEPFILES): Likewise.
8264 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8265 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8266 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8267 * config/i386/linux.mh (NATDEPFILES): Likewise.
8268 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8269 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8270 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8271 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8273 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8275 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8276 (alphanbsd-nat.o): Remove dependency list.
8277 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8278 * alphanbsd-nat.c: Delete. Contents moved to...
8279 * alphanbsd-tdep.c: ...here.
8280 (_initialize_alphanbsd_tdep): Register core functions.
8281 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8283 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8285 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8286 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8287 (alphanbsd-nat.o): Likewise.
8288 (alphabsd-tdep.o): New dependency list.
8289 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8290 (fill_gregset): Use alphabsd_fill_reg.
8291 (supply_fpregset): Use alphabsd_supply_fpreg.
8292 (fill_fpregset): Use alphabsd_fill_fpreg.
8293 (fetch_inferior_registers): Use struct reg and struct fpreg
8294 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8295 and alphabsd_supply_fpreg.
8296 (store_inferior_registers): Use struct reg and struct fpreg
8297 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8298 and alphabsd_fill_fpreg.
8299 * alphabsd-tdep.c: New file.
8300 * alphabsd-tdep.h: New file.
8301 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8302 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8303 alphabsd_supply_fpreg.
8304 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8305 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8307 2002-05-11 Eric Christopher <echristo@redhat.com>
8309 * mips-tdep.c (mips_double_register_type): Fix thinko.
8310 (mips_single_register_type): Ditto.
8311 * MAINTAINERS: Add self.
8313 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8315 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8316 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8317 right thing on architectures with different endianness and/or
8320 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8322 From Christian Limpach <chris@Pin.LU>
8323 * configure.in: Change sed expression which comments out
8324 NATDEPFILES to also comment out continuation lines.
8325 * configure: Regenerate.
8327 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8329 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8332 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8334 * sh-tdep.c: Include correct file.
8336 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8338 New support for sh64-elf (sh5) target.
8340 * configure.tgt: For sh64-elf target, default to sh-elf.
8342 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8343 (struct gdbarch_tdep): Add new fields for new registers and ABI
8346 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8347 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8348 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8349 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8350 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8351 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8352 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8353 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8354 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8355 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8356 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8357 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8358 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8359 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8360 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8361 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8362 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8363 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8364 sign_extend, sh64_nofp_frame_init_saved_regs,
8365 sh64_init_extra_frame_info, sh64_get_saved_register,
8366 sh64_extract_struct_value_address, sh64_pop_frame,
8367 sh64_push_arguments, sh64_extract_return_value,
8368 sh64_store_return_value, sh64_show_media_regs,
8369 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8370 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8371 sh_sh64_register_virtual_type,
8372 sh_sh64_register_convert_to_virtual,
8373 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8374 sh64_register_read, sh64_pseudo_register_write,
8375 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8376 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8377 sh64_do_pseudo_register, sh_compact_do_registers_info,
8378 sh64_do_registers_info, sh_gdbarch_init): New functions.
8380 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8382 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8384 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8386 * linespec.c (decode_line_1): Check for a double quote after
8387 a filename correctly.
8389 2002-05-10 Jim Blandy <jimb@redhat.com>
8391 Properly track the size of the current objfile's .debug_line section.
8392 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8393 (DWARF_LINE_SIZE): New macro.
8394 (dwarf2_build_psymtabs_hard): Record the line section's size in
8395 the partial symbol table.
8396 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8399 2002-05-10 Petr Sorfa <petrs@caldera.com>
8401 * ia64-tdep.c: Handle breakpoints on L instruction type
8402 in MLX instruction bundle by moving the breakpoint to
8403 the third slot (X instruction type) as L holds only data.
8405 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8407 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8408 (process_one_symbol): Complain about discarding local symbols
8409 due to a misplaced N_LBRAC entry.
8411 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8413 From Daniel Berlin <dan@cgsoftware.com>
8414 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8415 decrease the depth we are at, in the case of templates.
8417 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8419 * mips-tdep.c (mips_float_register_type): New function.
8420 (mips_double_register_type): New function.
8421 (mips_print_register): Use them.
8422 (do_fp_register_row): Likewise.
8424 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8426 * signals/signals.c (signals): Remove conditional compilation around
8427 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8428 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8430 2002-05-09 Michael Snyder <msnyder@redhat.com>
8432 * remote-rdp.c (remote_rdp_can_run): Remove.
8434 2002-05-09 Tom Tromey <tromey@redhat.com>
8436 * jv-valprint.c (java_val_print): Handle `char' as a special case
8439 2002-05-09 Michael Snyder <msnyder@redhat.com>
8441 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8442 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8443 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8444 str r(0123),[sp,#nn].
8445 (arm_skip_prologue): Ditto. Also make disassembly
8446 order-independent by placing it in a loop.
8448 2002-05-06 Michael Snyder <msnyder@redhat.com>
8450 * stabsread.c (read_type): Add recognition for new attribute:
8451 "@V;" means that an array type is actually a vector.
8452 This is analogous to the vector flag that's been added to dwarf2.
8454 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8456 * i386-tdep.h (i386_abi): New enum.
8457 (struct gdbarch_tdep): Replace os_ident member with abi.
8458 (i386_gdbarch_register_os_abi): New prototype.
8459 * i386-tdep.c (i386_abi_names): New array.
8460 (process_note_abi_tag_sections): Removed.
8461 (process_note_sections): New function.
8462 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8463 (struct i386_abi_handler): New struct.
8464 (i386_abi_handler_list): New variable.
8465 (i386_gdbarch_register_os_abi): New function.
8466 (i386_gdbarch_init): Adapt for the changes given above.
8468 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8470 * gregset.h: Say "GNU/Linux".
8472 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8474 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8475 (build_gdbtypes): Build builtin_type_v2_float.
8476 (_initialize_gdbtypes): Register new builtin type.
8478 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8480 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8481 (clear_gdbarch_swap): New function.
8482 (initialize_non_multiarch): Call.
8483 (gdbarch_update_p): Before calling init(), swap out and clear the
8484 existing architecture.
8485 * gdbarch.c: Regenerate.
8487 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8489 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8492 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8494 * sh-nbsd-nat.c: Rename to...
8495 * shnbsd-nat.c: ...this.
8496 * sh-nbsd-tdep.c: Rename to...
8497 * shnbsd-tdep.c: ...this.
8498 * sh-nbsd-tdep.h: Rename to...
8499 * shnbsd-tdep.h: ...this.
8500 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8501 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8503 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8505 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8506 concatenation for command help messages.
8508 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8510 * NEWS: Note new sh*-*-netbsdelf* configuration.
8511 * configure.host: Set gdb_host_cpu to sh for all sh*.
8512 (sh*-*-netbsdelf*): New host.
8513 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8514 (sh*-*-netbsdelf*): New target.
8515 * sh-nbsd-nat.c: New file.
8516 * sh-nbsd-tdep.c: New file.
8517 * sh-nbsd-tdep.h: New file.
8518 * config/sh/nbsd.mh: New file.
8519 * config/sh/nbsd.mt: New file.
8520 * config/sh/nm-nbsd.h: New file.
8521 * config/sh/tm-nbsd.h: New file.
8523 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8525 * sh-tdep.c (sh_osabi_names): Declare.
8526 (process_note_abi_tag_sections): New function.
8527 (get_elfosabi): Ditto.
8528 (sh_gdbarch_register_os_abi): Ditto.
8529 (sh_dump_tdep): Ditto.
8530 _initialize_sh_tdep): Use gdbarch_register to register
8531 sh_gdbarch_init and sh_dump_tdep.
8532 * config/sh/tm-sh.h (sh_osabi): Declare.
8533 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8535 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8537 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8538 (thumb_scan_prologue): Ditto.
8539 (arm_find_callers_reg): Ditto.
8540 (arm_frame_chain): Ditto.
8541 (arm_init_extra_frame_info): Ditto.
8542 (arm_frame_saved_pc): Ditto.
8543 (arm_pop_frame): Ditto.
8544 (arm_push_return_address): New function.
8545 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8546 call_dummy_location, call_dummy_breakpoint_offset_p,
8547 call_dummy_breakpoint_offset, call_dummy_p,
8548 call_dummy_stack_adjust_p, call_dummy_words,
8549 sizeof_call_dummy_words, call_dummy_start_offset,
8550 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8551 call_dummy_address, push_return_address and push_dummy_frame for
8552 generic dummy frames.
8554 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8556 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8557 size computation for alloca.
8558 (sh_fp_frame_init_saved_regs): Likewise.
8560 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8562 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8563 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8564 * arm-tdep.c (arm_store_return_value): Use them.
8565 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8566 * remote-rdp.c (remote_rdp_fetch_register): Use
8567 ARM_MAX_REGISTER_RAW_SIZE.
8568 (remote_rdp_store_register): Likewise.
8570 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8572 * dwarf2cfi.c: Code cleanup, removed unused variables,
8573 added default labels to switch {} statements.
8574 * x86-64-tdep.c: Ditto.
8575 * x86-64-linux-nat.c: Ditto.
8577 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8579 * solib.h: Protect against multiple inclusion.
8581 2002-05-06 Jim Blandy <jimb@redhat.com>
8583 Add first preprocessor macro-expansion files.
8584 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8585 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8586 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8587 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8588 (COMMON_OBS): Add macrotab.o, macroexp.o.
8589 (macroexp.o, macrotab.o): New rules.
8591 Separate the job of reading the line number info statement program
8592 header (...expialidocious) out into its own function.
8593 * dwarf2read.c (struct line_head, struct filenames, struct
8594 directories): Replace with...
8595 (struct line_header): New structure, containing the full
8596 contents of the statement program header, including the
8597 include directory and file name tables.
8598 (read_file_scope): If we have line number info, instead of just
8599 calling dwarf_decode_lines to do all the work, call
8600 dwarf_decode_line_header first to get a `struct line_header'
8601 containing the data in the statement program header, and then
8602 pass that to dwarf_decode_lines, which will pick up where that
8603 left off. Be sure to clean up the `struct line_header' object.
8604 (dwarf_decode_line_header, free_line_header, add_include_dir,
8605 add_file_name): New functions.
8606 (dwarf_decode_lines): Move all the code to read the statement
8607 program header into dwarf_decode_line_header. Take the line
8608 header it built as the first argument, instead of the offset to
8609 the compilation unit's line number info. Use the new `struct
8610 line_header' type instead of the old structures. No need to do
8611 cleanups here now, since we don't allocate anything.
8612 (dwarf2_statement_list_fits_in_line_number_section,
8613 dwarf2_line_header_too_long): New complaints.
8615 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8617 * gdbtypes.c (init_vector_type): New function.
8618 (build_builtin_type_vec128): Simplify the representation of SIMD
8620 (build_gdbtypes): Initialize new builtin vector types.
8621 (_initialize_gdbtypes): Register new vector types with gdbarch.
8622 (builtin_type_v4_float, builtin_type_v4_int32,
8623 builtin_type_v8_int16, builtin_type_v16_int8,
8624 builtin_type_v2_int32, builtin_type_v4_int16,
8625 builtin_type_v8_int8): New (renamed) SIMD types.
8627 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8629 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8630 (i387_fill_fxsave): Likewise.
8632 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8634 * alpha-tdep.c (alpha_extract_return_value): Don't use
8635 non-constant array size in prototype.
8637 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8639 From Brian Taylor <briant at model dot com>:
8640 * ui-out.c (ui_out_field_core_addr): Use the function
8641 longest_local_hex_string_custom'to format addresses > 32 bits
8644 * ui-out.c (ui_out_field_core_addr): Update comment.
8646 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8648 * stack.c (select_and_print_frame): Make static. Delete the
8650 (func_command): Update call.
8651 (select_frame_command): Delete code computing the frame level.
8652 * frame.h (select_and_print_frame): Delete declaration.
8654 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8656 * sparc-tdep.c (sparc_get_saved_register): Comment why
8657 get_prev_frame call is safe.
8659 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8661 * frame.h (select_frame): Delete level parameter.
8662 * stack.c (select_frame): Update. Use frame_relative_level to
8663 obtain the frame's level.
8664 (select_and_print_frame): Update call.
8665 (select_frame_command): Ditto.
8666 (up_silently_base): Ditto.
8667 (down_silently_base): Ditto.
8668 * ocd.c (ocd_start_remote): Ditto.
8669 * remote-rdp.c (remote_rdp_open): Ditto.
8670 * remote-mips.c (mips_initialize): Ditto.
8671 (common_open): Ditto.
8672 * remote-e7000.c (e7000_start_remote): Ditto.
8673 * m3-nat.c (select_thread): Ditto.
8674 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8675 (child_get_current_exception_event): Ditto.
8676 * varobj.c (varobj_create): Ditto.
8677 (varobj_update): Ditto.
8678 (c_value_of_root): Ditto.
8679 * tracepoint.c (finish_tfind_command): Ditto.
8680 * corelow.c (core_open): Ditto.
8681 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8682 * thread.c (info_threads_command): Ditto.
8683 (switch_to_thread): Ditto.
8684 * infrun.c (normal_stop): Ditto.
8685 (restore_selected_frame): Ditto.
8686 (restore_inferior_status): Ditto.
8687 * breakpoint.c (insert_breakpoints): Ditto.
8688 (watchpoint_check): Ditto.
8689 (bpstat_stop_status): Ditto.
8690 (do_enable_breakpoint): Ditto.
8691 * blockframe.c (flush_cached_frames): Ditto.
8692 (reinit_frame_cache): Ditto.
8694 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8696 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8699 2002-05-04 Jim Blandy <jimb@redhat.com>
8701 * gdbtypes.c (replace_type): Doc fix.
8703 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8705 * valprint.c (strcat_longest): Delete commented out function.
8708 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8710 * MAINTAINERS: Mark a29k as deleted.
8711 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8712 Move new configurations to the top.
8713 * configure.tgt: Remove a29k.
8714 * config/a29k/tm-vx29k.h: Delete.
8715 * config/a29k/vx29k.mt: Delete.
8716 * config/a29k/tm-a29k.h: Delete.
8717 * config/a29k/a29k-udi.mt: Delete.
8718 * config/a29k/a29k.mt: Delete.
8719 * a29k-tdep.c: Delete.
8720 * remote-udi.c: Delete.
8721 * remote-mm.c: Delete.
8722 * remote-eb.c: Delete.
8723 * remote-adapt.c: Delete.
8724 * Makefile.in: Remove obsolete code.
8725 * config/s390/s390x.mt: Ditto.
8726 * config/s390/s390.mt: Ditto.
8727 * config/sparc/sparclynx.mh: Ditto.
8728 * config/sparc/linux.mh: Ditto.
8729 * config/pa/hppaosf.mh: Ditto.
8730 * config/pa/hppabsd.mh: Ditto.
8731 * config/ns32k/nbsd.mt: Ditto.
8732 * config/mips/vr5000.mt: Ditto.
8733 * config/m68k/sun3os4.mh: Ditto.
8734 * config/m68k/nbsd.mt: Ditto.
8735 * config/m68k/m68klynx.mh: Ditto.
8736 * config/m32r/m32r.mt: Ditto.
8737 * config/i386/x86-64linux.mt: Ditto.
8738 * config/i386/nbsdelf.mt: Ditto.
8739 * config/i386/nbsd.mt: Ditto.
8740 * config/i386/i386lynx.mh: Ditto.
8742 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8744 * target.c (debug_print_register): New function. Handle oversize
8746 (debug_to_fetch_registers): Call.
8747 (debug_to_store_registers): Call.
8749 2002-05-03 Jim Blandy <jimb@redhat.com>
8751 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8752 (read_type): Doc fix.
8753 * gdbtypes.c (replace_type): Doc fix.
8755 * stabsread.c (multiply_defined_struct): New complaint.
8756 (read_struct_type): If the type we were passed isn't empty, or
8757 incomplete, don't read the new struct type into it; complain,
8758 and return the original type unchanged. Take a new `type_code'
8759 argument, which is the type code for the new type.
8760 (read_type): Rather than storing the type's type code here, pass
8761 it as an argument to read_struct_type, and let that take care of
8762 storing it. That way, we don't overwrite the original type code,
8763 so read_struct_type can use it to decide whether we're overwriting
8764 something we shouldn't.
8765 (complain_about_struct_wipeout): New function.
8767 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8769 * gdbarch.sh: Assert that gdbarch is non-NULL.
8770 * gdbarch.c: Regenerate.
8772 2002-05-03 Jason Merrill <jason@redhat.com>
8774 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8777 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8779 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8780 (x86_64_dwarf2gdb_regno_map_length),
8781 (x86_64_dwarf2_reg_to_regnum): Added.
8782 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8783 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8784 (_initialize_x86_64_tdep): Synced with the change above.
8785 (x86_64_skip_prologue): Reformulated message.
8787 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8789 * f-exp.y: Also use new prev_lexptr variable
8790 to improve error reporting. Based on Michael Snyder
8791 2002-04-24 dated patch to c-exp.y.
8792 * jv-exp.y: Likewise.
8793 * m2-exp.y: Likewise.
8795 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8797 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8798 we are dealing with vectors.
8800 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8802 * config/m68k/tm-nbsd.h: Obvious fix,
8803 correct machine name.
8805 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8807 * p-typeprint.c (pascal_type_print_base): Add support
8808 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8810 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8812 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8813 for fondamental pascal 'char' type.
8815 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8817 * p-lang.h (is_pascal_string_type): Declaration changed,
8818 new sixth argument of type char ** added.
8819 * p-lang.c (is_pascal_string_type): Implementation
8820 changed. Args length_pos, length_size, string_pos, char_size
8821 can now be NULL. New argument arrayname set to the field
8822 name of the char array. Return value set to char array
8823 field index plus one.
8824 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8825 is_pascal_string_type function.
8827 2002-05-02 Andrew Cagney <cagney@redhat.com>
8829 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8830 <cagney@redhat.com> change.
8831 * gdbarch.c: Regenerate.
8833 2002-05-02 Andrew Cagney <cagney@redhat.com>
8835 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8836 before probing for a new one. Detect errorenous gdbarch_init
8838 * gdbarch.c: Regenerate.
8840 2002-05-01 Andrew Cagney <cagney@redhat.com>
8842 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8843 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8844 * config/v850/tm-v850.h: Ditto. Update copyright.
8846 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8848 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8851 2002-04-30 Michael Snyder <msnyder@redhat.com>
8853 * arm-tdep.c: Whitespace clean-ups.
8854 (arm_skip_prologue): Fix thinko; two lines
8855 should have been removed as part of 4/24 change.
8857 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8859 * rs6000-tdep.c: Added comment describing how fpscr register
8860 numbers were chosen.
8862 2002-04-30 Michael Snyder <msnyder@redhat.com>
8864 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8866 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8868 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8869 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8870 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8872 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8874 From Louis Hamilton <hamilton@redhat.com>:
8875 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8876 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8877 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8878 not bfd-private xcoff data, to determine wordsize.
8879 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8881 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8883 GDB 5.2 released from 5.2 branch.
8885 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8887 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8888 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8889 (x86_64_register_info_table): Added comments with register numbers.
8891 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8893 * rs6000-tdep.c (rs6000_extract_return_value,
8894 rs6000_store_return_value): Handle returning vectors.
8895 (rs6000_gdbarch_init): Use
8896 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8897 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8899 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8901 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8902 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8904 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8906 * hpread.c (hpread_psymtab_to_symtab_1,
8907 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8908 with fprintf_unfiltered (gdb_stderr,...).
8910 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8912 * remote-array.c (printf_monitor, write_monitor,
8913 array_insert_breakpoint, array_remove_breakpoint ):
8914 Replace fprintf (stderr,...
8915 with fprintf_unfiltered (gdb_stderr,....
8916 * remote-es.c: Likewise.
8917 * remote-os9k.c: Likewise.
8918 * remote-st.c: Likewise.
8920 2002-04-28 Andreas Schwab <schwab@suse.de>
8922 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8923 linux-proc.o and gcore.o.
8925 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8927 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8928 code without frame pointers.
8930 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8932 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8935 2002-04-26 Ben Elliston <bje@redhat.com>
8937 * target.c (do_xfer_memory): Correct reference to the new option
8938 "trust-readonly-sections".
8940 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8942 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8943 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8944 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8946 (read_array_type): Record the fact that this array type is really a
8947 vector (i.e. are passed in by value).
8949 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8951 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8952 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8953 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8954 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8955 * alpha-linux-tdep.c: Include frame.h.
8956 (alpha_linux_sigcontext_addr): New function.
8957 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8958 alpha_linux_sigcontext_addr.
8959 * alpha-osf1-tdep.c: Include gdbcore.h.
8960 (alpha_osf1_sigcontext_addr): New function.
8961 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8962 alpha_osf1_sigcontext_addr.
8963 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8964 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8966 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8968 * stack.c (selected_frame_level):
8969 (select_frame): Do not set selected_frame_level.
8970 * frame.h (selected_frame_level): Delete declaration.
8972 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8974 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8975 convert_from_func_ptr-addr when AIX / PowerOpen.
8977 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8979 * valops.c (hand_function_call): Call
8980 generic_save_call_dummy_addr.
8981 * frame.h (generic_save_call_dummy_addr): Declare.
8982 * blockframe.c (struct dummy_frame): Add fields call_lo and
8984 (generic_find_dummy_frame): Check for PC in range call_lo to
8985 call_hi instead of entry_point_address.
8986 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8987 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8988 (generic_save_call_dummy_addr): New function.
8990 2002-04-24 David S. Miller <davem@redhat.com>
8992 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8993 sparc_skip_prologue.
8994 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8995 information to find prologue when possible.
8996 (sparc_prologue_frameless_p): Call examine_prologue directly.
8997 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8998 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9000 (SKIP_PROLOGUE): Likewise.
9002 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9004 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9005 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9006 indicate that the condition it was testing is always true.
9007 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9008 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9009 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9011 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9013 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9014 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9015 tdep->jb_pc and tdep->jb_elt_size.
9016 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9017 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9018 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9019 * alpha-nat.c (get_longjmp_target): Remove.
9020 (JB_ELEMENT_SIZE): Ditto.
9022 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9023 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9024 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9025 to alpha_get_longjmp_target.
9026 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9027 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9028 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9030 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9032 * README: Update to GDB 5.2.
9034 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9036 * gdbarch.sh (LC_ALL): Set to `c'.
9038 2002-04-25 Theodore A. Roth <troth@verinet.com>
9040 * avr-tdep.c: Ran through gdb_indent.sh.
9042 2002-04-25 Theodore A. Roth <troth@verinet.com>
9044 * MAINTAINERS: Add myself as AVR maintainer.
9045 * NEWS: Note new target avr.
9047 2002-04-25 Theodore A. Roth <troth@verinet.com>
9049 * Makefile.in: Add support for AVR target.
9050 * configure.tgt: Add support for AVR target.
9051 * avr-tdep.c: New file
9052 * config/avr/avr.mt: New file.
9054 2002-04-25 Theodore A. Roth <troth@verinet.com>
9056 * MAINTAINERS: Add myself to write-after-approval.
9058 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9060 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9061 with fprintf_unfiltered (gdb_stderr,....
9063 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9066 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9068 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9070 * p-exp.y: Also use new prev_lexptr variable
9071 to improve error reporting. Based on Michael Snyder
9072 2002-04-24 dated patch to c-exp.y.
9074 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9076 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9077 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9078 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9080 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9082 (FUNCTION_START_OFFSET): Remove.
9083 (BREAKPOINT): Ditto.
9085 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9087 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9090 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9092 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9093 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9094 alpha_linux_pc_in_sigtramp.
9095 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9096 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9097 alpha_osf1_pc_in_sigtramp.
9098 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9099 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9100 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9101 alphafbsd_pc_in_sigtramp.
9102 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9103 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9104 alphanbsd_pc_in_sigtramp.
9105 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9106 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9108 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9110 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9112 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9114 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9116 (alphanbsd-nat.o): New dependency list.
9117 (alphanbsd-tdep.o): Ditto.
9118 * NEWS: Note new native NetBSD/alpha configuration.
9119 * alphanbsd-nat.c: New file.
9120 * alphanbsd-tdep.c: Ditto.
9121 * configure.host (alpha*-*-netbsd*): New host.
9122 * configure.tgt (alpha*-*-netbsd*): New target.
9123 * config/alpha/nbsd.mh: New file.
9124 * config/alpha/nbsd.mt: Ditto.
9125 * config/alpha/nm-nbsd.h: Ditto.
9126 * config/alpha/tm-nbsd.h: Ditto.
9128 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9130 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9131 (alpha-osf1-tdep.o): New dependency list.
9132 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9133 and skip_sigtramp_frame members.
9134 * alpha-linux-tdep.c: Include gdbcore.h.
9135 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9136 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9137 * alpha-osf1-tdep.c: New file.
9138 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9140 (alpha_frame_past_sigtramp_frame): New function.
9141 (alpha_dynamic_sigtramp_offset): Ditto.
9142 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9143 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9144 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9145 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9146 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9147 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9148 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9149 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9150 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9151 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9152 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9153 to find_solib_trampoline_target.
9154 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9155 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9156 (SKIP_TRAMPOLINE_CODE): Remove.
9157 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9158 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9159 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9160 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9161 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9162 (PROC_SIGTRAMP_MAGIC): Ditto.
9163 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9164 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9165 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9166 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9167 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9169 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9171 * NEWS: Note that Alpha targets are now multi-arch.
9173 2002-04-24 Michael Snyder <msnyder@redhat.com>
9175 * parser-defs.h (prev_lexptr): New external variable.
9176 * parse.c (parse_exp_1): Set prev_lexptr to null before
9177 calling the language-specific parser.
9178 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9179 (yyerror): Use prev_lexptr in error reporting.
9181 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9183 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9184 * gregset.h: If FILL_FPXREGSET is defined, provide
9185 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9186 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9187 is defined, call fill_fpxregset.
9189 2002-04-24 Roland McGrath <roland@frob.com>
9191 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9192 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9193 (supply_gregset, supply_fpregset): New functions.
9195 * gnu-nat.c (gnu_find_memory_regions): New function.
9196 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9197 (gnu_xfer_memory): Add a cast.
9199 2002-04-24 Michael Snyder <msnyder@redhat.com>
9201 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9202 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9203 of argument regs ("str r(0123), [r11, #-nn"]).
9204 (arm_skip_prologue): Better handling for frameless functions.
9205 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9206 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9208 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9210 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9211 NUM_PSEUDO_REGS can be used.
9213 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9215 * arch-utils.h: Update copyright.
9217 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9218 * gdbarch.h, gdbarch.c: Re-generate.
9220 * inferior.h (IN_SIGTRAMP): Delete definition.
9221 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9222 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9224 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9225 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9226 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9227 (find_proc_framesize): Ditto.
9228 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9229 (alpha_init_extra_frame_info): Ditto.
9230 * infrun.c (handle_inferior_event): Ditto.
9231 (handle_inferior_event): Ditto.
9232 (check_sigtramp2): Ditto.
9233 * blockframe.c (create_new_frame): Ditto.
9234 (get_prev_frame): Ditto.
9235 * ppc-linux-tdep.c: Update comments.
9236 * i386-linux-tdep.c: Update comments.
9237 * breakpoint.c (bpstat_what): Update comment.
9239 2002-04-24 David S. Miller <davem@redhat.com>
9241 * i960-tdep.c (register_in_window_p): New function.
9242 (i960_find_saved_register): Use it instead of
9243 REGISTER_IN_WINDOW_P.
9244 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9246 * symtab.h (find_stab_function_addr): Kill extern.
9247 * minsyms.c (find_stab_function_addr): Remove from here...
9248 * dbxread.c: ... to here, and mark it static.
9250 2002-04-20 David S. Miller <davem@redhat.com>
9252 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9253 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9255 2002-04-21 David S. Miller <davem@redhat.com>
9257 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9258 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9259 (vx_write_register): Likewise.
9261 2002-04-23 J. Brobecker <brobecker@gnat.com>
9263 * source.c (is_regular_file): New function.
9264 (openp): Check wether file to open is a regular file
9265 to avoid opening directories.
9267 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9269 * findvar.c (extract_signed_integer): Cast printf argument
9270 to suppress format warning.
9271 (extract_unsigned_integer): Likewise.
9272 * infcmd.c (registers_info): Likewise.
9273 * top.c (get_prompt_1): Likewise.
9274 * valops.c (value_assign): Likewise.
9275 * valprint.c (print_decimal): Likewise.
9277 2002-04-22 H.J. Lu (hjl@gnu.org)
9279 * c-exp.y (typebase): Support
9281 [long|long long|short] [signed|unsigned] [int|]
9285 signed [long|long long|short] int
9287 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9289 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9291 * vax-tdep.h: New file.
9292 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9293 Make several routines static.
9294 (vax_get_saved_register): New function.
9295 (vax_gdbarch_init): New function.
9296 (_initialize_vax_tdep): Register vax_gdbarch_init.
9297 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9298 Remove macros now under the control of gdbarch.
9300 2002-04-22 Michael Snyder <msnyder@redhat.com>
9302 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9303 Some whitespace and coding standards tweaks.
9305 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9307 * vax-tdep.c: Include regcache.h.
9308 (vax_call_dummy_words): New.
9309 (sizeof_vax_call_dummy_words): New.
9310 (vax_fix_call_dummy): New function.
9311 (vax_saved_pc_after_call): Ditto.
9312 * config/vax/tm-vax.h: Don't include regcache.h.
9313 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9314 (CALL_DUMMY): Remove.
9315 (CALL_DUMMY_WORDS): Define.
9316 (SIZEOF_CALL_DUMMY_WORDS): Define.
9317 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9319 2002-04-18 Michael Snyder <msnyder@redhat.com>
9321 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9323 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9325 * vax-tdep.c (vax_frame_chain): New function.
9326 (vax_push_dummy_frame): Ditto.
9327 (vax_pop_frame): Ditto.
9328 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9329 (FRAMELESS_FUNCTION_INVOCATION): Use
9330 generic_frameless_function_invocation_not.
9331 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9332 (POP_FRAME): Use vax_pop_frame.
9334 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9336 * vax-tdep.c (vax_store_struct_return): New function.
9337 (vax_extract_return_value): Ditto.
9338 (vax_store_return_value): Ditto.
9339 (vax_extract_struct_value_address): Ditto.
9340 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9341 vax_store_struct_return.
9342 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9343 (STORE_RETURN_VALUE): Use vax_store_return_value.
9344 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9346 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9348 * vax-tdep.c (vax_frame_saved_pc): New function.
9349 (vax_frame_args_address_correct): Ditto.
9350 (vax_frame_args_address): Ditto.
9351 (vax_frame_locals_address): Ditto.
9352 (vax_frame_num_args): Move code to be in proximity to
9353 other frame-related functions.
9354 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9355 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9356 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9357 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9358 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9360 2002-04-22 H.J. Lu (hjl@gnu.org)
9362 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9365 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9367 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9368 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9369 (FRAME_INIT_SAVED_REGS): New macro.
9371 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9373 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9375 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9377 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9379 (fetch_osf_core_registers): Likewise.
9380 (supply_gregset): Likewise.
9382 2002-04-22 J. Brobecker <brobecker@gnat.com>
9384 * symfile.h (get_section_index): Define.
9385 * symfile.c (get_section_index): New function.
9386 * mdebugread.c (SC_IS_SBSS): New macro.
9387 (SC_IS_BSS): Return true for the scBss storage class only, as
9388 the scSBss storage class refers to the .sbss section.
9389 (parse_partial_symbols): Discard the symbols which associated
9390 section does not exist.
9391 Make sure to use the .sbss section index for symbols which
9392 storage class is scBss, rather than using the .bss section index.
9394 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9396 * vax-tdep.c: Update copyright years.
9397 (vax_register_name): New function.
9398 (vax_register_byte): Ditto.
9399 (vax_register_raw_size): Ditto.
9400 (vax_register_virtual_size): Ditto.
9401 (vax_register_virtual_type): Ditto.
9402 * config/vax/tm-vax.h: Update copyright years.
9403 (REGISTER_NAMES): Remove.
9404 (REGISTER_NAME): Define.
9405 (REGISTER_BYTE): Use vax_register_byte.
9406 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9407 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9408 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9410 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9412 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9414 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9416 2002-04-21 David S. Miller <davem@redhat.com>
9418 * arch-utils.c (generic_prologue_frameless_p): Kill
9419 SKIP_PROLOGUE_FRAMELESS_P code.
9420 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9422 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9423 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9424 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9426 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9427 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9428 (sparc_gdbarch_init): Pass it to
9429 set_gdbarch_prologue_frameless_p.
9431 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9433 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9434 (alphabsd-nat.o): New dependency list.
9436 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9438 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9440 (alpha-linux-tdep.o): New dependency list.
9441 (alphafbsd-tdep.o): Likewise.
9443 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9445 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9447 * alpha-tdep.c: ...from here.
9448 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9450 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9452 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9453 prototype from here...
9454 * alpha-tdep.h: ...to here.
9456 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9458 * frame.h (selected_frame_level): Document as deprecated.
9459 (frame_relative_level): Declare.
9460 * stack.c (frame_relative_level): New function.
9461 (selected_frame_level): Document as deprecated.
9462 (select_frame): Do not set the selected_frame_level.
9464 * stack.c (frame_info, record_selected_frame): Update.
9465 (frame_command, current_frame_command): Update.
9466 (up_silently_base, up_command, down_silently_base): Update.
9467 (down_command): Update.
9468 * inflow.c (kill_command): Update.
9469 * tracepoint.c (finish_tfind_command): Update.
9470 * corelow.c (core_open): Update.
9471 * thread.c (info_threads_command): Update.
9472 (do_captured_thread_select): Update.
9473 * infcmd.c (finish_command): Update.
9474 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9476 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9478 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9480 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9482 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9485 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9487 * alphafbsd-tdep.c: Update copyright years. Include
9489 (alphafbsd_use_struct_convention): Make static.
9490 (alphafbsd_init_abi): New function.
9491 (_initialize_alphafbsd_tdep): New function.
9492 * config/alpha/tm-fbsd.h: Update copyright years.
9493 (USE_STRUCT_CONVENTION): Remove.
9495 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9497 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9498 an Alpha ABI variant.
9499 (alpha_abi_handler_list): Declare.
9500 (alpha_gdbarch_register_os_abi): New function.
9501 (alpha_gdbarch_init): Give registered ABI variant handlers a
9502 chance to tweak the gdbarch once we have set up defaults.
9503 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9505 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9507 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9508 to standard_coerce_float_to_double.
9509 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9511 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9513 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9514 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9515 from gdbarch_tdep rather than a constant.
9516 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9517 the default text address for all Alpha Unix ABIs.
9518 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9519 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9521 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9523 * alpha-tdep.h: New file. Includes several Alpha target constants
9525 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9526 let gdbarch deal with.
9527 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9528 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9530 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9531 Alpha target register names.
9532 * alphabsd-nat.c: Likewise.
9533 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9534 Alpha target register names. Make serveral routines static.
9535 (alpha_get_saved_register): New function.
9536 (alpha_abi_names): New.
9537 (process_note_abi_tag_sections): New function.
9538 (get_elfosabi): New function.
9539 (alpha_gdbarch_init): New function.
9540 (alpha_dump_tdep): New function.
9541 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9543 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9545 * frame.c (find_saved_register): Delete #ifdef
9546 HAVE_REGISTER_WINDOWS code.
9547 * config/sparc/tm-sparc.h: Update comments.
9548 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9550 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9552 * i960-tdep.c (i960_find_saved_register): New function.
9553 (i960_get_saved_register): New function.
9554 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9555 (i960_get_saved_register): Declare.
9556 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9558 2002-04-20 David S. Miller <davem@redhat.com>
9560 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9562 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9564 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9565 instead of NUM_PSEUDO_REGS.
9567 2002-04-20 David S. Miller <davem@redhat.com>
9569 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9570 GDB_MULTI_ARCH_PARTIAL
9571 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9572 define, let tm-sp64.h do it.
9574 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9576 * frame.c (find_saved_register): Avoid a NULL pointer
9577 dereference and actually walk the frame list.
9579 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9581 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9582 sorted in most most-recent-used order. Document.
9583 * gdbarch.h, gdbarch.c: Regenerate.
9585 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9587 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9589 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9590 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9591 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9594 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9597 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9598 (build_builtin_type_vec128): Ditto.
9599 (append_composite_type_field): Fix calculation of type length in
9602 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9604 * config/djgpp/README: Update.
9606 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9609 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9611 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9612 (alpha_setup_arbitrary_frame): ...to this.
9613 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9614 for alpha_setup_arbitrary_frame.
9616 2002-04-18 Andrew Cagney <cagney@redhat.com>
9618 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9619 * gdbarch.h, gdbarch.c: Regenerate.
9621 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9622 * target.h (memory_breakpoint_from_pc): Update declaration.
9623 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9625 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9626 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9627 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9628 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9629 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9630 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9631 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9632 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9633 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9634 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9635 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9636 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9638 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9640 * monitor.c (monitor_insert_breakpoint): Ditto.
9641 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9643 * config/mcore/tm-mcore.h: Update copyright.
9644 * mem-break.c: Ditto.
9645 * xstormy16-tdep.c: Ditto.
9647 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9649 * p-exp.y: Add precedence rule for '^' token.
9650 This removes the shift/reduce conflicts.
9651 Remove the comment concerning these shift/reduce conflicts.
9653 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9655 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9656 (registers_powerpc_nofp): New register set for processors
9657 without floating point unit.
9659 2002-04-18 David S. Miller <davem@redhat.com>
9661 * MAINTAINERS: Add myself to write-after-approval.
9663 2002-04-17 Michael Snyder <msnyder@redhat.com>
9665 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9667 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9669 * rs6000-tdep.c (frame_initial_stack_address): Use
9670 frame_register_read to read the alloca_reg.
9672 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9674 * frame.c (find_saved_register): Find saved registers in the next
9678 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9680 * gdbarch.sh (LANG): Set to ``c''.
9682 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9684 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9686 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9688 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9691 * hpread.c (hpread_get_lntt): Add declaration.
9692 Also fix PR gdb/391.
9694 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9696 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9697 * aclocal.m4, configure: Re-generate.
9700 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9702 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9703 instead of tm_print_insn.
9705 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9707 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9709 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9711 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9712 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9713 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9715 2002-04-12 Don Howard <dhoward@redhat.com>
9717 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9718 max_user_call_depth.
9719 (init_cmd_lists): Initialize the new value;
9720 * cli/cli-script.c (execute_user_command): Limit the call depth of
9721 user defined commands. This avoids a core-dump when user commands
9722 are infinitly recursive.
9724 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9726 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9727 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9728 from tdep struct instead of DEFAULT_LR_SAVE.
9729 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9730 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9731 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9733 2002-04-12 Michael Snyder <msnyder@redhat.com>
9735 * Remote.c: Spelling fix.
9736 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9737 If no symbol found for "sbrk", try "_sbrk".
9738 (make_output_phdrs): Use bfd_section_name.
9739 (gcore_copy_callback): Use bfd_section_name.
9740 * eval.c: Indentation fix-ups.
9741 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9742 in case it gets applied to an address that is already
9743 in the instruction space.
9744 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9745 * symfile.c: Fix indentation, long lines.
9746 * source.c: White space fix-up.
9748 2002-04-12 Andrew Cagney <cagney@redhat.com>
9750 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9751 * frame.c (frame_register_read): New function. Return non-zero on
9753 (read_relative_register_raw_bytes_for_frame): Delete.
9754 (read_relative_register_raw_bytes): Delete.
9755 * frame.h (frame_register_read): Declare.
9756 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9758 * infcmd.c (do_registers_info): Ditto.
9759 * hppa-tdep.c: Ditto.
9760 * rs6000-tdep.c: Ditto.
9761 * h8500-tdep.c: Ditto.
9762 * mips-tdep.c: Ditto.
9763 * h8300-tdep.c: Ditto.
9764 * z8k-tdep.c: Ditto.
9766 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9768 From Jimi X <jimix@watson.ibm.com>:
9769 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9772 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9774 From Jimi X <jimix@watson.ibm.com>:
9775 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9778 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9780 From Jimi X <jimix@watson.ibm.com>:
9781 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9782 register sets for these processor variants.
9784 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9786 * regformats/reg-ppc.dat: Support FPSCR.
9788 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9790 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9791 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9792 Add fpscr as an invalid/unfetchable register.
9793 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9794 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9795 (fill_fpregset): Add support for register fpscr.
9796 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9797 (fill_gregset): Account for the fact that register ``mq'' might
9799 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9800 (registers_power): Add fpscr to register set at slot 71.
9801 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9802 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9804 2002-04-11 Michael Snyder <msnyder@redhat.com>
9806 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9807 * configure: Regenerate.
9808 * config.in: Regenerate.
9809 * acconfig.h: Add define for _SYSCALL32.
9810 * core-sol2.c: Remove #define _SYSCALL32.
9811 * solib-legacy.c: Remove #define _SYSCALL32.
9813 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9815 * stack.c (select_frame): Cleanup internal error message, do not
9818 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9820 * stack.c (select_frame): Check that selected_frame and the
9821 specified level are as expected.
9822 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9824 * frame.h (struct frame_info): Add field `level'. Update
9826 Work-in-progress PR gdb/464.
9828 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9830 * maint.c (maint_print_section_info): Rename print_section_info.
9831 (print_bfd_section_info, print_objfile_section_info): Update.
9832 * inferior.h (struct gdbarch): Add opaque declaration.
9833 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9834 * gdbarch.h: Regenerate.
9836 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9838 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9839 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9840 (kernel_u_size): Added.
9841 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9842 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9844 2002-04-04 Jim Ingham <jingham@apple.com>
9846 * valarith.c (find_size_for_pointer_math): New function, either returns
9847 the size for a pointer's target, returns 1 for void *, or errors for
9849 (value_add, value_sub): use find_size_for_pointer_math.
9851 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9853 * linux-low.c (linux_look_up_symbols): New hook.
9854 (linux_target_ops): Add linux_look_up_symbols.
9855 * remote-utils.c (decode_address): New function.
9856 (look_up_one_symbol): New function.
9857 * server.c (handle_query): Call target look_up_symbols hook.
9858 * server.h (look_up_one_symbol): Add prototype.
9859 * target.h (struct target_ops): Add look_up_symbols hook.
9861 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9863 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9864 override FP_REGNUM with frame->fp. Update copyright.
9865 * parse.c (num_std_regs, std_regs): Delete.
9866 (target_map_name_to_register): Do not search std_regs. Update
9867 function description.
9868 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9869 declarations. Update copyright.
9872 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9874 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9875 after the last symbol in a block.
9877 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9879 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9880 is non zero as a found symbol.
9882 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9884 * findvar.c: Include "builtin-regs.h".
9885 (value_of_register): Call value_of_builtin_reg when applicable.
9886 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9887 (target_map_name_to_register): Call
9888 builtin_reg_map_name_to_regnum.
9889 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9890 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9891 (builtin_regs_h): Define.
9892 (builtin-regs.o): New target.
9893 (findvar.o): Add $(builtin_regs_h).
9894 * builtin-regs.c, builtin-regs.h: New files.
9895 * std-regs.c: New file.
9896 Partial fix for PR gdb/251.
9898 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9900 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9901 it's no longer required.
9903 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9905 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9907 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9909 From Jimi X <jimix@watson.ibm.com>:
9910 * rs6000-tdep.c (rs6000_software_single_step): Use
9911 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9912 and size. Use target_insert_breakpoint() and
9913 target_remove_breakpoint() to insert and remove breakpoints
9914 instead of explicit memory reads and writes.
9916 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9918 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9919 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9920 ELF_OBJECT_FORMAT ifdef.
9922 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9924 From Jimi X <jimix@watson.ibm.com>:
9925 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9927 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9929 From Jimi X <jimix@watson.ibm.com>:
9930 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9931 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9933 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9935 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9936 s/asprintf/xasprintf/.
9937 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9939 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9941 I believe Jeff Law denies responsability for this one:
9942 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9943 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9944 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9945 Work-around for PR gdb/366.
9947 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9949 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9950 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9951 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9953 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9955 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9956 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9959 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9961 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9964 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9966 * README (Reporting Bugs in GDB): Document the bug web page as the
9967 prefered way of submitting bugs.
9970 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9972 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9974 * gdbarch.h, gdbarch.c: Re-generate.
9976 2002-04-07 Andreas Schwab <schwab@suse.de>
9978 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9979 buffer to regcache_collect.
9981 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9983 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9984 * gdbarch.c, gdbarch.h: Re-generate.
9986 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9988 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9989 declaration. Fix -Werror.
9991 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9993 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9994 * gdbarch.c: Regenerate.
9996 2002-04-05 Michael Snyder <msnyder@redhat.com>
9998 * breakpoint.c (clear_command): Rewrite middle section to
9999 combine two loops with identical control conditions.
10000 Add a cleanup to eliminate a memory leak.
10001 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10003 2002-04-05 H.J. Lu (hjl@gnu.org)
10005 * solib-svr4.c (bkpt_names): Add "__start".
10007 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10009 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10010 as test for 64 bit target.
10012 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10014 * h8500-tdep.c (h8500_write_fp): Delete function.
10015 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10016 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10017 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10018 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10019 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10020 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10022 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10023 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10024 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10025 (d10v_write_fp): Delete function.
10026 * inferior.h (write_fp, generic_target_write_fp): Delete
10028 * regcache.c (generic_target_write_fp): Delete function.
10029 (write_fp): Delete function.
10030 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10031 * gdbarch.h, gdbarch.c: Regenerate.
10032 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10033 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10034 (sparc64_write_fp): Delete declaration.
10035 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10036 (h8500_write_fp): Delete declaration.
10038 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10040 * sparc-tdep.c (sparc64_write_fp): Delete.
10041 (sparc_push_dummy_frame): Replace write_fp call with code to store
10043 (sparc_gdbarch_init): Do not initialize write_fp.
10045 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10047 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10050 2002-03-29 Jim Blandy <jimb@redhat.com>
10052 * stack.c (get_selected_block): Add new argument `addr_in_block',
10053 used to return the exact code address we used to select the block,
10054 not just the block.
10055 * blockframe.c (get_frame_block, get_current_block): Same.
10056 * frame.h (get_frame_block, get_current_block,
10057 get_selected_block): Update declarations.
10058 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10059 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10061 2002-04-05 Michael Snyder <msnyder@redhat.com>
10063 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10066 2002-04-05 J. Brobecker <brobecker@gnat.com>
10068 * utils.c (xfullpath): New function.
10069 * defs.h (xfullpath): Add declaration.
10070 * source.c (openp): Use xfullpath in place of gdb_realpath to
10071 avoid resolving the basename part of filenames when the
10072 associated file is a symbolic link. This fixes a potential
10073 inconsistency between the filenames known to GDB and the
10074 filenames it prints in the annotations.
10075 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10076 to be able to match a filename with either the real filename, or
10077 the name of any symbolic link to this file.
10078 (lookup_partial_symtab): Ditto.
10080 2002-04-04 Michael Snyder <msnyder@redhat.com>
10082 * breakpoint.c: Add support for hardware breakpoints in overlays.
10083 (overlay_events_enabled): New state variable.
10084 (insert_breakpoints): Use overlay_events_enabled to decide
10085 whether to attempt to set a breakpoint at the overlay load addr.
10086 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10087 (remove_breakpoint): Use overlay_events_enabled to decide
10088 whether breakpoints need to be removed from overlay load addr.
10089 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10090 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10091 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10092 disable_overlay_breakpoints): Update overlay_events_enabled.
10094 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10096 * dwarf2read.c (struct function_range): New.
10097 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10098 (check_cu_functions): New.
10099 (read_file_scope): Initialize global function lists.
10100 Call dwarf_decode_line after processing children.
10101 (read_func_scope): Add to global function list.
10102 (dwarf_decode_lines): Call check_cu_functions everywhere
10103 record_line is called. Call record_line with a linenumber
10104 of 0 to mark sequence ends.
10106 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10108 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10109 change sync with glibc.
10111 2002-04-03 Jim Blandy <jimb@redhat.com>
10113 * configure.in: Call AC_C_INLINE.
10114 * configure: Regenerated.
10116 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10118 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10119 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10121 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10123 * NEWS: Mention gcore support on FreeBSD/i386.
10125 * fbsd-proc.c: New file.
10126 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10127 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10129 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10132 2002-03-29 Jim Blandy <jimb@redhat.com>
10134 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10135 unescaped newlines in string literals, but newer ones don't. So
10138 2002-03-26 Michael Snyder <msnyder@redhat.com>
10139 Andrew Cagney <cagney@redhat.com>
10141 * cli/cli-dump.c: New file. Dump memory to file,
10142 restore file to memory.
10143 * cli/cli-dump.h: New file.
10144 * Makefile.in: Add rules, dependencies for cli-dump.o.
10145 * NEWS: Mention new commands.
10147 2002-03-28 Michael Snyder <msnyder@redhat.com>
10149 * symfile.c (symbol_file_add): Move test for null symbols to later.
10151 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10153 From veksler at il.ibm.com:
10154 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10155 the xstrduped original path.
10158 2002-03-27 Michael Snyder <msnyder@redhat.com>
10160 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10161 * infcmd.c (_initialize_infcmd): Ditto.
10162 * language.c (_initialize_language): Ditto.
10163 * symfile.c (_initialize_symfile): Ditto.
10164 * top.c (_init_main): Ditto.
10165 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10167 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10169 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10170 vector registers handling.
10171 (skip_prologue): Handle new AltiVec instructions. Fill in new
10172 fields of frame data.
10173 (frame_get_saved_regs): Fill in information for AltiVec registers.
10175 2002-03-27 Jim Blandy <jimb@redhat.com>
10177 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10178 a function; leave this macro here to invoke that function.
10179 (symbol_init_mangled_name): Declaration for that function.
10180 * symtab.c (symbol_init_mangled_name): New function.
10182 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10184 * valarith.c: Replace strerror with safe_strerror.
10185 * tracepoint.c: Ditto.
10186 * lin-lwp.c: Ditto.
10187 * go32-nat.c: Ditto.
10189 * gnu-nat.c: Ditto.
10191 2002-03-27 Andreas Schwab <schwab@suse.de>
10193 * event-top.c (command_line_handler): Remove useless if.
10195 2002-03-27 Andreas Jaeger <aj@suse.de>
10197 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10200 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10202 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10203 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10204 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10205 (x86_64_linux_dr_get_status, supply_gregset),
10206 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10207 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10208 (x86_64_register_info_table): Add.
10209 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10210 (x86_64_register_raw_size, x86_64_register_virtual_type),
10211 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10212 general x86_64_register_info_table.
10213 (i386_gdbarch_init): gdbarch_register_bytes is now set
10214 dynamicaly during initialization.
10215 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10216 * gdbserver/linux-x86-64-low.c: Ditto.
10218 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10220 * gdbserver/server.c (main): Call target_signal_to_host_p
10221 and target_signal_to_host on signals received from the remote.
10222 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10223 target_signal_from_host on signals sent to the remote.
10224 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10225 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10227 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10229 * signals/signals.c: Include "server.h" in gdbserver build.
10230 (target_signal_from_name): Don't use STREQ.
10231 (_initialize_signals): Likewise. Don't include function in
10234 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10236 * signals.c: Moved to...
10237 * signals/signals.c: Here.
10238 * Makefile (signals.o): Update.
10240 2002-03-26 Jeff Law (law@redhat.com)
10242 * somread.c (som_symtab_read): Remove some commented out code and
10243 updated related comments. Do not set the minimal symbol table to
10244 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10245 in a dynamic executable.
10246 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10247 where we are unable to find the minimal symbol for the given
10250 2002-03-25 Jeff Law (law@redhat.com)
10252 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10254 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10256 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10258 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10260 * command.h: Update copyright.
10261 (struct cmd_list_element): Replace definition with opaque
10263 (enum cmd_types): Document that it will eventually be moved to
10265 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10266 (MALLOCED_REPLACEMENT): Delete macro.
10267 * Makefile.in (cli_decode_h): Add $(command_h).
10268 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10269 * top.c: Include "cli/cli-decode.h".
10270 * completer.c: Include "cli/cli-decode.h".
10271 * maint.c: Include "cli/cli-decode.h".
10272 * cli/cli-decode.h: Include "command.h".
10273 (enum command_class): Delete.
10274 (enum cmd_types): Comment out.
10275 (enum cmd_auto_boolean): Delete.
10276 (enum var_types): Delete.
10278 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10280 * cli/cli-decode.c: Include "gdb_assert.h".
10281 (add_set_or_show_cmd): New static function.
10282 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10283 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10284 all fields, such as func, from the set command.
10286 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10288 * MAINTAINERS (sh-elf): Change warning flag to -w.
10290 2002-03-23 Andrew Cagney <cagney@redhat.com>
10292 * defs.h (error): Add printf format attribute.
10293 * thread-db.c (thread_from_lwp): Fix error format string.
10294 * stack.c (parse_frame_specification): Ditto.
10295 * cli/cli-decode.c (undef_cmd_error): Ditto.
10296 * scm-lang.c (scm_lookup_name): Ditto.
10297 * tracepoint.c (trace_error): Ditto.
10298 * remote-utils.c (usage): Ditto.
10299 * remote.c (compare_sections_command): Ditto.
10302 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10304 * gdbtypes.c (append_composite_type_field): New function.
10305 (init_composite_type): New function.
10306 * gdbtypes.h (append_composite_type_field): Declare.
10307 (init_composite_type): Ditto.
10309 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10311 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10313 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10314 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10315 structure returning convention for SYSV ABI case, but not
10316 for GNU/Linux, FreeBSD, or NetBSD.
10318 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10320 * symtab.h (lookup_block_symbol): Add mangled_name argument
10323 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10324 with new mangled_name argument.
10325 * linespec.c (decode_line_1): Likewise.
10326 * valops (value_of_this): Likewise.
10327 * symtab.c (lookup_transparent_type): Likewise.
10328 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10329 (lookup_symbol): If we are given a mangled name, pass it down
10330 to lookup_symbol_aux.
10331 (lookup_block_symbol): If we are given a mangled name to check
10332 against, only return symbols which match it.
10334 2002-03-22 Christopher Faylor <cgf@redhat.com>
10336 * win32-nat.c (child_create_inferior): Check for proper shell to use
10337 here, in case the user changes it on the fly.
10338 (_initialize_inftarg): Remove shell path considerations.
10340 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10342 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10343 for gdbarch_max_register_raw_size and max_register_virtual_size.
10344 Adjust copyright year.
10346 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10348 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10349 in a function to cover the entire beginning of the function
10350 as well if it does not already.
10352 2002-03-21 Tom Rix <trix@redhat.com>
10354 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10355 (rs6000_ptrace64): Renamed from ptrace64.
10357 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10359 * gdbserver/remote-utils.c (remote_open): Don't call
10360 getprotobyname, we're all using TCP here so just use
10362 * gdbserver/gdbreplay.c (remote_open): Ditto.
10364 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10366 * regcache.c (_initialize_regcache): No need to call
10367 build_regcache() at this time; it gets called whenever
10368 the gdbarch changes.
10370 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10372 * sparc-nat.c: Include sys/param.h where possible.
10374 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10377 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10378 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10379 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10381 * stabsread.c (rs6000_builtin_type): Likewise.
10382 (read_sun_floating_type): Likewise.
10384 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10386 * stabsread.c (read_member_functions): Remove skip code for duplicate
10387 constructor/destructor methods. Use standard parsing for these
10388 methods and just do not chain them to the list of methods after
10391 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10393 * coffread.c: Remove redundant static declarations. Replace
10394 occurrences of `PTR' with `void *'.
10395 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10396 * top.h (quit_cover): Likewise.
10397 * defs.h (catch_errors): Likewise.
10399 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10401 * defs.h (XMALLOC): Define.
10402 * gdb-events.sh (XMALLOC): Delete macro.
10403 * gdb-events.c, gdb-events.h: Regenerate.
10404 * gdbarch.sh (XMALLOC): Delete macro.
10405 * gdbarch.c: Regenerate.
10406 * serial.c (XMALLOC): Delete macro.
10407 * ui-file.c (XMALLOC): Ditto.
10408 * ser-unix.h (XMALLOC): Ditto.
10409 * sh-tdep.c (XMALLOC): Ditto.
10410 * ui-out.c (XMALLOC): Ditto.
10411 * utils.c (XMALLOC): Ditto.
10412 * i386-tdep.c (XMALLOC): Ditto.
10413 * gdb-events.c (XMALLOC): Ditto.
10414 * d10v-tdep.c (XMALLOC): Ditto.
10415 * cli-out.c (XMALLOC): Ditto.
10417 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10418 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10419 * ui-file.c, ui-out.c: Ditto.
10421 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10423 * command.h (struct cmd_list_element): Add field context.
10424 (set_cmd_context, get_cmd_context): Declare.
10425 * cli/cli-decode.h: Ditto.
10426 * cli/cli-decode.c (get_cmd_context): New function.
10427 (set_cmd_context): New function.
10428 (add_cmd): Initialize context.
10429 Part of fixing PR gdb/145 and PR gdb/146.
10431 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10433 * cli/cli-decode.c (cmd_type): New function.
10434 * command.h (cmd_type): Declare.
10435 * infrun.c (set_schedlock_func): Call function cmd_type.
10436 * kod.c (kod_set_os): Call cmd_type.
10437 * cris-tdep.c (cris_version_update): Use function cmd_type.
10438 (cris_mode_update, cris_abi_update): Ditto.
10440 * command.h: (execute_cmd_post_hook): Declare.
10441 (execute_cmd_pre_hook): Declare.
10442 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10443 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10444 functions. Execute pre/post hook while ensuring that afterwords
10445 hook_in is cleared.
10446 * top.c (execute_command): Use execute_cmd_post_hook, and
10447 execute_cmd_pre_hook to execute pre/post commands.
10448 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10450 (hook_stop_stub): Call execute_cmd_pre_hook.
10452 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10454 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10455 set'' and this leads to a core dump. Move xstrdup of
10456 operating_system to after check that it is not NULL.
10458 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10460 * kod.c (kod_set_os): Remove unnecessary check that
10461 ``command->type'' is set_cmd.
10463 * valprint.c (set_input_radix): Use input_radix.
10464 (set_output_radix): Use output_radix.
10465 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10468 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10470 * value.h (struct value): Delete field ``substring_addr''. Change
10471 aligner fields to force_doublest_align, force_longest_align,
10472 force_core_addr_align and force_pointer_aligh.
10474 * value.h (struct value): Fix typo in above change.
10476 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10478 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10479 to fix internal_error from ``maintenance print architecture''.
10481 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10483 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10484 for gcc versions after gcc-2.8.1.
10486 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10488 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10489 for method resolution. Restore adjustment of ``this'' pointer after
10490 calling value_struct_elt, which was accidentally removed during the
10493 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10495 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10497 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10498 get_saved_register.
10499 * value.h (value_of_register): Update.
10501 2002-03-14 Richard Henderson <rth@redhat.com>
10503 * configure.in: Detect declaration for canonicalize_file_name.
10504 * utils.c (canonicalize_file_name): Declare, if needed.
10505 (gdb_realpath): Prefer realpath if available and usable.
10506 * config.in, configure: Rebuild.
10508 2002-03-14 Richard Henderson <rth@redhat.com>
10510 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10511 a constant array bound.
10513 * MAINTAINERS: Add myself to write-after-approval.
10515 2002-03-14 Michael Snyder <msnyder@redhat.com>
10517 * symfile.c (syms_from_objfile): Return immediately if no syms.
10518 (symbol_file_add): Return immediately if no syms.
10519 (find_sym_fns): Return immediately if no syms.
10521 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10523 * gdbserver/remote-util.c (remote_open): Print remote-side's
10524 IP address when remote debugging over the network.
10526 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10528 * config/sparc/fbsd.mh: Fix copyright.
10529 * config/sparc/fbsd.mt: Likewise.
10531 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10533 * MAINTAINERS: Fix typo in name of gdb warnings option.
10534 (x86-64): Fix formating so that this can be parsed by awk.
10536 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10538 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10539 * defs.h: Include "gdb/signals.h".
10540 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10542 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10544 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10545 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10548 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10549 Don Howard <dhoward@redhat.com>
10551 * mips-tdep.c (ST0_FR): Define.
10552 (mips2_fp_compat): New function, temporarily disabled.
10553 (mips_read_fp_register_single): New function.
10554 (mips_read_fp_register_double): New function.
10555 (mips_print_register): Use them.
10556 (do_fp_register_row): Likewise.
10558 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10560 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10563 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10565 * stabsread.c (read_member_functions): Fix is_stub test for
10566 static member functions, improve comment.
10568 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10570 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10571 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10572 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10573 commands that set boolean values.
10574 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10575 (arm_rdi_resume): Always initialize PC.
10576 (arm_rdi_open): Don't use rslt as a boolean.
10577 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10578 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10579 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10580 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10582 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10584 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10585 * configure: Rebuilt.
10587 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10589 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10590 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10592 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10594 * cli/cli-decode.c (set_cmd_completer): New function.
10595 * command.h (set_cmd_completer): Declare.
10596 * cli/cli-decode.h (set_cmd_completer): Ditto.
10598 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10599 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10600 * win32-nat.c (_initialize_inftarg): Ditto.
10601 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10602 * proc-api.c (_initialize_proc_api): Ditto.
10603 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10604 * source.c (_initialize_source): Ditto.
10605 * exec.c (_initialize_exec): Ditto.
10606 * solib.c (_initialize_solib): Ditto.
10607 * top.c (init_main): Ditto.
10608 * tracepoint.c (_initialize_tracepoint): Ditto.
10609 * symfile.c (_initialize_symfile): Ditto.
10610 * printcmd.c (_initialize_printcmd): Ditto.
10611 * infcmd.c (_initialize_infcmd): Ditto.
10612 * corefile.c (_initialize_core): Ditto.
10614 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10616 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10618 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10620 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10622 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10624 * NEWS: Update headings, 5.2 has branched.
10626 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10628 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10629 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10630 (register_addr, REGISTER_RAW_SIZE): Likewise.
10631 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10632 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10634 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10636 * MAINTAINERS (x86-64): Add myself.
10637 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10638 changed value_ptr -> struct value *
10640 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10642 * configure.host (sparc64-*-freebsd): Add.
10643 * configure.tgt: Likewise.
10644 * config/sparc/fbsd.mh: New file.
10645 * config/sparc/fbsd.mt: Likewise.
10646 * config/sparc/nm-fbsd.h: Likewise.
10647 * config/sparc/tm-fbsd.h: Likewise.
10649 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10651 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10652 regformats/reg-s390x.dat.
10654 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10656 * utils.c: Add FIXME explaining true/false problem.
10658 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10660 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10662 2002-02-28 Michael Chastain <mec@shout.net>
10664 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10666 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10668 * gdbserver/linux-s390-low.c: New file.
10669 * regformats/reg-s390.dat: New file.
10670 * regformats/reg-s390x.dat: New file.
10671 * gdbserver/configure.srv: Add S/390.
10672 * gdbserver/Makefile.in: Add S/390.
10673 * configure.tgt: Enable gdbserver for S/390.
10675 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10677 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10678 first line of the doc string for "info dos", except at the end of
10679 the sentence, since the short help stops at the first period.
10681 2002-02-28 Jason Merrill <jason@redhat.com>
10683 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10685 2002-02-27 Fred Fish <fnf@redhat.com>
10687 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10688 comment (dumy -> dummy).
10690 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10692 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10694 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10696 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10698 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10700 * gdbserver/acconfig.h: New file.
10701 * gdbserver/i387-fp.c: New file.
10702 * gdbserver/i387-fp.h: New file.
10703 * gdbserver/linux-x86-64.c: New file.
10704 * regformats/reg-x86-64.dat: New file.
10705 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10706 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10707 * gdbserver/configure.in: Add support for regsets.
10708 * gdbserver/config.in: Regenerate.
10709 * gdbserver/configure: Regenerate.
10710 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10711 * gdbserver/linux-low.h: New file.
10712 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10714 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10715 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10716 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10717 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10718 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10719 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10720 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10721 "i387-fp.h". Add PTRACE_GETREGS and friends.
10722 * gdbserver/regcache.c (supply_register): New function.
10723 (supply_register_by_name): New function.
10724 (collect_register): New function.
10725 (collect_register_by_name): New function.
10727 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10729 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10730 (config.status): Add configure.srv dependency.
10731 (server_h): Add config.h dependency.
10733 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10735 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10736 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10737 * gdbserver/configure.srv: Change i386-*-linux* to use
10740 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10742 * x86-64-tdep.c: Re-indent. Update copyright date.
10744 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10746 From Michal Ludvig <mludvig@suse.cz>:
10747 * x86-64-tdep.c (value.h): Delete.
10748 (gdb_assert.h): Include.
10749 (x86_64_register_convert_to_virtual,
10750 x86_64_register_convert_to_raw ): Add check which lets only
10751 floating-point values to be converted.
10752 (value_push): Delete.
10753 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10754 (i386_gdbarch_init): Number of register_bytes fixed.
10756 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10758 * MAINTAINERS: Add x86-64 target.
10760 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10762 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10763 * osfsolib.c (solib_map_sections): Ditto.
10764 * irix5-nat.c (solib_map_sections): Ditto.
10765 * corelow.c (gdb_check_format): Ditto.
10766 * symfile.c (symfile_bfd_open): Ditto.
10767 * solib.c (solib_map_sections): Ditto.
10770 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10772 * remote.c (_initialize_remote): By default, disable ``e'' and
10773 ``E'' step out-of-range packets.
10775 2002-02-26 Andreas Schwab <schwab@suse.de>
10777 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10778 m68k_linux_frame_saved_pc.
10779 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10781 (SIGCONTEXT_PC_OFFSET): Remove.
10782 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10783 m68k_linux_sigtramp_saved_pc): New functions.
10784 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10785 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10786 (UCONTEXT_PC_OFFSET): Define.
10787 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10788 non-RT and RT signal trampolines.
10790 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10792 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10793 (TARGET_NBPG, STACK_END_ADDR): Delete
10794 (VARIABLES_INSIDE_BLOCK): Delete.
10796 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10798 * utils.c (perror_with_name): Make string parameter constant.
10799 (print_sys_errmsg): Ditto.
10801 * defs.h (perror_with_name): Update.
10802 (print_sys_errmsg): Update.
10805 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10807 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10808 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10810 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10812 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10813 if it already matches the current architecture from the exec file.
10814 Include arch-utils.h for gdbarch_info_init prototype.
10815 * Makefile.in (rs6000-nat.o): Update dependencies.
10817 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10819 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10820 list of exported variables.
10822 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10824 * gdbserver/configure.srv: New file.
10825 * gdbserver/configure.in: Use configure.srv instead
10826 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10828 * gdbserver/configure: Regenerated.
10829 * gdbserver/terminal.h: New file.
10830 * gdbserver/Makefile.in: Update for configure changes. Remove
10831 more unneeded include paths.
10833 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10835 From wiz at danbala:
10836 * config/sparc/tm-sp64.h: Fix grammar and typos.
10839 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10841 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10842 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10843 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10844 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10845 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10846 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10847 * s390-tdep.c: Ditto.
10848 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10849 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10850 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10851 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10852 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10853 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10854 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10855 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10856 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10857 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10860 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10862 * lin-thread.c: Delete file.
10863 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10864 to gdb_proc_service.h.
10865 * configure: Re-generate.
10867 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10868 * serial.c (serial_open): Delete check for "ocd".
10871 * Makefile.in (linux-thread.o): Delete target.
10872 * linux-thread.c: Delete file.
10874 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10875 renamed SH files to be consistent.
10877 * symtab.c (sort_search_symbols): Use xfree.
10879 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10881 * arm-linux-tdep.c (arm_linux_init_abi): Register
10882 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10883 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10884 definition with undef, since we don't want the sysvr4 definition.
10885 (SKIP_TRAMPOLINE_CODE): Likewise.
10887 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10889 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10891 * configure.in: (AC_CHECK_FUNCS) Added test for
10892 canonicalize_file_name Regenerated.
10893 * config.in, configure: Regenerated.
10894 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10895 defined use canonicalize_file_name.
10897 2002-02-23 Michael Chastain <mec@shout.net>
10899 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10901 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10903 * README: Remove references to cygnus.com.
10904 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10905 dot com'' form. Remove references to cygnus.com and sourceware.
10907 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10909 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10910 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10911 1003.1-2001 no longer allows "head -1".
10912 * gdb/Makefile.in (version.c): Likewise.
10913 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10914 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10915 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10917 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10919 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10920 * command.h (cmd_cfunc_eq): Declare.
10921 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10923 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10924 ``struct cmd_list_element *''.
10925 * cli/cli-cmds.c (is_complete_command): Update. Use
10927 * top.c (execute_command): Pass the command to
10928 is_complete_command.
10929 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10931 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10933 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10934 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10935 architecture defines.
10936 * s390-tdep.c (s390_gdbarch_init): Likewise.
10938 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10940 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10941 (arm_linux_push_arguments): Likewise.
10942 (arm_linux_init_abi): Register them. Also register linux-specific
10944 (find_minsym_and_objfile): Use strcmp, not STREQ.
10945 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10946 (arm_linux_call_dummy_words): Delete declaration.
10947 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10948 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10950 (LOWEST_PC): Delete.
10952 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10954 * maint.c (print_section_info): Do not prepend `0x' to filepos
10955 output, it will be handled by local_hex_string_custom.
10957 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10959 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10960 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10961 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10963 2002-02-22 Jim Blandy <jimb@redhat.com>
10965 Indicate that the bcache functions don't change the strings
10967 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10968 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10970 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10972 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10974 2002-02-21 Christopher Faylor <cgf@redhat.com>
10976 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10977 find the complete path to a loaded DLL.
10979 2002-02-21 Fred Fish <fnf@redhat.com>
10981 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10982 that marks the end of the range of a function, enter a line number
10983 entry that has a line number of zero and a PC offset that matches
10984 the end of the function. This starts a range of PC's for which no
10985 line number information is known.
10986 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10987 PC's for which no line number info is found (line number is zero)
10988 then we didn't find any valid line information.
10989 * symtab.h: Document use of zero line number entry.
10991 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10993 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10994 (have_ptrace_getvrregs): Define for run time checks.
10995 (gdb_vrregset_t): New type for Altivec register handling.
10996 (fetch_register, store_register): Fetch/store altivec register
10998 (fetch_altivec_register, store_altivec_register): New functions.
10999 (supply_vrregset, fill_vrregset): New functions.
11000 (fetch_altivec_registers, store_altivec_registers): New functions.
11001 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11004 2002-02-21 Jiri Smid <smid@suse.cz>
11006 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11008 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11010 * Makefile.in (armnbsd-nat.o): Update dependencies.
11011 * armnbsd-nat.c (supply_gregset): New function. Common code to
11012 supply the integer register set.
11013 (supply_fparegset): New function. Similar for FPA registers.
11014 (fetch_regs, fetch_fp_regs): Use them.
11015 (fetch_core_registers): Likewise.
11016 (fetch_elfcore_registers): New function.
11017 (arm_netbsd_elfcore_fns): New core-file type specification.
11018 (_initialize_arm_netbsd_nat): Register it.
11020 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11022 * armnbsd-nat.c: Include gdbcore.h.
11023 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11024 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11025 'void' to declaration, to shut up ARI.
11026 (fetch_core_registers): Make static. Rewrite using supply_register.
11027 (arm_netbsd_core_fns): New core-file type specification.
11028 (_initialize_arm_netbsd_nat): New function.
11030 2002-02-21 Christopher Faylor <cgf@redhat.com>
11032 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11035 2002-02-20 Christopher Faylor <cgf@redhat.com>
11037 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11040 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11042 * jv-exp.y (parse_number): Change type of implicit longs
11043 to builtin_type_uint64.
11045 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11047 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11048 to be an integer instead of a `union wait'.
11050 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11052 * mips-linux-nat.c: Call the operating system GNU/Linux.
11053 * mips-linux-tdep.c: Likewise.
11054 * mips-tdep.c: Likewise.
11056 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11059 * jv-exp.y (parse_number): Handle 64-bit integers.
11061 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11063 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11064 AC_STDC_HEADERS to AC_HEADER_STDC.
11065 * gdbserver/configure: Regenerated.
11067 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11069 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11071 * sparc-tdep.c (get_longjmp_target): Likewise.
11073 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11075 * News: Add news about ARM and Multi-arch. Mention the new target
11078 2002-02-19 Jim Blandy <jimb@redhat.com>
11080 * stabsread.c (error_type_complaint): Improve error message.
11082 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11084 * gdbserver/README: Update documentation.
11085 * gdbserver/configure.in: Update configury to match documentation.
11086 * gdbserver/Makefile.in: Likewise.
11087 * gdbserver/configure: Regenerated.
11088 * gdbserver/aclocal.m4: New file, generated by aclocal.
11089 * gdbserver/config.in: New file, generated by autoheader.
11091 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11093 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11096 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11098 * arm-tdep.h (enum arm_float_model): New enum.
11099 (struct gdbarch_tdep): Add fp_model.
11100 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11101 up floating-point conversions until we know the floating-point model
11102 in use by the inferior. Don't complain about being unable to
11103 determine the ABI of the inferior when we don't have one.
11104 (arm_extract_return_value): Support different floating-point models.
11105 (arm_store_return_value): Likewise.
11106 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11108 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11110 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11112 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11113 of ``current_gdbarch''.
11115 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11117 * armnbsd-nat.c : ANSIfy all function declarations.
11118 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11119 (fetch_inferior_registers): Re-implement in terms of above.
11120 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11121 (store_inferior_registers): Re-implement in terms of above.
11123 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11125 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11127 * arm-linux-tdep.c: Likewise.
11128 * config/arm/tm-linux.h: Likewise.
11130 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11132 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11133 * config/arm/nbsd.mt (TM_FILE): Delete.
11134 * config/arm/tm-nbsd.h: Delete.
11136 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11138 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11139 Initialize CALL_DUMMY_LENGTH.
11141 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11143 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11145 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11146 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11147 defines one thing and that is incorrect for this port.
11148 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11150 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11152 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11154 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11156 * win32-nat.c (display_selector): New function. Displays information
11157 about the information returned by GetThreadSelectorEntry API function.
11158 (display_selectors): New function. Displays the infomation of
11159 the selector given as argument, or of CS, DS ans FS selectors
11160 if no argument is given.
11161 ( _initialize_inftarg): Add "w32" as info prefix command.
11162 Add "info w32 selector" as command calling display_selectors.
11164 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11166 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11167 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11170 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11172 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11174 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11176 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11177 (arm_fix_call_dummy): Call it.
11178 (arm_call_dummy_breakpoint_offset): Delete.
11179 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11180 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11182 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11184 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11185 Default to func_frame_chain_valid.
11186 * gdbarch.h, gdbarch.c: Re-generate.
11187 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11189 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11191 * ppc-linux-nat.c: Update copyright.
11192 (fetch_register, store_register): Add tid parameter, don't compute
11194 (fetch_ppc_registers, store_ppc_registers): Add tid
11195 parameter. Pass it along to callees.
11196 (fetch_inferior_registers, store_inferior_registers): Compute tid
11197 here, and pass it to calleed functions.
11198 (fill_gregset, supply_fpregset): Clean up formatting.
11200 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11202 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11203 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11205 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11207 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11208 * gdbarch.c gdbarch.h: Regenerate.
11209 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11211 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11212 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11213 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11215 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11216 * arm-tdep.c (arm_get_longjmp_target): New function.
11217 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11218 this to a positive value register arm_get_longjmp_target as the
11220 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11221 (arm_linux_init_abi): Set up longjmp description in tdep.
11222 * armnbsd-nat.c (get_longjmp_target): Delete.
11223 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11224 description in tdep.
11225 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11226 (get_longjmp_target): Delete declaration.
11227 (GET_LONGJMP_TARGET): Delete.
11228 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11229 (GET_LONGJMP_TARGET): Delete.
11231 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11233 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11234 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11235 of ``current_gdbarch''.
11237 2002-02-17 Tom Tromey <tromey@redhat.com>
11239 * cli/cli-cmds.c (compare_strings): New function.
11240 (complete_command): Only print each unique item once.
11241 * completer.h (complete_line): Declare.
11242 * completer.c (complete_line): New function.
11243 (line_completion_function): Use it.
11245 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11247 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11248 * gdbarch.h, gdbarch.c: Re-generate.
11250 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11252 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11254 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11256 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11257 * valops.c (value_arg_coerce): Don't take the address of a reference
11258 to convert an argument to a reference.
11260 2002-02-15 Christopher Faylor <cgf@redhat.com>
11262 * win32-nat.c (get_image_name): New function.
11263 (handle_load_dll): Use get_image_name function.
11264 (get_child_debug_event): Avoid registering debug events until possibly
11265 execed process is started.
11266 (child_create_inferior): Allow invocation via shell so that command
11267 line redirection, etc. works ok.
11268 (_initialize_inftarg): Add new command: "set shell" to control whether
11269 a shell is used to start a process.
11271 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11273 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11274 instead of find_register_by_number.
11275 (cannot_store_register): Likewise.
11277 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11279 * dwarf2read.c: Replace fprintf (stderr, ...) by
11280 fprintf_unfiltered (gdb_stderr, ...).
11282 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11284 * gdbserver/gdbserver.1: Document --attach.
11286 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11288 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11290 * arm-tdep.c (arm_default_arm_le_breakpoint)
11291 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11292 (arm_default_thumb_be_breakpoint): New. Initialize them from
11293 traditional breakpoint defines.
11294 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11295 (arm_gdbarch_init): Initialize new breakpoint variables.
11296 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11297 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11298 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11299 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11301 (arm_netbsd_init_abi_common): ... here; new function.
11302 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11303 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11304 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11305 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11307 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11309 * arm-tdep.h (enum arm_abi): New enum.
11310 (struct gdbarch_tdep): New structure.
11311 (LOWEST_PC): Provide a default.
11312 (arm_gdbarch_register_os_abi): Declare new function.
11313 * arm-tdep.c (arm_abi_names): New array.
11314 (process_note_abi_tag_sections): New function.
11315 (get_elfosabi): New function.
11316 (arm_gdbarch_register_os_abi): New function.
11317 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11318 support for that ABI has been built in, then call the appropriate
11319 configuration routine. Use gdbarch_num_regs() to get the number
11321 (arm_dump_tdep): New function.
11322 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11323 place-holder functions.
11324 (_initialize_arm_tdep): Register them.
11325 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11327 * armnbsd-tdep.c: New file.
11328 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11329 * config/arm/nbsd.mt (TDEPFILES): Add it.
11330 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11332 * armnbsd-nat.c: Include regcache.h.
11333 * Makefile.in (armnbsd-nat.o): Update dependency list.
11335 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11337 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11339 * gdbserver/Makefile.in: Fix typos in target rules.
11341 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11343 Fix part of PR gdb/267.
11344 * linespec.c (find_methods): Handle constructors specially for now.
11346 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11348 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11350 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11351 standard_coerce_float_to_double().
11353 2002-02-14 Christopher Faylor <cgf@redhat.com>
11355 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11358 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11360 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11361 find_variant_by_name, because it confuses the multiarch
11362 framework. Return NULL if there isn't an architecture with the
11363 user supplied name, instead of forcing a different one without
11364 recording the change with the multiarch machinery.
11365 (find_variant_by_name): Delete.
11367 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11369 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11370 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11372 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11374 * stack.c (print_frame_info_base): When calling
11375 print_frame_info_listing_hook, set current_source_symtab.
11377 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11379 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11380 and remove unused $(INCLUDE_DIR).
11381 Add regcache.c to OBS.
11382 Add generated register protocol files to clean target.
11383 Update dependencies for new objects, obsolete old target code.
11385 * gdbserver/linux-low.c: Remove all platform-specific code to
11386 new files. Remove various dead code. Update to use regcache
11388 * gdbserver/remote-utils.c (fromhex): Add return statement
11390 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11392 (input_interrupt): Add integer parameter to match prototype
11393 of a signal handler.
11394 (outreg): Use register_data ().
11395 (prepare_resume_reply): Use gdbserver_expedite_regs.
11396 * gdbserver/server.c (main): Dynamically allocate own_buf because
11397 PBUFSIZ is no longer constant. Use registers_to_string () and
11398 registers_from_string ().
11399 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11400 for error (), fatal (), and warning (). Update definition of
11401 PBUFSIZ to use regcache functionality. Add include guard.
11402 * gdbserver/utils.c (fatal): Add missing ``const''.
11403 (warning): New function.
11405 * regformats/regdat.sh: Include "regcache.h" in generated files.
11406 Provide init_registers () function.
11407 * regformats/regdef.h: Add prototype for set_register_cache ().
11410 * gdbserver/linux-arm-low.c: New file.
11411 * gdbserver/linux-i386-low.c: New file.
11412 * gdbserver/linux-ia64-low.c: New file.
11413 * gdbserver/linux-m68k-low.c: New file.
11414 * gdbserver/linux-mips-low.c: New file.
11415 * gdbserver/linux-ppc-low.c: New file.
11416 * gdbserver/linux-sh-low.c: New file.
11418 * gdbserver/regcache.c: New file.
11419 * gdbserver/regcache.h: New file.
11421 * gdbserver/low-linux.c: Removed obsolete file.
11423 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11425 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11426 * config/i386/linux.mt: Likewise.
11427 * config/ia64/linux.mt: Likewise.
11428 * config/m68k/linux.mh: Likewise.
11429 * config/powerpc/linux.mh: Likewise.
11430 * config/mips/linux.mt: Likewise.
11432 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11434 * config/i386/i386lynx.mh: Mark gdbserver variables
11435 as (currently) obsolete for this target.
11436 * config/i386/nbsd.mt: Likewise.
11437 * config/i386/nbsdelf.mt: Likewise.
11438 * config/m32r/m32r.mt: Likewise.
11439 * config/m68k/m68klynx.mh: Likewise.
11440 * config/m68k/nbsd.mt: Likewise.
11441 * config/m68k/sun3os4.mh: Likewise.
11442 * config/mips/vr5000.mt: Likewise.
11443 * config/ns32k/nbsd.mt: Likewise.
11444 * config/pa/hppabsd.mh: Likewise.
11445 * config/pa/hppaosf.mh: Likewise.
11446 * config/powerpc/nbsd.mt: Likewise.
11447 * config/rs6000/rs6000lynx.mh: Likewise.
11448 * config/s390/s390.mt: Likewise.
11449 * config/s390/s390x.mt: Likewise.
11450 * config/sparc/sparclynx.mh: Likewise.
11451 * config/sparc/sun4os4.mh: Likewise.
11452 * config/i386/x86-64linux.mt: Likewise.
11453 * config/sparc/linux.mh: Likewise.
11455 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11457 * configure.tgt: Configure gdbserver only for known working
11458 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11459 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11460 SUBDIRS if it is configured. Update comment for ${nativefile}.
11461 * configure: Regenerated.
11463 2002-02-13 Michael Snyder <msnyder@redhat.com>
11465 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11467 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11468 (default_gcore_mach): Just return 0, work around a problem in bfd.
11469 (default_gcore_target): OK to return NULL if exec_bfd is null.
11470 (make_mem_sec): Use a cast, avoid a warning.
11472 * procfs.c (find_memory_regions_callback): Use a cast instead of
11473 calling host_pointer_to_address (which complains if
11474 sizeof (host pointer) != sizeof (target pointer)).
11475 (procfs_make_note_section): Avoid overflow in psargs string.
11477 * procfs.c (procfs_make_note_section): Make the default
11478 implementation return an error.
11480 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11482 * procfs.c (procfs_make_note_section): Provide a default definition
11483 (for alpha-dec-osf4.0f). Fix typos.
11485 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11487 * linux-proc.c: Add include of regcache.h.
11488 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11490 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11492 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11493 * memattr.c (create_mem_region): Disallow useless empty region.
11494 Regions are half-open intervals, so allow [A..B) [B..C) as
11497 2002-02-13 Michael Chastain <mec@shout.net>
11499 * defs.h: Kill CONST_PTR.
11500 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11501 * c-lang.c (c_builtin_types): Likewise.
11502 * ch-lang.c (ch_builtin_types): Likewise.
11503 * f-lang.c (f_builtin_types): Likewise.
11504 * language.c (unknown_builtin_types): Likewise.
11505 * m2-lang.c (m2_builtin_types): Likewise.
11506 * p-lang.c (pascal_builtin_types): Likewise.
11507 * scm-lang.c (c_builtin_types): Likewise.
11509 2002-02-13 Keith Seitz <keiths@redhat.com>
11511 * arm-tdep.h (arm_get_next_pc): Add declaration.
11513 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11515 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11516 with other related struct-returning functions.
11517 (arm_extract_struct_value_address): New function.
11518 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11519 initialize float_format, double_format and long_double_format as
11520 appropriate to the endianness of the target.
11521 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11522 (arm_use_struct_convention): Delete declaration.
11523 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11525 2002-02-13 Keith Seitz <keiths@redhat.com>
11527 * defs.h (core_addr_to_string_nz): New function.
11529 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11531 Apply missing bits of 2002-01-15 patch.
11532 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11533 (fill_fpregset): Use i387_fill_fsave.
11535 2002-02-12 Keith Seitz <keiths@redhat.com>
11537 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11538 (core_addr_to_string_nz): New function.
11540 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11542 * arm-linux-nat.c: Really include arm-tdep.h.
11543 * config/arm/tm-linux.h (struct type, struct value): Declare.
11545 2002-02-11 Michael Snyder <msnyder@redhat.com>
11547 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11548 (gcore section): Ifdef for Solaris and Unixware only.
11549 (procfs_do_thread_registers): Unixware needs one lwpstatus
11550 per thread (not one prstatus or pstatus).
11551 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11552 not over all gdb threads. For unixware, call elfcore_write_pstatus
11553 once before iterating over threads.
11555 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11557 * arm-tdep.h: New file.
11558 * arm-tdep.c: Include arm-tdep.h.
11559 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11560 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11561 (arm_print_float_info, arm_register_type, convert_to_extended)
11562 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11563 (arm_extract_return_value, arm_register_name): Make static.
11564 (arm_software_single_step): Similarly. Fix types in declaration.
11565 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11566 (arm_store_return_value, arm_store_struct_return): New functions.
11567 (arm_gdbarch_init): Register the above functions. Also register
11568 call_dummy_start_offset, sizeof_call_dummy_words,
11569 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11570 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11571 max_register_virtual_size, register_size. Set up
11572 prologue_cache.saved_regs here, rather than ...
11573 (_initialize_arm_tdep): ... here.
11574 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11576 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11577 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11578 (arm_print_float_info, arm_register_type, convert_to_extended)
11579 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11580 (arm_extract_return_value, arm_register_name): Delete declarations.
11581 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11582 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11583 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11584 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11585 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11586 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11587 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11588 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11589 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11590 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11591 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11592 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11594 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11595 * remote-rdi.c remote-rdp.c: Likewise.
11596 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11597 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11598 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11601 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11602 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11603 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11604 from non-ARM_ prefixed definitions.
11605 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11607 * remote-rdi.c remote-rdp.c: Likewise.
11608 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11610 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11612 * arm-tdep.c (arm_frameless_function_invocation)
11613 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11614 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11615 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11616 (arm_pop_frame, arm_get_next_pc): Make static.
11617 (arm_gdbarch_init): Register above in gdbarch structure.
11618 (arm_read_fp): Renamed from arm_target_read_fp.
11619 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11620 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11621 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11622 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11623 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11624 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11625 (arm_pc_is_thumb_dummy): Delete declarations.
11626 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11627 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11628 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11629 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11631 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11633 * symtab.c (compare_search_syms): New function.
11634 (sort_search_symbols): New function.
11635 (search_symbols): Sort symbols after searching rather than
11638 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11640 * NEWS: Linux -> GNU/Linux.
11642 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11644 * gdbarch.sh: For for level one methods, disallow a definition
11645 when partially multi-arched. Add comments explaining rationale.
11646 * gdbarch.h: Re-generate.
11648 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11650 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11651 multi-arch partial.
11653 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11655 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11656 field. Use diff -u.
11657 * gdbarch.c: Re-generate.
11659 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11661 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11662 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11665 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11667 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11668 multi-arch partial.
11669 (PUSH_ARGUMENTS): Switch to using predefault.
11670 * gdbarch.c: Regenerate.
11672 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11674 * valops.c (PUSH_ARGUMENTS): Delete definition.
11675 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11676 partial. Default to default_push_arguments.
11677 * gdbarch.h, gdbarch.c: Regenerate.
11679 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11681 * defs.h (throw_exception): Rename return_to_top_level. Update
11683 * utils.c (error_stream, internal_verror, quit): Ditto.
11684 * top.c (throw_exception, catcher): Ditto.
11685 * sparclet-rom.c (sparclet_load): Ditto.
11686 * remote.c (interrupt_query, minitelnet): Ditto.
11687 * remote-sds.c (interrupt_query): Ditto.
11688 * remote-mips.c (mips_error, mips_kill): Ditto.
11689 * ocd.c (interrupt_query): Ditto.
11690 * monitor.c (monitor_interrupt_query): Ditto.
11691 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11692 * target.h: Update comment.
11694 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11696 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11698 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11699 default_double_format.
11700 * gdbarch.h, gdbarch.c: Re-generate.
11701 * findvar.c (floatformat_unknown): Delete variable definition.
11702 * doublest.h (floatformat_unknown): Delete variable declaration.
11704 2002-02-09 Jim Blandy <jimb@redhat.com>
11706 * stabsread.c (read_type): Add code to parse Sun's syntax for
11707 prototyped function types.
11709 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11711 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11712 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11714 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11716 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11717 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11718 now _initialize_xcoffsolib gets called again and overrides the
11719 commands from solib.c in a native configuration.
11721 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11723 * doublest.c (store_typed_floating): Don't try to return a value.
11726 2002-02-08 Jim Blandy <jimb@redhat.com>
11728 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11729 is prototyped and has no arguments, print its argument list as
11732 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11734 * MAINTAINERS (write-after-approval): Add myself.
11735 (paper-trail): I've escaped!
11737 2002-02-08 Christopher Faylor <cgf@redhat.com>
11739 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11741 (_initialize_check_for_gdb_ini): Ditto.
11743 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11745 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11746 xaprintf -> xasprintf.
11748 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11750 * win32-nat.c: Remove use of printf and sprintf functions.
11752 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11754 * arm-tdep.c (arm_frame_chain_valid): Make static.
11755 (arm_push_arguments): Likewise.
11756 (arm_gdbarch_init): New function.
11757 (_initialize_arm_tdep): Call it.
11758 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11759 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11760 (FRAME_CHAIN_VALID): Delete.
11761 (arm_frame_chain_valid): Delete declaration.
11762 (PUSH_ARGUMENTS): Delete.
11763 (arm_push_arguments): Delete declaration.
11764 (CALL_DUMMY_P): Delete.
11766 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11767 Corinna Vinschen <vinschen@redhat.com>
11769 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11770 on builtin float types.
11772 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11774 * utils.c: Include <curses.h> before "bfd.h".
11775 * tui/tui-hooks.c: Likewise.
11776 * tui/tui.c: Likewise.
11777 * tui/tuiCommand.c: Likewise.
11778 * tui/tuiData.c: Likewise.
11779 * tui/tuiDataWin.c: Likewise.
11780 * tui/tuiDisassem.c: Likewise.
11781 * tui/tuiGeneralWin.c: Likewise.
11782 * tui/tuiIO.c: Likewise.
11783 * tui/tuiLayout.c: Likewise.
11784 * tui/tuiRegs.c: Likewise.
11785 * tui/tuiSource.c: Likewise.
11786 * tui/tuiSourceWin.c: Likewise.
11787 * tui/tuiStack.c: Likewise.
11788 * tui/tuiWin.c: Likewise.
11790 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11792 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11793 to include space for pseudoregs as well. Update loops accordingly.
11794 (sh_fp_frame_init_saved_regs): Ditto.
11795 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11797 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11799 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11800 Add Richard Earnshaw to Arm maintainers.
11802 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11804 * defs.h (warning_begin): Delete declaration.
11806 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11809 2002-02-07 Michael Snyder <msnyder@redhat.com>
11811 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11812 Logic bug, remove misplaced else.
11814 2002-02-07 Klee Dienes <klee@apple.com>
11816 * fork-inferior.c (fork_inferior): Add '!' to the list of
11817 characters that need to be quoted when building a string for the
11818 shell. Quote '!' specifically with a backslash, since CSH chokes
11819 when trying to evaluate "str!str".
11821 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11823 * rdi-share/host.h: Only provide a typedef for bool if it is not
11826 2002-02-04 Michael Snyder <msnyder@redhat.com>
11828 * breakpoint.h (enum bptype): Add new overlay event bp type.
11829 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11831 * breakpoint.c (create_internal_breakpoint): New function.
11832 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11833 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11834 (create_thread_event_breakpoint): Ditto.
11835 (create_solib_event_breakpoint): Ditto.
11836 (create_overlay_event_breakpoint): New function.
11837 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11838 (update_breakpoints_after_exec): Delete and re-initialize
11839 overlay event breakpoints after an exec. Add FIXME comment
11840 about longjmp breakpoint.
11841 (print_it_typical): Ignore overlay event breakpoints.
11842 (print_one_breakpoint): Ditto.
11844 (bpstat_what): Do not stop for overlay event breakpoints.
11845 (delete_breakpoint): Don't delete overlay event breakpoints.
11846 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11847 (breakpoint_re_set): Re-create overlay event breakpoint.
11849 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11850 (overlay_manual_command): Disable overlay breakpoints.
11851 (overlay_off_command): Disable overlay breakpoints.
11853 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11855 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11856 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11857 to here from config/tm-arm.h.
11858 (coff_sym_is_thumb): Make static.
11859 (arm_elf_make_msymbol_special): New function.
11860 (arm_coff_make_msymbol_special): New function.
11861 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11862 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11863 (coff_sym_is_thumb): Delete declaration.
11864 (arm_elf_make_msymbol_special): Declare.
11865 (arm_coff_make_msymbol_special): Declare.
11866 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11867 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11869 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11871 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11873 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11875 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11876 * gdbarch.c gdbarch.h: Regenerate.
11877 * arch-utils.c (default_print_float_info): New function.
11878 * arch-utils.h (default_print_float_info): Prototype it.
11879 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11880 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11881 (PRINT_FLOAT_INFO): Document it.
11883 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11884 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11885 (PRINT_FLOAT_INFO): Define.
11887 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11889 * win32-nat.c (_initialize_check_for_gdb_ini):
11890 Add typecast to sprintf argument to suppress a warning.
11892 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11894 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11895 to allow easier handling of pass state.
11896 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11897 that gives exception name and address.
11898 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11899 and set last_sig value to ourstatus->value.sig. Some missing
11901 (child_continue): Correctly report continue_status.
11902 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11903 TARGET_SIGNAL_0 (new default value).
11904 (child_resume): consider sig argument passed to decide if
11905 the exception should be passed to debuggee or not.
11907 2002-02-05 Michael Snyder <msnyder@redhat.com>
11909 * regcache.c (fetch_register): Call target_fetch_register
11910 only if we don't call FETCH_PSEUDO_REGISTER.
11911 (store_register): Call target_store_register only if we
11912 don't call STORE_PSEUDO_REGISTER.
11914 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11916 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11917 ELF_MAKE_MSYMBOL_SPECIAL.
11918 * gdbarch.c, gdbarch.h: Regenerate.
11919 * arch-utils.c (default_make_msymbol_special): New function.
11920 * arch-utils.h (default_make_msymbol_special): Export.
11921 * elfread.c (elf_symtab_read): Compile use of
11922 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11924 * coffread.c (coff_symtab_read): Ditto, for
11925 COFF_MAKE_MSYMBOL_SPECIAL.
11927 2002-02-05 Jim Blandy <jimb@redhat.com>
11929 * solib-svr4.c (svr4_truncate_ptr): New function.
11930 (svr4_relocate_section_addresses): Do the address arithmetic with
11931 the appropriate truncation for target addresses, even when
11932 CORE_ADDR is larger than a target address.
11934 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11936 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11939 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11941 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11944 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11946 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11948 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11950 * gdbserver/linux-low.c: Remove unused include files.
11952 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11954 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11955 (read_inferior_memory): Use it.
11956 (write_inferior_memory): Likewise.
11958 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11960 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11961 grubbing through sys_errlist.
11963 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11965 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11967 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11968 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11970 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11972 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11973 (do_sfunc, set_cmd_sfunc): New functions.
11975 * command.h (struct cmd_list_element): Add field func.
11976 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11977 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11978 * cli/cli-decode.h: Ditto.
11980 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11981 (help_all, help_cmd_list): Ditto.
11982 (find_cmd, complete_on_cmdlist): Ditto.
11983 * top.c (execute_command): Ditto.
11985 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11988 * infcmd.c (notice_args_read): Fix function signature.
11990 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11991 * cli/cli-decode.c (add_set_cmd): Ditto.
11992 * utils.c (initialize_utils): Ditto.
11993 * maint.c (_initialize_maint_cmds): Ditto.
11994 * infrun.c (_initialize_infrun): Ditto.
11995 * demangle.c (_initialize_demangler): Ditto.
11996 * remote.c (add_packet_config_cmd): Ditto.
11997 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11998 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11999 * proc-api.c (_initialize_proc_api): Ditto.
12000 * kod.c (_initialize_kod): Ditto.
12001 * valprint.c (_initialize_valprint): Ditto.
12002 * top.c (init_main): Ditto.
12003 * infcmd.c (_initialize_infcmd): Ditto.
12004 * corefile.c (_initialize_core): Ditto.
12005 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12006 * arch-utils.c (initialize_current_architecture): Ditto.
12007 (_initialize_gdbarch_utils): Ditto.
12008 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12010 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12011 * wince.c (_initialize_inftarg): Ditto.
12012 * symfile.c (_initialize_symfile): Ditto.
12013 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12014 * language.c (_initialize_language): Ditto.
12015 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12017 2002-02-04 Michael Snyder <msnyder@redhat.com>
12019 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12021 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12023 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12024 Add rules for building the register data files.
12026 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12028 * regformats/regdat.sh: Add braces to the definition of
12029 expedite_regs_${arch}.
12031 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12033 * regformats/regdef.h (struct reg): Add comment describing the
12034 requirements for offset and size fields.
12036 2002-02-04 Andreas Schwab <schwab@suse.de>
12038 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12039 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12041 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12043 * gdbarch.sh (copyright): Update years in generated header.
12044 (SMASH_TEXT_ADDRESS): Add rule.
12045 * gdbarch.h, gdbarch.c: Re-generate.
12046 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12047 * dbxread.c: Likewise.
12048 * dwarfread.c: Likewise.
12049 * elfread.c: Likewise.
12050 * somread.c: Likewise.
12052 * arm-tdep.c (arm_smash_text_address): New function.
12053 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12055 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12057 Add support for hardware watchpoints on win32 native.
12058 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12059 CONTEXT_DEBUG_REGISTERS.
12060 (dr variable): New variable. Static array containing a local copy
12061 of debug registers.
12062 (debug_registers_changed): New variable. Reflects when debug registers
12063 are changed and need to be written to inferior.
12064 (debug_registers_used): New variable. Reflects when any debug register
12065 was set, used when new threads are created.
12066 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12068 (thread_rec): Set dr array if id is the thread of current_event .
12069 (child_continue, child_resume): Change the debug registers for all
12070 threads if debug_registers_changed.
12071 (child_add_thread): Change the debug registers if debug_registers_used.
12072 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12073 Link nm.h to new nm-cygwin.h file.
12074 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12075 of hardware registers.
12077 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12079 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12080 Restore behavour broken by 2002-01-20 Andrew Cagney
12081 <ac131313@redhat.com> IEEE_FLOAT removal.
12083 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12085 * c-valprint.c (c_val_print): Pass a proper valaddr to
12086 cp_print_class_method.
12087 * valops.c (search_struct_method): If there is only one method
12088 and args is NULL, return that method.
12090 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12092 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12093 accessing tag_name directly.
12095 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12097 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12098 of accessing tag_name directly.
12100 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12103 * gdbtypes.c (replace_type): New function.
12104 * gdbtypes.h (replace_type): Add prototype.
12105 * stabsread.c (read_type): Use replace_type.
12107 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12109 * Makefile.in (memattr.o): Add missing dependencies rule.
12111 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12113 * breakpoint.c (break_at_finish_command): Really export.
12114 (break_at_finish_at_depth_command): Ditto.
12115 (tbreak_at_finish_command): Ditto.
12116 * hppa-tdep.c: Include completer.h.
12117 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12118 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12120 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12122 * utils.c (do_write): New function.
12123 (error_stream): Rewrite combining the code from error_begin and
12125 (verror): Rewrite using error_stream.
12126 (error_begin): Delete function.
12128 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12130 * utils.c (error_begin): Make static.
12131 * defs.h (error_begin): Delete declaration.
12133 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12134 (decode_line_1): Use cplusplus_error instead of error_begin,
12135 cplusplus_hint and return_to_top_level.
12136 * coffread.c (coff_symfile_read): Use error instead of error_begin
12137 and return_to_top_level.
12138 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12140 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12142 * language.h (type_error, range_error): Make string parameter
12144 * language.c (warning_pre_print): Delete extern declaration.
12145 * dwarfread.c (warning_pre_print): Ditto.
12146 * language.c (type_error, range_error): Rewrite to use verror and
12147 vwarning instead of warning_begin.
12149 2002-02-01 Michael Snyder <msnyder@redhat.com>
12151 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12152 (set_ignore_count): Move misplaced comment back where it belongs.
12154 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12156 * command.h (NO_FUNCTION): Delete macro.
12157 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12158 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12159 * tracepoint.c (_initialize_tracepoint): Ditto.
12160 * cli/cli-decode.c (add_set_cmd): Ditto.
12161 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12163 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12165 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12166 Update ``this'' pointer when calling virtual functions.
12168 2002-02-01 Michael Snyder <msnyder@redhat.com>
12170 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12171 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12173 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12175 * regformats/reg-arm.dat: New file.
12176 * regformats/reg-i386.dat: New file.
12177 * regformats/reg-ia64.dat: New file.
12178 * regformats/reg-m68k.dat: New file.
12179 * regformats/reg-mips.dat: New file.
12180 * regformats/reg-ppc.dat: New file.
12181 * regformats/reg-sh.dat: New file.
12182 * regformats/regdef.h: New file.
12183 * regformats/regdat.sh: New file.
12185 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12187 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12188 (arm_frame_args_address, arm_frame_locals_address): New functions.
12189 (arm_frame_num_args): New function.
12190 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12191 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12192 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12194 2002-01-31 Michael Snyder <msnyder@redhat.com>
12196 * breakpoint.c (break_at_finish_command): Export.
12197 (break_at_finish_at_depth_command): Export.
12198 (tbreak_at_finish_command): Export.
12199 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12200 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12201 "txbreak" commands, which are HPPA specific.
12203 * printcmd.c (disassemble_command): Remove an ancient
12204 artifact of an old merge.
12206 * symfile.h (enum overlay_debugging_state):
12207 Define enum constant values for overlay mode.
12208 * symfile.c (overlay_debugging): Use enums instead of literals.
12209 (overlay_is_mapped, overlay_auto_command,
12210 overlay_manual_command): Ditto.
12212 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12213 breakpoint_here_p, breakpoint_inserted_here_p,
12214 breakpoint_thread_match, bpstat_stop_status,
12215 describe_other_breakpoints, check_duplicates, clear_command):
12216 Coding standard fixes.
12218 * target.c (target_xfer_memory): Add spaces, coding standard.
12219 (do_xfer_memory): Add missing line to trust-readonly
12220 code: check bfd SEC_READONLY flag for section.
12222 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12224 * PROBLEMS: Fix typo, 5.1->5.1.1.
12226 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12228 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12229 data symbols, since we search based on textlow and texthigh.
12230 (find_pc_sect_symtab): Likewise.
12232 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12234 * defs.h (vwarning): Declare.
12235 * utils.c (vwarning): New function.
12236 (warning): Call vwarning.
12237 (warning_begin): Delete function.
12239 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12240 the warning message.
12241 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12244 2002-01-30 Michael Snyder <msnyder@redhat.com>
12246 * NEWS: Mention "set trust-readonly-sections" command.
12247 Mention generate-core-file command.
12249 2002-01-15 Michael Snyder <msnyder@redhat.com>
12251 * target.c: New command, "set trust-readonly-sections on".
12252 (do_xfer_memory): Honor the suggestion to trust readonly sections
12253 by reading them from the object file instead of from the target.
12254 (initialize_targets): Register command "set trust-readonly-sections".
12256 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12258 * parse.c (target_map_name_to_register): Simplify, search regs and
12259 pseudo-regs using a single loop.
12261 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12263 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12265 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12267 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12268 * config/i386/i386v42mp.mh: Add i387-nat.o .
12269 * i386v4-nat.c: Include i387-nat.h.
12270 (supply_fpregset): Use i387_supply_fsave.
12271 (fill_fpregset): Use i387_fill_fsave.
12273 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12275 * arm-tdep.c (arm_call_dummy_words): Define.
12276 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12277 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12278 (CALL_DUMMY_WORDS): Define.
12279 (arm_call_dummy_words): Declare.
12280 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12281 (arm_linux_call_dummy_words): Declare.
12283 2002-01-30 Andreas Schwab <schwab@suse.de>
12285 * m68klinux-nat.c: Fix last change to use regcache_collect
12286 instead of referencing registers[] directly.
12288 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12290 * parse.c (target_map_name_to_register): Delete code wrapped in
12291 #ifdef REGISTER_NAME_ALIAS_HOOK.
12293 2002-01-28 Michael Snyder <msnyder@redhat.com>
12295 * regcache.c (legacy_read_register_gen): Need to be able to
12296 read pseudo-register as well as real register.
12297 (legacy_write_register_gen): Ditto.
12299 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12301 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12302 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12303 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12304 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12305 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12306 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12307 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12308 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12309 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12310 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12311 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12312 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12313 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12314 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12315 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12316 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12317 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12318 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12319 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12320 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12322 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12324 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12325 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12326 (initialize_current_architecture): Update target_byte_order using
12327 information from BFD.
12328 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12329 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12331 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12333 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12334 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12336 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12337 #ifdef INVALID_FLOAT.
12338 * infcmd.c (do_registers_info): Ditto.
12339 * values.c (unpack_double): Ditto. Add comment.
12341 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12342 already commented out.
12344 2002-01-26 Andreas Schwab <schwab@suse.de>
12346 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12347 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12348 registers and add support for PTRACE_GETREGS.
12350 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12352 GDB 5.1.1 released from 5.1 branch.
12353 * NEWS: Add 5.1.1 news.
12354 * README: Sync with 5.1 branch.
12356 2002-01-23 Fred Fish <fnf@redhat.com>
12358 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12359 stabstring on initial malloc. Reallocing will copy it for us,
12362 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12364 * Makefile.in (hpread_h): Delete.
12365 (HFILES_NO_SRCDIR): Remove hpread.h.
12366 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12367 (hpread.o): Update dependencies.
12368 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12370 * hp-psymtab-read.c: Remove file.
12371 * hp-symtab-read.c: Remove file.
12372 * hpread.h: Remove file.
12374 * hpread.c: Merge all contents of hp-psymtab-read.c,
12375 hp-symtab-read.c and hpread.h into this file, as it was prior to
12378 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12379 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12380 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12381 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12383 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12385 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12386 fill_gregset): Call gdbarch_tdep() just once, assign result to
12387 variable and use that, instead of calling the function several
12390 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12392 * configure.host: Accept sparcv9 as alias for sparc64.
12393 * configure.tgt: Likewise.
12395 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12397 * solib-aix5.c (build_so_list_from_mapfile)
12398 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12399 arguments is not reversed.
12400 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12401 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12403 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12405 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12406 modified version of obsolete sh_fetch_pseudo_register.
12407 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12408 (sh4_register_read): New function.
12409 (sh_pseudo_register_write): New function. Renamed and modified
12410 version of obsolete sh_store_pseudo_register.
12411 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12412 (sh4_register_write): New function.
12413 (sh_gdbarch_init): Remove setting of gdbarch function
12414 fetch_pseudo_register and store_pseudo_register. Remove setting of
12415 register_convert_to_raw, register_convert_to_virtual,
12416 register_convertible.
12417 (sh_sh4_register_convertible): Delete. No longer needed. All is
12418 taken care by architecture specific functions
12419 register_read/register_write.
12420 (sh_sh4_register_convert_to_virtual): Make static.
12421 (sh_sh4_register_convert_to_raw): Ditto.
12423 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12425 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12426 (floatformat_is_nan, floatformat_mantissa): Ditto.
12428 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12429 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12430 builtin_type_ieee_double_little,
12431 builtin_type_ieee_double_littlebyte_bigword,
12432 builtin_type_m68881_ext, builtin_type_i960_ext,
12433 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12434 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12435 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12436 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12438 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12440 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12441 parameter. Set frameless flag if it exists and depended of
12442 whether the scanned function is frameless or not.
12443 (xstormy16_skip_prologue): If function is frameless, return
12444 result of xstormy16_scan_prologue().
12445 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12448 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12450 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12451 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12452 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12453 sh_sh4_register_byte, sh_sh4_register_raw_size,
12454 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12455 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12456 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12457 sh_store_pseudo_register, sh_do_pseudo_register): Call
12458 gdbarch_tdep() just once, assign result to variable and use that,
12459 instead of calling the function several times.
12461 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12463 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12464 macros instead of LAST_FPU_CTRL_REGNUM.
12465 (store_register): Likewise.
12467 2002-01-21 Jim Blandy <jimb@redhat.com>
12469 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12470 is up-to-date before running the program, not just when a program
12473 2002-01-21 Fred Fish <fnf@redhat.com>
12475 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12476 when we have found all instructions we are looking for.
12478 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12480 * arm-tdep.c (arm_register_name): New function.
12481 (arm_registers_names): Make static.
12482 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12483 (arm_register_name): Declare.
12484 (REGISTER_NAME): Use it.
12486 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12487 Kevin Buettner <kevinb@redhat.com>
12489 Convert arm targets to new FRAME interface.
12490 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12491 (arm_frame_find_save_regs): Delete.
12492 (arm_frame_init_saved_regs): New.
12493 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12494 Allocate extra_info as required. Convert all uses of fsr.regs
12495 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12497 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12498 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12499 (check_prologue_cache, save_prologue_cache): Likewise.
12500 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12501 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12502 (FRAME_FIND_SAVED_REGS): Delete.
12503 (arm_frame_find_saved_regs): Delete prototype.
12504 (arm_frame_init_saved_regs): New prototype.
12505 (FRAME_INIT_SAVED_REGS): Define.
12507 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12509 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12511 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12513 From Jeff Law <law@redhat.com>:
12514 * infttrace.c: Include <sys/pstat.h>.
12515 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12516 exec file if the ttrace equivalent fails.
12518 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12520 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12521 (closeLogFile): Ditto.
12523 2002-01-20 Michael Chastain <mec@shout.net>
12525 * top.c (print_gdb_version): Bump copyright year to 2002.
12527 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12529 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12530 Zannoni and Eli Zaretskii.
12532 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12534 * buildsym.c: Update copyright years.
12535 * c-typeprint.c: Likewise.
12536 * dwarf2read.c: Likewise.
12537 * f-typeprint.c: Likewise.
12538 * gdbtypes.c: Likewise.
12539 * gdbtypes.h: Likewise.
12540 * hp-symtab-read.c: Likewise.
12541 * hpread.c: Likewise.
12542 * mdebugread.c: Likewise.
12543 * p-typeprint.c: Likewise.
12545 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12547 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12548 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12549 byte-order selectable.
12550 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12551 * arch-utils.c: Ditto.
12552 (set_endian): Ditto.
12553 (set_endian_from_file): Ditto.
12554 * gdbserver/low-sim.c (create_inferior): Ditto.
12555 * gdbarch.sh: Ditto.
12556 * gdbarch.h: Re-generate.
12557 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12558 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12559 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12560 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12561 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12562 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12563 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12564 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12566 * config/mips/tm-wince.h: Remove #undef of macro
12567 TARGET_BYTE_ORDER_SELECTABLE.
12568 * config/sh/tm-wince.h: Ditto.
12570 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12572 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12573 member function fields. Add accessor macro
12574 TYPE_FN_FIELD_ARTIFICIAL.
12575 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12576 * c-typeprint.c (c_type_print_base): Skip artificial member
12579 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12581 * f-typeprint.c: Delete unused function f_type_print_args.
12582 * p-typeprint.c: Delete unused function pascal_type_print_args.
12584 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12586 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12587 comment. Add ``artificial'' to ``union field_location''.
12589 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12591 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12592 * mdebugread.c (parse_symbol): Likewise.
12593 * stabsread.c (define_symbol): Likewise.
12594 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12595 initializing TYPE_FIELD_BITPOS to n (obsolete).
12596 (hpread_doc_function_type): Likewise.
12597 * hpread.c (hpread_function_type): Likewise.
12599 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12601 * configure.in (host_makefile_frag): Only require a host makefile
12602 fragment when a native build.
12603 * configure: Re-generate.
12605 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12607 * doublest.h (floatformat_from_type): Declare.
12608 * doublest.c (floatformat_from_type): New function.
12609 (convert_typed_floating): Use.
12611 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12612 call to function floatformat_from_type.
12614 * gdbarch.sh (IEEE_FLOAT): Delete.
12615 * gdbarch.h, gdbarch.c: Re-generate.
12616 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12617 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12618 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12619 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12620 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12621 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12622 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12623 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12624 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12625 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12626 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12627 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12629 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12630 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12631 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12632 * sh-tdep.c (sh_gdbarch_init): Ditto.
12633 * mips-tdep.c (mips_gdbarch_init): Ditto.
12634 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12635 * cris-tdep.c (cris_gdbarch_init): Ditto.
12637 2002-01-20 Jiri Smid <smid@suse.cz>
12639 * configure.host, configure.tgt: Support x86-64.
12640 * NEWS: Note new target x86-64.
12642 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12643 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12644 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12645 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12646 x86-64-linux-nat.o): Fix dependencies.
12648 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12650 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12651 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12652 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12653 * config/sparc/xm-sun4os4.h: Delete file.
12654 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12656 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12658 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12659 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12660 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12661 * config/i386/i386lynx.mh (XM_FILE): Delete.
12662 * config/rs6000/xm-rs6000ly.h: Delete file.
12663 * config/sparc/xm-sparclynx.h: Delete file.
12664 * config/m68k/xm-m68klynx.h: Delete file.
12665 * config/i386/xm-i386lynx.h: Delete file.
12666 * config/xm-lynx.h: Delete file.
12667 * config/djgpp/fnchange.lst: Update.
12669 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12671 * alpha-tdep.c (alpha_register_byte): New function.
12672 (alpha_register_raw_size): Ditto.
12673 (alpha_register_virtual_size): Ditto.
12674 (alpha_skip_prologue_internal): Renamed from
12675 alpha_skip_prologue.
12676 (alpha_skip_prologue): New version that calls
12677 alpha_skip_prologue_internal.
12678 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12679 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12680 second argument from alpha_skip_prologue.
12681 (REGISTER_BYTE): Use alpha_register_byte.
12682 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12683 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12684 (FRAMELESS_FUNCTION_INVOCATION): Use
12685 generic_frameless_function_invocation_not.
12686 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12687 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12689 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12691 * config/mips/xm-news-mips.h: Delete file.
12692 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12694 * config/m88k/xm-m88k.h: Delete file.
12695 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12696 * config/m88k/xm-delta88v4.h: Ditto.
12697 * config/m88k/xm-delta88.h: Ditto.
12699 * config/alpha/xm-fbsd.h: Delete file.
12700 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12702 * config/sparc/xm-sparc.h: Delete file.
12703 * Makefile.in (xm-sun4os4.h): Delete dependency.
12704 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12705 * config/sparc/xm-sun4os4.h: Ditto.
12706 * config/sparc/xm-linux.h: Ditto.
12708 * config/i386/xm-windows.h: Delete file.
12710 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12712 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12713 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12715 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12717 * alpha-tdep.c (alpha_call_dummy_words): New.
12718 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12719 (CALL_DUMMY_P): Define.
12720 (CALL_DUMMY_WORDS): Define.
12721 (SIZEOF_CALL_DUMMY_WORDS): Define.
12723 2002-01-19 Per Bothner <per@bothner.com>
12725 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12726 isn't NULL, which can happen with some gcj-3.x-produced code.
12728 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12730 * alpha-tdep.c (alpha_register_virtual_type): New function.
12731 (alpha_init_frame_pc_first): Ditto.
12732 (alpha_fix_call_dummy): Ditto.
12733 (alpha_store_struct_return): Ditto.
12734 (alpha_extract_struct_value_address): Ditto.
12735 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12736 alpha_register_virtual_type.
12737 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12738 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12739 alpha_extract_struct_value_address.
12740 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12741 (INIT_FRAME_PC): Use init_frame_pc_noop.
12742 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12744 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12746 * i386gnu-nat.c: Include "i386-tdep.h".
12747 (fetch_fpregs): Simplify code dealing with uninitialized floating
12748 point states such that it doesn't require FP7_REGNUM.
12750 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12752 * alpha-tdep.c (frame_extra_info): New.
12753 (alpha_find_saved_regs): Make static. Use
12755 (alpha_frame_init_saved_regs): New function.
12756 (alpha_frame_saved_pc): Use frame->extra_info.
12757 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12758 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12759 (init_extra_frame_info): Rename to...
12760 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12761 (alpha_print_extra_frame_info): New function.
12762 (alpha_frame_locals_address): Ditto.
12763 (alpha_frame_args_address): Ditto.
12764 (alpha_pop_frame): Use frame->extra_info.
12765 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12766 alpha_frame_args_address.
12767 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12768 (alpha_find_saved_regs): Remove prototype.
12769 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12770 (EXTRA_FRAME_INFO): Remove.
12771 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12772 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12774 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12776 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12777 (alpha_cannot_fetch_register): Ditto.
12778 (alpha_cannot_store_register): Ditto.
12779 (alpha_register_convertible): Ditto.
12780 (alpha_use_struct_convention): Ditto.
12781 * config/alpha/tm-alpha.h: Update copyright years.
12782 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12783 (INNER_THAN): Use core_addr_lessthan.
12784 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12785 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12786 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12787 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12788 (FRAME_CHAIN): Remove unnecessary cast.
12790 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12792 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12795 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12797 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12798 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12799 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12800 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12801 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12802 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12803 * x86-64-linux-nat.c: Ditto.
12805 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12807 * alpha-tdep.c (alpha_register_name): New function.
12808 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12809 (REGISTER_NAME): Define.
12811 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12813 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12815 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12817 * alpha-tdep.c: Update copyright years.
12818 (alpha_next_pc): New function.
12819 (alpha_software_single_step): Ditto.
12820 * config/alpha/tm-alpha.h: Add prototype for
12821 alpha_software_single_step.
12823 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12825 * alphabsd-nat.c: Update copyright years.
12826 (fill_gregset): Use regcache_collect.
12827 (fill_fpregset): Likewise.
12828 (fetch_inferior_registers): Only fetch integer registers
12829 if requested to do so.
12830 (store_inferior_registers): Only store integer registers
12831 if requested to do so.
12833 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12835 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12836 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12837 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12838 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12839 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12840 * config/arm/linux.mh (XDEPFILES): Delete.
12841 * config/arm/nbsd.mh (XDEPFILES): Delete.
12842 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12843 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12844 * config/i386/i386m3.mh (XDEPFILES): Delete.
12845 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12846 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12847 * config/i386/fbsd.mh (XDEPFILES): Delete.
12848 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12849 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12850 * config/i386/i386v4.mh (XDEPFILES): Delete.
12851 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12852 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12853 * config/i386/i386aix.mh (XDEPFILES): Delete.
12854 * config/i386/go32.mh (XDEPFILES): Delete.
12855 * config/i386/cygwin.mh (XDEPFILES): Delete.
12856 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12857 * config/i386/i386mach.mh (XDEPFILES): Delete.
12858 * config/i386/i386v32.mh (XDEPFILES): Delete.
12859 * config/i386/linux.mh (XDEPFILES): Delete.
12860 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12861 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12862 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12863 * config/i386/i386sco.mh (XDEPFILES): Delete.
12864 * config/i386/i386v.mh (XDEPFILES): Delete.
12865 * config/i386/nbsd.mh (XDEPFILES): Delete.
12866 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12867 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12868 * config/i386/symmetry.mh (XDEPFILES): Delete.
12869 * config/i386/obsd.mh (XDEPFILES): Delete.
12870 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12871 * config/ia64/linux.mh (XDEPFILES): Delete.
12872 * config/ia64/aix.mh (XDEPFILES): Delete.
12873 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12874 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12875 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12876 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12877 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12878 * config/m68k/linux.mh (XDEPFILES): Delete.
12879 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12880 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12881 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12882 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12883 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12884 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12885 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12886 * config/m88k/delta88.mh (XDEPFILES): Delete.
12887 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12888 * config/m88k/m88k.mh (XDEPFILES): Delete.
12889 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12890 * config/mips/linux.mh (XDEPFILES): Delete.
12891 * config/mips/irix6.mh (XDEPFILES): Delete.
12892 * config/mips/irix5.mh (XDEPFILES): Delete.
12893 * config/mips/irix4.mh (XDEPFILES): Delete.
12894 * config/mips/irix3.mh (XDEPFILES): Delete.
12895 * config/mips/decstation.mh (XDEPFILES): Delete.
12896 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12897 (NATDEPFILES): Move core-aout.o to here.
12898 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12899 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12900 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12901 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12902 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12903 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12904 * config/pa/hpux11.mh (XDEPFILES): Delete.
12905 * config/powerpc/aix.mh (XDEPFILES): Delete.
12906 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12907 * config/powerpc/linux.mh (XDEPFILES): Delete.
12908 * config/romp/rtbsd.mh: Rename XDEPFILES.
12909 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12910 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12911 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12912 * config/s390/s390.mh (XDEPFILES): Delete.
12913 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12914 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12915 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12916 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12917 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12918 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12919 * config/sparc/linux.mh (XDEPFILES): Delete.
12920 * config/vax/vaxult.mh (XDEPFILES): Delete.
12921 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12922 * Makefile.in (DEPFILES): Remove XDEPFILES.
12924 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12926 * utils.c (internal_verror): Fix comments, default is yes not no.
12927 Update queries to match. Default to quit and dump core.
12929 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12931 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12933 * defs.h, event-top.c, gdbcmd.h: Ditto.
12934 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12935 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12936 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12937 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12938 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12939 * mi/mi-main.c:Ditto.
12941 * stack.c, symfile.c: Update copyright.
12943 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12945 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12946 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12947 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12948 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12950 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12952 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12953 * gdbserver/low-lynx.c (myattach): Likewise.
12954 * gdbserver/low-nbsd.c (myattach): Likewise.
12955 * gdbserver/low-sim.c (myattach): Likewise.
12956 * gdbserver/low-sparc.c (myattach): Likewise.
12957 * gdbserver/low-sun3.c (myattach): Likewise.
12959 * gdbserver/low-linux.c (myattach): New function.
12961 * gdbserver/server.c (attach_inferior): New function.
12962 (main): Handle "--attach".
12964 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12966 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12969 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12971 * c-typeprint.c (is_type_conversion_operator): Add additional
12972 check for non-conversion operators.
12974 2002-01-15 Michael Snyder <msnyder@redhat.com>
12976 * linux-proc.c: Add "info proc" command, a la procfs.c.
12977 (read_mapping): New function, abstract and re-use code.
12978 (linux_find_memory_regions): Use new func read_mapping.
12979 (linux_info_proc_cmd): New function, implement "info proc".
12980 (_initialize_linux_proc): Add new command "info proc".
12982 2002-01-15 Michael Snyder <msnyder@redhat.com>
12984 * symfile.c (generic_load): Use bfd_map_over_sections method
12985 instead of manipulating bfd structure members directly.
12986 (add_section_size_callback): New function, bfd sections callback
12987 used by generic_load.
12988 (load_sections_callback): New function, bfd sections callback
12989 used by generic_load.
12991 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12993 [Based on work by Jim Blandy]
12994 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12995 (builtin_type_vec128): Export.
12996 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12998 (builtin_type_vec128): New builtin type for 128 bit vector
13000 (build_gdbtypes): Initialize builtin_type_v16qi and
13001 builtin_type_v8hi. Create the vec128 register builtin type
13003 (build_builtin_type_vec128): New function.
13004 (_initialize_gdbtypes): Register builtin_type_v16qi and
13005 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13006 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13007 AltiVec register to new builtin type.
13009 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13011 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13014 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13016 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13017 CLEAN_UP_REGISTER_VALUE.
13018 * regcache.c (supply_register): Update only call.
13020 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13022 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13023 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13024 a29k-*-vxworks* targets as obsolete.
13026 2002-01-14 Michael Snyder <msnyder@redhat.com>
13028 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13029 until we can resolve portability issues.
13030 * gregset.h: Remove references to fpxregs.
13031 * gcore.c (gcore_command): Initialize note_sec to NULL.
13033 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13035 * signals.c (target_signal_to_name): Rewrite. Only use
13036 signals[].name when in bounds and non-NULL.
13038 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13040 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13041 * signals.c (target_signal_to_name): Verify that SIG is within the
13042 bounds of the signals array.
13044 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13046 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13048 2002-01-13 Keith Seitz <keiths@redhat.com>
13050 * stack.c (print_frame_info_base): Print the frame's pc
13051 only if when print_frame_info_listing_hook is not defined.
13053 2002-01-13 Keith Seitz <keiths@redhat.com>
13055 * varobj.c (varobj_set_value): Make sure that there were no
13056 errors evaluating the object before attempting to set its
13058 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13059 so this offset adjustment is no longer necessary.
13060 (create_child): Don't set the error flag if the child is
13061 a CPLUS_FAKE_CHILD.
13062 (value_of_child): If value_fetch_lazy fails, return NULL
13063 so that callers will be notified that an error occurred.
13064 (c_value_of_variable): Delay check of variable's validity
13065 until later. We actually want all structs and unions to have
13067 Do not return "???" for variables which could not be evaluated.
13068 This error condition must be returned to the caller so that it
13069 can get the error condition from gdb.
13070 (cplus_name_of_child): Adjust index for vptr before figuring
13071 out the name of the child.
13072 (cplus_value_of_child): If a child's (real) parent is not valid,
13073 don't even bother trying to give a value for it. Just return
13074 an error. Change all instances in this function.
13075 (cplus_type_of_child): If our parent is one of the "fake"
13076 parents, we need to get at the type of the real parent, and
13077 derive the child's true type using this information.
13079 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13081 From 2002-01-09 John Marshall <johnm@falch.net>:
13082 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13083 sources.redhat.com, and tweak some related URLs which had
13084 suffered from linkrot.
13086 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13089 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13090 structures passed in registers.
13092 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13094 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13095 white space which prevented compilation. Reported by DSK
13096 <dsk@student.unsw.edu.au>.
13098 2002-01-11 Michael Snyder <msnyder@redhat.com>
13100 * symfile.c (build_section_addr_info_from_section_tab):
13101 Use bfd access method instead of manipulating bfd directly.
13102 (syms_from_objfile): Ditto.
13103 (simple_overlay_update_1): Ditto.
13104 (simple_overlay_update): Ditto.
13105 (generic_load): Ditto.
13106 (overlay_unmapped_address): FIXME comment, bfd access methods.
13107 (sections_overlap): FIXME comment, bfd access methods.
13108 (pc_in_mapped_range): FIXME comment, bfd access methods.
13109 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13110 (section_is_mapped): FIXME comment, bfd access methods.
13111 (section_is_overlay): FIXME comment, bfd access methods.
13113 * symfile.c (generic_load): Whitespace and long line cleanups.
13114 Remove duplicate variable, change several local variables to
13115 more appropriate data types.
13116 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13118 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13120 From Peter Schauer:
13121 * language.c (longest_local_hex_string_custom): Use phex_nz to
13122 convert NUM to a hex string.
13124 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13126 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13128 Update Copyright year.
13130 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13132 * language.c (longest_raw_hex_string): Delete unused function.
13134 2002-01-11 Petr Sorfa <petrs@caldera.com>
13136 * MAINTAINERS (write-after-approval): Add myself.
13137 * dwarf2read.c (read_tag_string_type): Handling of
13139 (read_tag_string_type): FORTRAN fix to prevent propagation of
13141 (set_cu_language): Handling of DW_LANG_Fortran95
13143 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13145 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13146 GETPID(inferior_ptid).
13147 (store_inferior_registers): Likewise.
13149 2002-01-10 Jason Merrill <jason@redhat.com>
13151 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13154 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13156 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13157 and bfd/elf32-sh-nbsd.c.
13159 2002-01-10 Michael Snyder <msnyder@redhat.com>
13161 * NEWS: Mention --pid and corefile/proc-id behavior change.
13163 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13164 * gcore.c: Include cli/cli-decode.h instead of command.h.
13166 * main.c (captured_main): Add new command line option "--pid".
13167 If the second command line argument (following the symbol-file)
13168 begins with a digit, try to attach to it before trying to open
13170 (print_gdb_help): Document the "--pid" argument.
13172 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13174 * completer.c (command_completer): New function.
13176 * completer.h <command_completer>: Add prototype.
13178 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13179 completer for the "help" command.
13181 2002-01-09 Jason Merrill <jason@redhat.com>
13183 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13185 2002-01-09 Michael Snyder <msnyder@redhat.com>
13187 * i386-linux-nat.c (fill_fpxregset): Make global.
13188 (store_fpxregset): Ditto.
13190 * gregset.h (gdb_fpxregset_t): Define.
13191 (supply_fpxregset): Prototype.
13192 (fill_fpxregset): Prototype.
13194 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13196 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13198 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13199 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13200 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13202 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13204 * MAINTAINERS: Update target maintainer rules so that any
13205 Maintainer can approve a tested patch for a maintenance-only
13208 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13210 * MAINTAINERS (write-after-approval): Add myself.
13212 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13215 2002-01-08 Michael Snyder <msnyder@redhat.com>
13217 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13218 real name of the executable, rather than the /proc name.
13220 2002-01-03 Michael Snyder <msnyder@redhat.com>
13222 Implement a "generate-core-file" command in gdb, save target state.
13223 * gcore.c: New file. Implement new command 'generate-core-file'.
13224 Save a corefile image of the current state of the inferior.
13225 * linux-proc.c: Add linux-specific code for saving corefiles.
13226 * target.h (struct target_ops): Add new target vectors for saving
13227 corefiles; to_find_memory_regions and to_make_corefile_notes.
13228 (target_find_memory_regions): New macro.
13229 (target_make_corefile_notes): New macro.
13230 * target.c (update_current_target): Inherit new target methods.
13231 (dummy_find_memory_regions): New place-holder method.
13232 (dummy_make_corefile_notes): New place-holder method.
13233 (init_dummy_target): Initialize new dummy target vectors.
13234 * exec.c (exec_set_find_memory_regions): New function.
13235 Allow the exec_ops vector for memory regions to be taken over.
13236 (exec_make_note_section): New function, target vector method.
13237 * defs.h (exec_set_find_memory_regions): Export prototype.
13238 * procfs.c (proc_find_memory_regions): New function, corefile method.
13239 (procfs_make_note_section): New function, corefile method.
13240 (init_procfs_ops): Set new target vector pointers.
13241 (find_memory_regions_callback): New function.
13242 (procfs_do_thread_registers): New function.
13243 (procfs_corefile_thread_callback): New function.
13244 * sol-thread.c (sol_find_memory_regions): New function.
13245 (sol_make_note_section): New function.
13246 (init_sol_thread_ops): Initialize new target vectors.
13247 * inftarg.c (inftarg_set_find_memory_regions): New function.
13248 Allow to_find_memory_regions vector to be taken over.
13249 (inftarg_set_make_corefile_notes): New function.
13250 Allow to_make_corefile_notes vector to be taken over.
13251 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13252 interface layer if not target_has_execution (may be a corefile).
13253 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13254 * config/sparc/sun4sol2.mh: Ditto.
13255 * config/alpha/alpha-linux.mh: Ditto.
13256 * config/arm/linux.mh: Ditto.
13257 * config/i386/x86-64linux.mh: Ditto.
13258 * config/ia64/linux.mh: Ditto.
13259 * config/m68k/linux.mh: Ditto.
13260 * config/mips/linux.mh: Ditto.
13261 * config/powerpc/linux.mh: Ditto.
13262 * config/sparc/linux.mh: Ditto.
13264 2002-01-07 Michael Snyder <msnyder@redhat.com>
13266 * arm-linux-nat.c: Remove references to regcache.c internal data
13267 (registers[] and register_valid[]).
13269 2002-01-07 Michael Snyder <msnyder@redhat.com>
13271 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13272 so that attaching to a pid will automatically read the process's
13273 symbol file and shlibs.
13274 * Makefile.in: Add rule for linux-proc.o.
13275 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13276 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13277 * config/arm/linux.mh: Ditto.
13278 * config/i386/linux.mh: Ditto.
13279 * config/i386/x86-64linux.mh: Ditto.
13280 * config/ia64/linux.mh: Ditto.
13281 * config/m68k/linux.mh: Ditto.
13282 * config/mips/linux.mh: Ditto.
13283 * config/powerpc/linux.mh: Ditto.
13284 * config/sparc/linux.mh: Ditto.
13286 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13288 * win32-nat.c: Add i386-tdep.h dependency.
13290 2002-01-07 Michael Snyder <msnyder@redhat.com>
13292 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13293 instead of bfd_get_arch_size. Don't bail out just because
13294 there's no exec_bfd.
13296 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13297 * p-valprint.c (pascal_object_print_value): Ditto.
13298 * somread.c (som_symtab_read): Ditto.
13299 * symfile.c (simple_free_overlay_region_table): Ditto.
13300 * valops.c (value_assign): Ditto.
13302 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13303 use tilde_expand and strerror for opening save-tracepoints file.
13305 * thread-db.c (thread_db_new_objfile): Indendation fix.
13307 * infptrace.c (GDB_MAX_ALLOCA): New define.
13308 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13309 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13310 can be overridden with whatever value is appropriate to the host).
13311 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13312 alloca to allocate potentially large buffer.
13313 * rs6000-nat.c (child_xfer_memory): Ditto.
13314 * symm-nat.c (child_xfer_memory): Ditto.
13315 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13317 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13319 From Nick Clifton <nickc@redhat.com>
13320 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13322 2002-01-07 Michael Snyder <msnyder@redhat.com>
13324 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13325 Don't use exec_bfd if it's NULL.
13327 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13329 * valops.c (value_arg_coerce): Fix formatting.
13331 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13333 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13334 * gnu-nat.c: Ditto.
13336 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13338 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13339 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13340 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13341 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13342 z8k-coff have not been multi-arched. Update z8k-coff build
13345 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13347 * MAINTAINERS: Mark a29k target as obsolete.
13348 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13349 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13351 * NEWS: Note that a29k targets are obsolete.
13352 * a29k-tdep.c: Mark as obsolete.
13353 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13354 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13355 a29k-*-vxworks* targets as obsolete.
13356 * remote-adapt.c: Obsolete.
13357 * remote-eb.c: Obsolete.
13358 * remote-mm.c: Obsolete.
13359 * remote-udi.c: Obsolete.
13360 * config/a29k/a29k-udi.mt: Obsolete.
13361 * config/a29k/a29k.mt: Obsolete.
13362 * config/a29k/tm-a29k.h: Obsolete.
13363 * config/a29k/tm-vx29k.h: Obsolete.
13364 * config/a29k/vx29k.mt: Obsolete.
13366 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13368 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13369 with BFD_ENDIAN_BIG.
13371 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13373 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13374 * configure, config.in: Re-generate.
13375 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13376 * defs.h: Do not include <endian.h>.
13378 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13380 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13381 * config.in: Regenerate.
13382 * configure.in: Update copyright years.
13383 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13384 * configure: Regenerate.
13385 * i386bsd-nat.c: Update copyright years.
13386 (fill_gregset): Use regcache_collect.
13387 (fetch_inferior_registers): Only fetch integer registers
13388 if requested to do so. Add support for XMM registers
13389 using PT_GETXMMREGS.
13390 (store_inferior_registers): Only store integer registers
13391 if requested to do so. Add support for XMM registers
13392 using PT_SETXMMREGS.
13393 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13394 (store_inferior_registers): Remove.
13395 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13396 (fetch_elfcore_registers): New function.
13397 (i386nbsd_elfcore_fns): New.
13398 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13399 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13401 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13402 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13403 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13404 * config/i386/tm-nbsd.h: Update copyright years.
13405 (HAVE_SSE_REGS): Define.
13406 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13407 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13408 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13409 (SIGCONTEXT_PC_OFFSET): Remove.
13410 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13412 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13414 * configure.tgt: Remove powerpc-*-macos* target.
13415 * config/m68k/xm-mpw.h: Delete file.
13416 * config/xm-mpw.h: Delete file.
13417 * ser-mac.c: Delete file.
13418 * mpw-make.sed: Delete file.
13419 * mpw-config.in: Delete file.
13420 * mac-xdep.c: Delete file.
13421 * mac-gdb.r: Delete file.
13422 * mac-defs.h: Delete file.
13423 * mac-nat.c: Delete file.
13424 * config/powerpc/macos.mh: Delete file.
13425 * config/powerpc/macos.mt: Delete file.
13426 * config/powerpc/nm-macos.h: Delete file.
13427 * config/powerpc/tm-macos.h: Delete file.
13428 * source.c (openp, open_source_file): Remove obsolete code.
13429 * top.c (gdb_readline): Ditto.
13430 * utils.c (query): Ditto.
13431 * event-top.c (display_gdb_prompt): Ditto.
13432 * Makefile.in (ser-mac.o): Delete obsolete target.
13435 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13437 * defs.h (BIG_ENDIAN): Delete macro definition.
13438 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13439 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13440 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13441 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13442 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13443 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13444 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13445 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13446 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13447 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13448 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13449 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13450 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13451 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13452 * gdbarch.c: Re-generate.
13454 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13456 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13459 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13461 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13463 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13465 * value.h (value_ptr): Delete typedef.
13467 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13469 * i386nbsd-nat.c: Update copyright years.
13470 Include i386-tdep.h.
13472 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13474 * stabsread.c: Update copyright years.
13476 From Debashis Mahata <debashis.mahata@wipro.com>:
13477 (read_struct_fields): Deal with Sun C compiler erroneous stab
13478 output for structs and unions.
13481 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13483 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13486 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13488 * cp-abi.c: Fix whitespace.
13489 (baseclass_offset): New wrapper function.
13490 * cp-abi.h (baseclass_offset): Add prototype.
13491 (struct cp_abi_ops): Add baseclass_offset pointer.
13493 * valops.c (vb_match): Move to...
13494 * gnu-v2-abi.c (vb_match): here.
13495 * valops.c (baseclass_offset): Move to...
13496 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13498 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13500 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13501 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13502 * hpacc-abi.c (init_hpacc_ops): Likewise.
13504 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13506 * valops.c (find_overload_match): Accept obj as a
13507 reference parameter. Update it before returning.
13508 * value.h (find_overload_match): Update prototype.
13509 * eval.c (evaluate_subexp_standard): Pass object to
13510 find_overload_match by reference.
13512 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13514 * valarith.c: Replace value_ptr with struct value pointer. Remove
13515 register attribute from value declarations.
13518 * scm-lang.c (scm_lookup_name): Ditto.
13520 2002-01-03 Michael Snyder <msnyder@redhat.com>
13522 Abstract the functionality of iterating over mapped memory
13523 regions into a general purpose iterator function.
13524 * procfs.c (iterate_over_mappings): New function, general purpose
13525 iterator for memory sections.
13526 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13527 (solib_mappings_callback): New function, callback for above.
13528 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13529 (info_mappings_callback): New function, callback for above.
13531 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13533 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13535 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13536 * i386-tdep.c: Include "elf-bfd.h".
13537 (process_note_abi_tag_sections): New function.
13538 (i386_gdbarch_init): Add code to recognize various OS/ABI
13541 * maint.c (_initialize_maint_cmds): Add missing \ in
13544 For older changes see ChangeLog-2001
13550 version-control: never