1 2002-11-22 Christopher Faylor <cgf@redhat.com>
3 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
4 (struct so_stuff): Add end_addr field.
5 (register_loaded_dll): Calculate and store end address of loaded dll.
6 (solib_address): New function.
7 (child_solib_loaded_library_pathname): Pass carefully constructed
8 section info to safe_symbol_file_add rather than ignoring it.
9 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
11 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
12 (child_create_inferior): Fix a compiler warning.
13 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
14 (solib_address): Declare new function.
16 2002-11-22 Andreas Schwab <schwab@suse.de>
18 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
21 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
23 * maint.c (_initialize_maint_cmds): Fix typo. From
24 Francesco Potorti` <pot@gnu.org>.
26 2002-11-21 Andrew Cagney <cagney@redhat.com>
28 * mips-tdep.c (mips_dump_tdep): Delete references to
29 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
30 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
31 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
32 * printcmd.c (build_address_symbolic): Delete calls to
33 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
34 (address_info): Ditto.
37 2002-11-19 Klee Dienes <kdienes@apple.com>
38 Adam Fedor <fedor@gnu.org>
40 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
41 the ability to explicitly specify the quote characters and word
42 break characters; if NULL is specified for either, use the old
43 behavior of using the characters used by the completer.
44 (skip_chars): New function. Convenience wrapper around
45 skip_quoted_chars to provide the original skip_chars behavior.
46 * completer.h (skip_quoted_chars): Add prototype.
48 2002-11-19 Andrew Cagney <ac131313@redhat.com>
50 Problems reported by Paul Eggert.
51 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
53 2002-11-19 Andreas Schwab <schwab@suse.de>
55 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
56 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
57 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
58 (m68k_linux_frame_saved_pc): Move to ...
59 * m68klinux-tdep.c: ... here. New file.
60 * Makefile.in (m68klinux-tdep.o): Add dependencies.
61 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
63 2002-11-19 Adam Fedor <fedor@gnu.org>
65 * objc-exp.y: Revert to old skip_quoted usage.
67 2002-11-19 Adam Fedor <fedor@gnu.org>
69 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
70 (objc_lang_h): Define.
71 (YYFILES): Add objc-exp.tab.c.
72 (local-maintainer-clean): Remove objc-exp.tab.c.
73 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
75 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
77 * p-exp.y (typecast rule): Add automatic dereference of
78 pascal classes if needed.
79 (THIS): Set current_type.
80 Automatically dereference pascal classes.
81 (typebase rule): Add ^typebase recognition.
83 2002-11-18 Adam Fedor <fedor@gnu.org>
85 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
86 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
87 (op_name): Handle OP_OBJC_SELF.
88 * Makefile.in (expprint.o): Add additional depends.
90 2002-11-18 Adam Fedor <fedor@gnu.org>
92 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
93 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
94 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
95 * objc-exp.y: Likewise.
97 2002-11-18 Adam Fedor <fedor@gnu.org>
99 * gdb/parser-defs.h: (struct objc_class_str): New structure
100 for parsing ObjC classes.
102 2002-11-18 Andrew Cagney <ac131313@redhat.com>
104 * stack.c (frame_relative_level): Copy function from here ...
105 * frame.c (frame_relative_level): ...to here.
107 2002-11-18 Andrew Cagney <ac131313@redhat.com>
109 * frame.h (enum frame_type): Define.
110 (get_frame_type): Declare.
111 (struct frame_info): Add field `type'. Delete field
112 signal_handler_caller.
113 (deprecated_set_frame_signal_handler_caller): Declare.
114 * frame.c (get_frame_type): New function.
115 (deprecated_set_frame_type): New function.
116 (create_new_frame): Set the frame's type.
117 (get_prev_frame): Similar.
118 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
119 * s390-tdep.c: Ditto.
120 * m68klinux-nat.c: Ditto.
121 * ns32k-tdep.c: Ditto.
122 * x86-64-linux-tdep.c: Ditto.
124 * rs6000-tdep.c: Ditto.
125 * ppc-linux-tdep.c: Ditto.
126 * i386-interix-tdep.c: Ditto.
127 * mips-tdep.c: Ditto.
128 * m68k-tdep.c: Ditto.
129 * hppa-tdep.c: Ditto.
130 * ia64-tdep.c: Ditto.
131 * cris-tdep.c: Ditto.
133 * alpha-tdep.c: Ditto.
134 * i386-tdep.c: Ditto.
137 * blockframe.c: Update.
138 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
139 deprecated_set_frame_type instead of signal_handler_caller.
140 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
141 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
142 * breakpoint.h: Delete FIXME suggesting get_frame_type.
144 2002-11-18 Klee Dienes <kdienes@apple.com>
146 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
148 2002-11-18 Klee Dienes <kdienes@apple.com>
150 * buildsym.c (pop_context): Add comment.
152 2002-11-18 Klee Dienes <kdienes@apple.com>
154 * buildsym.h (pop_context): Convert to function, defined in
156 * buildsym.c: Include gdb_assert.h.
157 (pop_context): Implement as C function. Add check for stack
159 * dbxread.c (process_one_symbol): Complain and stop processing
160 that symbol if we are already at the top of the context stack for
161 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
162 when processing N_RBRAC.
164 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
166 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
168 (struct target_waitstatus): Add opaque definition.
169 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
170 * exec.c (init_exec_ops): Likewise.
171 * fork-child.c (clone_and_follow_inferior): Remove.
172 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
173 * inferior.h (clone_and_follow_inferior): Remove prototype.
174 * infrun.c (follow_fork_mode_both): Remove.
175 (follow_fork_mode_kind_names): Remove commented out "both".
176 (follow_inferior_fork): Remove follow_fork_mode_both support.
177 * inftarg.c (child_clone_and_follow_inferior): Remove.
178 (child_post_follow_inferior_by_clone): Remove.
179 (init_child_ops): Don't set to_clone_and_follow_inferior
180 or to_post_follow_inferior_by_clone.
181 * target.c (default_clone_and_follow_inferior): Remove.
182 (cleanup_target): Don't set to_clone_and_follow_inferior
183 or to_post_follow_inferior_by_clone.
184 (find_default_clone_and_follow_inferior): Remove.
185 (init_dummy_target): Don't set to_clone_and_follow_inferior.
186 (debug_to_clone_and_follow_inferior): Remove.
187 (debug_to_post_follow_inferior_by_clone): Remove.
188 (setup_target_debug): Don't set to_clone_and_follow_inferior
189 or to_post_follow_inferior_by_clone.
190 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
191 and to_post_follow_inferior_by_clone.
192 (child_clone_and_follow_inferior): Remove prototype.
193 (child_post_follow_inferior_by_clone): Remove prototype.
194 (target_clone_and_follow_inferior): Remove macro.
195 (target_post_follow_inferior_by_clone): Remove macro.
196 (find_default_clone_and_follow_inferior): Remove prototype.
198 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
200 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
201 inferior_has_vforked, and inferior_has_execd instead of
202 target_has_forked, target_has_vforked, and target_has_execd.
203 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
204 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
205 (CHILD_WAIT): Define.
206 (child_wait): Add prototype.
207 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
209 (hpux_has_vforked): Likewise, from child_has_vforked.
210 (hpux_has_execd): Likewise, from child_has_execd.
211 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
212 (not_same_real_pid, child_wait): New, copied from inftarg.c.
213 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
214 and hpux_has_syscall_event instead of the target hooks.
215 * infrun.c (inferior_has_forked, inferior_has_vforked)
216 (inferior_has_execd): New functions.
217 * inftarg.c (not_same_real_pid): Remove.
218 (child_wait): Remove references to not_same_real_pid,
219 target_has_forked, target_has_vforked, target_has_execd,
220 and target_has_syscall_event.
221 (child_has_forked, child_has_vforked, child_has_execd)
222 (child_has_syscall_event): Remove.
223 (init_child_ops): Remove references to child_has_forked,
224 child_has_vforked, child_has_execd, and child_has_syscall_event.
225 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
226 (hpux_has_vforked): Likewise, from child_has_vforked.
227 (hpux_has_execd): Likewise, from child_has_execd.
228 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
229 * target.c (cleanup_target): Remove references to
230 to_has_forked, to_has_vforked, to_has_execd, and
231 to_has_syscall_event.
232 (update_current_target): Likewise.
233 (setup_target_debug): Likewise.
234 (debug_to_has_forked): Remove.
235 (debug_to_has_vforked): Remove.
236 (debug_to_has_execd): Remove.
237 (debug_to_has_syscall_event): Remove.
238 * target.h (struct target_ops): Remove to_has_forked.
239 to_has_vforked, to_has_execd, and to_has_syscall_event.
240 (child_has_forked, child_has_vforked, child_has_execd)
241 (child_has_syscall_event): Remove prototypes.
242 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
244 (target_has_forked, target_has_vforked, target_has_execd)
245 (target_has_syscall_event): Remove macros.
247 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
249 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
250 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
251 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
252 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
253 * target.c (cleanup_target): Remove reference to
254 to_can_follow_vfork_prior_to_exec.
255 (update_current_target): Likewise.
256 (debug_to_can_follow_vfork_prior_to_exec): Remove.
257 (setup_target_debug): Remove reference to
258 to_can_follow_vfork_prior_to_exec.
259 * target.h (struct target_ops): Remove
260 to_can_follow_vfork_prior_to_exec.
261 (child_can_follow_vfork_prior_to_exec): Remove prototype.
262 (target_can_follow_vfork_prior_to_exec): Remove definition.
263 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
265 * infrun.c (follow_vfork_when_exec): Remove.
266 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
267 (follow_exec): Likewise.
268 (handle_inferior_event): Likewise.
269 (keep_going): Likewise.
271 2002-11-15 Andrew Cagney <cagney@redhat.com>
273 * frame.c (generic_unwind_get_saved_register): Make static.
274 * frame.h (generic_unwind_get_saved_register): Delete declaration.
275 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
276 defaults to generic_unwind_get_saved_register.
277 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
278 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
279 * frv-tdep.c (frv_gdbarch_init): Ditto.
280 * i386-tdep.c (i386_gdbarch_init): Ditto.
281 * s390-tdep.c (s390_gdbarch_init): Ditto.
282 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
283 * v850-tdep.c (v850_gdbarch_init): Ditto.
284 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
285 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
286 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
288 2002-11-15 Andrew Cagney <cagney@redhat.com>
290 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
293 2002-11-15 Andrew Cagney <cagney@redhat.com>
295 * frame.h (sigtramp_saved_pc): Delete declaration.
296 * blockframe.c (sigtramp_saved_pc): Delete function.
297 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
298 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
299 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
300 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
302 2002-11-15 Andrew Cagney <ac131313@redhat.com>
304 * frame.c (frame_pc_unwind): New function.
305 (frame_saved_regs_pc_unwind): New function.
306 (frame_register_unwind): Pass unwind_cache instead of
307 register_unwind_cache.
308 (set_unwind_by_pc): Add unwind_pc parameter, set.
309 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
310 (get_prev_frame): Ditto.
311 * frame.h (frame_pc_unwind_ftype): Declare.
312 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
313 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
314 (frame_pc_unwind): Declare.
315 * dummy-frame.c (dummy_frame_pc_unwind): New function.
316 (struct dummy_frame): Add comment mentioning that values are for
318 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
319 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
320 (generic_file_frame_chain_valid): Ditto.
321 * stack.c (frame_info): Ditto.
323 2002-11-15 David Carlton <carlton@math.stanford.edu>
325 * linespec.c (locate_first_half): New function.
326 (decode_line_1): Move code into locate_first_half.
328 2002-11-15 Andrew Cagney <ac131313@redhat.com>
330 * complaints.h: Add comment explaining how to eliminate a
331 deprecated_complain call.
332 * complaints.h: Fix spelling errors.
334 2002-11-15 David Carlton <carlton@math.stanford.edu>
336 * printcmd.c: Remove #include "disasm.h".
338 2002-11-14 Andrew Cagney <ac131313@redhat.com>
340 * frame.h: Move the most relevant interface functions to the start
343 2002-11-14 Andrew Cagney <ac131313@redhat.com>
345 * regcache.h (deprecated_registers): Rename registers.
346 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
347 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
348 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
349 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
350 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
351 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
352 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
353 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
354 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
355 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
356 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
359 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
361 * utils.c (gdb_realpath): Add comment mentioning realpath with a
364 2002-11-13 Andrew Cagney <cagney@redhat.com>
366 * regcache.h (deprecated_read_register_bytes): Rename
368 (deprecated_write_register_bytes): Rename write_register_bytes.
369 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
370 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
371 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
372 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
373 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
374 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
375 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
376 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
377 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
378 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
379 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
380 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
381 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
382 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
384 2002-11-13 Jim Blandy <jimb@redhat.com>
386 * findvar.c (read_var_value): Doc fix.
388 2002-11-13 Andrew Cagney <cagney@redhat.com>
390 * regcache.c (struct regcache): Replace passthough_p with
392 (regcache_xmalloc): Initialize readonly_p.
393 (build_regcache): Initialize readonly_p.
394 (regcache_save): New function.
395 (regcache_restore): New function.
396 (regcache_cpy): Re-implement using regcache_save and
398 (regcache_raw_read): Update.
399 (regcache_cooked_read): When a read-only cache, checked for cached
400 pseudo register values.
401 (regcache_raw_write): Assert that the cache is not read-only.
402 Remove code handling a non-passthrough cache.
403 * regcache.h (regcache_save): Declare.
404 (regcache_restore): Declare.
406 2002-11-13 Andrew Cagney <cagney@redhat.com>
408 * regcache.c (struct regcache_descr): Add fields
409 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
410 (init_legacy_regcache_descr): Compute the size of a cooked
411 register cache and then assign that to sizeof_raw_registers. Set
412 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
413 (init_legacy_regcache_descr): Ditto.
415 2002-11-13 Andrew Cagney <cagney@redhat.com>
417 * regcache.c (register_buffer): Move to near start of file, update
419 (regcache_raw_read): Use.
420 (regcache_raw_write): Use.
421 (struct regcache): Rename raw_registers to registers and
422 raw_register_valid_p to register_valid_p.
423 (regcache_xmalloc): Update.
424 (regcache_xfree): Update.
425 (register_buffer): Update.
426 (regcache_cpy): Update.
427 (regcache_cpy_no_passthrough): Update.
428 (regcache_valid_p): Update.
429 (deprecated_grub_regcache_for_registers): Update.
430 (deprecated_grub_regcache_for_register_valid): Update.
431 (set_register_cached): Update.
432 (regcache_raw_write): Update.
434 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
436 * p-exp.y (name_not_typename): Use copy_name to
437 set current_type variable for fields of THIS.
439 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
441 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
442 * monitor.c (init_base_monitor_ops): Likewise.
443 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
444 * remote-array.c (init_array_ops): Likewise.
445 * remote-e7000.c (init_e7000_ops): Likewise.
446 * remote-es.c (init_es1800_ops): Likewise.
447 (init_es1800_child_ops): Likewise.
448 * remote-rdp.c (init_remote_rdp_ops): Likewise.
449 * remote-sim.c (init_gdbsim_ops): Likewise.
450 * remote-st.c (init_st2000_ops): Likewise.
451 * sol-thread.c (init_sol_core_ops): Likewise.
452 (init_sol_thread_ops): Likewise.
453 * v850ice.c (init_850ice_ops): Likewise.
454 * win32-nat.c (init_child_ops): Likewise.
455 * wince.c (init_child_ops): Likewise.
457 2002-11-12 Andrew Cagney <ac131313@redhat.com>
459 * utils.c (gdb_realpath): Make rp a constant pointer.
461 2002-11-12 Andrew Cagney <ac131313@redhat.com>
463 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
464 a constant buffer; cannonicalize_file_name(); realpath() with a
465 pathconf() defined buffer, xstrdup().
467 2002-11-12 Andrew Cagney <ac131313@redhat.com>
469 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
470 to hang2.C; hang3.c to hang3.C.
472 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
474 * findvar.c (read_var_value): Reenable TLS code.
476 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
477 Jim Blandy <jimb@redhat.com>
479 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
480 * target.c (update_current_target): Add
481 to_get_thread_local_address.
482 * target.h (to_get_thread_local_address): Export.
483 (target_get_thread_local_address): Define.
484 (target_get_thread_local_address_p): Define.
485 * thread-db.c: Include solib-svr4.h.
486 (td_thr_tls_get_addr_p): Define.
487 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
488 (thread_db_get_thread_local_address): New function.
489 (init_thread_db_ops): Initialize to_get_thread_local_address.
490 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
491 * configure: Regenerate.
492 * config.in: Regenerate.
494 2002-11-11 David Carlton <carlton@math.stanford.edu>
496 * linespec.c (set_flags): New function.
497 (decode_line_1): Move code into set_flags.
499 2002-11-11 David Carlton <carlton@math.stanford.edu>
501 * linespec.c (decode_line_1): Move chunks of code to separate
503 (initialize_defaults): New function.
504 (decode_indirect): New function.
506 2002-11-11 Andrew Cagney <ac131313@redhat.com>
508 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
509 instead of void_code_ptr.
510 (sigtramp_saved_pc): Ditto.
512 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
515 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
517 * gdbtypes.h (struct main_type): Move artificial flag out of
518 loc. New member of ``struct field'' named static_kind. Reduce
519 overloaded meaning of bitsize.
520 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
521 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
522 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
524 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
526 (template_to_fixed_record_type, template_to_static_fixed_type)
527 (to_record_with_fixed_variant_part): Likewise.
528 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
529 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
530 * dwarfread.c (struct_type, enum_type): Likewise.
531 * hpread.c (hpread_read_enum_type)
532 (hpread_read_function_type, hpread_read_doc_function_type)
533 (hpread_read_struct_type): Likewise.
534 * mdebugread.c (parse_symbol): Likewise.
536 2002-11-10 Andrew Cagney <ac131313@redhat.com>
538 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
539 * stack.c (print_frame_info_base): Update.
540 (print_frame_info_base, frame_info): Update.
541 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
542 (sparc_frame_saved_pc): Update.
543 * ada-lang.c (find_printable_frame): Update.
544 * breakpoint.c (deprecated_frame_in_dummy): Update.
546 2002-11-09 Mark Kettenis <kettenis@gnu.org>
548 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
550 (regmap): Extend to cover all registers.
551 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
552 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
554 (fetch_register, sore_register): Simplify.
555 (old_fetch_inferior_registers, old_store_inferior_registers):
557 (cannot_fetch_register, cannot_store_register): Change
558 implementation to use regmap array to decide which registers
559 cannot be fetched/stored. This removes $orig_eax from the
560 registers that cannot be fetched/stored.
561 (fetch_inferior_registers): Call fetch_register directly instead
562 of calling old_fetch_inferior_registers.
563 (store_inferior_registers): Call store_register directly instead
564 of calling old_store_inferior_registers.
565 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
566 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
567 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
569 2002-11-09 Klee Dienes <kdienes@apple.com>
571 * i387-tdep.c (i387_supply_register): When called with NULL as a
572 buffer, mark the register as not provided (to mirror the behavior
574 (i387_supply_fxsave): Ditto.
575 (i387_supply_fsave): Ditto (inherits the behavior from
576 i387_supply_register).
578 2002-11-09 Klee Dienes <kdienes@apple.com>
580 * blockframe.c (sigtramp_saved_pc): Use
581 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
582 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
583 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
585 2002-11-09 Andrew Cagney <ac131313@redhat.com>
587 * frame.c (get_prev_frame): Test prev_p to identify a previously
588 unwound frame. Initialize prev_p.
589 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
592 2002-11-09 Andrew Cagney <ac131313@redhat.com>
594 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
595 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
596 more comments. Zap dead code.
598 2002-11-09 Mark Kettenis <kettenis@gnu.org>
600 * infcmd.c (print_vector_info, print_float_info): Move code that
601 checks whether the target has any registers and whether there is a
602 selected frame up, such that it is also used if a target provides
603 multi-arch definitions of these functions.
605 2002-11-08 Andrew Cagney <ac131313@redhat.com>
607 * Makefile.in (DESTDIR): Define.
608 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
611 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
612 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
614 2002-11-08 Andrew Cagney <ac131313@redhat.com>
616 * i386-linux-tdep.c: Include "reggroups.h".
617 (i386_linux_register_reggroup_p): New function.
618 (i386_linux_init_abi): Set register_reggroup_p to
619 i386_linux_register_reggroup_p.
620 * i386-tdep.h (i386_register_reggroup_p): Declare.
621 * i386-tdep.c: Include "reggroups.h".
622 (i386_init_reggroups): New function.
623 (i386_add_reggroups): New function.
624 (i386_register_reggroup_p): New function.
625 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
626 (_initialize_i386_tdep): Call i386_init_reggroups.
627 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
630 2002-11-09 Mark Kettenis <kettenis@gnu.org>
632 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
633 request that's available in *BSD.
635 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
637 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
640 2002-11-08 Andrew Cagney <ac131313@redhat.com>
642 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
643 * dummy-frame.c (find_dummy_frame): Rename
644 generic_find_dummy_frame, make static. Return the dummy frame
645 instead of the regcache.
646 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
647 (cached_find_dummy_frame): New function. Use find_dummy_frame.
648 (dummy_frame_register_unwind): Rename
649 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
650 * dummy-frame.h (dummy_frame_register_unwind): Rename
651 generic_call_dummy_register_unwind.
653 2002-11-08 Mark Kettenis <kettenis@gnu.org>
655 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
656 except the inclusion of "i386/tm-i386.h", to...
657 * config/i386/nm-i386v42mp.h: ...here.
658 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
660 2002-11-08 Andrew Cagney <ac131313@redhat.com>
662 * Makefile.in (frame.o): Update dependencies.
663 * blockframe.c (current_frame, frame_obstack_alloc)
664 (frame_saved_regs_zalloc, get_current_frame)
665 (set_current_frame, create_new_frame)
666 (set_unwind_by_pc, get_next_frame)
667 (flush_cached_frames, reinit_frame_cache)
668 (frame_saved_regs_register_unwind)
669 (deprecated_generic_get_saved_register)
670 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
671 (_initialize_blockframe): Move frame code from here...
672 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
673 "annotate.h" and "dummy-frame.h".
674 (_initialize_frame): New function.
676 2002-11-08 Jim Blandy <jimb@redhat.com>
678 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
679 when we finish a function a context.
680 * buildsym.h (outermost_context_p): New macro.
681 (Bug analyzed by David Edelsohn.)
683 2002-11-08 Andrew Cagney <ac131313@redhat.com>
685 * blockframe.c: Include "dummy-frame.h".
686 (struct dummy_frame, dummy_frame_stack)
687 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
688 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
689 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
690 (generic_save_call_dummy_addr, generic_pop_current_frame)
691 (generic_pop_dummy_frame, generic_fix_call_dummy)
692 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
693 dummy frame code from here...
694 * dummy-frame.c: ...to here. New file.
695 * dummy-frame.h: New file.
696 (generic_call_dummy_register_unwind): Declare.
697 (generic_find_dummy_frame): Declare.
698 * Makefile.in (SFILES): Add dummy-frame.c.
699 (dummy-frame.o): Specify dependencies.
700 (dummy_frame_h): Define.
701 (COMMON_OBS): Add dummy-frame.o.
702 (blockframe.o): Update dependencies.
704 2002-11-08 Jim Blandy <jimb@redhat.com>
706 * dwarf2read.c (read_func_scope): Restore local_symbols and
707 param_symbols after we finish the function context. (Based on a
708 patch from David Edelsohn.)
710 2002-11-08 David Carlton <carlton@math.stanford.edu>
712 * linespec.c (symbol_found): New function.
713 (minsym_found): New function.
714 (decode_line_1): Separate out some code into separate functions.
716 2002-11-08 Joel Brobecker <brobecker@gnat.com>
718 * i386-tdep.c (i386_frameless_signal_p): Make non static for
719 the benefit of the interix target.
720 * i386-tdep.h (i386_frameless_signal_p): Declare.
722 2002-11-08 Andrew Cagney <ac131313@redhat.com>
724 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
725 declaration that snuck in from change below.
727 2002-11-06 Andrew Cagney <cagney@redhat.com>
729 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
731 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
732 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
733 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
734 (i386_mxcsr_regnum_p): new function. Use instead of
736 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
737 (i386_sse_regnum_p): Declare.
738 (i386_mxcsr_regnum_p): Declare.
739 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
740 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
741 (IS_FP_REGNUM): Update definition.
742 (IS_FPU_CTRL_REGNUM): Update definition..
743 (IS_SSE_REGNUM): Update definition..
744 * i386v-nat.c (register_u_addr): Update.
745 * go32-nat.c (fetch_register): Update.
746 (store_register): Update.
748 2002-11-07 Joel Brobecker <brobecker@gnat.com>
750 Preparation work to convert the hppa targets to multiarch partial.
752 * hppa-tdep.c: Add new functions replacing macro bodies from
753 config/pa/tm-hppa.h. These function will be used to initialize
754 the gdbarch structure. Import some comments from tm-hppa.h,
755 and place them where appropriate, to avoid loosing them when
756 we cleanup this file.
757 (hppa_reg_struct_has_addr): New function.
758 (hppa_inner_than): New function.
759 (hppa_stack_align): New function.
760 (hppa_pc_requires_run_before_use): New function.
761 (hppa_instruction_nullified): New function.
762 (hppa_register_byte): New function.
763 (hppa_register_virtual_type): New function.
764 (hppa_store_struct_return): New function.
765 (hppa_cannot_store_register): New function.
766 (hppa_frame_args_address): New function.
767 (hppa_frame_locals_address): New function.
768 (hppa_smash_text_address): New function.
769 (hppa_coerce_float_to_double): New function. Requires the inclusion
772 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
774 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
775 gdbarch-eligible macro to a call to the new associated function
776 created in hppa-tdep.c.
777 (INNER_THAN): Likewise.
778 (STACK_ALIGN): Likewise.
779 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
780 (INSTRUCTION_NULLIFIED): Likewise.
781 (REGISTER_BYTE): Likewise.
782 (REGISTER_VIRTUAL_TYPE): Likewise.
783 (STORE_STRUCT_RETURN): Likewise.
784 (CANNOT_STORE_REGISTER): Likewise.
785 (FRAME_ARGS_ADDRESS): Likewise.
786 (FRAME_LOCALS_ADDRESS): Likewise.
787 (SMASH_TEXT_ADDRESS): Likewise.
788 (COERCE_FLOAT_TO_DOUBLE): Likewise.
789 (ABOUT_TO_RETURN): Delete, as no longer used.
791 2002-11-07 Fernando Nasser <fnasser@redhat.com>
793 * printcmd.c (disassemble_command): Remove obsolete function.
794 (_initialize_printcmd): Do not create disassemble command here.
795 * cli/cli-cmds.c (disassemble_command): New function. Implements
797 (init_cli_cmds): Create disassemble command here instead.
799 2002-11-07 Andrew Cagney <ac131313@redhat.com>
801 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
803 2002-11-07 Andrew Cagney <ac131313@redhat.com>
805 * regcache.h (regcache_cooked_read_using_offset_hack)
806 (regcache_cooked_write_using_offset_hack): Delete declarations.
807 (register_changed): Delete declaration.
808 * regcache.c (regcache_cooked_read_using_offset_hack)
809 (regcache_cooked_write_using_offset_hack): Delete functions.
810 (cooked_xfer_using_offset_hack): Delete function.
811 (register_changed): Delete function.
813 2002-11-07 Jim Blandy <jimb@redhat.com>
815 * macroscope.c: #include "complaints.h".
816 (sal_macro_scope): Cope with filenames that appear in the symtabs,
817 but not in the macro table.
818 * Makefile.in (macroscope.o): Record dependency.
820 2002-11-07 Joel Brobecker <brobecker@gnat.com>
822 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
824 2002-11-07 Andrew Cagney <ac131313@redhat.com>
826 * regcache.c (deprecated_registers_fetched): Update.
827 * regcache.h (deprecated_registers_fetched): Rename
829 * remote-vxsparc.c (vx_read_register): Update.
830 * remote-vxmips.c (vx_read_register): Update.
831 * remote-vx68.c (vx_read_register): Update.
832 * irix5-nat.c (fetch_core_registers): Update.
833 * mipsm3-nat.c (fetch_inferior_registers): Update.
834 * sun3-nat.c (fetch_inferior_registers): Update.
835 * symm-nat.c (fetch_inferior_registers): Update.
836 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
837 (fetch_core_registers): Update.
838 (fetch_kcore_registers): Update.
839 * mips-nat.c (fetch_inferior_registers): Update.
840 * corelow.c (get_core_registers): Update.
841 * a68v-nat.c (fetch_inferior_registers): Update.
843 2002-11-06 Joel Brobecker <brobecker@gnat.com>
845 Put in place the framework necessary for multiarching the hppa targets.
846 * hppa-tdep.c (hppa_gdbarch_init): New function.
847 (hppa_dump_tdep): New function.
848 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
849 tdep structure dumper.
850 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
851 until the multi-arching conversion has partially been completed.
853 2002-11-06 Andrew Cagney <ac131313@redhat.com>
855 * valops.c (value_assign): Merge lval_register case into
856 lval_reg_frame_relative. Use frame_register and
857 regcache_cooked_write instead of get_saved_register and
858 write_register_bytes. After flushing the register cache, try to
859 re-select the selected frame.
861 2002-11-06 Andrew Cagney <ac131313@redhat.com>
863 * regcache.h (deprecated_register_valid): Rename register_valid.
864 * regcache.c: Update.
865 * ia64-aix-nat.c: Update.
866 * i386gnu-nat.c: Update.
867 * alpha-nat.c: Update.
868 * sparc-nat.c: Update.
869 * lynx-nat.c: Update.
870 * remote-mips.c: Update.
872 2002-11-06 Joel Brobecker <brobecker@gnat.com>
874 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
875 to end of file, to be more consistent with the pratice followed
878 2002-11-06 Andrew Cagney <ac131313@redhat.com>
880 * infcmd.c: Include "reggroups.h" and <ctype.h>.
881 (print_float_info): Print registers in float_reggroup.
882 (print_vector_info): Print registers in vector_reggroup.
883 (default_print_registers_info): When all, print registers in
884 all_reggroup. Otherwize, print registers in general_reggroup.
885 (registers_info): Rewrite. Add support for register groups.
888 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
890 * symtab.c (methods_info): Delete. It has been ifdeffed out for
892 (symtab_symbol_info): Remove eons old ifdeffed out code.
893 (_initialize_symtab): Remove prehistoric disabled 'info methods'
896 2002-11-06 Theodore A. Roth <troth@openavr.org>
898 * c-exp.y: Add missing semi-colons.
899 * f-exp.y: Add missing semi-colons.
900 * m2-exp.y: Add missing semi-colons.
901 * p-exp.y: Add missing semi-colons.
902 Add empty action to start rule to avoid a type clash error when
903 building with bison >= 1.50.
905 2002-11-06 Jim Blandy <jimb@redhat.com>
907 * macrotab.h (struct macro_source_file): Doc fix.
909 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
911 * varobj.c (child_exists, cplus_number_of_children): Change
912 STREQ macro references to strcmp.
913 (cplus_name_of_child): Change code to handle the fact that
914 fields are not necessarily contiguous with regards to their
915 access control. This is a fix for PR gdb/792.
917 2002-11-05 Andrew Cagney <ac131313@redhat.com>
919 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
920 * gdbarch.h, gdbarch.c: Regnerate.
921 * frame.h (frame_register): Declare.
922 * frame.c (frame_register): New function.
923 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
924 GET_SAVED_REGISTER, otherwize call
925 generic_unwind_get_saved_register.
926 (frame_register_read): Use frame_register instead of
929 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
931 From Jim Ingham <jingham@apple.com>:
932 * event-top.c (gdb_disable_readline): New function.
933 (_initialize_event_loop): Move comment.
935 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
937 * event-loop.c (start_event_loop): Add comment.
940 2002-11-05 Andrew Cagney <ac131313@redhat.com>
942 * infcmd.c (default_print_registers_info): Do not call
945 2002-11-05 Andrew Cagney <ac131313@redhat.com>
947 * sparc-tdep.c (sparc_print_register_hook): Make static.
948 (sparc_print_registers_info): New function.
949 (sparc_do_registers_info): New function.
950 (sparclet_print_registers_info): New function.
951 (sparclet_do_registers_info): New function.
952 (do_sparc_print_registers_info): New function.
953 (sparc_print_registers): New static function, clone of infcmd.c's
954 default_print_registers_info.
955 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
956 (sparclet_do_registers_info): Declare.
957 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
958 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
960 (sparc_do_registers_info): Declare.
961 (PRINT_REGISTER_HOOK): Delete macro.
962 (sparc_print_register_hook): Delete declaration.
964 2002-11-05 David Carlton <carlton@math.stanford.edu>
966 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
968 (lookup_symbol_aux_local): New function.
969 (lookup_symbol_aux_symtabs): New function.
970 (lookup_symbol_aux_psymtabs): New function.
972 2002-11-05 David Carlton <carlton@math.stanford.edu>
974 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
975 previous values of 'objfile' and 'block'.
977 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
979 * values.c (value_change_enclosing_type): Set
980 enclosing_type field correctly also for the case where
981 more memory needs to be allocated.
983 2002-11-03 Mark Kettenis <kettenis@gnu.org>
985 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
988 * i387-tdep.c (i387_print_float_info): Replace calls to
989 register_read and deprecated_read_register_gen with calls to
990 frame_register_read, and make the necessary adjustments to the
993 2002-11-02 Andrew Cagney <ac131313@redhat.com>
995 * gdbarch.sh (register_reggroup_p): Allow default value.
996 * gdbarch.h, gdbarch.c: Regenerate.
998 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1000 * regcache.h: Add coment indicating replacements for deprecated
1003 2002-11-02 Andrew Cagney <cagney@redhat.com>
1005 * reggroups.h, reggroups.c: New files.
1006 * regcache.c: Include "reggroups.h".
1007 (enum regcache_dump_what): Add `regcache_dump_groups'.
1008 (regcache_dump): Contract size of the "Type" column. When
1009 specified, dump the register's groups.
1010 (maintenance_print_register_groups): New function.
1011 (_initialize_regcache): Add command `maint print register-groups'.
1012 * Makefile.in (COMMON_OBS): Add reggroups.o
1013 (SFILES): Add reggroups.c.
1014 (reggroups_h): Define.
1015 (regcache.o, gdbarch.o): Update dependencies.
1016 (reggroups.o): Specify dependencies.
1017 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1018 Add opaque declaration for `struct reggroup' in generated .h file.
1019 Include "reggroups.h" in generated .c file.
1020 gdbarch.h, gdbarch.c: Re-generate.
1022 2002-11-02 Andrew Cagney <cagney@redhat.com>
1024 * regcache.h (deprecated_read_register_gen): Rename
1026 (deprecated_write_register_gen): Rename write_register_gen.
1027 * i387-tdep.c: Update.
1028 * x86-64-linux-nat.c: Update
1030 * thread-db.c: Update.
1031 * win32-nat.c: Update.
1032 * mips-tdep.c: Update.
1033 * d10v-tdep.c: Update.
1034 * cris-tdep.c: Update.
1035 * remote-sim.c: Update.
1036 * remote-rdi.c: Update.
1037 * remote-rdp.c: Update.
1040 * blockframe.c: Update.
1041 * x86-64-tdep.c: Update.
1042 * xstormy16-tdep.c: Update.
1043 * sh-tdep.c: Update.
1044 * s390-tdep.c: Update.
1045 * rs6000-tdep.c: Update.
1046 * sparc-tdep.c: Update.
1047 * i386-tdep.c: Update.
1048 * dwarf2cfi.c: Update.
1049 * regcache.c: Update.
1051 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1053 New interix-specific files:
1054 * config/i386/nm-interix.h: New file.
1055 * config/i386/interix.mh: New file.
1056 * config/i386/interix.mt: New file.
1057 * i386-interix-nat.c: New file.
1058 * i386-interix-tdep.c: New file.
1060 2002-11-01 Andrew Cagney <cagney@redhat.com>
1062 * frame.h (deprecated_generic_get_saved_register): Rename
1063 generic_get_saved_register.
1064 * blockframe.c (deprecated_generic_get_saved_register): Update.
1065 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1066 (xstormy16_frame_saved_register): Update.
1067 * sh-tdep.c (sh_gdbarch_init): Update.
1068 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1069 * ia64-tdep.c (ia64_get_saved_register): Update.
1070 * cris-tdep.c (cris_gdbarch_init): Update.
1071 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1072 * arm-tdep.c (arm_gdbarch_init): Update.
1074 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1076 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1078 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1080 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1081 trampolines in sigaction.
1083 2002-10-31 Andrew Cagney <cagney@redhat.com>
1085 * h8300-tdep.c: Include "gdb_assert.h".
1086 (h8300_print_register): Add gdbarch, file and frame parameters.
1087 Use frame_read_unsigned_register to read the register's value.
1088 Use fprintf_filtered to display output.
1089 (h8300_print_registers_info): Replace h8300_do_registers_info.
1090 (h8300_gdbarch_init): Set print_registers_info.
1092 2002-10-31 Andrew Cagney <cagney@redhat.com>
1094 * frame.c (frame_read_unsigned_register): New function.
1095 (frame_read_signed_register): New function.
1096 * frame.h (frame_read_unsigned_register): Declare.
1097 (frame_read_signed_register): Declare.
1099 2002-10-31 Andrew Cagney <cagney@redhat.com>
1101 * h8500-tdep.c (h8500_print_registers_info): New static function,
1102 clone of infcmd.c's default_print_registers_info.
1103 (h8500_do_registers_info): New funtion.
1104 (h8500_print_register_hook): Rename print_register_hook, make
1107 * config/h8500/tm-h8500.h: Update copyright.
1108 (DEPRECATED_DO_REGISTERS_INFO): Define.
1109 (h8500_do_registers_info: Declare.
1110 (PRINT_REGISTER_HOOK): Delete macro.
1111 (print_register_hook): Delete function.
1113 2002-10-31 Andrew Cagney <cagney@redhat.com>
1115 * z8k-tdep.c (z8k_print_register_hook): Make static.
1116 (z8k_print_registers_info): New static function, clone of
1117 infcmd.c's default_print_registers_info.
1118 (z8k_do_registers_info): New function. Wrap
1119 z8k_print_registers_info.
1120 * config/z8k/tm-z8k.h: Update copyright.
1121 (PRINT_REGISTER_HOOK): Delete macro.
1122 (z8k_print_register_hook): Delete declaration.
1123 (DEPRECATED_DO_REGISTERS_INFO): Define.
1124 (z8k_do_registers_info): Declare.
1126 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1128 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1129 as this is already provided by value.h, and was actually causing
1130 a compilation error because of a conflict in parameter type
1131 declaration due to a missing const keyword.
1132 (low_text_segment_addres): Fix a compilation warning.
1134 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1136 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1137 registers without a name.
1138 (mips_linux_cannot_store_register): Don't store registers without
1141 2002-10-28 David Carlton <carlton@math.stanford.edu>
1143 * symtab.c (find_addr_symbol): Delete. (It was already commented
1145 * symtab.h: Delete prototype for find_addr_symbol.
1147 2002-10-26 Andrew Cagney <cagney@redhat.com>
1149 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1151 gdbarch.h, gdbarch.c: Re-generate.
1152 * infcmd.c (default_print_registers_info): Update reference.
1153 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1154 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1155 * sh-tdep.c (sh_gdbarch_init): Ditto.
1156 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1157 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1159 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1161 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1162 cfi_init_extra_frame_info.
1163 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1164 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1166 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1167 target where necessary. Add more comments and remove the ones
1168 that don't provide any useful information.
1170 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1171 deprecated_read_register_dummy with
1172 frame_unwind_unsigned_register.
1174 * i386-tdep.c (i386_extract_struct_value_address): Use
1175 regcache_raw_read_unsigned instead of
1176 regcache_cooked_read_unsigned since we know that the register
1177 we're reading isn't a pseudo register. Rename variable 'val' into
1178 the more descriptive 'addr'.
1180 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1181 (x86_64_push_return_address): Add comment.
1182 (x86_64_pop_frame): Make static.
1183 (examine_argument): Clarify comment.
1184 (x86_64_skip_prologue): Make prolog_expact variable static.
1186 * dwarf2cfi.c: Fix some formatting problems.
1187 (context_cpy, read_encoded_pointer): Clarify comments.
1189 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1190 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1191 i386 target back into x86_64_gdbarch_init. Add some comments and
1192 remove meaningless ones.
1194 2002-10-25 Andrew Cagney <cagney@redhat.com>
1196 * complaints.h (struct deprecated_complaint): Rename `struct
1198 * complaints.c (complain): Update.
1199 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1200 incorrect comment indicating that "symfile.h" was being included
1201 for the `struct complaint' definition.
1202 * remote-vx.c: Update.
1203 * objc-lang.c: Update.
1204 * xcoffread.c: Update.
1206 * mdebugread.c: Update.
1207 * stabsread.c: Update.
1208 * dwarf2read.c: Update.
1209 * dwarfread.c: Update.
1210 * elfread.c: Update.
1211 * coffread.c: Update.
1212 * stabsread.h: Update.
1213 * dbxread.c: Update.
1214 * buildsym.c: Update.
1215 * gdbtypes.c: Update.
1216 * macrotab.c: Update.
1218 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1220 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1221 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1222 (x86_64_init_abi): ...new function.
1224 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1225 * i386v-nat.c: Include "i386-tdep.h".
1227 2002-10-25 Andrew Cagney <cagney@redhat.com>
1229 * gdbtypes.c (address_space_name_to_int): Update.
1230 (address_space_int_to_name): Update.
1231 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1232 multi-arch predicate.
1233 (address_class_name_to_type_flags): Ditto.
1234 * gdbarch.h, gdbarch.c: Re-generate.
1236 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1238 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1240 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1242 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1244 * symtab.h (INIT_SAL): Delete macro.
1246 * symtab.c (init_sal): New function.
1248 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1249 to init_sal function call.
1250 (find_sal_from_funcs_and_line): Ditto.
1251 (all_sals_for_line): Ditto.
1252 * breakpoint.c (create_internal_breakpoint): Ditto.
1253 (create_fork_vfork_event_catchpoint): Ditto.
1254 (create_exec_event_catchpoint): Ditto.
1255 (parse_breakpoint_sals): Ditto.
1256 (watch_command_1): Ditto.
1257 (handle_gnu_4_16_catch_command): Ditto.
1258 (clear_command): Ditto.
1259 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1260 * infcmd.c (run_stack_dummy): Ditto.
1261 * infrun.c (process_event_stop_test): Ditto.
1262 (check_sigtramp2): Ditto.
1263 (step_over_function): Ditto.
1264 * linespec.c (decode_line_2): Ditto.
1265 (decode_line_1): Ditto.
1266 * source.c (line_info): Ditto.
1267 * symtab.c (find_pc_sect_line): Ditto.
1269 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1271 * dwarf2cfi.c (struct context)
1272 (struct context_reg): Moved to dwarf2cfi.h
1273 (context_alloc, frame_state_alloc, context_cpy):
1274 Made extern instead of static, removed prototypes.
1275 * dwarf2cfi.h (struct context)
1276 (struct context_reg): New, moved from dwarf2cfi.c
1277 (context_alloc, frame_state_alloc, context_cpy):
1279 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1280 Changed from static to extern.
1281 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1282 (LINUX_SIGCONTEXT_FP_OFFSET)
1283 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1284 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1285 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1286 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1287 set_gdbarch_*() calls now use x86-64 specific functions
1288 instead of DWARF2 CFI ones.
1289 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1290 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1291 (x86_64_init_extra_frame_info): New prototypes.
1293 2002-10-23 David Carlton <carlton@math.stanford.edu>
1295 * linespec.c: #include "parser-defs.h".
1296 Delete prototype for find_template_name_end.
1297 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1299 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1301 * NEWS: add recent mi fixes.
1302 * varobj.c (struct varobj): Add new "updated" flag.
1303 (new_variable): Default "updated" flag to 0.
1304 (varobj_set_value): Set "updated" flag to 1 if value
1306 (varobj_update): Check varobj "updated" flag before
1307 comparing old and refreshed values. Fix for
1310 2002-10-23 David Carlton <carlton@math.stanford.edu>
1312 * parse.c (parse_exp_1): Use BLOCK_START.
1313 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1315 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1317 2002-10-23 David Carlton <carlton@math.stanford.edu>
1319 * symtab.c: Delete cplusplus_hint.
1320 Delete prototype for find_template_name_end.
1322 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1324 * symtab.h: Update comment.
1326 2002-10-23 Michael Snyder <msnyder@redhat.com>
1328 * printcmd.c (address_info): Restore quotes in output.
1329 * valops.c (value_of_local): Restore quotes in error message.
1331 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1333 * symtab.c (symbol_demangled_name): New function.
1334 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1335 turning most of it into a function.
1336 (symbol_demangled_name): Export.
1338 2002-10-23 Michael Snyder <msnyder@redhat.com>
1340 * valops.c (value_of_local): Restore quotes in error message.
1342 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1344 * symtab.c (symbol_init_language_specific): New function.
1345 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1346 turning most of it into a function.
1347 (symbol_init_language_specific): Export.
1349 2002-10-23 David Carlton <carlton@math.stanford.edu>
1351 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1352 (dwarf_attr_name): Ditto.
1353 (dwarf_type_encoding_name): Ditto.
1354 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1355 (process_die): Handle DW_TAG_namespace,
1356 DW_TAG_imported_declaration, DW_TAG_imported_module.
1357 (read_namespace): New function.
1359 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1361 * configure.in: Define NEW_PROC_API on Interix too.
1362 * configure: Regenerate.
1364 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1366 * configure: Regenerate using the proper version of autoconf.
1368 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1370 * findvar.c (read_var_value): Temporarily disable TLS code, until
1371 complete TLS support is added.
1373 2002-10-21 Jim Blandy <jimb@redhat.com>
1374 Elena Zannoni <ezannoni@redhat.com>
1376 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1377 for thread local storage locations.
1378 (struct symbol): Add objfile field.
1379 (SYMBOL_OBJFILE): Define.
1380 * dwarf2read.c (is_thread_local): New static variable.
1381 (new_symbol): If variable is in thread local fill in address class
1382 and objfile appropriately.
1383 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1385 * printcmd.c (address_info): Print the information for thread
1386 local storage variable.
1387 * findvar.c (read_var_value): In case of thread local variable,
1388 defer to the target vector code to compute address.
1390 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1392 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1393 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1395 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1397 * symtab.h (address_class): Rename
1398 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1399 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1400 * printcmd.c (address_info): Ditto.
1401 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1403 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1405 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1406 DBREG_DRX macro to acces debug registers.
1408 * Makefile.in (i386obsd-tdep.o): New target.
1410 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1411 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1413 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1414 * config/i386/obsd.mt: New file.
1415 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1416 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1417 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1418 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1419 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1420 * i386obsd-tdep.c: New file.
1422 2002-10-19 Adam Fedor <fedor@gnu.org>
1424 * objc-exp.y (name_not_typename): Fix invalid comment.
1426 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1428 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1429 to allocate partial syms and macro byte caches.
1431 2002-10-18 David Carlton <carlton@math.stanford.edu>
1433 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1435 2002-10-18 Adam Fedor <fedor@gnu.org>
1437 * stabsread.c (find_name_end): New function.
1438 (define_symbol): Use it.
1440 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1442 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1443 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1444 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1445 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1447 2002-10-17 David Carlton <carlton@math.stanford.edu>
1449 * symfile.h: Add opaque declaration for struct obstack.
1450 Declare obsavestring to take a const char *.
1451 * symfile.c (obsavestring): Make first argument a const char *.
1453 2002-10-16 Adam Fedor <fedor@gnu.org>
1455 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1456 names when matching breakpoints in current file.
1458 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1460 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1461 (read_tag_pointer_type): Add address class support.
1462 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1463 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1465 * gdbarch.h, gdbarch.c: Regenerate.
1466 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1467 (make_type_with_address_space, recursive_type_dump): Add address
1469 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1470 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1471 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1473 2002-10-16 Klee Dienes <kdienes@apple.com>
1475 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1476 to get the last character of a char[] buffer, not
1477 name[sizeof(vptr_name)-1].
1479 2002-10-14 Adam Fedor <fedor@gnu.org>
1481 * symtab.h: New objc_specific struct.
1482 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1483 (SYMBOL_DEMANGLED_NAME): Likewise.
1485 2002-10-14 Adam Fedor <fedor@gnu.org>
1487 * symfile.c (init_filename_language_table): Add ObjC file extension.
1489 2002-10-14 Adam Fedor <fedor@gnu.org>
1491 * utils.c (puts_filtered_tabular): New function.
1492 (fprintf_symbol_filtered): Get ObjC demangled name.
1493 * defs.h (puts_filtered_tabular): Declared.
1495 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1497 * c-lang.h (c_type_print_varspec_prefix): Delete.
1498 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1499 ``need_post_space'' parameter. Adjust all callers.
1501 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1503 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1504 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1505 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1506 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1508 2002-10-13 Adam Fedor <fedor@gnu.org>
1510 * source.c (print_source_lines): Update comments.
1512 2002-10-13 Adam Fedor <fedor@gnu.org>
1514 * valops.c (value_of_local): New function.
1515 (value_of_this): Use it.
1516 * value.h (value_of_local): Declared.
1518 2002-10-13 Adam Fedor <fedor@gnu.org>
1520 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1521 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1523 2002-10-12 Adam Fedor <fedor@gnu.org>
1525 * language.c (binop_result_type): Add language_objc to case.
1526 (integral_type): Likewise.
1527 (character_type): Likewise.
1528 (string_type): Likewise.
1529 (boolean_type): Likewise.
1530 (structured_type): Likewise.
1531 (binop_type_check): Likewise.
1533 2002-10-11 Adam Fedor <fedor@gnu.org>
1535 * printcmd.c (address_info): Print 'self' for ObjC.
1537 2002-10-11 Adam Fedor <fedor@gnu.org>
1539 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1542 2002-10-11 Adam Fedor <fedor@gnu.org>
1544 * language.h (CAST_IS_CONVERSION): Add language_objc.
1546 2002-10-11 Adam Fedor <fedor@gnu.org>
1548 * defs.h (enum language): Add language_objc.
1550 2002-10-11 Klee Dienes <kdienes@apple.com>
1552 * corefile.c (read_memory_typed_address): New function.
1553 * gdbcore.h (read_memory_typed_address): Add prototype.
1554 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1555 to read a value destined for a CORE_ADDR, not read_memory_integer.
1556 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1557 (f77_get_dynamic_lowerbound): Ditto.
1559 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1561 * utils.c (string_to_core_addr): After turning string into
1562 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1563 which will do necessary sign-extension, etc.
1565 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1567 * c-exp.y (THIS): Delete token and grammar rule.
1568 (yylex): Don't return THIS.
1569 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1570 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1571 * demangle.c (cplus_markers): Update comment. Put '$'
1572 first. Remove CPLUS_MARKER.
1573 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1574 * jv-exp.y (THIS): Delete token and grammar rule.
1575 (yylex): Don't return THIS.
1576 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1577 * objc-exp.y (THIS): Delete token and grammar rule.
1578 (yylex): Don't return THIS.
1579 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1580 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1581 (read_member_functions): Likewise for opname.
1582 (read_tilde_fields): Use is_cplus_marker.
1584 * defs.h (CPLUS_MARKER): Don't define.
1585 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1586 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1587 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1588 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1589 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1591 * config/i386/tm-i386v4.h: Delete file.
1592 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1593 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1594 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1595 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1596 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1597 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1598 * config/i386/i386v4.mt (TM_FILE): Likewise.
1599 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1601 2002-10-10 Marko Mlinar <markom@opencores.org>
1603 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1604 accidentially not commited 2002-10-09
1605 * gdbarch.h, gdbarch.c: Re-generate.
1607 2002-10-09 Marko Mlinar <markom@opencores.org>
1609 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1610 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1611 * gdbarch.h, gdbarch.c: Re-generate.
1613 2002-10-08 Petr Sorfa <petrs@caldera.com>
1615 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1617 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
1618 so we can work on more than one compilation unit at a time. This
1619 helps prepare GDB to handle inter-CU die references.
1620 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
1621 the code to be defined before struct comp_unit_head.
1622 (comp_unit_head): Added new members - offset, cu_head,
1623 begin_die, next and dwarf2_abbrevs.
1624 (dwarf2_abbrevs): Removed single static var; now member of
1625 struct comp_unit_head.
1626 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
1628 (psymtab_to_symtab_1): Changed to work with the new
1629 struct comp_unit_head.
1630 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
1631 constructs the dwarf2_abbrevs[] inside the cu_header.
1632 (dwarf2_empty_abbrev_table): Now expects a ptr to a
1633 dwarf2_abbrev table to clean up.
1634 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
1635 handling of dwarf2_abbrevs inside the cu_header.
1636 (read_partial_die): Now supports the call to the new
1637 dwarf2_lookup_abbrev.
1638 (read_full_die): Now supports the call to the new
1639 dwarf2_lookup_abbrev.
1641 2002-10-06 Christopher Faylor <cgf@redhat.com>
1643 * Makefile.in (install-gdbtk): Add missing continuation backslash to
1644 insure that shell variables, such as "transformed_name" are propagated
1645 to later shell statements in rule.
1647 2002-10-06 Mark Kettenis <kettenis@gnu.org>
1649 * config/i386/nm-i386sco.h: Add protection against
1650 multiple-inclusion. Include "i386/nm-i386v.h".
1651 (REGISTER_U_ADDR): Remove define.
1652 (i386_register_u_addr): Remove prototype.
1654 2002-10-04 Michael Snyder <msnyder@redhat.com>
1656 * m32r-stub.c (handle_exception): Make sure exception is "trap"
1657 before treating it as a single-step event.
1659 2002-10-03 Adam Fedor <fedor@gnu.org>
1661 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
1662 (objc_demangle): Remove assignment in if statements, Replace
1664 (add_msglist): Likewise.
1665 (end_msglist): Likewise.
1666 (complare_selectors): Likewise.
1667 (selectors_info): Likewise.
1668 (compare_classes): Likewise.
1669 (classes_info): Likewise.
1670 (print_object_command): Likewise.
1671 (find_objc_msgcall_submethod): Replace PTR with void *.
1672 * objc-lang.h: Remove check for __STDC__.
1674 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1676 * ui-out.h (ui_out_field_fmt_int): New prototype.
1677 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
1678 of field width and alignment.
1679 * stack.c (print_frame_info_base): When printing frame level, use
1680 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
1683 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
1685 * MAINTAINERS: Add self to Write After Approval list.
1687 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1689 * infcmd.c (interrupt_target_command_wrapper): Delete.
1690 (interrupt_target_command): Make non static.
1691 (nofp_registers_info): Make static.
1692 * stack.c (return_command_wrapper): Delete.
1693 (return_command): Make non static.
1695 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1697 * event-top.c (gdb_setup_readline): New function. Code moved from
1698 _initialize_event_loop().
1699 (_initialize_event_loop): Call gdb_setup_readline().
1701 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1703 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
1704 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
1705 * gdbarch.h, gdbarch.c: Re-generate.
1707 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
1710 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
1712 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
1713 of fill_in_vptr_fieldno.
1715 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
1717 * inferior.h (registers_info, stepi_command, nexti_command,
1718 continue_command, interrupt_target_command): Export from infcmd.c.
1719 * frame.h (args_info, selected_frame_level_changed_hook,
1720 return_command): Export from stack.c.
1721 * v850ice.c (stepi_command, nexti_command, continue_command): use
1722 prototypes from inferior.h.
1723 * tracepoint.c (registers_info, args_info, locals_info): Use
1724 prototypes from frame.h and inferior.h.
1725 * Makefile.in (mi-main.o): Add dependency on frame.h.
1727 2002-10-02 Andrew Cagney <ac131313@redhat.com>
1729 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
1730 value in register 3 adjusted by ppc_gp0_regnum.
1732 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
1734 2002-10-02 Marko Mlinar <markom@opencores.org>
1736 * MAINTAINERS: Add myself to the Write After Approval list.
1738 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
1740 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
1741 of the section for the N64 ABI, fixed.
1743 * config/mips/tm-irix6.h: Include solib.h.
1745 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
1747 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
1750 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1752 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
1753 and that "mi0" syntax has been removed.
1755 2002-09-30 David Carlton <carlton@math.stanford.edu>
1757 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
1758 * ppc-sysv-tdep.c: #include "gdb_string.h".
1759 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
1762 2002-10-01 Andrew Cagney <ac131313@redhat.com>
1764 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
1765 "vrsave"'s register number.
1767 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1769 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
1770 use frame_unwind_signed_register to obtain the PC.
1771 (mips_frame_chain): Handle a generic dummy frame.
1772 (mips_init_extra_frame_info): When a generic dummy frame, don't
1773 re-compute the frame base.
1774 (mips_pop_frame): Handle generic dummy frames.
1775 (mips_gdbarch_init): When generic dummy frames, set
1776 use_generic_dummy_frames, push_dummy_frame to
1777 generic_push_dummy_frame, pc_in_call_dummy to
1778 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
1779 generic_save_dummy_frame_tos.
1781 2002-09-30 Andrew Cagney <ac131313@redhat.com>
1783 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
1784 against TOP when TOP was explictly set.
1785 (generic_push_dummy_frame): Set TOP to zero.
1787 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
1789 * event-loop.c (start_event_loop): Rename variable 'result' to
1790 'gdb_result', to avoid conflicts with upcoming intepreters changes.
1792 2002-09-30 Keith Seitz <keiths@redhat.com>
1794 * gdb-events.sh (selected_thread_changed): New event.
1795 * gdb-events.c: Regenerated.
1796 * gdb-events.h: Regenerated.
1798 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1800 * MAINTAINERS: Add self to Write After Approval list.
1802 2002-09-30 Fernando Nasser <fnasser@redhat.com>
1804 * disasm.c: New file.
1805 * disasm.h: New file.
1806 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
1807 (compare_lines): Ditto.
1808 (dump_insns): Ditto.
1809 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
1811 (do_assembly_only): Ditto.
1812 (do_disassembly): Renamed to gdb_disassembly and moved to
1813 disasm.c. Sdded uiout argument.
1814 * Makefile.in: Add new files. Reorder SFILES list. Update
1815 dependencies. Include libgdb.a later in the insight executable.
1817 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1819 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
1820 bfd/elf64-alpha-fbsd.c.
1822 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1824 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
1827 2002-09-29 Andrew Cagney <ac131313@redhat.com>
1829 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
1831 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
1833 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
1834 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
1835 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
1836 (S_msg_sig_post_reply): Ditto.
1838 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
1840 * sh-tdep.c (sh_use_struct_convention): Use definition according
1842 (sh_push_arguments): Store in register with correct endianess.
1843 (sh_default_store_return_value): Ditto.
1844 (sh_gdbarch_init): Set sizeof long double to 8.
1846 2002-09-27 Mark Kettenis <kettenis@gnu.org>
1848 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
1849 Fix some whitespace problems.
1851 2002-09-27 David Carlton <carlton@math.stanford.edu>
1853 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
1854 (mcore-tdep.o): Ditto.
1855 (ns32k-tdep.o): Ditto.
1856 (ns32knbsd-tdep.o): Ditto.
1858 (vax-tdep.o): Ditto.
1859 * cris-tdep.c: #include "gdb_string.h"
1860 * mcore-tdep.c: Ditto.
1861 * ns32k-tdep.c: Ditto.
1862 * ns32knbsd-tdep.c: Ditto.
1864 * vax-tdep.c: Ditto.
1866 2002-09-27 David Carlton <carlton@math.stanford.edu>
1868 * config/djgpp/fnchange.lst: Add entries for
1869 gdb/testsuite/gdb.c++/m-static files.
1871 2002-09-27 Jim Wilson <wilson@redhat.com>
1873 * MAINTAINERS: Add myself to the Write After Approval list.
1875 2002-09-26 Martin M. Hunt <hunt@redhat.com>
1877 * mips-tdep.c (find_proc_desc): Initialize startaddr.
1880 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1882 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
1885 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1887 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
1888 (rs6000_struct_return_address): Delete variable.
1889 (rs6000_store_struct_return): Update.
1890 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
1891 deprecated_extract_struct_value_address.
1892 (rs6000_frame_align): New function.
1893 (rs6000_gdbarch_init): Set frame_align.
1895 2002-09-26 Andrew Cagney <ac131313@redhat.com>
1897 From Grace Sainsbury <graces@redhat.com>:
1898 * Makefile.in (gdbtk-main.o): New target.
1899 (gdb.o): New target.
1901 (main.o): Update dependencies.
1902 (gdb$(EXEEXT)): Add gdb.o.
1903 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
1904 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
1905 (SUBDIR_GDBTK_CLEAN): Set.
1906 (install-gdbtk): Install the insight binary.
1907 (uninstall-gdbtk): New target.
1908 (all-gdbtk, clean-gdbtk): New rule.
1909 * top.c (use_windows): Default to zero.
1910 * main.c: Include "main.h".
1912 (struct captured_main_args): Delete.
1913 (gdb_main): New function.
1917 2002-09-25 Andrew Cagney <cagney@redhat.com>
1919 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
1920 (frame_map_regnum_to_name): New function.
1921 (frame_map_name_to_regnum): New function.
1922 * frame.h (frame_map_name_to_regnum): Declare.
1923 (frame_map_regnum_to_name): Declare.
1924 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
1925 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
1926 * parse.c: Do not include "builtin-regs.h".
1927 (target_map_name_to_register): Delete function.
1928 (write_dollar_variable): Use frame_map_name_to_regnum.
1929 * parser-defs.h (target_map_name_to_register): Delete declaration.
1930 * expprint.c: Include "frame.h".
1931 (print_subexp): Use frame_map_regnum_to_name.
1932 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
1933 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
1935 2002-09-25 Andrew Cagney <ac131313@redhat.com>
1937 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
1938 wasn't saved, and the next innermost frame is a dummy, return the
1939 dummy frame's link register.
1941 2002-09-24 Jim Blandy <jimb@redhat.com>
1943 Fix from Paul Breed:
1944 * main.c (captured_main): Add a `break' after the case for 'b'.
1946 2002-09-24 Keith Seitz <keiths@redhat.com>
1948 * varobj.c (c_type_of_child): Use get_target_type instead
1949 of TYPE_TARGET_TYPE.
1951 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1953 * source.c (get_current_or_default_source_symtab_and_line): Remove
1955 (set_default_source_symtab_and_line): New function. Attempts to
1956 determine a source file to list lines from if one is not currently
1958 (get_current_source_symtab_and_line): Initialize sal.pc and
1960 (set_current_source_symtab_and_line): Mark argument as const.
1961 * source.h: Update declarations and comments.
1962 * linespec.c (decode_line_1): Replace call to removed routine above.
1963 * stack.c (print_frame_info_base): Ditto.
1964 * cli/cli-cmds.c (edit_command): Ditto.
1965 (list_command): Ditto.
1967 2002-09-22 Fernando Nasser <fnasser@redhat.com>
1969 * source.c (get_current_or_default_source_symtab_and_line): Initialize
1970 sal.pc and sal.end fields.
1971 (get_current_or_default_source_symtab_and_line): Ditto.
1972 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
1973 so we do not cause a new source symtab to be searched for (reverting an
1974 unintentional change from the 2002-09-20 patch).
1975 * scm-lang.c (scm_unpac): Ditto.
1977 2002-09-21 Andrew Cagney <cagney@redhat.com>
1979 * complaints.c (symfile_explanations): Remove new-line from
1980 ``isolated_message''.
1981 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
1982 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
1984 2002-09-20 Nick Clifton <nickc@redhat.com>
1986 * NEWS: Announce that V850EA ISA is no longer supported.
1987 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
1989 2002-09-20 David Carlton <carlton@math.stanford.edu>
1991 * Makefile.in (c-lang.o): Correct dependencies.
1992 (utils.o): Gather dependencies.
1994 * c-lang.c: #include "gdb_string.h"
1996 2002-09-20 Fernando Nasser <fnasser@redhat.com>
1998 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
1999 * cli/cli-cmds.c (list_command): New function. Implements the new
2001 (_init_cli_cmds): Add new command definition.
2002 * gdb.1: Document edit command.
2003 * doc/gdb.texinfo: Document edit command.
2005 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2007 * source.c: Make global variables current_source_symtab and
2008 current_source_line static.
2009 (list_command): Moved to cli/cli-cmds.c.
2010 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2011 (get_first_line_listed): New accessor function.
2012 (get_lines_to_list): New accessor function.
2013 (get_current_source_symtab_and_line): New function. Retrieves the
2014 position in the source code that we consider current.
2015 (get_current_or_default_source_symtab_and_line): New function.
2016 Like the above but attempts to determine a default position if one
2017 is not currently defined.
2018 (set_current_source_symtab_and_line): New function. Sets the source
2019 code position considered current and returns the previously set one.
2020 (clear_current_source_symtab_and_line): Reset stored information about
2021 a current source line.
2022 (_initialize_source): Remove registration for the "list" command and
2024 * source.h: Add declarations for the new functions above.
2025 * symtab.h: Remove declarations for the global variables mentioned
2027 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2028 obtain current source line.
2029 * linespec.c (decode_line_1): Ditto.
2030 * macroscope.c (default_macro_scope): Ditto.
2031 * scm-lang.c (scm_unpac): Ditto.
2032 * stack.c (print_frame_info_base): Ditto.
2033 * symfile.c (clear_symtab_users): Ditto.
2034 * symtab.c (decode_line_spec): Ditto.
2035 * cli/cli-cmds.c (list_command): Moved here from source.c.
2036 (ambiguous_line_spec): Moved here from source.c.
2037 (_init_cli_cmds): Add definition for "list" and its alias.
2038 * Makefile.in: Update dependencies.
2040 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2042 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2043 with what gcc thinks is correct.
2045 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2047 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2048 multiple register push instruction.
2050 2002-09-19 Jim Blandy <jimb@redhat.com>
2052 Add support for distinct host and target character sets.
2053 * charset.c, charset.h: New files.
2054 * c-exp.y: #include "charset.h".
2055 (yylex): Convert character and string literals to the target
2056 character set, before returning them as the semantic value of the
2058 * c-lang.c: #include "charset.h".
2059 (c_emit_char): Use charset-specific methods to recognize
2060 characters with backslash escape forms, to decide which characters
2061 to print literally and which to print using numeric escape
2062 sequences, and to convert target characters to host characters
2064 * utils.c: #include "charset.h".
2065 (no_control_char_error): New function.
2066 (parse_escape): Use charset-specific methods to recognize
2067 backslash escapes, parse `control character' notation, and convert
2068 characters from the host character set to the target character set.
2069 * configure.in: Set the default host character set.
2070 Check where to find iconv, and what its argument types might be.
2071 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2072 * Makefile.in (SFILES): List charset.c.
2073 (COMMON_OBS): List charset.o.
2074 (charset.o): New rule.
2075 (charset_h): New header dependency variable.
2076 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2077 (LIBICONV): New variable, set by configure.
2078 (CLIBS): Include $(LIBICONV) here.
2079 * aclocal.m4, config.in, configure: Regenerated.
2081 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2083 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2086 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2088 * gdb_mbuild.sh: New file.
2090 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2092 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2094 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2096 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2097 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2098 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2099 valops.c, value.h: Revert previous change.
2101 2002-09-18 Michael Snyder <msnyder@redhat.com>
2103 Preliminary support for Objective-C:
2104 * defs.h (language_objc): New enum value.
2105 (puts_filtered_tabular): Declaration only, exported from utils.c.
2106 (skip_quoted): Delete, declared in completer.h.
2107 * c-exp.y: Include completer.h.
2110 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2111 New operator enum values.
2112 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2113 * language.c (binop_result_type): Handle language_objc case.
2114 (integral_type, character_type, string_type, boolean_type,
2115 structured_type, binop_type_check): Ditto.
2116 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2117 (struct objc_specific): Add to general_symbol_info.
2118 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2119 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2120 * parser-defs.h (struct objc_class_str): New struct type.
2121 (start_msglist, end_msglist, add_msglist): Declaration only,
2122 exported from objc-lang.c.
2123 * value.h (value_of_local, value_nsstring,
2124 call_function_by_hand_expecting_type): Exported from valops.c.
2125 * valops.c (find_function_addr): Export.
2126 (call_function_by_hand_expecting_type): New function.
2127 (value_of_local): New function.
2128 * symfile.c (init_filename_language_table): Add ".m" extension
2130 * utils.c (puts_filtered_tabular): New function.
2131 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2132 (set/show demangle): Extend help-string to refer to ObjC.
2133 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2134 * stabsread.c (symbol_reference_defined): Objective-C symbols
2135 may contain colons: make allowances when scanning stabs strings
2137 (objc_find_colon): New function.
2138 * printcmd.c (address_info): If language == objc then print
2139 "self" instead of "this".
2140 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2141 OP_NSSTRING, and OP_SELF.
2142 (prefixify_subexp): Ditto.
2143 * source.c (print_source_lines): Mention objc in comment.
2144 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2147 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2149 * complaints.h: Update copyright.
2150 (struct complaints): Declare.
2151 (struct complaint): Make `message' constant.
2152 (internal_complaint): Declare.
2153 (complaint): Declare.
2154 (complaint_root): Delete declaration.
2155 (symfile_complaints): Delete declaration.
2156 (struct complaints): Add opaque declaration.
2157 (clear_complaints): Add a complaints parameter.
2158 * complaints.c: Update copyright.
2159 (enum complaint_series): Define.
2160 (complaint_root): Delete.
2161 (struct complaints): Define.
2162 (complaint_sentinel, symfile_complaint_book): New variables.
2163 (symfile_explanations, symfile_complaints): New variables.
2165 (get_complaints): New function.
2166 (vcomplaint): New function.
2167 (complaint): New function.
2168 (internal_complaint): New function.
2169 (complain): Call vcomplain with symfile_complaint.
2170 (clear_complaints): Rewrite.
2171 (_initialize_complaints): Use add_setshow_command.
2172 * Makefile.in (complaints.o): Update dependencies.
2173 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2174 to call to clear_complaints.
2175 (new_symfile_objfile, reread_symbols): Ditto.
2176 (oldsyms_complaint): Delete.
2177 (empty_symtab_complaint, unknown_option_complaint): Delete.
2178 (free_named_symtabs): Use complaint instead of complain.
2180 2002-09-18 Michael Snyder <msnyder@redhat.com>
2182 Contributed by Apple Computer, Inc. Merged with current sources
2183 by Adam Fedor <fedor@doc.com> [cagney].
2185 * objc-lang.c: First clean-up round: comments, indentation.
2186 * objc-lang.h: Ditto.
2187 * objc-lang.y: Ditto.
2189 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2191 * maint.c (maintenance_internal_error): Print the parameter as the
2193 (maintenance_internal_warning): New function.
2194 (_initialize_maint_cmds): Add command `maint internal-warning'.
2196 * defs.h (internal_warning, internal_vwarning): Declare.
2197 * utils.c (struct internal_problem): Define.
2198 (internal_vproblem): New function.
2199 (internal_warning): New function.
2200 (internal_vwarning): New function.
2201 (internal_warning_problem, internal_error_problem): New variables.
2202 (internal_verror): Just call internal_vproblem.
2204 2002-09-18 Michael Snyder <msnyder@redhat.com>
2206 * objc-lang.c: New file, support for Objective-C.
2207 Preliminary check-in, not yet integrated into gdb.
2208 * objc-lang.h: New file.
2209 * objc-exp.y: New file.
2211 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2213 * infrun.c (signal_stop_update): Convert definition to ISO C.
2214 (signal_print_update): Ditto.
2215 (signal_pass_update): Ditto.
2216 * inflow.c (terminal_save_ours): Ditto.
2218 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2221 * config/djgpp/fnchange.lst: Handle name clashes between
2222 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2225 * i386-linux-tdep.h: Fix tipo.
2227 2002-09-18 Adam Fedor <fedor@gnu.org>
2229 * MAINTAINERS: Add myself to the Write After Approval list.
2231 2002-09-18 Jim Blandy <jimb@redhat.com>
2233 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2234 texthigh and textlow to reader-specific structs caused
2235 objfile_relocate to miss them. This is fixable, but the work that
2236 the change was supposed to prepare GDB for never got done anyway.
2238 2002-09-18 David Carlton <carlton@math.stanford.edu>
2240 * MAINTAINERS: Alphabetize Write After Approval list.
2242 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2245 * values.c (value_static_field): Call read_var_value.
2247 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2249 * valops.c (hand_function_call): Align the initial stack pointer
2250 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2251 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2253 * mips-tdep.c (mips_frame_align): New function.
2254 (mips_gdbarch_init): Set frame_align.
2255 * gdbarch.sh (FRAME_ALIGN): New method.
2256 * gdbarch.h, gdbarch.c: Re-generate.
2258 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2260 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2263 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2265 * NEWS: Mention that MIPS $fp behavior changed.
2266 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2267 reference to FP_REGNUM.
2268 (mipsnbsd_cannot_store_register): Ditto.
2269 * mips-linux-nat.c: Update copyright.
2270 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2271 (mips_linux_cannot_store_register): Ditto.
2272 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2273 * config/mips/tm-mips.h: Update copyright.
2274 (FP_REGNUM): Delete macro.
2275 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2276 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2277 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2278 (mips_r3041_reg_names, mips_r3051_reg_names)
2279 (mips_r3081_reg_names): Replace "fp" with "".
2282 2002-09-17 Theodore A. Roth <troth@verinet.com>
2284 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2285 generic_read_register_dummy() (PR gdb/703).
2286 (avr_push_return_address): #if 0 out unused vars.
2287 (avr_gdbarch_init): Enable use of avr_push_return_address().
2289 2002-09-17 Michael Snyder <msnyder@redhat.com>
2291 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2292 RTE will take care of it.
2294 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2296 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2297 invalid, return SP_REGNUM.
2299 2002-09-17 Michael Snyder <msnyder@redhat.com>
2301 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2302 point registers without sign extension.
2304 2002-09-17 Andrew Cagney <cagney@redhat.com>
2306 * blockframe.c (deprecated_read_register_dummy): Rename
2307 generic_read_register_dummy.
2308 * frame.c (frame_unwind_signed_register): New function.
2309 (frame_unwind_unsigned_register): New function.
2310 * frame.h (frame_unwind_signed_register): Declare.
2311 (frame_unwind_unsigned_register): Declare.
2312 (deprecated_read_register_dummy): Rename
2313 generic_read_register_dummy.
2315 * h8300-tdep.c (h8300_frame_chain): Update.
2316 (h8300_frame_saved_pc): Update.
2317 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2318 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2319 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2320 (s390_frame_chain): Update.
2321 * v850-tdep.c (v850_find_callers_reg): Update.
2322 (v850_frame_saved_pc): Update.
2323 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2324 (m32r_find_callers_reg): Update.
2325 (m32r_frame_saved_pc): Update.
2326 * sh-tdep.c (sh_find_callers_reg): Update.
2327 (sh64_get_saved_pr): Update.
2328 (sh_init_extra_frame_info): Update.
2329 (sh_init_extra_frame_info): Update.
2330 (sh64_init_extra_frame_info): Update.
2331 (sh64_init_extra_frame_info): Update.
2332 * mcore-tdep.c (mcore_find_callers_reg): Update.
2333 (mcore_frame_saved_pc): Update.
2334 (mcore_init_extra_frame_info): Update.
2335 * i386-tdep.c (i386_frame_saved_pc): Update.
2336 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2337 (ia64_init_extra_frame_info): Update.
2338 (ia64_init_extra_frame_info): Update.
2339 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2340 * cris-tdep.c (cris_init_extra_frame_info): Update.
2341 * avr-tdep.c (avr_frame_chain): Update.
2342 (avr_init_extra_frame_info): Update.
2343 (avr_frame_saved_pc): Update.
2344 * arm-tdep.c (arm_find_callers_reg): Update.
2345 (arm_init_extra_frame_info): Update.
2346 (arm_frame_saved_pc): Update.
2348 2002-09-17 Tom Tromey <tromey@redhat.com>
2350 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2353 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2355 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2356 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2358 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2361 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2363 * osfsolib.c: Remove file, replaced by solib-osf.c.
2364 * Makefile.in: Remove compilation rules for osfsolib.c.
2366 2002-09-16 David Carlton <carlton@math.stanford.edu>
2368 * cp-valprint.c (cp_print_class_method): Correct args to
2369 check_stub_method_group.
2371 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2373 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2374 `set architecture'. Unify naming convention of functions.
2375 (h8300_skip_prologue): Improve prologue analysis.
2376 (h8300_push_arguments): Rewritten to more closely match GCC's
2377 bizarre argument-passing behavior, along with the comment describing
2379 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2380 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2381 sim, remote-e7000.c, remote-hms.c and remote.c
2383 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2385 * i386-tdep.c (gdb_print_insn_i386): Removed.
2386 (i386_print_insn): New function.
2387 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2388 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2391 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2393 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2396 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2398 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2399 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2400 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2402 2002-09-13 Christopher Faylor <cgf@redhat.com>
2404 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2406 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2408 * gdbtypes.c (check_stub_method): Make static.
2409 (check_stub_method_group): New function.
2410 * gdbtypes.h: Update prototypes.
2411 * cp-support.c: New file.
2412 * cp-support.h: New file.
2414 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2415 (update_method_name_from_physname): New function.
2416 (read_member_functions): Correct method names for operators
2417 and v3 constructors/destructors. Separate v2 constructors and
2419 * Makefile.in (stabsread.o): Update dependencies.
2420 (SFILES): Add cp-support.c.
2421 (COMMON_OBS): Add cp-support.o.
2422 (cp_support_h, cp-support.o): Add.
2424 * cp-valprint.c (cp_print_class_method): Call
2425 check_stub_method_group instead of check_stub_method. Remove
2427 * p-valprint.c (pascal_object_print_class_method): Likewise.
2428 * valops.c (search_struct_method): Likewise.
2429 (find_method_list, value_struct_elt_for_reference): Likewise.
2431 2002-09-13 Andrew Cagney <cagney@redhat.com>
2433 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2434 * gdbarch.h, gdbarch.c: Regenerate.
2436 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2438 * frame.c (find_saved_register): Delete function.
2439 * frame.h (find_saved_register): Delete declaration.
2442 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2444 * mips-tdep.c (read_next_frame_reg): Re-hack using
2445 frame_register_unwind.
2447 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2449 * mips-tdep.c (mips_get_saved_register): Re-hack using
2450 frame_register_unwind.
2452 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2454 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2455 vector. Will be useful for Interix.
2456 * gdbarch.h, gdbarch.c: Regenerate.
2458 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2459 name of the malloc function by NAME_OF_MALLOC.
2461 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2463 * value.h (find_function_in_inferior): Add const keyword to
2464 one of the parameters. Allows us to invoke this function with
2466 * valops.c (find_function_in_inferior): Likewise.
2468 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2470 * exec.c (xfer_memory): Fix compilation warning with old versions
2472 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2474 2002-09-12 David Carlton <carlton@math.stanford.edu>
2476 * symtab.h: Run through gdb_indent.h.
2477 Add 2002 to Copyright year list.
2479 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2481 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2483 * MAINTAINERS: Add myself to write after approval list.
2485 2002-09-11 J. Brobecker <brobecker@gnat.com>
2487 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2489 2002-09-11 J. Brobecker <brobecker@gnat.com>
2491 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2494 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2496 * procfs.c (do_detach): Clear current signal, not just fault.
2497 Corrects problem with breakpoint trap signal leaking to detached
2500 2002-09-10 Michael Snyder <msnyder@redhat.com>
2502 * buildsym.c (finish_block): Protect against null pointer.
2504 2002-09-10 Andrew Cagney <cagney@redhat.com>
2506 * infcmd.c (default_print_registers_info): Send all output to
2507 ``file'' instead of ``gdb_stdout''.
2509 2002-09-10 Michael Snyder <msnyder@redhat.com>
2511 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2512 LONGEST, and use signed register read (addresses are sign-
2515 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2517 * event-loop.c (gdb_do_one_event): Make public.
2518 * event-loop.h (gdb_do_one_event): Declare.
2520 2002-09-10 Jeff Law <law@redhat.com>
2522 * infttrace.c (child_resume): Simplify and rework to avoid
2525 2002-09-09 Fred Fish <fnf@intrinsity.com>
2527 * printcmd.c (print_scalar_formatted): "len" is the number of
2528 target bytes, NOT the number of target bits.
2530 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2532 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2533 * top.c (init_main): Set rl_terminal_name.
2535 2002-09-08 Aidan Skinner <aidan@velvet.net>
2537 * ada-lang.c (ada_array_bound, ada_type_match,
2538 _initialize_ada_language): Fix K&R definitions.
2539 * ada-tasks.c (get_current_task): Fix K&R definitions.
2540 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2542 2002-09-07 Christopher Faylor <cgf@redhat.com>
2544 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2547 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2549 * i386-tdep.c (i386_register_virtual_type,
2550 i386_register_convertible, i386_register_convert_to_virtual,
2551 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2552 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2553 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2554 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2555 Don't set push_arguments twice.
2557 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2558 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2559 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2560 sigtramp_end to NULL.
2561 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2563 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2565 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2568 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2569 * gdbarch.h, gdbarch.c: Re-generate.
2570 * blockframe.c (find_pc_sect_partial_function): Convert to use
2571 SIGTRAMP_START_P predicate.
2573 2002-09-05 Michael Snyder <msnyder@redhat.com>
2575 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2576 generic_dummy_frame method and old method. Also distinguish
2577 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2578 (arm_extract_return_value): Use new regcache method.
2580 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2581 adjustment that doesn't conform to the ABI.
2582 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2583 saved regcache, not from current regcache.
2585 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2587 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2590 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2592 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2593 if arm_apcs_32 is false.
2595 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2597 GDB 5.3 branch created.
2599 2002-09-03 Theodore A. Roth <troth@verinet.com>
2601 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2602 generic_unwind_get_saved_register.
2604 2002-09-03 David Carlton <carlton@math.stanford.edu>
2606 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2607 argument (PR gdb/653). Update call to smash_to_method_type.
2608 (read_structure_scope): Update call to dwarf2_add_member_fn.
2610 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2612 * x86-64-linux-tdep.c: Include gdb_string.h
2613 * x86-64-linux-nat.c: Ditto.
2615 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2617 * ada-exp.y (yyname, yyrule): Remap global variables that appear
2618 when YYDEBUG is set to 1.
2619 * c-exp.y: Likewise.
2620 * f-exp.y: Likewise.
2621 * jv-exp.y: Likewise.
2622 * m2-exp.y: Likewise.
2623 * p-exp.y: Likewise.
2625 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2627 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
2629 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
2630 solib_svr4_fetch_link_map_offsets to
2631 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
2632 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2633 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2634 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
2635 solib-svr4.o, and solib-legacy.o.
2636 * config/i386/tm-nbsd.h: Include solib.h.
2638 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2640 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
2641 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
2642 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
2643 comment noting that this needs its own target configuration.
2644 * config/i386/nbsd.mt: New file.
2645 * config/i386/nbsdaout.mt: Remove.
2646 * config/i386/nbsdelf.mt: Ditto.
2647 * config/i386/tm-nbsdaout.h: Ditto.
2649 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2651 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
2652 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
2653 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
2655 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
2656 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
2657 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
2659 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2661 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
2662 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
2663 * i386-tdep.h (i386bsd_init_abi): New prototype.
2664 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
2665 function declaration.
2666 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
2667 for NetBSD-a.out or NetBSD-ELF.
2668 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
2669 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
2670 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
2671 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
2673 (i386nbsd_pc_in_sigtramp): New function.
2674 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2675 i386nbsd_pc_in_sigtramp.
2676 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
2677 and i386nbsdelf_init_abi OS ABI handlers.
2678 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
2679 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
2681 2002-09-02 Mark Kettenis <kettenis@gnu.org>
2683 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
2684 registers if the target really has them.
2686 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2688 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
2691 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2693 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
2695 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
2696 (alphanbsd_skip_sigtramp_frame): New functions.
2697 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
2698 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
2699 to alphanbsd_sigcontext_addr.
2701 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
2703 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
2705 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
2706 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
2707 nbsd_pc_in_sigtramp.
2708 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
2709 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
2710 * nbsd-tdep.c: Include gdb_string.h.
2711 (nbsd_pc_in_sigtramp): New function.
2712 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
2713 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
2714 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2715 ppcnbsd_pc_in_sigtramp.
2716 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
2717 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
2718 shnbsd_pc_in_sigtramp.
2719 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
2720 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
2721 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
2723 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
2725 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
2726 watchpoints to NULL.
2727 (insert_breakpoints): set val field of watchpoints if NULL.
2730 2002-08-29 Jim Blandy <jimb@redhat.com>
2732 * symtab.c (lookup_symbol_aux): In the cases where we find a
2733 minimal symbol of an appropriate name and use its address to
2734 select a symtab to read and search, use `name' (as passed to us)
2735 as the demangled name when searching the symtab's global and
2736 static blocks, not the minsym's name.
2738 2002-08-29 Keith Seitz <keiths@redhat.com>
2740 * stack.c (print_frame_info_base): Always set current_source_symtab
2741 and current_source_line.
2743 2002-08-29 Donn Terry <donnte@microsoft.com>
2745 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
2747 2002-08-28 Keith Seitz <keiths@redhat.com>
2749 * stack.c (select_frame): Add FIXME concerning selected-frame
2751 (select_frame_command): Send selected-frame-level-changed
2752 event notification, but only if the level actually changed.
2753 (up_silently_base): Add selected-frame-level-changed event
2755 (down_silently_base): Likewise.
2757 2002-08-28 Andrew Cagney <ac131313@redhat.com>
2759 * Makefile.in: Update dependencies for all gdb/*.c files.
2761 2002-08-27 Tom Tromey <tromey@redhat.com>
2763 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
2764 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
2765 Update dependencies.
2766 * i387-tdep.c: Include gdb_string.h.
2767 * osabi.c: Likewise.
2768 * i386-linux-nat.c: Likewise.
2769 * lin-lwp.c: Likewise.
2770 * ax-gdb.c: Likewise.
2771 * signals/signals.c: Likewise.
2772 * jv-valprint.c: Likewise.
2773 * p-lang.c: Likewise.
2774 * c-valprint.c: Likewise.
2775 * cp-abi.c: Likewise.
2777 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
2779 * cli/cli-script.h (copy_command_lines): Export.
2780 * breakpoint.c: Include cli/cli-script.h.
2781 * Makefile.in (breakpoint.o): Update dependencies.
2783 2002-08-26 Michael Snyder <msnyder@redhat.com>
2785 * breakpoint.c (insert_breakpoints): Protect all references
2786 to 'process_warning'. Shorten long lines.
2788 2002-08-26 Joel Brobecker <brobecker@gnat.com>
2790 * cli/cli-script.c (copy_command_lines): New function.
2791 * defs.h (copy_command_lines): Export.
2792 * testsuite/gdb.base/commands.exp: New tests for commands
2793 attached to a temporary breakpoint, and for commands that
2794 delete the breakpoint they are attached to.
2796 2002-08-26 Michael Snyder <msnyder@redhat.com>
2798 * breakpoint.c (bpstat_stop_status): Instead of copying the
2799 pointer to the breakpoint commands struct, make a new copy
2800 of the struct and point to that.
2801 (bpstat_clear): Free the commands struct.
2802 (bpstat_clear_actions): Free the commands struct.
2803 (bpstat_do_actions): Free the command actions. Also execute
2804 the local cleanups, instead of deleting them.
2805 (delete_breakpoint): Leave the commands field of the bpstat
2806 chain alone -- it will be freed later.
2808 2002-08-26 Kevin Buettner <kevinb@redhat.com>
2810 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
2811 deleted in 2002-08-20 commit. This function is still used by
2814 2002-08-26 Keith Seitz <keiths@redhat.com>
2816 * gdb-events.sh: Add selected-frame-level-changed event.
2817 * gdb-events.c: Regenerated.
2818 * gdb-events.h: Regenerated.
2820 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
2823 * inflow.c (terminal_save_ours): New function to save terminal
2825 * inferior.h (terminal_save_ours): Declare.
2826 * target.c (debug_to_terminal_save_ours): New function.
2827 (cleanup_target): Defaults to_terminal_save_ours.
2828 (update_current_target): Inherit to_terminal_save_ours.
2829 (setup_target_debug): Set to_terminal_save_ours.
2830 * target.h (target_terminal_save_ours): New to save terminal settings.
2831 (target_ops): New member to_terminal_save_ours.
2832 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
2833 * hpux-thread.c (init_hpux_thread_ops): Likewise.
2834 * inftarg.c (init_child_ops): Likewise.
2835 * m3-nat.c (init_m3_ops): Likewise.
2836 * procfs.c (init_procfs_ops): Likewise.
2837 * wince.c (init_child_ops): Likewise.
2838 * win32-nat.c (init_child_ops): Likewise.
2839 * sol-thread.c (init_sol_thread_ops): Likewise.
2841 2002-08-26 Mark Kettenis <kettenis@gnu.org>
2843 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
2844 use regcache_* functions.
2845 (i386_gdbarch_init): Set store_return_value instead of
2846 deprecated_store_return_value.
2848 * regcache.c (regcache_raw_write_signed,
2849 regcache_raw_write_unsigned): New functions.
2850 * regcache.h (regcache_raw_write_signed,
2851 regcache_raw_write_unsigned): New prototypes.
2853 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2855 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
2856 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
2857 source file dependencies. Cleanup corresponding generator rules.
2859 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2861 * regcache.h (register_offset_hack): Declare.
2862 (regcache_cooked_read_using_offset_hack): Declare.
2863 (regcache_cooked_write_using_offset_hack): Declare.
2865 * regcache.c (register_offset_hack): New function.
2866 (regcache_cooked_read_using_offset_hack): New function.
2867 (regcache_cooked_write_using_offset_hack): New function.
2868 (regcache_dump): Check that the registers, according to their
2869 offset, are packed hard against each other.
2870 (cooked_xfer_using_offset_hack): New function.
2872 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2874 * regcache.c (struct regcache_descr): Add field register_type.
2875 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
2877 (init_regcache_descr): Initialize register_type. Pass the descr
2878 to init_legacy_regcache_descr. Use register_type instead of
2879 REGISTER_VIRTUAL_TYPE.
2880 (register_type): New function.
2881 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
2882 * regcache.h (register_type): Declare.
2884 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2886 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
2887 instead of deprecated_store_return_value. Fix fallout from
2888 2002-08-23 Andrew Cagney <cagney@redhat.com>.
2890 2002-08-25 Andrew Cagney <ac131313@redhat.com>
2892 * regcache.c (max_register_size): New function.
2893 (init_legacy_regcache_descr): Ensure that max_register_size is
2894 large enough for REGISTER_VIRTUAL_SIZE.
2895 * regcache.h (max_register_size): Declare.
2897 2002-08-24 Andrew Cagney <ac131313@redhat.com>
2899 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
2901 (e500_extract_return_value): Change type of valbuf pointer to
2904 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2906 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
2909 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
2910 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
2911 long long) to prevent compiler warning on 64-bit systems.
2913 2002-08-23 Andrew Cagney <cagney@redhat.com>
2915 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
2916 (DEPRECATED_STORE_RETURN_VALUE): New method.
2917 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
2918 * gdbarch.h, gdbarch.c: Re-generate.
2920 * values.c (set_return_value): Pass current_regcache to
2922 * arch-utils.h (legacy_store_return_value): Declare.
2923 * arch-utils.c (legacy_store_return_value): New function.
2924 (legacy_extract_return_value): Update parameters.
2926 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
2928 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2929 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2930 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2931 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2932 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2933 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2934 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2935 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2936 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2937 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
2939 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2940 * i386-tdep.c (i386_extract_return_value): Update.
2941 * arch-utils.c (legacy_extract_return_value): Update.
2942 * frv-tdep.c (frv_gdbarch_init): Update.
2943 * cris-tdep.c (cris_gdbarch_init): Update.
2944 * d10v-tdep.c (d10v_gdbarch_init): Update.
2945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2946 * m68k-tdep.c (m68k_gdbarch_init): Update.
2947 * mcore-tdep.c (mcore_gdbarch_init): Update.
2948 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2949 * s390-tdep.c (s390_gdbarch_init): Update.
2950 * sparc-tdep.c (sparc_gdbarch_init): Update.
2951 * sh-tdep.c (sh_gdbarch_init): Update.
2952 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2953 * v850-tdep.c (v850_gdbarch_init): Update.
2954 * avr-tdep.c (avr_gdbarch_init): Update.
2955 * ia64-tdep.c (ia64_gdbarch_init): Update.
2956 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2957 * vax-tdep.c (vax_gdbarch_init): Update.
2958 * alpha-tdep.c (alpha_gdbarch_init): Update.
2959 * arm-tdep.c (arm_gdbarch_init): Update.
2960 * mips-tdep.c (mips_gdbarch_init): Update.
2961 * i386-tdep.c (i386_gdbarch_init): Update.
2963 2002-08-23 Andrew Cagney <ac131313@redhat.com>
2965 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
2966 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
2968 2002-08-24 Mark Kettenis <kettenis@gnu.org>
2970 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
2973 2002-08-23 Joel Brobecker <brobecker@gnat.com>
2975 * infrun.c (handle_inferior_event): Move a comment outside of a
2976 function call, in order to avoid indent reformatting this part
2977 of the code in an unreadable way.
2979 2002-08-23 Grace Sainsbury <graces@redhat.com>
2981 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
2982 when breakpoints fail. Move general breakpoint error messages to
2984 * breakpoint.c (insert_breakpoints): Change warnings when
2985 breakpoints are nto inserted to specify the type. Remove call to
2986 memory_error when hardware breakpoints can't be inserted. Remove
2987 multiple calls to warning so all messages are sent to the user at
2989 (delete_breakpoints): Make insert error messsages more explicit.
2991 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
2993 * ChangeLog: Move gdbserver entries after GDB 5.2 to
2994 gdbserver/ChangeLog.
2996 2002-08-23 Mark Kettenis <kettenis@gnu.org>
2998 * i386-tdep.c: Include "objfiles.h".
2999 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3000 skip_trampoline_code.
3001 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3002 (CPLUS_MARKER): Define to '.'.
3004 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3006 (linux_corefile_thread_callback): Increase args->num_notes.
3007 (linux_make_note_section): Initialize thread_args.num_notes, and
3008 use it to determine whether notes for any threads were created.
3010 2002-08-23 Donn Terry <donnte@microsoft.com>
3012 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3013 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3015 (write_with_trace): Conditionalize out the switch branch handling
3016 PCSHOLD if the corresponding macro is not defined. Likewise for
3017 PRSABORT and PRSTOP.
3018 This change will be needed by the Interix port.
3020 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3022 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3023 write_register wherever possible instead of manipulating the
3024 register bytes directly.
3025 Assign VALUE_CONTENTS to a variable and use that.
3026 The GPR numbers are now dependent on the architecture.
3028 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3030 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3032 (skip_prologue): Add support for BookE/e500 instructions.
3033 (e500_extract_return_value): New function.
3034 (frame_get_saved_regs): Add support for saving ev registers and
3036 (e500_store_return_value): New function.
3037 (rs6000_gdbarch_init): Move up default intializations of
3038 deprecated_extract_return_value and store_return_value. Overwrite
3039 init of store_return_value with e500 specific version.
3040 Set extract_return_value for e500.
3042 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3044 * blockframe.c (generic_call_dummy_register_unwind): Use
3045 regcache_cooked_read to catch cases in which the variable is
3046 stored in a pseudo register.
3048 2002-08-22 Andrew Cagney <cagney@redhat.com>
3050 * NEWS: Mention that the i960 has been made obsolete.
3051 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3053 (remote-nrom.o): Obsolete target.
3054 (remote-nindy.o, i960-tdep.o): Ditto.
3055 * remote-nrom.c: Make file obsolete.
3056 * remote-nindy.c, remote-vx960.c: Ditto.
3057 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3058 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3059 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3060 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3061 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3062 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3063 i960-*-vxworks* obsolete.
3064 * MAINTAINERS: Note that the i960 is obsolete.
3066 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3068 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3069 detach to allow reinitialization.
3071 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3073 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3076 2002-08-22 Jim Blandy <jimb@redhat.com>
3078 * coffread.c (coff_symfile_read): Don't try to read the line
3079 number table from disk if the image file doesn't have a symbol
3080 table; we'll never actually look at the info anyway, and Windows
3081 ships DLL's with bogus file offsets for the line number data.
3083 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3085 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3088 2002-08-21 Michael Snyder <msnyder@redhat.com>
3090 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3091 (MSYMBOL_SIZE): Replace macro with function.
3092 (DEFAULT_MIPS_TYPE): Delete unused macro.
3093 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3094 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3096 2002-08-21 Jim Blandy <jimb@redhat.com>
3098 * valops.c (value_cast): Simplify and correct logic for doing a
3099 static cast from a pointer to a base class to a pointer to a
3102 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3104 * infcmd.c (default_print_registers_info): Replace
3106 (registers_info): Use gdbarch_print_registers_info instead of
3108 * inferior.h (default_print_registers_info): Replace
3110 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3111 (DO_REGISTERS_INFO): Change to a predicate function.
3112 * gdbarch.h, gdbarch.c: Regenerate.
3114 2002-08-21 Keith Seitz <keiths@redhat.com>
3116 * gdb-events.sh: Add target-changed event.
3117 * gdb-events.c: Regenerated.
3118 * gdb-events.c: Regenerated.
3119 * valops.c (value_assign): Add target-changed event notification
3120 to inlval_register, lval_memory, and lval_reg_frame_relative.
3122 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3124 * NEWS: Add an entry regarding the improvement of the next/step
3125 operation on Alpha Tru64 multi-processor machines.
3127 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3129 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3131 * Makefile.in: Update all _h macro definitions.
3132 * Makefile.in (install-gdbtk): Move to install section.
3133 (rdi-share/libangsd.a): Move to end of file.
3135 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3137 * frame.c (frame_register_unwind): When a register, set addrp to
3138 the register's byte.
3140 2002-08-20 Michael Snyder <msnyder@redhat.com>
3142 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3143 used locally, so move them from the target machine header to here.
3144 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3145 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3147 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3149 2002-08-20 Andrew Cagney <cagney@redhat.com>
3151 * NEWS: Mention that the Apollo line was made obsolete.
3152 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3153 m68*-hp-hpux* obsolete.
3154 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3155 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3156 * buildsym.c (make_blockvector): Make static.
3157 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3158 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3159 (ALLDEPFILES): Remove dstread.c.
3160 (dstread.o): Obsolete make rule.
3161 * dstread.c: Makefile obsolete.
3163 * config/m68k/hp300hpux.mt: Ditto.
3164 * config/m68k/hp300hpux.mh: Ditto.
3165 * config/m68k/hp300bsd.mt: Ditto.
3166 * config/m68k/hp300bsd.mh: Ditto.
3167 * config/m68k/apollo68b.mt: Ditto.
3168 * config/m68k/apollo68v.mh: Ditto.
3169 * config/m68k/apollo68b.mh: Ditto.
3171 2002-08-20 Michael Snyder <msnyder@redhat.com>
3173 * mips-tdep.c (mips_in_return_stub): Make static.
3174 (mips_gdbarch_init): Set in_solib_return_trampoline.
3175 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3177 2002-08-20 Michael Snyder <msnyder@redhat.com>
3179 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3180 * gdbarch.c, gdbarch.h: Regenerate.
3181 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3183 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3185 2002-08-20 Michael Snyder <msnyder@redhat.com>
3187 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3188 (mips_gdbarch_init): Set skip_trampoline_code,
3189 in_solib_call_trampoline.
3190 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3191 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3193 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3195 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3197 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3198 vector type for ev registers.
3199 (e500_pseudo_register_read): New function.
3200 (e500_pseudo_register_write): New function.
3201 (e500_dwarf2_reg_to_regnum): New function.
3202 (PPC_UISA_NOFP_SPRS): New macro.
3203 (PPC_EV_REGS): New macro.
3204 (PPC_GPRS_PSEUDO_REGS): New macro.
3205 (registers_e500): New register set for e500.
3206 (variants): Add e500 variant.
3207 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3208 before setting architectural dependent variations. Initialize ev
3209 registers numbers. Add case for e500 architecture. Set the
3210 number of pseudo registers.
3212 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3214 * rs6000-tdep.c: Clean up comments.
3216 2002-08-20 Andrew Cagney <cagney@redhat.com>
3218 * h8300-tdep.c: Re-indent file.
3220 2002-08-20 Jim Blandy <jimb@redhat.com>
3222 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3225 2002-08-20 Keith Seitz <keiths@redhat.com>
3227 * breakpoints.c (watch_command_1): Use internal breakpoint
3228 when setting a watchpoint_scope breakpoint.
3230 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3232 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3233 (build_builtin_type_vec64i): Ditto.
3234 (build_builtin_type_vec128): Ditto.
3235 (build_builtin_type_vec128i): Ditto.
3237 2002-08-19 Michael Snyder <msnyder@redhat.com>
3239 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3240 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3241 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3242 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3243 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3244 CALL_DUMMY_ADDRESS): Delete.
3245 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3246 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3247 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3248 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3249 push_return_address.
3250 (mips_register_raw_size, mips_eabi_use_struct_convention,
3251 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3252 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3253 mips_init_extra_frame_info, mips_eabi_push_arguments,
3254 mips_n32n64_push_arguments, mips_push_return_address,
3255 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3256 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3258 2002-08-19 Michael Snyder <msnyder@redhat.com>
3260 * mips-tdep.c (mips_frame_num_args): New function.
3261 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3262 frame_saved_pc, frame_args_address, frame_locals_address,
3263 frame_num_args, and frame_args_skip.
3264 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3265 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3266 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3267 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3269 2002-08-20 Michael Snyder <msnyder@redhat.com>
3271 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3272 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3273 * mips-tdep.c (mips_store_struct_return): New function.
3274 (mips_extract_struct_value_address): New function.
3275 (mips_gdbarch_init): Set store_struct_return and
3276 extract_struct_value_address.
3278 2002-08-20 David Carlton <carlton@math.stanford.edu>
3280 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3281 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3282 (read_file_scope): Check that line_header is nonzero before
3283 decoding macro information.
3285 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3287 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3288 flag the general-purpose registers as floating-point on targets
3289 that don't support the floating-point registers.
3291 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3293 * rs6000-tdep.c (altivec_register_p): Delete.
3294 (rs6000_do_altivec_registers): Delete.
3295 (rs6000_altivec_registers_info): Delete.
3296 (rs6000_do_registers_info): Delete.
3297 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3298 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3300 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3302 * infcmd.c (do_registers_info): Print vector registers in hex
3304 (print_vector_info): Check that printing registers
3306 (print_float_info): Ditto.
3308 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3310 * mips-tdep.c (mips_gdbarch_init): Update.
3311 (mips_o32_extract_return_value): Rewrite.
3312 (mips_o32_store_return_value): Rewrite.
3313 (mips_o32_xfer_return_value): New function.
3314 (mips_xfer_register): Tweak debug print message. Allow for
3315 buf_offset when dumping the value transfered.
3317 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3319 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3320 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3321 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3322 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3323 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3325 2002-08-14 Michael Snyder <msnyder@redhat.com>
3327 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3329 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3331 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3333 (P): New macro to define a register as a pseudo register.
3334 (R, R4, R8, R16, FR32, R64, R0): Updated.
3335 (struct variant): Add new fields for number of pseudo registers
3336 and number of total registers.
3337 (tot_num_registers): New macro replacing....
3338 (num_registers): ...deleted macro.
3339 (num_registers): New function.
3340 (num_pseudo_registers): New function.
3341 (variants): Update all variants to intialize new fields correctly.
3342 Postpone initialization of number of pseudo regs and real regs.
3343 (init_variants): New function.
3344 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3347 2002-08-19 David Carlton <carlton@math.stanford.edu>
3349 * valops.c (search_struct_field): Change error message to treat
3350 return value of 0 from value_static_field as meaning that field is
3352 (value_struct_elt_for_reference): Ditto.
3353 * values.c (value_static_field): Treat an unresolved location the
3354 same as a nonexistent symbol. Fix PR gdb/635.
3355 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3356 enclosed. Fix PR gdb/574.
3357 * MAINTAINERS: Add self to Write After Approval list.
3359 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3361 * mips-tdep.c (mips_xfer_register): New function.
3362 (mips_n32n64_extract_return_value): Rewrite.
3363 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3364 instead of deprecated_extract_return_value.
3366 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3368 * rs6000-tdep.c (TDEP): Delete macro.
3369 (branch_dest): Replace use of TDEP macro with its body.
3370 (rs6000_pop_frame): Ditto.
3371 (rs6000_push_arguments): Ditto.
3372 (rs6000_skip_trampoline_code): Ditto.
3373 (rs6000_frame_saved_pc): Ditto.
3374 (rs6000_frame_chain): Ditto.
3375 (rs6000_register_name): Ditto.
3376 (rs6000_register_byte): Ditto.
3377 (rs6000_register_raw_size): Ditto.
3378 (rs6000_register_virtual_type): Ditto.
3379 (rs6000_register_convertible): Ditto.
3380 (rs6000_convert_from_func_ptr_addr): Ditto.
3382 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3384 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3386 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3387 MIPS_LINUX_JB_ELEMENT_SIZE.
3388 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3389 for MAX_REGISTER_RAW_SIZE arrays.
3390 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3391 MIPS_LINUX_JB_ELEMENT_SIZE.
3393 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3395 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3397 2002-08-19 Aidan Skinner <aidan@velvet.net>
3399 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3400 ada-valprint.c ada-tasks.c.
3401 (YYFILES): Add ada-exp.y.
3402 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3403 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3404 (ada-exp.tab.o): New target.
3406 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3408 * regcache.c (regcache_xfer_part): New function.
3409 (regcache_raw_read_part): New function.
3410 (regcache_raw_write_part): New function.
3411 (regcache_cooked_read_part): New function.
3412 (regcache_cooked_write_part): New function.
3413 * regcache.h (regcache_raw_read_part): Declare.
3414 (regcache_raw_write_part): Declare.
3415 (regcache_cooked_read_part): Declare.
3416 (regcache_cooked_write_part): Declare.
3418 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3420 * remote.c (remote_open_1): Add async_p.
3421 (remote_async_open_1): Delete.
3422 (open_remote_target): Delete.
3423 (remote_open, extended_remote_open): Update calls to remote_open_1.
3424 (remote_async_open, extended_remote_async_open): Call
3425 remote_open_1 instead of remote_async_open_1.
3427 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3429 * blockframe.c: Fix a few coding standard violations.
3431 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3433 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3435 * config/i386/tm-i386sco5.h: ... here. File removed.
3436 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3438 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3439 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3440 (TM_FILE): Set to tm-i386.h.
3441 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3442 * config/i386/tm-i386v.h: Remove file.
3443 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3444 instead of "i386/tm-i386v.h".
3445 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3446 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3448 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3449 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3452 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3454 * config/i386/nm-i386v.h: Add protection against
3456 (i386_register_u_addr): Remove prototype.
3457 (register_u_addr): New prototype.
3458 (REGISTER_U_ADDR): Redefine accordingly.
3459 * i386v-nat.c: Improve several comments.
3460 (i386_register_u_addr): Change signature and rename to
3461 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3464 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3466 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3467 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3468 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3469 deprecated_extract_return_value.
3470 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3471 rename mips_o32o64_push_arguments.
3472 (mips_gdbarch_init): Update.
3473 (mips_extract_return_value): Delete.
3474 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3475 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3476 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3477 (mips_n32n64_extract_return_value): Clone
3478 mips_extract_return_value.
3479 (mips_store_return_value): Delete.
3480 (mips_o32_store_return_value): Clone mips_store_return_value.
3481 (mips_o64_store_return_value): Clone mips_store_return_value.
3482 (mips_eabi_store_return_value): Clone mips_store_return_value.
3483 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3485 2002-08-18 Aidan Skinner <aidan@velvet.net>
3487 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3488 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3490 2002-08-18 Aidan Skinner <aidan@velvet.net>
3492 * ada-lang.c: Run through gdb_indent.sh.
3493 * ada-lang.h: Run through gdb_indent.sh.
3494 * ada-tasks.c: Run through gdb_indent.sh.
3495 * ada-typeprint.c: Run through gdb_indent.sh.
3496 * ada-valprint.c: Run through gdb_indent.sh.
3498 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3500 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3503 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3505 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3507 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3508 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3510 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3511 write_register_gen instead of write_register_bytes.
3513 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3514 i[3456]-*-osf1mk* configurations have been made obsolete.
3515 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3516 i[3456]86-*-osf1mk* hosts obsolete.
3517 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3519 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3520 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3521 config/i386/i386m3.mt, config/i386/nm-m3.h,
3522 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3523 config/i386/i386mk.mh, config/i386/i386mk.mt,
3524 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3526 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3527 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3528 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3530 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3532 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3533 (hppa_value_returned_from_stack): Declare.
3534 (hppa_extract_return_value): Declare.
3535 * config/pa/hppa.mt: New file.
3536 * configure.tgt: Recognize hppa*-*-*.
3537 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3539 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3541 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3544 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3546 * top.c (gdb_rl_operate_and_get_next): Make sure
3547 operate-and-get-next functions correctly even when the history
3548 list is completely filled.
3550 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3552 * MAINTAINERS (Target Instruction Set Architectures): Rename
3553 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3554 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3555 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3556 already listed under Host/Native.
3558 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3559 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3562 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3564 * config/ia64/ia64.mt: New file.
3565 * config/alpha/alpha.mt: New file.
3566 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3567 ia64-linux-gnu. Mention that ia64-elf is broken.
3568 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3570 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3572 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3573 generic_func_frame_valid instead of func_frame_valid.
3575 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3577 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3578 procfs appears to be broken when debugging on multi-processor
3579 machines. So enable software single stepping in order to avoid
3580 using the procfs interface to do next/step operations, using
3581 internal breakpoints instead.
3583 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3584 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3585 make this pc address equal to the value it would have if the
3586 system stepping capability was used. Also set a new flag used
3587 to ensure that we don't readjust the PC one more time later.
3589 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3590 address by DECR_PC_AFTER_BREAK when software single step is
3591 in use for this architecture, as this has already been taken
3592 care of in handle_inferior_event().
3594 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3596 * infrun.c (handle_inferior_event): Minor reformatting, to make
3597 a rather long condition expression easier to read.
3599 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3601 * Makefile.in (gdbtk.o): Move to end of file.
3602 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3603 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3604 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3605 (gdbtk-wrapper.o, gdbres.o): Ditto.
3607 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3609 * Makefile.in (copying.o): Separate out compile rule.
3610 (hpux-thread.o, procfs.o, signals.o): Ditto.
3611 (v850ice.o, z8k-tdep.o): Ditto.
3612 (tui-file.o): Move to TUI section.
3613 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3614 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3616 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3618 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
3619 skip_trampoline_code, for better namespace-proofing.
3621 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
3623 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3625 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
3627 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3629 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
3630 signal, check whether we hit a breakpoint before checking for a
3631 single step breakpoint. Otherwise, GDB fails to notice that a
3632 breakpoint has been hit when stepping onto a breakpoint.
3634 2002-08-16 Keith Seitz <keiths@redhat.com>
3636 * gdb-events.sh (clear_gdb_event_hooks): New function.
3637 * gdb-events.c: Regenerate.
3638 * gdb-events.h: Regenerate.
3640 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3642 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
3643 not_a_sw_breakpoint.
3644 * breakpoint.h (bpstat_stop_status): Add parameter names.
3646 2002-08-16 Grace Sainsbury <graces@redhat.com>
3648 * remote.c (remote_insert_hw_breakpoint)
3649 (remote_remove_hw_breakpoint): Fix calculation of length field
3652 2002-08-15 Michael Snyder <msnyder@redhat.com>
3654 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
3655 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
3656 (supply_fpregset): Ditto.
3658 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
3659 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
3660 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
3661 (TARGET_READ_SP): Delete.
3662 (DO_REGISTERS_INFO): Delete.
3663 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
3665 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
3666 from macros to functions.
3668 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
3669 (mips_register_convertible, mips_register_convert_to_virtual,
3670 mips_register_convert_to_raw): Make static.
3671 (mips_read_sp): New function.
3672 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
3673 (mips_do_registers_info): Make static.
3674 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
3675 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
3676 (mips_register_convert_from_type, mips_register_convert_to_type):
3678 (mips_gdbarch_init): Set up function_start_offset,
3679 register_virtual_size, pc_in_sigtramp.
3681 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3683 * infcmd.c (vector_info): New function.
3684 (_initialize_infcmd): Add command "info vector".
3685 (print_vector_info): New function.
3687 * gdbarch.sh (PRINT_VECTOR_INFO): New method
3688 * gdbarch.h, gdbarch.c: Regenerate.
3690 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3692 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
3693 ``print_all''. Only print vector registers when ``print_all''.
3695 2002-08-15 Andrew Cagney <ac131313@redhat.com>
3697 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
3698 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
3700 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
3701 Add `args' parameter.
3702 * gdbarch.h, gdbarch.c: Regenerate.
3704 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
3706 * infcmd.c (float_info): Call print_float_info.
3707 (print_float_info): New function. By default, print the
3708 floating-point registers.
3710 * arch-utils.h (default_print_float_info): Delete declaration.
3711 * arch-utils.c (default_print_float_info): Delete function.
3713 2002-08-16 Mark Kettenis <kettenis@gnu.org>
3715 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
3718 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
3721 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
3722 * configure.host: Make i[3456]86-*-aix host obsolete.
3723 * configure.tgt: Make i[3456]86-*-aix target obsolete.
3724 * config/i386/i386aix.mh, config/i386/i386aix.mt,
3725 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
3726 config/i386/xm-i386aix.h: Make files obsolete.
3727 * i386aix-nat.c: Make file obsolete.
3728 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
3729 (i386aix-nat.o): Make target obsolete.
3731 * config/i386/nm-gnu.h: Removed.
3732 * config/i386/nm-i386gnu.h: New file.
3733 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
3734 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
3736 * config/i386/tm-i386gnu.h: ... here. Removed.
3737 * config/i386/xm-i386gnu.h: Removed.
3738 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
3739 (NAT_FILE): Set to nm-i386gnu.h.
3740 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
3741 * i386-tdep.c: New file.
3742 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
3743 (i386gnu-tdep.o): Specify dependencies.
3745 2002-08-15 Mark Kettenis <kettenis@gnu.org>
3747 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
3748 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
3749 Adjust a few comments to reflect reality a bit closer.
3750 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
3751 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
3752 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
3753 target_insert_watchpoint, target_remove_watchpoint):
3755 * config/i386/nm-i386sco5.h: ... here.
3756 (kernel_u_size): Add prototype. Improve a few comments and add
3757 protection against multiple inclusion.
3759 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
3762 * uw-thread.c (SP_ARG0): Define if not already defined.
3763 * config/i386/tm-i386.h (SO_ARG0): Remove define.
3765 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
3767 * config/i386/tm-i386.h: Don't include "regcache.h".
3769 * i387-tdep.h (i387_print_float_info): New prototype.
3770 * i387-tdep.c (print_i387_value, print_i387_ext,
3771 print_i387_status_word, print_i387_control_word): Add `struct
3772 ui_file *' argument and use it for output.
3773 (i387_print_float_info): Renamed from i387_float_info. Add
3774 `struct gdbarch *' and `struct ui_file *' arguments and use the
3776 * i386-tdep.c: Include "i387-tdep.h".
3777 (i386_gdbarch_init): Set print_float_info.
3778 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
3779 (FLOAT_INFO): Remove define.
3781 2002-08-13 Michael Snyder <msnyder@redhat.com>
3783 * mips-tdep.c (mips_push_arguments): Rename to
3784 mips_eabi_push_arguments, and tune for EABI.
3785 (MIPS_REGS_HAVE_HOME_P): Delete.
3786 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
3787 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
3788 Delete references to mips_regs_have_home_p.
3790 2002-08-14 Keith Seitz <keiths@redhat.com>
3792 * Makefile.in (install-gdbtk): Create insight plugin directory.
3793 Install plugins.tcl file.
3795 2002-08-14 Keith Seitz <keiths@redhat.com>
3797 * configure.in: Move SUBDIRS to near top of the file so that
3798 --enable options may add things to it.
3799 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
3800 * configure: Regenerate.
3802 2002-08-13 Michael Snyder <msnyder@redhat.com>
3804 * mips-tdep.c (mips_o32o64_push_arguments): New function,
3805 cloned from mips_push_arguments, tuned for o32/o64 ABI.
3806 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
3808 2002-08-13 Andrew Cagney <ac131313@redhat.com>
3810 * vax-tdep.c (vax_get_saved_register): Delete function.
3811 (vax_gdbarch_init): Update.
3812 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
3813 (ns32k_gdbarch_init): Update.
3814 * alpha-tdep.c (alpha_get_saved_register): Delete function.
3815 (alpha_gdbarch_init): Update.
3817 2002-08-13 Andrew Cagney <cagney@redhat.com>
3819 * regcache.c (init_regcache_descr): Overallocate the
3820 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
3821 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
3823 (set_register_cached): Add range checking assertions. Use
3826 2002-08-13 Mark Kettenis <kettenis@gnu.org>
3828 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
3829 numbers for MMX registers.
3831 2002-08-13 Andrew Cagney <cagney@redhat.com>
3833 * i386-tdep.c (i386_gdbarch_init): Use
3834 generic_unwind_get_saved_register.
3836 2002-08-13 Kevin Buettner <kevinb@redhat.com>
3838 * procfs.c (procfs_can_use_hw_breakpoint): New function.
3839 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
3841 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
3842 Delete. Add comment regarding this now-deleted target method.
3844 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3846 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
3847 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
3848 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
3849 real PC and the page number (if it's within the memory bank window).
3850 (m68hc11_pseudo_register_write): Likewise when saving.
3851 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
3852 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
3853 (m68hc11_register_raw_size): And use 32-bit for it.
3854 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
3855 16K memory bank is used by the prog; also use the virtual pc.
3857 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3859 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
3860 (m68hc11_gdbarch_init): Install it in gdbarch.
3861 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
3862 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
3863 (MSYMBOL_SIZE): New for documentation.
3864 (insn_return_kind): Enum to specify how a function returns.
3865 (frame_extra_info): Cleanup and record the return mode.
3866 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
3867 register in address computation.
3868 (m68hc11_get_return_insn): New to obtain the return instruction used
3870 (m68hc11_frame_init_saved_regs): Take into account the return
3871 instruction used by the function for far and interrupt functions.
3872 (m68hc11_init_extra_frame_info): Take into account page register.
3873 (m68hc11_frame_args_address): Adjust according to the return mode.
3874 (show_regs): Print page register only when it's used.
3876 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3878 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
3879 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
3880 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
3882 (m68hc11_register_raw_size): Likewise.
3884 2002-08-13 Andrew Cagney <cagney@redhat.com>
3886 * i386-tdep.c (i386_register_name): Handle mmx registers.
3887 (mmx_regnum_p): New function.
3888 (i386_mmx_names): New array.
3889 (mmx_num_regs): New variable.
3890 (i386_pseudo_register_read): New function.
3891 (i386_pseudo_register_write): New function.
3892 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
3894 * regcache.c (regcache_raw_read_unsigned): New function.
3895 (regcache_raw_read_signed): New function.
3896 * regcache.h (regcache_raw_read_unsigned): Declare.
3897 (regcache_raw_read_signed): Declare.
3899 2002-08-13 Andrew Cagney <cagney@redhat.com>
3901 * regcache.c (regcache_raw_read_as_address): Delete function.
3902 (regcache_cooked_read_signed): New function.
3903 (regcache_cooked_read_unsigned): New function.
3904 * regcache.h (regcache_cooked_read_signed): Declare.
3905 (regcache_cooked_read_unsigned): Declare.
3906 (regcache_raw_read_as_address): Delete declaration.
3908 * blockframe.c (generic_read_register_dummy): Use
3909 regcache_cooked_read_unsigned.
3910 * i386-tdep.c (i386_extract_struct_value_address): Use
3911 regcache_cooked_read_unsigned.
3913 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3915 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
3916 double sizes according to ELF ABI flags.
3917 (gdbarch_tdep): Record elf_flags.
3919 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3921 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
3922 (m6812_prolog): They can appear in 68HC12 function prologue.
3923 (m68hc11_frame_chain): Cleanup.
3925 2002-08-12 Andrew Cagney <cagney@redhat.com>
3927 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
3929 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
3930 (i386_linux_register_raw_size): Delete function.
3931 (i386_linux_init_abi): Update.
3932 * i386-tdep.c (i386_register_raw_size): Delete function.
3933 (i386_register_byte): Delete function.
3934 (i386_gdbarch_init): Update.
3935 (i386_register_size): Delete array.
3936 (i386_register_offset): Delete array.
3938 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
3939 (REGISTER_RAW_SIZE): Delete macro.
3940 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
3941 (REGISTER_BYTE): Delete macro.
3943 2002-08-11 Aidan Skinner <aidan@velvet.net>
3945 * ada-lang.c (ada_lookup_partial_symbol)
3946 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
3947 prototype names so that grep ^func works properly.
3949 * ada-lang.c (ada_array_element_type)
3950 (ada_lookup_partial_symbol): Fix typos in parameter list.
3952 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
3953 Fix prototype names so that grep ^func works properly.
3955 2002-08-10 Andrew Cagney <cagney@redhat.com>
3956 Elena Zannoni <ezannoni@redhat.com>
3957 Martin M. Hunt <hunt@redhat.com>
3959 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
3960 (build_builtin_type_vec128i): Set the vector bit.
3961 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
3962 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
3963 (build_builtin_type_vec64): New function.
3964 (build_builtin_type_vec64i): New function.
3965 (build_gdbtypes): Initialize builtin_type_vec64 and
3966 builtin_type_vec64i.
3968 2002-08-09 Andrew Cagney <cagney@redhat.com>
3970 * regcache.c (regcache_dump): Compare the register offset
3972 * arch-utils.c (generic_register_byte): New function.
3973 * arch-utils.h (generic_register_byte): Declare.
3974 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
3975 * gdbarch.h, gdbarch.c: Regenerate.
3977 2002-08-09 Andrew Cagney <cagney@redhat.com>
3979 * regcache.c: Include "gdbcmd.h"
3980 (_initialize_regcache): Add commands "maintenance print
3981 registers", "maintenance print raw-registers" and "maintenance
3982 print cooked-registers".
3983 (enum regcache_dump_what): Define.
3984 (dump_endian_bytes): New function.
3985 (regcache_dump): New function.
3986 (regcache_print): New function.
3987 (maintenance_print_registers): New function.
3988 (maintenance_print_raw_registers): New function.
3989 (maintenance_print_cooked_registers): New function.
3990 * Makefile.in (regcache.o): Update dependencies.
3992 2002-08-09 Michael Snyder <msnyder@redhat.com>
3994 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
3995 (mips_push_arguments): Correct some comments. Use paddr_nz
3996 for printing addresses in debug output. Replace static
3997 allocation using MAX_REGISTER_RAW_SIZE with alloca.
3998 (mips_n32n64_push_arguments): New function, cloned from
3999 mips_push_arguments and tuned for the n32/n64 ABI.
4000 (mips_push_register): Buffer needs dynamic allocation.
4001 (mips_print_register): Ditto.
4002 (do_gp_register_row): Ditto.
4003 (mips_store_return_value): Ditto.
4004 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4006 2002-08-09 Don Howard <dhoward@redhat.com>
4008 * memattr.c (mem_info_command): Print special case of upper bound
4009 as max CORE_ADDR + 1.
4011 2002-08-08 Michael Snyder <msnyder@redhat.com>
4013 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4014 returns structs by ref if they're too big to fit in two registers.
4016 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4018 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4020 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4021 mips_find_saved_regs().
4022 (mips_pop_frame): Likewise.
4024 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4026 * blockframe.c (frame_saved_regs_register_unwind): Revise
4027 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4030 2002-08-09 Grace Sainsbury <graces@redhat.com>
4032 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4033 T-packets; the 'a' is not taken as a register number.
4034 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4035 (remote_stopped_data_address): New functions; add to target
4037 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4038 prototypes to match other implementations of this
4039 function. replace integer argument with pointer -- the length
4040 field in the Z-packet is the length of what is pointed to or 1 if
4041 pointer is null. Add to target vector.
4042 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4046 * remote.c (remote_wait): Add support to extract optional
4047 watchpoint information from T-packet. Ignore unrecognized
4048 optional info in T-packet.
4049 (remote_async_wait): Ditto.
4051 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4053 * cli/cli-dump.c: Change fopen modes to use binary open modes
4054 as defined in include/fopen-bin.h throughout.
4056 2002-08-08 Michael Snyder <msnyder@redhat.com>
4058 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4060 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4062 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4063 assertion failure by returning early after a warning.
4065 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4067 * mips-tdep.c (mips_find_saved_regs): Make static.
4068 (mips_frame_init_saved_regs): New function.
4069 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4070 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4071 (mips_find_saved_regs): Delete declaration.
4073 2002-08-08 Grace Sainsbury <graces@redhat.com>
4075 * remote.c (remote_wait, remote_async_wait): Change
4076 thread_num from int to ULONGEST.
4077 (unpack_varlen_hex): Change result parameter from
4078 int * to ULONGEST *.
4080 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4082 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4083 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4085 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4087 2002-08-08 Andrew Cagney <cagney@redhat.com>
4089 * gcore.c (override_derive_stack_segment): Delete variable.
4090 (preempt_derive_stack_segment): Delete function.
4091 (derive_stack_segment): Delete function.
4092 (default_derive_stack_segment): Renamed to derive_stack_segment.
4093 (override_derive_heap_segment): Delete variable.
4094 (preempt_derive_heap_segment): Delete function.
4095 (derive_heap_segment): Delete function.
4096 (default_derive_heap_segment): Rename to derive_heap_segment.
4098 2002-08-06 Michael Snyder <msnyder@redhat.com>
4100 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4101 * mips-tdep.c (mips_EABI_use_struct_convention,
4102 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4103 New functions. (mips_use_struct_convention): Delete.
4104 (mips_gdbarch_init): set use_gdbarch_convention.
4106 2002-08-06 Michael Snyder <msnyder@redhat.com>
4108 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4109 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4110 mips_o32_reg_struct_has_addr): New functions.
4111 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4113 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4115 * regcache.c (pseudo_register): Delete function.
4116 (fetch_register): Delete function.
4117 (store_register): Delete function.
4118 (regcache_raw_read, legacy_read_register_gen): Use
4119 target_fetch_registers instead of fetch_register.
4120 (legacy_write_register_gen, regcache_raw_write): Use
4121 target_store_register instead of store_register.
4122 (write_register_bytes): Ditto.
4124 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4125 (STORE_PSEUDO_REGISTER): Delete.
4126 * gdbarch.h, gdbarch.c: Regenerate.
4128 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4130 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4131 write dump file binary.
4133 2002-08-05 Michael Snyder <msnyder@redhat.com>
4135 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4136 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4137 (mips_gdbarch_init): Set N32 target to be mips64.
4139 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4141 * frame.c (find_saved_register): Break out of loop once saved
4142 register address is found. Don't mention sparc in loop comment
4145 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4147 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4148 mips_default_saved_regsize to 8.
4150 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4152 * gcore.c: Do not include <sys/procfs.h>.
4153 * Makefile.in (gcore.o): Update dependencies.
4155 2002-08-06 Andrew Cagney <cagney@redhat.com>
4157 * configure.tgt: Make arc-*-* obsolete.
4158 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4159 * MAINTAINERS: Make arc-elf obsolete.
4160 * arc-tdep.c: Make file obsolete.
4161 * config/arc/arc.mt: Ditto.
4162 * config/arc/tm-arc.h: Ditto.
4164 2002-08-05 Theodore A. Roth <troth@verinet.com>
4166 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4168 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4170 * mcore-tdep.c (mcore_gdbarch_init): Use
4171 generic_unwind_get_saved_register instead of
4172 generic_get_saved_register.
4173 * v850-tdep.c (v850_gdbarch_init): Ditto.
4174 * frv-tdep.c (frv_gdbarch_init): Ditto.
4175 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4176 * s390-tdep.c (s390_gdbarch_init): Ditto.
4177 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4178 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4179 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4181 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4183 * objfiles.h: Add missing #include "symfile.h"
4185 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4187 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4189 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4190 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4193 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4195 * NEWS: Cleanup and nitpick.
4197 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4199 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4201 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4203 * Makefile.in (gdbtk-bp.o): Update dependencies.
4204 (gdbtk-register.o): Ditto.
4205 (gdbtk-varobj.o): Ditto.
4207 2002-08-03 Andrew Cagney <cagney@redhat.com>
4209 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4210 m68hc11_fetch_pseudo_register.
4211 (m68hc11_pseudo_register_write): Replace
4212 m68hc11_store_pseudo_register.
4213 (m68hc11_gdbarch_init): Update.
4215 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4217 * gdbarch.sh: Include "gdb_string.h".
4218 * gdbarch.c: Regenerate.
4220 * regcache.c: Include "gdb_string.h".
4221 * ax-general.c: Ditto.
4223 * std-regs.c: Ditto.
4224 * fbsd-proc.c: Ditto.
4227 * Makefile.in (regcache.o): Update dependencies.
4228 (thread.o, gdbarch.o): Ditto.
4229 (ax-general.o, gdbarch.o): Ditto.
4230 (varobj.o, std-regs.o): Ditto.
4231 (fbsd-proc.o): Specify dependencies.
4233 2002-08-02 Andrew Cagney <cagney@redhat.com>
4235 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4237 (regcache_cooked_write): Ditto.
4239 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4241 * regcache.c (regcache_cooked_read): New function.
4242 (regcache_cooked_write): New function.
4243 (read_register_gen): Rewrite using regcache_cooked_read.
4244 (write_register_gen): Rewrite using regcache_cooked_write.
4246 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4249 2002-08-02 Andrew Cagney <cagney@redhat.com>
4251 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4252 Replace the architecture methods register_read and register_write.
4253 * gdbarch.h, gdbarch.c: Regenerate.
4254 * regcache.c (init_regcache_descr): Update.
4255 (read_register_gen): Update.
4256 (write_register_gen): Update.
4257 (supply_register): Update comment.
4259 * sh-tdep.c (sh_gdbarch_init): Update.
4260 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4261 `regcache' and `gdbarch' parameters. Make `buffer' a void
4262 pointer. Update code.
4263 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4264 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4265 void pointer. Update code.
4266 (sh64_register_write): Delete.
4267 (sh4_register_read): Delete.
4268 (sh64_register_read): Delete.
4269 (sh4_register_write): Delete.
4270 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4271 void pointer, `to' parameter a void pointer.
4272 (sh_sh64_register_convert_to_raw): Ditto.
4274 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4276 * mips-tdep.c (mips_register_virtual_type): Use architecture
4277 invariant return values.
4279 2002-08-01 Andrew Cagney <cagney@redhat.com>
4281 * linux-proc.c: Include "gdb_string.h".
4282 * Makefile.in (linux-proc.o): Update dependency list.
4284 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4286 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4289 2002-08-01 Grace Sainsbury <graces@redhat.com>
4291 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4292 to_insert_watchpoint, to_remove_watchpoint,
4293 to_stopped_by_watchpoint, to_stopped_data_address,
4294 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4295 target vecctor. Define their corresponding macros so they call
4298 * target.c: Add default and debug versions of for
4299 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4300 to_insert_watchpoint, to_remove_watchpoint,
4301 to_stopped_by_watchpoint, to_stopped_data_address,
4302 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4304 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4306 * mips-tdep.c (mips_register_virtual_type): New function.
4307 (mips_gdbarch_init): Register mips_register_virtual_type()
4308 with gdbarch machinery.
4309 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4310 this file instead of tm-bigmips.h.
4311 (MIPS_REGSIZE): Delete this macro.
4312 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4313 multiarch version in mips-tdep.c will be found.
4315 2002-08-01 Andrew Cagney <cagney@redhat.com>
4317 * NEWS: Menion that CHILL has been made obsolete.
4319 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4320 * stabsread.c (read_range_type): Ditto.
4321 * gdbtypes.h: Ditto.
4322 * language.c (binop_type_check): Ditto.
4323 (binop_result_type): Ditto.
4324 (integral_type): Ditto.
4325 (character_type): Ditto.
4326 (string_type): Ditto.
4327 (boolean_type): Ditto.
4328 (structured_type): Ditto.
4329 (lang_bool_type): Ditto.
4330 (binop_type_check): Ditto.
4331 * language.h (_LANG_chill): Ditto.
4332 * dwarfread.c (set_cu_language): Ditto.
4333 * dwarfread.c (CHILL_PRODUCER): Ditto.
4334 * dwarfread.c (handle_producer): Ditto.
4335 * expression.h (enum exp_opcode): Ditto.
4336 * eval.c: Ditto for comments.
4337 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4338 * expprint.c (print_subexp): Ditto.
4339 (print_subexp): Ditto.
4340 * valops.c (value_cast): Ditto.
4341 (search_struct_field): Ditto.
4342 * value.h (COERCE_VARYING_ARRAY): Ditto.
4343 * symfile.c (init_filename_language_table): Ditto.
4344 (add_psymbol_with_dem_name_to_list): Ditto.
4345 * valarith.c (value_binop): Ditto.
4347 * valops.c (value_slice): Ditto.
4348 * symtab.h (union language_specific): Ditto.
4349 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4350 (SYMBOL_DEMANGLED_NAME): Ditto.
4351 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4352 * defs.h (enum language): Ditto.
4353 * symtab.c (got_symtab): Ditto.
4354 * utils.c (fprintf_symbol_filtered): Ditto.
4356 * ch-typeprint.c: Make file obsolete.
4357 * ch-valprint.c: Make file obsolete.
4358 * ch-lang.h: Make file obsolete.
4359 * ch-exp.c: Make file obsolete.
4360 * ch-lang.c: Make file obsolete.
4362 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4364 (TARGET_FLAGS_TO_PASS): Ditto.
4365 (CHILLFLAGS): Obsolete.
4367 (CHILL_FOR_TARGET): Obsolete.
4368 (CHILL_LIB): Obsolete.
4369 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4371 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4372 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4374 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4377 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4379 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4380 This does not change anything at the moment, but will be helpful
4381 later when full Ada support is integrated.
4383 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4385 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4388 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4390 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4391 and save it in a local variable. Use variable in later test.
4393 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4395 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4396 test. (Thanks to Daniel Jacobowitz.)
4398 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4400 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4401 (mips_abi_strings): Add "n64".
4402 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4404 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4406 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4407 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4409 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4411 * utils.c (host_pointer_to_address, address_to_host_pointer):
4412 Use gdb_assert() instead of explicit call to internal_error().
4414 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4416 * Makefile.in (rs6000-nat.o): Update dependencies.
4418 From Nicholas Duffek:
4419 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4420 (aix-thread.o): New rule.
4421 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4422 * config/powerpc/aix432.mh: New file.
4424 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4426 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4427 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4428 (fetch_core_registers, ppc_linux_supply_gregset)
4429 (ppc_linux_supply_fpregset): New functions.
4430 (ppc_linux_regset_core_fns): New.
4431 (_initialize_ppc_linux_tdep): Call add_core_fns.
4432 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4433 and ppc_linux_supply_gregset.
4434 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4435 (supply_fpregset): Call ppc_linux_supply_fpregset.
4436 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4438 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4440 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4442 * symtab.c (lookup_symbol): Demangle before lowercasing.
4444 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4446 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4448 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4449 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4450 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4451 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4453 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4454 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4455 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4456 (avr-tdep.o, mon960-rom.o): Ditto.
4457 (aout_stabs_gnu_h): Define.
4458 (symtab_h): Remove $(gdb_obstack_h).
4460 2002-07-30 Jim Blandy <jimb@redhat.com>
4462 Patch from David Carlton <carlton@math.stanford.edu>:
4463 * gdbinit.in: Move the `dir' commands that add GDB's own source
4464 directory to the search path to the end, so that the `gdb' source
4465 directory will be searched first.
4467 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4469 * gdb_obstack.h: New file.
4470 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4471 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4472 * objfiles.h: Include "gdb_obstack.h".
4473 * Makefile.in (gdb_obstack_h): Define.
4474 (symtab_h): Add $(gdb_obstack_h).
4475 (objfiles_h): Add $(gdb_obstack_h).
4477 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4478 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4479 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4480 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4481 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4482 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4483 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4484 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4486 * Makefile.in (bcache.o): Update dependencies.
4487 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4488 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4489 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4490 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4491 (stabsread.o, symfile.o, symmisc.o): Ditto.
4492 (symtab.o, typeprint.o, macroexp.o): Ditto.
4493 (macrotab.o, mdebugread.o): Ditto.
4494 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4495 (coff_ecoff_h, aout_aout64_h): Define.
4496 (aout_stabs_gnu_h, libaout_h): Define.
4498 2002-07-29 Andrew Cagney <cagney@redhat.com>
4500 * regcache.c (struct regcache_descr): Rename nr_registers to
4501 nr_cooked_registers. Revise comments describing the structure
4503 (init_regcache_descr): Update.
4504 (init_legacy_regcache_descr): Update.
4505 (read_register_gen, write_register_gen): When a cooked register in
4506 the raw register range, directly access the value from the raw
4509 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4511 * z8k-tdep.c: Do not include "obstack.h".
4512 * h8300-tdep.c, h8500-tdep.c: Ditto.
4513 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4514 * valprint.c, v850-tdep.c: Ditto.
4515 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4516 * mn10200-tdep.c: Ditto.
4518 * Makefile.in (z8k-tdep.o): Update dependencies.
4519 (m68hc11-tdep.o, valprint.o): Ditto.
4520 (v850-tdep.o, d10v-tdep.o): Ditto.
4521 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4522 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4523 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4524 (sh_opc_h, gdb_sim_sh_h): Define.
4525 (elf_sh_h, elf_bfd_h): Define.
4526 (opcode_m68hc11_h): Define.
4527 (OPCODES_SRC, OPCODES_DIR): define.
4528 (OPCODES): Use $(OPCODES_DIR).
4529 (gdb_sim_d10v_h): Rename sim_d10v_h.
4530 (gdb_sim_arm_h): Rename sim_arm_h.
4532 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4534 * utils.c (host_pointer_to_address, address_to_host_pointer):
4535 Change internal_error() message to indicate function responsible
4538 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4540 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4541 calls to local_hex_string_custom().
4543 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4545 * irix5-nat.c: Move IRIX shared library support from here...
4546 * solib-irix.c: ...to here. Revised substantially to work with
4547 generic solib framework.
4549 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4550 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4551 * mips-irix-tdep.c: New file.
4553 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4554 (mips-irix-tdep.o, solib-irix.o): New rules.
4555 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4557 * config/mips/irix6.mt (TDEPFILES): Likewise.
4558 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4560 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4562 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4563 disabled (via ``#if 0'') includes.
4565 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4567 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4568 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4569 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4570 Add support for the fpscr register.
4571 * rs6000-nat.c (regmap, fetch_inferior_registers)
4572 (store_inferior_registers, fetch_core_registers): Likewise.
4574 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4576 * rs6000-nat.c (language.h): Include.
4577 (special_regs): Delete this array.
4578 (regmap): New function.
4579 (fetch_register, store_register): Use regmap() to map gdb
4580 register numbers to ptrace register numbers. Also, use
4581 outputs from regmap() to make decisions regarding type of
4582 ptrace() call to make. In particular, don't compare against
4583 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4584 (fetch_inferior_registers, store_inferior_registers): Where
4585 possible, obtain register numbers from tdep struct. Don't
4586 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4587 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4588 (LAST_UISA_SP_REGNUM): Delete.
4590 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4592 * rs6000-nat.c (ppc-tdep.h): Include.
4593 (fetch_registers, store_register, fetch_core_registers): Don't
4594 access registers[] directly. Instead, use supply_register() or
4595 regcache_collect() as appropriate.
4596 (find_toc_address): Format hex address with local_hex_string().
4598 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4600 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4603 2002-07-24 Tom Tromey <tromey@redhat.com>
4605 * jv-exp.y: Marked all strings with _().
4606 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4608 (MethodInvocation, CastExpression, parse_number, yyerror,
4609 java_type_from_name, push_expression_name, yylex): Typo fixes.
4611 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4613 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4614 (tee_file_flush, tee_file_write, tee_file_fputs)
4615 (tee_file_isatty): New.
4616 * ui-file.h (tee_file_new): Add prototype.
4618 2002-07-24 Aidan Skinner <aidan@velvet.net>
4620 * ada-lang.c: Change k&r style function definitions to prototyped
4622 * ada-typeprint.c: Change k&r style function definitions to prototyped
4624 * ada-valprint.c: Change k&r style function definitions to prototyped
4627 2002-07-24 Andrew Cagney <cagney@redhat.com>
4629 * README: Remove reference to remote-bug.
4630 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
4632 (m88k-nat.o): Delete rule.
4633 (m88k-tdep.o): Delete rule.
4634 (remote-bug.o): Delete rule.
4635 * MAINTAINERS: Mark as obsolete.
4636 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
4637 * m88k-tdep.c: Make file obsolete.
4638 * config/m88k/m88k.mh: Ditto.
4639 * config/m88k/delta88v4.mh: Ditto.
4640 * config/m88k/delta88v4.mt: Ditto.
4641 * config/m88k/delta88.mt: Ditto.
4642 * config/m88k/delta88.mh: Ditto.
4643 * remote-bug.c: Ditto.
4644 * config/m88k/tm-delta88.h: Ditto.
4645 * config/m88k/nm-delta88v4.h: Ditto.
4646 * config/m88k/xm-delta88.h: Ditto.
4647 * config/m88k/xm-dgux.h: Ditto.
4648 * config/m88k/tm-m88k.h: Ditto.
4649 * config/m88k/nm-m88k.h: Ditto.
4650 * config/m88k/tm-delta88v4.h: Ditto.
4651 * m88k-nat.c: Ditto.
4652 * cxux-nat.c: Ditto.
4653 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
4654 and m88*-*-* obsolete.
4655 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
4658 2002-07-24 Andrew Cagney <cagney@redhat.com>
4660 * findvar.c (extract_unsigned_integer): Make `addr' parameter
4661 constant. Same for local pointer variables.
4662 (extract_signed_integer): Ditto.
4663 * defs.h (extract_unsigned_integer): Update.
4664 (extract_signed_integer): Update.
4666 2002-07-24 Andrew Cagney <cagney@redhat.com>
4668 * regcache.c (regcache_raw_write): Change buf parameter to a
4669 constant void pointer.
4670 (regcache_raw_read): Change buf parameter to a void pointer.
4671 (legacy_write_register_gen): Change myaddr parameter a constant
4673 (supply_register): Change val parameter to a const void pointer.
4674 * regcache.h (regcache_raw_write): Update declaration.
4675 (regcache_raw_read): Update declaration.
4676 (supply_register): Update declaration.
4678 2002-07-24 Tom Tromey <tromey@redhat.com>
4680 * defs.h (gdb_readline_wrapper): Declare.
4681 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
4682 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
4683 * top.c (gdb_readline_wrapper): New function.
4684 (command_line_input): Use it.
4686 2002-07-24 Andrew Cagney <cagney@redhat.com>
4688 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
4689 regcache_read and regcache_write.
4690 (regcache_raw_read_as_address): Replace regcache_read_as_address.
4691 * regcache.c: Update.
4692 * sh-tdep.c (sh64_push_arguments): Update comment.
4693 (sh_pseudo_register_read): Update.
4694 (sh_pseudo_register_write): Update.
4695 (sh4_register_read): Update.
4696 (sh4_register_write): Update.
4697 (sh64_pseudo_register_read): Update.
4698 (sh64_pseudo_register_write): Update.
4699 (sh64_register_read): Update.
4700 (sh64_register_write): Update.
4701 * i386-tdep.c (i386_extract_return_value): Update.
4702 (i386_extract_struct_value_address): Update.
4703 (i386_extract_return_value): Update.
4704 * blockframe.c (generic_read_register_dummy): Update.
4705 (generic_call_dummy_register_unwind): Update
4706 * infrun.c (write_inferior_status_register): Update.
4708 2002-07-23 Jim Blandy <jimb@redhat.com>
4710 * parser-defs.h (expression_context_pc): Make this extern.
4711 (Thanks to Michael Snyder.)
4713 2002-07-23 Andrew Cagney <ac131313@redhat.com>
4715 GDB 5.2.1 released from 5.2 branch.
4716 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
4717 * README: Update to mention 5.2.1.
4719 2002-07-23 Mark Salter <msalter@redhat.com>
4721 * remote.c (remote_read_bytes): Fix check for error.
4723 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4725 * aix-thread.c (language.h): Include.
4726 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4727 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
4728 Print newlines at end of debug messages.
4729 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
4730 (pdc_write_data): Use local_hex_string() instead of %llx formats.
4732 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4734 * aix-thread.c (ppc-tdep.h): Include.
4735 (special_register_p): New function.
4736 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
4737 (store_regs_user_thread): Use register number information from
4738 gdbarch_tdep struct instead of hardcoded offsets relative to
4739 FIRST_UISA_SP_REGNUM.
4740 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
4741 special_register_p() instead of using FPLAST_REGNUM and
4742 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
4743 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
4744 will be MQ's register number.
4746 2002-07-22 Michael Snyder <msnyder@redhat.com>
4748 * aix-thread.c (ops): Rename to aix_thread_ops.
4749 (base_ops): Rename to base_target.
4750 (ops_attach): Rename to aix_thread_attach.
4751 (ops_detach): Rename to aix_thread_detach.
4752 (ops_resume): Rename to aix_thread_detach.
4753 (ops_wait): Rename to aix_thread_wait.
4754 (ops_kill): Rename to aix_thread_kill.
4755 (init_ops): Rename to init_aix_thread_ops.
4756 (ops_fetch_register): Rename to aix_thread_fetch_register.
4757 (ops_store_register): Rename to aix_thread_store_register.
4758 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
4759 (ops_thread_alive): Rename to aix_thread_thread_alive.
4760 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
4761 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
4762 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
4763 (fetch_regs_lib): Rename to fetch_regs_user_thread.
4764 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
4765 (store_regs_lib): Rename to store_regs_user_thread.
4766 (store_regs_kern): Rename to store_regs_kernel_thread.
4768 2002-07-22 Michael Snyder <msnyder@redhat.com>
4770 * aix-thread.c (ops_prepare_to_store): Eliminate.
4771 (init_ops): Don't initialize ops.prepare_to_store.
4772 (store_regs_kern): Pre-fetch register buffers from child,
4773 because some registers may not be in the cache. Copy
4774 regs from register cache only if they are cached.
4775 (store_regs_lib): Copy regs from register cache only
4777 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
4778 fill_gprs64): Ditto.
4780 2002-07-22 Kevin Buettner <kevinb@redhat.com>
4782 * aix-thread.c (gdb_assert.h): Include.
4783 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
4784 register sizes (from register cache) match size of buffer holding
4786 (fill_sprs32): Change parameter types to match those in the ptrace()
4788 (store_regs_lib): Likewise, but for 32-bit temporary variables.
4789 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
4791 2002-07-22 Michael Snyder <msnyder@redhat.com>
4793 * aix-thread.c (supply_sprs64): Cosmetic change.
4794 (supply_sprs32): Cosmetic change.
4795 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
4796 (fill_sprs64): Use regcache_collect instead of read_register.
4797 (store_regs_lib): Use regcache_collect instead of
4798 read_register. Use fill_sprs32 instead of fill_sprs64,
4799 if debugging a 32-bit architecture.
4800 (store_regs_kern): Use fill_gprs64 etc. to pull the values
4801 out of the register cache, instead of passing a pointer into
4802 the register cache directly to ptrace. Use regcache_collect
4803 insteaad of read_register.
4804 (ops_prepare_to_store): Use target_read_registers instead
4805 of read_register_bytes.
4807 2002-07-20 Aidan Skinner <aidan@velvet.net>
4809 * MAINTAINERS: Add self under write after approval.
4811 2002-07-20 Aidan Skinner <aidan@velvet.net>
4813 * ada-tasks.c: Change k&r style function definitions to prototyped
4816 2002-07-19 Andrew Cagney <ac131313@redhat.com>
4818 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
4819 * x86-64-tdep.c: Include "objfiles.h".
4820 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
4821 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
4823 2002-07-17 Michal Ludvig <michal@suse.cz>
4825 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
4826 (update_context): Initialise cfa variable.
4828 2002-07-17 Michael Snyder <msnyder@redhat.com>
4830 * aix-thread.c: Shorten some long lines.
4831 Bring comments into line with code spec.
4833 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4835 * infrun.c: Re-indent using gdb_indent.sh.
4837 2002-07-18 Joel Brobecker <brobecker@gnat.com>
4839 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
4840 Leave the indentation temporarily untouched, to minimize the diffs.
4842 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
4844 * stabsread.c: Make os9k sections of the code obsolete,
4846 * stabsread.h: Make os9k sections of the code obsolete.
4848 2002-07-18 Michal Ludvig <mludvig@suse.cz>
4850 * linux-low.c (regsets_store_inferior_registers): Add free()
4851 at the end of a loop to prevent memory leak.
4852 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
4853 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
4854 * config/sparc/tm-sp64linux.h: Make the rest of #endif
4856 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
4858 2002-07-17 Jim Blandy <jimb@redhat.com>
4860 * macrocmd.c (info_macro_command): Remove newline from error
4863 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
4865 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
4866 (sh_gdbarch_init): Use it for sh-dsp.
4868 2002-07-16 Kevin Buettner <kevinb@redhat.com>
4870 * dwarf2read.c (read_initial_length): Handle older, non-standard,
4871 64-bit DWARF2 format.
4873 2002-07-16 Joel Brobecker <brobecker@gnat.com>
4875 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
4876 <sys/proc.h> when not available.
4878 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4880 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
4881 * stabsread.c: Make os9k sections of the code obsolete.
4882 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
4883 * config/i386/i386os9k.mt: Make file obsolete.
4884 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
4885 (COMMON_OBS): Remove os9kread.o
4886 (SFILES): Remove os9kread.c.
4887 (os9kread.o, remote-os9k.o): Make target obsolete.
4888 * remote-os9k.c: Make file obsolete.
4889 * os9kread.c: Make file obsolete.
4892 2002-07-16 Andrew Cagney <ac131313@redhat.com>
4894 * NEWS: Mention that the FR30 has been made obsolete.
4895 * fr30-tdep.c: Make file obsolete.
4896 * config/fr30/tm-fr30.h: Ditto.
4897 * config/fr30/fr30.mt: Ditto.
4898 * configure.tgt: Make fr30-*-elf obsolete.
4899 * MAINTAINERS: Make fr30-elf obsolete.
4901 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
4903 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
4904 found is not inside a section.
4906 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4908 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
4910 (pdc_realloc): Use xrealloc() instead of realloc().
4912 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4914 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
4915 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
4916 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
4919 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4921 * aix-thread.c (ptrace_check): Eliminate goto.
4922 (sync_threadlists): Eliminate gotos. Also, fix array overrun
4925 2002-07-15 Kevin Buettner <kevinb@redhat.com>
4927 * aix-thread.c (gdbcmd.h): Include.
4928 (DEBUG, DBG, DBG2, dbg): Eliminate.
4929 (debug_aix_thread): New static global.
4930 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
4931 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
4932 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
4933 invocations to DBG and DBG2 macros to test against
4934 ``debug_aix_thread'' and call fprintf_unfiltered().
4935 (_initialize_aix_thread): Add new command "set debug aix-thread".
4937 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4939 From Gerhard Tonn <TON@de.ibm.com>:
4940 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
4941 instead of supply_register.
4943 2002-07-15 Andrew Cagney <ac131313@redhat.com>
4945 * dwarf2cfi.c: Include "gdb_assert.h".
4946 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
4948 (update_context): Do not use __func__. Add missing ``break''.
4949 (update_context): Do not use __func__.
4951 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
4953 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
4954 and its setting. Set gdbarch instruction printing functions
4955 directly. For non-rs6000 case use new function
4956 gdb_print_insn_powerpc.
4957 (gdb_print_insn_powerpc): New function.
4959 2002-07-13 Andrew Cagney <ac131313@redhat.com>
4961 * NEWS: Mention that the d30v has been marked obsolete.
4962 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
4963 * configure.tgt: Mark d30v-*-* as obsolete.
4964 * d30v-tdep.c: Mark file as obsolete.
4965 * config/d30v/d30v.mt: Ditto.
4966 * config/d30v/tm-d30v.h: Ditto.
4968 2002-07-13 Aidan Skinner <aidan@velvet.net>
4970 * ada-tasks.c (add_task_entry): replace calls to
4971 malloc() with xmalloc
4972 * ada-tasks.c (init_task_list): replace calls to free with xfree()
4974 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
4975 ada_finish_decode_line_1, all_sals_for_line
4976 ada_breakpoint_rewrite): replace calls to free() with xfree()
4978 2002-07-12 Kevin Buettner <kevinb@redhat.com>
4980 From Nicholas Duffek (with minor changes by Martin Hunt,
4981 Louis Hamilton, and Kevin Buettner):
4982 * aix-thread.c: New file.
4984 2002-07-12 Petr Sorfa <petrs@caldera.com>
4986 * dwarf2read.c (dwarf2_invalid_attrib_class): New
4987 complaint for invalid attribute class or form.
4988 (read_func_scope): DW_AT_frame_base
4989 better handling of DW_AT_block*.
4990 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
4991 better handling of DW_AT_block*.
4992 (read_common_block): DW_AT_location
4993 better handling of DW_AT_block*.
4994 (read_partial_die): DW_AT_location better handling
4996 (new_symbol): DW_AT_external better handling of
4997 DW_AT_block*. Proper initialization of variable
4999 (attr_form_is_block): New function that returns true
5000 if the attribute's form is of DW_FORM_block*.
5002 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5004 * valops.c (find_method_list): Remove comment about
5005 removed STATIC_MEMFUNCP argument.
5006 (value_find_oload_method_list): Likewise.
5008 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5010 From Nicholas Duffek:
5011 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5012 target_new_objfile_hook.
5014 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5016 From Nicholas Duffek:
5017 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5020 2002-07-12 Andrew Cagney <cagney@redhat.com>
5022 * MAINTAINERS: Mention --enable-sim-build-warnings.
5023 (m68hc11-elf): Disable sim build warnings.
5024 (m32r-elf): Mark as broken obsolete candidate.
5025 (x86_64-linux-gnu): Mark as buildable with -Werror.
5026 (arm-elf): Change -w to ``,'' which enables warnings but not
5029 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5031 * bcache.h: Update copyright.
5032 (struct bstring, struct bcache): Move definition to "bcache.c".
5033 Replaced by opaque declaration.
5034 (bcache_xfree): Replace free_bcache.
5035 (bcache_xmalloc, bcache_memory_used): Declare.
5037 * bcache.c: Update copyright.
5038 (struct bstring, struct bcache): Moved to here from "bcache.h".
5040 (bcache_xmalloc, bcache_memory_used): New functions.
5041 (bcache_xfree): Replace function free_bcache.
5043 * Makefile.in (objfiles.o): Add $(bcache_h).
5044 (objfiles_h): Remove $(bcache_h).
5045 (symfile.o): Add $(bcache_h).
5047 * symmisc.c: Update copyright.
5048 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5049 (print_objfile_statistics): Use bcache_memory_used.
5051 * symfile.c: Include "bcache.h".
5052 (reread_symbols): Use bcache_xfree.
5053 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5054 (add_psymbol_to_list): Pass psymbol_cache by value.
5055 (add_psymbol_with_dem_name_to_list): Ditto.
5057 * objfiles.h: Update copyright.
5058 (struct bcache): Declare opaque. Do not include "bcache.h".
5059 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5061 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5063 * objfiles.c: Include "bcache.h". Update copyright.
5064 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5066 (free_objfile): Use bcache_xfree.
5068 2002-07-11 Grace Sainsbury <graces@redhat.com>
5070 * monitor.c (monitor_fetch_register): Make name a constant.
5071 (monitor_store_register): Same.
5073 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5075 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5076 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5077 (finish_block) For non-function blocks, hash the symbol table. For
5078 function blocks, mark the symbol table as unhashed.
5079 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5080 (msymbol_hash_iw): Likewise.
5081 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5083 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5084 (lookup_minimal_symbol): Likewise for both.
5085 * symtab.h (struct block): Add `hashtable' flag. Comment the
5087 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5088 (ALL_BLOCK_SYMBOLS): Update.
5089 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5090 (struct symbol): Add `hash_next' pointer.
5091 * symtab.c (lookup_block_symbol): Search using the hash table when
5093 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5094 (search_symbols, find_addr_symbol): Likewise.
5096 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5097 (read_dst_symtab): Likewise.
5098 * jv-lang.c (get_java_class_symtab): Likewise.
5099 * mdebugread.c: Include "gdb_assert.h".
5100 (shrink_block): Assert that the block being modified is not hashed.
5101 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5102 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5104 (dump_symtab): Recognize hashed blocks.
5105 * printcmd.c (print_frame_args): Assert that function blocks do not
5106 have hashed symbol tables.
5107 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5108 (fill_in_ada_prototype, debug_print_block): Likewise.
5109 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5111 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5113 * stack.c (print_frame): Use result of frame_address_in_block()
5114 instead of fi->pc when evaluating symbols.
5115 (backtrace_command_1): Ditto.
5117 2002-07-11 Andrew Cagney <cagney@redhat.com>
5119 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5122 * arm-tdep.c (arm_register_name): Make return type constant.
5124 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5126 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5128 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5129 * s390-tdep.c (s390_fp_regnum): Ditto.
5130 (s390_read_fp): Ditto.
5131 (s390_pop_frame): Ditto.
5132 (_initialize_s390_tdep): Ditto.
5133 * remote.c (get_remote_state): Ditto.
5134 * procfs.c (mappingflags): Ditto.
5135 * memattr.c (_initialize_mem): Ditto.
5136 * mcore-tdep.c (mcore_pop_frame): Ditto.
5137 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5138 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5139 * language.c (set_case_str): Ditto.
5140 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5141 * frv-tdep.c (new_variant): Ditto.
5142 (frv_stopped_data_address): Ditto.
5143 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5144 (context_alloc): Ditto.
5145 (frame_state_alloc): Ditto.
5146 (unwind_tmp_obstack_init): Ditto.
5147 (unwind_tmp_obstack_free): Ditto.
5148 (cfi_read_fp): Ditto.
5149 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5150 (cris_pop_frame): Ditto.
5151 * c-lang.c (scanning_macro_expansion): Ditto.
5152 (finished_macro_expansion): Ditto.
5153 (c_preprocess_and_parse): Ditto.
5154 * gdbarch.sh: Ditto.
5155 * gdbarch.h, gdbarch.c: Regenerate.
5156 * config/mn10200/tm-mn10200.h: Adjust indentation.
5157 * target.c: Adjust indentation.
5158 * symtab.h: Adjust indentation.
5159 * stabsread.h: Adjust indentation.
5160 * remote-es.c: Adjust indentation.
5161 * os9kread.c: Adjust indentation.
5163 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5165 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5166 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5168 2002-07-10 Grace Sainsbury <graces@redhat.com>
5170 * NEWS: Mention m68k, mcore multi-arching.
5171 * MAINTAINERS: Change status of m68k, mcore to reflect
5174 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5176 * valops.c (find_overload_match): Free oload_syms.
5178 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5180 Define HAVE_SYS_PROC_H if sys/proc.h exists
5181 * configure.in: Add check for sys/proc.h
5182 * config.in: Regenerate.
5183 * configure: Regenerate.
5185 2002-07-09 Grace Sainsbury <graces@redhat.com>
5187 * config/m68k/tm-m68k.h: Remove macros wrapped in
5188 #if !GDB_MULTI_ARCH.
5190 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5192 * config.in, configure: Regenerate.
5194 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5196 * dwarf2cfi.c: Include "gcore.h".
5197 (execute_stack_op): Fix implementation of the
5198 DW_OP_deref and DW_OP_deref_size operators by letting do their
5199 lookup in the target.
5201 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5203 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5204 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5207 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5209 Fix PR gdb/595, gdb/602
5210 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5211 Don't call value_cast, just read the vtable pointer; update comments
5214 2002-07-05 Grace Sainsbury <graces@redhat.com>
5216 * config/mcore/tm-mcore.h: Remove file.
5217 * config/mcore/mcore.mt: Remove definition of TM_FILE
5218 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5220 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5222 * i386bsd-tdep.c: Include "gdb_string.h".
5224 2002-07-04 Grace Sainsbury <graces@redhat.com>
5226 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5227 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5229 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5230 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5231 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5232 (RETVAL_REGNUM): Move macros from tm-mcore.h
5233 (mcore_reg_struct_has_addr): New function.
5234 (mcore_gdbarch_init): Added initializations for the macros removed
5237 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5239 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5240 traditonal string branding within the ELF header.
5242 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5244 * symtab.c (remove_params): New function.
5245 (make_symbol_overload_list): Use it instead of cplus_demangle.
5246 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5248 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5250 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5252 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5254 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5255 and tdep->sigtramp_end.
5256 * i386obsd-nat.c: New file.
5257 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5259 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5260 Don't call get_current_frame().
5262 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5264 * i386-nat.c (child_post_startup_inferior): New function
5265 calling i386_cleanup_dregs if
5266 I386_USE_GENERIC_WATCHPOINTS is defined.
5267 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5268 conditional to acknowledge that i386-nat.c has its
5269 own child_post_startup_inferior function.
5271 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5273 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5274 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5275 instead of MAX_REGISTER_RAW_SIZE.
5276 (i386_extract_return_value, i386_extract_struct_value_address):
5277 Convert to use regcache.
5278 (i386_gdbarch_init): Set max_register_raw_size and
5279 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5280 Set extract_return_value and extract_struct_value_address instead
5281 of their deprecated variants.
5283 Convert i386 target to generic dummy frames.
5284 * i386-tdep.c: Include "symfile.h".
5285 (i386_frameless_signal_p): Consider a function to be frameless if
5286 the pc points at the first instruction of the function.
5287 (i386_frame_chain): Handle (generic) call dummies.
5288 (i386_frame_saved_pc): Likewise.
5289 (i386_frame_init_saved_regs): Remove code dealing with call
5290 dummies on the stack.
5291 (i386_push_dummy_frame): Removed.
5292 (i386_call_dummy_words): Removed.
5293 (i386_fix_call_dummy): Removed.
5294 (i386_push_return_address): New function.
5295 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5296 parameter, and don't call get_current_frame.
5297 (i386_pop_frame): New function.
5298 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5299 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5300 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5301 call_dummy_length to 0, set call_dummy_words to NULL, set
5302 sizeof_call_dummy_words to 0, set fix_call_dummy to
5303 generic_fix_call_dummy, set pc_in_call_dummy to
5304 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5305 generic_push_dummy_frame, set push_return_address to
5306 i386_push_return_address and set frame_chain_valid to
5307 generic_file_frame_chain_valid.
5309 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5311 * gdbarch.sh (struct regcache): Add opaque declaration.
5312 (EXTRACT_RETURN_VALUE): New architecture method.
5313 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5314 * gdbarch.h, gdbarch.c: Regenerate.
5315 * arch-utils.c (legacy_extract_return_value): New function.
5316 * arch-utils.h (legacy_extract_return_value): Declare.
5317 * values.c (value_being_returned): Re-enable code handling
5318 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5319 deprecated_grub_regcache_for_registers call to block handling
5320 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5321 (EXTRACT_RETURN_VALUE): Do not define.
5323 2002-07-03 Grace Sainsbury <graces@redhat.com>
5325 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5326 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5327 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5328 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5329 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5330 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5331 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5332 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5333 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5334 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5335 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5336 argument so the function fits the prototype in the architecture
5338 (mcore_pop_frame): Remove argument so the function fits the
5339 prototype. Use get_current_frame instead of the argument.
5340 (mcore_push_arguments): Change type of struct_return so the
5341 function can be used in the architecture vector.
5342 (mcore_store_struct_return): Add.
5343 (mcore_frame_init_saved_regs): Add.
5344 (mcore_gdbarch_init): Add function calls to replace the macros
5345 removed from tm-mcore.h
5347 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5349 * infcmd.c (print_return_value): Remove compatibility code calling
5350 deprecated_grub_regcache_for_registers.
5352 * values.c: Include "regcache.h".
5353 (value_being_returned): Update. Use
5354 deprecated_grub_regcache_for_registers to extract the register
5356 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5357 ``struct regcache''.
5358 * Makefile.in (values.o): Add dependency on $(regcache_h).
5360 * inferior.h (run_stack_dummy): Change type of second parameter to
5361 a ``struct regcache''.
5362 * valops.c (hand_function_call): Change type of retbuf to ``struct
5363 regcache''. Allocate using regcache_xmalloc, clean using
5364 make_cleanup_regcache_xfree.
5365 * infcmd.c (run_stack_dummy): Update. Use
5366 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5368 * regcache.c (do_regcache_xfree): New function.
5369 (make_cleanup_regcache_xfree): New function.
5370 * regcache.h (make_cleanup_regcache_xfree): Declare.
5372 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5374 * event-top.c (command_line_handler): Don't read past
5375 beginning of buffer.
5377 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5379 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5381 (varobj_create): Store frame_id for root.
5382 (varobj_gen_name): Use xasprintf.
5383 (varobj_update): Save and restore frame using get_frame_id() and
5385 (create_child): Use xasprintf.
5386 (new_root_variable): Initialize frame_id.
5387 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5388 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5389 to prevent memory leak.
5391 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5393 * valops.c (hand_function_call): Move declaration of retbuf to
5394 start of function, allocate using malloc, add a cleanup but before
5395 the inf_status cleanup, cleanup the buffer. Rename local variable
5396 old_chain to inf_status_cleanup.
5398 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5400 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5402 * cli/cli-decode.c (cmd_func_p): New function.
5403 (cmd_func): New function.
5405 * command.h: Add cmd_func() and cmd_func_p().
5407 2002-07-03 Grace Sainsbury <graces@redhat.com>
5409 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5410 (REGISTER_SIZE): Remove.
5411 (MAX_REGISTER_RAW_SIZE): Remove.
5412 (REGISTER_VIRTUAL_TYPE): Remove.
5413 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5414 (REGISTER_NAME): Remove.
5415 (USE_GENERIC_DUMMY_FRAMES): Remove.
5416 (CALL_DUMMY): Remove.
5417 (CALL_DUMMY_START_OFFSET): Remove.
5418 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5419 (CALL_DUMMY_LOCATION): Remove.
5420 (FIX_CALL_DUMMY): Remove.
5421 (CALL_DUMMY_ADDRESS): Remove.
5422 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5423 (SAVE_DUMMY_FRAME_TOS): Remove.
5424 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5425 (mcore_register_virtual_type): New function.
5426 (mcore_register_byte): New function.
5427 (mcore_register_size): New function.
5428 (mcore_register_name): New function.
5429 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5430 macros removed from tm-mcore.h.
5431 (mcore_dump_tdep): Add.
5432 (_initialize_mcore_tdep): Add gdbarch_register call.
5434 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5436 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5437 frameless_look_for_prologue, such that we actually call this
5440 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5442 * frame.h (frame_address_in_block): New function.
5444 * blockframe.c (frame_address_in_block): New function extracted
5445 from get_frame_block().
5446 (get_frame_block): Use frame_address_in_block().
5447 (block_innermost_frame): Use frame_address_in_block() to match
5448 the frame pc address against the block boundaries rather than
5449 the frame pc directly. This prevents a failure when a frame pc
5450 is actually a return-address pointing immediately after the end
5453 2002-07-02 Grace Sainsbury <graces@redhat.com>
5455 * MAINTAINERS: Add self under write after approval.
5457 2002-07-02 Grace Sainsbury <graces@redhat.com>
5459 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5460 used in architecture vector. The default is
5461 m68k_local_breakpoint_from_pc.
5462 (m68k_local_breakpoint_from_pc): Add.
5463 (enum): Add register numbers from tm-m68k.h.
5464 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5466 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5467 GDB_MULTI_ARCH_PARTIAL.
5468 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5469 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5471 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5472 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5473 to enum in m68k-tdep.c
5475 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5477 * solib-osf.c (open_map): Compute the list of shared libraries
5478 loaded by the inferior, rather than the list of libraries loaded
5479 by GDB itself. Otherwise, GDB ends up reading the symbols from
5480 the wrong shared libraries...
5482 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5484 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5485 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5487 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5489 (FRAMELESS_SIGNAL): Remove function.
5490 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5491 i386_linux_saved_pc_after_call): Removed.
5492 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5493 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5494 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5496 * i386-tdep.c (i386_frameless_signal_p): New function.
5497 (i386_frame_chain): Deal with frameless signals.
5498 (i386_sigtramp_saved_sp): New function.
5499 (i386_frame_saved_pc): Deal with frameless signals.
5500 (i386_saved_pc_after_call): Make sure the correct value is
5501 returned just after entry into a sigtramp.
5502 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5503 i386fbsd4_sc_sp_offset): New variables.
5504 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5505 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5506 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5507 similiar to what we already did for sc_pc_offset.
5508 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5511 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5513 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5515 * config/i386/tm-x86-64linux.h: New.
5516 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5518 * config/i386/nm-x86-64.h: Rename to ...
5519 * config/i386/nm-x86-64linux.h: ... this one.
5520 * config/i386/x86-64linux.mh: Reflect the above change.
5522 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5524 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5525 with sigcontext_addr. Add sc_sp_offset.
5526 (i386bsd_sigtramp_saved_pc): Remove prototype.
5527 (i386bsd_sicontext_addr): Add prototype.
5528 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5529 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5530 (i386_svr4_sigtramp_saved_pc): Removed.
5531 (i386_svr4_sigcontext_addr): New function.
5532 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5533 Initialize tdep->sigcontext_addr instead. Initialize
5534 tdep->sc_pc_offset and tdep->sc_sp_offset.
5535 (i386_gdbarch_init): Likewise.
5536 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5538 (i386bsd_sigtramp_saved_pc): Remove function.
5539 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5540 Initialize tdep->sigcontext_addr instead. Initialize
5542 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5543 of tdep->sigtramp_saved_pc.
5544 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5545 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5548 * i386-tdep.c (i386_frameless_function_invocation,
5549 i386_frame_num_args, i386_frame_init_saved_regs,
5550 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5551 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5552 i386_extract_return_value, i386_store_return_value,
5553 i386_extract_struct_value_address, i386_register_virtual_type,
5554 i386_register_convertible, i386_register_convert_to_virtual,
5555 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5556 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5559 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5561 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5563 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5564 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5565 this macro. Include "value.h".
5567 2002-06-30 Aidan Skinner <aidan@velvet.net>
5569 * ada-exp.tab.c: remove as it's a generated file
5570 * ada-lex.c: remove as it's a generated file
5572 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5574 * config/i386/tm-i386.h (struct frame_info, struct
5575 frame_saved_regs, struct value, struct type): Remove forward
5578 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5579 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5580 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5581 (FILL_FPXREGSET): Define.
5583 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5585 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5586 i[3456]86-*-netbsd* case.
5587 * config/i386/tm-obsd.h: Removed.
5588 * config/i386/obsd.mt: Removed.
5589 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5591 (MH_CFLAGS): Add -DYYDEBUG=0.
5593 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5594 i386nbsd_sc_pc_offset on OpenBSD too.
5596 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5597 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5598 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5600 * i386bsd-tdep.c: Include "arch-utils.h".
5601 (i386bsd_aout_in_solib_call_trampoline): New function.
5602 (i386bsd_init_abi): Set in_solib_call_trampoline to
5603 i386bsd_aout_in_solib_call_trampoline.
5604 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5605 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5607 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5609 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5610 (struct obstack, struct bcache): Add opaque declarations.
5611 * Makefile.in (macrotab_h): Update
5613 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5615 * blockframe.c (generic_find_dummy_frame): Change return type to
5616 ``struct regcache''.
5617 (struct dummy_frame): Replace field ``registers'' with regcache, a
5618 struct regcache object.
5619 (generic_find_dummy_frame): Update.
5620 (generic_push_dummy_frame): Update. Use regcache_xfree,
5621 regcache_xmalloc and regcache_cpy.
5622 (generic_pop_dummy_frame): Update. Use regcache_cpy and
5624 (deprecated_generic_find_dummy_frame): Update.
5625 (generic_read_register_dummy): Update. Use
5626 regcache_read_as_address.
5627 (generic_call_dummy_register_unwind): Update. Use regcache_read.
5628 (generic_get_saved_register): Update. Use regcache_read.
5630 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5632 * Makefile.in (objfiles_h): Add $(bcache_h).
5633 * objfiles.h: Include "bcache.h".
5635 * Makefile.in (symtab_h): Remove $(bcache_h).
5636 * symtab.h: Do not include "bcache.h".
5638 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5640 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
5641 generic_func_frame_chain_valid.
5643 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5645 * config/i386/nm-fbsd.h: Include <sys/param.h>.
5646 * config/i386/tm-fbsd.h: Likewise.
5648 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5650 * rs6000-tdep.c (rs6000_gdbarch_init): Use
5651 generic_unwind_get_saved_register.
5653 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5655 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
5656 * regcache.c (supply_register): Add missing argument to
5657 register_buffer call.
5659 2002-06-27 Andrew Cagney <ac131313@redhat.com>
5661 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
5662 Solaris /bin/grep does not not like it. From Peter Schauer.
5664 2002-06-26 Tom Tromey <tromey@redhat.com>
5666 * command.h (add_setshow_cmd): Declare.
5667 (add_setshow_cmd_full): Declare.
5668 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
5669 returns void. Use add_setshow_cmd_full.
5670 (add_setshow_cmd_full): New function.
5671 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
5672 (add_setshow_boolean_cmd): Likewise.
5674 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5676 * config/vax/tm-vax.h: Protect from multiple inclusion.
5677 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
5678 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
5679 * config/vax/tm-vaxbsd.h: ...here. New file.
5680 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
5682 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5684 * config/vax/tm-vax.h (BREAKPOINT): Remove.
5685 (BELIEVE_PCC_PROMOTION): Remove.
5686 (AP_REGNUM): Move to...
5687 * config/vax/nm-vax.h: ...here.
5688 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
5689 (vax_breakpoint_from_pc): New function.
5690 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
5691 and gdbarch_believe_pcc_promotion.
5693 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
5695 * Makefile.in (vax_tdep_h): Define.
5696 (vax-tdep.o): Use $(vax_tdep_h).
5697 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
5698 (vax_dump_tdep): New function.
5699 (_initialize_vax_tdep): Register vax_dump_tdep.
5700 * vax-tdep.h: Include osabi.h.
5701 (struct gdbarch_tdep): New.
5703 2002-06-26 Andrew Cagney <cagney@redhat.com>
5705 * frame.h (deprecated_generic_find_dummy_frame): Rename
5706 generic_find_dummy_frame.
5707 * blockframe.c (generic_find_dummy_frame): Make static.
5708 (deprecated_generic_find_dummy_frame): New function.
5709 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
5710 generic_find_dummy_frame with deprecated_find_dummy_frame.
5711 (sh64_nofp_frame_init_saved_regs): Ditto.
5712 (sh_fp_frame_init_saved_regs): Ditto.
5713 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
5714 (s390_frame_chain): Ditto.
5715 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
5717 2002-06-26 Grace Sainsbury <graces@redhat.com>
5719 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
5720 gdbarch vector are at the top.
5722 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
5723 (FRAME_ARGS_ADDRESS): Remove.
5724 (FRAME_LOCALS_ADDRESS): Remove.
5725 (FRAME_NUM_ARGS): Remove.
5726 (FRAME_ARGS_SKIP): Remove.
5727 * m68k-tdep.c (enum): Add eumeration of special register numbers.
5728 (m68k_gdbarch_init): Add gdbarch initializations for macros
5729 undefined in tm-m68k.h
5731 2002-06-26 Grace Sainsbury <graces@redhat.com>
5733 * monitor.h: Add the function regname to monitor_ops
5734 structure. This way NUM_REGS does not have to be a constant.
5735 * monitor.c (monitor_fetch_register): Added support for regname
5736 function. The function is called if the array regnames is NULL.
5737 (monitor_store_register): Same.
5738 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
5740 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
5741 cpu32bug_cmds.regname to point to new function.
5742 * abug-rom.c (abug_regname): Same as above.
5743 (init_abug_cmds): Same.
5744 * dbug-rom.c (dbug_regname): Same as above.
5745 (init_dbug_cmds): Same.
5746 * remote-est.c (est_regname): Same.
5747 (init_est_cmds): Same.
5748 * rom68k-rom.c (rom68k_regname): Same.
5749 (init_rom68k_cmds): Same.
5751 2002-06-25 Tom Tromey <tromey@redhat.com>
5753 * breakpoint.c (delete_command): Don't repeat `delete' commands.
5755 2002-06-25 Andrew Cagney <cagney@redhat.com>
5757 * infrun.c (stop_registers): Change variable's type to ``struct
5759 (xmalloc_inferior_status): Delete function.
5760 (free_inferior_status): Delete function.
5761 (normal_stop): Use regcache_cpy.
5762 (struct inferior_status): Change type of fields ``stop_registers''
5763 and ``registers'' to ``struct regcache''.
5764 (write_inferior_status_register): Use regcache_write.
5765 (save_inferior_status): Instead of calling
5766 xmalloc_inferior_status, allocate the inf_status buffer directly.
5767 Use regcache_dup_no_passthrough and regcache_dup to save the
5769 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
5770 Replace the stop_registers regcache instead of overriding it. Use
5771 regcache_xfree. Instead of calling free_inferior_status, xfree
5772 the buffer directly.
5773 (discard_inferior_status): Use regcache_xfree. Instead of calling
5774 free_inferior_status, xfree the buffer directly.
5775 (build_infrun): Use regcache_xmalloc.
5776 (_initialize_infrun): Delete redundant call to build_infrun.
5778 * Makefile.in (infcmd.o): Add $(regcache_h).
5780 * infcmd.c: Include "regcache.h".
5781 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
5782 obtain the address of `stop_registers' register buffer.
5783 (print_return_value): Ditto.
5785 * inferior.h (struct regcache): Add opaque declaration.
5786 (stop_registers): Change variable's declared type to ``struct
5789 2002-06-24 Tom Tromey <tromey@redhat.com>
5791 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
5792 * target.c (initialize_targets): Fixed typo in
5793 trust-readonly-sections `show' documentation.
5795 * main.c: Marked all strings with _().
5797 2002-06-24 Don Howard <dhoward@redhat.com>
5799 * memattr.c (create_mem_region): Treat hi == 0 as a special case
5800 that means max CORE_ADDR+1.
5801 (lookup_mem_region): Ditto.
5802 (mem_info_command): Ditto.
5804 2002-06-24 Grace Sainsbury <graces@redhat.com>
5806 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
5807 (REGISTER_BYTES_OK): Remove.
5808 (REGISTER_BYTES): Remove.
5809 (STORE_STRUCT_RETURN): Remove.
5810 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
5811 (STORE_RETURN_VALUE): Remove.
5812 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
5813 (FRAME_CHAIN): Remove.
5814 (FRAMELESS_FUNCTION_INVOCATION): Remove.
5815 (FRAME_SAVED_PC): Remove.
5816 * m68k-tdep.c (m68k_register_bytes_ok):Add.
5817 (m68k_store_struct_return): Add.
5818 (m68k_deprecated_extract_return_value): Add.
5819 (m68k_deprecated_extract_struct_value_address): Add.
5820 (m68k_store_return_value): Add.
5821 (m68k_frame_chain): Add.
5822 (m68k_frameless_function_invocation): Add.
5823 (m68k_frame_saved_pc): Add.
5824 (m68k_gdbarch_init): added set_gdbarch calls for new
5825 functions and deleted macros.
5827 2002-06-23 Tom Tromey <tromey@redhat.com>
5829 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
5830 (ALLDEPFILES): Likewise.
5831 (udiheaders): Removed.
5832 (udip2soc.o): Likewise.
5833 (udi2go32.o): Likewise.
5835 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
5837 2002-06-22 Andrew Cagney <ac131313@redhat.com>
5839 * infrun.c (_initialize_infrun): Delete unnecessary call to
5842 * regcache.h: Update comments describing the regcache_cpy family
5844 (regcache_save, regcache_restore): Delete declaration.
5845 (regcache_save_no_passthrough): Delete declaration.
5846 (regcache_restore_no_passthrough): Delete declaration.
5847 * regcache.c (regcache_save): Delete function.
5848 (regcache_save_no_passthrough): Delete function.
5849 (regcache_restore): Delete function.
5850 (regcache_restore_no_passthrough): Delete function.
5852 2002-06-21 Andrew Cagney <ac131313@redhat.com>
5854 * config/m68k/tm-m68k.h: Fix typo.
5855 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
5856 (m68k_frame_init_saved_regs): Declare.
5858 2002-06-21 Jim Blandy <jimb@redhat.com>
5860 Remove some vestiges of Harris 88k support.
5861 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
5862 register numbering quirk.
5863 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
5864 odd symbols occurring in Harris 88k ELF targets.
5866 2002-06-21 Tom Tromey <tromey@redhat.com>
5868 * gdb_locale.h: New file.
5869 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
5870 (defs_h): Added gdb_locale.h.
5871 * configure, config.in: Rebuilt.
5872 * configure.in (PACKAGE): Define.
5873 * defs.h: Include gdb_locale.h.
5874 * main.c (captured_main): Call setlocale, bindtextdomain,
5877 2002-06-21 Dave Brolley <brolley@redhat.com>
5879 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
5880 * config/frv/frv.mt: New file.
5881 * config/frv/tm-frv.h: New file.
5882 * configure.tgt: Support frv-*-*.
5883 * Makefile.in (frv-tdep.o): New target.
5884 * frv-tdep.c: New file.
5885 * NEWS: Mention frv.
5887 2002-06-21 Dave Brolley <brolley@redhat.com>
5889 * MAINTAINERS: Add self to "Write After Approval" list.
5891 2002-06-21 Grace Sainsbury <graces@redhat.com>
5893 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
5894 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
5895 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
5896 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
5897 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
5899 * m68k-tdep.c: Include arch-utils.h
5900 (m68k_register_raw_size): Add.
5901 (m68k_register_virtual_size): Add.
5902 (m68k_register_virtual_type): Add.
5903 (m68k_register_name): Add.
5904 (m68k_stack_align): Add.
5905 (m68k_register_byte): Add.
5906 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
5909 2002-06-21 Grace Sainsbury <graces@redhat.com>
5911 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
5912 m68k_find_saved_regs.
5913 (m68k_pop_frame): Removed saved_regs structure, and replaced
5914 references to it with frame->saved_regs.
5915 (m68k_gdbarch_init): Added function calls to initialize the
5917 (m68k_fix_call_dummy): Add.
5918 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
5919 (CALL_DUMMY): Remove.
5920 (CALL_DUMMY_LENGTH): Remove.
5921 (CALL_DUMMY_START_OFFSET): Remove.
5922 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5923 (FIX_CALL_DUMMY): Remove.
5924 (PUSH_DUMMY_FRAME): Remove.
5925 (POP_FRAME): Remove.
5927 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
5929 * parse.c (parse_fprintf): New function used to avoid calls to
5930 fprintf in bison parser generated debug code.
5931 * parser-defs.h: Declaration of new parse_fprintf function.
5932 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
5933 Set YYDEBUG to 1 by default.
5934 Set YYFPRINTF as parse_fprintf.
5936 2002-06-21 Michal Ludvig <mludvig@suse.cz>
5938 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
5940 (pointer_encoding, enum ptr_encoding): New.
5941 (execute_cfa_program): Take care about pointer encoding.
5942 (dwarf2_build_frame_info): Only call parse_frame_info for
5943 .debug_frame and .eh_frame.
5944 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
5945 fixed augmentation handling, added relative addressing,
5946 ignore duplicate FDEs. Added comments.
5947 * dwarf2cfi.c: Reindented.
5949 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
5951 * event-top.c (command_handler): Don't use space_at_cmd_start
5952 unless there is sbrk() on the host. Assign time and space data
5953 to union fields of the appropriate length.
5955 2002-06-20 Michal Ludvig <mludvig@suse.cz>
5957 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
5958 x86_64_register_name. Return type changed to 'const char *'.
5959 (x86_64_register_name2nr): Rename to x86_64_register_number.
5960 (x86_64_gdbarch_init): Update to reflect the change.
5961 * x86-64-tdep.h: Ditto.
5962 * x86-64-linux-nat.c (x86_64_fxsave_offset)
5963 (supply_fpregset): Ditto.
5965 2002-06-19 Andrew Cagney <cagney@redhat.com>
5967 * regcache.h: Update copyright.
5968 (struct regcache, struct gdbarch): Add opaque declarations.
5969 (current_regcache): Declare global variable.
5970 (regcache_read, regcache_write): Add gdbarch parameter.
5971 (regcache_save, regcache_save_no_passthrough)
5972 (regcache_restore, regcache_restore_no_passthrough)
5973 (regcache_dup, regcache_dup_no_passthrough)
5974 (regcache_cpy, regcache_cpy_no_passthrough)
5975 (deprecated_grub_regcache_for_registers)
5976 (deprecated_grub_regcache_for_register_valid)
5977 (regcache_valid_p): Add function declarations.
5979 * regcache.c: Update copyright.
5980 (regcache_descr_handle): New global variable.
5981 (struct regcache_descr): Define.
5982 (init_legacy_regcache_descr, init_regcache_descr): New functions.
5983 (regcache_descr, xfree_regcache_descr): New functions.
5984 (struct regcache): Define.
5985 (regcache_xmalloc, regcache_xfree): New functions.
5986 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
5987 (regcache_dup, regcache_dup_no_passthrough): New functions.
5988 (regcache_valid_p, regcache_read_as_address): New functions.
5989 (deprecated_grub_regcache_for_registers): New function.
5990 (deprecated_grub_regcache_for_register_valid): New function.
5991 (current_regcache): New global variable.
5992 (register_buffer): Add regcache parameter. Update calls.
5993 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
5994 (read_register_gen, write_register_gen): Update register_buffer
5995 call. Test for legacy_p instead of gdbarch_register_read_p or
5996 gdbarch_register_write_p.
5997 (regcache_collect): Update register_buffer call.
5998 (build_regcache): Rewrite. Use deprecated grub functions.
5999 (regcache_save, regcache_save_no_passthrough): New functions.
6000 (regcache_restore, regcache_restore_no_passthrough): New
6002 (_initialize_regcache): Create the regcache_data_handle. Swap
6003 current_regcache global variable.
6005 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6006 parameter to regcache_read and regcache_write calls.
6007 (sh4_register_read): Ditto.
6008 (sh64_pseudo_register_read): Ditto.
6009 (sh64_register_read): Ditto.
6010 (sh_pseudo_register_write): Ditto.
6011 (sh4_register_write): Ditto.
6012 (sh64_pseudo_register_write): Ditto.
6013 (sh64_register_write): Ditto.
6015 * defs.h (XCALLOC): Define.
6017 2002-06-19 Grace Sainsbury <graces@redhat.com>
6019 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6020 * m68k-tdep.c (m68k_gdbarch_init): Added.
6021 (m68k_dump_tdep): Added.
6023 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6025 * ada-lang.c (fill_in_ada_prototype): Update comment.
6027 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6029 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6031 (mips_abi_string, mips_abi_strings): New.
6032 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6033 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6034 tdep->mips_abi_string. Honor mips_abi_string. Default to
6035 O32 if no ABI is found.
6036 (mips_dump_tdep): Use mips_abi_strings.
6037 (mips_abi_update): New function.
6038 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6039 ``set mips abi'' and ``show mips abi''. Check the size of
6042 2002-06-19 Andrew Cagney <cagney@redhat.com>
6044 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6047 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6049 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6050 current frame using only the first stack size adjustment. All
6051 subsequent size adjustments are not considered to be part of
6052 the "static" part of the current frame.
6053 Compute the address of the saved registers relative to the
6054 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6055 in use in this frame.
6057 2002-06-18 Don Howard <dhoward@redhat.com>
6059 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6060 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6061 suggesting this solution.
6063 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6065 * config/romp/xm-rtbsd.h: Delete file.
6066 * config/romp/rtbsd.mh: Delete file.
6068 2002-06-18 Keith Seitz <keiths@redhat.com>
6070 * breakpoint.c (condition_command): Post breakpoint_modify
6071 when a condition is added to an existing breakpoint.
6072 (commands_command): Likewise for commands.
6073 (set_ignore_count): Likewise for ignore counts.
6074 If no tty, do not simply return, still need to send event
6076 (ignore_command): Only print a newline if the command came
6078 Don't call breakpoints_changed, since this is now properly
6079 handled by set_ignore_count.
6081 2002-06-18 Andrew Cagney <cagney@redhat.com>
6083 * MAINTAINERS: Note that cris-elf target can be compiled with
6085 * cris-tdep.c (cris_register_name): Make return type constant.
6086 (cris_breakpoint_from_pc): Ditto.
6088 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6090 * frame.h (struct frame_info): Change type of context to
6093 2002-06-17 Andrew Cagney <cagney@redhat.com>
6095 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6097 * gdbarch.h, gdbarch.c: Regenerate.
6098 * config/mips/tm-mips.h (mips_register_name): Update.
6099 * i386-tdep.h (i386_register_name): Update.
6100 * mips-tdep.c (mips_register_name): Update
6101 * alpha-tdep.c (alpha_register_name): Update.
6102 * arch-utils.c (legacy_register_name): Update.
6103 * arch-utils.h (legacy_register_name): Update.
6104 * avr-tdep.c (avr_register_name): Update.
6105 * ia64-tdep.c (ia64_register_name): Update.
6106 * i386-tdep.c (i386_register_name): Update.
6107 * sparc-tdep.c (sparc32_register_name): Update.
6108 (sparc64_register_name): Update.
6109 (sparclite_register_name): Update.
6110 (sparclet_register_name): Update.
6111 * sh-tdep.c (sh_generic_register_name): Update.
6112 (sh_sh_register_name): Update.
6113 (sh_sh3_register_name): Update.
6114 (sh_sh3e_register_name): Update.
6115 (sh_sh_dsp_register_name): Update.
6116 (sh_sh3_dsp_register_name): Update.
6117 (sh_sh4_register_name): Update.
6118 (sh_sh64_register_name): Update.
6119 * s390-tdep.c (s390_register_name): Update.
6120 * rs6000-tdep.c (rs6000_register_name): Update.
6121 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6122 (ns32k_register_name_32382): Update.
6123 * d10v-tdep.c (d10v_ts2_register_name): Update.
6124 (d10v_ts3_register_name): Update.
6125 * xstormy16-tdep.c (xstormy16_register_name): Update.
6126 * vax-tdep.c (vax_register_name): Update.
6127 * v850-tdep.c (v850_register_name): Update.
6128 * m68hc11-tdep.c (m68hc11_register_name): Update.
6129 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6130 (am33_register_name): Update.
6132 2002-06-17 Grace Sainsbury <graces@redhat.com>
6134 * m68k-tdep.c: Reindented.
6136 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6138 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6139 list of predefined types.
6141 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6143 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6144 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6145 REGISTER_CONVERT_TO_RAW): Remove defines.
6146 (i386_register_virtual_type, i386_register_convertible,
6147 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6149 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6150 macros mentioned above.
6152 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6153 (i386lynx_saved_pc_after_call): Remove prototype.
6154 * i386ly-tdep.c: Include "i386-tdep.h".
6155 (i386lynx_saved_pc_after_call): Make static. Use
6156 read_memory_nobpt instead of read_memory. Use
6157 read_memory_unsigned_integer instead of read_memory_integer.
6158 (i386lynx_init_abi): New function.
6159 (i386lynx_coff_osabi_sniffer): New function.
6160 (_initialize_i386bsd_tdep): New function.
6162 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6163 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6164 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6165 (i386_fix_call_dummy): Remove prototype.
6166 * i386-tdep.c (i386_call_dummy_words): New variable.
6167 (i386_gdbarch_init): Adjust for removal of the
6168 macros mentioned above.
6170 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6172 * command.h (add_setshow_auto_boolean_cmd): Replace
6173 add_set_auto_boolean_cmd.
6174 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6175 add_set_auto_boolean_cmd.
6176 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6177 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6178 mask-address'' command.
6179 (show_mask_address): Add cmd parameter.
6180 * remote.c (add_packet_config_cmd): Update. Change type of
6181 set_func and show_func to cmd_sfunc_ftype.
6182 (_initialize_remote): Update `set remote Z-packet'
6183 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6184 (show_remote_protocol_e_packet_cmd): Ditto.
6185 (show_remote_protocol_E_packet_cmd): Ditto.
6186 (show_remote_protocol_P_packet_cmd): Ditto.
6187 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6188 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6189 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6190 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6191 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6192 (show_remote_protocol_Z_packet_cmd): Ditto.
6193 (show_remote_protocol_binary_download_cmd): Ditto.
6194 (show_remote_cmd): Pass NULL to all of above.
6196 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6198 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6199 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6200 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6201 POP_FRAME): Remove defines.
6202 (i386_push_arguments, i386_store_struct_return,
6203 i386_extract_return_value, i386_store_return_value,
6204 i386_extract_struct_value_address, i386_push_dummy_frame,
6205 i386_pop_frame): Renove prototypes.
6206 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6207 macros mentioned above.
6209 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6211 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6212 add_set_boolean_cmd.
6213 (add_setshow_cmd): New function.
6214 * command.h (add_setshow_boolean_cmd): Replace
6215 add_set_boolean_cmd.
6216 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6217 and ``set rdiromatzero''.
6218 * maint.c (_initialize_maint_cmds): Update commented out code.
6219 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6220 * target.c (initialize_targets): Update `set
6221 trust-readonly-sections'.
6222 * remote.c (_initialize_remote): Update `set remotebreak'.
6224 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6226 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6227 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6228 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6229 fit into multi-arch framework.
6230 (i386_breakpoint_from_pc): New function.
6231 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6234 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6235 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6236 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6237 (i386_frameless_function_invocation, i386_frame_num_args,
6238 i386_frame_init_saved_regs): Remove prototypes.
6239 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6240 macros mentioned above.
6242 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6244 * cli/cli-decode.c (set_cmd_cfunc): Update.
6245 (set_cmd_sfunc): Update.
6246 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6247 (set_cmd_sfunc, set_cmd_cfunc): Update.
6248 * cli/cli-decode.h: Update.
6250 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6252 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6253 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6255 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6257 * defs.h (auto_boolean): Declare enum.
6258 * command.h (cmd_auto_boolean): Delete enum.
6259 * mips-tdep.c (mask_address_var): Update.
6260 (mips_mask_address_p): Update.
6261 (show_mask_address): Update.
6262 * remote.c (struct packet_config): Update.
6263 (update_packet_config): Update.
6264 (show_packet_config_cmd): Update.
6265 (packet_ok): Update.
6266 (add_packet_config_cmd): Update.
6267 (_initialize_remote):
6268 * command.h: Update.
6269 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6270 (do_setshow_command): Update.
6271 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6272 * cli/cli-decode.h: Update.
6274 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6276 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6277 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6278 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6279 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6280 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6281 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6283 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6284 list of DJGPP COFF targets.
6286 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6287 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6288 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6289 (FP0_REGNUM): Remove define.
6290 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6291 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6292 (i386_register_virtual_size): Remove protoype.
6293 * i386-tdep.c (i386_register_virtual_size): Removed.
6294 (i386_extract_return_value, i386_store_return_value): Use
6295 FP0_REGNUM instead of NUM_FREGS to determine whether the
6296 floating-point registers are available.
6297 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6298 Adjust for removal of macros mentioned above.
6300 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6302 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6304 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6306 (supply_gregset, fill_gregset): Remove use of register keyword and
6307 remove declaration for regmap. Use I386_NUM_GREGS instead of
6308 NUM_REGS and NUM_FREGS.
6309 (FPREGSET_FSAVE_OFFSET): Remove.
6310 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6311 NUM_FREGS to determine whether the floating-point registers are
6314 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6315 gnu_store_registers): Replace usage of NUM_GREGS with
6318 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6319 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6320 usage of NUM_GREGS with I386_NUM_GREGS.
6322 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6324 * i386bsd-nat.c: Include "i386-tdep.h".
6325 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6328 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6329 and associated comment. They no longer make any sense, since we
6330 don't use this file anymore on Linux.
6332 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6333 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6334 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6335 elements in these arrays.
6336 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6339 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6341 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6342 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6344 2002-06-14 Andrew Cagney <cagney@redhat.com>
6346 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6347 EXTRACT_RETURN_VALUE.
6348 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6349 EXTRACT_STRUCT_VALUE_ADDRESS.
6350 * gdbarch.h, gdbarch.c: Regenerate.
6352 * values.c (value_being_returned): Handle
6353 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6354 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6356 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6357 * arm-tdep.c (arm_gdbarch_init): Update.
6358 * avr-tdep.c (avr_gdbarch_init): Update.
6359 * cris-tdep.c (cris_gdbarch_init): Update.
6360 * d10v-tdep.c (d10v_gdbarch_init): Update.
6361 * ia64-tdep.c (ia64_gdbarch_init): Update.
6362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6363 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6364 * s390-tdep.c (s390_gdbarch_init): Update.
6365 * sh-tdep.c (sh_gdbarch_init): Update.
6366 * s390-tdep.c (s390_gdbarch_init): Update.
6367 * sparc-tdep.c (sparc_gdbarch_init): Update.
6368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6369 * v850-tdep.c (v850_gdbarch_init): Update.
6370 * vax-tdep.c (vax_gdbarch_init): Update.
6371 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6372 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6374 * config/arc/tm-arc.h: Update.
6375 * config/d30v/tm-d30v.h: Update.
6376 * config/fr30/tm-fr30.h: Update.
6377 * config/h8300/tm-h8300.h: Update.
6378 * config/h8500/tm-h8500.h: Update.
6379 * config/i386/tm-i386.h: Update.
6380 * config/i386/tm-ptx.h: Update.
6381 * config/i386/tm-symmetry.h: Update.
6382 * config/i960/tm-i960.h: Update.
6383 * config/m32r/tm-m32r.h: Update.
6384 * config/m68k/tm-delta68.h: Update.
6385 * config/m68k/tm-linux.h: Update.
6386 * config/m68k/tm-m68k.h: Update.
6387 * config/m88k/tm-m88k.h: Update.
6388 * config/mcore/tm-mcore.h: Update.
6389 * config/mips/tm-mips.h: Update.
6390 * config/mn10200/tm-mn10200.h: Update.
6391 * config/pa/tm-hppa.h: Update.
6392 * config/pa/tm-hppa64.h: Update.
6393 * config/sparc/tm-sp64.h: Update.
6394 * config/sparc/tm-sparc.h: Update.
6395 * config/sparc/tm-sparclet.h: Update.
6396 * config/z8k/tm-z8k.h: Update.
6398 2002-06-14 Andrew Cagney <cagney@redhat.com>
6400 * Makefile.in (i386_linux_tdep_h): Define.
6401 (i386_tdep_h, i387_tdep_h): Define.
6402 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6403 $(i386_tdep_h) and $(i387_tdep_h).
6404 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6406 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6408 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6409 Already covered by the default.
6411 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6412 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6413 (i386_gdbarch_init): Initialize long_double_format and long_double
6416 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6417 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6419 * config/i386/i386sol2.mh: ... here.
6420 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6421 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6422 (SIGCONTEXT_PC_OFFSET): Remove define.
6423 (IN_SIGTRAMP): Remove define.
6424 * i386-sol2-tdep.c: New file.
6426 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6427 * config/i386/tm-i386nw.h: Removed.
6429 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6430 USE_STRUCT_CONVENTION): Remove defines.
6431 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6432 (get_longjmp_target): Remove prototype.
6433 (IN_SIGTRAMP): Remove define.
6434 (i386bsd_in_sigtramp): Remove prototype.
6435 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6436 function. Update comment accordingly
6437 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6438 (FRAME_SAVED_PC): Remove define.
6439 (i386bsd_frame_saved_pc): Remove prototype.
6440 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6441 GET_LONGJMP_TARGET): Remove defines.
6442 (get_longjmp_target): Remove prototype.
6443 (IN_SIGTRAMP): Remove define.
6444 (i386bsd_in_sigtramp): Remove prototype.
6445 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6446 function. Update comment accordingly
6447 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6448 (FRAME_SAVED_PC): Remove define.
6449 (i386bsd_frame_saved_pc): Remove prototype.
6450 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6452 (USE_STRUCT_CONVENTION): Remove prototype.
6453 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6455 (_initialize_i386bsd_nat): Revise logic to determine some
6456 constants at compile time when compiling a native GDB. Warn if
6457 things don't match up with what we expect.
6458 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6460 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6461 to use date stored in `struct gdbarch_tdep'.
6462 (i386bsd_sigcontext_offset): Remove varaible.
6463 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6464 stored in `struct gdbarch_tdep'.
6465 (i386bsd_frame_saved_pc): Make static.
6466 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6467 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6468 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6469 i386fbsd4_sc_pc_offset): New variables.
6470 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6471 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6473 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6475 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6476 Modify the value of i386fbsd_sigtramp_start and
6477 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6478 i386fbsd_sigtramp_end.
6479 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6482 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6483 define to i386-linux-tdep.h.
6484 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6485 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6487 (i386_linux_register_name, i386_linux_register_byte,
6488 i386_linux_register_raw_size): Remove prototypes.
6489 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6490 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6491 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6492 TARGET_WRITE_PC): Remove defines.
6493 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6494 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6495 i386_linux_write_pc): Remove prototypes.
6496 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6497 (get_longjmp_target): Remove prototype.
6498 * i386-linux-tdep.h: New file.
6499 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6500 * i386-linux-tdep.c: Include "i386-tdep.h" and
6501 "i386-linux-tdep.h".
6502 (i386_linux_register_name, i386_linux_register_byte,
6503 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6504 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6506 (i386_linux_init_abi): New function.
6507 (_initialize_i386_linux_tdep): New function.
6509 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6510 (i386_saved_pc_after_call): Remove prototype.
6511 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6512 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6513 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6514 (i386_register_name, i386_stab_reg_to_regnum,
6515 i386_dwarf_reg_to_regnum): Remove prototypes.
6516 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6517 SIZEOF_SSE_REGS): Remove defines.
6518 (REGISTER_BYTES): Remove define.
6519 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6520 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6521 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6522 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6523 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6524 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6525 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6526 (get_longjmp_target): Remove prototype.
6527 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6528 (sigtramp_saved_pc): Remove define.
6529 (i386v4_sigtramp_saved_pc): Remove prototype.
6530 * config/i386/tm-go32.h (FRAME_CHAIN,
6531 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6532 (i386go32_frame_saved_pc): Remove prototype.
6533 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6534 (get_longjmp_target): Remove prototype.
6535 * i386-tdep.h: Include "osabi.h".
6536 (enum i386_abi): Removed.
6537 (enum struct_return): New enum.
6538 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6539 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6540 sc_pc_offset members.
6541 (i386_gdbarch_register_os_abi): Remove prototype.
6542 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6543 I386_SSE_NUM_REGS): New defines.
6544 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6545 I386_SSE_SIZEOF_REGS): New defines.
6546 (i386_register_name, i386_register_byte, i386_register_raw_size):
6548 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6549 (i386bsd_sigtramp_saved_pc): New prototype.
6550 * i386-tdep.c: Don't include "elf-bfd.h".
6551 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6552 i386_frame_chain, i386_saved_pc_after_call): Make static.
6553 (i386_frame_saved_pc): Rewrite to call architecture dependent
6554 function to deal with signal handlers. Make static.
6555 (i386go32_frame_saved_pc): Removed.
6556 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6558 (i386_get_longjmp_target): New function.
6559 (default_struct_convention, pcc_struct_convention,
6560 reg_struct_convention, valid_conventions, struct_convention): New
6562 (i386_use_struct_convention): New function.
6563 (i386v4_sigtramp_saved_pc): Renamed to
6564 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6565 (i386_pc_in_sigtramp): New function.
6566 (i386_abi_names): Removed.
6567 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6568 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6570 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6571 i386_gdbarch_register_os_abi): Removed.
6572 (struct i386_abi_handler): Removed.
6573 (i386_abi_handler_list): Removed.
6574 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6576 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6577 i386_nw_init_abi): New functions.
6578 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6579 Use set_gdbarch_xxx() calls instead of relying on macros for a
6581 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6582 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6583 Register the various architecture variants defined in this file.
6585 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6587 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6588 (struct main_type): Remove arg_types member. Update comments for
6590 (TYPE_ARG_TYPES): Remove.
6591 (TYPE_FN_FIELD_ARGS): Update.
6592 (smash_to_method_type): Update prototype.
6594 * c-typeprint.c (cp_type_print_method_args): Take method type
6595 instead of argument list. Use new argument layout. Simplify.
6596 (c_type_print_args): Use new argument layout. Simplify.
6597 (c_type_print_base): Update call to cp_type_print_method_args.
6598 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6599 argument; use die->type instead. Update call to
6600 smash_to_method_type.
6601 (read_structure_scope): Update call to dwarf2_add_member_fn.
6602 * gdbtypes.c (allocate_stub_method): Update comment.
6603 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6604 Use new argument layout.
6605 (check_stub_method): Use new argument layout. Don't count
6606 void as an argument.
6607 (print_arg_types): Update comments. Use new argument layout.
6608 (recursive_dump_type): Don't print arg_types member.
6609 * hpread.c (hpread_read_struct_type): Use new argument layout.
6610 (fixup_class_method_type): Likewise.
6611 (hpread_type_lookup): Likewise.
6612 * stabsread.c (read_type): Update calls to read_args and
6613 smash_to_method_type.
6614 (read_args): Use new argument layout. Simplify.
6615 * valops.c (typecmp): Use new argument layout. Update parameters
6616 and comments. Simplify.
6617 (hand_function_call): Use new argument layout.
6618 (search_struct_method): Update call to typecmp.
6619 (find_overload_match): Use new argument layout.
6621 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6623 * NEWS: Mention multithreaded debug support for gdbserver.
6625 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6627 * MAINTAINERS: Mention NEWS.
6629 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
6631 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
6632 (struct mips_objfile_private, compare_pdr_entries): New.
6633 (non_heuristic_proc_desc): Read the ".pdr" section if it
6636 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6638 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
6639 (arm_debug): New static variable.
6640 (_initialize_arm_tdep): Add ``set debug arm'' command.
6642 2002-06-12 Andrew Cagney <ac131313@redhat.com>
6644 * Makefile.in (sim_arm_h): Define.
6645 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
6646 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
6647 (arm_register_sim_regno): New function, map an internal REGNUM
6648 onto a simulator register number.
6649 (arm_gdbarch_init): Set register_sim_regno.
6651 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
6653 * MAINTAINERS: Add self.
6655 2002-06-11 Jim Blandy <jimb@redhat.com>
6657 * source.c (source_info): Mention whether the symtab has
6658 information about preprocessor macros.
6660 Call the command `info macro', not `show macro'.
6661 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
6663 (_initialize_macrocmd): Register `info_macro_command' in
6664 `infolist', not `showlist'.
6666 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
6668 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
6669 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
6670 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
6671 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
6672 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
6674 (set_mipsfpu_single_command, set_mipsfpu_double_command)
6675 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
6676 (_initialize_mips_tdep): Remove dead code.
6677 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
6678 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6679 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
6680 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
6681 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
6682 MIPS_LAST_FP_ARG_REGNUM): Remove.
6684 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6686 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
6687 (unwind_tmp_obstack_free, parse_frame_info)
6688 (update_context, cfi_read_fp, cfi_write_fp)
6689 (cfi_frame_chain, cfi_init_extra_frame_info)
6690 (cfi_virtual_frame_pointer): Use the above function.
6691 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
6693 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
6695 * v850-tdep.c (v850_type_is_scalar): New function.
6696 (v850_use_struct_convention): Match current gcc implementation
6697 as close as possible.
6698 (v850_push_arguments): Fix stack_offset handling. Don't write
6699 struct_addr into register. This is done by v850_store_struct_return.
6700 (v850_extract_return_value): Care for structs.
6701 (v850_store_return_value): Ditto.
6702 (v850_store_struct_return): Actually write address.
6704 2002-06-11 Michal Ludvig <mludvig@suse.cz>
6706 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
6707 without debug information too.
6709 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6711 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
6712 Make multi-arch pure.
6713 * gdbarch.h, gdbarch.c: Re-generate.
6714 * arm-tdep.c (arm_print_float_info): Update.
6715 * arch-utils.h (default_print_float_info): Update.
6716 * arch-utils.c (default_print_float_info): Update.
6717 * infcmd.c (float_info): Update call.
6719 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6721 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
6722 the front of the initialize list.
6724 2002-06-10 Andrew Cagney <ac131313@redhat.com>
6726 * infrun.c (struct inferior_status): Replace fields
6727 selected_frame_address and selected_level with field
6729 (save_inferior_status): Update. Use get_frame_id.
6730 (struct restore_selected_frame_args): Delete.
6731 (restore_selected_frame): Update. Use frame_find_by_id.
6732 (restore_inferior_status): Update.
6734 * breakpoint.h (struct breakpoint): Change type of
6735 watchpoint_frame to frame_id.
6736 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
6737 call to get_current_frame.
6738 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
6740 (watchpoint_check): Use frame_find_by_id.
6742 * frame.h (record_selected_frame): Delete declaration.
6743 * stack.c (record_selected_frame): Delete function.
6745 * frame.h (struct frame_id): Define.
6746 (get_frame_id): Declare.
6747 (frame_find_by_id): Declare.
6748 * frame.c (frame_find_by_id): New function.
6749 (get_frame_id): New function.
6751 2002-06-10 Andrey Volkov <avolkov@transas.com>
6753 * ser-e7kpc.c: Fix duplicated define and call of
6754 _initialize_ser_e7000pc
6756 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6758 * signals/signals.c (target_signal_from_host): Fix #ifdef
6760 (do_target_signal_to_host): Likewise.
6762 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
6764 * mips-tdep.c (mips_find_abi_section): New function.
6765 (mips_gdbarch_init): Call it.
6767 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6769 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
6770 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
6771 after Andrew's 2002-06-08 gdbarch change.
6773 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6775 * i386-linux-nat.c (suppy_gregset): Don't supply
6776 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
6778 (fill_gregset): Don't fetch it under the same circumstances.
6780 2002-06-09 Andrew Cagney <cagney@redhat.com>
6782 * Makefile.in (callback_h): Define.
6783 (remote_sim_h): Update path to remote-sim.h.
6784 (remote-rdp.o): Add $(callback_h).
6785 (remote-sim.o): Use $(callback_h).
6786 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
6787 * remote-rdp.c: Include "gdb/callback.h".
6789 2002-06-09 Mark Kettenis <kettenis@gnu.org>
6791 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
6792 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
6794 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6796 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
6797 * rdi-share/serpardr.c: Ditto.
6798 * rdi-share/unixcomm.c: Ditto.
6799 * rdi-share/serdrv.c: Ditto.
6800 * rdi-share/hostchan.h: Ditto.
6801 * rdi-share/hostchan.c: Ditto.
6802 * rdi-share/host.h: Ditto.
6803 * rdi-share/devsw.c: Ditto.
6805 * objfiles.h: Change type of obj_private to void pointer.
6806 * pa64solib.c: Update copyright. Don't include "assert.h", use
6807 strcmp instead of STREQ, use LONGEST, do not use PTR
6808 * somsolib.c: Ditto.
6810 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
6811 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
6812 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
6814 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6816 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
6817 (default_get_saved_register): Delete function.
6818 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
6819 generic_unwind_get_saved_register.
6820 * gdbarch.h, gdbarch.c: Re-generate.
6822 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6824 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
6825 generic_func_frame_chain_valid.
6826 * gdbarch.h, gdbarch.c: Re-generate.
6827 * blockframe.c (generic_func_frame_chain_valid): Only check
6828 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
6829 passing FP to PC_IN_CALL_DUMMY.
6832 2002-06-08 Andrew Cagney <ac131313@redhat.com>
6834 * gdbarch.sh (struct gdbarch_data): Add field init_p.
6835 (register_gdbarch_data): Initialize init_p.
6836 (gdbarch_data): Initialize data pointer using the init function.
6837 (init_gdbarch_data): Delete function.
6838 (gdbarch_update_p): Update.
6839 (initialize_non_multiarch): Update.
6840 (struct gdbarch): Add field initialized_p.
6841 * gdbarch.h, gdbarch.c: Re-generate.
6843 2002-06-07 Michal Ludvig <mludvig@suse.cz>
6845 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
6846 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
6847 better do the things actually here.
6848 * x86-64-tdep.c (x86_64_register_name2nr): New.
6849 (x86_64_register_name): Renamed to x86_64_register_nr2name.
6850 (x86_64_gdbarch_init): Respect the above change.
6851 * x86-64-tdep.h (x86_64_register_name2nr)
6852 (x86_64_register_nr2name): Add prototypes.
6853 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
6855 2002-06-06 Michael Snyder <msnyder@redhat.com>
6857 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
6858 Delete extra braces and re-indent.
6859 (d10v_store_return_value): Char return values
6860 must be shifted over by one byte in R0.
6861 (d10v_extract_return_value): Delete extra braces, re-indent.
6863 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6865 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
6866 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
6867 (d10v_integer_to_address): Rewrite.
6868 (d10v_frame_init_saved_regs): When reading fp and sp registers use
6869 the d10v specific functions which take care of converting to the
6872 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
6874 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
6875 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
6877 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6879 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
6881 * config/tm-linux.h: Ditto.
6882 * config/alpha/tm-alphalinux.h: Ditto.
6883 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
6884 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
6885 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
6886 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
6887 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
6888 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
6889 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
6890 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
6891 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
6892 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
6893 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
6894 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
6895 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
6896 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
6897 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
6898 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
6899 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
6900 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
6901 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
6902 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
6903 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
6904 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
6905 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
6906 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
6907 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
6908 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
6909 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
6910 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
6911 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
6912 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
6913 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
6914 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
6915 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
6916 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
6917 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
6918 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
6919 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
6921 2002-05-04 Aidan Skinner <aidan@velvet.net>
6923 * ada-exp.tab.c: New file
6924 * ada-exp.y: New file
6925 * ada-lang.c: New file
6926 * ada-lang.h: New file
6927 * ada-lex.c: New file
6928 * ada-lex.l: New file
6929 * ada-tasks.c: New file
6930 * ada-typeprint.c: New file
6931 * ada-valprint.c: New file
6933 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6935 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
6936 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
6938 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
6940 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
6941 insetead of ppc-linux-tdep.o.
6942 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
6943 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
6945 2002-06-02 Andrew Cagney <ac131313@redhat.com>
6947 2002-05-07 Christian Groessler <chris@groessler.org>
6948 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
6949 bit register contents for little endian hosts.
6951 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6953 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
6956 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6958 * gdbarch.h: Regenerate.
6960 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6962 * MAINTAINERS: Add everyone to write-after-approval list.
6964 2002-06-01 Andrew Cagney <ac131313@redhat.com>
6966 * stack.c (frame_info): Use frame_register_unwind instead of
6967 saved_regs. Mention when the SP is on the stack or in a register.
6969 * frame.h (frame_register_unwind_ftype): Define. Document.
6970 (struct frame_info): Add field register_unwind and
6971 register_unwind_cache.
6972 (frame_register_unwind): Declare.
6973 (generic_unwind_get_saved_register): Declare.
6975 * frame.c (frame_register_unwind): New function.
6976 (generic_unwind_get_saved_register): New function.
6978 * blockframe.c (generic_call_dummy_register_unwind): New function.
6979 (frame_saved_regs_register_unwind): New function.
6980 (set_unwind_by_pc): New function.
6981 (create_new_frame): New function.
6982 (get_prev_frame): New function.
6984 2002-05-30 Andrew Cagney <ac131313@redhat.com>
6986 * a29k-share/: Delete directory.
6987 * remote-vx29k.c: Delete file.
6989 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6991 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
6992 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
6994 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
6996 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
6997 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7000 (sparcnbsd-tdep.o): New dependency lists.
7001 * NEWS: Note new UltraSPARC NetBSD native configuration.
7002 * configure.host (sparc64-*-netbsd*): New host.
7003 * configure.tgt (sparc-*-netbsdelf*)
7004 (sparc-*-netbsd*): Set gdb_target to nbsd.
7005 (sparc64-*-netbsd*): New target.
7006 * sparc64nbsd-nat.c: New file.
7007 * sparcnbsd-nat.c: New file.
7008 * sparcnbsd-tdep.c: New file.
7009 * sparcnbsd-tdep.h: New file.
7010 * config/sparc/nbsd.mt: New file.
7011 * config/sparc/nbsd64.mh: New file.
7012 * config/sparc/nbsd64.mt: New file.
7013 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7014 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7016 * config/sparc/nbsdaout.mt: Remove.
7017 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7018 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7020 * config/sparc/nbsdelf.mt: Remove.
7021 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7022 sparc-nat.c compatiblity defines.
7023 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7024 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7025 * config/sparc/tm-nbsd64.h: New file.
7026 * config/sparc/tm-nbsdaout.h: Remove.
7027 * config/sparc/xm-nbsd.h: Remove.
7029 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7031 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7032 * sparc-tdep.c: Include osabi.h.
7033 (gdbarch_tdep): Add osabi member.
7034 (_initialize_sparc_tdep): Use gdbarch_register.
7035 (sparc_gdbarch_init): Use generic OS ABI framework.
7036 (sparc_dump_tdep): New function.
7038 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7040 * corefile.c (do_captured_read_memory_integer): Return non-zero
7042 (safe_read_memory_integer): Copy result of memory read when
7043 status is non-zero. Also, add comments.
7045 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7047 * Makefile.in (ppc_tdep_h): Define.
7050 (rs6000-tdep.o): Use $(ppc_tdep_h).
7053 (ppcnbsd-tdep.o): New dependency lists.
7054 * ppc-tdep.h: Use generic OS ABI framework.
7055 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7056 (ppc_linux_init_abi): New functions.
7057 (ppc_sysv_abi_broken_use_struct_convention)
7058 (ppc_sysv_abi_use_struct_convention)
7059 (ppc_sysv_abi_push_arguments): Move to...
7060 * ppc-sysv-tdep.c: ...here.
7061 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7062 * rs6000-tdep.c (process_note_abi_tag_sections)
7063 (get_elfosabi): Remove.
7064 (rs6000_gdbarch_init): Use generic OS ABI framework.
7065 (rs6000_dump_tdep): New function.
7066 (_initialize_rs6000_tdep): Use gdbarch_register.
7067 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7068 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7069 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7070 of ppc-linux-tdep.o.
7071 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7072 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7073 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7074 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7075 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7076 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7078 2002-05-29 Jim Blandy <jimb@redhat.com>
7080 * macroscope.c (default_macro_scope): Put `void' in empty argument
7083 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7085 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7086 * arch-utils.c: Include "sim-regno.h".
7087 * gdbarch.sh: Don't include "sim-regno.h".
7088 * gdbarch.h, gdbarch.c: Regenerate.
7089 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7091 * arch-utils.h (legacy_register_sim_regno): To here.
7092 * remote-sim.c (legacy_register_sim_regno): Move function from
7094 * arch-utils.c (legacy_register_sim_regno): To here.
7096 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7098 * sim-regno.h: New file.
7099 * Makefile.in (sim_regno_h): Define.
7100 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7101 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7102 (legacy_register_sim_regno): New function.
7103 (one2one_register_sim_regno): New function.
7104 (gdbsim_fetch_register): Rewrite.
7105 (gdbsim_store_register): Only store a register when
7106 REGISTER_SIM_REGNO is valid.
7107 * d10v-tdep.c: Include "sim-regno.h".
7108 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7109 (d10v_ts3_register_sim_regno): Ditto.
7110 * gdbarch.sh: Include "sim-regno.h".
7111 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7112 * gdbarch.h, gdbarch.c: Regenerate.
7113 * arch-utils.h (default_register_sim_regno): Delete declaration.
7114 * arch-utils.c (default_register_sim_regno): Delete function.
7116 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7118 * ppcnbsd-nat.c: Rewrite.
7119 * ppcnbsd-tdep.c: New file.
7120 * ppcnbsd-tdep.h: New file.
7121 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7122 solib.o, and solib-svr4.o.
7123 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7124 nbsd-tdep.o, and corelow.o.
7126 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7128 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7129 `tr' and `sed'. Mention that `broken' targets are not expected to
7132 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7134 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7135 Let PC point right after the prologue before looking up symbols.
7137 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7139 * i386-tdep.c (i386_register_virtual_type): Return
7140 builtin_type_vec128i for SSE registers.
7142 * gdbtypes.h (builtin_type_vec128i): Declare.
7144 * gdbtypes.c (build_builtin_type_vec128i): New function.
7145 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7146 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7147 (build_gdbtypes): Initialize new builtin vector types.
7148 (_initialize_gdbtypes): Register new vector types with gdbarch.
7150 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7152 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7153 since it has been multi-arch'd.
7154 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7155 Move Alpha and VAX multi-arch news entries to same section
7156 as other multi-arch news.
7158 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7160 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7161 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7162 static. Rename some register numbers to put them in ns32k-tdep
7164 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7165 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7167 (_initialize_ns32k_tdep): Use gdbarch_register.
7168 * ns32k-tdep.h: New file.
7169 * ns32knbsd-tdep.c: New file.
7170 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7171 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7172 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7173 REGISTER_BYTES, REGISTER_BYTE): Remove.
7174 * config/ns32k/tm-ns32k.h: New file.
7175 * config/ns32k/tm-umax.h: Remove.
7177 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7179 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7180 ns32k_store_struct_return, ns32k_extract_return_value,
7181 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7183 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7184 ns32k_saved_pc_after_call.
7185 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7186 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7187 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7188 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7189 ns32k_extract_struct_value_address.
7191 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7193 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7194 ns32k_fix_call_dummy): New.
7195 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7196 ns32k_call_dummy_words.
7197 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7198 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7199 CALL_DUMMY_NARGS): Remove.
7200 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7202 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7204 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7205 ns32k_frame_saved_pc, ns32k_frame_args_address,
7206 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7207 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7208 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7209 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7210 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7211 (BREAKPOINT): Remove..
7212 (FRAME_CHAIN): Define as ns32k_frame_chain.
7213 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7214 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7215 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7216 (FRAME_FIND_SAVED_REGS): Remove.
7217 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7218 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7219 (POP_FRAME): Define as ns32k_pop_frame.
7221 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7223 * ns32k-tdep.c (ns32k_register_byte_32082,
7224 ns32k_register_byte_32382, ns32k_register_raw_size,
7225 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7227 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7228 ns32k_register_byte_32382.
7229 * config/ns32k/tm-umax.h: Update copyright years.
7230 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7231 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7232 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7233 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7234 (ns32k_get_enter_addr): Fix prototype.
7236 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7238 * ns32k-tdep.c: Update copyright years.
7239 (ns32k_register_name_32082): New function.
7240 (ns32k_register_name_32382): Ditto.
7241 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7242 (REGISTER_NAME): Define as ns32k_register_name_32382.
7243 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7244 (REGISTER_NAME): Define as ns32k_register_name_32082.
7246 2002-05-24 Jim Blandy <jimb@redhat.com>
7248 * dwarf2read.c (free_line_header): Use xfree, not free.
7250 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7252 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7253 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7255 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7257 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7259 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7261 From Ross Alexander at NEC Europe:
7262 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7264 2002-05-23 Michael Snyder <msnyder@redhat.com>
7266 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7267 for input, rather than parse_and_eval_address.
7269 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7271 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7272 * Makefile.in (sim_d10v_h): Update definition.
7274 2002-05-24 Andrew Cagney <cagney@redhat.com>
7276 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7277 change `2002-05-22 Michael Snyder' below.
7278 (d10v_push_arguments): Ditto.
7279 (d10v_extract_return_value): Ditto.
7281 2002-05-23 Jim Blandy <jimb@redhat.com>
7283 * macrotab.c (check_for_redefinition): Don't complain if the new
7284 definition is the same as the previous one. Take more arguments
7285 to allow the comparison.
7286 (macro_define_object, macro_define_function): Pass more arguments
7287 to check_for_redefinition.
7289 2002-05-22 Michael Snyder <msnyder@redhat.com>
7291 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7292 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7293 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7294 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7295 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7296 Add a temp variable to save a call (and a memory read).
7297 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7298 if possible (so that PC_IN_CALL_DUMMY will work).
7300 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7302 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7304 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7306 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7308 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7309 (dwarf2_build_frame_info): Add offset to fde->initial_location
7310 so that frames of shared libraries are mapped correctly.
7311 (execute_stack_op): Change type of 'result' from ULONGEST to
7314 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7316 * config/alpha/tm-nbsd.h: Include solib.h.
7318 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7320 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7321 assumptions about the host's byte order.
7323 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7325 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7327 * alphanbsd-tdep.c: Include solib-svr4.h.
7328 * shnbsd-tdep.c: Ditto.
7330 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7332 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7333 nbsd-tdep.h to dependency list.
7334 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7335 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7336 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7337 nbsdaout.mh and nbsdelf.mh consistently.
7338 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7339 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7340 nbsdaout.mt and nbsdelf.mh consistently.
7341 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7342 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7343 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7344 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7345 a.out shared library stuff from here...
7346 * config/nm-nbsdaout.h: ...to here.
7347 * config/tm-nbsd.h: Remove.
7348 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7349 * config/arm/nbsd.mh: Remove.
7350 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7352 * config/arm/nbsdaout.mh: New file.
7353 * config/arm/nbsdelf.mh: New file.
7354 * config/arm/nm-nbsdaout.h: New file.
7355 * config/i386/nbsd.mh: Remove.
7356 * config/i386/nbsd.mt: Remove.
7357 * config/i386/nbsdaout.mh: New file.
7358 * config/i386/nbsdaout.mt: New file.
7359 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7360 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7361 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7362 i386_register_u_addr): Remove.
7363 * config/i386/nm-nbsdaout.h: New file.
7364 * config/i386/nm-nbsdelf.h: Remove.
7365 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7366 (USE_STRUCT_CONVENTION): Remove.
7367 * config/i386/tm-nbsdaout.h: New file.
7368 * config/i386/tm-nbsdelf.h: Remove.
7369 * config/m68k/nbsd.mh: Remove.
7370 * config/m68k/nbsd.mt: Remove.
7371 * config/m68k/nbsdaout.mh: New file.
7372 * config/m68k/nbsdaout.mt: New file.
7373 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7374 * config/m68k/nm-nbsdaout.h: New file.
7375 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7376 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7377 * config/ns32k/nbsd.mh: Remove.
7378 * config/ns32k/nbsd.mt: Remove.
7379 * config/ns32k/nbsdaout.mh: New file.
7380 * config/ns32k/nbsdaout.mt: New file.
7381 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7382 * config/ns32k/nm-nbsdaout.h: New file.
7383 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7384 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7385 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7386 (SVR4_SHARED_LIBS): Remove.
7387 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7388 * config/sparc/nbsd.mh: Remove.
7389 * config/sparc/nbsd.mt: Remove.
7390 * config/sparc/nbsdaout.mh: New file.
7391 * config/sparc/nbsdaout.mt: New file.
7392 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7393 * config/sparc/nbsdelf.mt: New file.
7394 * config/sparc/nm-nbsdaout.h: New file.
7395 * config/sparc/nm-nbsdelf.h: Remove.
7396 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7397 * config/sparc/tm-nbsdaout.h: New file.
7399 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7401 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7403 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7405 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7407 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7409 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7411 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7413 * NEWS: Note new MIPS NetBSD native configuration.
7414 * configure.host (mips*-*-netbsd*): New host.
7415 * configure.tgt (mips*-*-netbsd*): New target.
7416 * mipsnbsd-nat.c: New file.
7417 * mipsnbsd-tdep.c: New file.
7418 * mipsnbsd-tdep.h: New file.
7419 * config/mips/nbsd.mh: New file.
7420 * config/mips/nbsd.mt: New file.
7421 * config/mips/nm-nbsd.h: New file.
7422 * config/mips/tm-nbsd.h: New file.
7424 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7426 * Makefile.in (SFILES): Add osabi.c.
7427 (COMMON_OBS): Add osabi.o.
7428 (osabi.o): New dependency list.
7429 * osabi.c: New file.
7430 * osabi.h: New file.
7431 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7433 * Makefile.in (alpha_tdep_h): Define and use instead of
7435 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7436 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7438 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7439 * alpha-tdep.h: Include osabi.h.
7440 (alpha_abi): Remove.
7441 (gdbarch_tdep): Use generic OS ABI framework.
7442 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7443 gdbarch_register_osabi.
7444 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7445 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7446 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7448 * Makefile.in (sh_tdep_h): Add osabi.h.
7449 * sh-tdep.h (sh_osabi): Remove.
7450 (gdbarch_tdep): Use generic OS ABI framework.
7451 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7452 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7453 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7454 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7456 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7457 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7458 gdbarch_register_osabi.
7459 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7460 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7461 (get_elfosabi): Rename to...
7462 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7463 ABI framework support routines.
7464 (arm_gdbarch_init): Use generic OS ABI framework.
7465 (arm_dump_tdep): Likewise.
7466 (_initialize_arm_tdep): Likewise.
7467 * arm-tdep.h: Include osabi.h.
7469 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7471 (arm_gdbarch_register_os_abi): Remove prototype.
7472 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7473 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7475 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7476 * mips-tdep.c: Include osabi.h.
7477 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7480 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7482 * h8300-tdep.c: Fix formatting.
7484 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7486 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7487 printing vector registers.
7489 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7491 From Fernando Nasser:
7492 * remote.c (remote_async_open_1): Re-throw the exception when the
7494 (remote_cisco_open): Ditto.
7495 (remote_open_1): Ditto.
7497 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7499 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7500 (remote_start_remote): Add uiout parameter. Pass through to
7501 remote_start_remote_dummy.
7502 (remote_open_1): Use catch_exception instead of catch_errors.
7503 (remote_async_open_1): Ditto.
7504 (remote_cisco_open): Ditto.
7506 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7508 * remote.c (remote_start_remote): Replace PTR with void pointer.
7509 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7512 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7514 * gdb_indent.sh: Allow the script to be run in the sim directory.
7516 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7518 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7519 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7521 * corelow.c (core_open): Only call set_gdbarch_from_file if
7524 2002-05-17 Andrey Volkov <avolkov@transas.com>
7526 * h8300-tdep.c: Add support of EXR register
7527 * config/h8300/tm-h8300.h: Ditto.
7529 2002-05-17 Andrey Volkov <avolkov@transas.com>
7531 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7533 2002-05-17 Andrey Volkov <avolkov@transas.com>
7535 * h8300-tdep.c: Change literal regnums to REGNO.
7537 2002-05-17 Jim Blandy <jimb@redhat.com>
7539 * NEWS: Note addition of macro support.
7541 Expand preprocessor macros in C expressions.
7542 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7543 (scan_macro_expansion, scanning_macro_expansion,
7544 finished_macro_expansion): New function declarations.
7545 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7546 variable declarations.
7547 * parser-defs.h (expression_context_pc): New declaration.
7548 * parse.c (expression_context_pc): New variable.
7549 (parse_exp_1): Set expression_context_pc, as well as
7550 expression_context_block.
7551 * c-exp.y (yylex): If we're not already reading the result of a
7552 macro expansion, try to macro-expand the next token. When we're
7553 done scanning a macro expansion, switch back to the mainline text.
7554 Commas and `if's in a macro's expansion don't terminate the input.
7555 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7556 (macro_original_text, macro_expanded_text,
7557 expression_macro_lookup_func, expression_macro_lookup_baton): New
7559 (scan_macro_expansion, scanning_macro_expansion,
7560 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7561 c_preprocess_and_parse): New functions.
7562 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7563 c_preprocess_and_parse, instead of c_parse.
7564 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7565 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7567 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7569 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7570 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7571 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7573 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7575 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7577 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7579 * Makefile.in (sh_tdep_h): Define and use.
7580 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7581 register enum): Move to...
7582 * * sh-tdep.h: ...here.
7583 * sh-tdep.c: Include sh-tdep.h.
7584 * sh3-rom.c: Likewise.
7585 * shnbsd-tdep.c: Likewise.
7587 2002-05-16 Michael Snyder <msnyder@redhat.com>
7589 * arm-tdep.c: Spelling fix in comment.
7591 2002-05-16 Jim Blandy <jimb@redhat.com>
7593 Add commands for manually expanding macros and showing their
7595 * macrocmd.c, macroscope.c, macroscope.h: New files.
7596 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7597 (macroscope_h): New variable.
7598 (HFILES_NO_SRCDIR): Add macroscope.h.
7599 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7600 (macroscope.o, macrocmd.o): New rules.
7602 Teach the Dwarf 2 reader to read macro information.
7603 * dwarf2read.c: #include "macrotab.h".
7604 (dwarf_macinfo_buffer): New variable.
7605 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7607 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7608 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7609 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7610 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7611 dwarf2_macro_spaces_in_definition): New complaints.
7612 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7613 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7614 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7615 the partial symbol table.
7616 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
7617 from what's recorded in the partial symbol table.
7618 (read_file_scope): If the compilation unit has a
7619 `DW_AT_macro_info' attribute, read its macro information.
7620 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
7622 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7625 * ser-tcp.c: Don't include <netinet/udp.h>.
7627 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
7629 * MAINTAINERS: Update my email address.
7631 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
7633 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
7634 include file of the same name.
7636 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7638 * configure.tgt: Mark v850 as multi-arched.
7639 * config/v850/tm-v850.h: Remove file.
7640 * config/v850/v850.mt: Eliminate TM_FILE.
7642 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7644 * v850-tdep.c: Full multi-arch.
7645 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
7646 Define GDB_MULTI_ARCH to 2.
7648 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
7650 * p-exp.y (current_type): New static variable.
7651 Carries the type of the expression at the position that is parsed.
7652 (push_current_type, pop_current_type): Two new functions. Used
7653 to store/restore current_type in expression on specific tokens.
7654 (search_field): New static variable. Set to one after parsing a point
7655 as at that point only a FIELDNAME token should be searched.
7656 (FIELDNAME): New token. After a point only a token belonging to
7657 current_type type definition is allowed.
7658 (all over token rules): reset and change current_type according
7660 (exp '[' rule): insert implicit array index field if
7661 exp is a pascal string type.
7663 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7665 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
7666 frame info. Use frame_info's saved_regs instead of matching member
7667 in extra_frame_info throughout.
7668 (v850_frame_init_saved_regs): New function.
7669 (v850_init_extra_frame_info): Move most functionality into
7670 v850_frame_init_saved_regs().
7671 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
7672 (v850_frame_find_saved_regs): Remove declaration.
7673 (FRAME_FIND_SAVED_REGS): Remove definition.
7674 (v850_frame_init_saved_regs): Add declaration.
7675 (FRAME_INIT_SAVED_REGS): Add definition.
7677 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
7679 * v850-tdep.c: Begin multi-arch'ing v850.
7680 (v850_target_architecture_hook): Remove function.
7681 (v850_gdbarch_init): New function. Add code previously in
7682 v850_target_architecture_hook().
7683 (_initialize_v850_tdep): Don't set target_architecture_hook.
7684 Call register_gdbarch_init() instead.
7686 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
7688 * gdbtypes.h (struct cplus_struct_type): Remove args field.
7689 * hpread.c (hpread_read_struct_type): Remove assignments to args.
7690 (fixup_class_method_type): Likewise.
7692 2002-05-15 Jim Blandy <jimb@redhat.com>
7694 Add macro structures to GDB's symbol tables. Nobody puts anything
7696 * symtab.h (struct symtab): New member: `macro_table'.
7697 * buildsym.h (pending_macros): New global variable.
7698 * buildsym.c: #include "macrotab.h".
7699 (buildsym_init): Initialize `pending_macros'.
7700 (end_symtab): If we found macro information while reading a CU's
7701 debugging info, do build a symtab structure for it. Make the
7702 symtab point to the macro information, and clear the
7703 `pending_macros' pointer which held it while we were reading the
7705 (really_free_pendings): Free any pending macro table.
7706 * objfiles.h (struct objfile): New member: `macro_cache'.
7707 * objfiles.c (allocate_objfile): Set allocate and free functions
7708 for the macro cache's objstack.
7709 (free_objfile): Empty the macro cache's obstack.
7710 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
7711 set new allocate and free functions for it.
7712 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
7713 free functions for the macro cache's objstack. (Why is this
7714 function building its own objfile?)
7715 * symmisc.c (print_objfile_statistics): Print statistics on the
7717 * Makefile.in: Note that buildsym.o depends on macrotab.h.
7719 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7721 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
7722 (REGISTER_U_ADDR): Delete definition.
7723 (arm_register_u_addr): Delete declaration.
7725 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
7727 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
7728 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
7730 2002-05-14 Andrew Cagney <ac131313@redhat.com>
7732 * regcache.c (register_valid): Revise comments refering to "Not
7733 available" and "unavailable".
7734 * frame.c (frame_register_read): Ditto.
7735 * findvar.c (value_of_register): Ditto.
7737 2002-05-15 Andrew Cagney <cagney@redhat.com>
7739 * Makefile.in (remote_sim_h): Replace remote-sim_h.
7740 (remote-sim.o): Update dependencies.
7741 (d10v-tdep.o): Specify dependencies.
7742 (sim_d10v_h): Define.
7744 2002-05-14 Jim Blandy <jimb@redhat.com>
7746 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
7747 * macrotab.c (macro_lookup_inclusion, find_definition,
7748 new_macro_table): Same.
7750 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
7751 not `! strcmp ()'. This is a dubious improvement.
7752 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
7754 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
7755 although it's not necessary, to avoid a warning.
7757 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7759 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
7760 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
7761 TYPE_INSTANCE_FLAGS.
7762 (struct main_type): New.
7763 (struct type): Move most members to struct main_type. Change
7764 cv_type and as_type to new type_chain member. Add instance_flags.
7765 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
7766 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
7767 (finish_cv_type): Remove prototype.
7768 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
7770 (alloc_type_instance): New function.
7771 (smash_type): New function.
7772 (make_pointer_type, make_reference_type, make_function_type)
7773 (smash_to_member_type, smash_to_method_type): Call smash_type.
7774 (make_qualified_type): New function.
7775 (make_type_with_address_space): Call make_qualified_type.
7776 (make_cv_type): Likewise.
7777 (finish_cv_type): Remove unnecessary function.
7778 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
7779 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
7780 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
7781 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
7782 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
7783 * hpread.c (hpread_read_struct_type): Likewise.
7784 * stabsread.c (read_struct_type): Likewise.
7786 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
7788 * configure.tgt: Add a catch all sh* target, for cases like
7789 sh[2,3,4]-elf and sh-hms.
7791 2002-05-14 Keith Seitz <keiths@redhat.com>
7793 * event-loop.c (create_file_handler): Don't do anything but
7794 update data when we are given a fd which we are already
7797 2002-05-14 Michal Ludvig <mludvig@suse.cz>
7799 * dwarf2cfi.c (context_cpy): Copy registers correctly.
7800 (update_context): Use __func__ in warnings.
7802 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
7804 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
7805 and tcp_close to net_open and net_close.
7806 (net_open): Accept "udp:" and "tcp:" specifications. Connect
7807 using UDP if requested. Don't try to disable Nagle on UDP
7809 * remote.c (remote_serial_open): New function. Warn about UDP.
7810 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
7812 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7814 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
7816 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
7818 * configure.tgt: Remove sh-hms target.
7819 * MAINTAINERS: Don't list sh-hms as a separate target.
7821 2002-05-13 Jim Blandy <jimb@redhat.com>
7823 Add first preprocessor macro-expansion files.
7824 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
7825 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
7826 (splay_tree_h, macroexp_h, macrotab_h): New variable.
7827 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
7828 (COMMON_OBS): Add macrotab.o, macroexp.o.
7829 (macroexp.o, macrotab.o): New rules.
7831 2002-05-13 Andrew Cagney <ac131313@redhat.com>
7833 * config/m88k/tm-m88k.h: Update copyright.
7834 (m88k_target_write_pc): Declare
7835 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
7836 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
7837 (SHIFT_INST_REGS): Update definition.
7838 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
7839 using old definition of TARGET_WRITE_PC.
7840 * regcache.c (generic_target_write_pc): Delete code handling
7842 * gdbarch.sh (NNPC_REGNUM): Delete.
7843 * gdbarch.h, gdbarch.c: Regenerate.
7845 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
7847 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
7850 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
7852 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
7853 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
7854 (gen_address_of, gen_struct_ref, gen_repeat): Use type
7856 * c-typeprint.c (cp_type_print_method_args): Likewise.
7857 (c_type_print_args): Likewise.
7858 * d10v-tdep.c (d10v_push_arguments): Likewise.
7859 (d10v_extract_return_value): Likewise.
7860 * expprint.c (print_subexp): Likewise.
7861 * gdbtypes.c (lookup_primitive_typename): Likewise.
7862 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
7863 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
7864 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
7865 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
7866 (TYPE_VECTOR): Likewise.
7867 * hpread.c (hpread_read_struct_type)
7868 (fix_static_member_physnames, fixup_class_method_type)
7869 (hpread_type_lookup): Likewise.
7870 * mdebugread.c (parse_symbol, parse_type): Likewise.
7871 * p-lang.c (is_pascal_string_type): Likewise.
7872 * valops.c (hand_function_call): Likewise.
7873 * x86-64-tdep.c (classify_argument): Likewise.
7875 * hpread.c (hpread_read_function_type)
7876 (hpread_read_doc_function_type): Call replace_type.
7877 * dstread.c (create_new_type): Delete.
7878 (decode_dst_structure, process_dst_function): Call alloc_type.
7879 Use type access macros.
7881 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7883 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
7884 the're not supported by the current architecture.
7885 (i387_fill_fxsave): Likewise.
7887 2002-05-12 Fred Fish <fnf@redhat.com>
7889 * symfile.c (default_symfile_offsets): Arrange for uninitialized
7890 sect_index_xxx members to index the first slot in section_offsets
7891 if all of the section_offsets are zero.
7893 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7895 * configure.tgt (sparc-*openbsd): Remove entry accidentially
7896 checked in with last change.
7898 2002-05-12 Mark Kettenis <kettenis@gnu.org>
7900 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
7901 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
7904 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
7906 * Makefile.in: Update dependencies.
7908 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7910 * language.c (local_hex_string_custom): Simplify. Do not depend
7911 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
7913 * memattr.c (mem_info_command): Replace calls to
7914 longest_local_hex_string and longest_local_hex_string_custom.
7915 * buildsym.c (make_blockvector): Ditto.
7916 * solib.c (info_sharedlibrary_command): Ditto.
7917 * tracepoint.c (tracepoints_info): Ditto.
7918 * symtab.c (print_msymbol_info): Ditto.
7920 * language.c (local_hex_string): Delete.
7921 (local_hex_string_custom): Delete.
7922 (longest_local_hex_string): Rename to local_hex_string.
7923 (longest_local_hex_string_custom): Rename to
7924 local_hex_string_custom.
7925 * language.h (local_hex_string): Change parameter type to LONGEST.
7926 (local_hex_string_custom): Ditto.
7927 (longest_local_hex_string): Delete declaration.
7928 (longest_local_hex_string_custom): Ditto.
7930 * solib.c: Update copyright.
7931 * memattr.c: Update copyright.
7933 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7935 * arch-utils.h (legacy_register_to_value): Declare.
7936 (legacy_value_to_register): Declare.
7937 (legacy_convert_register_p): Declare.
7938 * arch-utils.c (legacy_register_to_value): New function.
7939 (legacy_value_to_register): New function.
7940 (legacy_convert_register_p): New function.
7942 * gdbarch.sh (REGISTER_TO_VALUE): Define.
7943 (VALUE_TO_REGISTER): Define.
7944 (CONVERT_REGISTER_P): Define.
7945 * gdbarch.h, gdbarch.c: Regenerate.
7947 * valops.c (value_assign): Use CONVERT_REGISTER_P and
7949 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
7952 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
7953 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
7955 * Makefile.in: Update dependencies for valops.c.
7956 * valops.c: Include "gdb_assert.h".
7957 (typecmp): Skip THIS parameter to methods.
7958 (find_method_list): Remove static_memfuncp argument,
7959 update callers. Check for stub methods.
7960 (find_value_oload_method_list): Don't set *static_memfuncp.
7961 (find_overload_match): Don't check for stub methods. Assert
7962 that methods are not stubbed. Handle static methods.
7963 (value_find_oload_method_list): Remove static_memfuncp argument.
7964 * gdbtypes.c (check_stub_method): Do not add THIS pointer
7965 to the argument list for static stub methods.
7966 * value.h (value_find_oload_method_list): Update prototype.
7968 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7970 * arch-utils.h (generic_register_size): Declare.
7971 (generic_register_raw_size, generic_register_virtual_size): Delete
7973 * arch-utils.c (generic_register_raw_size): Delete.
7974 (generic_register_size): New function.
7975 (generic_register_virtual_size): Delete.
7977 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
7978 default generic_register_size.
7979 * gdbarch.h, gdbarch.c: Re-generate.
7981 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
7982 register_virtual_size.
7983 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
7984 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7986 2002-05-11 Andrew Cagney <ac131313@redhat.com>
7988 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
7989 * gdbarch.h, gdbarch.c: Regenerate.
7990 * gnu-v3-abi.c: Update copyright.
7991 (vtable_address_point_offset): Update.
7992 (gnuv3_rtti_type): Update.
7993 (gnuv3_baseclass_offset): Update.
7994 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
7995 (init_fetch_link_map_offsets): Update.
7996 * remote.c (get_remote_state): Update.
7998 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8000 * TODO: Remove value_headof/value_from_vtable_info comment.
8001 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8002 * values.c (value_headof, value_from_vtable_info): Delete.
8003 * value.h (value_from_vtable_info): Delete prototype.
8005 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8007 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8008 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8010 (gdb_assert_h): Define.
8011 (gdb_wait_h): Define.
8012 (gdb_regex_h): Define.
8014 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8016 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8017 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8019 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8021 * nbsd-tdep.c: Fix comment.
8023 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8025 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8026 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8027 (nbsd-tdep.o): New dependency list.
8028 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8030 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8031 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8032 * nbsd-tdep.c: New file.
8033 * nbsd-tdep.h: New file.
8034 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8036 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8037 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8038 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8039 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8041 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8043 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8044 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8045 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8046 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8047 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8048 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8050 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8052 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8053 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8054 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8055 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8056 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8057 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8058 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8060 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8062 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8063 fetch_elfcore_registers to...
8064 * i386nbsd-tdep.c: ...here.
8065 (i386nbsd_use_struct_convention): Rename to...
8066 (i386nbsd_aout_use_struct_convention): ...this.
8067 (i386nbsd_supply_reg): New function.
8068 (i386nbsd_fill_reg): New function.
8069 (fetch_core_registers): Use i386nbsd_supply_reg.
8070 (fetch_elfcore_registers): Likewise.
8071 (_initialize_i386nbsd_tdep): New function.
8072 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8073 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8074 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8075 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8076 (i386nbsd_aout_use_struct_convention): ...this.
8078 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8080 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8081 (store_inferior_registers): Use shnbsd_fill_reg.
8082 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8083 sh_nbsd_supply_register): Collapse into...
8084 (shnbsd_supply_reg): ...this.
8085 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8086 (shnbsd_fill_reg): ...this.
8087 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8088 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8089 (fetch_core_registers): Use shnbsd_supply_reg.
8090 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8091 (sh_nbsd_core_fns): Rename to...
8092 (shnbsd_core_fns): ...this.
8093 (sh_nbsd_elfcore_fns): Rename to...
8094 (shnbsd_elfcore_fns): ...this.
8095 (sh_nbsd_init_abi): Rename to...
8096 (shnbsd_init_abi): ...this.
8097 (_initialize_sh_nbsd_tdep): Rename to...
8098 (_initialize_shnbsd_tdep): ...this.
8099 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8100 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8101 sh_nbsd_fill_register): Remove prototypes.
8102 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8104 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8106 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8107 (i387-nat.o): Delete dependency list.
8108 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8109 (x86-64-linux-nat.o): Likewise.
8110 * i387-nat.c: Delete file, moving contents to...
8111 * i387-tdep.c: ...here.
8112 * i387-nat.h: Rename...
8113 * i387-tdep.h: ...to this.
8114 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8115 * i386-linux-nat.c: Likewise.
8116 * i386bsd-nat.c: Likewise.
8117 * i386gnu-nat.c: Likewise.
8118 * i386nbsd-nat.c: Likewise.
8119 * i386v4-nat.c: Likewise.
8120 * x86-64-linux-nat.c: Likewise.
8121 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8122 * config/i386/go32.mh (NATDEPFILES): Likewise.
8123 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8124 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8125 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8126 * config/i386/linux.mh (NATDEPFILES): Likewise.
8127 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8128 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8129 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8130 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8132 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8134 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8135 (alphanbsd-nat.o): Remove dependency list.
8136 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8137 * alphanbsd-nat.c: Delete. Contents moved to...
8138 * alphanbsd-tdep.c: ...here.
8139 (_initialize_alphanbsd_tdep): Register core functions.
8140 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8142 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8144 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8145 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8146 (alphanbsd-nat.o): Likewise.
8147 (alphabsd-tdep.o): New dependency list.
8148 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8149 (fill_gregset): Use alphabsd_fill_reg.
8150 (supply_fpregset): Use alphabsd_supply_fpreg.
8151 (fill_fpregset): Use alphabsd_fill_fpreg.
8152 (fetch_inferior_registers): Use struct reg and struct fpreg
8153 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8154 and alphabsd_supply_fpreg.
8155 (store_inferior_registers): Use struct reg and struct fpreg
8156 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8157 and alphabsd_fill_fpreg.
8158 * alphabsd-tdep.c: New file.
8159 * alphabsd-tdep.h: New file.
8160 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8161 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8162 alphabsd_supply_fpreg.
8163 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8164 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8166 2002-05-11 Eric Christopher <echristo@redhat.com>
8168 * mips-tdep.c (mips_double_register_type): Fix thinko.
8169 (mips_single_register_type): Ditto.
8170 * MAINTAINERS: Add self.
8172 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8174 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8175 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8176 right thing on architectures with different endianness and/or
8179 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8181 From Christian Limpach <chris@Pin.LU>
8182 * configure.in: Change sed expression which comments out
8183 NATDEPFILES to also comment out continuation lines.
8184 * configure: Regenerate.
8186 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8188 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8191 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8193 * sh-tdep.c: Include correct file.
8195 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8197 New support for sh64-elf (sh5) target.
8199 * configure.tgt: For sh64-elf target, default to sh-elf.
8201 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8202 (struct gdbarch_tdep): Add new fields for new registers and ABI
8205 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8206 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8207 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8208 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8209 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8210 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8211 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8212 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8213 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8214 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8215 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8216 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8217 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8218 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8219 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8220 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8221 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8222 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8223 sign_extend, sh64_nofp_frame_init_saved_regs,
8224 sh64_init_extra_frame_info, sh64_get_saved_register,
8225 sh64_extract_struct_value_address, sh64_pop_frame,
8226 sh64_push_arguments, sh64_extract_return_value,
8227 sh64_store_return_value, sh64_show_media_regs,
8228 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8229 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8230 sh_sh64_register_virtual_type,
8231 sh_sh64_register_convert_to_virtual,
8232 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8233 sh64_register_read, sh64_pseudo_register_write,
8234 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8235 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8236 sh64_do_pseudo_register, sh_compact_do_registers_info,
8237 sh64_do_registers_info, sh_gdbarch_init): New functions.
8239 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8241 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8243 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8245 * linespec.c (decode_line_1): Check for a double quote after
8246 a filename correctly.
8248 2002-05-10 Jim Blandy <jimb@redhat.com>
8250 Properly track the size of the current objfile's .debug_line section.
8251 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8252 (DWARF_LINE_SIZE): New macro.
8253 (dwarf2_build_psymtabs_hard): Record the line section's size in
8254 the partial symbol table.
8255 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8258 2002-05-10 Petr Sorfa <petrs@caldera.com>
8260 * ia64-tdep.c: Handle breakpoints on L instruction type
8261 in MLX instruction bundle by moving the breakpoint to
8262 the third slot (X instruction type) as L holds only data.
8264 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8266 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8267 (process_one_symbol): Complain about discarding local symbols
8268 due to a misplaced N_LBRAC entry.
8270 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8272 From Daniel Berlin <dan@cgsoftware.com>
8273 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8274 decrease the depth we are at, in the case of templates.
8276 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8278 * mips-tdep.c (mips_float_register_type): New function.
8279 (mips_double_register_type): New function.
8280 (mips_print_register): Use them.
8281 (do_fp_register_row): Likewise.
8283 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8285 * signals/signals.c (signals): Remove conditional compilation around
8286 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8287 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8289 2002-05-09 Michael Snyder <msnyder@redhat.com>
8291 * remote-rdp.c (remote_rdp_can_run): Remove.
8293 2002-05-09 Tom Tromey <tromey@redhat.com>
8295 * jv-valprint.c (java_val_print): Handle `char' as a special case
8298 2002-05-09 Michael Snyder <msnyder@redhat.com>
8300 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8301 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8302 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8303 str r(0123),[sp,#nn].
8304 (arm_skip_prologue): Ditto. Also make disassembly
8305 order-independent by placing it in a loop.
8307 2002-05-06 Michael Snyder <msnyder@redhat.com>
8309 * stabsread.c (read_type): Add recognition for new attribute:
8310 "@V;" means that an array type is actually a vector.
8311 This is analogous to the vector flag that's been added to dwarf2.
8313 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8315 * i386-tdep.h (i386_abi): New enum.
8316 (struct gdbarch_tdep): Replace os_ident member with abi.
8317 (i386_gdbarch_register_os_abi): New prototype.
8318 * i386-tdep.c (i386_abi_names): New array.
8319 (process_note_abi_tag_sections): Removed.
8320 (process_note_sections): New function.
8321 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8322 (struct i386_abi_handler): New struct.
8323 (i386_abi_handler_list): New variable.
8324 (i386_gdbarch_register_os_abi): New function.
8325 (i386_gdbarch_init): Adapt for the changes given above.
8327 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8329 * gregset.h: Say "GNU/Linux".
8331 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8333 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8334 (build_gdbtypes): Build builtin_type_v2_float.
8335 (_initialize_gdbtypes): Register new builtin type.
8337 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8339 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8340 (clear_gdbarch_swap): New function.
8341 (initialize_non_multiarch): Call.
8342 (gdbarch_update_p): Before calling init(), swap out and clear the
8343 existing architecture.
8344 * gdbarch.c: Regenerate.
8346 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8348 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8351 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8353 * sh-nbsd-nat.c: Rename to...
8354 * shnbsd-nat.c: ...this.
8355 * sh-nbsd-tdep.c: Rename to...
8356 * shnbsd-tdep.c: ...this.
8357 * sh-nbsd-tdep.h: Rename to...
8358 * shnbsd-tdep.h: ...this.
8359 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8360 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8362 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8364 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8365 concatenation for command help messages.
8367 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8369 * NEWS: Note new sh*-*-netbsdelf* configuration.
8370 * configure.host: Set gdb_host_cpu to sh for all sh*.
8371 (sh*-*-netbsdelf*): New host.
8372 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8373 (sh*-*-netbsdelf*): New target.
8374 * sh-nbsd-nat.c: New file.
8375 * sh-nbsd-tdep.c: New file.
8376 * sh-nbsd-tdep.h: New file.
8377 * config/sh/nbsd.mh: New file.
8378 * config/sh/nbsd.mt: New file.
8379 * config/sh/nm-nbsd.h: New file.
8380 * config/sh/tm-nbsd.h: New file.
8382 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8384 * sh-tdep.c (sh_osabi_names): Declare.
8385 (process_note_abi_tag_sections): New function.
8386 (get_elfosabi): Ditto.
8387 (sh_gdbarch_register_os_abi): Ditto.
8388 (sh_dump_tdep): Ditto.
8389 _initialize_sh_tdep): Use gdbarch_register to register
8390 sh_gdbarch_init and sh_dump_tdep.
8391 * config/sh/tm-sh.h (sh_osabi): Declare.
8392 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8394 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8396 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8397 (thumb_scan_prologue): Ditto.
8398 (arm_find_callers_reg): Ditto.
8399 (arm_frame_chain): Ditto.
8400 (arm_init_extra_frame_info): Ditto.
8401 (arm_frame_saved_pc): Ditto.
8402 (arm_pop_frame): Ditto.
8403 (arm_push_return_address): New function.
8404 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8405 call_dummy_location, call_dummy_breakpoint_offset_p,
8406 call_dummy_breakpoint_offset, call_dummy_p,
8407 call_dummy_stack_adjust_p, call_dummy_words,
8408 sizeof_call_dummy_words, call_dummy_start_offset,
8409 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8410 call_dummy_address, push_return_address and push_dummy_frame for
8411 generic dummy frames.
8413 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8415 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8416 size computation for alloca.
8417 (sh_fp_frame_init_saved_regs): Likewise.
8419 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8421 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8422 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8423 * arm-tdep.c (arm_store_return_value): Use them.
8424 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8425 * remote-rdp.c (remote_rdp_fetch_register): Use
8426 ARM_MAX_REGISTER_RAW_SIZE.
8427 (remote_rdp_store_register): Likewise.
8429 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8431 * dwarf2cfi.c: Code cleanup, removed unused variables,
8432 added default labels to switch {} statements.
8433 * x86-64-tdep.c: Ditto.
8434 * x86-64-linux-nat.c: Ditto.
8436 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8438 * solib.h: Protect against multiple inclusion.
8440 2002-05-06 Jim Blandy <jimb@redhat.com>
8442 Add first preprocessor macro-expansion files.
8443 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8444 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8445 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8446 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8447 (COMMON_OBS): Add macrotab.o, macroexp.o.
8448 (macroexp.o, macrotab.o): New rules.
8450 Separate the job of reading the line number info statement program
8451 header (...expialidocious) out into its own function.
8452 * dwarf2read.c (struct line_head, struct filenames, struct
8453 directories): Replace with...
8454 (struct line_header): New structure, containing the full
8455 contents of the statement program header, including the
8456 include directory and file name tables.
8457 (read_file_scope): If we have line number info, instead of just
8458 calling dwarf_decode_lines to do all the work, call
8459 dwarf_decode_line_header first to get a `struct line_header'
8460 containing the data in the statement program header, and then
8461 pass that to dwarf_decode_lines, which will pick up where that
8462 left off. Be sure to clean up the `struct line_header' object.
8463 (dwarf_decode_line_header, free_line_header, add_include_dir,
8464 add_file_name): New functions.
8465 (dwarf_decode_lines): Move all the code to read the statement
8466 program header into dwarf_decode_line_header. Take the line
8467 header it built as the first argument, instead of the offset to
8468 the compilation unit's line number info. Use the new `struct
8469 line_header' type instead of the old structures. No need to do
8470 cleanups here now, since we don't allocate anything.
8471 (dwarf2_statement_list_fits_in_line_number_section,
8472 dwarf2_line_header_too_long): New complaints.
8474 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8476 * gdbtypes.c (init_vector_type): New function.
8477 (build_builtin_type_vec128): Simplify the representation of SIMD
8479 (build_gdbtypes): Initialize new builtin vector types.
8480 (_initialize_gdbtypes): Register new vector types with gdbarch.
8481 (builtin_type_v4_float, builtin_type_v4_int32,
8482 builtin_type_v8_int16, builtin_type_v16_int8,
8483 builtin_type_v2_int32, builtin_type_v4_int16,
8484 builtin_type_v8_int8): New (renamed) SIMD types.
8486 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8488 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8489 (i387_fill_fxsave): Likewise.
8491 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8493 * alpha-tdep.c (alpha_extract_return_value): Don't use
8494 non-constant array size in prototype.
8496 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8498 From Brian Taylor <briant at model dot com>:
8499 * ui-out.c (ui_out_field_core_addr): Use the function
8500 longest_local_hex_string_custom'to format addresses > 32 bits
8503 * ui-out.c (ui_out_field_core_addr): Update comment.
8505 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8507 * stack.c (select_and_print_frame): Make static. Delete the
8509 (func_command): Update call.
8510 (select_frame_command): Delete code computing the frame level.
8511 * frame.h (select_and_print_frame): Delete declaration.
8513 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8515 * sparc-tdep.c (sparc_get_saved_register): Comment why
8516 get_prev_frame call is safe.
8518 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8520 * frame.h (select_frame): Delete level parameter.
8521 * stack.c (select_frame): Update. Use frame_relative_level to
8522 obtain the frame's level.
8523 (select_and_print_frame): Update call.
8524 (select_frame_command): Ditto.
8525 (up_silently_base): Ditto.
8526 (down_silently_base): Ditto.
8527 * ocd.c (ocd_start_remote): Ditto.
8528 * remote-rdp.c (remote_rdp_open): Ditto.
8529 * remote-mips.c (mips_initialize): Ditto.
8530 (common_open): Ditto.
8531 * remote-e7000.c (e7000_start_remote): Ditto.
8532 * m3-nat.c (select_thread): Ditto.
8533 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8534 (child_get_current_exception_event): Ditto.
8535 * varobj.c (varobj_create): Ditto.
8536 (varobj_update): Ditto.
8537 (c_value_of_root): Ditto.
8538 * tracepoint.c (finish_tfind_command): Ditto.
8539 * corelow.c (core_open): Ditto.
8540 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8541 * thread.c (info_threads_command): Ditto.
8542 (switch_to_thread): Ditto.
8543 * infrun.c (normal_stop): Ditto.
8544 (restore_selected_frame): Ditto.
8545 (restore_inferior_status): Ditto.
8546 * breakpoint.c (insert_breakpoints): Ditto.
8547 (watchpoint_check): Ditto.
8548 (bpstat_stop_status): Ditto.
8549 (do_enable_breakpoint): Ditto.
8550 * blockframe.c (flush_cached_frames): Ditto.
8551 (reinit_frame_cache): Ditto.
8553 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8555 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8558 2002-05-04 Jim Blandy <jimb@redhat.com>
8560 * gdbtypes.c (replace_type): Doc fix.
8562 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8564 * valprint.c (strcat_longest): Delete commented out function.
8567 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8569 * MAINTAINERS: Mark a29k as deleted.
8570 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8571 Move new configurations to the top.
8572 * configure.tgt: Remove a29k.
8573 * config/a29k/tm-vx29k.h: Delete.
8574 * config/a29k/vx29k.mt: Delete.
8575 * config/a29k/tm-a29k.h: Delete.
8576 * config/a29k/a29k-udi.mt: Delete.
8577 * config/a29k/a29k.mt: Delete.
8578 * a29k-tdep.c: Delete.
8579 * remote-udi.c: Delete.
8580 * remote-mm.c: Delete.
8581 * remote-eb.c: Delete.
8582 * remote-adapt.c: Delete.
8583 * Makefile.in: Remove obsolete code.
8584 * config/s390/s390x.mt: Ditto.
8585 * config/s390/s390.mt: Ditto.
8586 * config/sparc/sparclynx.mh: Ditto.
8587 * config/sparc/linux.mh: Ditto.
8588 * config/pa/hppaosf.mh: Ditto.
8589 * config/pa/hppabsd.mh: Ditto.
8590 * config/ns32k/nbsd.mt: Ditto.
8591 * config/mips/vr5000.mt: Ditto.
8592 * config/m68k/sun3os4.mh: Ditto.
8593 * config/m68k/nbsd.mt: Ditto.
8594 * config/m68k/m68klynx.mh: Ditto.
8595 * config/m32r/m32r.mt: Ditto.
8596 * config/i386/x86-64linux.mt: Ditto.
8597 * config/i386/nbsdelf.mt: Ditto.
8598 * config/i386/nbsd.mt: Ditto.
8599 * config/i386/i386lynx.mh: Ditto.
8601 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8603 * target.c (debug_print_register): New function. Handle oversize
8605 (debug_to_fetch_registers): Call.
8606 (debug_to_store_registers): Call.
8608 2002-05-03 Jim Blandy <jimb@redhat.com>
8610 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8611 (read_type): Doc fix.
8612 * gdbtypes.c (replace_type): Doc fix.
8614 * stabsread.c (multiply_defined_struct): New complaint.
8615 (read_struct_type): If the type we were passed isn't empty, or
8616 incomplete, don't read the new struct type into it; complain,
8617 and return the original type unchanged. Take a new `type_code'
8618 argument, which is the type code for the new type.
8619 (read_type): Rather than storing the type's type code here, pass
8620 it as an argument to read_struct_type, and let that take care of
8621 storing it. That way, we don't overwrite the original type code,
8622 so read_struct_type can use it to decide whether we're overwriting
8623 something we shouldn't.
8624 (complain_about_struct_wipeout): New function.
8626 2002-05-03 Andrew Cagney <ac131313@redhat.com>
8628 * gdbarch.sh: Assert that gdbarch is non-NULL.
8629 * gdbarch.c: Regenerate.
8631 2002-05-03 Jason Merrill <jason@redhat.com>
8633 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
8636 2002-05-03 Michal Ludvig <mludvig@suse.cz>
8638 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
8639 (x86_64_dwarf2gdb_regno_map_length),
8640 (x86_64_dwarf2_reg_to_regnum): Added.
8641 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
8642 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
8643 (_initialize_x86_64_tdep): Synced with the change above.
8644 (x86_64_skip_prologue): Reformulated message.
8646 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
8648 * f-exp.y: Also use new prev_lexptr variable
8649 to improve error reporting. Based on Michael Snyder
8650 2002-04-24 dated patch to c-exp.y.
8651 * jv-exp.y: Likewise.
8652 * m2-exp.y: Likewise.
8654 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
8656 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
8657 we are dealing with vectors.
8659 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8661 * config/m68k/tm-nbsd.h: Obvious fix,
8662 correct machine name.
8664 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8666 * p-typeprint.c (pascal_type_print_base): Add support
8667 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
8669 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8671 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
8672 for fondamental pascal 'char' type.
8674 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
8676 * p-lang.h (is_pascal_string_type): Declaration changed,
8677 new sixth argument of type char ** added.
8678 * p-lang.c (is_pascal_string_type): Implementation
8679 changed. Args length_pos, length_size, string_pos, char_size
8680 can now be NULL. New argument arrayname set to the field
8681 name of the char array. Return value set to char array
8682 field index plus one.
8683 * p-valprint.c (pascal_val_print): Adapt to new declaration of
8684 is_pascal_string_type function.
8686 2002-05-02 Andrew Cagney <cagney@redhat.com>
8688 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
8689 <cagney@redhat.com> change.
8690 * gdbarch.c: Regenerate.
8692 2002-05-02 Andrew Cagney <cagney@redhat.com>
8694 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
8695 before probing for a new one. Detect errorenous gdbarch_init
8697 * gdbarch.c: Regenerate.
8699 2002-05-01 Andrew Cagney <cagney@redhat.com>
8701 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
8702 * config/mcore/tm-mcore.h: Ditto. Update copyright.
8703 * config/v850/tm-v850.h: Ditto. Update copyright.
8705 2002-04-30 Andrew Cagney <ac131313@redhat.com>
8707 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
8710 2002-04-30 Michael Snyder <msnyder@redhat.com>
8712 * arm-tdep.c: Whitespace clean-ups.
8713 (arm_skip_prologue): Fix thinko; two lines
8714 should have been removed as part of 4/24 change.
8716 2002-04-30 Kevin Buettner <kevinb@redhat.com>
8718 * rs6000-tdep.c: Added comment describing how fpscr register
8719 numbers were chosen.
8721 2002-04-30 Michael Snyder <msnyder@redhat.com>
8723 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
8725 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8727 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
8728 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
8729 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
8731 2002-04-29 Kevin Buettner <kevinb@redhat.com>
8733 From Louis Hamilton <hamilton@redhat.com>:
8734 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
8735 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
8736 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
8737 not bfd-private xcoff data, to determine wordsize.
8738 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
8740 2002-04-29 Andrew Cagney <ac131313@redhat.com>
8742 GDB 5.2 released from 5.2 branch.
8744 2002-04-29 Michal Ludvig <mludvig@suse.cz>
8746 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
8747 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
8748 (x86_64_register_info_table): Added comments with register numbers.
8750 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
8752 * rs6000-tdep.c (rs6000_extract_return_value,
8753 rs6000_store_return_value): Handle returning vectors.
8754 (rs6000_gdbarch_init): Use
8755 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
8756 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
8758 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
8760 (ppc_sysv_abi_push_arguments): Handle vector parameters.
8761 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
8763 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8765 * hpread.c (hpread_psymtab_to_symtab_1,
8766 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
8767 with fprintf_unfiltered (gdb_stderr,...).
8769 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8771 * remote-array.c (printf_monitor, write_monitor,
8772 array_insert_breakpoint, array_remove_breakpoint ):
8773 Replace fprintf (stderr,...
8774 with fprintf_unfiltered (gdb_stderr,....
8775 * remote-es.c: Likewise.
8776 * remote-os9k.c: Likewise.
8777 * remote-st.c: Likewise.
8779 2002-04-28 Andreas Schwab <schwab@suse.de>
8781 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
8782 linux-proc.o and gcore.o.
8784 2002-04-26 Michal Ludvig <mludvig@suse.cz>
8786 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
8787 code without frame pointers.
8789 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8791 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
8794 2002-04-26 Ben Elliston <bje@redhat.com>
8796 * target.c (do_xfer_memory): Correct reference to the new option
8797 "trust-readonly-sections".
8799 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
8801 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
8802 * gdbtypes.c (recursive_dump_type): Output the vector flag.
8803 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
8805 (read_array_type): Record the fact that this array type is really a
8806 vector (i.e. are passed in by value).
8808 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
8810 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
8811 * alpha-tdep.c (alpha_sigcontext_addr): New function.
8812 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
8813 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
8814 * alpha-linux-tdep.c: Include frame.h.
8815 (alpha_linux_sigcontext_addr): New function.
8816 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
8817 alpha_linux_sigcontext_addr.
8818 * alpha-osf1-tdep.c: Include gdbcore.h.
8819 (alpha_osf1_sigcontext_addr): New function.
8820 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
8821 alpha_osf1_sigcontext_addr.
8822 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
8823 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
8825 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8827 * stack.c (selected_frame_level):
8828 (select_frame): Do not set selected_frame_level.
8829 * frame.h (selected_frame_level): Delete declaration.
8831 2002-04-26 Andrew Cagney <ac131313@redhat.com>
8833 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
8834 convert_from_func_ptr-addr when AIX / PowerOpen.
8836 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8838 * valops.c (hand_function_call): Call
8839 generic_save_call_dummy_addr.
8840 * frame.h (generic_save_call_dummy_addr): Declare.
8841 * blockframe.c (struct dummy_frame): Add fields call_lo and
8843 (generic_find_dummy_frame): Check for PC in range call_lo to
8844 call_hi instead of entry_point_address.
8845 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
8846 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
8847 (generic_save_call_dummy_addr): New function.
8849 2002-04-24 David S. Miller <davem@redhat.com>
8851 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
8852 sparc_skip_prologue.
8853 (sparc_skip_prologue): Kill frameless_p arg, and use line number
8854 information to find prologue when possible.
8855 (sparc_prologue_frameless_p): Call examine_prologue directly.
8856 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
8857 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
8859 (SKIP_PROLOGUE): Likewise.
8861 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8863 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
8864 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
8865 indicate that the condition it was testing is always true.
8866 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
8867 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8868 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
8870 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8872 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
8873 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
8874 tdep->jb_pc and tdep->jb_elt_size.
8875 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
8876 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
8877 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
8878 * alpha-nat.c (get_longjmp_target): Remove.
8879 (JB_ELEMENT_SIZE): Ditto.
8881 * alpha-tdep.c (alpha_get_longjmp_target): New function.
8882 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
8883 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
8884 to alpha_get_longjmp_target.
8885 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
8886 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
8887 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
8889 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8891 * README: Update to GDB 5.2.
8893 2002-04-25 Andrew Cagney <ac131313@redhat.com>
8895 * gdbarch.sh (LC_ALL): Set to `c'.
8897 2002-04-25 Theodore A. Roth <troth@verinet.com>
8899 * avr-tdep.c: Ran through gdb_indent.sh.
8901 2002-04-25 Theodore A. Roth <troth@verinet.com>
8903 * MAINTAINERS: Add myself as AVR maintainer.
8904 * NEWS: Note new target avr.
8906 2002-04-25 Theodore A. Roth <troth@verinet.com>
8908 * Makefile.in: Add support for AVR target.
8909 * configure.tgt: Add support for AVR target.
8910 * avr-tdep.c: New file
8911 * config/avr/avr.mt: New file.
8913 2002-04-25 Theodore A. Roth <troth@verinet.com>
8915 * MAINTAINERS: Add myself to write-after-approval.
8917 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
8919 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
8920 with fprintf_unfiltered (gdb_stderr,....
8922 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8925 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
8927 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
8929 * p-exp.y: Also use new prev_lexptr variable
8930 to improve error reporting. Based on Michael Snyder
8931 2002-04-24 dated patch to c-exp.y.
8933 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8935 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
8936 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
8937 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
8939 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8941 (FUNCTION_START_OFFSET): Remove.
8942 (BREAKPOINT): Ditto.
8944 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
8946 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
8949 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8951 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
8952 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
8953 alpha_linux_pc_in_sigtramp.
8954 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
8955 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
8956 alpha_osf1_pc_in_sigtramp.
8957 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
8958 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
8959 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8960 alphafbsd_pc_in_sigtramp.
8961 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
8962 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
8963 alphanbsd_pc_in_sigtramp.
8964 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
8965 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
8967 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8969 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8971 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8973 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
8975 (alphanbsd-nat.o): New dependency list.
8976 (alphanbsd-tdep.o): Ditto.
8977 * NEWS: Note new native NetBSD/alpha configuration.
8978 * alphanbsd-nat.c: New file.
8979 * alphanbsd-tdep.c: Ditto.
8980 * configure.host (alpha*-*-netbsd*): New host.
8981 * configure.tgt (alpha*-*-netbsd*): New target.
8982 * config/alpha/nbsd.mh: New file.
8983 * config/alpha/nbsd.mt: Ditto.
8984 * config/alpha/nm-nbsd.h: Ditto.
8985 * config/alpha/tm-nbsd.h: Ditto.
8987 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
8989 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
8990 (alpha-osf1-tdep.o): New dependency list.
8991 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
8992 and skip_sigtramp_frame members.
8993 * alpha-linux-tdep.c: Include gdbcore.h.
8994 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
8995 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
8996 * alpha-osf1-tdep.c: New file.
8997 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
8999 (alpha_frame_past_sigtramp_frame): New function.
9000 (alpha_dynamic_sigtramp_offset): Ditto.
9001 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9002 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9003 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9004 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9005 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9006 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9007 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9008 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9009 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9010 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9011 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9012 to find_solib_trampoline_target.
9013 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9014 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9015 (SKIP_TRAMPOLINE_CODE): Remove.
9016 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9017 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9018 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9019 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9020 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9021 (PROC_SIGTRAMP_MAGIC): Ditto.
9022 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9023 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9024 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9025 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9026 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9028 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9030 * NEWS: Note that Alpha targets are now multi-arch.
9032 2002-04-24 Michael Snyder <msnyder@redhat.com>
9034 * parser-defs.h (prev_lexptr): New external variable.
9035 * parse.c (parse_exp_1): Set prev_lexptr to null before
9036 calling the language-specific parser.
9037 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9038 (yyerror): Use prev_lexptr in error reporting.
9040 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9042 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9043 * gregset.h: If FILL_FPXREGSET is defined, provide
9044 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9045 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9046 is defined, call fill_fpxregset.
9048 2002-04-24 Roland McGrath <roland@frob.com>
9050 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9051 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9052 (supply_gregset, supply_fpregset): New functions.
9054 * gnu-nat.c (gnu_find_memory_regions): New function.
9055 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9056 (gnu_xfer_memory): Add a cast.
9058 2002-04-24 Michael Snyder <msnyder@redhat.com>
9060 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9061 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9062 of argument regs ("str r(0123), [r11, #-nn"]).
9063 (arm_skip_prologue): Better handling for frameless functions.
9064 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9065 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9067 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9069 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9070 NUM_PSEUDO_REGS can be used.
9072 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9074 * arch-utils.h: Update copyright.
9076 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9077 * gdbarch.h, gdbarch.c: Re-generate.
9079 * inferior.h (IN_SIGTRAMP): Delete definition.
9080 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9081 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9083 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9084 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9085 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9086 (find_proc_framesize): Ditto.
9087 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9088 (alpha_init_extra_frame_info): Ditto.
9089 * infrun.c (handle_inferior_event): Ditto.
9090 (handle_inferior_event): Ditto.
9091 (check_sigtramp2): Ditto.
9092 * blockframe.c (create_new_frame): Ditto.
9093 (get_prev_frame): Ditto.
9094 * ppc-linux-tdep.c: Update comments.
9095 * i386-linux-tdep.c: Update comments.
9096 * breakpoint.c (bpstat_what): Update comment.
9098 2002-04-24 David S. Miller <davem@redhat.com>
9100 * i960-tdep.c (register_in_window_p): New function.
9101 (i960_find_saved_register): Use it instead of
9102 REGISTER_IN_WINDOW_P.
9103 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9105 * symtab.h (find_stab_function_addr): Kill extern.
9106 * minsyms.c (find_stab_function_addr): Remove from here...
9107 * dbxread.c: ... to here, and mark it static.
9109 2002-04-20 David S. Miller <davem@redhat.com>
9111 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9112 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9114 2002-04-21 David S. Miller <davem@redhat.com>
9116 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9117 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9118 (vx_write_register): Likewise.
9120 2002-04-23 J. Brobecker <brobecker@gnat.com>
9122 * source.c (is_regular_file): New function.
9123 (openp): Check wether file to open is a regular file
9124 to avoid opening directories.
9126 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9128 * findvar.c (extract_signed_integer): Cast printf argument
9129 to suppress format warning.
9130 (extract_unsigned_integer): Likewise.
9131 * infcmd.c (registers_info): Likewise.
9132 * top.c (get_prompt_1): Likewise.
9133 * valops.c (value_assign): Likewise.
9134 * valprint.c (print_decimal): Likewise.
9136 2002-04-22 H.J. Lu (hjl@gnu.org)
9138 * c-exp.y (typebase): Support
9140 [long|long long|short] [signed|unsigned] [int|]
9144 signed [long|long long|short] int
9146 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9148 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9150 * vax-tdep.h: New file.
9151 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9152 Make several routines static.
9153 (vax_get_saved_register): New function.
9154 (vax_gdbarch_init): New function.
9155 (_initialize_vax_tdep): Register vax_gdbarch_init.
9156 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9157 Remove macros now under the control of gdbarch.
9159 2002-04-22 Michael Snyder <msnyder@redhat.com>
9161 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9162 Some whitespace and coding standards tweaks.
9164 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9166 * vax-tdep.c: Include regcache.h.
9167 (vax_call_dummy_words): New.
9168 (sizeof_vax_call_dummy_words): New.
9169 (vax_fix_call_dummy): New function.
9170 (vax_saved_pc_after_call): Ditto.
9171 * config/vax/tm-vax.h: Don't include regcache.h.
9172 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9173 (CALL_DUMMY): Remove.
9174 (CALL_DUMMY_WORDS): Define.
9175 (SIZEOF_CALL_DUMMY_WORDS): Define.
9176 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9178 2002-04-18 Michael Snyder <msnyder@redhat.com>
9180 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9182 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9184 * vax-tdep.c (vax_frame_chain): New function.
9185 (vax_push_dummy_frame): Ditto.
9186 (vax_pop_frame): Ditto.
9187 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9188 (FRAMELESS_FUNCTION_INVOCATION): Use
9189 generic_frameless_function_invocation_not.
9190 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9191 (POP_FRAME): Use vax_pop_frame.
9193 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9195 * vax-tdep.c (vax_store_struct_return): New function.
9196 (vax_extract_return_value): Ditto.
9197 (vax_store_return_value): Ditto.
9198 (vax_extract_struct_value_address): Ditto.
9199 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9200 vax_store_struct_return.
9201 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9202 (STORE_RETURN_VALUE): Use vax_store_return_value.
9203 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9205 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9207 * vax-tdep.c (vax_frame_saved_pc): New function.
9208 (vax_frame_args_address_correct): Ditto.
9209 (vax_frame_args_address): Ditto.
9210 (vax_frame_locals_address): Ditto.
9211 (vax_frame_num_args): Move code to be in proximity to
9212 other frame-related functions.
9213 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9214 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9215 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9216 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9217 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9219 2002-04-22 H.J. Lu (hjl@gnu.org)
9221 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9224 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9226 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9227 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9228 (FRAME_INIT_SAVED_REGS): New macro.
9230 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9232 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9234 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9236 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9238 (fetch_osf_core_registers): Likewise.
9239 (supply_gregset): Likewise.
9241 2002-04-22 J. Brobecker <brobecker@gnat.com>
9243 * symfile.h (get_section_index): Define.
9244 * symfile.c (get_section_index): New function.
9245 * mdebugread.c (SC_IS_SBSS): New macro.
9246 (SC_IS_BSS): Return true for the scBss storage class only, as
9247 the scSBss storage class refers to the .sbss section.
9248 (parse_partial_symbols): Discard the symbols which associated
9249 section does not exist.
9250 Make sure to use the .sbss section index for symbols which
9251 storage class is scBss, rather than using the .bss section index.
9253 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9255 * vax-tdep.c: Update copyright years.
9256 (vax_register_name): New function.
9257 (vax_register_byte): Ditto.
9258 (vax_register_raw_size): Ditto.
9259 (vax_register_virtual_size): Ditto.
9260 (vax_register_virtual_type): Ditto.
9261 * config/vax/tm-vax.h: Update copyright years.
9262 (REGISTER_NAMES): Remove.
9263 (REGISTER_NAME): Define.
9264 (REGISTER_BYTE): Use vax_register_byte.
9265 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9266 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9267 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9269 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9271 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9273 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9275 2002-04-21 David S. Miller <davem@redhat.com>
9277 * arch-utils.c (generic_prologue_frameless_p): Kill
9278 SKIP_PROLOGUE_FRAMELESS_P code.
9279 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9281 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9282 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9283 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9285 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9286 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9287 (sparc_gdbarch_init): Pass it to
9288 set_gdbarch_prologue_frameless_p.
9290 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9292 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9293 (alphabsd-nat.o): New dependency list.
9295 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9297 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9299 (alpha-linux-tdep.o): New dependency list.
9300 (alphafbsd-tdep.o): Likewise.
9302 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9304 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9306 * alpha-tdep.c: ...from here.
9307 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9309 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9311 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9312 prototype from here...
9313 * alpha-tdep.h: ...to here.
9315 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9317 * frame.h (selected_frame_level): Document as deprecated.
9318 (frame_relative_level): Declare.
9319 * stack.c (frame_relative_level): New function.
9320 (selected_frame_level): Document as deprecated.
9321 (select_frame): Do not set the selected_frame_level.
9323 * stack.c (frame_info, record_selected_frame): Update.
9324 (frame_command, current_frame_command): Update.
9325 (up_silently_base, up_command, down_silently_base): Update.
9326 (down_command): Update.
9327 * inflow.c (kill_command): Update.
9328 * tracepoint.c (finish_tfind_command): Update.
9329 * corelow.c (core_open): Update.
9330 * thread.c (info_threads_command): Update.
9331 (do_captured_thread_select): Update.
9332 * infcmd.c (finish_command): Update.
9333 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9335 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9337 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9339 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9341 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9344 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9346 * alphafbsd-tdep.c: Update copyright years. Include
9348 (alphafbsd_use_struct_convention): Make static.
9349 (alphafbsd_init_abi): New function.
9350 (_initialize_alphafbsd_tdep): New function.
9351 * config/alpha/tm-fbsd.h: Update copyright years.
9352 (USE_STRUCT_CONVENTION): Remove.
9354 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9356 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9357 an Alpha ABI variant.
9358 (alpha_abi_handler_list): Declare.
9359 (alpha_gdbarch_register_os_abi): New function.
9360 (alpha_gdbarch_init): Give registered ABI variant handlers a
9361 chance to tweak the gdbarch once we have set up defaults.
9362 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9364 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9366 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9367 to standard_coerce_float_to_double.
9368 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9370 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9372 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9373 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9374 from gdbarch_tdep rather than a constant.
9375 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9376 the default text address for all Alpha Unix ABIs.
9377 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9378 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9380 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9382 * alpha-tdep.h: New file. Includes several Alpha target constants
9384 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9385 let gdbarch deal with.
9386 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9387 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9389 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9390 Alpha target register names.
9391 * alphabsd-nat.c: Likewise.
9392 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9393 Alpha target register names. Make serveral routines static.
9394 (alpha_get_saved_register): New function.
9395 (alpha_abi_names): New.
9396 (process_note_abi_tag_sections): New function.
9397 (get_elfosabi): New function.
9398 (alpha_gdbarch_init): New function.
9399 (alpha_dump_tdep): New function.
9400 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9402 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9404 * frame.c (find_saved_register): Delete #ifdef
9405 HAVE_REGISTER_WINDOWS code.
9406 * config/sparc/tm-sparc.h: Update comments.
9407 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9409 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9411 * i960-tdep.c (i960_find_saved_register): New function.
9412 (i960_get_saved_register): New function.
9413 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9414 (i960_get_saved_register): Declare.
9415 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9417 2002-04-20 David S. Miller <davem@redhat.com>
9419 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9421 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9423 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9424 instead of NUM_PSEUDO_REGS.
9426 2002-04-20 David S. Miller <davem@redhat.com>
9428 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9429 GDB_MULTI_ARCH_PARTIAL
9430 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9431 define, let tm-sp64.h do it.
9433 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9435 * frame.c (find_saved_register): Avoid a NULL pointer
9436 dereference and actually walk the frame list.
9438 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9440 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9441 sorted in most most-recent-used order. Document.
9442 * gdbarch.h, gdbarch.c: Regenerate.
9444 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9446 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9448 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9449 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9450 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9453 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9456 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9457 (build_builtin_type_vec128): Ditto.
9458 (append_composite_type_field): Fix calculation of type length in
9461 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9463 * config/djgpp/README: Update.
9465 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9468 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9470 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9471 (alpha_setup_arbitrary_frame): ...to this.
9472 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9473 for alpha_setup_arbitrary_frame.
9475 2002-04-18 Andrew Cagney <cagney@redhat.com>
9477 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9478 * gdbarch.h, gdbarch.c: Regenerate.
9480 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9481 * target.h (memory_breakpoint_from_pc): Update declaration.
9482 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9484 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9485 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9486 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9487 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9488 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9489 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9490 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9491 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9492 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9493 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9494 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9495 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9497 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9499 * monitor.c (monitor_insert_breakpoint): Ditto.
9500 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9502 * config/mcore/tm-mcore.h: Update copyright.
9503 * mem-break.c: Ditto.
9504 * xstormy16-tdep.c: Ditto.
9506 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9508 * p-exp.y: Add precedence rule for '^' token.
9509 This removes the shift/reduce conflicts.
9510 Remove the comment concerning these shift/reduce conflicts.
9512 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9514 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9515 (registers_powerpc_nofp): New register set for processors
9516 without floating point unit.
9518 2002-04-18 David S. Miller <davem@redhat.com>
9520 * MAINTAINERS: Add myself to write-after-approval.
9522 2002-04-17 Michael Snyder <msnyder@redhat.com>
9524 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9526 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9528 * rs6000-tdep.c (frame_initial_stack_address): Use
9529 frame_register_read to read the alloca_reg.
9531 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9533 * frame.c (find_saved_register): Find saved registers in the next
9537 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9539 * gdbarch.sh (LANG): Set to ``c''.
9541 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9543 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9545 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9547 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9550 * hpread.c (hpread_get_lntt): Add declaration.
9551 Also fix PR gdb/391.
9553 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9555 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9556 * aclocal.m4, configure: Re-generate.
9559 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9561 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9562 instead of tm_print_insn.
9564 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9566 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9568 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9570 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9571 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9572 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9574 2002-04-12 Don Howard <dhoward@redhat.com>
9576 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9577 max_user_call_depth.
9578 (init_cmd_lists): Initialize the new value;
9579 * cli/cli-script.c (execute_user_command): Limit the call depth of
9580 user defined commands. This avoids a core-dump when user commands
9581 are infinitly recursive.
9583 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9585 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9586 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9587 from tdep struct instead of DEFAULT_LR_SAVE.
9588 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9589 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9590 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9592 2002-04-12 Michael Snyder <msnyder@redhat.com>
9594 * Remote.c: Spelling fix.
9595 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9596 If no symbol found for "sbrk", try "_sbrk".
9597 (make_output_phdrs): Use bfd_section_name.
9598 (gcore_copy_callback): Use bfd_section_name.
9599 * eval.c: Indentation fix-ups.
9600 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9601 in case it gets applied to an address that is already
9602 in the instruction space.
9603 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9604 * symfile.c: Fix indentation, long lines.
9605 * source.c: White space fix-up.
9607 2002-04-12 Andrew Cagney <cagney@redhat.com>
9609 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9610 * frame.c (frame_register_read): New function. Return non-zero on
9612 (read_relative_register_raw_bytes_for_frame): Delete.
9613 (read_relative_register_raw_bytes): Delete.
9614 * frame.h (frame_register_read): Declare.
9615 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9617 * infcmd.c (do_registers_info): Ditto.
9618 * hppa-tdep.c: Ditto.
9619 * rs6000-tdep.c: Ditto.
9620 * h8500-tdep.c: Ditto.
9621 * mips-tdep.c: Ditto.
9622 * h8300-tdep.c: Ditto.
9623 * z8k-tdep.c: Ditto.
9625 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9627 From Jimi X <jimix@watson.ibm.com>:
9628 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
9631 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9633 From Jimi X <jimix@watson.ibm.com>:
9634 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
9637 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9639 From Jimi X <jimix@watson.ibm.com>:
9640 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
9641 register sets for these processor variants.
9643 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
9645 * regformats/reg-ppc.dat: Support FPSCR.
9647 2002-04-11 Kevin Buettner <kevinb@redhat.com>
9649 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
9650 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
9651 Add fpscr as an invalid/unfetchable register.
9652 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
9653 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
9654 (fill_fpregset): Add support for register fpscr.
9655 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
9656 (fill_gregset): Account for the fact that register ``mq'' might
9658 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
9659 (registers_power): Add fpscr to register set at slot 71.
9660 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
9661 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
9663 2002-04-11 Michael Snyder <msnyder@redhat.com>
9665 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
9666 * configure: Regenerate.
9667 * config.in: Regenerate.
9668 * acconfig.h: Add define for _SYSCALL32.
9669 * core-sol2.c: Remove #define _SYSCALL32.
9670 * solib-legacy.c: Remove #define _SYSCALL32.
9672 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9674 * stack.c (select_frame): Cleanup internal error message, do not
9677 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9679 * stack.c (select_frame): Check that selected_frame and the
9680 specified level are as expected.
9681 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
9683 * frame.h (struct frame_info): Add field `level'. Update
9685 Work-in-progress PR gdb/464.
9687 2002-04-10 Andrew Cagney <ac131313@redhat.com>
9689 * maint.c (maint_print_section_info): Rename print_section_info.
9690 (print_bfd_section_info, print_objfile_section_info): Update.
9691 * inferior.h (struct gdbarch): Add opaque declaration.
9692 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
9693 * gdbarch.h: Regenerate.
9695 2002-04-10 Michal Ludvig <mludvig@suse.cz>
9697 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
9698 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
9699 (kernel_u_size): Added.
9700 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
9701 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
9703 2002-04-04 Jim Ingham <jingham@apple.com>
9705 * valarith.c (find_size_for_pointer_math): New function, either returns
9706 the size for a pointer's target, returns 1 for void *, or errors for
9708 (value_add, value_sub): use find_size_for_pointer_math.
9710 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9712 * linux-low.c (linux_look_up_symbols): New hook.
9713 (linux_target_ops): Add linux_look_up_symbols.
9714 * remote-utils.c (decode_address): New function.
9715 (look_up_one_symbol): New function.
9716 * server.c (handle_query): Call target look_up_symbols hook.
9717 * server.h (look_up_one_symbol): Add prototype.
9718 * target.h (struct target_ops): Add look_up_symbols hook.
9720 2002-04-09 Andrew Cagney <ac131313@redhat.com>
9722 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
9723 override FP_REGNUM with frame->fp. Update copyright.
9724 * parse.c (num_std_regs, std_regs): Delete.
9725 (target_map_name_to_register): Do not search std_regs. Update
9726 function description.
9727 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
9728 declarations. Update copyright.
9731 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
9733 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
9734 after the last symbol in a block.
9736 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
9738 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
9739 is non zero as a found symbol.
9741 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9743 * findvar.c: Include "builtin-regs.h".
9744 (value_of_register): Call value_of_builtin_reg when applicable.
9745 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
9746 (target_map_name_to_register): Call
9747 builtin_reg_map_name_to_regnum.
9748 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
9749 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
9750 (builtin_regs_h): Define.
9751 (builtin-regs.o): New target.
9752 (findvar.o): Add $(builtin_regs_h).
9753 * builtin-regs.c, builtin-regs.h: New files.
9754 * std-regs.c: New file.
9755 Partial fix for PR gdb/251.
9757 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9759 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
9760 it's no longer required.
9762 2002-04-08 Andrew Cagney <ac131313@redhat.com>
9764 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
9766 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9768 From Jimi X <jimix@watson.ibm.com>:
9769 * rs6000-tdep.c (rs6000_software_single_step): Use
9770 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
9771 and size. Use target_insert_breakpoint() and
9772 target_remove_breakpoint() to insert and remove breakpoints
9773 instead of explicit memory reads and writes.
9775 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9777 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
9778 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
9779 ELF_OBJECT_FORMAT ifdef.
9781 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9783 From Jimi X <jimix@watson.ibm.com>:
9784 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
9786 2002-04-08 Kevin Buettner <kevinb@redhat.com>
9788 From Jimi X <jimix@watson.ibm.com>:
9789 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
9790 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
9792 2002-04-07 Mark Kettenis <kettenis@gnu.org>
9794 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
9795 s/asprintf/xasprintf/.
9796 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
9798 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9800 I believe Jeff Law denies responsability for this one:
9801 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
9802 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
9803 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
9804 Work-around for PR gdb/366.
9806 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9808 * remote-e7000.c (write_small, e7000_read_inferior_memory,
9809 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
9810 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
9812 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
9814 * sh-tdep.c (sh_fp_frame_init_saved_regs,
9815 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
9818 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9820 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
9823 2002-04-07 Andrew Cagney <ac131313@redhat.com>
9825 * README (Reporting Bugs in GDB): Document the bug web page as the
9826 prefered way of submitting bugs.
9829 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9831 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
9833 * gdbarch.h, gdbarch.c: Re-generate.
9835 2002-04-07 Andreas Schwab <schwab@suse.de>
9837 * m68klinux-nat.c (fill_fpregset): Properly pass address of
9838 buffer to regcache_collect.
9840 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9842 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
9843 * gdbarch.c, gdbarch.h: Re-generate.
9845 2002-04-06 Andrew Cagney <ac131313@redhat.com>
9847 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
9848 declaration. Fix -Werror.
9850 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
9852 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
9853 * gdbarch.c: Regenerate.
9855 2002-04-05 Michael Snyder <msnyder@redhat.com>
9857 * breakpoint.c (clear_command): Rewrite middle section to
9858 combine two loops with identical control conditions.
9859 Add a cleanup to eliminate a memory leak.
9860 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
9862 2002-04-05 H.J. Lu (hjl@gnu.org)
9864 * solib-svr4.c (bkpt_names): Add "__start".
9866 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9868 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
9869 as test for 64 bit target.
9871 2002-04-05 Andrew Cagney <ac131313@redhat.com>
9873 * h8500-tdep.c (h8500_write_fp): Delete function.
9874 * dwarf2cfi.c (cfi_write_fp): Document as not used.
9875 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
9876 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
9877 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
9878 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
9879 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
9881 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
9882 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
9883 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
9884 (d10v_write_fp): Delete function.
9885 * inferior.h (write_fp, generic_target_write_fp): Delete
9887 * regcache.c (generic_target_write_fp): Delete function.
9888 (write_fp): Delete function.
9889 * gdbarch.sh (TARGET_WRITE_FP): Delete.
9890 * gdbarch.h, gdbarch.c: Regenerate.
9891 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
9892 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
9893 (sparc64_write_fp): Delete declaration.
9894 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
9895 (h8500_write_fp): Delete declaration.
9897 2002-04-04 Andrew Cagney <ac131313@redhat.com>
9899 * sparc-tdep.c (sparc64_write_fp): Delete.
9900 (sparc_push_dummy_frame): Replace write_fp call with code to store
9902 (sparc_gdbarch_init): Do not initialize write_fp.
9904 2002-04-05 Kevin Buettner <kevinb@redhat.com>
9906 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
9909 2002-03-29 Jim Blandy <jimb@redhat.com>
9911 * stack.c (get_selected_block): Add new argument `addr_in_block',
9912 used to return the exact code address we used to select the block,
9914 * blockframe.c (get_frame_block, get_current_block): Same.
9915 * frame.h (get_frame_block, get_current_block,
9916 get_selected_block): Update declarations.
9917 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
9918 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
9920 2002-04-05 Michael Snyder <msnyder@redhat.com>
9922 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
9925 2002-04-05 J. Brobecker <brobecker@gnat.com>
9927 * utils.c (xfullpath): New function.
9928 * defs.h (xfullpath): Add declaration.
9929 * source.c (openp): Use xfullpath in place of gdb_realpath to
9930 avoid resolving the basename part of filenames when the
9931 associated file is a symbolic link. This fixes a potential
9932 inconsistency between the filenames known to GDB and the
9933 filenames it prints in the annotations.
9934 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
9935 to be able to match a filename with either the real filename, or
9936 the name of any symbolic link to this file.
9937 (lookup_partial_symtab): Ditto.
9939 2002-04-04 Michael Snyder <msnyder@redhat.com>
9941 * breakpoint.c: Add support for hardware breakpoints in overlays.
9942 (overlay_events_enabled): New state variable.
9943 (insert_breakpoints): Use overlay_events_enabled to decide
9944 whether to attempt to set a breakpoint at the overlay load addr.
9945 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9946 (remove_breakpoint): Use overlay_events_enabled to decide
9947 whether breakpoints need to be removed from overlay load addr.
9948 Handle bp_hardware_breakpoint as well as bp_breakpoint.
9949 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
9950 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
9951 disable_overlay_breakpoints): Update overlay_events_enabled.
9953 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
9955 * dwarf2read.c (struct function_range): New.
9956 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
9957 (check_cu_functions): New.
9958 (read_file_scope): Initialize global function lists.
9959 Call dwarf_decode_line after processing children.
9960 (read_func_scope): Add to global function list.
9961 (dwarf_decode_lines): Call check_cu_functions everywhere
9962 record_line is called. Call record_line with a linenumber
9963 of 0 to mark sequence ends.
9965 2002-04-04 Michal Ludvig <mludvig@suse.cz>
9967 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
9968 change sync with glibc.
9970 2002-04-03 Jim Blandy <jimb@redhat.com>
9972 * configure.in: Call AC_C_INLINE.
9973 * configure: Regenerated.
9975 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
9977 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
9978 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
9980 2002-03-31 Mark Kettenis <kettenis@gnu.org>
9982 * NEWS: Mention gcore support on FreeBSD/i386.
9984 * fbsd-proc.c: New file.
9985 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
9986 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
9988 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
9991 2002-03-29 Jim Blandy <jimb@redhat.com>
9993 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
9994 unescaped newlines in string literals, but newer ones don't. So
9997 2002-03-26 Michael Snyder <msnyder@redhat.com>
9998 Andrew Cagney <cagney@redhat.com>
10000 * cli/cli-dump.c: New file. Dump memory to file,
10001 restore file to memory.
10002 * cli/cli-dump.h: New file.
10003 * Makefile.in: Add rules, dependencies for cli-dump.o.
10004 * NEWS: Mention new commands.
10006 2002-03-28 Michael Snyder <msnyder@redhat.com>
10008 * symfile.c (symbol_file_add): Move test for null symbols to later.
10010 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10012 From veksler at il.ibm.com:
10013 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10014 the xstrduped original path.
10017 2002-03-27 Michael Snyder <msnyder@redhat.com>
10019 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10020 * infcmd.c (_initialize_infcmd): Ditto.
10021 * language.c (_initialize_language): Ditto.
10022 * symfile.c (_initialize_symfile): Ditto.
10023 * top.c (_init_main): Ditto.
10024 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10026 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10028 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10029 vector registers handling.
10030 (skip_prologue): Handle new AltiVec instructions. Fill in new
10031 fields of frame data.
10032 (frame_get_saved_regs): Fill in information for AltiVec registers.
10034 2002-03-27 Jim Blandy <jimb@redhat.com>
10036 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10037 a function; leave this macro here to invoke that function.
10038 (symbol_init_mangled_name): Declaration for that function.
10039 * symtab.c (symbol_init_mangled_name): New function.
10041 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10043 * valarith.c: Replace strerror with safe_strerror.
10044 * tracepoint.c: Ditto.
10045 * lin-lwp.c: Ditto.
10046 * go32-nat.c: Ditto.
10048 * gnu-nat.c: Ditto.
10050 2002-03-27 Andreas Schwab <schwab@suse.de>
10052 * event-top.c (command_line_handler): Remove useless if.
10054 2002-03-27 Andreas Jaeger <aj@suse.de>
10056 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10059 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10061 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10062 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10063 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10064 (x86_64_linux_dr_get_status, supply_gregset),
10065 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10066 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10067 (x86_64_register_info_table): Add.
10068 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10069 (x86_64_register_raw_size, x86_64_register_virtual_type),
10070 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10071 general x86_64_register_info_table.
10072 (i386_gdbarch_init): gdbarch_register_bytes is now set
10073 dynamicaly during initialization.
10074 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10075 * gdbserver/linux-x86-64-low.c: Ditto.
10077 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10079 * gdbserver/server.c (main): Call target_signal_to_host_p
10080 and target_signal_to_host on signals received from the remote.
10081 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10082 target_signal_from_host on signals sent to the remote.
10083 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10084 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10086 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10088 * signals/signals.c: Include "server.h" in gdbserver build.
10089 (target_signal_from_name): Don't use STREQ.
10090 (_initialize_signals): Likewise. Don't include function in
10093 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10095 * signals.c: Moved to...
10096 * signals/signals.c: Here.
10097 * Makefile (signals.o): Update.
10099 2002-03-26 Jeff Law (law@redhat.com)
10101 * somread.c (som_symtab_read): Remove some commented out code and
10102 updated related comments. Do not set the minimal symbol table to
10103 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10104 in a dynamic executable.
10105 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10106 where we are unable to find the minimal symbol for the given
10109 2002-03-25 Jeff Law (law@redhat.com)
10111 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10113 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10115 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10117 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10119 * command.h: Update copyright.
10120 (struct cmd_list_element): Replace definition with opaque
10122 (enum cmd_types): Document that it will eventually be moved to
10124 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10125 (MALLOCED_REPLACEMENT): Delete macro.
10126 * Makefile.in (cli_decode_h): Add $(command_h).
10127 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10128 * top.c: Include "cli/cli-decode.h".
10129 * completer.c: Include "cli/cli-decode.h".
10130 * maint.c: Include "cli/cli-decode.h".
10131 * cli/cli-decode.h: Include "command.h".
10132 (enum command_class): Delete.
10133 (enum cmd_types): Comment out.
10134 (enum cmd_auto_boolean): Delete.
10135 (enum var_types): Delete.
10137 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10139 * cli/cli-decode.c: Include "gdb_assert.h".
10140 (add_set_or_show_cmd): New static function.
10141 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10142 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10143 all fields, such as func, from the set command.
10145 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10147 * MAINTAINERS (sh-elf): Change warning flag to -w.
10149 2002-03-23 Andrew Cagney <cagney@redhat.com>
10151 * defs.h (error): Add printf format attribute.
10152 * thread-db.c (thread_from_lwp): Fix error format string.
10153 * stack.c (parse_frame_specification): Ditto.
10154 * cli/cli-decode.c (undef_cmd_error): Ditto.
10155 * scm-lang.c (scm_lookup_name): Ditto.
10156 * tracepoint.c (trace_error): Ditto.
10157 * remote-utils.c (usage): Ditto.
10158 * remote.c (compare_sections_command): Ditto.
10161 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10163 * gdbtypes.c (append_composite_type_field): New function.
10164 (init_composite_type): New function.
10165 * gdbtypes.h (append_composite_type_field): Declare.
10166 (init_composite_type): Ditto.
10168 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10170 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10172 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10173 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10174 structure returning convention for SYSV ABI case, but not
10175 for GNU/Linux, FreeBSD, or NetBSD.
10177 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10179 * symtab.h (lookup_block_symbol): Add mangled_name argument
10182 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10183 with new mangled_name argument.
10184 * linespec.c (decode_line_1): Likewise.
10185 * valops (value_of_this): Likewise.
10186 * symtab.c (lookup_transparent_type): Likewise.
10187 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10188 (lookup_symbol): If we are given a mangled name, pass it down
10189 to lookup_symbol_aux.
10190 (lookup_block_symbol): If we are given a mangled name to check
10191 against, only return symbols which match it.
10193 2002-03-22 Christopher Faylor <cgf@redhat.com>
10195 * win32-nat.c (child_create_inferior): Check for proper shell to use
10196 here, in case the user changes it on the fly.
10197 (_initialize_inftarg): Remove shell path considerations.
10199 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10201 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10202 for gdbarch_max_register_raw_size and max_register_virtual_size.
10203 Adjust copyright year.
10205 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10207 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10208 in a function to cover the entire beginning of the function
10209 as well if it does not already.
10211 2002-03-21 Tom Rix <trix@redhat.com>
10213 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10214 (rs6000_ptrace64): Renamed from ptrace64.
10216 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10218 * gdbserver/remote-utils.c (remote_open): Don't call
10219 getprotobyname, we're all using TCP here so just use
10221 * gdbserver/gdbreplay.c (remote_open): Ditto.
10223 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10225 * regcache.c (_initialize_regcache): No need to call
10226 build_regcache() at this time; it gets called whenever
10227 the gdbarch changes.
10229 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10231 * sparc-nat.c: Include sys/param.h where possible.
10233 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10236 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10237 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10238 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10240 * stabsread.c (rs6000_builtin_type): Likewise.
10241 (read_sun_floating_type): Likewise.
10243 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10245 * stabsread.c (read_member_functions): Remove skip code for duplicate
10246 constructor/destructor methods. Use standard parsing for these
10247 methods and just do not chain them to the list of methods after
10250 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10252 * coffread.c: Remove redundant static declarations. Replace
10253 occurrences of `PTR' with `void *'.
10254 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10255 * top.h (quit_cover): Likewise.
10256 * defs.h (catch_errors): Likewise.
10258 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10260 * defs.h (XMALLOC): Define.
10261 * gdb-events.sh (XMALLOC): Delete macro.
10262 * gdb-events.c, gdb-events.h: Regenerate.
10263 * gdbarch.sh (XMALLOC): Delete macro.
10264 * gdbarch.c: Regenerate.
10265 * serial.c (XMALLOC): Delete macro.
10266 * ui-file.c (XMALLOC): Ditto.
10267 * ser-unix.h (XMALLOC): Ditto.
10268 * sh-tdep.c (XMALLOC): Ditto.
10269 * ui-out.c (XMALLOC): Ditto.
10270 * utils.c (XMALLOC): Ditto.
10271 * i386-tdep.c (XMALLOC): Ditto.
10272 * gdb-events.c (XMALLOC): Ditto.
10273 * d10v-tdep.c (XMALLOC): Ditto.
10274 * cli-out.c (XMALLOC): Ditto.
10276 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10277 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10278 * ui-file.c, ui-out.c: Ditto.
10280 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10282 * command.h (struct cmd_list_element): Add field context.
10283 (set_cmd_context, get_cmd_context): Declare.
10284 * cli/cli-decode.h: Ditto.
10285 * cli/cli-decode.c (get_cmd_context): New function.
10286 (set_cmd_context): New function.
10287 (add_cmd): Initialize context.
10288 Part of fixing PR gdb/145 and PR gdb/146.
10290 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10292 * cli/cli-decode.c (cmd_type): New function.
10293 * command.h (cmd_type): Declare.
10294 * infrun.c (set_schedlock_func): Call function cmd_type.
10295 * kod.c (kod_set_os): Call cmd_type.
10296 * cris-tdep.c (cris_version_update): Use function cmd_type.
10297 (cris_mode_update, cris_abi_update): Ditto.
10299 * command.h: (execute_cmd_post_hook): Declare.
10300 (execute_cmd_pre_hook): Declare.
10301 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10302 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10303 functions. Execute pre/post hook while ensuring that afterwords
10304 hook_in is cleared.
10305 * top.c (execute_command): Use execute_cmd_post_hook, and
10306 execute_cmd_pre_hook to execute pre/post commands.
10307 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10309 (hook_stop_stub): Call execute_cmd_pre_hook.
10311 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10313 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10314 set'' and this leads to a core dump. Move xstrdup of
10315 operating_system to after check that it is not NULL.
10317 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10319 * kod.c (kod_set_os): Remove unnecessary check that
10320 ``command->type'' is set_cmd.
10322 * valprint.c (set_input_radix): Use input_radix.
10323 (set_output_radix): Use output_radix.
10324 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10327 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10329 * value.h (struct value): Delete field ``substring_addr''. Change
10330 aligner fields to force_doublest_align, force_longest_align,
10331 force_core_addr_align and force_pointer_aligh.
10333 * value.h (struct value): Fix typo in above change.
10335 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10337 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10338 to fix internal_error from ``maintenance print architecture''.
10340 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10342 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10343 for gcc versions after gcc-2.8.1.
10345 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10347 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10348 for method resolution. Restore adjustment of ``this'' pointer after
10349 calling value_struct_elt, which was accidentally removed during the
10352 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10354 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10356 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10357 get_saved_register.
10358 * value.h (value_of_register): Update.
10360 2002-03-14 Richard Henderson <rth@redhat.com>
10362 * configure.in: Detect declaration for canonicalize_file_name.
10363 * utils.c (canonicalize_file_name): Declare, if needed.
10364 (gdb_realpath): Prefer realpath if available and usable.
10365 * config.in, configure: Rebuild.
10367 2002-03-14 Richard Henderson <rth@redhat.com>
10369 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10370 a constant array bound.
10372 * MAINTAINERS: Add myself to write-after-approval.
10374 2002-03-14 Michael Snyder <msnyder@redhat.com>
10376 * symfile.c (syms_from_objfile): Return immediately if no syms.
10377 (symbol_file_add): Return immediately if no syms.
10378 (find_sym_fns): Return immediately if no syms.
10380 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10382 * gdbserver/remote-util.c (remote_open): Print remote-side's
10383 IP address when remote debugging over the network.
10385 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10387 * config/sparc/fbsd.mh: Fix copyright.
10388 * config/sparc/fbsd.mt: Likewise.
10390 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10392 * MAINTAINERS: Fix typo in name of gdb warnings option.
10393 (x86-64): Fix formating so that this can be parsed by awk.
10395 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10397 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10398 * defs.h: Include "gdb/signals.h".
10399 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10401 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10403 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10404 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10407 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10408 Don Howard <dhoward@redhat.com>
10410 * mips-tdep.c (ST0_FR): Define.
10411 (mips2_fp_compat): New function, temporarily disabled.
10412 (mips_read_fp_register_single): New function.
10413 (mips_read_fp_register_double): New function.
10414 (mips_print_register): Use them.
10415 (do_fp_register_row): Likewise.
10417 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10419 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10422 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10424 * stabsread.c (read_member_functions): Fix is_stub test for
10425 static member functions, improve comment.
10427 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10429 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10430 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10431 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10432 commands that set boolean values.
10433 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10434 (arm_rdi_resume): Always initialize PC.
10435 (arm_rdi_open): Don't use rslt as a boolean.
10436 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10437 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10438 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10439 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10441 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10443 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10444 * configure: Rebuilt.
10446 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10448 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10449 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10451 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10453 * cli/cli-decode.c (set_cmd_completer): New function.
10454 * command.h (set_cmd_completer): Declare.
10455 * cli/cli-decode.h (set_cmd_completer): Ditto.
10457 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10458 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10459 * win32-nat.c (_initialize_inftarg): Ditto.
10460 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10461 * proc-api.c (_initialize_proc_api): Ditto.
10462 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10463 * source.c (_initialize_source): Ditto.
10464 * exec.c (_initialize_exec): Ditto.
10465 * solib.c (_initialize_solib): Ditto.
10466 * top.c (init_main): Ditto.
10467 * tracepoint.c (_initialize_tracepoint): Ditto.
10468 * symfile.c (_initialize_symfile): Ditto.
10469 * printcmd.c (_initialize_printcmd): Ditto.
10470 * infcmd.c (_initialize_infcmd): Ditto.
10471 * corefile.c (_initialize_core): Ditto.
10473 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10475 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10477 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10479 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10481 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10483 * NEWS: Update headings, 5.2 has branched.
10485 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10487 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10488 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10489 (register_addr, REGISTER_RAW_SIZE): Likewise.
10490 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10491 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10493 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10495 * MAINTAINERS (x86-64): Add myself.
10496 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10497 changed value_ptr -> struct value *
10499 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10501 * configure.host (sparc64-*-freebsd): Add.
10502 * configure.tgt: Likewise.
10503 * config/sparc/fbsd.mh: New file.
10504 * config/sparc/fbsd.mt: Likewise.
10505 * config/sparc/nm-fbsd.h: Likewise.
10506 * config/sparc/tm-fbsd.h: Likewise.
10508 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10510 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10511 regformats/reg-s390x.dat.
10513 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10515 * utils.c: Add FIXME explaining true/false problem.
10517 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10519 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10521 2002-02-28 Michael Chastain <mec@shout.net>
10523 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10525 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10527 * gdbserver/linux-s390-low.c: New file.
10528 * regformats/reg-s390.dat: New file.
10529 * regformats/reg-s390x.dat: New file.
10530 * gdbserver/configure.srv: Add S/390.
10531 * gdbserver/Makefile.in: Add S/390.
10532 * configure.tgt: Enable gdbserver for S/390.
10534 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10536 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10537 first line of the doc string for "info dos", except at the end of
10538 the sentence, since the short help stops at the first period.
10540 2002-02-28 Jason Merrill <jason@redhat.com>
10542 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10544 2002-02-27 Fred Fish <fnf@redhat.com>
10546 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10547 comment (dumy -> dummy).
10549 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10551 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10553 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10555 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10557 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10559 * gdbserver/acconfig.h: New file.
10560 * gdbserver/i387-fp.c: New file.
10561 * gdbserver/i387-fp.h: New file.
10562 * gdbserver/linux-x86-64.c: New file.
10563 * regformats/reg-x86-64.dat: New file.
10564 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10565 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10566 * gdbserver/configure.in: Add support for regsets.
10567 * gdbserver/config.in: Regenerate.
10568 * gdbserver/configure: Regenerate.
10569 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10570 * gdbserver/linux-low.h: New file.
10571 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10573 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10574 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10575 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10576 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10577 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10578 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10579 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10580 "i387-fp.h". Add PTRACE_GETREGS and friends.
10581 * gdbserver/regcache.c (supply_register): New function.
10582 (supply_register_by_name): New function.
10583 (collect_register): New function.
10584 (collect_register_by_name): New function.
10586 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10588 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10589 (config.status): Add configure.srv dependency.
10590 (server_h): Add config.h dependency.
10592 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10594 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10595 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10596 * gdbserver/configure.srv: Change i386-*-linux* to use
10599 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10601 * x86-64-tdep.c: Re-indent. Update copyright date.
10603 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10605 From Michal Ludvig <mludvig@suse.cz>:
10606 * x86-64-tdep.c (value.h): Delete.
10607 (gdb_assert.h): Include.
10608 (x86_64_register_convert_to_virtual,
10609 x86_64_register_convert_to_raw ): Add check which lets only
10610 floating-point values to be converted.
10611 (value_push): Delete.
10612 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10613 (i386_gdbarch_init): Number of register_bytes fixed.
10615 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10617 * MAINTAINERS: Add x86-64 target.
10619 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10621 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
10622 * osfsolib.c (solib_map_sections): Ditto.
10623 * irix5-nat.c (solib_map_sections): Ditto.
10624 * corelow.c (gdb_check_format): Ditto.
10625 * symfile.c (symfile_bfd_open): Ditto.
10626 * solib.c (solib_map_sections): Ditto.
10629 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10631 * remote.c (_initialize_remote): By default, disable ``e'' and
10632 ``E'' step out-of-range packets.
10634 2002-02-26 Andreas Schwab <schwab@suse.de>
10636 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
10637 m68k_linux_frame_saved_pc.
10638 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
10640 (SIGCONTEXT_PC_OFFSET): Remove.
10641 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
10642 m68k_linux_sigtramp_saved_pc): New functions.
10643 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
10644 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
10645 (UCONTEXT_PC_OFFSET): Define.
10646 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
10647 non-RT and RT signal trampolines.
10649 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
10651 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
10652 (TARGET_NBPG, STACK_END_ADDR): Delete
10653 (VARIABLES_INSIDE_BLOCK): Delete.
10655 2002-02-25 Andrew Cagney <ac131313@redhat.com>
10657 * utils.c (perror_with_name): Make string parameter constant.
10658 (print_sys_errmsg): Ditto.
10660 * defs.h (perror_with_name): Update.
10661 (print_sys_errmsg): Update.
10664 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
10666 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
10667 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
10669 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10671 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
10672 if it already matches the current architecture from the exec file.
10673 Include arch-utils.h for gdbarch_info_init prototype.
10674 * Makefile.in (rs6000-nat.o): Update dependencies.
10676 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
10678 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
10679 list of exported variables.
10681 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
10683 * gdbserver/configure.srv: New file.
10684 * gdbserver/configure.in: Use configure.srv instead
10685 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
10687 * gdbserver/configure: Regenerated.
10688 * gdbserver/terminal.h: New file.
10689 * gdbserver/Makefile.in: Update for configure changes. Remove
10690 more unneeded include paths.
10692 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10694 From wiz at danbala:
10695 * config/sparc/tm-sp64.h: Fix grammar and typos.
10698 2002-02-24 Andrew Cagney <ac131313@redhat.com>
10700 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
10701 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
10702 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
10703 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
10704 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
10705 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
10706 * s390-tdep.c: Ditto.
10707 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
10708 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
10709 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
10710 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
10711 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
10712 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
10713 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
10714 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
10715 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
10716 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
10719 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10721 * lin-thread.c: Delete file.
10722 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
10723 to gdb_proc_service.h.
10724 * configure: Re-generate.
10726 * ocd.c (ocd_open): Do not try to open the "ocd" device.
10727 * serial.c (serial_open): Delete check for "ocd".
10730 * Makefile.in (linux-thread.o): Delete target.
10731 * linux-thread.c: Delete file.
10733 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
10734 renamed SH files to be consistent.
10736 * symtab.c (sort_search_symbols): Use xfree.
10738 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10740 * arm-linux-tdep.c (arm_linux_init_abi): Register
10741 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
10742 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
10743 definition with undef, since we don't want the sysvr4 definition.
10744 (SKIP_TRAMPOLINE_CODE): Likewise.
10746 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10748 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
10750 * configure.in: (AC_CHECK_FUNCS) Added test for
10751 canonicalize_file_name Regenerated.
10752 * config.in, configure: Regenerated.
10753 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
10754 defined use canonicalize_file_name.
10756 2002-02-23 Michael Chastain <mec@shout.net>
10758 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
10760 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10762 * README: Remove references to cygnus.com.
10763 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
10764 dot com'' form. Remove references to cygnus.com and sourceware.
10766 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10768 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
10769 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
10770 1003.1-2001 no longer allows "head -1".
10771 * gdb/Makefile.in (version.c): Likewise.
10772 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
10773 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
10774 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
10776 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10778 * cli/cli-decode.c (cmd_cfunc_eq): New function.
10779 * command.h (cmd_cfunc_eq): Declare.
10780 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
10782 * cli/cli-cmds.h (is_complete_command): Change parameter to a
10783 ``struct cmd_list_element *''.
10784 * cli/cli-cmds.c (is_complete_command): Update. Use
10786 * top.c (execute_command): Pass the command to
10787 is_complete_command.
10788 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
10790 2002-02-23 Andrew Cagney <ac131313@redhat.com>
10792 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
10793 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
10794 architecture defines.
10795 * s390-tdep.c (s390_gdbarch_init): Likewise.
10797 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10799 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
10800 (arm_linux_push_arguments): Likewise.
10801 (arm_linux_init_abi): Register them. Also register linux-specific
10803 (find_minsym_and_objfile): Use strcmp, not STREQ.
10804 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
10805 (arm_linux_call_dummy_words): Delete declaration.
10806 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
10807 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
10809 (LOWEST_PC): Delete.
10811 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10813 * maint.c (print_section_info): Do not prepend `0x' to filepos
10814 output, it will be handled by local_hex_string_custom.
10816 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
10818 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
10819 (store_newfpe_double, store_newfpe_extended, store_fpregister)
10820 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
10822 2002-02-22 Jim Blandy <jimb@redhat.com>
10824 Indicate that the bcache functions don't change the strings
10826 * bcache.h (bcache, hash): Add `const' keywords to declarations.
10827 * bcache.c (bcache, hash): Add `const' keywords to definitions.
10829 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
10831 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
10833 2002-02-21 Christopher Faylor <cgf@redhat.com>
10835 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
10836 find the complete path to a loaded DLL.
10838 2002-02-21 Fred Fish <fnf@redhat.com>
10840 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
10841 that marks the end of the range of a function, enter a line number
10842 entry that has a line number of zero and a PC offset that matches
10843 the end of the function. This starts a range of PC's for which no
10844 line number information is known.
10845 * symtab.c (find_pc_sect_line): If our best fit is in a range of
10846 PC's for which no line number info is found (line number is zero)
10847 then we didn't find any valid line information.
10848 * symtab.h: Document use of zero line number entry.
10850 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
10852 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
10853 (have_ptrace_getvrregs): Define for run time checks.
10854 (gdb_vrregset_t): New type for Altivec register handling.
10855 (fetch_register, store_register): Fetch/store altivec register
10857 (fetch_altivec_register, store_altivec_register): New functions.
10858 (supply_vrregset, fill_vrregset): New functions.
10859 (fetch_altivec_registers, store_altivec_registers): New functions.
10860 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
10863 2002-02-21 Jiri Smid <smid@suse.cz>
10865 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
10867 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10869 * Makefile.in (armnbsd-nat.o): Update dependencies.
10870 * armnbsd-nat.c (supply_gregset): New function. Common code to
10871 supply the integer register set.
10872 (supply_fparegset): New function. Similar for FPA registers.
10873 (fetch_regs, fetch_fp_regs): Use them.
10874 (fetch_core_registers): Likewise.
10875 (fetch_elfcore_registers): New function.
10876 (arm_netbsd_elfcore_fns): New core-file type specification.
10877 (_initialize_arm_netbsd_nat): Register it.
10879 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
10881 * armnbsd-nat.c: Include gdbcore.h.
10882 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
10883 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
10884 'void' to declaration, to shut up ARI.
10885 (fetch_core_registers): Make static. Rewrite using supply_register.
10886 (arm_netbsd_core_fns): New core-file type specification.
10887 (_initialize_arm_netbsd_nat): New function.
10889 2002-02-21 Christopher Faylor <cgf@redhat.com>
10891 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
10894 2002-02-20 Christopher Faylor <cgf@redhat.com>
10896 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
10899 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10901 * jv-exp.y (parse_number): Change type of implicit longs
10902 to builtin_type_uint64.
10904 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10906 * gdbserver/linux-low.c (mywait): Change argument to waitpid
10907 to be an integer instead of a `union wait'.
10909 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10911 * mips-linux-nat.c: Call the operating system GNU/Linux.
10912 * mips-linux-tdep.c: Likewise.
10913 * mips-tdep.c: Likewise.
10915 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10918 * jv-exp.y (parse_number): Handle 64-bit integers.
10920 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
10922 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
10923 AC_STDC_HEADERS to AC_HEADER_STDC.
10924 * gdbserver/configure: Regenerated.
10926 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10928 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
10930 * sparc-tdep.c (get_longjmp_target): Likewise.
10932 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
10934 * News: Add news about ARM and Multi-arch. Mention the new target
10937 2002-02-19 Jim Blandy <jimb@redhat.com>
10939 * stabsread.c (error_type_complaint): Improve error message.
10941 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
10943 * gdbserver/README: Update documentation.
10944 * gdbserver/configure.in: Update configury to match documentation.
10945 * gdbserver/Makefile.in: Likewise.
10946 * gdbserver/configure: Regenerated.
10947 * gdbserver/aclocal.m4: New file, generated by aclocal.
10948 * gdbserver/config.in: New file, generated by autoheader.
10950 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10952 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
10955 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10957 * arm-tdep.h (enum arm_float_model): New enum.
10958 (struct gdbarch_tdep): Add fp_model.
10959 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
10960 up floating-point conversions until we know the floating-point model
10961 in use by the inferior. Don't complain about being unable to
10962 determine the ABI of the inferior when we don't have one.
10963 (arm_extract_return_value): Support different floating-point models.
10964 (arm_store_return_value): Likewise.
10965 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
10967 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
10969 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10971 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
10972 of ``current_gdbarch''.
10974 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10976 * armnbsd-nat.c : ANSIfy all function declarations.
10977 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
10978 (fetch_inferior_registers): Re-implement in terms of above.
10979 (store_register, store_regs, store_fp_register, store_fp_regs): New.
10980 (store_inferior_registers): Re-implement in terms of above.
10982 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10984 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
10986 * arm-linux-tdep.c: Likewise.
10987 * config/arm/tm-linux.h: Likewise.
10989 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10991 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
10992 * config/arm/nbsd.mt (TM_FILE): Delete.
10993 * config/arm/tm-nbsd.h: Delete.
10995 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
10997 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
10998 Initialize CALL_DUMMY_LENGTH.
11000 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11002 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11004 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11005 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11006 defines one thing and that is incorrect for this port.
11007 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11009 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11011 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11013 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11015 * win32-nat.c (display_selector): New function. Displays information
11016 about the information returned by GetThreadSelectorEntry API function.
11017 (display_selectors): New function. Displays the infomation of
11018 the selector given as argument, or of CS, DS ans FS selectors
11019 if no argument is given.
11020 ( _initialize_inftarg): Add "w32" as info prefix command.
11021 Add "info w32 selector" as command calling display_selectors.
11023 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11025 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11026 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11029 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11031 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11033 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11035 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11036 (arm_fix_call_dummy): Call it.
11037 (arm_call_dummy_breakpoint_offset): Delete.
11038 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11039 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11041 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11043 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11044 Default to func_frame_chain_valid.
11045 * gdbarch.h, gdbarch.c: Re-generate.
11046 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11048 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11050 * ppc-linux-nat.c: Update copyright.
11051 (fetch_register, store_register): Add tid parameter, don't compute
11053 (fetch_ppc_registers, store_ppc_registers): Add tid
11054 parameter. Pass it along to callees.
11055 (fetch_inferior_registers, store_inferior_registers): Compute tid
11056 here, and pass it to calleed functions.
11057 (fill_gregset, supply_fpregset): Clean up formatting.
11059 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11061 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11062 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11064 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11066 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11067 * gdbarch.c gdbarch.h: Regenerate.
11068 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11070 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11071 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11072 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11074 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11075 * arm-tdep.c (arm_get_longjmp_target): New function.
11076 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11077 this to a positive value register arm_get_longjmp_target as the
11079 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11080 (arm_linux_init_abi): Set up longjmp description in tdep.
11081 * armnbsd-nat.c (get_longjmp_target): Delete.
11082 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11083 description in tdep.
11084 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11085 (get_longjmp_target): Delete declaration.
11086 (GET_LONGJMP_TARGET): Delete.
11087 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11088 (GET_LONGJMP_TARGET): Delete.
11090 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11092 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11093 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11094 of ``current_gdbarch''.
11096 2002-02-17 Tom Tromey <tromey@redhat.com>
11098 * cli/cli-cmds.c (compare_strings): New function.
11099 (complete_command): Only print each unique item once.
11100 * completer.h (complete_line): Declare.
11101 * completer.c (complete_line): New function.
11102 (line_completion_function): Use it.
11104 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11106 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11107 * gdbarch.h, gdbarch.c: Re-generate.
11109 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11111 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11113 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11115 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11116 * valops.c (value_arg_coerce): Don't take the address of a reference
11117 to convert an argument to a reference.
11119 2002-02-15 Christopher Faylor <cgf@redhat.com>
11121 * win32-nat.c (get_image_name): New function.
11122 (handle_load_dll): Use get_image_name function.
11123 (get_child_debug_event): Avoid registering debug events until possibly
11124 execed process is started.
11125 (child_create_inferior): Allow invocation via shell so that command
11126 line redirection, etc. works ok.
11127 (_initialize_inftarg): Add new command: "set shell" to control whether
11128 a shell is used to start a process.
11130 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11132 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11133 instead of find_register_by_number.
11134 (cannot_store_register): Likewise.
11136 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11138 * dwarf2read.c: Replace fprintf (stderr, ...) by
11139 fprintf_unfiltered (gdb_stderr, ...).
11141 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11143 * gdbserver/gdbserver.1: Document --attach.
11145 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11147 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11149 * arm-tdep.c (arm_default_arm_le_breakpoint)
11150 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11151 (arm_default_thumb_be_breakpoint): New. Initialize them from
11152 traditional breakpoint defines.
11153 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11154 (arm_gdbarch_init): Initialize new breakpoint variables.
11155 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11156 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11157 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11158 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11160 (arm_netbsd_init_abi_common): ... here; new function.
11161 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11162 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11163 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11164 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11166 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11168 * arm-tdep.h (enum arm_abi): New enum.
11169 (struct gdbarch_tdep): New structure.
11170 (LOWEST_PC): Provide a default.
11171 (arm_gdbarch_register_os_abi): Declare new function.
11172 * arm-tdep.c (arm_abi_names): New array.
11173 (process_note_abi_tag_sections): New function.
11174 (get_elfosabi): New function.
11175 (arm_gdbarch_register_os_abi): New function.
11176 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11177 support for that ABI has been built in, then call the appropriate
11178 configuration routine. Use gdbarch_num_regs() to get the number
11180 (arm_dump_tdep): New function.
11181 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11182 place-holder functions.
11183 (_initialize_arm_tdep): Register them.
11184 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11186 * armnbsd-tdep.c: New file.
11187 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11188 * config/arm/nbsd.mt (TDEPFILES): Add it.
11189 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11191 * armnbsd-nat.c: Include regcache.h.
11192 * Makefile.in (armnbsd-nat.o): Update dependency list.
11194 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11196 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11198 * gdbserver/Makefile.in: Fix typos in target rules.
11200 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11202 Fix part of PR gdb/267.
11203 * linespec.c (find_methods): Handle constructors specially for now.
11205 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11207 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11209 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11210 standard_coerce_float_to_double().
11212 2002-02-14 Christopher Faylor <cgf@redhat.com>
11214 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11217 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11219 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11220 find_variant_by_name, because it confuses the multiarch
11221 framework. Return NULL if there isn't an architecture with the
11222 user supplied name, instead of forcing a different one without
11223 recording the change with the multiarch machinery.
11224 (find_variant_by_name): Delete.
11226 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11228 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11229 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11231 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11233 * stack.c (print_frame_info_base): When calling
11234 print_frame_info_listing_hook, set current_source_symtab.
11236 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11238 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11239 and remove unused $(INCLUDE_DIR).
11240 Add regcache.c to OBS.
11241 Add generated register protocol files to clean target.
11242 Update dependencies for new objects, obsolete old target code.
11244 * gdbserver/linux-low.c: Remove all platform-specific code to
11245 new files. Remove various dead code. Update to use regcache
11247 * gdbserver/remote-utils.c (fromhex): Add return statement
11249 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11251 (input_interrupt): Add integer parameter to match prototype
11252 of a signal handler.
11253 (outreg): Use register_data ().
11254 (prepare_resume_reply): Use gdbserver_expedite_regs.
11255 * gdbserver/server.c (main): Dynamically allocate own_buf because
11256 PBUFSIZ is no longer constant. Use registers_to_string () and
11257 registers_from_string ().
11258 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11259 for error (), fatal (), and warning (). Update definition of
11260 PBUFSIZ to use regcache functionality. Add include guard.
11261 * gdbserver/utils.c (fatal): Add missing ``const''.
11262 (warning): New function.
11264 * regformats/regdat.sh: Include "regcache.h" in generated files.
11265 Provide init_registers () function.
11266 * regformats/regdef.h: Add prototype for set_register_cache ().
11269 * gdbserver/linux-arm-low.c: New file.
11270 * gdbserver/linux-i386-low.c: New file.
11271 * gdbserver/linux-ia64-low.c: New file.
11272 * gdbserver/linux-m68k-low.c: New file.
11273 * gdbserver/linux-mips-low.c: New file.
11274 * gdbserver/linux-ppc-low.c: New file.
11275 * gdbserver/linux-sh-low.c: New file.
11277 * gdbserver/regcache.c: New file.
11278 * gdbserver/regcache.h: New file.
11280 * gdbserver/low-linux.c: Removed obsolete file.
11282 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11284 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11285 * config/i386/linux.mt: Likewise.
11286 * config/ia64/linux.mt: Likewise.
11287 * config/m68k/linux.mh: Likewise.
11288 * config/powerpc/linux.mh: Likewise.
11289 * config/mips/linux.mt: Likewise.
11291 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11293 * config/i386/i386lynx.mh: Mark gdbserver variables
11294 as (currently) obsolete for this target.
11295 * config/i386/nbsd.mt: Likewise.
11296 * config/i386/nbsdelf.mt: Likewise.
11297 * config/m32r/m32r.mt: Likewise.
11298 * config/m68k/m68klynx.mh: Likewise.
11299 * config/m68k/nbsd.mt: Likewise.
11300 * config/m68k/sun3os4.mh: Likewise.
11301 * config/mips/vr5000.mt: Likewise.
11302 * config/ns32k/nbsd.mt: Likewise.
11303 * config/pa/hppabsd.mh: Likewise.
11304 * config/pa/hppaosf.mh: Likewise.
11305 * config/powerpc/nbsd.mt: Likewise.
11306 * config/rs6000/rs6000lynx.mh: Likewise.
11307 * config/s390/s390.mt: Likewise.
11308 * config/s390/s390x.mt: Likewise.
11309 * config/sparc/sparclynx.mh: Likewise.
11310 * config/sparc/sun4os4.mh: Likewise.
11311 * config/i386/x86-64linux.mt: Likewise.
11312 * config/sparc/linux.mh: Likewise.
11314 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11316 * configure.tgt: Configure gdbserver only for known working
11317 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11318 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11319 SUBDIRS if it is configured. Update comment for ${nativefile}.
11320 * configure: Regenerated.
11322 2002-02-13 Michael Snyder <msnyder@redhat.com>
11324 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11326 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11327 (default_gcore_mach): Just return 0, work around a problem in bfd.
11328 (default_gcore_target): OK to return NULL if exec_bfd is null.
11329 (make_mem_sec): Use a cast, avoid a warning.
11331 * procfs.c (find_memory_regions_callback): Use a cast instead of
11332 calling host_pointer_to_address (which complains if
11333 sizeof (host pointer) != sizeof (target pointer)).
11334 (procfs_make_note_section): Avoid overflow in psargs string.
11336 * procfs.c (procfs_make_note_section): Make the default
11337 implementation return an error.
11339 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11341 * procfs.c (procfs_make_note_section): Provide a default definition
11342 (for alpha-dec-osf4.0f). Fix typos.
11344 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11346 * linux-proc.c: Add include of regcache.h.
11347 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11349 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11351 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11352 * memattr.c (create_mem_region): Disallow useless empty region.
11353 Regions are half-open intervals, so allow [A..B) [B..C) as
11356 2002-02-13 Michael Chastain <mec@shout.net>
11358 * defs.h: Kill CONST_PTR.
11359 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11360 * c-lang.c (c_builtin_types): Likewise.
11361 * ch-lang.c (ch_builtin_types): Likewise.
11362 * f-lang.c (f_builtin_types): Likewise.
11363 * language.c (unknown_builtin_types): Likewise.
11364 * m2-lang.c (m2_builtin_types): Likewise.
11365 * p-lang.c (pascal_builtin_types): Likewise.
11366 * scm-lang.c (c_builtin_types): Likewise.
11368 2002-02-13 Keith Seitz <keiths@redhat.com>
11370 * arm-tdep.h (arm_get_next_pc): Add declaration.
11372 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11374 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11375 with other related struct-returning functions.
11376 (arm_extract_struct_value_address): New function.
11377 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11378 initialize float_format, double_format and long_double_format as
11379 appropriate to the endianness of the target.
11380 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11381 (arm_use_struct_convention): Delete declaration.
11382 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11384 2002-02-13 Keith Seitz <keiths@redhat.com>
11386 * defs.h (core_addr_to_string_nz): New function.
11388 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11390 Apply missing bits of 2002-01-15 patch.
11391 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11392 (fill_fpregset): Use i387_fill_fsave.
11394 2002-02-12 Keith Seitz <keiths@redhat.com>
11396 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11397 (core_addr_to_string_nz): New function.
11399 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11401 * arm-linux-nat.c: Really include arm-tdep.h.
11402 * config/arm/tm-linux.h (struct type, struct value): Declare.
11404 2002-02-11 Michael Snyder <msnyder@redhat.com>
11406 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11407 (gcore section): Ifdef for Solaris and Unixware only.
11408 (procfs_do_thread_registers): Unixware needs one lwpstatus
11409 per thread (not one prstatus or pstatus).
11410 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11411 not over all gdb threads. For unixware, call elfcore_write_pstatus
11412 once before iterating over threads.
11414 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11416 * arm-tdep.h: New file.
11417 * arm-tdep.c: Include arm-tdep.h.
11418 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11419 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11420 (arm_print_float_info, arm_register_type, convert_to_extended)
11421 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11422 (arm_extract_return_value, arm_register_name): Make static.
11423 (arm_software_single_step): Similarly. Fix types in declaration.
11424 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11425 (arm_store_return_value, arm_store_struct_return): New functions.
11426 (arm_gdbarch_init): Register the above functions. Also register
11427 call_dummy_start_offset, sizeof_call_dummy_words,
11428 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11429 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11430 max_register_virtual_size, register_size. Set up
11431 prologue_cache.saved_regs here, rather than ...
11432 (_initialize_arm_tdep): ... here.
11433 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11435 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11436 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11437 (arm_print_float_info, arm_register_type, convert_to_extended)
11438 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11439 (arm_extract_return_value, arm_register_name): Delete declarations.
11440 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11441 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11442 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11443 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11444 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11445 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11446 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11447 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11448 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11449 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11450 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11451 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11453 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11454 * remote-rdi.c remote-rdp.c: Likewise.
11455 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11456 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11457 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11460 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11461 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11462 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11463 from non-ARM_ prefixed definitions.
11464 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11466 * remote-rdi.c remote-rdp.c: Likewise.
11467 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11469 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11471 * arm-tdep.c (arm_frameless_function_invocation)
11472 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11473 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11474 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11475 (arm_pop_frame, arm_get_next_pc): Make static.
11476 (arm_gdbarch_init): Register above in gdbarch structure.
11477 (arm_read_fp): Renamed from arm_target_read_fp.
11478 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11479 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11480 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11481 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11482 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11483 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11484 (arm_pc_is_thumb_dummy): Delete declarations.
11485 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11486 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11487 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11488 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11490 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11492 * symtab.c (compare_search_syms): New function.
11493 (sort_search_symbols): New function.
11494 (search_symbols): Sort symbols after searching rather than
11497 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11499 * NEWS: Linux -> GNU/Linux.
11501 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11503 * gdbarch.sh: For for level one methods, disallow a definition
11504 when partially multi-arched. Add comments explaining rationale.
11505 * gdbarch.h: Re-generate.
11507 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11509 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11510 multi-arch partial.
11512 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11514 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11515 field. Use diff -u.
11516 * gdbarch.c: Re-generate.
11518 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11520 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11521 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11524 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11526 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11527 multi-arch partial.
11528 (PUSH_ARGUMENTS): Switch to using predefault.
11529 * gdbarch.c: Regenerate.
11531 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11533 * valops.c (PUSH_ARGUMENTS): Delete definition.
11534 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11535 partial. Default to default_push_arguments.
11536 * gdbarch.h, gdbarch.c: Regenerate.
11538 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11540 * defs.h (throw_exception): Rename return_to_top_level. Update
11542 * utils.c (error_stream, internal_verror, quit): Ditto.
11543 * top.c (throw_exception, catcher): Ditto.
11544 * sparclet-rom.c (sparclet_load): Ditto.
11545 * remote.c (interrupt_query, minitelnet): Ditto.
11546 * remote-sds.c (interrupt_query): Ditto.
11547 * remote-mips.c (mips_error, mips_kill): Ditto.
11548 * ocd.c (interrupt_query): Ditto.
11549 * monitor.c (monitor_interrupt_query): Ditto.
11550 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11551 * target.h: Update comment.
11553 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11555 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11557 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11558 default_double_format.
11559 * gdbarch.h, gdbarch.c: Re-generate.
11560 * findvar.c (floatformat_unknown): Delete variable definition.
11561 * doublest.h (floatformat_unknown): Delete variable declaration.
11563 2002-02-09 Jim Blandy <jimb@redhat.com>
11565 * stabsread.c (read_type): Add code to parse Sun's syntax for
11566 prototyped function types.
11568 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11570 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11571 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11573 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11575 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11576 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11577 now _initialize_xcoffsolib gets called again and overrides the
11578 commands from solib.c in a native configuration.
11580 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11582 * doublest.c (store_typed_floating): Don't try to return a value.
11585 2002-02-08 Jim Blandy <jimb@redhat.com>
11587 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11588 is prototyped and has no arguments, print its argument list as
11591 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11593 * MAINTAINERS (write-after-approval): Add myself.
11594 (paper-trail): I've escaped!
11596 2002-02-08 Christopher Faylor <cgf@redhat.com>
11598 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11600 (_initialize_check_for_gdb_ini): Ditto.
11602 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11604 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11605 xaprintf -> xasprintf.
11607 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11609 * win32-nat.c: Remove use of printf and sprintf functions.
11611 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11613 * arm-tdep.c (arm_frame_chain_valid): Make static.
11614 (arm_push_arguments): Likewise.
11615 (arm_gdbarch_init): New function.
11616 (_initialize_arm_tdep): Call it.
11617 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
11618 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
11619 (FRAME_CHAIN_VALID): Delete.
11620 (arm_frame_chain_valid): Delete declaration.
11621 (PUSH_ARGUMENTS): Delete.
11622 (arm_push_arguments): Delete declaration.
11623 (CALL_DUMMY_P): Delete.
11625 2002-02-08 Andrew Cagney <ac131313@redhat.com>
11626 Corinna Vinschen <vinschen@redhat.com>
11628 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
11629 on builtin float types.
11631 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
11633 * utils.c: Include <curses.h> before "bfd.h".
11634 * tui/tui-hooks.c: Likewise.
11635 * tui/tui.c: Likewise.
11636 * tui/tuiCommand.c: Likewise.
11637 * tui/tuiData.c: Likewise.
11638 * tui/tuiDataWin.c: Likewise.
11639 * tui/tuiDisassem.c: Likewise.
11640 * tui/tuiGeneralWin.c: Likewise.
11641 * tui/tuiIO.c: Likewise.
11642 * tui/tuiLayout.c: Likewise.
11643 * tui/tuiRegs.c: Likewise.
11644 * tui/tuiSource.c: Likewise.
11645 * tui/tuiSourceWin.c: Likewise.
11646 * tui/tuiStack.c: Likewise.
11647 * tui/tuiWin.c: Likewise.
11649 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
11651 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
11652 to include space for pseudoregs as well. Update loops accordingly.
11653 (sh_fp_frame_init_saved_regs): Ditto.
11654 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
11656 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11658 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
11659 Add Richard Earnshaw to Arm maintainers.
11661 2002-02-07 Andrew Cagney <ac131313@redhat.com>
11663 * defs.h (warning_begin): Delete declaration.
11665 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
11668 2002-02-07 Michael Snyder <msnyder@redhat.com>
11670 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
11671 Logic bug, remove misplaced else.
11673 2002-02-07 Klee Dienes <klee@apple.com>
11675 * fork-inferior.c (fork_inferior): Add '!' to the list of
11676 characters that need to be quoted when building a string for the
11677 shell. Quote '!' specifically with a backslash, since CSH chokes
11678 when trying to evaluate "str!str".
11680 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
11682 * rdi-share/host.h: Only provide a typedef for bool if it is not
11685 2002-02-04 Michael Snyder <msnyder@redhat.com>
11687 * breakpoint.h (enum bptype): Add new overlay event bp type.
11688 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
11690 * breakpoint.c (create_internal_breakpoint): New function.
11691 (internal_breakpoint_number): Moved into create_internal_breakpoint.
11692 (create_longjmp_breakpoint): Use create_internal_breakpoint.
11693 (create_thread_event_breakpoint): Ditto.
11694 (create_solib_event_breakpoint): Ditto.
11695 (create_overlay_event_breakpoint): New function.
11696 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
11697 (update_breakpoints_after_exec): Delete and re-initialize
11698 overlay event breakpoints after an exec. Add FIXME comment
11699 about longjmp breakpoint.
11700 (print_it_typical): Ignore overlay event breakpoints.
11701 (print_one_breakpoint): Ditto.
11703 (bpstat_what): Do not stop for overlay event breakpoints.
11704 (delete_breakpoint): Don't delete overlay event breakpoints.
11705 (breakpoint_re_set_one): Delete the overlay event breakpoint.
11706 (breakpoint_re_set): Re-create overlay event breakpoint.
11708 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
11709 (overlay_manual_command): Disable overlay breakpoints.
11710 (overlay_off_command): Disable overlay breakpoints.
11712 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11714 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
11715 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
11716 to here from config/tm-arm.h.
11717 (coff_sym_is_thumb): Make static.
11718 (arm_elf_make_msymbol_special): New function.
11719 (arm_coff_make_msymbol_special): New function.
11720 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
11721 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
11722 (coff_sym_is_thumb): Delete declaration.
11723 (arm_elf_make_msymbol_special): Declare.
11724 (arm_coff_make_msymbol_special): Declare.
11725 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
11726 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
11728 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11730 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
11732 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
11734 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
11735 * gdbarch.c gdbarch.h: Regenerate.
11736 * arch-utils.c (default_print_float_info): New function.
11737 * arch-utils.h (default_print_float_info): Prototype it.
11738 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
11739 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
11740 (PRINT_FLOAT_INFO): Document it.
11742 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
11743 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
11744 (PRINT_FLOAT_INFO): Define.
11746 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
11748 * win32-nat.c (_initialize_check_for_gdb_ini):
11749 Add typecast to sprintf argument to suppress a warning.
11751 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
11753 * win32-nat.c (last_sig): Changed type of variable to target_signal,
11754 to allow easier handling of pass state.
11755 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
11756 that gives exception name and address.
11757 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
11758 and set last_sig value to ourstatus->value.sig. Some missing
11760 (child_continue): Correctly report continue_status.
11761 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
11762 TARGET_SIGNAL_0 (new default value).
11763 (child_resume): consider sig argument passed to decide if
11764 the exception should be passed to debuggee or not.
11766 2002-02-05 Michael Snyder <msnyder@redhat.com>
11768 * regcache.c (fetch_register): Call target_fetch_register
11769 only if we don't call FETCH_PSEUDO_REGISTER.
11770 (store_register): Call target_store_register only if we
11771 don't call STORE_PSEUDO_REGISTER.
11773 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
11775 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
11776 ELF_MAKE_MSYMBOL_SPECIAL.
11777 * gdbarch.c, gdbarch.h: Regenerate.
11778 * arch-utils.c (default_make_msymbol_special): New function.
11779 * arch-utils.h (default_make_msymbol_special): Export.
11780 * elfread.c (elf_symtab_read): Compile use of
11781 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
11783 * coffread.c (coff_symtab_read): Ditto, for
11784 COFF_MAKE_MSYMBOL_SPECIAL.
11786 2002-02-05 Jim Blandy <jimb@redhat.com>
11788 * solib-svr4.c (svr4_truncate_ptr): New function.
11789 (svr4_relocate_section_addresses): Do the address arithmetic with
11790 the appropriate truncation for target addresses, even when
11791 CORE_ADDR is larger than a target address.
11793 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11795 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
11798 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11800 * gdbserver/linux-low.c (kill_inferior): Remove commented out
11803 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11805 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
11807 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11809 * gdbserver/linux-low.c: Remove unused include files.
11811 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11813 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
11814 (read_inferior_memory): Use it.
11815 (write_inferior_memory): Likewise.
11817 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11819 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
11820 grubbing through sys_errlist.
11822 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
11824 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
11826 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11827 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
11829 2002-02-04 Andrew Cagney <ac131313@redhat.com>
11831 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
11832 (do_sfunc, set_cmd_sfunc): New functions.
11834 * command.h (struct cmd_list_element): Add field func.
11835 * cli/cli-decode.h (struct cmd_list_element): Ditto.
11836 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
11837 * cli/cli-decode.h: Ditto.
11839 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
11840 (help_all, help_cmd_list): Ditto.
11841 (find_cmd, complete_on_cmdlist): Ditto.
11842 * top.c (execute_command): Ditto.
11844 * cli/cli-setshow.c (do_setshow_command): Call func instead of
11847 * infcmd.c (notice_args_read): Fix function signature.
11849 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
11850 * cli/cli-decode.c (add_set_cmd): Ditto.
11851 * utils.c (initialize_utils): Ditto.
11852 * maint.c (_initialize_maint_cmds): Ditto.
11853 * infrun.c (_initialize_infrun): Ditto.
11854 * demangle.c (_initialize_demangler): Ditto.
11855 * remote.c (add_packet_config_cmd): Ditto.
11856 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11857 * cris-tdep.c (_initialize_cris_tdep): Ditto.
11858 * proc-api.c (_initialize_proc_api): Ditto.
11859 * kod.c (_initialize_kod): Ditto.
11860 * valprint.c (_initialize_valprint): Ditto.
11861 * top.c (init_main): Ditto.
11862 * infcmd.c (_initialize_infcmd): Ditto.
11863 * corefile.c (_initialize_core): Ditto.
11864 * arm-tdep.c (_initialize_arm_tdep): Ditto.
11865 * arch-utils.c (initialize_current_architecture): Ditto.
11866 (_initialize_gdbarch_utils): Ditto.
11867 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
11869 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
11870 * wince.c (_initialize_inftarg): Ditto.
11871 * symfile.c (_initialize_symfile): Ditto.
11872 * mips-tdep.c (_initialize_mips_tdep): Ditto.
11873 * language.c (_initialize_language): Ditto.
11874 * arc-tdep.c (_initialize_arc_tdep): Ditto.
11876 2002-02-04 Michael Snyder <msnyder@redhat.com>
11878 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
11880 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11882 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
11883 Add rules for building the register data files.
11885 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11887 * regformats/regdat.sh: Add braces to the definition of
11888 expedite_regs_${arch}.
11890 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
11892 * regformats/regdef.h (struct reg): Add comment describing the
11893 requirements for offset and size fields.
11895 2002-02-04 Andreas Schwab <schwab@suse.de>
11897 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
11898 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
11900 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
11902 * gdbarch.sh (copyright): Update years in generated header.
11903 (SMASH_TEXT_ADDRESS): Add rule.
11904 * gdbarch.h, gdbarch.c: Re-generate.
11905 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
11906 * dbxread.c: Likewise.
11907 * dwarfread.c: Likewise.
11908 * elfread.c: Likewise.
11909 * somread.c: Likewise.
11911 * arm-tdep.c (arm_smash_text_address): New function.
11912 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
11914 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
11916 Add support for hardware watchpoints on win32 native.
11917 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
11918 CONTEXT_DEBUG_REGISTERS.
11919 (dr variable): New variable. Static array containing a local copy
11920 of debug registers.
11921 (debug_registers_changed): New variable. Reflects when debug registers
11922 are changed and need to be written to inferior.
11923 (debug_registers_used): New variable. Reflects when any debug register
11924 was set, used when new threads are created.
11925 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
11927 (thread_rec): Set dr array if id is the thread of current_event .
11928 (child_continue, child_resume): Change the debug registers for all
11929 threads if debug_registers_changed.
11930 (child_add_thread): Change the debug registers if debug_registers_used.
11931 * config/i386/cygwin.mh: Add use of i386-nat.o file.
11932 Link nm.h to new nm-cygwin.h file.
11933 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
11934 of hardware registers.
11936 2002-02-03 Andrew Cagney <ac131313@redhat.com>
11938 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
11939 Restore behavour broken by 2002-01-20 Andrew Cagney
11940 <ac131313@redhat.com> IEEE_FLOAT removal.
11942 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11944 * c-valprint.c (c_val_print): Pass a proper valaddr to
11945 cp_print_class_method.
11946 * valops.c (search_struct_method): If there is only one method
11947 and args is NULL, return that method.
11949 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11951 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
11952 accessing tag_name directly.
11954 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11956 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
11957 of accessing tag_name directly.
11959 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
11962 * gdbtypes.c (replace_type): New function.
11963 * gdbtypes.h (replace_type): Add prototype.
11964 * stabsread.c (read_type): Use replace_type.
11966 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
11968 * Makefile.in (memattr.o): Add missing dependencies rule.
11970 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11972 * breakpoint.c (break_at_finish_command): Really export.
11973 (break_at_finish_at_depth_command): Ditto.
11974 (tbreak_at_finish_command): Ditto.
11975 * hppa-tdep.c: Include completer.h.
11976 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
11977 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
11979 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11981 * utils.c (do_write): New function.
11982 (error_stream): Rewrite combining the code from error_begin and
11984 (verror): Rewrite using error_stream.
11985 (error_begin): Delete function.
11987 2002-02-01 Andrew Cagney <ac131313@redhat.com>
11989 * utils.c (error_begin): Make static.
11990 * defs.h (error_begin): Delete declaration.
11992 * linespec.c (cplusplus_error): Replace cplusplus_hint.
11993 (decode_line_1): Use cplusplus_error instead of error_begin,
11994 cplusplus_hint and return_to_top_level.
11995 * coffread.c (coff_symfile_read): Use error instead of error_begin
11996 and return_to_top_level.
11997 * infrun.c (default_skip_permanent_breakpoint): Ditto.
11999 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12001 * language.h (type_error, range_error): Make string parameter
12003 * language.c (warning_pre_print): Delete extern declaration.
12004 * dwarfread.c (warning_pre_print): Ditto.
12005 * language.c (type_error, range_error): Rewrite to use verror and
12006 vwarning instead of warning_begin.
12008 2002-02-01 Michael Snyder <msnyder@redhat.com>
12010 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12011 (set_ignore_count): Move misplaced comment back where it belongs.
12013 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12015 * command.h (NO_FUNCTION): Delete macro.
12016 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12017 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12018 * tracepoint.c (_initialize_tracepoint): Ditto.
12019 * cli/cli-decode.c (add_set_cmd): Ditto.
12020 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12022 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12024 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12025 Update ``this'' pointer when calling virtual functions.
12027 2002-02-01 Michael Snyder <msnyder@redhat.com>
12029 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12030 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12032 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12034 * regformats/reg-arm.dat: New file.
12035 * regformats/reg-i386.dat: New file.
12036 * regformats/reg-ia64.dat: New file.
12037 * regformats/reg-m68k.dat: New file.
12038 * regformats/reg-mips.dat: New file.
12039 * regformats/reg-ppc.dat: New file.
12040 * regformats/reg-sh.dat: New file.
12041 * regformats/regdef.h: New file.
12042 * regformats/regdat.sh: New file.
12044 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12046 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12047 (arm_frame_args_address, arm_frame_locals_address): New functions.
12048 (arm_frame_num_args): New function.
12049 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12050 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12051 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12053 2002-01-31 Michael Snyder <msnyder@redhat.com>
12055 * breakpoint.c (break_at_finish_command): Export.
12056 (break_at_finish_at_depth_command): Export.
12057 (tbreak_at_finish_command): Export.
12058 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12059 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12060 "txbreak" commands, which are HPPA specific.
12062 * printcmd.c (disassemble_command): Remove an ancient
12063 artifact of an old merge.
12065 * symfile.h (enum overlay_debugging_state):
12066 Define enum constant values for overlay mode.
12067 * symfile.c (overlay_debugging): Use enums instead of literals.
12068 (overlay_is_mapped, overlay_auto_command,
12069 overlay_manual_command): Ditto.
12071 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12072 breakpoint_here_p, breakpoint_inserted_here_p,
12073 breakpoint_thread_match, bpstat_stop_status,
12074 describe_other_breakpoints, check_duplicates, clear_command):
12075 Coding standard fixes.
12077 * target.c (target_xfer_memory): Add spaces, coding standard.
12078 (do_xfer_memory): Add missing line to trust-readonly
12079 code: check bfd SEC_READONLY flag for section.
12081 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12083 * PROBLEMS: Fix typo, 5.1->5.1.1.
12085 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12087 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12088 data symbols, since we search based on textlow and texthigh.
12089 (find_pc_sect_symtab): Likewise.
12091 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12093 * defs.h (vwarning): Declare.
12094 * utils.c (vwarning): New function.
12095 (warning): Call vwarning.
12096 (warning_begin): Delete function.
12098 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12099 the warning message.
12100 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12103 2002-01-30 Michael Snyder <msnyder@redhat.com>
12105 * NEWS: Mention "set trust-readonly-sections" command.
12106 Mention generate-core-file command.
12108 2002-01-15 Michael Snyder <msnyder@redhat.com>
12110 * target.c: New command, "set trust-readonly-sections on".
12111 (do_xfer_memory): Honor the suggestion to trust readonly sections
12112 by reading them from the object file instead of from the target.
12113 (initialize_targets): Register command "set trust-readonly-sections".
12115 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12117 * parse.c (target_map_name_to_register): Simplify, search regs and
12118 pseudo-regs using a single loop.
12120 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12122 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12124 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12126 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12127 * config/i386/i386v42mp.mh: Add i387-nat.o .
12128 * i386v4-nat.c: Include i387-nat.h.
12129 (supply_fpregset): Use i387_supply_fsave.
12130 (fill_fpregset): Use i387_fill_fsave.
12132 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12134 * arm-tdep.c (arm_call_dummy_words): Define.
12135 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12136 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12137 (CALL_DUMMY_WORDS): Define.
12138 (arm_call_dummy_words): Declare.
12139 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12140 (arm_linux_call_dummy_words): Declare.
12142 2002-01-30 Andreas Schwab <schwab@suse.de>
12144 * m68klinux-nat.c: Fix last change to use regcache_collect
12145 instead of referencing registers[] directly.
12147 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12149 * parse.c (target_map_name_to_register): Delete code wrapped in
12150 #ifdef REGISTER_NAME_ALIAS_HOOK.
12152 2002-01-28 Michael Snyder <msnyder@redhat.com>
12154 * regcache.c (legacy_read_register_gen): Need to be able to
12155 read pseudo-register as well as real register.
12156 (legacy_write_register_gen): Ditto.
12158 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12160 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12161 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12162 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12163 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12164 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12165 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12166 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12167 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12168 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12169 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12170 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12171 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12172 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12173 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12174 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12175 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12176 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12177 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12178 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12179 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12181 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12183 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12184 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12185 (initialize_current_architecture): Update target_byte_order using
12186 information from BFD.
12187 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12188 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12190 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12192 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12193 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12195 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12196 #ifdef INVALID_FLOAT.
12197 * infcmd.c (do_registers_info): Ditto.
12198 * values.c (unpack_double): Ditto. Add comment.
12200 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12201 already commented out.
12203 2002-01-26 Andreas Schwab <schwab@suse.de>
12205 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12206 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12207 registers and add support for PTRACE_GETREGS.
12209 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12211 GDB 5.1.1 released from 5.1 branch.
12212 * NEWS: Add 5.1.1 news.
12213 * README: Sync with 5.1 branch.
12215 2002-01-23 Fred Fish <fnf@redhat.com>
12217 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12218 stabstring on initial malloc. Reallocing will copy it for us,
12221 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12223 * Makefile.in (hpread_h): Delete.
12224 (HFILES_NO_SRCDIR): Remove hpread.h.
12225 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12226 (hpread.o): Update dependencies.
12227 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12229 * hp-psymtab-read.c: Remove file.
12230 * hp-symtab-read.c: Remove file.
12231 * hpread.h: Remove file.
12233 * hpread.c: Merge all contents of hp-psymtab-read.c,
12234 hp-symtab-read.c and hpread.h into this file, as it was prior to
12237 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12238 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12239 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12240 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12242 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12244 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12245 fill_gregset): Call gdbarch_tdep() just once, assign result to
12246 variable and use that, instead of calling the function several
12249 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12251 * configure.host: Accept sparcv9 as alias for sparc64.
12252 * configure.tgt: Likewise.
12254 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12256 * solib-aix5.c (build_so_list_from_mapfile)
12257 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12258 arguments is not reversed.
12259 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12260 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12262 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12264 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12265 modified version of obsolete sh_fetch_pseudo_register.
12266 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12267 (sh4_register_read): New function.
12268 (sh_pseudo_register_write): New function. Renamed and modified
12269 version of obsolete sh_store_pseudo_register.
12270 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12271 (sh4_register_write): New function.
12272 (sh_gdbarch_init): Remove setting of gdbarch function
12273 fetch_pseudo_register and store_pseudo_register. Remove setting of
12274 register_convert_to_raw, register_convert_to_virtual,
12275 register_convertible.
12276 (sh_sh4_register_convertible): Delete. No longer needed. All is
12277 taken care by architecture specific functions
12278 register_read/register_write.
12279 (sh_sh4_register_convert_to_virtual): Make static.
12280 (sh_sh4_register_convert_to_raw): Ditto.
12282 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12284 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12285 (floatformat_is_nan, floatformat_mantissa): Ditto.
12287 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12288 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12289 builtin_type_ieee_double_little,
12290 builtin_type_ieee_double_littlebyte_bigword,
12291 builtin_type_m68881_ext, builtin_type_i960_ext,
12292 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12293 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12294 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12295 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12297 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12299 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12300 parameter. Set frameless flag if it exists and depended of
12301 whether the scanned function is frameless or not.
12302 (xstormy16_skip_prologue): If function is frameless, return
12303 result of xstormy16_scan_prologue().
12304 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12307 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12309 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12310 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12311 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12312 sh_sh4_register_byte, sh_sh4_register_raw_size,
12313 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12314 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12315 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12316 sh_store_pseudo_register, sh_do_pseudo_register): Call
12317 gdbarch_tdep() just once, assign result to variable and use that,
12318 instead of calling the function several times.
12320 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12322 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12323 macros instead of LAST_FPU_CTRL_REGNUM.
12324 (store_register): Likewise.
12326 2002-01-21 Jim Blandy <jimb@redhat.com>
12328 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12329 is up-to-date before running the program, not just when a program
12332 2002-01-21 Fred Fish <fnf@redhat.com>
12334 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12335 when we have found all instructions we are looking for.
12337 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12339 * arm-tdep.c (arm_register_name): New function.
12340 (arm_registers_names): Make static.
12341 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12342 (arm_register_name): Declare.
12343 (REGISTER_NAME): Use it.
12345 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12346 Kevin Buettner <kevinb@redhat.com>
12348 Convert arm targets to new FRAME interface.
12349 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12350 (arm_frame_find_save_regs): Delete.
12351 (arm_frame_init_saved_regs): New.
12352 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12353 Allocate extra_info as required. Convert all uses of fsr.regs
12354 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12356 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12357 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12358 (check_prologue_cache, save_prologue_cache): Likewise.
12359 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12360 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12361 (FRAME_FIND_SAVED_REGS): Delete.
12362 (arm_frame_find_saved_regs): Delete prototype.
12363 (arm_frame_init_saved_regs): New prototype.
12364 (FRAME_INIT_SAVED_REGS): Define.
12366 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12368 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12370 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12372 From Jeff Law <law@redhat.com>:
12373 * infttrace.c: Include <sys/pstat.h>.
12374 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12375 exec file if the ttrace equivalent fails.
12377 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12379 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12380 (closeLogFile): Ditto.
12382 2002-01-20 Michael Chastain <mec@shout.net>
12384 * top.c (print_gdb_version): Bump copyright year to 2002.
12386 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12388 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12389 Zannoni and Eli Zaretskii.
12391 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12393 * buildsym.c: Update copyright years.
12394 * c-typeprint.c: Likewise.
12395 * dwarf2read.c: Likewise.
12396 * f-typeprint.c: Likewise.
12397 * gdbtypes.c: Likewise.
12398 * gdbtypes.h: Likewise.
12399 * hp-symtab-read.c: Likewise.
12400 * hpread.c: Likewise.
12401 * mdebugread.c: Likewise.
12402 * p-typeprint.c: Likewise.
12404 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12406 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12407 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12408 byte-order selectable.
12409 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12410 * arch-utils.c: Ditto.
12411 (set_endian): Ditto.
12412 (set_endian_from_file): Ditto.
12413 * gdbserver/low-sim.c (create_inferior): Ditto.
12414 * gdbarch.sh: Ditto.
12415 * gdbarch.h: Re-generate.
12416 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12417 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12418 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12419 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12420 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12421 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12422 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12423 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12425 * config/mips/tm-wince.h: Remove #undef of macro
12426 TARGET_BYTE_ORDER_SELECTABLE.
12427 * config/sh/tm-wince.h: Ditto.
12429 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12431 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12432 member function fields. Add accessor macro
12433 TYPE_FN_FIELD_ARTIFICIAL.
12434 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12435 * c-typeprint.c (c_type_print_base): Skip artificial member
12438 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12440 * f-typeprint.c: Delete unused function f_type_print_args.
12441 * p-typeprint.c: Delete unused function pascal_type_print_args.
12443 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12445 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12446 comment. Add ``artificial'' to ``union field_location''.
12448 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12450 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12451 * mdebugread.c (parse_symbol): Likewise.
12452 * stabsread.c (define_symbol): Likewise.
12453 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12454 initializing TYPE_FIELD_BITPOS to n (obsolete).
12455 (hpread_doc_function_type): Likewise.
12456 * hpread.c (hpread_function_type): Likewise.
12458 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12460 * configure.in (host_makefile_frag): Only require a host makefile
12461 fragment when a native build.
12462 * configure: Re-generate.
12464 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12466 * doublest.h (floatformat_from_type): Declare.
12467 * doublest.c (floatformat_from_type): New function.
12468 (convert_typed_floating): Use.
12470 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12471 call to function floatformat_from_type.
12473 * gdbarch.sh (IEEE_FLOAT): Delete.
12474 * gdbarch.h, gdbarch.c: Re-generate.
12475 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12476 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12477 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12478 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12479 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12480 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12481 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12482 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12483 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12484 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12485 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12486 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12488 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12489 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12490 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12491 * sh-tdep.c (sh_gdbarch_init): Ditto.
12492 * mips-tdep.c (mips_gdbarch_init): Ditto.
12493 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12494 * cris-tdep.c (cris_gdbarch_init): Ditto.
12496 2002-01-20 Jiri Smid <smid@suse.cz>
12498 * configure.host, configure.tgt: Support x86-64.
12499 * NEWS: Note new target x86-64.
12501 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12502 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12503 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12504 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12505 x86-64-linux-nat.o): Fix dependencies.
12507 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12509 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12510 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12511 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12512 * config/sparc/xm-sun4os4.h: Delete file.
12513 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12515 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12517 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12518 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12519 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12520 * config/i386/i386lynx.mh (XM_FILE): Delete.
12521 * config/rs6000/xm-rs6000ly.h: Delete file.
12522 * config/sparc/xm-sparclynx.h: Delete file.
12523 * config/m68k/xm-m68klynx.h: Delete file.
12524 * config/i386/xm-i386lynx.h: Delete file.
12525 * config/xm-lynx.h: Delete file.
12526 * config/djgpp/fnchange.lst: Update.
12528 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12530 * alpha-tdep.c (alpha_register_byte): New function.
12531 (alpha_register_raw_size): Ditto.
12532 (alpha_register_virtual_size): Ditto.
12533 (alpha_skip_prologue_internal): Renamed from
12534 alpha_skip_prologue.
12535 (alpha_skip_prologue): New version that calls
12536 alpha_skip_prologue_internal.
12537 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12538 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12539 second argument from alpha_skip_prologue.
12540 (REGISTER_BYTE): Use alpha_register_byte.
12541 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12542 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12543 (FRAMELESS_FUNCTION_INVOCATION): Use
12544 generic_frameless_function_invocation_not.
12545 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12546 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12548 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12550 * config/mips/xm-news-mips.h: Delete file.
12551 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12553 * config/m88k/xm-m88k.h: Delete file.
12554 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12555 * config/m88k/xm-delta88v4.h: Ditto.
12556 * config/m88k/xm-delta88.h: Ditto.
12558 * config/alpha/xm-fbsd.h: Delete file.
12559 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12561 * config/sparc/xm-sparc.h: Delete file.
12562 * Makefile.in (xm-sun4os4.h): Delete dependency.
12563 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12564 * config/sparc/xm-sun4os4.h: Ditto.
12565 * config/sparc/xm-linux.h: Ditto.
12567 * config/i386/xm-windows.h: Delete file.
12569 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12571 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12572 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12574 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12576 * alpha-tdep.c (alpha_call_dummy_words): New.
12577 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12578 (CALL_DUMMY_P): Define.
12579 (CALL_DUMMY_WORDS): Define.
12580 (SIZEOF_CALL_DUMMY_WORDS): Define.
12582 2002-01-19 Per Bothner <per@bothner.com>
12584 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12585 isn't NULL, which can happen with some gcj-3.x-produced code.
12587 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12589 * alpha-tdep.c (alpha_register_virtual_type): New function.
12590 (alpha_init_frame_pc_first): Ditto.
12591 (alpha_fix_call_dummy): Ditto.
12592 (alpha_store_struct_return): Ditto.
12593 (alpha_extract_struct_value_address): Ditto.
12594 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12595 alpha_register_virtual_type.
12596 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12597 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12598 alpha_extract_struct_value_address.
12599 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12600 (INIT_FRAME_PC): Use init_frame_pc_noop.
12601 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12603 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12605 * i386gnu-nat.c: Include "i386-tdep.h".
12606 (fetch_fpregs): Simplify code dealing with uninitialized floating
12607 point states such that it doesn't require FP7_REGNUM.
12609 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12611 * alpha-tdep.c (frame_extra_info): New.
12612 (alpha_find_saved_regs): Make static. Use
12614 (alpha_frame_init_saved_regs): New function.
12615 (alpha_frame_saved_pc): Use frame->extra_info.
12616 (temp_saved_regs): Don't declare as struct frame_saved_regs.
12617 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
12618 (init_extra_frame_info): Rename to...
12619 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
12620 (alpha_print_extra_frame_info): New function.
12621 (alpha_frame_locals_address): Ditto.
12622 (alpha_frame_args_address): Ditto.
12623 (alpha_pop_frame): Use frame->extra_info.
12624 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
12625 alpha_frame_args_address.
12626 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
12627 (alpha_find_saved_regs): Remove prototype.
12628 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
12629 (EXTRA_FRAME_INFO): Remove.
12630 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
12631 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
12633 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12635 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
12636 (alpha_cannot_fetch_register): Ditto.
12637 (alpha_cannot_store_register): Ditto.
12638 (alpha_register_convertible): Ditto.
12639 (alpha_use_struct_convention): Ditto.
12640 * config/alpha/tm-alpha.h: Update copyright years.
12641 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
12642 (INNER_THAN): Use core_addr_lessthan.
12643 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
12644 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
12645 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
12646 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
12647 (FRAME_CHAIN): Remove unnecessary cast.
12649 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12651 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
12654 2002-01-18 Andrew Cagney <ac131313@redhat.com>
12656 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
12657 * monitor.c, remote-array.c, remote-bug.c: Ditto.
12658 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
12659 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
12660 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
12661 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
12662 * x86-64-linux-nat.c: Ditto.
12664 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12666 * alpha-tdep.c (alpha_register_name): New function.
12667 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
12668 (REGISTER_NAME): Define.
12670 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12672 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
12674 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12676 * alpha-tdep.c: Update copyright years.
12677 (alpha_next_pc): New function.
12678 (alpha_software_single_step): Ditto.
12679 * config/alpha/tm-alpha.h: Add prototype for
12680 alpha_software_single_step.
12682 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12684 * alphabsd-nat.c: Update copyright years.
12685 (fill_gregset): Use regcache_collect.
12686 (fill_fpregset): Likewise.
12687 (fetch_inferior_registers): Only fetch integer registers
12688 if requested to do so.
12689 (store_inferior_registers): Only store integer registers
12690 if requested to do so.
12692 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12694 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
12695 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
12696 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
12697 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
12698 * config/alpha/fbsd.mh (XDEPFILES): Delete.
12699 * config/arm/linux.mh (XDEPFILES): Delete.
12700 * config/arm/nbsd.mh (XDEPFILES): Delete.
12701 * config/i386/i386dgux.mh (XDEPFILES): Delete.
12702 * config/i386/i386sol2.mh (XDEPFILES): Delete.
12703 * config/i386/i386m3.mh (XDEPFILES): Delete.
12704 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
12705 * config/i386/i386gnu.mh (XDEPFILES): Delete.
12706 * config/i386/fbsd.mh (XDEPFILES): Delete.
12707 * config/i386/i386bsd.mh (XDEPFILES): Delete.
12708 * config/i386/i386sco5.mh (XDEPFILES): Delete.
12709 * config/i386/i386v4.mh (XDEPFILES): Delete.
12710 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
12711 * config/i386/i386sco4.mh (XDEPFILES): Delete.
12712 * config/i386/i386aix.mh (XDEPFILES): Delete.
12713 * config/i386/go32.mh (XDEPFILES): Delete.
12714 * config/i386/cygwin.mh (XDEPFILES): Delete.
12715 * config/i386/i386lynx.mh (XDEPFILES): Delete.
12716 * config/i386/i386mach.mh (XDEPFILES): Delete.
12717 * config/i386/i386v32.mh (XDEPFILES): Delete.
12718 * config/i386/linux.mh (XDEPFILES): Delete.
12719 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
12720 * config/i386/ncr3000.mh (XDEPFILES): Delete.
12721 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
12722 * config/i386/i386sco.mh (XDEPFILES): Delete.
12723 * config/i386/i386v.mh (XDEPFILES): Delete.
12724 * config/i386/nbsd.mh (XDEPFILES): Delete.
12725 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
12726 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
12727 * config/i386/symmetry.mh (XDEPFILES): Delete.
12728 * config/i386/obsd.mh (XDEPFILES): Delete.
12729 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
12730 * config/ia64/linux.mh (XDEPFILES): Delete.
12731 * config/ia64/aix.mh (XDEPFILES): Delete.
12732 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
12733 * config/m68k/dpx2.mh (XDEPFILES): Delete.
12734 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
12735 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
12736 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
12737 * config/m68k/linux.mh (XDEPFILES): Delete.
12738 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
12739 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
12740 * config/m68k/nbsd.mh (XDEPFILES): Delete.
12741 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
12742 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
12743 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
12744 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
12745 * config/m88k/delta88.mh (XDEPFILES): Delete.
12746 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
12747 * config/m88k/m88k.mh (XDEPFILES): Delete.
12748 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
12749 * config/mips/linux.mh (XDEPFILES): Delete.
12750 * config/mips/irix6.mh (XDEPFILES): Delete.
12751 * config/mips/irix5.mh (XDEPFILES): Delete.
12752 * config/mips/irix4.mh (XDEPFILES): Delete.
12753 * config/mips/irix3.mh (XDEPFILES): Delete.
12754 * config/mips/decstation.mh (XDEPFILES): Delete.
12755 * config/mips/mipsm3.mh (XDEPFILES): Delete.
12756 (NATDEPFILES): Move core-aout.o to here.
12757 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
12758 * config/pa/hpux1020.mh (XDEPFILES): Delete.
12759 * config/pa/hppabsd.mh (XDEPFILES): Delete.
12760 * config/pa/hppahpux.mh (XDEPFILES): Delete.
12761 * config/pa/hpux11w.mh (XDEPFILES): Delete.
12762 * config/pa/hppaosf.mh (XDEPFILES): Delete.
12763 * config/pa/hpux11.mh (XDEPFILES): Delete.
12764 * config/powerpc/aix.mh (XDEPFILES): Delete.
12765 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
12766 * config/powerpc/linux.mh (XDEPFILES): Delete.
12767 * config/romp/rtbsd.mh: Rename XDEPFILES.
12768 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
12769 * config/rs6000/aix4.mh (XDEPFILES): Delete.
12770 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
12771 * config/s390/s390.mh (XDEPFILES): Delete.
12772 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
12773 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
12774 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
12775 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
12776 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
12777 * config/sparc/nbsd.mh (XDEPFILES): Delete.
12778 * config/sparc/linux.mh (XDEPFILES): Delete.
12779 * config/vax/vaxult.mh (XDEPFILES): Delete.
12780 * config/vax/vaxult2.mh (XDEPFILES): Delete.
12781 * Makefile.in (DEPFILES): Remove XDEPFILES.
12783 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12785 * utils.c (internal_verror): Fix comments, default is yes not no.
12786 Update queries to match. Default to quit and dump core.
12788 2002-01-17 Andrew Cagney <ac131313@redhat.com>
12790 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
12792 * defs.h, event-top.c, gdbcmd.h: Ditto.
12793 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
12794 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
12795 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
12796 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
12797 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
12798 * mi/mi-main.c:Ditto.
12800 * stack.c, symfile.c: Update copyright.
12802 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12804 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
12805 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
12806 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
12807 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
12809 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
12811 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
12812 * gdbserver/low-lynx.c (myattach): Likewise.
12813 * gdbserver/low-nbsd.c (myattach): Likewise.
12814 * gdbserver/low-sim.c (myattach): Likewise.
12815 * gdbserver/low-sparc.c (myattach): Likewise.
12816 * gdbserver/low-sun3.c (myattach): Likewise.
12818 * gdbserver/low-linux.c (myattach): New function.
12820 * gdbserver/server.c (attach_inferior): New function.
12821 (main): Handle "--attach".
12823 2002-01-16 Andrew Cagney <ac131313@redhat.com>
12825 * MAINTAINERS (language support): Daniel Jacobwitz is C++
12828 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
12830 * c-typeprint.c (is_type_conversion_operator): Add additional
12831 check for non-conversion operators.
12833 2002-01-15 Michael Snyder <msnyder@redhat.com>
12835 * linux-proc.c: Add "info proc" command, a la procfs.c.
12836 (read_mapping): New function, abstract and re-use code.
12837 (linux_find_memory_regions): Use new func read_mapping.
12838 (linux_info_proc_cmd): New function, implement "info proc".
12839 (_initialize_linux_proc): Add new command "info proc".
12841 2002-01-15 Michael Snyder <msnyder@redhat.com>
12843 * symfile.c (generic_load): Use bfd_map_over_sections method
12844 instead of manipulating bfd structure members directly.
12845 (add_section_size_callback): New function, bfd sections callback
12846 used by generic_load.
12847 (load_sections_callback): New function, bfd sections callback
12848 used by generic_load.
12850 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
12852 [Based on work by Jim Blandy]
12853 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
12854 (builtin_type_vec128): Export.
12855 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
12857 (builtin_type_vec128): New builtin type for 128 bit vector
12859 (build_gdbtypes): Initialize builtin_type_v16qi and
12860 builtin_type_v8hi. Create the vec128 register builtin type
12862 (build_builtin_type_vec128): New function.
12863 (_initialize_gdbtypes): Register builtin_type_v16qi and
12864 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
12865 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
12866 AltiVec register to new builtin type.
12868 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
12870 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
12873 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12875 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
12876 CLEAN_UP_REGISTER_VALUE.
12877 * regcache.c (supply_register): Update only call.
12879 2002-01-14 Andrew Cagney <ac131313@redhat.com>
12881 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
12882 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
12883 a29k-*-vxworks* targets as obsolete.
12885 2002-01-14 Michael Snyder <msnyder@redhat.com>
12887 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
12888 until we can resolve portability issues.
12889 * gregset.h: Remove references to fpxregs.
12890 * gcore.c (gcore_command): Initialize note_sec to NULL.
12892 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12894 * signals.c (target_signal_to_name): Rewrite. Only use
12895 signals[].name when in bounds and non-NULL.
12897 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12899 From Petr Ledvina <ledvinap@kae.zcu.cz>:
12900 * signals.c (target_signal_to_name): Verify that SIG is within the
12901 bounds of the signals array.
12903 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12905 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
12907 2002-01-13 Keith Seitz <keiths@redhat.com>
12909 * stack.c (print_frame_info_base): Print the frame's pc
12910 only if when print_frame_info_listing_hook is not defined.
12912 2002-01-13 Keith Seitz <keiths@redhat.com>
12914 * varobj.c (varobj_set_value): Make sure that there were no
12915 errors evaluating the object before attempting to set its
12917 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
12918 so this offset adjustment is no longer necessary.
12919 (create_child): Don't set the error flag if the child is
12920 a CPLUS_FAKE_CHILD.
12921 (value_of_child): If value_fetch_lazy fails, return NULL
12922 so that callers will be notified that an error occurred.
12923 (c_value_of_variable): Delay check of variable's validity
12924 until later. We actually want all structs and unions to have
12926 Do not return "???" for variables which could not be evaluated.
12927 This error condition must be returned to the caller so that it
12928 can get the error condition from gdb.
12929 (cplus_name_of_child): Adjust index for vptr before figuring
12930 out the name of the child.
12931 (cplus_value_of_child): If a child's (real) parent is not valid,
12932 don't even bother trying to give a value for it. Just return
12933 an error. Change all instances in this function.
12934 (cplus_type_of_child): If our parent is one of the "fake"
12935 parents, we need to get at the type of the real parent, and
12936 derive the child's true type using this information.
12938 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12940 From 2002-01-09 John Marshall <johnm@falch.net>:
12941 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
12942 sources.redhat.com, and tweak some related URLs which had
12943 suffered from linkrot.
12945 2002-01-13 Andrew Cagney <ac131313@redhat.com>
12948 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
12949 structures passed in registers.
12951 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
12953 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
12954 white space which prevented compilation. Reported by DSK
12955 <dsk@student.unsw.edu.au>.
12957 2002-01-11 Michael Snyder <msnyder@redhat.com>
12959 * symfile.c (build_section_addr_info_from_section_tab):
12960 Use bfd access method instead of manipulating bfd directly.
12961 (syms_from_objfile): Ditto.
12962 (simple_overlay_update_1): Ditto.
12963 (simple_overlay_update): Ditto.
12964 (generic_load): Ditto.
12965 (overlay_unmapped_address): FIXME comment, bfd access methods.
12966 (sections_overlap): FIXME comment, bfd access methods.
12967 (pc_in_mapped_range): FIXME comment, bfd access methods.
12968 (pc_in_unmapped_range): FIXME comment, bfd access methods.
12969 (section_is_mapped): FIXME comment, bfd access methods.
12970 (section_is_overlay): FIXME comment, bfd access methods.
12972 * symfile.c (generic_load): Whitespace and long line cleanups.
12973 Remove duplicate variable, change several local variables to
12974 more appropriate data types.
12975 (print_transfer_performance): Use %lu instead of %ld for ulongs.
12977 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12979 From Peter Schauer:
12980 * language.c (longest_local_hex_string_custom): Use phex_nz to
12981 convert NUM to a hex string.
12983 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
12985 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
12987 Update Copyright year.
12989 2002-01-12 Andrew Cagney <ac131313@redhat.com>
12991 * language.c (longest_raw_hex_string): Delete unused function.
12993 2002-01-11 Petr Sorfa <petrs@caldera.com>
12995 * MAINTAINERS (write-after-approval): Add myself.
12996 * dwarf2read.c (read_tag_string_type): Handling of
12998 (read_tag_string_type): FORTRAN fix to prevent propagation of
13000 (set_cu_language): Handling of DW_LANG_Fortran95
13002 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13004 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13005 GETPID(inferior_ptid).
13006 (store_inferior_registers): Likewise.
13008 2002-01-10 Jason Merrill <jason@redhat.com>
13010 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13013 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13015 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13016 and bfd/elf32-sh-nbsd.c.
13018 2002-01-10 Michael Snyder <msnyder@redhat.com>
13020 * NEWS: Mention --pid and corefile/proc-id behavior change.
13022 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13023 * gcore.c: Include cli/cli-decode.h instead of command.h.
13025 * main.c (captured_main): Add new command line option "--pid".
13026 If the second command line argument (following the symbol-file)
13027 begins with a digit, try to attach to it before trying to open
13029 (print_gdb_help): Document the "--pid" argument.
13031 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13033 * completer.c (command_completer): New function.
13035 * completer.h <command_completer>: Add prototype.
13037 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13038 completer for the "help" command.
13040 2002-01-09 Jason Merrill <jason@redhat.com>
13042 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13044 2002-01-09 Michael Snyder <msnyder@redhat.com>
13046 * i386-linux-nat.c (fill_fpxregset): Make global.
13047 (store_fpxregset): Ditto.
13049 * gregset.h (gdb_fpxregset_t): Define.
13050 (supply_fpxregset): Prototype.
13051 (fill_fpxregset): Prototype.
13053 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13055 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13057 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13058 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13059 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13061 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13063 * MAINTAINERS: Update target maintainer rules so that any
13064 Maintainer can approve a tested patch for a maintenance-only
13067 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13069 * MAINTAINERS (write-after-approval): Add myself.
13071 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13074 2002-01-08 Michael Snyder <msnyder@redhat.com>
13076 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13077 real name of the executable, rather than the /proc name.
13079 2002-01-03 Michael Snyder <msnyder@redhat.com>
13081 Implement a "generate-core-file" command in gdb, save target state.
13082 * gcore.c: New file. Implement new command 'generate-core-file'.
13083 Save a corefile image of the current state of the inferior.
13084 * linux-proc.c: Add linux-specific code for saving corefiles.
13085 * target.h (struct target_ops): Add new target vectors for saving
13086 corefiles; to_find_memory_regions and to_make_corefile_notes.
13087 (target_find_memory_regions): New macro.
13088 (target_make_corefile_notes): New macro.
13089 * target.c (update_current_target): Inherit new target methods.
13090 (dummy_find_memory_regions): New place-holder method.
13091 (dummy_make_corefile_notes): New place-holder method.
13092 (init_dummy_target): Initialize new dummy target vectors.
13093 * exec.c (exec_set_find_memory_regions): New function.
13094 Allow the exec_ops vector for memory regions to be taken over.
13095 (exec_make_note_section): New function, target vector method.
13096 * defs.h (exec_set_find_memory_regions): Export prototype.
13097 * procfs.c (proc_find_memory_regions): New function, corefile method.
13098 (procfs_make_note_section): New function, corefile method.
13099 (init_procfs_ops): Set new target vector pointers.
13100 (find_memory_regions_callback): New function.
13101 (procfs_do_thread_registers): New function.
13102 (procfs_corefile_thread_callback): New function.
13103 * sol-thread.c (sol_find_memory_regions): New function.
13104 (sol_make_note_section): New function.
13105 (init_sol_thread_ops): Initialize new target vectors.
13106 * inftarg.c (inftarg_set_find_memory_regions): New function.
13107 Allow to_find_memory_regions vector to be taken over.
13108 (inftarg_set_make_corefile_notes): New function.
13109 Allow to_make_corefile_notes vector to be taken over.
13110 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13111 interface layer if not target_has_execution (may be a corefile).
13112 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13113 * config/sparc/sun4sol2.mh: Ditto.
13114 * config/alpha/alpha-linux.mh: Ditto.
13115 * config/arm/linux.mh: Ditto.
13116 * config/i386/x86-64linux.mh: Ditto.
13117 * config/ia64/linux.mh: Ditto.
13118 * config/m68k/linux.mh: Ditto.
13119 * config/mips/linux.mh: Ditto.
13120 * config/powerpc/linux.mh: Ditto.
13121 * config/sparc/linux.mh: Ditto.
13123 2002-01-07 Michael Snyder <msnyder@redhat.com>
13125 * arm-linux-nat.c: Remove references to regcache.c internal data
13126 (registers[] and register_valid[]).
13128 2002-01-07 Michael Snyder <msnyder@redhat.com>
13130 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13131 so that attaching to a pid will automatically read the process's
13132 symbol file and shlibs.
13133 * Makefile.in: Add rule for linux-proc.o.
13134 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13135 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13136 * config/arm/linux.mh: Ditto.
13137 * config/i386/linux.mh: Ditto.
13138 * config/i386/x86-64linux.mh: Ditto.
13139 * config/ia64/linux.mh: Ditto.
13140 * config/m68k/linux.mh: Ditto.
13141 * config/mips/linux.mh: Ditto.
13142 * config/powerpc/linux.mh: Ditto.
13143 * config/sparc/linux.mh: Ditto.
13145 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13147 * win32-nat.c: Add i386-tdep.h dependency.
13149 2002-01-07 Michael Snyder <msnyder@redhat.com>
13151 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13152 instead of bfd_get_arch_size. Don't bail out just because
13153 there's no exec_bfd.
13155 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13156 * p-valprint.c (pascal_object_print_value): Ditto.
13157 * somread.c (som_symtab_read): Ditto.
13158 * symfile.c (simple_free_overlay_region_table): Ditto.
13159 * valops.c (value_assign): Ditto.
13161 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13162 use tilde_expand and strerror for opening save-tracepoints file.
13164 * thread-db.c (thread_db_new_objfile): Indendation fix.
13166 * infptrace.c (GDB_MAX_ALLOCA): New define.
13167 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13168 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13169 can be overridden with whatever value is appropriate to the host).
13170 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13171 alloca to allocate potentially large buffer.
13172 * rs6000-nat.c (child_xfer_memory): Ditto.
13173 * symm-nat.c (child_xfer_memory): Ditto.
13174 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13176 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13178 From Nick Clifton <nickc@redhat.com>
13179 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13181 2002-01-07 Michael Snyder <msnyder@redhat.com>
13183 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13184 Don't use exec_bfd if it's NULL.
13186 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13188 * valops.c (value_arg_coerce): Fix formatting.
13190 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13192 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13193 * gnu-nat.c: Ditto.
13195 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13197 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13198 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13199 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13200 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13201 z8k-coff have not been multi-arched. Update z8k-coff build
13204 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13206 * MAINTAINERS: Mark a29k target as obsolete.
13207 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13208 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13210 * NEWS: Note that a29k targets are obsolete.
13211 * a29k-tdep.c: Mark as obsolete.
13212 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13213 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13214 a29k-*-vxworks* targets as obsolete.
13215 * remote-adapt.c: Obsolete.
13216 * remote-eb.c: Obsolete.
13217 * remote-mm.c: Obsolete.
13218 * remote-udi.c: Obsolete.
13219 * config/a29k/a29k-udi.mt: Obsolete.
13220 * config/a29k/a29k.mt: Obsolete.
13221 * config/a29k/tm-a29k.h: Obsolete.
13222 * config/a29k/tm-vx29k.h: Obsolete.
13223 * config/a29k/vx29k.mt: Obsolete.
13225 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13227 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13228 with BFD_ENDIAN_BIG.
13230 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13232 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13233 * configure, config.in: Re-generate.
13234 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13235 * defs.h: Do not include <endian.h>.
13237 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13239 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13240 * config.in: Regenerate.
13241 * configure.in: Update copyright years.
13242 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13243 * configure: Regenerate.
13244 * i386bsd-nat.c: Update copyright years.
13245 (fill_gregset): Use regcache_collect.
13246 (fetch_inferior_registers): Only fetch integer registers
13247 if requested to do so. Add support for XMM registers
13248 using PT_GETXMMREGS.
13249 (store_inferior_registers): Only store integer registers
13250 if requested to do so. Add support for XMM registers
13251 using PT_SETXMMREGS.
13252 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13253 (store_inferior_registers): Remove.
13254 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13255 (fetch_elfcore_registers): New function.
13256 (i386nbsd_elfcore_fns): New.
13257 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13258 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13260 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13261 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13262 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13263 * config/i386/tm-nbsd.h: Update copyright years.
13264 (HAVE_SSE_REGS): Define.
13265 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13266 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13267 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13268 (SIGCONTEXT_PC_OFFSET): Remove.
13269 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13271 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13273 * configure.tgt: Remove powerpc-*-macos* target.
13274 * config/m68k/xm-mpw.h: Delete file.
13275 * config/xm-mpw.h: Delete file.
13276 * ser-mac.c: Delete file.
13277 * mpw-make.sed: Delete file.
13278 * mpw-config.in: Delete file.
13279 * mac-xdep.c: Delete file.
13280 * mac-gdb.r: Delete file.
13281 * mac-defs.h: Delete file.
13282 * mac-nat.c: Delete file.
13283 * config/powerpc/macos.mh: Delete file.
13284 * config/powerpc/macos.mt: Delete file.
13285 * config/powerpc/nm-macos.h: Delete file.
13286 * config/powerpc/tm-macos.h: Delete file.
13287 * source.c (openp, open_source_file): Remove obsolete code.
13288 * top.c (gdb_readline): Ditto.
13289 * utils.c (query): Ditto.
13290 * event-top.c (display_gdb_prompt): Ditto.
13291 * Makefile.in (ser-mac.o): Delete obsolete target.
13294 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13296 * defs.h (BIG_ENDIAN): Delete macro definition.
13297 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13298 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13299 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13300 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13301 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13302 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13303 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13304 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13305 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13306 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13307 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13308 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13309 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13310 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13311 * gdbarch.c: Re-generate.
13313 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13315 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13318 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13320 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13322 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13324 * value.h (value_ptr): Delete typedef.
13326 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13328 * i386nbsd-nat.c: Update copyright years.
13329 Include i386-tdep.h.
13331 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13333 * stabsread.c: Update copyright years.
13335 From Debashis Mahata <debashis.mahata@wipro.com>:
13336 (read_struct_fields): Deal with Sun C compiler erroneous stab
13337 output for structs and unions.
13340 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13342 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13345 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13347 * cp-abi.c: Fix whitespace.
13348 (baseclass_offset): New wrapper function.
13349 * cp-abi.h (baseclass_offset): Add prototype.
13350 (struct cp_abi_ops): Add baseclass_offset pointer.
13352 * valops.c (vb_match): Move to...
13353 * gnu-v2-abi.c (vb_match): here.
13354 * valops.c (baseclass_offset): Move to...
13355 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13357 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13359 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13360 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13361 * hpacc-abi.c (init_hpacc_ops): Likewise.
13363 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13365 * valops.c (find_overload_match): Accept obj as a
13366 reference parameter. Update it before returning.
13367 * value.h (find_overload_match): Update prototype.
13368 * eval.c (evaluate_subexp_standard): Pass object to
13369 find_overload_match by reference.
13371 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13373 * valarith.c: Replace value_ptr with struct value pointer. Remove
13374 register attribute from value declarations.
13377 * scm-lang.c (scm_lookup_name): Ditto.
13379 2002-01-03 Michael Snyder <msnyder@redhat.com>
13381 Abstract the functionality of iterating over mapped memory
13382 regions into a general purpose iterator function.
13383 * procfs.c (iterate_over_mappings): New function, general purpose
13384 iterator for memory sections.
13385 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13386 (solib_mappings_callback): New function, callback for above.
13387 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13388 (info_mappings_callback): New function, callback for above.
13390 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13392 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13394 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13395 * i386-tdep.c: Include "elf-bfd.h".
13396 (process_note_abi_tag_sections): New function.
13397 (i386_gdbarch_init): Add code to recognize various OS/ABI
13400 * maint.c (_initialize_maint_cmds): Add missing \ in
13403 For older changes see ChangeLog-2001
13409 version-control: never