1 2004-09-01 Joel Brobecker <brobecker@gnat.com>
3 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
4 (mips_insn32_frame_cache): Inline call to find_proc_desc.
5 (find_proc_desc): Remove dead code.
7 2004-09-01 Joel Brobecker <brobecker@gnat.com>
9 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
11 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
13 * observer.sh: Add struct so_list declaration.
14 * Makefile.in: Add dependencies on observer.h for solib.c and
16 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
18 (_initialize_breakpoint): Register
19 disable_breakpoints_in_unloaded_shlib as an observer of the
20 "solib unloaded" observation event.
21 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
22 call decode_line_1 so unfound breakpoint errors are silent.
23 * solib.c (update_solib_list): When a solib is discovered to have
24 been unloaded by the program, notify all observers of the
25 "solib unloaded" observation event.
27 2004-09-01 Andrew Cagney <cagney@gnu.org>
29 * frame.c: Include "objfiles.h".
30 (inside_main_func): New function.
31 (get_prev_frame): Use new inside_main_func.
32 * Makefile.in (frame.o): Update dependencies.
33 * defs.h (inside_main_func): Delete declaration.
34 * blockframe.c (inside_main_func): Delete function.
36 2004-08-31 Jim Blandy <jimb@redhat.com>
38 * dwarf2read.c (is_vtable_name): New function, based on logic from
39 read_structure_type, but passing the correct length to strncmp,
40 and using 'sizeof' instead of 'strlen'.
41 (read_structure_type): Call it.
43 2004-08-31 Joel Brobecker <brobecker@gnat.com>
45 * config/powerpc/aix.mh: Add comment.
47 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
49 * MAINTAINERS: Add self to Write-After-Approval.
51 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
53 * MAINTAINERS: Add self to Write-After-Approval.
55 2004-08-30 Andrew Cagney <cagney@gnu.org>
57 Fix PR breakpoints/1757.
58 * infrun.c (struct execution_control_state): Replace
59 remove_breakpoints_on_following_step with
60 step_after_step_resume_breakpoint.
61 (init_execution_control_state): Update.
62 (handle_inferior_event): For signals, when stepping off a
63 breakpoint, set step_after_step_resume_breakpoint. When
64 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
65 (keep_going): Delete code handling
66 remove_breakpoints_on_following_step.
68 2004-08-29 David Lecomber <david@streamline-computing.com>
71 * language.h (enum array_ordering): New enum.
72 * language.h (struct language_defn): New la_array_ordering
74 * language.c (unknown_language_defn, auto_language_defn)
75 (local_language_defn): Ditto.
76 * ada-lang.c (ada_language_defn): Ditto.
77 * c-lang.c (c_language_defn, cplus_language_defn)
78 (asm_language_defn, minimal_language_defn): Ditto.
79 * f-lang.c (f_language_defn): Ditto.
80 * jv-lang.c (java_language_defn): Ditto.
81 * m2-lang.c (f_language_defn): Ditto.
82 * objc-lang.c (objc_language_defn): Ditto.
83 * p-lang.c (pascal_language_defn): Ditto.
84 * scm-lang.c (scm_language_defn): Ditto.
85 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
86 oriented large to small in type structure.
87 * dwarf2read.c (read_array_order): New function.
88 (read_array_type): Use read_array_order to check row/column
91 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
93 * target.c (target_resize_to_sections): Check
94 current_target.to_sections for an old value when updating.
96 2004-08-27 Joel Brobecker <brobecker@gnat.com>
98 * procfs.c (dbx_link_bpt_addr): New static global variable.
99 (dbx_link_shadow_contents): New static global variable.
100 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
101 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
103 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
104 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
106 (procfs_create_inferior): Remove syssgi syscall-exit notifications
107 after the inferior has been forked.
108 (remove_dbx_link_breakpoint): New function.
109 (dbx_link_addr): New function.
110 (insert_dbx_link_bpt_in_file): New function.
111 (insert_dbx_link_bpt_in_region): New function.
112 (insert_dbx_link_breakpoint): New function.
113 (proc_trace_syscalls_1): New function, extracted from
115 (proc_trace_syscalls): Replace extract code by call to
116 proc_trace_syscalls_1.
117 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
120 2004-08-25 Jim Blandy <jimb@redhat.com>
122 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
124 2004-08-25 Andrew Cagney <cagney@gnu.org>
126 * infrun.c (struct execution_control_state): Delete field
127 "stepping_through_sigtramp".
128 (init_execution_control_state): Do not set same.
129 (context_switch): Do not pass same to save_infrun_state and
131 * gdbthread.h (struct thread_info): Delete field
132 stepping_through_sigtramp.
133 (save_infrun_state, load_infrun_state): Delete parameter
134 stepping_through_sigtramp.
135 * thread.c (load_infrun_state, save_infrun_state): Update.
137 * infrun.c: Re-indent. Move expression operators to the beginning
138 of the line. Remove long disabled #if 0 code.
140 2004-08-24 Andrew Cagney <cagney@gnu.org>
142 * doublest.h (floatformat_ieee_quad): Rename
143 floatformat_ia64_quad.
144 * doublest.c (floatformat_ieee_quad): Rename
145 floatformat_ia64_quad.
146 (_initialize_doublest): Update.
148 2004-08-24 Jim Blandy <jimb@redhat.com>
150 * dwarf2expr.h (struct dwarf_expr_context): New members
151 'num_pieces' and 'pieces', for returning the result of an
152 expression that uses DW_OP_piece.
153 (struct dwarf_expr_piece): New struct type.
154 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
156 (free_dwarf_expr_context): Free pieces, if any.
157 (add_piece): New function.
158 (execute_stack_op): Implement DW_OP_piece.
159 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
160 expression is a list of pieces, print an error message.
161 (dwarf2_loc_desc_needs_frame): If the expression yields
162 pieces, and any piece is in a register, then we need a frame.
164 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
165 the stack until we've decided what sort of result the evaluation
166 has produced. Use separate variables, with more specific names.
168 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
170 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
171 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
172 (arm_netbsd_init_abi_common): Register them.
174 2004-08-22 Mark Kettenis <kettenis@gnu.org>
176 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
178 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
179 safe_frame_unwind_memory instead of target_read_memory.
181 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
183 (fetch_register, store_register): Remove prototypes.
184 (child_resume): Reorganize code and comments such that it is
185 grouped a bit more logically.
186 (attach): Explicitly compare errno against 0.
187 (detach): Likewise. Use perror_with_name instead of
189 * Makefile.in (infptrace.o): Update dependencies.
191 * ia64-linux-nat.c: Update copyright year.
192 (fetch_debug_register, store_debug_register)
193 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
195 * config/ia64/nm-linux.h: Update copyright year.
196 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
198 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
199 from CORE_ADDR to struct frame_info *. Use
200 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
201 (amd64_linux_sigtramp_p): Adjust for changed signature of
202 and64_linux_sigtramp_start
204 * gdb_ptrace.h: GNU/Linux.
206 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
209 * infptrace.c: Include "gdb_assert.h".
210 (PTRACE_XFER_TYPE): Remove define.
211 (offsetof): Only define if U_REGS_OFFSET isn't defined.
212 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
214 (fetch_inferior_registers, store_inferior_registers): Remove
215 redundant culry braces. Tweak comment. s/regno/regnum.
216 * Makefile.in (infptrace.o): Update dependencies.
218 * configure.in: Change test for return type of ptrace to default
219 to `long' instead of `int'.
220 * configure: Regenerate.
222 2004-08-21 Mark Kettenis <kettenis@gnu.org>
224 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
226 * configure.in: Check for ttrace function.
227 * configure, config.in: Regenerate.
229 * gdb_ptrace.h: New file.
230 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
232 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
233 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
234 (attach): Don't define PT_ATTACH.
235 (detach): Don't define PT_DETACH.
236 * Makefile.in (gdb_ptrace_h): New variable.
237 (infptrace.o): Update dependencies.
239 2004-08-16 Mark Kettenis <kettenis@gnu.org>
241 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
242 instead of `int' if not already defined.
243 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
245 * infptrace.c (call_ptrace): Revert change that replaced
246 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
248 2004-08-15 Mark Kettenis <kettenis@gnu.org>
250 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
253 * linux-nat.c (kill_inferior): Add missing third and fourth
254 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
256 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
259 * proc-why.c (proc_prettyfprint_why): Fix format string.
261 * solib-osf.c (osf_current_sos): Remove unsused label.
263 * configure.in: Add <ncurses/ncurses.h> to the list of possible
265 * configure, config.in: Regenerate.
266 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
269 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
270 * config/nm-nbsd.h: Update copyright year.
271 (PTRACE_ARG3_TYPE): Remove define.
273 * sparc-nat.c (fetch_inferior_registers)
274 (store_inferior_registers, sparc_xfer_wcookie):
275 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
277 * alphabsd-nat.c (fetch_inferior_registers):
278 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
280 * amd64bsd-nat.c (fetch_inferior_registers)
281 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
283 * armnbsd-nat.c: Update copyright year.
284 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
285 (store_register, store_regs, store_fp_register, store_fp_regs):
286 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
287 * hppabsd-nat.c (fetch_inferior_registers)
288 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
290 * i386bsd-nat.c (fetch_inferior_registers)
291 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
292 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
293 * m68kbsd-nat.c (fetch_inferior_registers)
294 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
296 * m88kbsd-nat.c (fetch_inferior_registers)
297 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
299 * mipsnbsd-nat.c: Update copyright year.
300 (fetch_inferior_registers, store_inferior_registers):
301 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
302 * ns32knbsd-nat.c: Update copyright year.
303 (fetch_inferior_registers, store_inferior_registers):
304 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
305 * ppcnbsd-nat.c (fetch_inferior_registers):
306 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
308 * ppcobsd-nat.c (fetch_inferior_registers):
309 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
311 * shnbsd-nat.c: Update copyright year.
312 (fetch_inferior_registers, store_inferior_registers):
313 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
314 * vaxbsd-nat.c (fetch_inferior_registers)
315 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
318 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
320 * infptrace.c (call_ptrace, child_resume, attach, detach)
321 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
322 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
323 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
326 2004-08-14 Mark Kettenis <kettenis@gnu.org>
328 * defs.h: Remove out-of-date comment.
329 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
330 [!GETENV_PROVIDED] (getenv): Remove prototype.
332 * standalone.c: Remove file.
333 * Makefile.in (standalone.o): Remove dependency.
335 * i386-linux-nat.c (dummy_sse_values): Remove function and
337 (i386_linux_dr_get): Fix typo in comment.
338 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
340 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
342 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
344 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
347 2004-08-13 Mark Kettenis <kettenis@gnu.org>
349 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
350 parenthesis in definition.
351 * configure: Regenerated.
353 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
355 * PROBLEMS: Mention build/1411.
357 2004-08-09 Robert Millan <robertmh@gnu.org>
359 Committed by Nathanael Nerode.
360 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
361 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
363 2004-08-12 Andrew Cagney <cagney@gnu.org>
365 * NEWS: Mention fixes in GDB 6.2.1.
366 * PROBLEMS: Remove mention of mips-irix.
368 2004-08-11 Joel Brobecker <brobecker@gnat.com>
370 * config/powerpc/xm-aix.h: Delete.
371 * config/powerpc/aix.mh (MH_FILE): Remove.
372 * config/powerpc/aix432.mh (MH_FILE): Remove.
374 2004-08-11 Joel Brobecker <brobecker@gnat.com>
376 * config/powerpc/aix.mh: Remove obsolete comment.
377 * config/powerpc/aix432.mh: Likewise.
379 2004-08-11 Joel Brobecker <brobecker@gnat.com>
381 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
383 2004-08-11 Joel Brobecker <brobecker@gnat.com>
385 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
386 this file is now empty.
387 * config/xm-aix4.h: Remove, this file is no longer included
390 2004-08-11 Joel Brobecker <brobecker@gnat.com>
392 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
393 that file is now empty.
394 (termdef): Remove prototype, function no longer used.
396 2004-08-11 Joel Brobecker <brobecker@gnat.com>
398 * doc/gdbint.texinfo (Host Definition): Remove documentation
399 for USE_O_NOCTTY, no longer used.
400 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
401 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
403 2004-08-11 Joel Brobecker <brobecker@gnat.com>
405 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
406 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
407 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
409 2004-08-11 Mark Kettenis <kettenis@gnu.org>
411 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
412 instead of FIVE_ARG_PTRACE.
414 * inflow.c (O_NOCTTY): Define to zero if not already defined.
415 (new_tty): Use O_NOCTTY unconditionally.
417 2004-08-10 Mark Kettenis <kettenis@gnu.org>
419 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
420 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
423 2004-08-10 Joel Brobecker <brobecker@gnat.com>
425 * xcoff_symfile_finish: Replace last call to xmfree by call
428 2004-08-10 Andrew Cagney <cagney@gnu.org>
430 * main.c (captured_main): Delete call to init_malloc.
431 * defs.h (init_malloc): Delete declaration.
432 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
433 (init_malloc): Delete functions.
435 * defs.h (xmfree): Delete.
436 * utils.c (xmfree): Delete function.
437 (xfree): Inline calls to xmfree and mfree.
438 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
439 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
440 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
441 * somread.c (som_symfile_finish): Ditto.
442 * objfiles.c (allocate_objfile, free_objfile):
443 * nlmread.c (nlm_symfile_finish): Ditto.
444 * hpread.c (hpread_symfile_finish): Ditto.
445 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
446 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
447 * coffread.c (coff_symfile_finish): Ditto.
449 * defs.h (xmcalloc): Delete declaration.
450 * utils.c (xmcalloc): Delete.
451 (xcalloc): Inline calls to xmcalloc and mcalloc.
452 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
454 * symtab.c (create_demangled_names_hash): Ditto.
456 * defs.h (xmrealloc): Delete.
457 * utils.c (xmrealloc): Delete.
458 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
459 * symmisc.c (extend_psymbol_list): Use xrealloc.
460 * source.c (find_source_lines): Ditto.
461 * hpread.c (hpread_lookup_type): Ditto.
462 * dbxread.c (add_bincl_to_list): Ditto.
464 * utils.c (xmmalloc): Delete.
465 (xmalloc): Inline xmmalloc and mmalloc calls.
466 (msavestring): Use xmalloc.
467 * defs.h (xmmalloc): Delete declaration.
468 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
470 * symmisc.c (extend_psymbol_list): Ditto.
471 * symfile.c (init_psymbol_list): Ditto.
472 * source.c (find_source_lines): Ditto.
473 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
474 * elfread.c (elf_symtab_read): Ditto.
475 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
476 * coffread.c (coff_symfile_init): Ditto.
478 2004-08-10 David Carlton <carlton@bactrian.org>
480 * MAINTAINERS: Remove David Carlton from c++ testsuite
483 2004-08-10 Jerome Guitton <guitton@gnat.com>
485 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
486 print a line feed before the prompt.
488 2004-08-10 Mark Kettenis <kettenis@gnu.org>
490 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
492 2004-08-09 Joel Brobecker <brobecker@gnat.com>
494 General cleanup of the AIX xm include file:
495 * config/xm-aix4.h (fd_set): Remove undefine.
496 Remove include of <sys/select.h>.
497 (HAVE_TERMIO): Remove define.
499 (NULL): Remove redefine.
500 (alloca): Remove #pragma.
501 (vfork): Remove define.
503 (SIGWINCH_HANDLER): Remove.
504 (SIGWINCH_HANDLER_BODY): Remove.
506 2004-08-09 Mark Kettenis <kettenis@gnu.org>
508 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
509 GDB_OSABI_OPENBSD_ELF.
511 2004-08-07 Robert Millan <robertmh@gnu.org>
513 * bsd-kvm.c: Check for nlist.h before including it.
515 2004-08-09 Mark Kettenis <kettenis@gnu.org>
517 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
518 sigcontext' offset consistency checks for ancient BSD.
520 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
522 * configure.in: Check for <sys/types.h>. Check return and
523 argument types of ptrace.
524 * configure, config.in: Regenerate.
526 2004-08-09 Jim Blandy <jimb@redhat.com>
528 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
529 rs6000_register_sim_regno): Doc fixes.
531 2004-08-08 Joel Brobecker <brobecker@gnat.com>
533 * mips-tdep.c: Include "floatformat.h".
534 (n32n64_floatformat_always_valid): New function.
535 (floatformat_n32n64_long_double_big): New constant.
536 (mips_gdbarch_init): Set size and format of long double
537 for N32 and N64 ABIs.
538 * Makefile.in (mips-tdep.o): Update dependencies.
540 2004-08-08 Andrew Cagney <cagney@gnu.org>
542 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
543 print. Improve script's error messages.
544 * gdbarch.h: Re-generate.
546 * gdbarch.sh (pformat): New function.
547 (float_format, double_format, long_double_format): List with bit
548 members. Use pformat when printing.
549 * gdbarch.c, gdbarch.h: Re-generate.
551 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
553 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
554 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
555 (ppcnbsd_supply_pcb): New function.
556 (_initialize_ppcnbsd_nat): New prototype and function.
557 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
558 (LOADLIBES): New variable.
559 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
561 2004-08-08 Andrew Cagney <cagney@gnu.org>
563 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
564 (builtin_type_ieee_double, builtin_type_ia64_quad)
565 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
566 BE/LE floating-point types.
567 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
568 (builtin_type_ieee_double, builtin_type_ia64_quad)
569 (builtin_type_ia64_spill): Declare.
570 * doublest.c (_initialize_doublest, floatformat_ieee_single)
571 (floatformat_ieee_double, floatformat_arm_ext)
572 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
573 of LE/BE floatformats.
574 * doublest.h: (struct floatformat, floatformat_ieee_single)
575 (floatformat_ieee_double, floatformat_arm_ext)
576 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
578 2004-08-08 Mark Kettenis <kettenis@gnu.org>
580 * i386gnu-nat.c (gnu_store_registers): Fix typo.
582 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
583 instead of regcache_raw_supply when storing the registers.
585 * i386gnu-nat.c: Update copyright year.
586 (gnu_store_registers): Don't use deprecated_registers and
587 deprecated_registers_valid. Use regcache_valid_p and
588 regcache_raw_supply instead.
590 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
593 * procfs.c (procfs_pid_to_str): Remove redundant and unused
594 variables. Incapitalized "process".
596 * configure.in: Add cursesX to the list of possible curses libs.
597 Add cursesX.h to the list of possible curses headers.
598 * configure, config.in: Regenerate.
600 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
602 * configure.in: Test for struct lwp in <sys/lwp.h>.
603 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
604 the offset of l_addr in struct lwp.
606 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
608 * bsd-kvm.c: Include "gdbcore.h"
609 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
611 2004-08-07 Andrew Cagney <cagney@gnu.org>
613 * gdbtypes.c (build_flt, build_complex): New functions.
614 (gdbtypes_post_init): Use.
616 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
618 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
619 through to builtin_type_uint128.
621 * c-exp.y: Use builtin_type function to obtain builtin types.
623 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
625 * gdbtypes.c (gdbtypes_post_init): Update.
626 (build_gdbtypes): Move initialization of builtin_type_int0
627 through to builtin_type_uint128 from here ...
628 (_initialize_gdbtypes): ... to here.
629 * d10v-tdep.c (d10v_register_type): Update.
631 * doublest.c: Update copyright.
632 (floatformat_from_length): Call error when floatformat is NULL.
633 (extract_floating_by_length): Remove NULL fmt check.
634 (store_floating_by_length): Ditto.
636 2004-08-07 Andrew Cagney <cagney@gnu.org>
638 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
639 that the register is valid.
641 2004-08-05 Mark Kettenis <kettenis@chello.nl>
643 * i386-linux-tdep.c (i386_linux_sigtramp_start)
644 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
645 struct frame_info *. Use safe_frame_unwind_memory instead of
646 deprecated_read_memory_nobpt.
647 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
648 changed signature of i386_linux_sigtramp_start and
649 i386_linux_rt_sigtramp_start.
651 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
652 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
653 instead of deprecated_read_memory_nobpt.
654 (i386nbsd_sigtramp_p): Adjust for changed signature of
655 i386nbsd_sigtramp_offset.
657 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
658 safe_frame_unwind_memory instead of target_read_memory.
660 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
662 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
663 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
664 (_initialize_kernel_u_addr): Remove prototype and function.
665 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
667 * xcoffread.c: Likewise.
669 2004-08-06 Mark Kettenis <kettenis@gnu.org>
671 * vax-nat.c: New file.
672 * vaxbsd-nat.c: Tweak comment.
673 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
675 (vax-nat.o): New dependency.
676 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
677 (vax-*-ultrix2*): Remove.
678 * config/vax/vax.mh: New file.
679 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
680 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
681 (vax_register_u_addr): New prototype.
682 (REGISTER_U_ADDR): Define using vax_register_u_addr.
683 * config/vax/vaxult2.mh: Remove file.
684 * config/vax/vaxult.mh: Remove file.
685 * config/vax/vaxbsd.mh: Remove file.
686 * config/vax/vax.mt (TM_FILE): Remove.
687 * config/vax/tm-vaxbsd.h: Remove file.
689 2004-08-06 Joel Brobecker <brobecker@gnat.com>
691 * aix-thread.c (get_signaled_thread): New function.
692 (iter_trap): Delete, no longer used.
693 (iter_tid): New function.
694 (pd_update): Find the thread that received the SIGTRAP signal
695 by first locating the kernel thread, and then finding its
698 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
700 * lin-lwp.c (child_wait): Continue inferior after processing
701 PTRACE_EVENT_CLONE event.
703 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
705 * MAINTAINERS: Add self to Write-After-Approval.
707 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
709 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
710 libunwind-xxxx.so" where xxxx is UNW_TARGET.
712 2004-08-05 Andrew Cagney <cagney@gnu.org>
714 * config/xm-sysv4.h: Delete file.
715 * config/mips/xm-irix5.h: Delete file.
716 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
717 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
718 * config/ia64/xm-aix.h: Delete file.
719 * config/ia64/aix.mh (XM_FILE): Delete.
720 * config/pa/xm-hppah.h: Delete file.
721 * config/pa/hpux11w.mh (XM_FILE): Delete.
722 * config/pa/hpux11.mh (XM_FILE): Delete.
723 * config/pa/hpux1020.mh (XM_FILE): Delete.
724 * config/pa/hppahpux.mh (XM_FILE): Delete.
726 * config/alpha/xm-alphalinux.h: Delete file.
727 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
728 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
729 * config/alpha/xm-alphaosf.h: Delete file.
730 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
731 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
732 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
733 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
735 * config/i386/xm-i386v.h: Delete file.
736 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
737 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
738 * config/i386/xm-i386sco.h: Delete file.
739 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
740 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
741 * config/i386/xm-i386v4.h: Delete file.
742 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
743 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
744 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
745 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
747 * config/vax/xm-vax.h: Delete file.
748 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
749 * config/vax/xm-vaxult2.h: Delete file.
750 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
751 * config/vax/vaxult2.mh (XM_FILE): Delete.
752 * config/vax/xm-vaxult.h: Delete file.
753 * config/vax/vaxult.mh (XM_FILE): Delete.
754 * config/vax/xm-vaxbsd.h: Delete file.
755 * config/vax/vaxbsd.mh (XM_FILE): Delete.
757 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
758 * gdbarch.h, gdbarch.c: Re-generate.
759 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
760 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
761 * frame.h: Delete deprecated_read_fp from comments.
762 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
763 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
765 2004-08-04 Mark Kettenis <kettenis@gnu.org>
767 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
768 trampoline in OpenBSD 3.5-current.
770 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
773 * Makefile.in: Remove embedded page breaks.
775 2004-08-04 Jim Blandy <jimb@redhat.com>
777 * regcache.c (regcache_raw_read): Assert that, after calling
778 target_fetch_registers, the register we're reading is cached.
780 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
781 a call to 'internal_error', with a more helpful error message.
782 * rs6000-tdep.c (e500_pseudo_register_read,
783 e500_pseudo_register_write, rs6000_store_return_value): Same.
785 2004-08-04 Andrew Cagney <cagney@gnu.org>
787 * Makefile.in: Update dependencies.
789 2004-08-04 Jim Blandy <jimb@redhat.com>
791 Change the layout of the PowerPC E500 raw register cache to allow
792 the lower 32-bit halves of the GPRS to be their own raw registers,
794 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
795 add ppc_ev0_upper_regnum flag.
796 * rs6000-tdep.c: #include "reggroups.h".
797 (spe_register_p): Recognize the ev upper half registers as SPE
799 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
801 (e500_move_ev_register): New function.
802 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
803 vector registers are the pseudo-registers now, formed by splicing
804 together the gprs and the upper-half registers.
805 (e500_register_reggroup_p): New function.
808 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
809 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
811 (registers_e500): Rearrange register set so that the raw register
812 set contains 32-bit GPRs and upper-half registers, and the SPE
813 vector registers become pseudo-registers.
814 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
815 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
816 register numbers are now the same for the E500 as they are for
817 other PowerPC variants. Register e500_register_reggroup_p as the
818 register group function for the E500.
819 * Makefile.in (rs6000-tdep.o): Update dependencies.
821 Adapt PPC E500 native support to the new raw regcache layout.
822 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
823 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
824 (fetch_spe_register, store_spe_register): Handle fetching/storing
825 all the SPE registers at once, if regno == -1. These now take
826 over the job of fetch_spe_registers and store_spe_registers.
827 (fetch_spe_registers, store_spe_registers): Deleted.
828 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
829 unconditionally; they're always raw. Fetch/store SPE upper half
830 registers, if present, instead of ev registers.
831 (fetch_register, store_register): Remove sanity checks: gprs are
832 never pseudo-registers now, so we never need to even mention any
833 registers that are ever pseudoregisters.
835 Use a fixed register numbering when communicating with the PowerPC
837 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
838 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
839 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
841 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
842 init_sim_regno_table.
843 * Makefile.in (gdb_sim_ppc_h): New variable.
844 (rs6000-tdep.o): Update dependencies.
846 2004-08-02 Andrew Cagney <cagney@gnu.org>
848 * cris-tdep.c (cris_register_size): Restore function, still used
851 * gdbarch.sh (deprecated_target_read_fp)
852 (deprecated_frame_locals_address, deprecated_frame_args_address)
853 (deprecated_frame_chain_valid, deprecated_frame_chain)
854 (deprecated_init_extra_frame_info, deprecated_pop_frame)
855 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
856 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
857 * gdbarch.h, gdbarch.c: Re-generate.
858 * regcache.c (deprecated_read_fp): Do not call
859 DEPRECATED_TARGET_READ_FP_P.
860 * infcmd.c (default_print_registers_info): Do not call
861 DEPRECATED_DO_REGISTERS_INFO.
862 * frame-base.c (default_frame_locals_address): Do not call
863 DEPRECATED_FRAME_LOCALS_ADDRESS.
864 (default_frame_args_address): Do not call
865 DEPRECATED_FRAME_ARGS_ADDRESS.
867 * gdbarch.sh (deprecated_register_raw_size)
868 (deprecated_register_virtual_size:int): Delete.
869 * gdbarch.h, gdbarch.c: Re-generate.
870 * cris-tdep.c (cris_register_size): Delete.
871 (cris_gdbarch_init): Update.
872 * alpha-tdep.c (alpha_register_raw_size)
873 (alpha_register_virtual_size): Delete.
874 (alpha_gdbarch_init): Update.
876 * gdbarch.sh (deprecated_register_virtual_type)
877 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
878 (deprecated_dummy_write_sp): Delete.
879 * gdbarch.h, gdbarch.c: Re-generate.
881 * gdbarch.sh (deprecated_register_bytes): Delete.
882 * gdbarch.h, gdbarch.c: Re-generate.
883 * regcache.c (deprecated_register_bytes): New function.
884 * regcache.h (deprecated_register_bytes): Declare.
885 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
886 * v850-tdep.c (v850_gdbarch_init): Update.
887 * sh64-tdep.c (sh64_gdbarch_init): Update.
888 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
889 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
890 * mcore-tdep.c (mcore_gdbarch_init): Update.
891 * cris-tdep.c (cris_gdbarch_init): Update.
892 * arm-tdep.c (arm_gdbarch_init): Update.
893 * remote.c (init_remote_state): Update.
894 * remote-vx.c (vx_prepare_to_store): Update.
895 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
896 * irix5-nat.c (fetch_core_registers): Update.
897 * cris-tdep.c (cris_register_bytes_ok): Update.
898 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
900 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
901 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
902 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
903 (mips_insn16_frame_base_address, mips_insn16_frame_base)
904 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
905 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
906 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
907 (mips_insn32_frame_base_address, mips_insn32_frame_base)
908 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
909 with mips_insn16 and mips_insn32.
911 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
912 * rs6000-tdep.c (rs6000_push_dummy_call)
913 (rs6000_extract_return_value): Use register_size.
914 * xstormy16-tdep.c (xstormy16_get_saved_register)
915 (xstormy16_extract_return_value): Ditto.
916 * valops.c (value_assign): Ditto.
917 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
918 * v850-tdep.c (v850_extract_return_value): Ditto.
919 * tracepoint.c (collect_symbol): Ditto.
920 * target.c (debug_print_register): Ditto.
921 * stack.c (frame_info): Ditto.
922 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
923 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
924 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
925 (store_register_using_P): Ditto.
926 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
927 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
928 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
929 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
930 * regcache.c (deprecated_read_register_bytes)
931 (deprecated_write_register_bytes, read_register)
932 (write_register): Ditto.
933 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
934 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
935 * monitor.c (monitor_supply_register, monitor_fetch_register)
936 (monitor_store_register): Ditto.
937 * mn10300-tdep.c (mn10300_pop_frame_regular)
938 (mn10300_print_register): Ditto.
939 * mipsv4-nat.c (fill_fpregset): Ditto.
940 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
941 (mips64_fill_fpregset): Ditto.
942 * mi/mi-main.c (register_changed_p, get_register)
943 (mi_cmd_data_write_register_values): Ditto.
944 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
945 * irix5-nat.c (fill_gregset, fetch_core_registers):
946 * infrun.c (write_inferior_status_register): Ditto.
947 * infptrace.c (fetch_register, store_register): Ditto.
948 * infcmd.c (default_print_registers_info): Ditto.
949 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
950 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
951 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
952 * hpux-thread.c (hpux_thread_fetch_registers)
953 (hpux_thread_store_registers): Ditto.
954 * hppah-nat.c (store_inferior_registers, fetch_register):
955 * findvar.c (value_from_register): Ditto.
956 * dve3900-rom.c (fetch_bitmapped_register):
957 * cris-tdep.c (cris_gdbarch_init): Ditto.
958 * alpha-tdep.h: Ditto.
959 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
961 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
962 DEPRECATED_REGISTER_RAW_SIZE from comments.
963 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
964 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
965 DEPRECATED_REGISTER_RAW_SIZE.
966 * findvar.c (value_of_register): Simplify by assuming that the
967 registers raw and virtual sizes are identical.
968 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
970 * arch-utils.c (generic_register_size): Simplify by assuming
973 * regcache.c (legacy_read_register_gen, real_register)
974 (legacy_write_register_gen): Delete, not used.
976 * regcache.c (struct regcache_descr): Delete legacy_p.
977 (init_legacy_regcache_descr): Delete function.
978 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
979 Do not use deprecated register functions.
980 (regcache_raw_read, deprecated_write_register_gen):
981 (deprecated_read_register_gen, regcache_raw_write): Delete code
982 predicated on legacy_p.
983 (register_size): Delete check against register raw size.
985 * cris-tdep.c (cris_register_type): Replace
986 cris_register_virtual_type.
987 (cris_gdbarch_init): Update, set register_type.
989 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
990 * gdbarch.h, gdbarch.c: Re-generate.
991 * arm-tdep.c (arm_frameless_function_invocation): Delete.
992 (arm_gdbarch_init) Do not set frameless function invocation.
993 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
994 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
995 * frv-tdep.c (frv_frameless_function_invocation): Delete.
996 (frv_gdbarch_init): Do not set frameless function invocation.
997 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
998 * sh-tdep.c (sh_gdbarch_init): Ditto.
999 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1000 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1001 * avr-tdep.c (avr_gdbarch_init): Ditto.
1003 * blockframe.c (legacy_frame_chain_valid): Delete function.
1005 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1006 and pc. Update comments.
1007 (pc_in_dummy_frame): Delete function.
1008 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1010 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1011 call_hi, top and pc, use the id.
1012 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1014 * dummy-frame.c: Include "gdb_string.h".
1015 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1016 (generic_save_dummy_frame_tos): Delete.
1017 (dummy_frame_push): New function, replaces above.
1018 * dummy-frame.h: Update copyright.
1019 (dummy_frame_push): Declare.
1020 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1021 (generic_save_call_dummy_addr): Delete declarations.
1022 * infcall.c: Include "dummy-frame.h".
1023 (call_function_by_hand): Add locals caller_regcache,
1024 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1025 with call to frame_save_as_regcache plus cleanup. Delete calls to
1026 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1027 Move clear_proceed_status to just before the resume, add call to
1028 dummy_frame_push (discard cleanup).
1029 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1030 (dummy-frame.o): Add $(gdb_string_h).
1032 2004-08-01 Andrew Cagney <cagney@gnu.org>
1034 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1035 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1036 * dummy-frame.c (find_dummy_frame): Delete.
1037 (struct dummy_frame_cache, dummy_frame_sniffer)
1038 (dummy_frame_prev_register, dummy_frame_this_id)
1039 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1040 frame unwinder using a dummy_frame_cache.
1042 2004-08-01 Andrew Cagney <cagney@gnu.org>
1044 * frame.h (frame_save_as_regcache): Declare.
1045 * frame.c (frame_save_as_regcache): New function.
1046 (do_frame_read_register): Replace do_frame_unwind_register.
1047 (frame_pop): Use frame_save_as_regcache.
1048 * dummy-frame.c (generic_push_dummy_frame): Use
1049 frame_save_as_regcache.
1051 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1053 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1054 file as included until we record the first line in the linetable.
1056 2004-08-01 Andrew Cagney <cagney@gnu.org>
1058 * frame.h (deprecated_pop_dummy_frame)
1059 (deprecated_read_register_dummy)
1060 (deprecated_generic_find_dummy_frame): Delete.
1061 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1062 (deprecated_read_register_dummy)
1063 (deprecated_find_dummy_frame_regcache)
1064 (discard_innermost_dummy)
1065 (deprecated_pop_dummy_frame): Delete.
1066 (dummy_frame_this_id): Simplify.
1067 (struct dummy_frame): Delete "fp" and "sp".
1068 (find_dummy_frame): Simplify.
1069 (generic_push_dummy_frame): Do not set "fp" or "sp".
1070 (fprint_dummy_frames): Do not print "fp" and "sp"
1072 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1074 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1075 (struct i386_insn): New structure.
1076 (i386_match_insn): New function.
1077 (i386_frame_setup_skip_insns): New variable.
1078 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1079 array i386_frame_setup_insns of instructions that should be
1080 skipped inside the frame setup sequence.
1082 2004-08-01 Andrew Cagney <cagney@gnu.org>
1084 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1085 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1086 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1087 * stack.c (frame_info): Delete references to
1088 DEPRECATED_FRAME_INIT_SAVED_REGS and
1089 deprecated_get_frame_saved_regs.
1090 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1091 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1092 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1093 (frame_unwind_register_signed)
1094 (frame_unwind_register_unsigned)
1095 (frame_unwind_unsigned_register): Use register_size.
1096 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1097 (deprecated_frame_xmalloc_with_cleanup)
1098 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1099 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1101 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1102 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1103 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1104 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1106 * infcall.c (call_function_by_hand): Do not use
1107 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1108 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1109 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1110 DEPRECATED_STACK_ALIGN.
1112 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1114 Committed by Andrew Cagney.
1115 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1117 2004-08-01 Andrew Cagney <cagney@gnu.org>
1119 * mips-tdep.c (mips16_frame_cache)
1120 (mips16_frame_this_id, mips16_frame_prev_register)
1121 (mips16_frame_unwind, mips16_frame_sniffer)
1122 (mips16_frame_base_address, mips16_frame_base)
1123 (mips16_frame_base_sniffer, mips32_frame_cache)
1124 (mips32_frame_this_id, mips32_frame_prev_register)
1125 (mips32_frame_unwind, mips32_frame_sniffer)
1126 (mips32_frame_base_address, mips32_frame_base)
1127 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1128 separate heuristic mips16 and mips32 unwinders.
1129 (mips_stub_frame_cache, mips_stub_frame_this_id)
1130 (mips_stub_frame_prev_register)
1131 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1132 (mips_stub_frame_base_address, mips_stub_frame_base)
1133 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1134 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1135 match true mdebug frames.
1136 (non_heuristic_proc_desc): Add forward declaration.
1138 2004-08-01 Andrew Cagney <cagney@gnu.org>
1140 * config/mips/tm-irix6.h: Delete file.
1141 * config/mips/tm-irix5.h: Delete file.
1142 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1143 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1145 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1146 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1147 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1148 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1149 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1150 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1151 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1152 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1153 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1154 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1155 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1156 (TARGET_SIGNAL_RAW_VALUES): Delete.
1157 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1159 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1160 (TARGET_HW_WATCH_LIMIT): Delete.
1161 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1162 * minimon.h: Delete file.
1164 * trad-frame.c (trad_frame_get_this_base)
1165 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1167 * trad-frame.h (trad_frame_set_this_base)
1168 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1170 2004-07-31 Andrew Cagney <cagney@gnu.org>
1172 * trad-frame.c (trad_frame_get_prev_register): Rename
1173 trad_frame_get_prev_register.
1174 * vax-tdep.c (vax_frame_prev_register): Update.
1175 * trad-frame.h: Update.
1176 * trad-frame.c (trad_frame_get_register): Update.
1177 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1178 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1180 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1181 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1183 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1185 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1187 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1189 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1191 * s390-tdep.c (s390_frame_prev_register)
1192 (s390_stub_frame_prev_register)
1193 (s390_sigtramp_frame_prev_register): Update.
1194 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1195 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1196 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1197 * m88k-tdep.c (m88k_frame_prev_register)
1198 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1199 * m32r-tdep.c (m32r_frame_prev_register): Update.
1200 * hppa-tdep.c (hppa_frame_prev_register_helper)
1201 * frv-tdep.c (frv_frame_prev_register): Update.
1202 * d10v-tdep.c (d10v_frame_prev_register): Update.
1203 * cris-tdep.c (cris_frame_prev_register): Update.
1204 * avr-tdep.c (avr_frame_prev_register): Update.
1205 * arm-tdep.c (arm_prologue_prev_register)
1206 (arm_sigtramp_prev_register): Update.
1208 2004-07-31 Andrew Cagney <cagney@gnu.org>
1210 * frame.h (legacy_saved_regs_unwind)
1211 (legacy_frame_chain_valid, legacy_frame_p)
1212 (enum frame_type): Delete UNKNOWN_FRAME.
1213 * dummy-frame.c (dummy_frame_this_id): Simplify.
1214 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1215 * frame.c (struct frame_info): Delete the field "type".
1216 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1217 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1218 (legacy_saved_regs_unwind, legacy_frame_p)
1219 (frame_type_from_pc): Delete.
1220 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1221 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1223 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1225 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1228 * mips-nat.c: Remove file.
1229 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1230 (mips-nat.o): Remove dependency.
1232 * infptrace.c: Update copyright year.
1233 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1234 explicitly setting the buffer to all zeroes.
1236 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1237 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1239 2004-07-30 Andrew Cagney <cagney@gnu.org>
1241 * GDB 6.2 released from gdb_6_2-branch.
1243 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1245 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1247 * exec.c (exec_file_attach):
1248 * nto-tdep.c (nto_find_and_open_solib):
1249 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1250 * solib.c (solib_open):
1251 * somsolib.c (som_solib_sizeof_symbol_table):
1252 * source.c (is_regular_file, openp, open_source_file):
1253 * symfile.c (symfile_bfd_open):
1254 * wince.c (upload_to_device): Differentiate between the search for
1255 binary and source files.
1257 2004-07-30 Andrew Cagney <cagney@gnu.org>
1259 * complaints.c (_initialize_complaints): Pass NULL to
1260 add_setshow_zinteger_cmd for help_doc.
1261 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1263 2004-07-30 Andrew Cagney <cagney@gnu.org>
1266 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1267 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1268 $(PACKAGE).pot and update-po.
1269 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1270 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1271 (update-po): New rules.
1272 (localedir): Define using autoconf.
1273 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1274 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1275 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1276 * configure.in: Generate CATALOGS and LINGUAS from contents of
1277 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1278 * configure: Re-generate.
1279 * po/gdbtext: New file
1281 2004-07-30 Jerome Guitton <guitton@gnat.com>
1283 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1286 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1288 * dwarf2read.c (read_file_scope): Set producer if attribute
1290 (struct dwarf2_cu): Added new member producer.
1292 2004-07-30 Jerome Guitton <guitton@gnat.com>
1294 * inflow.c (kill_command): release file handles in BFD.
1295 * exec.c (exec_file_attach): Ditto.
1296 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1298 2004-07-29 Andrew Cagney <cagney@gnu.org>
1300 * PROBLEMS (mips-irix): Note that it is broken.
1302 2004-07-29 Andrew Cagney <cagney@gnu.org>
1304 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1305 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1307 * config/xm-nbsd.h: Delete file.
1308 * config/arm/xm-nbsd.h: Delete file.
1309 * config/i386/xm-nbsd.h: Delete file.
1310 * config/ns32k/xm-nbsd.h: Delete file.
1311 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1312 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1313 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1314 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1315 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1317 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1318 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1319 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1320 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1321 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1322 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1324 * config/powerpc/xm-linux.h: Delete empty file.
1325 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1326 * config/powerpc/linux.mh (XM_FILE): Delete.
1327 * config/m68k/xm-linux.h: Delete empty file.
1328 * config/m68k/linux.mh (XM_FILE): Delete.
1329 * config/ia64/xm-linux.h: Delete empty file.
1330 * config/ia64/linux.mh (XM_FILE): Delete.
1331 * config/arm/xm-linux.h: Delete empty file.
1332 * config/arm/linux.mh (XM_FILE): Delete.
1334 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1335 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1336 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1337 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1338 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1339 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1340 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1341 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1343 * config/m68k/xm-m68k.h: Delete file.
1344 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1346 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1347 * config/pa/xm-linux.h: Delete empty file.
1348 * config/pa/linux.mh (XM_FILE): Delete.
1349 * config/i386/xm-i386.h: Delete empty file.
1350 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1352 * config/i386/obsdaout.mh (XM_FILE): Delete.
1353 * config/i386/obsd64.mh (XM_FILE): Delete.
1354 * config/i386/fbsd64.mh (XM_FILE): Delete.
1355 * config/i386/nto.mh (XM_FILE): Delete.
1356 * config/i386/obsd.mh (XM_FILE): Delete.
1357 * config/i386/linux64.mh (XM_FILE): Delete.
1358 * config/i386/linux.mh (XM_FILE): Delete.
1359 * config/i386/i386sol2.mh (XM_FILE): Delete.
1360 * config/i386/i386gnu.mh (XM_FILE): Delete.
1361 * config/i386/fbsd.mh (XM_FILE): Delete.
1362 * config/i386/nbsd64.mh (XM_FILE): Delete.
1364 2004-07-29 Andrew Cagney <cagney@gnu.org>
1366 * config/pa/xm-linux.h: Do not include "floatformat.h".
1367 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1368 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1369 * config/i386/xm-i386.h: Do not include "floatformat.h".
1370 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1371 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1372 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1373 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1374 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1375 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1376 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1377 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1378 * configure, config.in: Regenerate.
1379 * configure.host (gdb_host_float_format, gdb_host_double_format)
1380 (gdb_host_long_double_format): Set according to the host.
1382 2004-07-29 Andrew Cagney <cagney@gnu.org>
1384 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1386 2004-07-28 Andrew Cagney <cagney@gnu.org>
1388 * PROBLEMS: Mention threads/1650.
1389 * NEWS: Mention the NPTL fix.
1391 2004-07-28 Andrew Cagney <cagney@gnu.org>
1393 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1394 (add_setshow_cmd_full): Make static.
1395 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1396 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1397 * cli/cli-decode.c (add_setshow_filename_cmd)
1398 (add_setshow_string_cmd): New functions.
1399 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1400 * mips-tdep.c (_initialize_mips_tdep): Update.
1401 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1402 * cli/cli-logging.c (_initialize_cli_logging): Update.
1403 * complaints.c (_initialize_complaints): Update.
1404 * remote.c (_initialize_remote): Update.
1406 2004-07-28 Andrew Cagney <cagney@gnu.org>
1408 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1409 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1410 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1411 print parameters. Make string parameters constant.
1412 * command.h: Update. Update copyright.
1413 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1414 * observer.c (_initialize_observer): Ditto.
1415 * frame.c (_initialize_frame): Ditto.
1416 * complaints.c (_initialize_complaints): Ditto.
1417 * maint.c (_initialize_maint_cmds): Ditto.
1418 * target.c (initialize_targets): Ditto.
1419 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1420 * infcall.c (_initialize_infcall): Ditto.
1421 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1422 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1423 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1424 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1425 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1427 2004-07-28 Andrew Cagney <cagney@gnu.org>
1429 * gdbtypes.c (lookup_primitive_typename): Delete function.
1430 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1431 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1432 * gdbtypes.c (lookup_typename): Ditto.
1433 * f-exp.y (yylex): Ditto.
1434 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1436 * scm-lang.c (c_builtin_types): Delete extern declaration.
1437 (scm_language_defn): Replace
1438 string_char_type and primitive_type_vector with
1439 la_language_arch_info.
1440 * jv-lang.c (java_language_defn): Replace
1441 string_char_type and primitive_type_vector with
1442 la_language_arch_info.
1443 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1444 c_builtin_types in comment.
1445 * c-lang.h (struct language_arch_info): Declare opaque.
1446 (c_language_arch_info): Declare.
1447 (c_builtin_types): Delete declaration.
1448 * c-lang.c (c_language_arch_info): Set string_char_type to
1449 builtin_char, not builtin_true_char. Make global.
1450 (c_builtin_types): Delete array.
1451 (asm_language_defn, minimal_language_defn): Replace
1452 string_char_type and primitive_type_vector with
1453 la_language_arch_info.
1455 2004-07-28 Andrew Cagney <cagney@gnu.org>
1457 * gdbtypes.h (struct builtin_type): Rename true_char to
1459 * gdbtypes.c (gdbtypes_post_init): Update.
1460 * c-lang.c (arch_info): New function.
1461 (enum c_primitive_types): New enum.
1462 (c_language_defn): Instead of string_char_type and
1463 primitive_type_vector set la_language_arch_info.
1465 2004-07-28 Andrew Cagney <cagney@gnu.org>
1467 * language.h (struct language_arch_info): Fix typo
1468 s/primative/primitive/.
1469 * gdbtypes.c (lookup_primitive_typename): Ditto.
1470 * language.c (language_lookup_primitive_type_by_name)
1471 (unknown_language_arch_info): Ditto.
1473 2004-07-27 Andrew Cagney <cagney@gnu.org>
1475 * defs.h (enum language): Add nr_languages.
1476 * language.h (struct language_arch_info): Define.
1477 (struct language_defn): Add la_language_arch_info.
1478 (language_lookup_primative_type_by_name): Declare.
1479 (language_string_char_type): Declare.
1480 * language.c (_initialize_language, language_gdbarch_post_init)
1481 (struct language_gdbarch, language_gdbarch_data): Implement
1482 per-architecture language information.
1483 (unknown_language_arch_info, language_string_char_type)
1484 (language_lookup_primative_type_by_name): New functions.
1485 (unknown_language_defn, auto_language_defn)
1486 (local_language_defn): Set la_language_arch_info to
1487 unknown_language_arch_info.
1488 (unknown_builtin_types): Delete.
1489 * gdbtypes.c (lookup_primitive_typename): Use
1490 language_lookup_primative_type_by_name.
1491 (create_string_type): Use language_string_char_type.
1492 * values.c (value_from_string): Use language_string_char_type.
1493 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1494 * p-lang.c (pascal_language_defn): Ditto.
1495 * m2-lang.c (m2_language_defn): Ditto.
1496 * jv-lang.c (java_language_defn): Ditto.
1497 * objc-lang.c (objc_language_defn): Ditto.
1498 * f-lang.c (f_language_defn): Ditto.
1499 * c-lang.c (c_language_defn, cplus_language_defn)
1500 (asm_language_defn, minimal_language_defn): Ditto.
1502 2004-07-27 Andrew Cagney <cagney@gnu.org>
1504 * gdbtypes.h (struct builtin_type): Declare.
1505 (builtin_type): Declare.
1506 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1507 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1508 (gdbtypes_post_init): New function.
1509 (builtin_type): New function.
1511 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1513 * remote-m32r-sdi.c: Fix breakpoint bug.
1514 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1515 recv_char_data, recv_long_data): New functions to replace communication
1518 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1520 Document PR threads/1650.
1521 * PROBLEMS (Threads): Document problem with many threads
1523 2004-07-26 Andrew Cagney <cagney@gnu.org>
1525 * gdb-mi.el: Move from here ...
1526 * mi/gdb-mi.el: ... to here.
1528 2004-07-26 Andrew Cagney <cagney@gnu.org>
1530 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1531 * main.c (captured_main): When in batch mode always detach.
1533 2004-07-26 Andrew Cagney <cagney@gnu.org>
1535 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1536 and h8300 as broken.
1537 * NEWS: END-OF-LIFE frame compatibility module.
1538 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1541 2004-07-26 Andrew Cagney <cagney@gnu.org>
1543 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1544 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1545 * wince.c (_initialize_wince): Update.
1546 * win32-nat.c (_initialize_win32_nat): Update.
1547 * varobj.c (_initialize_varobj): Update.
1548 * valops.c (_initialize_valops): Update.
1549 * utils.c (initialize_utils, initialize_utils): Update.
1550 * tui/tui-win.c (_initialize_tui_win): Update.
1551 * top.c (init_main): Update.
1552 * symfile.c (_initialize_symfile): Update.
1553 * source.c (_initialize_source): Update.
1554 * somsolib.c (_initialize_som_solib): Update.
1555 * solib.c (_initialize_solib): Update.
1556 * solib-frv.c (_initialize_frv_solib): Update.
1557 * serial.c (_initialize_serial): Update.
1558 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1559 * remote.c (_initialize_remote, _initialize_remote): Update.
1560 * remote-vx.c (_initialize_vx): Update.
1561 * remote-utils.c (_initialize_sr_support): Update.
1562 * remote-sds.c (_initialize_remote_sds): Update.
1563 * remote-mips.c (_initialize_remote_mips): Update.
1564 * remote-e7000.c (_initialize_remote_e7000): Update.
1565 * proc-api.c (_initialize_proc_api): Update.
1566 * printcmd.c: Update.
1567 * parse.c (_initialize_parse): Update.
1568 * pa64solib.c (_initialize_pa64_solib): Update.
1569 * p-valprint.c (_initialize_pascal_valprint): Update.
1570 * monitor.c (_initialize_remote_monitors): Update.
1571 * mips-tdep.c (_initialize_mips_tdep): Update.
1572 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1573 * maint.c (_initialize_maint_cmds): Update.
1574 * lin-lwp.c (_initialize_lin_lwp): Update.
1575 * language.c (_initialize_language): Update.
1576 * kod.c (_initialize_kod): Update.
1577 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1578 * i386-tdep.c (_initialize_i386_tdep): Update.
1579 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1580 * gdbarch.sh: Update.
1581 * gdbarch.c: Re-generate.
1582 * gdb-events.sh: Update.
1583 * gdb-events.c: Re-generate.
1584 * frame.c (_initialize_frame): Update.
1586 * demangle.c (_initialize_demangler): Update.
1587 * dcache.c (_initialize_dcache): Update.
1588 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1589 * cp-valprint.c (_initialize_cp_valprint): Update.
1590 * corefile.c (_initialize_core): Update.
1591 * command.h: Update.
1592 * cli/cli-decode.h: Update.
1593 * cli/cli-cmds.c (init_cli_cmds): Update.
1594 * charset.c (_initialize_charset): Update.
1595 * breakpoint.c (_initialize_breakpoint): Update.
1596 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1597 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1598 * aix-thread.c (_initialize_aix_thread): Update.
1600 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1602 Partial fix for PR backtrace/1718.
1603 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1604 that GCC migrates into the prolugue. Don't handle any
1605 instructions that clobber %ebx.
1607 2004-07-23 Andrew Cagney <cagney@gnu.org>
1609 Use regcache_raw_collect instead of regcache_collect.
1610 * regcache.h (regcache_collect): Delete declaration.
1611 * regcache.c (regcache_colect): Delete function.
1612 * win32-nat.c (do_child_store_inferior_registers): Update.
1613 * sol-thread.c (sol_thread_store_registers): Update.
1614 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1615 * rs6000-nat.c (store_register): Update.
1616 * remote.c (store_register_using_P, remote_store_registers): Update.
1617 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1618 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1619 (fill_vrregset, store_spe_registers, fill_gregset)
1620 (fill_gregset): Update.
1621 * nto-procfs.c (procfs_store_registers): Update.
1622 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1623 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1624 * m68klinux-nat.c (store_register, fill_gregset): Update.
1625 * m68k-tdep.c (fill_gregset): Update.
1626 * infptrace.c (store_register): Update.
1627 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1628 * i386-linux-nat.c (store_register, fill_gregset): Update.
1629 * hppa-linux-nat.c (fill_gregset): Update.
1630 * go32-nat.c (store_register): Update.
1631 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1632 (store_fp_regs): Update.
1633 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1634 (store_nwfpe_extended, store_fpregister, store_fpregs)
1635 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1636 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1637 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1638 (store_regs_user_thread, store_regs_kernel_thread): Update.
1640 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1642 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1643 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1645 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1646 member of `struct comp_unit'.
1648 2004-07-23 Andrew Cagney <cagney@gnu.org>
1650 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1651 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1653 2004-07-23 Martin Hunt <hunt@redhat.com>
1654 Kevin Buettner <kevinb@redhat.com>
1656 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1657 alignment was being added to the offset instead of multiplied.
1659 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1661 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1662 changed signal trampoline in OpenBSD 3.5-current.
1664 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1665 <machine/pcb.h> and "bsd-kvm.h".
1666 (sparc64nbsd_supply_pcb): New function.
1667 (_initialize_sparc64nbsd_nat): Renamed from
1668 _initialize_sparcnbsd_nat. Enable libkvm interface.
1669 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1670 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1671 (LOADLIBES): New variable.
1673 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1675 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1677 2004-07-21 Andrew Cagney <cagney@gnu.org>
1679 Use regcache_raw_supply instead of supply_register.
1680 * regcache.h (supply_register): Delete declaration.
1681 * regcache.c (supply_register): Delete function.
1682 * wince.c (do_child_fetch_inferior_registers): Update.
1683 * win32-nat.c (do_child_fetch_inferior_registers)
1684 (fetch_elf_core_registers): Update.
1685 * v850ice.c (v850ice_fetch_registers): Update.
1686 * thread-db.c (thread_db_store_registers): Update.
1687 * sol-thread.c (sol_thread_store_registers): Update.
1688 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1689 * rs6000-nat.c (fetch_register): Update.
1690 * rom68k-rom.c (rom68k_supply_one_register): Update.
1691 * remote.c (remote_wait, remote_async_wait): Update.
1692 * remote-st.c (get_hex_regs): Update.
1693 * remote-sim.c (gdbsim_fetch_register): Update.
1694 * remote-sds.c (sds_fetch_registers): Update.
1695 * remote-rdp.c (remote_rdp_fetch_register): Update.
1696 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1697 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1698 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1699 * remote-hms.c (init_hms_cmds): Update.
1700 * remote-est.c (init_est_cmds): Update.
1701 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1702 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1703 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1704 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1705 (fetch_register, supply_vrregset, supply_vrregset)
1706 (fetch_spe_registers): Update.
1707 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1708 * monitor.c (monitor_supply_register): Update.
1709 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1710 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1711 (mipsnbsd_supply_fpreg): Update.
1712 * mips-nat.c (fetch_inferior_registers)
1713 (fetch_core_registers): Update.
1714 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1715 (supply_fpregset, mips64_supply_gregset)
1716 (mips64_supply_fpregset): Update.
1717 * m68klinux-nat.c (fetch_register, supply_gregset)
1718 (supply_fpregset): Update.
1719 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1720 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1721 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1722 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1723 * infptrace.c (fetch_register): Update.
1724 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1725 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1726 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1727 (gnu_fetch_registers, gnu_store_registers): Update.
1728 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1729 * i386-linux-nat.c (fetch_register, supply_gregset)
1730 (dummy_sse_values): Update.
1731 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1732 * hppah-nat.c (fetch_register): Update.
1733 * hppa-linux-nat.c (fetch_register, supply_gregset)
1734 (supply_fpregset): Update.
1735 * go32-nat.c (fetch_register): Update.
1736 * dve3900-rom.c (fetch_bitmapped_register)
1737 (_initialize_r3900_rom): Update.
1738 * cris-tdep.c (supply_gregset): Update.
1739 * abug-rom.c (init_abug_cmds): Update.
1740 * core-aout.c (fetch_core_registers): Update.
1741 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1742 (fetch_register, fetch_fp_register): Update.
1743 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1744 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1745 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1746 * alphanbsd-tdep.c (fetch_core_registers): Update.
1747 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1748 * alpha-nat.c (fetch_osf_core_registers)
1749 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1750 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1751 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1753 2004-07-21 Andrew Cagney <cagney@gnu.org>
1755 * PROBLEMS: Mention breakpoints/1702.
1756 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1757 that is known to work.
1759 2004-07-21 Andrew Cagney <cagney@gnu.org>
1761 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1762 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1763 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1764 (handle_inferior_event): Wrap call to deprecated
1765 IGNORE_HELPER_CALL in #ifdef.
1766 * config/mips/tm-nbsd.h: Update.
1768 2004-07-20 Jim Blandy <jimb@redhat.com>
1770 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1771 bfd_mach_ppc has no segment registers.
1773 Include PowerPC SPR numbers for special-purpose registers.
1774 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1775 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1776 new member in initializer.
1777 (S, S4, SN4, S64): New macros for defining special-purpose
1779 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1780 registers_403, registers_403GC, registers_505, registers_860,
1781 registers_601, registers_602, registers_603, registers_604,
1782 registers_750, registers_e500): Use them.
1784 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1785 replace references with expression used to initialize variable.
1787 2004-07-20 Andrew Cagney <cagney@gnu.org>
1789 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1791 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1792 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1793 (s390_sigtramp_frame_sniffer): Update.
1794 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1795 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1796 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1797 (mips32_fetch_instruction): Update.
1798 * mcore-tdep.c (get_insn): Update.
1799 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1800 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1801 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1802 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1803 (i386_linux_rt_sigtramp_start): Update.
1804 * i386-linux-nat.c (child_resume): Update.
1805 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1806 * hppa-linux-tdep.c (insns_match_pattern): Update.
1807 * gdbcore.h: Update.
1808 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1809 * frame.c (safe_frame_unwind_memory): Update.
1810 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1811 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1812 * alpha-tdep.c (alpha_read_insn): Update.
1814 2004-07-20 Andrew Cagney <cagney@gnu.org>
1816 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1817 containing both bytes and mask. Add "frame_type".
1818 * tramp-frame.c (tramp_frame_start): Update.
1819 (tramp_frame_prepend_unwinder): Update.
1820 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1821 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1822 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1823 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1825 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1827 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1828 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1829 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1830 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1832 2004-07-17 Andrew Cagney <cagney@gnu.org>
1834 * NEWS, PROBLEMS: Update for 6.2.
1836 * README: Update to 6.2.
1838 * utils.c (xvasprintf): Call xstrvprintf.
1840 * parse.c: Update copyright.
1841 (null_post_parser): Eliminate ARGSUSED.
1843 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1844 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1845 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1847 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1848 * ppc-linux-nat.c: Use "Linux kernel".
1849 * hppa-linux-tdep.c: Use GNU/Linux.
1850 * hppa-linux-nat.c: Use GNU/Linux.
1851 * dwarfread.c: Add [sic] to use of Linux.
1853 * hppa-linux-nat.c: Do not include <string.h>.
1854 (supply_fpregset): Remove "register" attribute.
1856 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1858 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1860 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1861 * configure, config.in: Regenerated.
1863 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1865 (vaxbsd_supply_pcb): New function.
1866 (_initialize_vaxbsd_nat): New prototype and function.
1867 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1869 (LOADLIBES): New variable.
1870 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1871 (LOADLIBES): New variable.
1872 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1873 (LOADLIBES): New variable.
1874 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1876 2004-07-16 Andrew Cagney <cagney@gnu.org>
1878 * defs.h (event_loop_p): Replace variable declaration with macro,
1880 * main.c (captured_main): Delete options "-async" and "-noasync".
1881 (event_loop_p): Delete variable.
1882 * NEWS: Mention that "-async" and "-noasync" were removed.
1884 2004-07-16 Andrew Cagney <cagney@gnu.org>
1886 * remote-m32r-sdi.c: Re-indent.
1888 2004-07-16 Jim Blandy <jimb@redhat.com>
1890 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1891 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1892 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1893 missing MPC823 SPRs.
1894 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1895 incorrect. (This was corrected in GDB's register name tables on
1898 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1899 should be "esasrr" ("ESA Save and Restore Register").
1901 2004-07-16 Andrew Cagney <cagney@gnu.org>
1903 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1904 calls, no longer applicable. Update comments and rename parameter
1905 "step_frame" to "return_frame".
1907 2004-07-16 Andrew Cagney <cagney@gnu.org>
1909 * frame.c (fprint_field): New function.
1910 (fprint_frame_id): Use fprint_field.
1912 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1914 * ada-lang.c (ada_language_defn): Remove commented out code.
1916 2004-07-15 Jim Blandy <jimb@redhat.com>
1918 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1919 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1921 2004-07-14 Jim Blandy <jimb@redhat.com>
1923 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1925 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1927 * ppc-tdep.h (ppc_num_srs): New enum constant.
1929 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1930 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1931 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1932 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1933 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1934 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1935 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1936 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1937 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1938 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1939 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1940 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1941 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1942 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1943 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1944 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1945 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1946 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1947 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1948 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1949 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1950 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1951 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1952 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1953 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1954 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1955 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1956 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1957 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1958 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1959 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1960 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1961 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1962 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1963 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1964 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1965 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1966 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1967 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1968 special-purpose register numbers.
1970 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1971 manual mentions 'md_twb', but many mention 'm_twb', and at that
1972 point in the register list.)
1974 2004-07-14 Andrew Cagney <cagney@gnu.org>
1976 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1977 instead of "internal-error".
1979 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1981 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1982 that was inserted inside a comment.
1984 2004-07-10 Randolph Chung <tausq@debian.org>
1986 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1988 (hppa_hpux_push_dummy_code): New function.
1989 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1990 Set find_global_pointer method.
1992 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1994 * NEWS: Mention BSD libkvm interface.
1996 2004-07-10 Michael Snyder <msnyder@redhat.com>
1998 * symfile.c (generic_load): Comment typo.
1999 * stack.c (get_selected_block): Ditto.
2000 * regcache.c (regcache_cooked_read): Ditto.
2001 * monitor.c (monitor_debug): Ditto.
2002 * mips-tdep.c (mips_read_pc): Ditto.
2003 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2004 * gdb_mbuild.sh: Ditto.
2005 * gdbarch.sh: Ditto.
2008 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2010 * ada-tasks.c: Remove file.
2012 Remove ARI problems:
2014 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2017 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2019 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2020 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2021 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2022 (UMIN_OF_SIZE): Remove.
2023 (max_of_type): New function to replace orphan macro in gdbtypes.h
2024 (min_of_type): Ditto.
2025 (discrete_type_high_bound): Use max_of_type.
2026 (discrete_type_low_bound): Use min_of_type.
2027 (possible_user_operator_p): Move operator to beginning of line.
2028 (ada_is_variant_part): Ditto.
2029 (ensure_lval): Rewrite to avoid deprecated operations.
2030 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2031 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2032 (ada_enum_name): Remove assignments in 'if' statements.
2033 (build_ada_types): Add gdbarch parameter.
2034 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2035 with gdbarch_data_register_post_init.
2036 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2039 * ada-valprint.c (inspect_it): Remove declaration.
2040 (repeat_count_threshold): Remove declaration.
2041 (ada_print_floating): Remove assignments in 'if' statements.
2042 (print_str): Move operator to beginning of line.
2044 2004-07-08 Jim Blandy <jimb@redhat.com>
2046 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2048 2004-07-08 Bob Rossi <bob@brasko.net>
2050 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2052 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2054 * language.h (struct_language_defn): Add new function pointer:
2055 la_class_name_from_physname. Also add new prototype for
2056 language_class_name_from_physname.
2057 * language.c (language_class_name_from_physname): New function.
2058 (unk_lang_class_name): Ditto.
2059 (unknown_language_defn, auto_language_defn): Change
2060 to add unk_lang_class_name function pointer for
2061 la_class_name_from_physname.
2062 (local_language_defn): Ditto.
2063 * dwarf2read.c (guess_structure_name): Change to call
2064 language_class_name_from_physname.
2065 (determine_class_name): Ditto.
2066 * cp-support.c (class_name_from_physname): Renamed.
2067 (cp_class_name_from_physname): New name of function.
2068 * cp-support.h: Ditto.
2069 * c-lang.c (c_language_defn): Change to add NULL
2070 for class_name_from_physname function pointer.
2071 (cplus_language_defn): Change to add cp_class_name_from_physname.
2072 * jv-lang.c (java_class_name_physname): New function.
2073 (java_find_last_component): New static routine.
2074 (java_language_defn): Add java_class_name_from_physname pointer.
2075 * ada-lang.c (ada_language_defn): Change to add NULL
2076 for class_name_from_physname function pointer.
2077 * f-lang.c (f_language_defn): Ditto.
2078 * m2-lang.c (m2_language_defn): Ditto.
2079 * objc-lang.c (objc_language_defn): Ditto.
2080 * p-lang.c (pascal_language_defn): Ditto.
2081 * scm-lang.c (scm_language_defn): Ditto.
2083 2004-07-06 Andrew Cagney <cagney@gnu.org>
2085 Patch from Bart Robinson.
2086 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2087 (O_LARGEFILE): Define to 0, if not defined.
2089 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2091 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2092 <machine/pcb.h> and "bsd-kvm.h".
2093 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2094 (m68kbsd_supply_pcb): New function.
2095 (_initialize_m68kbsd_nat): New prototype and function.
2096 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2097 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2098 (LOADLIBES): New variable.
2099 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2100 (LOADLIBES): New variable.
2102 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2104 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2106 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2108 (bsd_kvm_cmdlist): New variable.
2109 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2110 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2111 command and "kvm proc" command.
2112 * Makefile.in (bsd-kvm.o): Update dependencies.
2114 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2116 * osabi.c: Update copyright year.
2117 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2118 notes if EI_OSABI is set to ELFOSABI_HPUX.
2120 2004-07-01 Michael Snyder <msnyder@redhat.com>
2122 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2123 that seems to have gotten whacked out of line.
2125 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2127 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2130 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2132 * ada-lang.c (decode_packed_array): Minor change to comment.
2133 (ada_value_slice_ptr): New function.
2134 (ada_value_slice): New function.
2135 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2136 test. Don't know why it is there.
2137 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2138 to avoid dereferencing huge arrays from which one is slicing.
2139 (empty_array): Correct to return an array rather than
2141 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2142 on empty arrays (let'em use 'FIRST instead).
2144 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2146 Address complaints from gdb_ari.sh:
2148 * ada-exp.y: Include gdb_string.h rather than string.h.
2149 (convert_char_literal): Reformat declaration.
2150 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2151 * ada-lex.l: Change use of free to xfree (the macro would do so
2152 anyway, but this is harmless).
2153 Include gdb_string.h rather than string.h.
2154 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2156 * ada-lang.c (parse): Remove K&Rism in parameter list.
2157 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2159 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2161 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2164 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2166 * alphabsd-nat.c: Update copyright year.
2167 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2169 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2171 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2172 (i386_cygwin_in_solib_call_trampoline): New function.
2173 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2174 and skip_trampoline_code gdbarch methods.
2176 2004-06-29 Jim Blandy <jimb@redhat.com>
2178 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2179 name actually used in the dependency lists.
2181 2004-06-29 Randolph Chung <tausq@debian.org>
2183 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2185 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2187 * win32-nat.c (child_pid_to_exec_file): New function.
2188 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2191 2004-06-28 Andrew Cagney <cagney@gnu.org>
2193 * defs.h (xstrvprintf): Declare.
2194 * utils.c (xstrvprintf): New function.
2195 (internal_vproblem, xstrprintf, xasprintf)
2196 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2197 * serial.c (serial_printf): Ditto.
2198 * complaints.c (vcomplaint): Ditto.
2200 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2202 * infcmd.c (attach_command): Move call to target_terminal_inferior
2203 behind loading symbol table.
2205 2004-06-28 Andrew Cagney <cagney@gnu.org>
2207 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2208 change - add back extern deprecated_ui_loop_hook declaration.
2210 2004-06-28 Andrew Cagney <cagney@gnu.org>
2212 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2214 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2215 (c_value_of_variable): Ditto.
2216 * utils.c (internal_vproblem): Ditto.
2217 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2218 * remote.c (add_packet_config_cmd): Ditto.
2219 * remote-rdp.c (rdp_set_command_line): Ditto.
2220 * regcache.c (regcache_dump): Ditto.
2221 * frv-tdep.c (new_variant, new_variant): Ditto.
2222 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2223 (fbsd_find_memory_regions): Ditto.
2224 * breakpoint.c (create_thread_event_breakpoint)
2225 (create_breakpoints): Ditto.
2226 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2227 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2229 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2231 * ada-lang.c: Re-indent file, with some massaging to help indent
2232 a bit when the result is otherwise really too ugly.
2234 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2236 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2237 code_addr_p and special_addr_p to 'unsigned int'.
2239 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2241 * i386v4-nat.c: Update copyright year and tweak comment.
2242 (regmap): Remove trailing comma.
2243 (supply_gregset): Rename local variable i to regnum. Call
2244 regcache_raw_supply instead of supply_register.
2245 (fill_gregset): Rename argument regno to regnum. Call
2246 regcache_raw_collect instead of regcache_collect.
2248 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2250 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2252 (frame_id_build, frame_id_build_special): Update comments.
2253 (frame_id_build_wild): New prototype.
2254 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2255 struct frame_id fields.
2256 (frame_id_build_wild): New function.
2257 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2259 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2261 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2264 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2266 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2268 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2270 * ada-lang.c: Re-indent file.
2272 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2274 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2275 (no_symtab_msg): Likewise.
2277 2004-06-27 Andreas Schwab <schwab@suse.de>
2279 * source.c: Fix whitespace.
2281 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2283 * configure.in: Include <sys/param.h> for td_pcb test.
2284 * configure: Regenerated.
2286 * i386nbsd-nat.c: New file.
2287 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2288 i386obsd-nat.c and i386obsd-tdep.c.
2289 (i386nbsd-nat.o): New dependency.
2290 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2292 (LOADLIBES): New variable.
2293 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2295 (LOADLIBES): New variable.
2297 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2298 (LOADLIBES): New variable.
2300 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2301 fetching from BSD_KVM_PADDR. Correctly lookup address for
2304 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2306 (amd64fbsd_supply_pcb): New funcion.
2307 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2309 2004-06-27 <david@streamline-computing.com>
2311 Partial fix for PR cli/1056.
2312 * valarith.c: Check for zero in division and remainder
2315 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2317 * i387-tdep.c: Remove excessive whitespace.
2319 2004-06-26 Andrew Cagney <cagney@gnu.org>
2321 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2322 * gdb-events.h, gdb-events.c: Re-generate.
2323 * tui/tui-hooks.c (tui_install_hooks): Update.
2324 (tui_remove_hooks): Update.
2325 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2327 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2329 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2330 (gregset_t, fpregset_t): Remove typedefs.
2331 (REG_OFFSET): Rename argument.
2332 (amd64bsd_r_reg_offset): Rename from reg_offset.
2333 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2335 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2337 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2339 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2341 * vax-tdep.c: Tweak comment.
2343 Add OpenBSD/hppa support.
2344 * NEWS (New native configurations): Mention OpenBSD/hppa.
2345 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2346 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2348 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2349 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2350 * configure.host: Add hppa*-*-openbsd*.
2351 * configure.tgt: Add hppa*-*-openbsd*.
2353 2004-06-25 Andrew Cagney <cagney@gnu.org>
2355 * defs.h (deprecated_ui_loop_hook): Deprecated.
2356 * wince.c (child_wait): Update.
2357 * win32-nat.c (child_wait): Update.
2358 * v850ice.c (v850ice_wait): Update.
2359 * top.c (deprecated_ui_loop_hook): Update.
2361 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2362 (do_unix_readchar): Update.
2363 * ser-tcp.c (net_open): Update.
2364 * remote-sim.c (gdb_os_poll_quit): Update.
2365 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2367 2004-06-24 Andrew Cagney <cagney@gnu.org>
2369 * defs.h (deprecated_pre_add_symbol_hook)
2370 (deprecated_post_add_symbol_hook): Deprecated.
2371 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2372 (symbol_file_add_with_addrs_or_offsets): Update references.
2374 2004-06-24 Andrew Cagney <cagney@gnu.org>
2376 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2377 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2378 * wince.c (ui_loop_hook): Delete extern declaration.
2379 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2380 * v850ice.c (ui_loop_hook): Delete extern declaration..
2381 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2382 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2383 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2384 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2385 ui_loop_hook declaration.
2387 2004-06-24 Andrew Cagney <cagney@gnu.org>
2389 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2390 entry_func_highpc fields.
2391 * objfiles.c (init_entry_point_info): Do not clear
2392 entry_func_lowpc and entry_func_highpc.
2393 (objfile_relocate): Do not relocate entry_func_lowpc and
2395 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2397 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2399 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2400 entry_func_lowpc and entry_func_highpc with call to
2403 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2405 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2406 quad-precision floating point arguments in registers.
2408 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2410 From Michael Mueller <m.mueller99@kay-mueller.de>:
2411 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2414 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2416 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2418 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2419 untriggered watchpoints to a separate if clause. Update function
2420 comment regarding STOPPED_BY_WATCHPOINT argument.
2422 2004-06-22 Jim Blandy <jimb@redhat.com>
2424 * gdbarch.sh: Doc fix.
2426 2004-06-21 Martin Hunt <hunt@redhat.com>
2427 Kevin Buettner <kevinb@redhat.com>
2429 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2430 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2431 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2432 to set_gdbarch_sp_regnum(). Use cooked register number.
2433 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2435 2004-06-21 Andrew Cagney <cagney@gnu.org>
2437 * gdbarch.sh: When the macro field is empty, do not generate a
2438 macro definition. When the macro field is "=", generate the macro
2439 name from the upper-case function name.
2440 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2441 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2442 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2443 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2444 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2445 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2446 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2447 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2448 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2449 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2450 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2451 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2452 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2453 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2454 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2455 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2456 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2457 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2458 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2459 (DEPRECATED_USE_STRUCT_CONVENTION)
2460 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2461 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2462 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2463 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2464 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2465 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2466 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2467 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2468 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2469 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2470 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2471 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2472 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2473 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2474 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2475 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2476 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2477 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2479 2004-06-21 Andrew Cagney <cagney@gnu.org>
2481 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2482 macro name, and the function rather than macro value. Only wrap
2483 macro print statements in #ifdef. Move format logic to where it
2485 * gdbarch.c: Re-generate.
2487 * gdbarch.sh (read): Delete "print_p" and "description", add
2488 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2489 Delete references to print_p.
2490 (TARGET_ARCHITECTURE): Delete print predicate.
2491 * gdbarch.c: Re-generate.
2493 * gdbarch.sh: Check that multi-arch methods do not provide a
2495 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2496 (print_registers_info, print_float_info, print_vector_info)
2497 (adjust_breakpoint_address, remote_translate_xfer_address)
2498 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2499 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2500 name from the multi-arch definition.
2502 2004-06-20 Andrew Cagney <cagney@gnu.org>
2504 * gdbarch.sh: Sort by the function, instead of macro name.
2505 * gdbarch.c: Re-generate.
2507 2004-06-20 Andrew Cagney <cagney@gnu.org>
2509 * gdbarch.sh: Use the function, instead of macro name in
2510 errors and the log file.
2511 (return_value): Remove stray ":" in spec.
2513 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2514 * gdbarch.h, gdbarch.c: Re-generate.
2515 * Makefile.in (arch-utils.o): Update dependencies.
2516 * values.c (using_struct_return): Move code calling
2517 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2518 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2519 to legacy_return_value, simplify.
2520 * infcmd.c (print_return_value): Move code calling
2521 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2522 to legacy_return_value, simplify.
2523 * infcall.c (call_function_by_hand): Move code calling
2524 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2525 * arch-utils.c: Update copyright. Include "gdbcore.h".
2526 (legacy_return_value): New function.
2527 * arch-utils.h: Update copyright.
2528 (legacy_return_value): Declare.
2530 2004-06-20 Andrew Cagney <cagney@gnu.org>
2532 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2533 * gdbarch.h, gdbarch.c: Re-generate.
2534 * values.c (using_struct_return): Update call.
2535 * mcore-tdep.c: Update comment.
2536 * infcall.c (call_function_by_hand): Update comment.
2537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2538 * arch-utils.h (always_use_struct_convention): Update.
2539 * v850-tdep.c (v850_gdbarch_init): Update.
2540 * sh64-tdep.c (sh64_gdbarch_init): Update.
2541 * sh-tdep.c (sh_gdbarch_init): Update.
2542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2543 * mips-tdep.c (mips_gdbarch_init): Update.
2544 * mcore-tdep.c (mcore_gdbarch_init): Update.
2545 * m32r-tdep.c (m32r_gdbarch_init): Update.
2546 * ia64-tdep.c (ia64_gdbarch_init): Update.
2547 * h8300-tdep.c (h8300_gdbarch_init): Update.
2548 * frv-tdep.c (frv_gdbarch_init): Update.
2549 * cris-tdep.c (cris_gdbarch_init): Update.
2550 * arm-tdep.c (arm_gdbarch_init): Update.
2551 * alpha-tdep.c (alpha_gdbarch_init): Update.
2553 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2555 * PROBLEMS: Add more specific information, and a work-around,
2558 2004-06-18 Andrew Cagney <cagney@gnu.org>
2560 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2561 * gdbarch.h, gdbarch.c: Re-generate.
2562 * ada-lang.c (ada_finish_decode_line_1): Update.
2563 * infrun.c (handle_inferior_event): Update.
2564 * infcall.c (find_function_addr): Update.
2565 * linespec.c (minsym_found): Update.
2566 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2568 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2569 * cli/cli-cmds.c (disassemble_command): Update.
2570 * vax-tdep.c (vax_gdbarch_init): Update.
2572 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2574 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2576 2004-06-17 Andrew Cagney <cagney@gnu.org>
2578 GDB 6.1.1 released from the GDB 6.1 branch.
2579 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2582 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2585 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2586 operation as a uleb128. Found by Michael Coulter.
2588 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2590 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2592 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2593 to ada-lang.h; this is needed to be able to implement the kill command
2596 (task_entry): Ditto.
2598 (ada_build_task_list): Ditto.
2600 * ada-lang.c: Conditionalize routines and data structures related
2601 to breakpoints, exceptions, completion, and symbol caching on
2602 GNAT_GDB, since these are not yet used in the submitted public sources.
2603 (ada_main_name): Editorial: Move definition out of exception-related
2606 2004-06-15 Andrew Cagney <cagney@gnu.org>
2608 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2609 deprecated_pc_in_call_dummy.
2611 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2613 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2614 bfd_get_section_size_before_reloc or _raw_size.
2615 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2616 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2617 (dwarf2_read_section): Likewise.
2618 * elfread.c (elf_locate_sections): Likewise.
2619 * gcore.c (derive_heap_segment): Likewise.
2620 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2621 * remote-e7000.c (e7000_load): Likewise.
2622 * remote-m32r-sdi.c (m32r_load): Likewise.
2623 * remote-mips.c (mips_load_srec): Likewise.
2624 (pmon_load_fast): Likewise.
2625 * remote.c (compare_sections_command): Likewise.
2626 * symfile.c (add_section_size_callback): Likewise.
2627 (load_section_callback): Likewise.
2628 (pc_in_unmapped_range): Likewise.
2629 (pc_in_mapped_range): Likewise.
2630 (sections_overlap): Likewise.
2631 (list_overlays_command): Likewise.
2632 (simple_overlay_update_1): Likewise.
2633 (simple_overlay_update): Likewise.
2634 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2635 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2637 2004-06-14 Randolph Chung <tausq@debian.org>
2639 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2640 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2642 (hppa_hpux_inferior_created): New function.
2643 (hppa_hpux_init_abi): Register observer.
2644 * symfile.c (hp_cxx_exception_support_initialized)
2645 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2646 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2648 2004-06-14 Randolph Chung <tausq@debian.org>
2650 * MAINTAINERS (Write After Approval): Alphabetize my entry
2653 2004-06-14 Andrew Cagney <cagney@gnu.org>
2655 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2656 testsuite maintainer.
2658 2004-06-13 Andrew Cagney <cagney@gnu.org>
2660 * infcmd.c (print_return_value): Fix logic, allow
2661 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2663 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2664 defining any macros.
2665 * gdbarch.h: Re-generate.
2667 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2668 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2669 * gdbarch.h: Re-generate.
2671 * values.c (generic_use_struct_convention): Don't check gcc_p.
2673 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2674 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2675 * gdbarch.h, gdbarch.c: Regenerate.
2676 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2677 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2678 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2679 deprecated_max_register_raw_size and
2680 deprecated_max_register_virtual_size.
2681 * v850-tdep.c (v850_gdbarch_init): Ditto.
2682 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2683 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2684 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2685 * cris-tdep.c (cris_gdbarch_init): Ditto.
2687 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2688 * gdbarch.h, gdbarch.c: Re-generate.
2689 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2690 (m68hc11_use_struct_convention): Delete function.
2691 (m68hc11_extract_struct_value_address): Delete function.
2692 (m68hc11_return_value): New function.
2693 (m68hc11_gdbarch_init): Instead of store_return_value,
2694 extract_return_value, return_value_on_stack,
2695 deprecated_extract_struct_value_address and use_struct_convention,
2697 * values.c (using_struct_return): Do not call
2698 RETURN_VALUE_ON_STACK.
2699 * arch-utils.h (generic_return_value_on_stack_not): Delete
2701 * arch-utils.c (generic_return_value_on_stack_not): Delete
2704 2004-06-12 Andrew Cagney <cagney@gnu.org>
2706 * values.c (register_value_being_returned): Delete function.
2707 * infcmd.c (legacy_return_value): Delete function.
2708 * infcall.c (call_function_by_hand): Inline
2709 "register_value_being_returned", simplify.
2710 * values.c (using_struct_return): Update comment, refer to
2711 print_return_value instead of register_value_being_returned.
2712 * infcmd.c (print_return_value): Inline calls to
2713 register_value_being_returned and legacy_return_value. Simplify.
2715 2004-06-11 Randolph Chung <tausq@debian.org>
2717 * somread.c (som_symtab_read): Exclude gcc local symbols.
2719 2004-06-11 Randolph Chung <tausq@debian.org>
2721 * infrun.c (handle_inferior_event): Handle the case when a
2722 trampoline ends up in the runtime resolver, and if the trampoline
2723 has no name. Rearrange the code so that all the trampoline
2724 processing happens before other step-out-of-range handling.
2726 2004-06-11 Martin Hunt <hunt@redhat.com>
2728 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2731 2004-06-10 Andrew Cagney <cagney@gnu.org>
2733 * blockframe.c (legacy_inside_entry_func): Delete.
2734 (legacy_frame_chain_valid): Inline call to
2735 legacy_inside_entry_func, simplify.
2737 2004-06-10 Bob Rossi <bob@brasko.net>
2739 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2740 * dwarf2read.c (partial_die_info): Add dirname field.
2741 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2742 (read_partial_die): Save away DW_AT_comp_dir.
2743 * defs.h (symtab_to_filename): Removed.
2744 * source.c (find_and_open_source): Added.
2745 (open_source_file): Just calls find_and_open_source.
2746 (symtab_to_filename): Removed.
2747 (symtab_to_fullname, psymtab_to_fullname): Added.
2748 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2749 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2751 * symtab.h (partial_symtab): Add dirname field.
2752 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2753 (mi_cmd_file_list_exec_source_file): Call new function
2754 symtab_to_fullname to find fullname.
2755 (mi_cmd_file_list_exec_source_files): Added.
2756 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2757 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2759 2004-06-10 Andrew Cagney <cagney@gnu.org>
2761 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2762 to generic_use_struct_convention, the default value.
2764 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2767 * ns32k-tdep.c (ns32k_push_arguments): New function.
2768 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2769 * infcall.c (call_function_by_hand): Call error instead of
2770 legacy_push_arguments.
2771 * value.h (legacy_push_arguments): Delete declaration.
2772 * valops.c (legacy_push_arguments): Delete function.
2773 (value_push): Delete function.
2775 2004-06-10 Brian Ford <ford@vss.fsi.com>
2777 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2778 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2780 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2782 2004-06-10 Andrew Cagney <cagney@gnu.org>
2784 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2785 * gdbarch.h, gdbarch.c: Re-generate.
2786 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2788 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2789 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2790 deprecated_pc_in_call_dummy instead of
2791 DEPRECATED_PC_IN_CALL_DUMMY.
2792 (arm_skip_prologue): Ditto.
2793 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2794 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2795 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2796 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2798 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2799 (sh64_init_extra_frame_info, sh64_get_saved_register)
2800 (sh64_pop_frame): Ditto.
2801 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2802 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2803 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2804 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2805 (h8300_pop_frame): Ditto.
2806 * blockframe.c (legacy_inside_entry_func)
2807 (legacy_frame_chain_valid): Ditto.
2808 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2809 to deprecated_pc_in_call_dummy.
2811 2004-06-09 Andrew Cagney <cagney@gnu.org>
2813 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2814 provide a default value.
2815 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2816 * gdbarch.h, gdbarch.c: Re-generate.
2817 * arch-utils.c (generic_convert_register_p): Rename
2818 legacy_convert_register_p
2819 (legacy_register_to_value, legacy_value_to_register): Delete
2821 * arch-utils.h (generic_convert_register_p): Rename
2822 legacy_convert_register_p.
2823 (legacy_register_to_value, legacy_value_to_register): Delete
2826 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2827 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2828 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2829 * gdbarch.h, gdbarch.c: Re-generate.
2830 * infcmd.c (default_print_registers_info): Simplify.
2831 * findvar.c (value_of_register): Simplify.
2832 * mi/mi-main.c (get_register): Simplify.
2833 * arch-utils.c (legacy_convert_register_p): Always return 0.
2834 (legacy_register_to_value, legacy_value_to_register): Always call
2837 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2838 #ifdef CLEAR_INSN_CACHE code.
2839 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2840 Delete #ifdef CLEAR_DEFERRED_STORES code.
2842 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2844 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2846 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2848 * config/mips/mipsv4.mh: Delete file.
2850 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2852 (hpread_adjust_stack_address): Delete declaration.
2854 2004-06-08 Andrew Cagney <cagney@gnu.org>
2856 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2857 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2858 PTRACE_ATTACH / PTRACE_DETACH available call error.
2859 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2860 * infttrace.c (update_thread_state_after_attach, attach, detach):
2861 Remove #ifdef wrappers.
2862 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2863 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2864 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2865 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2866 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2867 * config/nm-linux.h (ATTACH_DETACH): Delete.
2868 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2869 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2870 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2871 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2872 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2874 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2876 * configure.in: Set $configdir to the right OS specific value.
2877 Use value when setting $tcldir and $tkdir.
2878 * configure: Regenerate.
2880 2004-06-06 Paul Brook <paul@codesourcery.com>
2882 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2885 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2887 * ada-lang.c (lookup_symbol_in_language): New function to allow
2888 re-use of another language's symbol lookup code. (Placed here
2889 temporarily while Ada support is being integrated into the public
2891 (restore_language): New auxiliary function for
2892 lookup_symbol_in_language.
2893 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2894 temporarily while Ada support is being integrated into the public
2897 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2899 * Makefile.in (check//%): New.
2901 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2902 (mn10300_store_return_value): Rewrite.
2903 (mn10300_type_align): New.
2904 (mn10300_use_struct_convention): Rewrite.
2905 (mn10300_return_value): New, using all of the above.
2906 (mn10300_pop_frame_regular): Add saved_regs_size.
2907 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2909 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2910 regs if PC is on movm.
2912 2004-06-07 Jim Blandy <jimb@redhat.com>
2914 Add native Linux support for the PowerPC E500.
2915 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2916 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2917 all architectures except the E500.
2918 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2920 (struct gdb_evrregset_t): New type.
2921 (have_ptrace_getsetevrregs): New variable.
2922 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2923 fetch_spe_registers): New functions.
2924 (fetch_register): Call fetch_spe_register as appropriate.
2925 Assert that we're only passed raw register numbers.
2926 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2927 Don't fetch gprs if they're pseudoregisters.
2928 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2929 store_spe_registers): New functions.
2930 (store_register): Call store_spe_register as appropriate.
2931 Assert that we're only passed raw register numbers.
2932 (store_ppc_registers): Call store_spe_registers as appropriate.
2933 Don't store gprs if they're pseudoregisters.
2935 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2937 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2938 struct if one exists, even if we are dealing with a zombie thread.
2940 2004-06-07 Andrew Cagney <cagney@gnu.org>
2942 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2943 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2944 Rename PC_REQUIRES_RUN_BEFORE_USE.
2945 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2948 2004-06-07 Randolph Chung <tausq@debian.org>
2950 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2951 unwinding after sp has been saved to the stack but before the end
2952 of the prologue, and after the fp has been modified but before it has
2953 been saved to the stack.
2954 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2955 Remove superfluous definitions.
2956 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2958 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2960 Committed by Randolph Chung.
2961 * hppa-linux-nat.c: Include the correct version of the header file
2962 depending on the kernel version.
2964 2004-06-06 Randolph Chung <tausq@debian.org>
2966 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2967 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2969 2004-06-06 Randolph Chung <tausq@debian.org>
2971 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2972 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2973 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2974 * hppa-tdep.c (hppa_symbol_address): New function definition.
2975 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2977 2004-06-06 Randolph Chung <tausq@debian.org>
2979 * hppa-tdep.h (struct value): Forward declaration.
2980 (gdbarch_tdep): Define tdep find_global_pointer method.
2981 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2982 associated with the function we are trying to call, and write it
2984 (hppa32_convert_from_funct_ptr_addr): New function.
2985 (hppa_find_global_pointer): New function.
2986 (hppa_gdbarch_init): Set default find_global_pointer method; set
2987 convert_from_func_ptr_addr method.
2988 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2989 (hppa_linux_init_abi): Set find_global_pointer method.
2990 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2992 2004-06-06 Randolph Chung <tausq@debian.org>
2994 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2995 to struct value *function.
2996 * gdbarch.c: Regenerate.
2997 * gdbarch.h: Likewise.
2998 * infcall.c (call_function_by_hand): Pass entire function value
3001 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3002 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3003 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3004 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3005 * arm-tdep.c (arm_push_dummy_call): Likewise.
3006 * avr-tdep.c (avr_push_dummy_call): Likewise.
3007 * cris-tdep.c (cris_push_dummy_call): Likewise.
3008 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3009 * frv-tdep.c (frv_push_dummy_call): Likewise.
3010 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3011 * hppa-tdep.c (hppa32_push_dummy_call)
3012 (hppa64_push_dummy_call): Likewise.
3013 * i386-tdep.c (i386_push_dummy_call): Likewise.
3014 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3015 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3016 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3017 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3018 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3019 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3020 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3021 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3022 (ppc64_sysv_abi_push_dummy_call): Likewise.
3023 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3024 (ppc64_sysv_abi_push_dummy_call): Likewise.
3025 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3026 * s390-tdep.c (s390_push_dummy_call): Likewise.
3027 * sh-tdep.c (sh_push_dummy_call_fpu)
3028 (sh_push_dummy_call_nofpu): Likewise.
3029 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3030 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3031 * vax-tdep.c (vax_push_dummy_call): Likewise.
3033 2004-06-04 Jim Blandy <jimb@redhat.com>
3035 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3036 gdbarch argument to register_size.
3038 * rs6000-tdep.c (rs6000_store_return_value): Use
3039 regcache_cooked_write_part instead of
3040 deprecated_write_register_bytes.
3041 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3042 not gdbarch_deprecated_store_return_value.
3044 * ppc-linux-nat.c (store_register, fetch_register): Remove
3045 incorrect assertions. Simplify and generalize handling of
3046 transfers whose sizes are not multiples of, or less than, sizeof
3049 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3051 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3052 as a new thread event.
3053 * thread-db.c (thread_get_info_callback): If the thread is a
3054 zombie, return TD_THR_ZOMBIE.
3055 (thread_from_lwp): If thread_get_info_callback returns
3056 TD_THR_ZOMBIE, check if the thread is still on the thread list
3057 and return a -1 ptid if not found.
3058 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3059 change the status to TARGET_WAITKIND_SPURIOUS.
3061 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3063 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3064 double values in little endian mode.
3066 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3068 Committed by Andrew Cagney.
3069 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3070 after last enum constant to avoid error from IBM C
3073 2004-06-02 Jim Blandy <jimb@redhat.com>
3075 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3076 to 'message', and make it local to the lone block that uses it.
3078 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3080 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3082 * ada-exp.y: Update copyright notice.
3085 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3086 SPECIAL_VARIABLE and unify the treatment of these cases.
3088 (write_attribute_call0): Remove.
3089 (write_attribute_call1): Remove.
3090 (write_attribute_calln): Remove.
3091 (save_qualifier): Add missing semicolon.
3093 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3094 temporarily disabled to allow compilation with FSF head version.
3096 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3097 use individual operators (OP_*) for all attributes.
3098 (exp syntax): Use write_int.
3099 Handle STRING literals with OP_STRING.
3100 (variable syntax): Add limit parameter to calls to
3101 write_object_renaming.
3103 (temp_parse_space): New definition to hold entities that need
3104 only live until the next call to ada_parse.
3105 (string_to_operator): Rename fields of ada_opname_table entries.
3107 (write_var_from_sym): Record block.
3108 (write_var_from_name): Minor reformatting.
3109 Make sure saved name is properly encoded in the case of multiple
3110 matches, and set its language to Ada.
3112 Modify to indicate unresolved name as symbol in the UNRESOLVED
3113 namespace, allocated in temp_parse_space.
3114 (write_int): New function.
3116 (write_object_renaming): Add max_depth parameter to limit
3117 chains of object renamings.
3118 Handle case where root of renaming expression is itself a renaming.
3119 Use temp_parse_space for temporary name buffer.
3120 Handle renamings to dereferenced pointers (___XEXA suffices).
3122 (ada_parse, yyerror, string_to_operator,
3123 write_var_from_sym, write_var_from_name, write_attribute_call0,
3124 write_attribute_call1, write_attribute_calln,
3125 write_object_renaming): Protoize.
3127 (_initialize_ada_exp): New function.
3129 * ada-lang.c: Update copyright notice.
3130 General terminology change to conform to GNAT compiler usage:
3131 mangle => encode, demangle => decode
3132 Include gdb_obstack.h.
3141 (ADA_RETAIN_DOTS): Make sure this is defined.
3142 (TRUNCATION_TOWARDS_ZERO): Define.
3143 (struct string_vector): Define.
3144 (unresolved_names): Remove definition.
3145 (xnew_string_vector): New function.
3146 (string_vector_append): New function.
3147 (extract_string): Make static.
3148 (ada_unqualified_name): New function.
3149 (add_angle_brackets): New function.
3150 (function_name_from_pc): New function.
3151 (place_on_stack): Rename to ensure_lval.
3153 (ensure_lval): Renamed from place_on_stack.
3154 Make identity on lvals.
3156 (is_nonfunction): New interface.
3157 Only symbols in LOC_CONST class can be enumerals.
3158 (fill_in_ada_prototype): Remove; now independent of language.
3159 (add_defn_to_vec): Add obstack and symtab arguments.
3160 Use obstack to hold collected definitions.
3161 (num_defns_collected): New function.
3162 (defns_collected): New function.
3163 (ada_resolve_subexp): Rename to resolve_subexp.
3164 (resolve_subexp): Renamed from ada_resolve_subexp.
3165 (ada_op_name): Return non-const result.
3166 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3169 (to_fixed_array_type): Add declaration.
3170 (coerce_unspec_val_to_type): Remove offset parameter.
3171 (find_sal_from_funcs_and_line): New interface.
3172 (find_line_in_linetable): Ditto.
3174 (all_sals_for_line): Rename to ada_sals_for_line and make
3176 Add new parameter. When set, do not ask the user to choose the
3177 instance, but use the first one found instead.
3178 Use given line number in returned sals.
3180 Skip the prologue if funfirstline is set.
3181 Correct for memory leak when 0 lines found.
3183 (value_pos_atr): Use pos_atr.
3184 (pos_atr): New function.
3185 (standard_lookup): Add block parameter.
3187 (makeTimeStart): Remove declaration and uses.
3188 (makeTimeStop): Remove declaration and uses.
3190 (ada_completer_word_break_characters): Allow for VMS.
3191 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3192 (raise_sym_name): New constant.
3193 (raise_unhandled_sym_name): New constant.
3194 (raise_assert_sym_name): New constant.
3195 (process_raise_exception_name): New constant.
3196 (longest_exception_template): New constant.
3197 (warning_limit): New variable to limit warnings during expression
3199 (warnings_issued): New variable to keep track of warnings issued.
3200 (known_runtime_file_name_patterns): New constant.
3201 (known_auxiliary_function_name_patterns): New constant.
3202 (symbol_list_obstack): New variable.
3204 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3205 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3206 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3207 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3208 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3209 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3210 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3211 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3214 (ada_get_field_index): New function.
3215 (lim_warning): New function.
3216 (ada_translate_error_message): New function.
3217 (MAX_OF_SIZE): New function.
3218 (MIN_OF_SIZE): New function.
3219 (UMAX_OF_SIZE): New function.
3220 (UMIN_OF_SIZE): New function.
3221 (discrete_type_high_bound): New function.
3222 (discrete_type_low_bound): New function.
3223 (base_type): New function.
3224 (do_command): Remove.
3226 (ada_update_initial_language): Use language_ada, not language_unknown.
3227 (ada_encode): Renamed from ada_mangle.
3228 Obey ADA_RETAIN_DOTS.
3229 (ada_decode): Renamed from ada_demangle.
3230 Update coding conventions.
3231 (decoded_names_store): New hash table.
3232 (ada_decode_symbol): New function.
3233 (ada_la_decode): New function.
3235 (modify_general_field): Correct computations of offset and bit
3237 (desc_base_type): Handle ref types, too.
3238 (ada_is_direct_array_type): New function.
3240 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3241 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3242 (ada_is_bogus_array_descriptor,ada_type_of_array,
3243 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3244 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3245 ada_is_array_descriptor_type.
3247 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3248 (ada_is_packed_array_type): Handle pointers or
3249 references to packed arrays as well.
3250 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3251 (decode_packed_array_type): Search for the packed array type
3252 symbol in the currently selected block and associated
3254 Use lookup_symbol again.
3256 (decode_packed_array): Handle pointers and references.
3257 Update call to coerce_unspec_val_to_type.
3258 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3259 (ada_value_primitive_packed_val): Improve comment.
3261 (ada_index_type): Substitute int type for "undefined".
3262 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3263 ada_array_langth, ada_is_string_type): Use renamed
3264 ada_is_simple_array_type.
3265 (empty_array): New function.
3267 (ada_resolve): Rename to resolve.
3268 (resolve): Make static.
3269 Call renamed resolve_subexp.
3271 (ada_resolve_subexp): Rename to resolve_subexp.
3272 (resolve_subexp): Update comment.
3273 Decomment disabled code.
3274 Add LOC_COMPUTED* cases.
3275 Modify to use temporary struct symbols (marked as being in
3276 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3277 OP_UNRESOLVED_VALUE.
3278 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3281 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3282 Use new ada_lookup_symbol_list interface.
3283 Use new ada_resolve_function interface.
3284 Remove OP_TYPE case.
3286 (ada_args_match): Idiot proof against null actuals.
3287 Use intermediate variables to clarify.
3288 (ada_resolve_function): Update comment and interface.
3289 (mangled_ordered_before): Rename to encoded_ordered_before and
3291 (sort_choices): Update comment and interface.
3292 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3293 (user_select_syms): New interface.
3294 Use new sort_choices interface.
3295 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3296 (possible_user_operator_p): Idiot-proof against null values.
3297 (ada_simple_renamed_entity): Don't make cleanup; rely on
3298 caller to free result string.
3299 Remove const from return type.
3300 (make_array_descriptor): Rename uses of place_on_stack to
3302 Make sure that arrays are on stack.
3304 (HASH_SIZE): Define.
3305 (struct cache_entry): Define.
3306 (cache_space): Define.
3308 (clear_ada_sym_cache): New function.
3309 (find_entry): New function.
3310 (lookup_cached_symbol): New function.
3311 (defn_vector_size): Define.
3312 (cache_symbol): New function.
3313 (defn_symbols): Remove.
3315 (standard_lookup): Use lookup_symbol_in_language to get effect of
3319 (symbol_completion_match): New function.
3320 (symbol_completion_add): New function.
3321 (ada_make_symbol_completion_list): New function.
3323 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3324 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3325 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3326 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3328 (ada_lookup_simple_minsym): New function.
3329 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3331 (add_symbols_from_enclosing_procs): New interface.
3332 Conditionalize more helpfully.
3333 Don't bother if program isn't running.
3334 Use new interface to get_frame_block.
3335 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3337 (remove_extra_symbols): New interface.
3338 (xget_renaming_scope): New function.
3339 (is_package_name): New function.
3340 (renaming_is_visible): New function.
3341 (remove_out_of_scope_renamings): New function.
3343 (ada_lookup_symbol_list): New interface.
3344 Properly reinitialize the symbol list obstack.
3345 Don't call add_symbols_from_enclosing_procs if we start from a
3346 static or global block.
3347 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3348 add_symbols_from_enclosing_procs.
3349 Add symtab data to cached entries.
3350 Handle symbols prefixed with
3351 "standard__" specially; strip prefix and don't look in local symbols.
3352 Do not include out of scope renaming symbols in list of
3354 Add const to block parameter.
3355 Move check for non-local, non-global symbols earlier.
3356 Remove timing stuff.
3357 (ada_lookup_symbol): New interface.
3358 Find symtab as well.
3359 (ada_lookup_symbol_nonlocal): New function.
3361 (is_name_suffix): Enhance suffix detection to recognize
3362 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3363 (is_dot_digits_suffix): New function.
3364 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3366 (ada_add_block_symbols): New interface. Use obstack to return results
3367 in a vector of struct ada_symbol_infos. Add symtab argument.
3368 Use new interface to add_defn_to_vec.
3369 Remove calls to fill_in_ada_prototype.
3370 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3372 (ada_finish_decode_line_1): Add const qualification to local to fix
3374 Start looking in static block for functions to avoid attempts
3375 to search frame chain for up-level variables.
3376 Adapt to new ada_sals_for_line interface.
3377 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3378 Handle quoting of the function name inside the spec string.
3379 Skip prologue when funfirstline is set and update the
3380 function documentation to that effect.
3382 (debug_print_lines, debug_print_block, debug_print_blocks,
3383 debug_print_symtab): Remove.
3385 (ada_main_name): New function.
3386 (ada_exception_breakpoint_type): New function.
3387 (is_known_support_routine): New function.
3388 (ada_find_printable_frame): Renamed from find_printable_frame and made
3390 Remove level parameter.
3391 Use new interface to select_frame.
3393 (begin_command): Remove.
3394 (ada_adjust_exception_stop): New function.
3395 (ada_print_exception_stop): New function.
3396 (exception_name_from_cond): New function.
3397 (ada_report_exception_break): Replace disabled code with
3398 conditionalization on GNAT_GDB.
3399 Get the exception name from the condition string.
3400 Remove and move functionality into new functions
3401 ada_print_exception_breakpoint_task and
3402 ada_print_exception_breakpoint_nontask.
3403 (error_breakpoint_runtime_sym_not_found): New function.
3404 (is_runtime_sym_defined): New function.
3405 (ada_breakpoint_rewrite): Uncomment suppressed code.
3406 Use symbolic error-message and runtime-symbol names.
3407 Surround runtime symbol names in quotes.
3408 Allow non-specific breakpoints on exceptions and assertions before
3411 (ada_is_tagged_type): Add parameter.
3412 (ada_is_tag_type): New function.
3413 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3414 (ada_variant_discrim_type): Ditto.
3415 (value_tag_from_contents_and_address): New function.
3416 (type_from_tag): New function.
3417 (struct tag_args): New structure used to communicate with
3419 (ada_tag_name_1): New function.
3420 (ada_tag_name): New function.
3422 (ada_scan_number): Update comment.
3423 (find_struct_field): New function.
3424 (ada_search_struct_field): Make static.
3425 (ada_value_struct_elt): New version that returns references when
3426 given pointers or references to structs.
3427 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3428 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3430 (ada_value_ind): Use new ada_to_fixed_value interface.
3431 (ada_coerce_ref): Ditto.
3432 (field_offset): Remove.
3434 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3435 (ada_find_renaming_symbol): New function.
3436 (ada_prefer_type): Prefer named types over unnamed ones.
3437 (variant_field_index): New function.
3438 (contains_variant_part): Removed: subsumed by variant_field_index.
3439 (ada_template_to_fixed_record_type): New function, mostly from
3440 template_to_fixed_record_type.
3441 (template_to_fixed_record_type):
3442 Do not scan the type fields beyond the last one; prevents a
3444 Handle case where variant field is listed BEFORE discriminant it
3446 Fix calculation of record length when bit length is
3447 not evenly divisible by char length.
3448 Move code to ada_template_to_fixed_record_type and call it.
3450 (template_to_static_fixed_type): Revise comment.
3451 Modify to work on ordinary record types as well as templates,
3452 so as to handle fields that use ___XVE or ___XVU encodings.
3453 (to_record_with_fixed_variant_part): Fill out comment.
3454 Initialize C++ stuff in right type.
3455 Allow case where DVAL is null.
3456 Handle case where variant field is not last.
3457 Fix typo concerning record length.
3458 (to_fixed_record_type): Decomment disabled code.
3459 (to_fixed_record_type): Use variant_field_index instead of
3460 contains_variant_part.
3461 (to_fixed_variant_branch_type): Ditto.
3462 (to_fixed_array_type): Decomment disabled code.
3463 (ada_to_fixed_type): Convert tagged types to the specific type.
3464 Deactivate the size-check for array types in order to avoid
3465 some false size alarms.
3466 (to_static_fixed_type): Decomment disabled code.
3467 Modify to call template_to_static_fixed_type
3468 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3469 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3470 Remove valaddr argument, as it is never really used.
3471 (ada_to_fixed_value): Change interface to act on single struct value*
3473 (adjust_pc_past_prologue): New function.
3474 (ada_attribute_name): Modify to take enum exp_opcode argument.
3476 (ada_enum_name): Recognize new homonym-distinguishing convention.
3477 Adjust local variable's type to remove compiler warning.
3478 Fix a small problem in the part that unqualifies the enumeration name.
3479 (ada_value_binop): New function.
3480 (ada_value_equal): New function.
3482 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3483 Don't give error message when not doing normal evaluation
3484 and a tagged type doesn't seem to contain a structure member.
3485 Give error message for packed arrays.
3486 For indexing arrays, handle pointers to packed arrays correctly.
3487 Handle case of 'first and 'last attributes of bare integral type
3488 without encoded subtype info.
3489 Remove some unnecessary casts.
3490 Fix uninitialized value of type in computing 'first, 'last, or 'length
3492 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3493 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3495 Attributes are now exp_opcode values.
3496 Correct treatment of 'modulus.
3497 Better error message for taking 'length of wrong kind of type;
3499 Change EVAL_NORMAL to noside for consistency.
3500 Use ada_value_binop for DIV, MOD, REM.
3501 Make special case out of array of length 0, since an argument
3502 of 0 upsets some platforms' malloc.
3503 Use OP_STRING instead of OP_ARRAY.
3504 For slice, add check that we have an array type before extracting
3505 a slice out of it. Avoids a SEGV.
3506 When evaluating an array slice, if the array type is a reference to
3507 an aligner type, then replace the aligner type by the actual type.
3508 Decomment disabled code.
3509 Remove some dead code.
3510 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3511 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3512 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3513 and UNOP_MBR to UNOP_IN_RANGE.
3514 If an array type has a parallel ___XVE type, then use it.
3515 Turn arrays into pointers for lvalue arrays.
3516 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3517 bounds error and handle 0-length slices.
3519 When selecting fields, apply ada_to_fixed_value (because the fields
3520 might have ___XVU or ___XVE encodings even if not dynamic.)
3521 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3522 (ada_is_system_address_type): New function.
3524 (get_var_value): Use new interface to ada_lookup_symbol_list.
3525 (get_int_var_value): New interface.
3526 (to_fixed_range_type): Allow unknown bound, with warning.
3527 (ada_is_modular_type): Decomment disabled code.
3528 (ADA_OPERATORS): New definition.
3529 (ada_operator_length): New function.
3530 (ada_expr_op_name): New function.
3531 (ada_forward_operator_length): New function.
3532 (ada_dump_subexp_body): New function.
3533 (ada_print_subexp): New function.
3534 (ada_exp_descriptor): New constant.
3535 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3536 (ada_language_defn): Add ada_exp_descriptor entry.
3537 Change ada_parse => parse.
3538 Add post-parser entry.
3539 Use ada-specific non-local symbol lookup.
3540 Don't use C-style arrays.
3541 String lower-bound is 1.
3542 Decomment disabled code.
3543 (parse): New function.
3544 New fields ada_translate_error_message, ada_lookup_symbol,
3545 ada_lookup_minimal_symbol.
3547 * ada-lang.h: Update copyright dates.
3548 Replace the mangle/demangle terminology throughout by the
3549 more appropriate encode/decode one.
3550 Include breakpoint.h.
3551 Forward declare struct partial_symbol, struct block.
3552 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3553 (EXTRACT_ADDRESS): Remove.
3554 (EXTRACT_INT): Remove.
3555 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3556 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3557 (MAX_RENAMING_CHAIN_LENGTH): Define.
3558 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3560 (enum task_states): Remove.
3561 ada_task_states: Remove.
3562 (fat_string): Remove.
3563 (struct entry_call): Remove.
3564 (struct task_fields): Remove.
3565 (struct task_entry): Remove.
3567 (struct ada_symbol_info): Define.
3568 (enum ada_attribute): Remove.
3569 (enum ada_operator): Define.
3571 (ada_get_field_index): Declare.
3572 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3573 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3574 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3575 (ada_lookup_symbol_list): New interface.
3576 (ada_decode_symbol): Declare.
3577 (ada_decode): Declare.
3578 (ada_lookup_symbol): New interface.
3579 (ada_update_initial_language): Declare.
3580 (ada_lookup_simple_minsym): Declare.
3581 (user_select_syms): New interface.
3582 (ada_sals_for_line): Declare.
3583 (ada_is_tagged_type): New interface.
3584 (ada_tag_name): Declare.
3585 (ada_lookup_struct_elt_type): Remove declaration.
3586 (ada_search_struct_field): Remove declaration.
3587 (ada_attribute_name): New interface.
3588 (ada_is_system_address_type): Declare.
3589 (ada_to_fixed_value): Remove declaration.
3590 (ada_template_to_fixed_record_type_1): Declare.
3591 (get_int_var_value): New interface.
3592 (ada_find_any_symbol): Declare.
3593 (ada_find_renaming_symbol): Declare.
3594 (ada_mangle): Rename to ada_encode.
3595 (ada_simple_renamed_entity): Remove const.
3596 (ada_main_name): Declare.
3597 (get_current_task): Rename to ada_get_current_task.
3598 (get_entry_number): Remove declaration.
3599 (ada_report_exception_break): Remove declaration.
3600 (ada_print_exception_breakpoint_nontask): Declare.
3601 (ada_print_exception_breakpoint_task): Declare.
3602 (ada_find_printable_frame): Declare.
3604 * ada-lex.l: Update copyright notices.
3605 Use xmalloc and xfree instead of malloc and free.
3606 Use new interface to name_lookup.
3607 Use new interface to
3608 ada_mangle=>ada_encode.
3609 Redo handling of '$...' variable to parallel current treatment
3611 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3612 digit_to_int, strtoulst, processInt, processReal, processId,
3613 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3616 (processInt): Use cast to remove harmless warning.
3617 (processReal): Modify to get rid of compiler warning on scan formats.
3619 (processId): Replace xmalloc with obstack_alloc for name and remove
3620 call to ada_name_string_cleanup.
3621 Remove obsolete disabled code.
3622 (name_lookup): Ditto.
3624 Use obsavestring on temp_parse_space instead of savestring
3625 on name, and remove call to ada_name_string_cleanup.
3626 Free string returned from ada_simple_renamed_entity.
3627 Use new interface to ada_lookup_symbol_list.
3628 Decomment disabled code.
3629 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3631 When a type name lookup succeeds as a result of
3632 lookup_primitive_typename, check for regular type entry that has not
3634 Limit length of chain of renamed symbols we are willing to follow.
3635 Do not break names beginning with "standard__" into segments.
3636 (block_lookup): Use new interface to ada_lookup_symbol_list.
3638 * ada-typeprint.c: Update copyright notice.
3639 (demangled_type_name): Rename to decoded_type_name.
3640 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3641 (print_range_bound): Correct handling of negative
3642 bounds that make the index type looked unsigned under STABS.
3643 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3644 (print_range_type_named): Use the builtin int type if no type
3645 corresponding to the given type name could be found.
3646 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3647 Add some bullet-proofing.
3648 (print_variant_clauses): Allow for variant branches with ___XVU
3649 encodings that are not dynamic fields.
3650 Use new interface to ada_is_tagged_type.
3651 (print_record_type): Allow for fields with ___XVE encodings that
3652 are not dynamic fields.
3653 Use new interface to ada_is_tagged_type.
3654 (ada_print_type): ada_is_array_descriptor =>
3655 ada_is_array_descriptor_type.
3657 * ada-valprint.c: Update copyright notice.
3658 Include gdb_string.h
3660 (ui_memcpy): New function.
3661 (ada_print_floating): New function.
3662 (ada_print_str): Order arguments correctly.
3663 Correct handling of empty arrays and arrays of 0-length items.
3664 ada_is_array_descriptor => ada_is_array_descriptor_type
3665 Print values of type System.Address in hexadecimal format.
3666 Use ada_print_floating to print floating-point numbers in Ada format.
3667 Print class tag values with type names.
3668 No longer print the address of reference values. Avoids
3669 a potential confusion.
3670 (ada_value_print): Stop printing the object type for reference
3671 values, but preserve that behavior for access types. Avoids
3672 a potential confusion.
3673 Simplify one conditional expression, as the first part is now
3675 ada_is_array_descriptor => ada_is_array_descriptor_type
3676 Add check for arrays for null records, and print them by hand.
3678 2004-06-01 Jim Blandy <jimb@redhat.com>
3680 * ppc-tdep.h: Delete unused 'regoff' member.
3681 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3683 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3686 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3687 (hpread_read_struct_type): Likewise.
3689 2004-06-01 Andrew Cagney <cagney@gnu.org>
3691 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3692 instead of xasprintf.
3693 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3694 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3695 (mi_cmd_data_list_register_names)
3696 (mi_cmd_data_list_changed_registers)
3697 (mi_cmd_data_list_register_values)
3698 (get_register, mi_cmd_data_write_register_values)
3699 (mi_cmd_data_write_register_values)
3700 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3701 (mi_cmd_target_download, mi_cmd_target_select)
3702 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3703 (mi_execute_cli_command, mi_execute_async_cli_command)
3704 (mi_execute_async_cli_command): Ditto.
3705 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3706 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3708 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3709 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3710 error_last_message instead of mi_error_last_message.
3711 * mi/mi-main.c (mi_error_last_message): Delete function.
3713 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3714 "invalid number of columns" error. Delete redundant "out of
3717 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3719 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3720 (gregset_t, fpregset_t): Remove typedefs.
3721 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3722 (REG_OFFSET): Rename argument.
3723 (i386bsd_r_reg_offset): Rename from reg_offset.
3724 (REG_ADDR): Remove macro.
3725 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3727 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3728 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3729 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3730 instead of supply_gregset.
3731 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3732 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3733 instead of fill_gregset.
3734 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3736 * i386bsd-nat.c: Don't include "gregset.h".
3737 (supply_gregset, fill_gregset): Make static.
3738 (supply_fpregset, fill_fpregset): Remove.
3739 * Makefile.in (i386bsd-nat.o): Update dependencies.
3741 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3743 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3744 "gdb_assert.h". Con't include "gregset.h".
3745 (fbsd_make_corefile_notes): Use regset-based core file support
3746 instead off fill_gregset and fill_fpregset.
3747 * Makefile.in (fbsd-proc.o): Update dependencies.
3749 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3751 (m88k_frame_prev_register): Simplify code a bit.
3753 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3754 (amd64_collect_fpregset): New function.
3755 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3757 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3759 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3760 (i386_collect_gregset): New function.
3761 (i386_supply_fpregset): Adjust comment.
3762 (i386_collect_fpregset): New function.
3763 (i386_regset_from_core_section): Use i386_collect_gregset and
3764 i386_collect_fpregset.
3766 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3767 handle VALUEP being null.
3769 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3771 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3773 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3775 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3776 assembler in OpenBSD 3.5-current.
3777 (amd64obsd_sigcontext_addr): Likewise.
3779 2004-05-28 Jim Blandy <jimb@redhat.com>
3781 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3782 register set, so our regcache isn't declared "legacy" and our E500
3783 pseudoregister read and write functions aren't ignored.
3784 (rs6000_register_byte, rs6000_register_raw_size,
3785 rs6000_register_virtual_type, rs6000_register_convertible,
3786 rs6000_register_convert_to_virtual,
3787 rs6000_register_convert_to_raw): Deleted.
3788 (rs6000_register_type, rs6000_convert_register_p,
3789 rs6000_register_to_value, rs6000_value_to_register): New
3791 (rs6000_gdbarch_init): Don't register
3792 gdbarch_deprecated_register_size,
3793 gdbarch_deprecated_register_bytes,
3794 gdbarch_deprecated_register_byte,
3795 gdbarch_deprecated_register_raw_size,
3796 gdbarch_deprecated_register_virtual_type,
3797 gdbarch_deprecated_register_convertible,
3798 gdbarch_deprecated_register_convert_to_virtual, or
3799 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3800 register gdbarch_register_type, gdbarch_convert_register_p,
3801 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3803 2004-05-26 Jim Blandy <jimb@redhat.com>
3805 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3806 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3807 functions, updated to match the register numberings used in GCC.
3808 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3809 rs6000_dwarf2_reg_to_regnum as register number conversions
3810 functions for STABS and Dwarf2.
3812 2004-05-26 Randolph Chung <tausq@debian.org>
3814 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3817 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3819 * NEWS: Document new "start" command.
3821 2004-05-25 Randolph Chung <tausq@debian.org>
3823 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3826 2004-05-25 Randolph Chung <tausq@debian.org>
3828 * hppa-hpux-tdep.c (offsetof): Define.
3829 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3830 (hppa32_hpux_frame_base_before_sigtramp)
3831 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3832 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3833 (hppa64_hpux_frame_base_before_sigtramp)
3834 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3836 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3837 (hppa_hpux_sigtramp_frame_unwind_cache)
3838 (hppa_hpux_sigtramp_frame_this_id)
3839 (hppa_hpux_sigtramp_frame_prev_register)
3840 (hppa_hpux_sigtramp_frame_unwind)
3841 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3842 (hppa_hpux_init_abi): Register sigtramp unwinder.
3843 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3845 2004-05-25 Randolph Chung <tausq@debian.org>
3847 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3848 and multiple stack unwinds.
3849 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3851 2004-05-25 Andrew Cagney <cagney@gnu.org>
3853 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3854 * symfile-mem.h: Delete file.
3855 * symfile-mem.c: Do not include "symfile-mem.h".
3856 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3857 "struct bfd_section". When an error do not bother returning NULL.
3858 (add_symbol_file_from_memory_command): Use "struct bfd" and
3859 "struct bfd_section".
3860 * Makefile.in (symfile_mem_h): Delete.
3861 (symfile-mem.o): Update dependencies.
3863 2004-05-25 Nick Roberts <nickrob@gnu.org>
3865 * gdb-mi.el: New file.
3867 2004-05-25 Andrew Cagney <cagney@gnu.org>
3869 * inftarg.c: Include "observer.h".
3870 (child_attach, child_create_inferior): Notify inferior_created.
3871 * corelow.c: Include "observer.h".
3872 (core_open): Notify inferior_created.
3873 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3875 2004-05-25 Andrew Cagney <cagney@gnu.org>
3877 * target.h (struct target_ops): Add from_tty to
3879 (target_create_inferior, find_default_create_inferior): Update.
3880 * infcmd.c (run_command): Update.
3881 * wince.c (child_create_inferior): Update.
3882 * win32-nat.c (child_create_inferior): Update.
3883 * uw-thread.c (uw_thread_create_inferior): Update.
3884 * thread-db.c (thread_db_create_inferior): Update.
3885 * target.c (debug_to_create_inferior)
3886 (find_default_create_inferior): Update.
3887 (maybe_kill_then_create_inferior): Update.
3888 * sol-thread.c (sol_thread_create_inferior): Update.
3889 * remote.c (extended_remote_async_create_inferior)
3890 (extended_remote_create_inferior): Update.
3891 * remote-vx.c (vx_create_inferior): Update.
3892 * remote-st.c (st2000_create_inferior): Update.
3893 * remote-sim.c (gdbsim_create_inferior): Update.
3894 * remote-sds.c (sds_create_inferior): Update.
3895 * remote-rdp.c (remote_rdp_create_inferior): Update.
3896 * remote-rdi.c (arm_rdi_create_inferior): Update.
3897 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3898 * remote-e7000.c (e7000_create_inferior): Update.
3899 * procfs.c (procfs_create_inferior): Update.
3900 * ocd.c (ocd_create_inferior): Update.
3901 * ocd.h (ocd_create_inferior): Update.
3902 * nto-procfs.c (procfs_create_inferior): Update.
3903 * monitor.c (monitor_create_inferior): Update.
3904 * lin-lwp.c (lin_lwp_create_inferior): Update.
3905 * inftarg.c (child_create_inferior): Update.
3906 * hpux-thread.c (hpux_thread_create_inferior): Update.
3907 * gnu-nat.c (gnu_create_inferior): Update.
3909 2004-05-25 Andrew Cagney <cagney@gnu.com>
3911 * MAINTAINERS: Update e-mail address.
3913 2004-05-24 Randolph Chung <tausq@debian.org>
3915 * thread.c (info_threads_command, thread_apply_all_command)
3916 (thread_apply_command, thread_command, do_captured_thread_select):
3917 Remove HPUXHPPA-specific code.
3919 2004-05-24 Randolph Chung <tausq@debian.org>
3921 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3923 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3926 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3928 * infcmd.c (kill_if_already_running): New function, extracted
3930 (run_command): Replace extracted code by call to
3931 kill_if_already_running().
3932 (start_command): New function.
3933 (_initialize_infcmd): Add "start" command.
3935 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3937 Add OpenBSD/m88k support.
3938 * NEWS (New native configurations): Mention OpenBSD/m88k.
3939 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3940 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3941 * Makefile.in (m88k_tdep_h): New variable.
3942 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3943 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3944 * configure.host: Add m88*-*-openbsd*.
3945 * configure.tgt: Add m88*-*-openbsd*.
3947 2004-05-24 Jim Blandy <jimb@redhat.com>
3949 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3952 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3954 * symtab.c (fixup_section): Search section table when lookup by
3957 2004-05-24 Randolph Chung <tausq@debian.org>
3959 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3962 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3964 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3965 register number in regcache_raw_collect call.
3966 (m68kbsd_collect_fpregset): Likewise.
3967 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3969 * regset.h (struct regset): Add back `regset' member.
3971 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3973 * configure.in: Check for td_pcb in `struct thread'.
3974 * configure, config.in: Regenerated.
3976 * dpx2-nat.c: Remove file.
3977 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3978 (dpx2-nat.o): Remove dependencies.
3980 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3981 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3982 (amd64obsd_supply_pcb): New function.
3983 (_initialize_amd64obsd_nat): Enable libkvm interface.
3984 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3985 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3986 (LOADLIBES): New variable.
3988 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3989 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3990 (sparc32nbsd_supply_pcb): New function.
3991 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3992 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3993 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3994 (LOADLIBES): New variable.
3996 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3998 * bsd-kvm.c, bsd-kvm.h: New files.
3999 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4001 (i386fbsd_supply_pcb): New function.
4002 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4003 (i386fbsd-nat.o): Update dependencies.
4004 (bsd_kvm_h): New variable.
4005 (bsd-kvm.o): New dependency.
4006 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4007 (LOADLIBES): New variable.
4009 * regset.c: Tweak comment.
4010 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4012 * regset.h: Update copyright year.
4013 (struct regset): Remove `descr' member, add `gdbarch' member.
4014 (regset_alloc): Adjust prototype and comment.
4015 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4016 (i386_supply_fpregset): Likewise.
4017 (i386_regset_from_core_section): Update call to regset_alloc.
4018 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4020 (i386obsd_aout_regset_from_core_section): Update call to
4022 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4024 (i386nbsd_aout_regset_from_core_section): Update call to
4026 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4028 (amd64_regset_from_core_section): Update call to regset_alloc.
4029 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4031 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4032 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4033 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4034 (sparc32nbsd_init_abi): Update call to regset_alloc.
4035 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4036 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4037 (sparc64obsd_init_abi): Update call to regset_alloc.
4038 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4039 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4040 (sparc64nbsd_init_abi): Update call to regset_alloc.
4041 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4042 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4043 (sparc64fbsd_init_abi): Update call to regset_alloc.
4045 2004-05-22 Jim Blandy <jimb@redhat.com>
4047 * ppc-tdep.h (spe_register_p): New declaration.
4048 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4050 * rs6000-tdep.c (spe_register_p): New function.
4051 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4053 (rs6000_gdbarch_init): Initialize the new members of the tdep
4056 2004-05-21 Jim Blandy <jimb@redhat.com>
4058 * ppc-linux-nat.c (fetch_register): Move code back to be next
4059 to the comment that describes it. (Moved code, instead of
4060 comment, for symmetry with store_register.)
4062 Allocate regset structures in the gdbarch's obstack, not using
4064 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4065 Add 'arch' argument. Allocate the regset on arch's obstack, not
4067 * regset.h (regset_alloc): Update declaration.
4068 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4070 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4071 * i386-tdep.c (i386_regset_from_core_section): Same.
4072 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4073 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4074 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4075 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4076 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4077 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4079 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4081 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4083 2004-05-21 Jim Blandy <jimb@redhat.com>
4085 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4086 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4088 2004-05-20 Jim Blandy <jimb@redhat.com>
4090 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4092 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4094 * regset.h: Make prototype const-correct.
4095 * regset.c (regset_xmalloc): Make const-correct.
4097 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4099 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4100 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4101 (symbol_search_name): Declare.
4103 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4104 (iter_name_next_hashed): Ditto.
4105 (iter_name_next_linear): Ditto.
4106 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4108 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4109 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4110 (symbol_search_name): New function.
4112 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4114 * minsyms.c (build_minimal_symbol_hash_tables): Change
4115 test for adding to demangled hash table to check for difference
4116 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4118 2004-05-19 Jim Blandy <jimb@redhat.com>
4120 Use a constructor function to create regset structures.
4121 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4122 (struct regset): Use supply_regset_ftype. Add new
4123 'collect_regset' member.
4124 (regset_xmalloc): New declaration.
4125 * regset.c: New file.
4126 * am64-tdep.c (amd64_regset_from_core_section): Use
4127 regset_xmalloc to construct regset structures.
4128 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4129 * i386-tdep.c (i386_regset_from_core_section): Same.
4130 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4131 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4132 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4133 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4134 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4135 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4136 * Makefile.in (COMMON_OBS): Add regset.o.
4137 (regset.o): New rule.
4139 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4141 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4142 and pthread_cond_wait.c.
4144 2004-05-18 Jim Blandy <jimb@redhat.com>
4146 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4147 before the mach-specific switch, and then let the individual cases
4148 override the defaults, rather than leaving them uninitialized
4149 until the switch and then setting them in each case.
4151 2004-05-18 Randolph Chung <tausq@debian.org>
4153 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4154 millicode functions.
4156 2004-05-18 Randolph Chung <tausq@debian.org>
4158 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4159 references to dld_flags_buffer consistent.
4161 2004-05-18 Randolph Chung <tausq@debian.org>
4163 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4164 it for unwinding the stack.
4166 2004-05-18 Randolph Chung <tausq@debian.org>
4168 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4169 Undefine these so we can overide them using gdbarch.
4171 2004-05-18 Randolph Chung <tausq@debian.org>
4173 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4174 handling for 64-bit HPUX (elf).
4176 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4178 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4180 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4181 * ia64-tdep.c (examine_prologue): Likewise.
4182 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4183 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4185 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4187 * vax-tdep.c (vax_return_value): Implement
4188 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4190 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4192 * vax-tdep.c (vax_return_value): Fix typo.
4194 2004-05-17 Andrew Cagney <cagney@redhat.com>
4196 * MAINTAINERS: Mark Salter was also responsible for
4199 * NEWS: Mention signal fixes.
4201 2004-05-17 Randolph Chung <tausq@debian.org>
4203 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4204 check to see if we are unwinding an export stub. Export stubs clobber
4205 the %rp in the call path and stores the original rp in a stack slot.
4207 2004-05-17 Jim Blandy <jimb@redhat.com>
4209 * MAINTAINERS: Update address for J.T. Conklin.
4211 2004-05-17 Randolph Chung <tausq@debian.org>
4213 * hppa-tdep.c: Remove superfluous #include's.
4214 * Makefile.in (hppa-tdep.o): Update dependencies.
4216 2004-05-17 Randolph Chung <tausq@debian.org>
4218 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4219 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4220 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4221 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4222 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4223 Remove static function declarations.
4225 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4227 * alphabsd-nat.c: Update copyright year.
4228 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4230 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4233 * m68k-tdep.c (m68k_svr4_return_value): Implement
4234 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4236 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4238 * sol-thread.c Update copyright year. Fix various coding
4239 standards violations. Tweak a few comments.
4240 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4243 2004-05-15 Randolph Chung <tausq@debian.org>
4245 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4246 as pointer instead of array reference since HPUX compiler does
4247 not accept unsized array arguments.
4248 * somsolib.c (dld_flags_buffer): Use constant array size.
4250 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4252 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4253 offset with decimal offset.
4254 (amd64obsd_sigcontext_addr): Return correct address for entire
4257 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4258 instead of get_frame_base.
4260 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4261 (fill_gregset): Use regcache_raw_collect.
4263 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4266 * config/sparc/tm-nbsd64.h: Remove file.
4267 * config/tm-sunos.h: Remove file.
4269 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4271 * rs6000-tdep.c (store_param_on_stack_p): New function,
4272 an improved version of some code extracted from skip_prologue().
4273 (skip_prologue): Use store_param_on_stack_p() to detect
4274 instructions saving a parameter on the stack. Detect when r0
4275 is used to save a parameter.
4276 Do not mark "li rx, SIMM" instructions as part of the prologue,
4277 unless the following instruction is also part of the prologue.
4279 2004-05-14 Andrew Cagney <cagney@redhat.com>
4281 * infrun.c (handle_inferior_event): Simplify
4282 STEP_OVER_UNDEBUGGABLE.
4284 * infrun.c (handle_step_into_function): Delete function.
4285 (handle_inferior_event): Inline calls to
4286 handle_step_into_function.
4288 2004-05-14 Jerome Guitton <guitton@gnat.com>
4290 * rs6000-nat.c: Fix a comment.
4292 2004-05-12 David Anderson <davea@sgi.com>
4294 Committed by Jim Blandy <jimb@redhat.com>:
4295 * regcache.c (struct regcache_descr): fix comment spelling.
4297 2004-05-13 J. Brobecker <brobecker@gnat.com>
4299 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4300 Fixes a link link failure.
4302 2004-05-13 J. Brobecker <brobecker@gnat.com>
4304 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4305 error that was causing the build to fail.
4307 2004-05-13 J. Brobecker <brobecker@gnat.com>
4309 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4310 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4312 2004-05-13 Andrew Cagney <cagney@redhat.com>
4314 * infrun.c (handle_inferior_event): Check for
4315 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4316 calls. Update comments.
4318 2004-05-13 Jim Blandy <jimb@redhat.com>
4320 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4321 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4322 (store_regs_user_thread, store_regs_kernel_thread): Use
4323 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4324 * ppc-linux-nat.c (fill_gregset): Same.
4325 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4326 (ppc_linux_sigtramp_cache): Same.
4327 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4328 (ppcnbsd_sigtramp_cache_init): Same.
4329 * rs6000-nat.c (fetch_core_registers): Same.
4330 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4331 (rs6000_frame_cache): Same.
4333 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4334 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4335 of assuming that the gprs are numbered starting with zero.
4336 * ppc-linux-nat.c (fill_gregset): Same.
4337 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4338 * ppcnbsd-nat.c (getregs_supplies): Same.
4339 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4340 * rs6000-nat.c (fetch_core_registers): Same.
4341 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4343 2004-05-07 Michael Snyder <msnyder@redhat.com>
4345 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4346 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4348 2004-05-13 Andrew Cagney <cagney@redhat.com>
4350 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4352 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4354 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4355 base_address for shared libraries.
4357 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4359 * MAINTAINERS (write after approval): Add myself.
4361 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4363 * breakpoint.c (bpstat_stop_status): Add new argument
4364 STOPPED_BY_WATCHPOINT. Use it instead of testing
4365 target_stopped_data_address agaist 0 to check whether
4366 or not we stopped due to a hardware watchpoint.
4367 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4368 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4371 2004-05-12 Jim Blandy <jimb@redhat.com>
4373 * configure.in: When checking whether we should use the -bbigtoc
4374 option, don't forget to restore the original value of LDFLAGS.
4375 * configure: Regenerated.
4377 2004-05-12 Andrew Cagney <cagney@redhat.com>
4379 * thread.c (load_infrun_state): Delete step_sp.
4380 * infrun.c (context_switch): Ditto.
4381 * inferior.h (step_sp): Ditto.
4382 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4383 * gdbthread.h (struct thread_info, save_infrun_state)
4384 (restore_infrun_state): Ditto.
4386 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4388 * MAINTAINERS (write after approval): Add myself.
4390 2004-05-12 Andrew Cagney <cagney@redhat.com>
4392 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4393 eliminate reference to step_sp.
4394 (struct execution_control_state, init_execution_control_state)
4395 (handle_inferior_event, keep_going): Delete update_step_sp and
4397 * infcmd.c (step_sp): Note that variable is unused.
4399 2004-05-11 Andrew Cagney <cagney@redhat.com>
4401 * infrun.c (step_over_function): Delete function.
4402 (handle_step_into_function): Use insert_step_resume_breakpoint.
4403 (insert_step_resume_breakpoint): Fix assertion.
4405 2004-05-11 Nick Roberts <nickrob@gnu.org>
4407 * utils.c (defaulted_query): Just use the normal query input type
4408 when printing the annotations.
4410 2004-05-11 Andrew Cagney <cagney@redhat.com>
4412 * infrun.c (handle_inferior_event): Simplify code handling
4413 step-into or return-from a signal trampoline.
4415 2004-05-11 Andrew Cagney <cagney@redhat.com>
4417 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4418 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4420 2004-05-10 Jim Blandy <jimb@redhat.com>
4422 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4423 with a call to internal_error.
4425 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4426 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4427 processor variant lacks those registers.
4428 (ppc_floating_point_unit_p): Change description to make it clear
4429 that this returns info about the ISA, not the ABI.
4430 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4431 return true or false by checking tdep->ppc_fp0_regnum and
4432 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4433 arch/mach switching done in rs6000_gdbarch_init; it's better to
4434 keep that logic there, and just check the results here.
4435 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4436 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4437 floating-point registers.
4438 (ppc_supply_fpregset, ppc_collect_fpregset)
4439 (rs6000_push_dummy_call, rs6000_extract_return_value)
4440 (rs6000_store_return_value): Assert that we have floating-point
4442 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4443 (rs6000_frame_cache): Don't note the locations at which
4444 floating-point registers were saved if we have no fprs.
4445 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4447 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4448 (store_regs_user_thread, store_regs_kernel_thread): Only call
4449 supply_fprs / fill_fprs if we actually have floating-point
4451 (special_register_p): Check ppc_fpscr_regnum before matching
4453 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4454 supply / collect fpscr if we don't have it.
4455 * ppc-bdm.c: #include "gdb_assert.h".
4456 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4457 have floating-point registers, since I can't test this code on
4458 FP-free systems to adapt it.
4459 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4460 fpscr and floating point register numbers if they don't exist.
4461 (fetch_register): Assert that we have floating-point registers
4462 before we reach the code that handles them.
4463 (store_register): Same. And use tdep instead of calling
4465 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4467 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4468 fprs and fpscr if we don't have them.
4469 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4471 * ppcnbsd-nat.c: #include "gdb_assert.h".
4472 (getfpregs_supplies): Assert that we have floating-point registers.
4473 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4474 * ppcobsd-tdep.c: #include "gdb_assert.h".
4475 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4476 have floating-point registers.
4477 * rs6000-nat.c (regmap): Don't match against the fpscr and
4478 floating point register numbers if they don't exist.
4479 (fetch_inferior_registers, store_inferior_registers,
4480 fetch_core_registers): Only fetch / store / supply the
4481 floating-point registers and the fpscr if we have them.
4482 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4483 (ppcobsd-tdep.o): Update dependencies.
4485 2004-05-10 Andrew Cagney <cagney@redhat.com>
4487 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4488 (context_switch): Do not switch through_sigtramp_breakpoint.
4489 * gdbthread.h (save_infrun_state, load_infrun_state)
4490 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4491 and structure member.
4492 * thread.c (load_infrun_state, save_infrun_state): Update.
4494 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4496 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4498 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4500 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4502 * aclocal.m4: Regenerate.
4504 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4506 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4508 2004-05-10 Andrew Cagney <cagney@redhat.com>
4510 * infrun.c (check_sigtramp2): Delete function.
4511 (handle_inferior_event): When single stepping, and taking a
4512 signal, set a breakpoint at the signal return address. Delete
4513 redundant calls to check_sigtramp2.
4514 (insert_step_resume_breakpoint): New function.
4515 (through_sigtramp_breakpoint, handle_inferior_event)
4516 (follow_exec, wait_for_inferior, fetch_inferior_event)
4517 (currently_stepping, keep_going): Delete most uses of
4518 through_sigtramp_breakpoint, not that it should be deleted.
4519 (delete_breakpoint_current_contents): Delete function.
4521 2004-05-10 Randolph Chung <tausq@debian.org>
4523 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4525 * config/pa/tm-linux.h: New file.
4527 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4529 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4530 of prefixes. Don't print the prefix twice in the CLI.
4532 2004-05-10 Jim Blandy <jimb@redhat.com>
4534 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4535 collect all the gprs.
4537 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4538 loop collecting gprs.
4540 2004-05-09 Andrew Cagney <cagney@redhat.com>
4542 * remote-vx.c (net_step): Delete step-range code.
4543 * remote.c (remote_resume, init_all_packet_configs)
4544 (set_remote_protocol_E_packet_cmd)
4545 (show_remote_protocol_E_packet_cmd)
4546 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4547 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4548 (show_remote_protocol_e_packet_cmd): Ditto.
4550 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4552 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4554 * hppa-tdep.h: Update copyright year.
4555 (struct trad_frame_saved_reg): Add opaque declaration.
4557 * amd64-tdep.c (amd64_return_value): Implement
4558 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4560 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4561 (m68k_value_to_register): New functions.
4562 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4565 * defs.h (enum return_value_convention): Add
4566 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4567 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4568 * infcmd.c (legacy_return_value): New function.
4569 (print_return_value): Rwerite to implement
4570 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4571 * values.c (using_struct_return): Check for inequality to
4572 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4573 RETURN_VALUE_STRUCT_CONVENTION.
4574 * i386-tdep.c (i386_return_value): Implement
4575 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4577 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4578 include "symtab.h", "opcode/vax.h" and "inferior.h".
4579 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4580 to read_memory_unsigned_integer.
4581 (vax_gdbarch_init): Reorder.
4582 (_initialize_vax_tdep): Spell out prototype.
4583 * Makefile.in (vax-tdep.o): Update dependencies.
4585 2004-05-08 Andrew Cagney <cagney@redhat.com>
4587 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4588 * target.c (target_detach, target_disconnect): Ditto.
4590 * infcall.c (call_function_by_hand): When no
4591 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4592 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4593 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4594 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4595 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4597 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4600 deprecated_fix_call_dummy.
4601 * v850-tdep.c (v850_gdbarch_init): Ditto.
4602 * infcall.c (call_function_by_hand): Do not call
4603 DEPRECATED_FIX_CALL_DUMMY.
4605 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4606 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4607 * gdbarch.h, gdbarch.c: Re-generate.
4608 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4609 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4610 deprecated_sizeof_call_dummy_words.
4611 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4613 * v850-tdep.c (v850_gdbarch_init): Ditto.
4614 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4615 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4616 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4617 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4618 * arch-utils.h (legacy_call_dummy_words)
4619 (legacy_sizeof_call_dummy_words): Delete declarations.
4620 * arch-utils.c (legacy_call_dummy_words)
4621 (legacy_sizeof_call_dummy_words): Delete variables.
4623 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4624 * gdbarch.h, gdbarch.c: Re-generate.
4625 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4626 * infcall.c (call_function_by_hand): Eliminate call to
4627 DEPRECATED_PUSH_DUMMY_FRAME.
4628 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4630 (ns32k_push_dummy_frame): Delete function.
4632 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4633 deprecated_call_dummy_breakpoint_offset or
4634 deprecated_call_dummy_start_offset.
4635 * dummy-frame.c, arm-tdep.c: Update comments.
4636 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4637 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4638 * gdbarch.h, gdbarch.c: Re-generate.
4640 * infcall.c (legacy_push_dummy_code): Delete function.
4641 (push_dummy_code): Delete call.
4643 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4644 * gdbarch.h, gdbarch.c: Re-generate.
4645 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4646 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4647 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4648 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4650 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4651 (struct frame_info): Delete opaque declaration.
4652 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4653 * frame.c (get_frame_type): Delete call.
4655 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4657 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4658 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4660 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4662 * alphanbsd-tdep.c: Include "gdb_string.h".
4663 * armnbsd-tdep.c: Update copyright year.
4664 Include "gdb_string.h".
4665 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4668 * delta68-nat.c: Remove file.
4669 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4670 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4671 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4672 (delta68-nat.o): Remove dependency.
4674 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4676 (m68k_gdbarch_init): Don't set
4677 deprecated_frameless_function_invocation.
4679 2004-05-07 Randolph Chung <tausq@debian.org>
4681 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4682 read_memory_nobpt for code reading when doing frame unwinding.
4683 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4685 2004-05-07 Randolph Chung <tausq@debian.org>
4687 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4688 instead of sp, handle sigaltstack case.
4689 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4690 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4691 signal handler and not that of the caller.
4692 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4693 hppa_linux_sigtramp_find_sigcontext.
4695 2004-05-07 Randolph Chung <tausq@debian.org>
4697 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4699 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4700 * hppa-linux-nat.c (fetch_register, store_register): Define.
4701 (fetch_inferior_registers, store_inferior_registers): Define.
4702 (supply_gregset): Add comment and clean up some unneeded code.
4703 (fill_gregset): Add comment and fix so that it saves registers in
4704 the right place in the gregset.
4705 (fill_fpregset): Fix buffer overrun problem.
4706 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4708 2004-05-07 Randolph Chung <tausq@debian.org>
4710 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4711 do common handling of the pcoqt register.
4712 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4713 to use helper function.
4714 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4715 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4716 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4717 generic fallback unwinder when all else fails.
4718 (hppa_gdbarch_init): Add fallback sniffer.
4719 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4720 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4721 to use helper function.
4723 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4725 * config/djgpp/fnchange.lst: Add translation rules for
4726 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4728 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4730 * frame.c (get_prev_frame_1): Work around GCC bug.
4731 * frame.h: Add comment about GCC bug.
4733 2004-05-07 Andrew Cagney <cagney@redhat.com>
4735 * observer.c: Include "commands.h" and "gdbcmd.h".
4736 (observer_debug, _initialize_observer): Add the
4737 command "set/show debug observer".
4738 * observer.sh: When observer debugging, log notify calls.
4739 * Makefile.in (observer.o): Update dependencies.
4741 2004-05-07 Jason Molenda (jmolenda@apple.com)
4743 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4745 2004-05-07 Jim Blandy <jimb@redhat.com>
4747 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4748 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4749 to recognize gpr regnums, instead of assuming that
4750 tdep->ppc_fp0_regnum marks the end of the general-purpose
4753 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4754 the given architecture has floating-point registers.
4756 2004-05-07 Andrew Cagney <cagney@redhat.com>
4758 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4760 * gdbarch.h, gdbarch.c: Re-generate.
4761 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4762 deprecated_use_generic_dummy_frames.
4764 2004-05-07 Brian Ford <ford@vss.fsi.com>
4766 * NEWS: Mention Cygwin DWARF 2 support.
4768 2004-05-07 Andrew Cagney <cagney@redhat.com>
4770 * objfiles.h (struct entry_info): Delete unused fields
4771 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4772 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4773 * mipsread.c (mipscoff_symfile_read): Update.
4774 * mdebugread.c (parse_partial_symbols): Update.
4775 * dwarfread.c (read_file_scope): Update.
4776 * dwarf2read.c (read_file_scope): Update.
4777 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4778 * coffread.c (complete_symtab): Update.
4780 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4782 * infcall.c (_initialize_infcall): Fix typo.
4784 2004-05-07 Andrew Cagney <cagney@redhat.com>
4786 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4787 * command.h (add_setshow_zinteger_cmd): Declare.
4789 2004-05-06 Randolph Chung <tausq@debian.org>
4791 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4792 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4793 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4794 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4795 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4796 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4797 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4799 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4800 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4801 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4802 (hppa64_hpux_frame_find_saved_regs_in_sig)
4803 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4804 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4805 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4806 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4807 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4808 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4809 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4810 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4811 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4812 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4813 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4814 (hppa32_register_type, hppa_cannot_store_register)
4815 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4816 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4817 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4818 * pa64solib.c (pa64_solib_have_load_event)
4819 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4820 (pa64_solib_unloaded_library_pathname): Likewise.
4821 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4822 (som_solib_library_pathname): Likewise.
4824 2004-05-05 Jim Ingham <jingham@apple.com>
4826 * breakpoint.c (create_breakpoints): Copy the ignore count and
4827 thread id over from the pended breakpoint to the actual
4830 2004-05-05 Andrew Cagney <cagney@redhat.com>
4832 * gdbarch.sh (PARM_BOUNDARY): Delete.
4833 gdbarch.h, gdbarch.c: Re-generate.
4834 * valops.c (PARM_BOUNDARY): Delete macro.
4835 (value_push): Delete PARM_BOUNDARY code.
4836 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4838 2004-05-04 Jim Blandy <jimb@redhat.com>
4840 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4841 Don't assume that the gprs, fprs, and UISA sprs are
4842 contiguous, start at register number zero, and end with fpscr.
4843 Instead, use the numbers from the tdep structure.
4845 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4846 should no longer be used in code specific to the RS6000 and its
4848 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4849 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4850 tdep->ppc_fp0_regnum.
4851 (ppc_supply_fpregset, ppc_collect_fpregset)
4852 (rs6000_push_dummy_call, rs6000_extract_return_value)
4853 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4854 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4856 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4857 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4859 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4860 bdm_ppc_store_registers): Same.
4861 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4862 (store_register, fill_fpregset): Same.
4863 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4864 (ppc_linux_supply_fpregset): Same.
4865 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4866 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4868 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4869 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4870 ppc64_sysv_abi_return_value): Same.
4871 * rs6000-nat.c (regmap, fetch_inferior_registers)
4872 (store_inferior_registers, fetch_core_registers): Same.
4874 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4876 * m68knbsd-nat.c: Remove file.
4877 * m68knbsd-tdep.c: Remove file.
4878 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4880 * configure.host: Add m68k-*-netbsdelf*.
4881 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4882 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4883 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4885 * config/m68k/nbsdelf.mh: New file.
4886 * config/m68k/nbsd.mt: New file.
4887 * config/m68k/nbsdaout.mt: Remove file.
4888 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4889 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4890 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4891 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4892 (use_struct_convention): Remove prototype.
4893 (USE_STRUCT_CONVENTION): Remove define.
4894 * config/m68k/xm-nbsd.h: Remove file.
4896 2004-05-04 Michael Snyder <msnyder@redhat.com>
4898 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4899 reg_struct_return method (as gcc usually does for cross targets).
4901 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4903 Committed by Andrew Cagney.
4904 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4905 alignment padding when accessing ucontext struct members.
4907 2004-05-04 Jim Blandy <jimb@redhat.com>
4909 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4910 'ppc_gplast_regnum' member.
4911 (ppc_num_gprs): New enum constant.
4912 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4913 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4914 * rs6000-nat.c (regmap, fetch_inferior_registers,
4915 store_inferior_registers): Same.
4916 * rs6000-tdep.c (e500_pseudo_register_read)
4917 (e500_pseudo_register_write): Same.
4918 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4920 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4921 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4922 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4923 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4925 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4927 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4928 * rs6000-nat.c (regmap, fetch_inferior_registers)
4929 (store_inferior_registers): Same.
4931 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4934 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4936 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4937 failure detected by recent versions of GCC.
4938 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4939 to be consistent with the usage in dwarf2_create_include_psymtab.
4941 2004-05-03 Michael Snyder <msnyder@redhat.com>
4943 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4944 (heuristic_proc_start): Whitespace cleanup.
4946 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4948 * sun3-nat.c: Remove file.
4949 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4951 (ALLDEPFILES): Remove sun3-nat.c.
4952 (sun3-nat.o): Remove dependencies.
4954 * i386-interix-nat.c, i386-interix-tdep.c,
4955 config/i386/nm-interix.h, config/i386/interix.mh,
4956 config/i386/interix.mt: Remove files.
4957 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4960 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4962 * m68k-tdep.h (struct gdbarch_tdep): Add member
4963 struct_value_regnum.
4964 (m68k_svr4_init_abi): New prototype.
4965 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4966 different calling conventions.
4967 (m68k_extract_return_value): Remove code dealing with single-field
4969 (m68k_store_return_value): Remove code dealing with single-field
4970 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4971 (m68k_extract_struct_value_address): Remove function.
4972 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4973 (m68k_reg_struct_return_p, m68k_return_value)
4974 (m68k_svr4_return_value): New functions.
4975 (m68k_use_struct_convention): Remove function.
4976 (m68k_push_dummy_call): Use new struct_value_regnum member of
4977 `struct gdbarch_tdep' instead of hardcoded register number to
4979 (m68k_svr4_init_abi): New function.
4980 (m68k_gdbarch_init): Don't set extract_return_value,
4981 store_return_values, deprecated_extract_struct_value_address and
4982 use_struct_convention. Set return_value instead. Initialize new
4983 struct_value_regnum member of `struct gdbarch_tdep'.
4984 * m68klinux-tdep.c: Update copyright year.
4985 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4986 (m68k_linux_extract_struct_value_address): Remove function.
4987 (m68k_linux_init_abi): Don't set extract_return_value,
4988 store_return_values, deprecated_extract_struct_value_address and
4989 use_struct_convention. Call m68k_svr4_init_abi but override the
4990 new struct_value_regnum member of `struct gdbarch_tdep'.
4991 * Makefile.in (m68k-tdep.o): Update dependencies.
4993 2004-05-03 J. Brobecker <brobecker@gnat.com>
4995 * dwarf2read.c (line_header): Add new included_p field in
4997 (partial_die_info): New field has_stmt_list. New field line_offset.
4998 (dwarf2_create_include_psymtab): New function.
4999 (dwarf2_build_include_psymtabs): New function.
5000 (add_file_name): Add forward declaration. Initialize new field.
5001 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5002 to be able to determine the list of files included by the
5003 given unit, and build their associated psymtabs.
5004 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5006 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5007 (read_file_scope): Update call to dwarf_decode_lines.
5008 (read_partial_die): Handle DW_AT_stmt_list attributes.
5010 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5013 * configure.in: Revert special case for osf5.*.
5014 * configure: Regenerate.
5016 2004-05-02 Jim Blandy <jimb@redhat.com>
5018 Move the symbol-file-from-memory functions into their own file.
5019 * symfile-mem.c, symfile-mem.h: New files.
5020 * symfile.c (symbol_file_add_from_bfd): New function.
5021 (symbol_file_add): Call symbol_file_add_from_bfd.
5022 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5023 Moved to symfile-mem.c.
5024 (_initialize_symfile): Move definition of
5025 add-symbol-file-from-memory command to symfile-mem.c.
5026 * symfile.h (symbol_file_add_from_bfd): New declaration.
5027 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5028 * config/powerpc/linux.mt (TDEPFILES): Same.
5029 * Makefile.in (SFILES): Add symfile-mem.c.
5030 (symfile_mem_h): New variable.
5031 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5032 (symfile-mem.o): New rule.
5034 2004-05-01 Andrew Cagney <cagney@redhat.com>
5036 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5037 frame_find_by_id instead of frame_relative_level.
5038 (do_enable_breakpoint): Ditto.
5039 * thread.c: Update copyright.
5040 (info_threads_command): Ditto, simplify.
5042 * frame.c (deprecated_generic_get_saved_register): Delete
5043 function, moved to "xstormy16-tdep.c".
5044 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5045 deprecated_generic_get_saved_register from "frame.c".
5046 (xstormy16_frame_saved_register): Call
5047 xstormy16_get_saved_register.
5048 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5050 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5051 * frame.h (deprecated_generic_get_saved_register): Delete.
5053 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5055 * dwarfread.c: Update documentation on the state of dwarf-1.
5057 2004-05-01 Andrew Cagney <cagney@redhat.com>
5059 * stack.c (select_frame_command): Delete call to
5060 frame_relative_level.
5061 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5063 (frame_info): Do not print FRAMELESS.
5064 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5065 (catch_info): Delete #if0 code.
5067 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5068 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5069 of frame_relative_level.
5070 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5072 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5073 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5074 frame_relative_level.
5076 * frame.h (deprecated_set_frame_type): Delete declaration.
5077 * frame.c (deprecated_set_frame_type): Delete function, update
5080 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5081 * gdbarch.h, gdbarch.c: Re-generate.
5082 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5083 (shnbsd_pc_in_sigtramp): Delete.
5084 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5086 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5088 * frame.h: Update comments.
5089 * ppc-linux-tdep.c: Update comments.
5090 * breakpoint.c (bpstat_what): Update comments.
5092 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5093 m68klinux-tdep.o's dependencies, were previously added to
5096 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5097 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5098 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5099 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5100 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5102 * Makefile.in (m68klinux-nat.o): Update dependencies.
5103 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5104 (m68k_linux_sigtramp_frame_cache)
5105 (m68k_linux_sigtramp_frame_this_id)
5106 (m68k_linux_sigtramp_frame_prev_register)
5107 (m68k_linux_sigtramp_frame_unwind)
5108 (m68k_linux_sigtramp_frame_sniffer)
5109 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5110 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5111 names, use trad-frame.h.
5112 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5113 (struct m68k_sigtramp_info): Delete.
5114 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5115 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5116 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5117 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5120 * infrun.c (check_sigtramp2): Delete check for
5121 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5123 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5125 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5127 2004-05-01 Andrew Cagney <cagney@redhat.com>
5129 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5130 (frv_linux_sigtramp_frame_cache)
5131 (frv_linux_sigtramp_frame_this_id)
5132 (frv_linux_sigtramp_frame_prev_register)
5133 (frv_linux_sigtramp_frame_unwind)
5134 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5135 include "linux" in function and variable names, directly call
5136 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5137 the latest trad-frame code.
5138 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5139 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5140 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5141 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5142 * frv-tdep.c (frv_sigtramp_frame_cache)
5143 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5144 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5146 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5147 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5148 (frv_set_sigcontext_reg_addr): Delete function.
5150 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5151 (DEPRECATED_SIGTRAMP_END): Delete.
5152 * gdbarch.h, gdbarch.c: Re-generate.
5153 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5154 * config/vax/tm-vaxbsd.h: Update copyright.
5155 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5156 (DEPRECATED_IN_SIGTRAMP): Define.
5157 * config/m68k/tm-nbsd.h: Update copyright.
5158 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5159 (DEPRECATED_IN_SIGTRAMP): Define.
5161 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5163 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5164 encondings. Fixes PR gdb/1628.
5166 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5167 DW_CFA_restore state without a matching DW_CFA_remember_state
5168 instead of aborting. Fixes PR backtrace/1589.
5170 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5172 * MAINTAINERS: Add self as AIX maintainer.
5173 Update my e-mail address in write-after-approval section.
5175 2004-04-30 Andrew Cagney <cagney@redhat.com>
5177 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5178 (legacy_get_prev_frame): Ditto.
5180 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5181 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5182 * mipsread.c (sigtramp_address): Delete extern variable.
5183 (mipscoff_new_init): Delete reference.
5184 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5185 (fixup_sigtramp): Delete function.
5186 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5187 (fixup_sigtramp): Delete declarations.
5189 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5190 deprecated_pc_in_sigtramp.
5191 (ppcnbsd_pc_in_sigtramp): Delete function.
5193 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5195 * config/m68k/nm-nbsd.h: Tweak comments.
5196 * config/m68k/nm-nbsdaout.h: Likewise.
5198 2004-04-30 Andrew Cagney <cagney@redhat.com>
5200 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5201 legacy_pc_in_sigtramp.
5202 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5204 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5206 Add OpenBSD/m68k support.
5207 * NEWS (New native configurations): Mention OpenBSD/m68k.
5208 * m68kbsd-tdep.c: New file.
5209 * m68kbsd-nat.c: New file.
5210 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5211 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5212 * configure.host: Add m68k-*-openbsd.
5213 * configure.tgt: Add m68k-*-openbsd.
5214 * config/m68k/tm-obsd.h: New file.
5215 * config/m68k/obsd.mt: New file.
5216 * config/m68k/obsd.mh: New file.
5217 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5220 2004-04-30 Andrew Cagney <cagney@redhat.com>
5222 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5223 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5225 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5227 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5228 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5230 2004-04-30 Brian Ford <ford@vss.fsi.com>
5232 Revert 2004-04-16 change.
5233 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5234 (i386_coff_init_abi): Remove.
5235 * i386-tdep.h (i386_coff_init_abi): Remove.
5236 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5238 2004-04-30 Andrew Cagney <cagney@redhat.com>
5240 * blockframe.c (find_pc_partial_function): Delete use of
5241 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5242 DEPRECATED_SIGTRAMP_END.
5244 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5245 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5246 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5247 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5248 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5250 * defs.h (deprecated_inside_entry_file): Delete declaration.
5251 * blockframe.c (deprecated_inside_entry_file): Delete function.
5252 (legacy_frame_chain_valid): Delete call.
5253 * sh64-tdep.c (sh64_frame_chain): Delete call.
5254 * objfiles.h: Update comments.
5255 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5257 * frame.c (get_prev_frame): Delete call, update comments.
5259 2004-04-30 Brian Ford <ford@vss.fsi.com>
5261 * MAINTAINERS (Write After Approval): Add myself.
5263 2004-04-30 Andrew Cagney <cagney@redhat.com>
5265 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5266 * gdbarch.h, gdbarch.c: Re-generate.
5267 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5270 2004-04-30 Andrew Cagney <cagney@redhat.com>
5272 * gdb-events.sh (selected_thread_changed)
5273 (selected_frame_level_changed, target_changed): Delete.
5274 * gdb-events.h, gdb-events.c: Re-generate.
5275 * valops.c (value_assign): Update.
5276 * stack.c (select_frame_command, up_silently_base)
5277 (down_silently_base): Update.
5279 2004-04-29 Andrew Cagney <cagney@redhat.com>
5281 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5282 registers correctly.
5283 (print_gp_register_row, mips32_heuristic_proc_desc)
5284 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5285 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5286 references to mips_isa_regsize.
5288 2004-04-29 Andrew Cagney <cagney@redhat.com>
5290 * mips-tdep.c (struct gdbarch_tdep): Delete
5291 mips_fp_register_double.
5292 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5294 (mips_gdbarch_init): Do not set mips_fp_register_double.
5295 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5297 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5299 Committed by Andrew Cagney.
5300 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5303 2004-04-29 Andrew Cagney <cagney@redhat.com>
5305 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5306 gdbarch, use mips_abi, update callers.
5307 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5308 mips_abi_regsize, update callers.
5309 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5310 mips_default_abi_regsize.
5311 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5312 mips_default_abi_regsize.
5314 2004-04-29 Andrew Cagney <cagney@redhat.com>
5316 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5317 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5318 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5319 mips_default_abi_regsize.
5320 (mips_isa_regsize): Rename mips_regisze.
5321 * mipsnbsd-tdep.c: Update.
5322 * mips-linux-tdep.c: Update.
5323 * irix5-nat.c: Update.
5324 * mips-tdep.h (mips_isa_regsize): Update.
5326 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5327 Delete all disabled code.
5328 * gdb-events.h, gdb-events.c: Re-generate.
5330 2004-04-19 Jerome Guitton <guitton@gnat.com>
5331 Mark Kettenis <kettenis@gnu.org>
5333 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5334 the function begins with a branch instruction.
5336 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5338 * i386-tdep.c: Fix spelling mistakes.
5340 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5341 Andrew Cagney <cagney@redhat.com>
5343 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5345 * acconfig.h: Provide default _KMEMUSER value.
5346 * config.in, configure: Re-generate.
5347 * NEWS: Mention fix.
5349 2004-04-24 Randolph Chung <tausq@debian.org>
5351 * configure.host (hppa*-*-linux*): New target.
5352 * configure.tgt (hppa*-*-linux*): Likewise.
5353 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5354 gdbarch_init_osabi() call earlier so that osabi-specific frame
5355 unwinders can be registered first.
5356 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5358 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5359 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5360 * config/pa/linux.mh: New file.
5361 * config/pa/linux.mt: New file.
5362 * config/pa/nm-linux.h: New file.
5363 * config/pa/xm-linux.h: New file.
5364 * hppa-linux-nat.c: New file.
5365 * hppa-linux-tdep.c: New file.
5367 2004-04-28 Randolph Chung <tausq@debian.org>
5369 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5371 (hppa32_push_dummy_call): Fix small struct and floating point argument
5372 passing, and make sure the stack frame is properly aligned.
5374 2004-04-28 Andrew Cagney <cagney@redhat.com>
5376 * stack.c (print_stack_frame): Fix description.
5378 * NEWS: Mention gdb/gdbserver/configure execute permission
5379 changed. PR server/519.
5381 2004-04-28 Andrew Cagney <cagney@redhat.com>
5383 * stack.c (print_stack_frame_stub): Delete declaration.
5384 (struct print_stack_frame_args, print_stack_frame)
5385 (print_frame_info, print_frame): Replace "source" with print what.
5386 Replace "print" with "print_level". Replace "args" with
5388 * frame.h (show_and_print_stack_frame, print_stack_frame)
5389 (print_frame_info): Update declarations.
5390 * stack.c (select_and_print_frame, frame_command)
5391 (current_frame_command, up_command, down_command): Update calls -
5392 use get_selected_frame, pass "enum print_what" for source, do not
5393 call frame_relative_level.
5394 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5395 * remote-rdp.c (remote_rdp_open): Ditto.
5396 * remote-mips.c (common_open): Ditto.
5397 * remote-e7000.c (e7000_start_remote): Ditto.
5398 * ocd.c (ocd_start_remote): Ditto.
5399 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5400 * infrun.c (normal_stop): Ditto.
5401 * inflow.c (kill_command): Ditto.
5402 * infcmd.c (finish_command): Ditto.
5403 * corelow.c (core_open): Ditto.
5404 * tracepoint.c (finish_tfind_command): Ditto.
5405 * thread.c (info_threads_command, info_threads_command)
5406 (restore_current_thread, do_captured_thread_select): Ditto.
5407 * ada-tasks.c (task_command): Ditto.
5409 2004-04-26 Orjan Friberg <orjanf@axis.com>
5411 * frame.c: Include "observer.h".
5412 (frame_observer_target_changed): New function.
5413 (_initialize_frame): Attach target_changed observer.
5414 * regcache.c: Include "observer.h".
5415 (regcache_observer_target_changed): New function.
5416 (_initialize_regcache): Attach target_changed observer.
5417 * valops.c: Include "observer.h".
5418 (value_assign): Notify target_changed event when modifying register.
5419 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5421 2004-04-26 Orjan Friberg <orjanf@axis.com>
5423 From Paul Koning <pkoning@equallogic.com>:
5424 * breakpoint.c (free_valchain): New function.
5425 (insert_bp_location, delete_breakpoint): Use free_valchain.
5426 (remove_breakpoint): Do not remove the valchain.
5427 (bpstat_stop_status): If not stopped by watchpoint, skip
5428 watchpoints when generating stop status list.
5429 * infrun.c (handle_inferior_event): Make
5430 stepped_after_stopped_by_watchpoint a global variable.
5431 * remote.c (remote_stopped_data_address): Return watch data
5432 address rather than zero if stepped_after_stopped_by_watchpoint is
5435 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5438 * configure.in: Check for curses after termcap.
5439 On osf5.*, do not check for ncurses.
5440 * configure: Regenerate.
5442 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5444 * ppcobsd-nat.c: Include "ppc-tdep.h".
5445 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5447 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5448 Fixes PR tdep/1623 and PR tdep/1624.
5450 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5452 * xmodem.h, xmodem.c: Remove files.
5453 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5455 2004-04-23 Randolph Chung <tausq@debian.org>
5457 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5458 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5459 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5460 for handling stackless frames.
5461 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5463 2004-04-23 Randolph Chung <tausq@debian.org>
5465 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5466 starts at a pc before the frame is created.
5468 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5470 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5472 2004-04-23 Jerome Guitton <guitton@gnat.com>
5474 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5475 use convert_typed_floating to get the appropriate format.
5477 2004-04-22 Randolph Chung <tausq@debian.org>
5479 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5480 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5481 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5482 (hppa_sign_extend): Add prototype.
5483 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5484 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5485 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5486 hppa targets will also use these functions.
5487 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5488 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5489 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5490 (hppa_gdbarch_init): Remove gdbarch setting of
5491 skip_trampoline_code, in_solib_call_trampoline and
5492 in_solib_return_trampoline.
5493 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5494 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5495 hppa_in_solib_call_trampoline.
5496 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5497 Moved from hppa-tdep.c.
5498 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5499 in_solib_call_trampoline and in_solib_return_trampoline.
5501 2004-04-22 Randolph Chung <tausq@debian.org>
5503 * hppa-tdep.c (hppa_debug): New variable.
5504 (find_unwind_entry, hppa_frame_cache): Add debug output.
5505 (_initialize_hppa_tdep): Add command to set debug flag.
5507 2004-04-22 Andrew Cagney <cagney@redhat.com>
5509 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5511 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5512 signal trampoline unwinder.
5513 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5515 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5517 Add OpenBSD/powerpc support.
5518 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5519 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5520 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5521 (ppc_collect_fpregset): New prototypes.
5522 * ppcobsd-nat.c: New file.
5523 * ppcobsd-tdep.c: New file.
5524 * ppcobsd-tdep.h: New file.
5525 * rs6000-tdep.c: Include "regset.h".
5526 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5527 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5529 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5530 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5531 (rs6000-tdep.o): Update dependencies.
5532 * configure.host: Add powerpc-*-openbsd.
5533 * configure.tgt: Add powerpc-*-openbsd.
5534 * config/powerpc/obsd.mh: New file.
5535 * config/powerpc/nm-obsd.h: New file.
5536 * config/powerpc/obsd.mt: New file.
5538 2004-04-22 Andrew Cagney <cagney@redhat.com>
5540 * frame.h (show_frame_info): Delete declaration.
5542 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5543 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5544 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5545 * frv-tdep.c (frv_frame_this_id): Ditto.
5546 * avr-tdep.c (avr_frame_this_id): Ditto.
5548 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5550 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5552 2004-04-22 Jim Blandy <jimb@redhat.com>
5554 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5555 register number zero.
5557 2004-04-21 Michael Snyder <msnyder@redhat.com>
5559 * mips-tdep.c (heuristic_proc_start):
5560 Warning() already prefixes "Warning: ".
5562 2004-04-21 Andrew Cagney <cagney@redhat.com>
5564 * annotate.h (deprecated_annotate_starting_hook)
5565 (deprecated_annotate_stopped_hook)
5566 (deprecated_annotate_exited_hook)
5567 (deprecated_annotate_signal_hook)
5568 (deprecated_annotate_signalled_hook): Deprecate.
5569 * tracepoint.h (deprecated_create_tracepoint_hook)
5570 (deprecated_delete_tracepoint_hook)
5571 (deprecated_modify_tracepoint_hook)
5572 (deprecated_trace_find_hook)
5573 (deprecated_trace_start_stop_hook): Deprecate.
5574 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5575 * remote.h (deprecated_target_resume_hook)
5576 (deprecated_target_wait_loop_hook): Deprecate.
5577 * gdbcore.h (deprecated_exec_file_display_hook)
5578 (deprecated_file_changed_hook): Deprecate.
5579 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5580 * defs.h (deprecated_modify_breakpoint_hook)
5581 (deprecated_command_loop_hook, deprecated_show_load_progress)
5582 (deprecated_print_frame_info_listing_hook)
5583 (deprecated_query_hook, deprecated_warning_hook)
5584 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5585 (deprecated_delete_breakpoint_hook)
5586 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5587 (deprecated_readline_begin_hook, deprecated_readline_hook)
5588 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5589 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5590 (deprecated_context_hook, deprecated_target_wait_hook)
5591 (deprecated_attach_hook, deprecated_detach_hook)
5592 (deprecated_call_command_hook, deprecated_set_hook)
5593 (deprecated_error_hook, deprecated_error_begin_hook)
5594 (deprecated_ui_load_progress_hook): Deprecate.
5595 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5596 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5597 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5598 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5599 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5600 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5601 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5602 * annotate.c, aix-thread.c: Update.
5604 2004-04-21 Andrew Cagney <cagney@redhat.com>
5606 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5607 * vaxnbsd-tdep.c: Include "gdb_string.h".
5609 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5610 (add_symbol_file_from_memory_command): #if 0 function body, call
5613 2004-04-21 Andrew Cagney <cagney@redhat.com>
5615 * gdbcore.h: Update copyright.
5616 (deprecated_add_core_fns): Rename add_core_fns.
5617 * win32-nat.c (_initialize_core_win32): Update.
5618 * sun3-nat.c (_initialize_core_sun3): Update.
5619 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5620 * rs6000-nat.c (_initialize_core_rs6000): Update.
5621 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5622 * nto-tdep.c (_initialize_nto_tdep): Update.
5623 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5624 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5625 * mips-nat.c (_initialize_core_mips): Update.
5626 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5627 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5628 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5629 * lynx-nat.c (_initialize_core_lynx): Update.
5630 * irix5-nat.c (_initialize_core_irix5): Update.
5631 * i386-interix-nat.c (_initialize_core_interix): Update.
5632 * cris-tdep.c (_initialize_cris_tdep): Update.
5633 * corelow.c (deprecated_add_core_fns): Update.
5634 * core-regset.c (_initialize_core_regset): Update.
5635 * core-aout.c (_initialize_core_aout): Update.
5636 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5637 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5638 * alpha-nat.c (_initialize_core_alpha): Update.
5640 2004-04-21 Jim Blandy <jimb@redhat.com>
5642 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5644 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5646 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5648 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5649 (read_attribute_value): Update calls to dwarf_alloc_block.
5650 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5652 (psymtab_to_symtab_1): Likewise. Clean up using
5653 free_stack_comp_unit.
5654 (add_to_cu_func_list): Use the comp_unit_obstack.
5656 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5658 * dwarf2read.c (dwarf2_flag_true_p): New function.
5659 (die_is_declaration): Use the function above. Add some comments.
5661 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5663 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5664 architecture when registering sparcnbsd_core_osabi_sniffer.
5667 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5669 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5672 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5673 * i386-tdep.c: Correct register numbering scheme comments
5675 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5676 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5677 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5678 (i386_gdb_arch_init): Likewise.
5680 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5681 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5684 * m68k-tdep.h: Tweak comments.
5685 * m68k-tdep.c: Tweak comment.
5687 2004-04-17 Randolph Chung <tausq@debian.org>
5689 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5690 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5691 (hppa_hpux_som_init_abi): Set is_elf to 0.
5692 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5693 * hppa-tdep.c (low_text_segment_address): Remove global.
5694 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5695 section offset to calculate segment address.
5696 (internalize_unwinds): Define low_text_segment_address as local and
5697 pass to record_text_segment_lowaddr for ELF targets.
5698 (hppa_gdbarch_init): Zero fill tdep structure.
5699 (hppa_dump_tdep): Print tdep structure.
5700 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5702 2004-04-17 Randolph Chung <tausq@debian.org>
5704 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5705 (hppa_gdbarch_init): Set pseudo_register_read.
5706 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5707 * regcache.c (supply_register): Remove check for
5708 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5710 2004-04-17 Randolph Chung <tausq@debian.org>
5712 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5713 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5714 (hpread_adjust_stack_address): Move to hpread.c.
5715 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5716 obj_private_struct): Move from tm-hppa.h.
5717 * hpread.c (hppa-tdep.h): Include.
5718 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5719 (hpread_read_function_type, hpread_read_doc_function_type)
5720 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5722 * pa64solib.c (hppa-tdep.h): Include.
5723 * somsolib.c (hppa-tdep.h): Include.
5724 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5725 inferior_status): Remove unused forward declarations.
5726 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5727 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5728 obj_private_struct): Move to hppa-tdep.h.
5729 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5731 2004-04-17 Randolph Chung <tausq@debian.org>
5733 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5734 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5735 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5736 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5737 Remove forward declaration and make static.
5738 (hppa_reg_struct_has_addr): Remove.
5740 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5742 * observer.sh: Move comments in sed command to first column.
5744 2004-04-16 Jason Molenda (jmolenda@apple.com)
5746 * frame.c: Minor typeo corrections in comments.
5748 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5750 * observer.c (observer_test_first_notification_function): Update
5752 (observer_test_second_notification_function): Likewise.
5753 (observer_test_third_notification_function): Likewise.
5755 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5757 From Brian Ford <ford@vss.fsi.com>:
5758 * i386-tdep.c (i386_coff_init_abi): New function.
5759 * i386-tdep.h (i386_coff_init_abi): New prototype.
5760 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5761 register number translation functions for DWARF and DWARF 2.
5763 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5765 * dwarf2read.c: Back out my previous change, it was incorrect.
5767 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5769 * dwarf2read.c: Include "hashtab.h".
5770 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5772 (struct partial_die_info): Add comments. Use bitfields to reduce
5773 memory footprint. Add scope, scope_set, has_specification,
5774 spec_offset, die_parent, die_child, and die_sibling.
5775 (peek_die_abbrev): Add prototype.
5776 (partial_read_comp_unit_head): New function, broken out from
5777 dwarf2_build_psymtabs_hard.
5778 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5779 Use partial_read_comp_unit_head. Initialize the CU and
5780 comp_unit_obstack. Update calls to read_partial_die and
5781 scan_partial_symbols. Use free_stack_comp_unit and
5783 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5784 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5785 Update calls to helper functions. Remove NAMESPACE argument.
5787 (partial_die_parent_scope, partial_die_full_name): New functions.
5788 (add_partial_symbol): Remove namespace argument. Update call to
5789 pdi_needs_namespace. Use partial_die_full_name. Handle
5790 DW_TAG_namespace. Check has_namespace_info flag.
5791 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5792 tag. Handle namespaces.
5793 (add_partial_namespace, add_partial_enumeration): Simplify.
5794 (guess_structure_name): New function, derived from
5795 add_partial_structure.
5796 (add_partial_structure): Remove.
5797 (determine_class_name): Update comment.
5798 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5799 (is_type_tag_for_partial, load_partial_dies): New functions.
5800 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5801 Record specifications instead of following them immediately.
5802 (find_partial_die_in_comp_unit, find_partial_die)
5803 (fixup_partial_die, free_stack_comp_unit)
5804 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5805 (partial_die_hash, partial_die_eq): New functions.
5806 * Makefile.in (hashtab_h): Define.
5807 (dwarf2read.o): Update dependencies.
5808 (observer_inc, observer_h): Move to the correct section.
5810 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5812 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5813 (die_is_declaration): Use the function above. Add comment.
5815 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5817 * dwarf2read.c (read_structure_scope): Identify stub types
5818 using die_is_declaration() only.
5820 2004-04-15 Roland McGrath <roland@redhat.com>
5822 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5823 argument instead of NAME.
5824 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5825 in call to symbol_file_add_with_addrs_or_offsets.
5826 (build_addr_info): New function, helper for ...
5827 (symbol_file_add_from_memory): New function.
5828 (add_symbol_file_from_memory_command): New function using that.
5829 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5830 (pre_add_symbol_hook): Add const to argument type.
5831 * symfile.h (symbol_file_add_from_memory): Declare it.
5833 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5835 * NEWS (New native configurations): Mention OpenBSD/vax.
5836 * configure.host: Add vax-*-openbsd*.
5837 * config/vax/obsd.mh: New file.
5838 * config/vax/nm-obsd.h: New file.
5840 * vax-tdep.c: Include "regset.h".
5841 (vax_supply_gregset): New function.
5842 (vax_gregset): New variable.
5843 (vax_regset_from_core_section): New function.
5844 (vax_gdbarch_init): Set regset_from_core_section.
5845 * Makefile.in (vax-tdep.o): Update dependencies.
5847 2004-04-15 Andrew Cagney <cagney@redhat.com>
5849 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5850 (observer_normal_stop_notification_stub)
5851 (observer_attach_normal_stop, observer_detach_normal_stop):
5852 Delete, replaced by #include "observer.inc".
5853 * infrun.c (normal_stop): Pass "stop_bpstat" to
5854 observer_notify_normal_stop.
5855 * Makefile.in (observer_inc): Define.
5856 (observer.o): Update dependencies.
5857 (observer.h, observer.inc): New rules.
5858 * observer.h: Delete file.
5859 * observer.sh: New file.
5861 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5863 * vax-tdep.c (vax_frame_cache): Fix typo.
5865 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5867 * NEWS (New native configurations): Mention NetBSD/vax.
5868 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5869 * config/vax/nbsdelf.mh: New file.
5870 * config/vax/nbsdaout.mh: New file.
5871 * config/vax/nm-nbsd.h: New file.
5872 * config/vax/nm-nbsdaout.h: New file.
5874 * vaxnbsd-tdep.c: New file.
5875 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5876 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5877 * config/vax/nbsd.mt: New file.
5878 * config/vax/tm-nbsd.h: New file.
5880 * Makefile.in (vaxbsd-nat.o): New dependency.
5882 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5883 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5884 struct_addr arguments. Don't push return value address.
5885 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5886 arguments to vax_store_arguments. Store return value address in
5888 (vax_store_struct_return, vax_extract_return_value)
5889 (vax_store_return_value): Remove functions.
5890 (vax_return_value): New function.
5891 (vax_gdbarch_init): Set return value. Don't set
5892 deprecated_store_struct_return, deprecated_extract_struct_return
5893 and deprecated_store_return_value.
5895 2004-04-14 Andreas Schwab <schwab@suse.de>
5897 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5899 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5901 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5903 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5904 (vax_unwind_dummy_id): New functions.
5905 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5906 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5908 (vax_fix_call_dummy): Remove function.
5909 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5910 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5911 call_dummy_location, deprecated_call_dummy_words,
5912 deprecated_sizeof_call_dummy_words,
5913 deprecated_call_dummy_breakpoint_offset,
5914 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5915 and deprecated_dummy_write_sp.
5917 2004-04-13 David Carlton <carlton@kealia.com>
5919 * MAINTAINERS: Move myself to "paper trail" section.
5921 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5923 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5925 (vax_frame_init_saved_regs): Remove function.
5926 (vax_sigtramp_saved_pc): Remove function.
5927 (vax_frame_saved_pc): Remove function.
5928 (vax_frame_args_address): Remove function.
5929 (vax_frame_num_args): Rewrite.
5930 (vax_frame_chain): Remove function.
5931 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5933 (vax_pop_frame): Likewise.
5934 (vax_saved_pc_after_call): Remove function.
5935 (struct vax_frame_cache): New structure.
5936 (vax_frame_cache): New function.
5937 (vax_frame_this_id): New function.
5938 (vax_frame_prev_register): New function.
5939 (vax_frame_unwind): New variable.
5940 (vax_frame_sniffer): New function.
5941 (vax_frame_base_address): New function.
5942 (vax_frame_args_address): New function.
5943 (vax_frame_base): New variable.
5944 (vax_unwind_pc): New function.
5945 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5946 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5947 deprecated_frame_chain, deprecated_frame_saved_pc,
5948 deprecated_frame_args_address and
5949 deprecated_frame_init_saved_regs.
5950 * Makefile.in (vax-tdep.o): Update dependencies.
5952 * vaxbsd-nat.c: New file.
5954 * vax-tdep.h: Update copyright year. Adjust comments.
5955 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5956 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5957 (vax_regnum): New enum. Replacing...
5958 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5959 (VAX_PS_REGNUM): ... these removed macros.
5960 * vax-tdep.c (vax_register_name): Remove prototype.
5961 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5962 (vax_register_byte, vax_register_raw_size,
5963 vax_register_virtual_size, vax_register_virtual_type): Remove
5965 (vax_register_type): New function.
5966 (vax_breakpoint_from_pc): Reorganize.
5967 (vax_gdbarch_init): Set register_type. Don't set
5968 deprecated_register_size, deprecated_register_bytes,
5969 deprecated_register_byte, deprecated_register_raw_size,
5970 deprecated_max_register_raw_size,
5971 deprecated_register_virtual_size,
5972 deprecated_max_register_virtual_size and
5973 deprecated_register_virtual_type. Add comment on stack direction.
5975 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5977 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5978 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5979 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5981 2004-04-10 Randolph Chung <tausq@debian.org>
5983 * MAINTAINERS (write after approval): Add myself.
5985 2004-04-07 Randolph Chung <tausq@debian.org>
5987 * hppa-tdep.c (hppa_inner_than): Remove.
5988 (is_pa_2): Remove unused static variable.
5989 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5991 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5993 * language.h (language_defn): Add new la_post_parser field.
5994 * parser-defs.h (null_post_parser): New declaration (default for
5997 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5998 insert call to that function.
5999 (parse_exp_in_context): New function, including code formerly in
6000 parse_exp_1. Calls language-dependent post-parser after
6002 (parse_expression_in_context): New exported function.
6003 (null_post_parser): New definition.
6004 * expression.h (parse_expression_in_context): Add declaration.
6006 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6007 * c-lang.c (c_language_defn): Ditto.
6008 (cplus_language_defn): Ditto.
6009 (asm_language_defn): Ditto.
6010 (minimal_language_defn): Ditto.
6011 * f-lang.c (f_language_defn): Ditto.
6012 * jv-lang.c (java_language_defn): Ditto.
6013 * language.c (unknown_language_defn): Ditto.
6014 (auto_language_defn): Ditto.
6015 (local_language_defn): Ditto.
6016 * m2-lang.c (m2_language_defn): Ditto.
6017 * scm-lang.c (scm_language_defn): Ditto.
6018 * obj-lang.c (objc_language_defn): Ditto.
6020 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6022 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6023 (amd64nbsd_mcontext_addr): New function.
6024 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6025 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6026 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6028 * corelow.c (core_xfer_partial): Fix coding standards violation.
6029 Add support for TARGET_OBJECT_WCOOKIE.
6031 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6032 deprecated_pc_in_sigtramp.
6033 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6034 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6035 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6036 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6037 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6038 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6039 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6041 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6042 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6045 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6046 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6047 (amd64_collect_fxsave): Likewise.
6049 * i386-sol2-tdep.c: Include "gdb_string.h".
6050 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6052 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6054 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6056 * i386-sol2-tdep.c: Include "solib-svr4.h".
6057 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6058 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6059 * config/i386/tm-i386sol2.h: Include :solib.h".
6060 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6061 solib-svr4.o and solib-legacy.o.
6062 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6065 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6067 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6068 whether a register is supplied by PTRACE_GETFPREGS.
6069 (store_inferior_registers): Likewise.
6070 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6071 whether a register is supplied by PT_GETFPREGS.
6072 (store_inferior_registers): Likewise.
6074 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6075 * config/i386/linux64.mt (TDEPFILES): Likewise.
6077 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6079 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6080 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6081 the program counter is in the range specified by `struct
6083 * amd64-linux-tdep.c: Include "symtab.h".
6084 (amd64_linux_pc_in_sigtramp): Remove function.
6085 (amd64_linux_sigtramp_p): New function.
6086 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6087 deprecated_pc_in_sigtramp.
6088 * amd64nbsd-tdep.c: Include "symtab.h".
6089 (amd64nbsd_sigtramp_p): New function.
6090 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6091 deprecated_pc_in_sigtramp.
6092 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6094 (amd64obsd_pc_in_sigtramp): Remove function.
6095 (amd64obsd_sigtramp_p): New function.
6096 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6097 deprecated_pc_in_sigtramp.
6098 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6099 (i386bsd_pc_ins_sigtramp): Remove prototype.
6100 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6101 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6102 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6103 the program counter is in the range specified by `struct
6105 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6106 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6107 (i386_go32_pc_in_sigtramp): Remove function.
6108 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6109 Initialize TDEP->sigtramp_p.
6110 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6111 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6112 deprecated_pc_in_sigtramp.
6113 * i386-linux-tdep.c: Adjust comments.
6114 (i386_linux_pc_in_sigtramp): Remove function.
6115 (i386_linux_sigtramp_p): New function.
6116 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6117 deprecated_pc_in_sigtramp.
6118 * i386-nto-tdep.c: Update copyright year.
6119 (i386nto_pc_in_sigtramp): Remove function.
6120 (i386nto_sigtramp_p): New function.
6121 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6123 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6124 deprecated_pc_in_sigtramp.
6125 * i386-sol2-tdep.c: Update copyright year.
6126 (i386_sol2_pc_in_sigtramp): Remove function.
6127 (i386_sol2_sigtramp_p): New function.
6128 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6129 deprecated_pc_in_sigtramp.
6130 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6131 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6132 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6133 deprecated_sigtramp_start and deprecated_sigtramp_end.
6134 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6135 (i386nbsd_pc_in_sigtramp): Remove function.
6136 (i386nbsd_sigtramp_p): New function.
6137 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6138 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6139 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6140 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6141 (i386obsd_pc_in_sigtramp): Remove function.
6142 (i386obsd_sigtramp_p): New function.
6143 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6145 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6146 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6148 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6149 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6152 * config/i386/i386aout.mt: Remove file.
6154 * configure.tgt: Remove i[34567]86-*-go32*,
6155 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6156 and i[34567]86-*-isc*. Set gdb_target to i386 for
6157 i[34567]86-*-netware* and i[34567]86-*-*.
6158 * config/i386/i386.mt: New file.
6159 * config/i386/embed.mt: Remove file.
6160 * config/i386/go32.mt: Remove file.
6161 * config/i386/i386nw.mt: Remove file.
6162 * config/i386/i386v.mt: Remove file.
6163 * config/i386/tm-go32.h: Remove file.
6165 * tui/tui-hooks.c: Include "readline/readline.h" after
6166 "gdb_curses.h" instead of before.
6167 * tui/tui-io.c: Likewise.
6169 * tui/tui.c: Fix typo in comment.
6171 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6173 2004-04-08 Andrew Cagney <cagney@redhat.com>
6175 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6176 (deprecated_exception_support_initialized): Declare.
6177 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6178 (initialize_hp_cxx_exception_support)
6179 (child_enable_exception_callback): Update.
6180 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6181 (deprecated_exception_support_initialized): Rename
6182 deprecated_exception_catchpoints_are_fragile and
6183 deprecated_exception_support_initialized.
6184 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6186 * symtab.c (deprecated_hp_som_som_object_present): Rename
6187 hp_som_som_object_present.
6188 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6189 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6190 Update. Delete extern declaration.
6191 * valops.c (hp_som_som_object_present): Ditto.
6192 * parse.c (deprecated_hp_som_som_object_present)
6193 (parse_nested_classes_for_hpacc): Ditto.
6194 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6195 * hppa-hpux-tdep.c (hp_som_som_object_present)
6196 (initialize_hp_cxx_exception_support): Ditto.
6197 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6198 * cp-valprint.c (hp_som_som_object_present)
6199 (cp_print_class_method): Ditto.
6200 * c-typeprint.c (hp_som_som_object_present):
6201 (c_type_print_base): Ditto.
6202 * c-exp.y (hp_som_som_object_present): Ditto.
6204 2004-04-08 Andrew Cagney <cagney@redhat.com>
6206 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6207 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6208 (frame_unwind_find_by_frame): Re-implement the unwind code so
6209 that it can both prepend and append sniffers. Replace
6210 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6211 * tramp-frame.c (tramp_frame_append): Use
6212 frame_unwind_prepend_unwinder.
6213 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6214 frame_unwind_register_unwinder.
6215 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6217 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6218 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6219 (mips_linux_init_abi): Update.
6221 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6223 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6224 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6227 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6229 * ia64-tdep.c (elf.h): Don't include.
6230 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6232 2004-04-07 Jason Molenda (jmolenda@apple.com)
6234 * frame.h: Typeo corrections in comments.
6236 2004-04-07 Jim Blandy <jimb@redhat.com>
6238 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6241 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6243 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6244 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6245 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6246 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6248 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6250 * config/sparc/tm-sol2.h: Update copyright year. Include
6253 * sparc-sol2-tdep.c: Update copyright year. Include
6255 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6256 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6257 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6258 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6261 2004-04-06 Andrew Cagney <cagney@redhat.com>
6263 * infttrace.c: Include "infttrace.h".
6264 * infttrace.h: Include "target.h".
6265 * Makefile.in (infttrace_h): Update.
6266 (infttrace.o): Update.
6268 2004-04-06 Andrew Cagney <cagney@redhat.com>
6270 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6271 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6272 move extern declarations from here ...
6273 * infttrace.h: ... to here.
6274 * Makefile.in (hppah-nat.o): Update dependencies.
6276 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6277 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6278 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6279 (hppa_breakpoint_from_pc): Delete.
6281 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6283 2004-04-05 Andrew Cagney <cagney@redhat.com>
6285 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6286 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6289 2004-04-06 Randolph Chung <tausq@debian.org>
6291 Committed by Andrew Cagney (mechanical change).
6292 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6293 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6294 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6295 child_enable_exception_callback, current_ex_event,
6296 null_symtab_and_line, child_get_current_exception_event,
6297 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6298 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6299 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6300 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6301 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6302 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6303 Move hpux-specific definitions ...
6304 * hppa-hpux-tdep.c: ... to here.
6306 2004-04-05 Andrew Cagney <cagney@redhat.com>
6308 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6309 skip_prologue_using_sal.
6311 2004-04-05 Andrew Cagney <cagney@redhat.com>
6313 * config/i386/tm-i386.h: Delete file.
6314 * config/i386/tm-vxworks.h: Update copyright, do not include
6316 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6317 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6318 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6319 * config/i386/ncr3000.mt (TM_FILE): Delete.
6320 * config/i386/interix.mt (TM_FILE): Delete.
6321 * config/i386/i386v.mt (TM_FILE): Delete.
6322 * config/i386/i386nw.mt (TM_FILE): Delete.
6323 * config/i386/i386gnu.mt (TM_FILE): Delete.
6324 * config/i386/i386aout.mt (TM_FILE): Delete.
6325 * config/i386/embed.mt (TM_FILE): Delete.
6327 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6329 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6330 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6331 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6332 (accg7_regnum): New constants.
6333 (last_spr_regnum, last_pseudo_regnum): Update.
6334 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6335 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6336 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6338 (frv_register_sim_regno): Update spr_map[].
6340 2004-04-04 Andrew Cagney <cagney@redhat.com>
6342 * config/mips/xm-riscos.h: Delete.
6343 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6344 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6345 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6346 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6347 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6348 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6349 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6350 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6351 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6352 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6353 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6354 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6355 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6356 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6357 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6358 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6359 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6360 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6361 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6362 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6363 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6364 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6365 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6366 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6367 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6368 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6370 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6371 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6372 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6373 * configure.host: Remove m680[01]0-sun-sunos3*,
6374 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6375 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6376 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6377 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6379 * NEWS: Mention removed systems.
6381 2004-04-04 Andrew Cagney <cagney@redhat.com>
6383 GDB 6.1 release created from 6.1 branch.
6385 2004-04-04 Andrew Cagney <cagney@redhat.com>
6387 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6388 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6389 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6391 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6392 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6393 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6395 2004-04-03 Jim Blandy <jimb@redhat.com>
6397 * MAINTAINERS: Chris Faylor has changed employers; add him to
6398 "paper trail" section, and update his E-mail address.
6400 2004-04-03 Andrew Cagney <cagney@redhat.com>
6402 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6403 generic dummy frames.
6404 * dummy-frame.c: Update copyright.
6405 (dummy_frame_sniffer): Delete check for generic dummy frames.
6407 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6408 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6409 (REG_PARM_STACK_SPACE): Delete.
6410 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6411 Inline reference to REG_PARM_STACK_SPACE.
6413 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6414 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6415 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6416 (FRAME_BASE_BEFORE_SIGTRAMP)
6417 (hppa32_hpux_frame_base_before_sigtramp)
6418 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6419 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6420 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6421 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6422 (FRAME_BASE_BEFORE_SIGTRAMP)
6423 (hppa64_hpux_frame_base_before_sigtramp)
6424 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6426 2004-04-03 Andrew Cagney <cagney@redhat.com>
6428 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6430 2004-04-02 Andrew Cagney <cagney@redhat.com>
6432 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6433 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6434 * dummy-frame.h: Delete out-of-date comments.
6435 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6436 * gdbarch.h, gdbarch.c: Re-generate.
6438 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6440 Committed by Andrew Cagney <cagney@redhat.com>.
6441 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6442 into account an instruction saving a register if we have already
6443 seen an earlier instruction saving that same register.
6445 2004-04-02 Andrew Cagney <cagney@redhat.com>
6447 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6448 * gdbarch.h, gdbarch.c: Re-generate.
6449 * frame.c (legacy_get_prev_frame): Delete references to
6450 DEPRECATED_INIT_FRAME_PC_FIRST.
6452 * infrun.c (pc_in_sigtramp): Delete function.
6453 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6456 2004-04-02 Andrew Cagney <cagney@redhat.com>
6458 * infrun.c (handle_step_into_function): Delete code conditional on
6460 (handle_inferior_event, step_over_function): Ditto.
6462 2004-04-02 Andrew Cagney <cagney@redhat.com>
6464 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6465 "previous frame inner to this frame" test.
6467 2004-04-02 Andrew Cagney <cagney@redhat.com>
6469 * frame.c (safe_frame_unwind_memory): New function.
6470 * frame.h (safe_frame_unwind_memory): Declare. Update description
6472 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6473 "next_frame". Use safe_frame_unwind_memory.
6474 (tramp_frame_sniffer): Update call to tramp_frame_start.
6476 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6478 * dwarf2read.c (dwarf2_objfile_data_key): New.
6479 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6480 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6481 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6482 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6483 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6484 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6485 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6487 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6488 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6489 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6490 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6491 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6492 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6494 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6496 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6497 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6498 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6499 (read_partial_die, read_full_die, read_indirect_string)
6500 (dwarf_decode_line_header, dwarf_decode_macros)
6501 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6502 Update uses of removed variables.
6503 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6505 (_initialize_dwarf2_read): New function.
6506 * symfile.h (dwarf2_has_info): Update prototype.
6507 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6508 * elfread.c (elf_symfile_read): Likewise.
6510 2004-04-01 Jim Blandy <jimb@redhat.com>
6512 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6513 function for register numbers on all the rs6000-derived targets.
6514 (rs6000_gdbarch_init): Don't register a separate
6515 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6516 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6519 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6522 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6524 * valarith.c: Update copyright notice.
6525 (value_add): Handle range types.
6527 (value_equal): Ditto.
6528 (value_less): Ditto.
6530 (value_complement): Ditto.
6531 (value_binop): Simplify slightly by using is_integral_type and
6532 eliminiating unnecessary COERCE_ENUMs.
6534 2004-03-31 Andrew Cagney <cagney@redhat.com>
6536 * frame.h (frame_unwind_id): Declare.
6537 * frame.c (frame_unwind_id): New function.
6538 (get_prev_frame_1): New function.
6539 (frame_debug_got_null_frame): New function.
6540 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6541 code proper to prev_frame, update description.
6542 * infrun.c (step_over_function): Use frame_unwind_id.
6544 2004-04-31 J. Brobecker <brobecker@gnat.com>
6546 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6547 (hppa64_push_dummy_call): Likewise.
6549 2004-03-30 Jim Blandy <jimb@redhat.com>
6551 From Ulrich Weigand:
6552 * utils.c (query): Do not use a va_list variable multiple times.
6554 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6556 * Makefile.in (linux_nat_h): Update dependencies.
6557 * configure.in: Check for <gnu/libc-version.h>.
6558 * configure: Regenerate.
6559 * config.in: Regenerate.
6560 * linux-nat.h: Include "target.h". Add waitstatus field to
6562 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6563 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6565 (lin_lwp_handle_extended): New function. Handle clone events.
6566 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6568 (child_wait): Handle clone events.
6569 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6570 * linux-nat.c (linux_enable_event_reporting): Turn on
6571 PTRACE_O_TRACECLONE.
6572 (linux_handle_extended_wait): Handle clone events.
6573 * thread-db.c: Include <gnu/libc-version.h>.
6574 (struct private_thread_info): Add dying flag.
6575 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6577 (attach_thread): Update comments. Handle dying threads.
6578 (detach_thread): Set the dying flag.
6579 (check_event): Always call attach_thread.
6581 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6583 * mips-tdep.c (mips_pdr_data): New.
6584 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6585 (_initialize_mips_tdep): Initialize mips_pdr_data.
6587 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6589 * minsyms.c (install_minimal_symbols): Move dropping leading
6590 char from linkage name from here...
6591 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6592 test for "__gnu_compiled*" symbols.
6594 2004-03-28 Jim Blandy <jimb@redhat.com>
6596 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6597 registers to temp register r0 and byte stores as prologue
6600 2004-03-28 Andrew Cagney <cagney@redhat.com>
6602 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6605 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6607 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6608 and switch the layout to force a display of register window.
6610 2004-02-26 J. Brobecker <brobecker@gnat.com>
6612 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6613 of the INTEGER class.
6615 2004-03-26 Jim Blandy <jimb@redhat.com>
6617 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6618 bytes long on PPC GNU/Linux.
6620 2004-03-26 David Carlton <carlton@kealia.com>
6622 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6624 2004-03-25 Andrew Cagney <cagney@redhat.com>
6626 * PROBLEMS: Add general section titles, remove references to
6629 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6631 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6633 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6634 FP_REGISTER_VIRTUAL_SIZE.
6635 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6636 of DEPRECATED_REGISTER_RAW_SIZE.
6637 (arm_register_type): Add gdbarch argument.
6638 (arm_register_raw_size, arm_register_virtual_size): Delete.
6639 (arm_register_byte, arm_extract_return_value)
6640 (arm_store_return_value, arm_get_longjmp_target): Update references
6641 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6642 (arm_gdbarch_init): Likewise. Don't set
6643 deprecated_register_raw_size, deprecated_register_virtual_size,
6644 deprecated_max_register_raw_size,
6645 deprecated_max_register_virtual_size, or
6646 deprecated_max_register_virtual_type. Do set register_type.
6647 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6648 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6649 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6650 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6651 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6652 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6654 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6655 (remote_rdp_store_register): Likewise.
6657 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6659 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6660 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6661 to after osabi initialization.
6662 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6663 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6665 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6666 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6668 (mips_linux_init_abi): Append signal trampoline unwinders.
6670 2004-03-24 Andrew Cagney <cagney@redhat.com>
6672 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6673 * tramp-frame.c: Include "gdb_assert.h".
6674 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6676 (tramp_frame_append): Validate the tramp frame's instructions.
6677 * Makefile.in (tramp-frame.o): Update dependencies.
6679 2004-03-23 Andrew Cagney <cagney@redhat.com>
6681 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6683 2004-03-23 Andrew Cagney <cagney@redhat.com>
6685 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6686 Nasser as past testsuite/lib/ (and other) maintainers.
6688 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6690 * infcmd.c (attach_command): Reread symbols if we already have
6693 2004-03-23 Andrew Cagney <cagney@redhat.com>
6695 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6697 2004-03-23 Andrew Cagney <cagney@redhat.com>
6699 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6700 * gdbarch.h, gdbarch.c: Re-generate.
6701 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6702 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6703 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6704 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6705 (DEPRECATED_SIGTRAMP_START): Update.
6706 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6707 (DEPRECATED_SIGTRAMP_START): Update.
6708 * blockframe.c (find_pc_sect_partial_function): Update.
6709 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6711 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6713 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6716 2004-03-23 Andrew Cagney <cagney@redhat.com>
6718 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6719 predicate, deprecate.
6720 * gdbarch.h, gdbarch.c: Re-generate.
6721 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6722 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6723 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6724 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6725 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6726 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6727 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6728 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6729 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6730 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6731 * blockframe.c (find_pc_partial_function): Update.
6732 * breakpoint.c (bpstat_what): Update.
6733 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6734 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6735 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6736 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6737 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6738 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6739 * i386-nto-tdep.c (i386nto_init_abi): Update.
6740 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6741 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6742 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6743 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6744 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6745 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6746 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6747 * infrun.c (pc_in_sigtramp): Update.
6748 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6749 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6750 * mips-tdep.c (mips_gdbarch_init): Update.
6751 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6752 * ppc-linux-tdep.c: Update comment.
6753 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6754 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6755 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6756 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6757 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6758 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6759 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6760 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6761 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6762 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6764 2004-03-23 Andrew Cagney <cagney@redhat.com>
6766 * tramp-frame.h, tramp-frame.h: New files.
6767 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6768 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6770 * Makefile.in: Update all dependencies.
6772 2004-03-23 Andrew Cagney <cagney@redhat.com>
6774 * Makefile.in (trad_frame_h): Add $(frame_h).
6775 * trad-frame.h: Update copyright. Include "frame.h".
6776 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6777 (trad_frame_set_id, trad_frame_get_id): Declare.
6778 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6779 * trad-frame.c: Update copyright.
6780 (struct trad_frame_cache): Define.
6781 (trad_frame_cache_zalloc): New function.
6782 (trad_frame_set_id, trad_frame_get_id): New functions.
6783 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6785 2004-03-22 Andrew Cagney <cagney@redhat.com>
6787 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6788 s390_pltstub_unwind_cache.
6789 (s390_stub_frame_unwind_cache): Rename
6790 s390_pltstub_frame_unwind_cache.
6791 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6792 (s390_stub_frame_prev_register): Rename
6793 s390_pltstub_frame_prev_register.
6794 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6795 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6797 From Ulrich Weigand:
6798 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6799 pointer calls like PLT calls.
6801 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6803 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6804 PC rather than the partial function start address. Use the start
6805 address to sanity check the found PDR.
6807 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6809 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6810 linux_handle_extended_wait.
6812 2004-03-22 Andrew Cagney <cagney@redhat.com>
6814 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6817 * frame.h (generic_pop_current_frame): Delete declaration.
6818 (deprecate_pop_dummy_frame): Deprecate
6819 generic_pop_dummy_frame.
6820 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6821 (generic_pop_current_frame): Delete function.
6822 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6823 generic_pop_current_frame.
6824 * v850-tdep.c (v850_pop_frame): Update.
6825 * mcore-tdep.c (mcore_pop_frame): Update.
6826 * sh64-tdep.c (sh64_pop_frame): Update.
6827 * h8300-tdep.c (h8300_pop_frame): Update.
6829 2004-03-22 Andrew Cagney <cagney@redhat.com>
6831 * frame.h (deprecated_pc_in_call_dummy): Rename
6832 generic_pc_in_call_dummy.
6833 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6834 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6835 generic_pc_in_call_dummy.
6836 (pc_in_dummy_frame): Make static.
6837 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6838 * gdbarch.h, gdbarch.c: Re-generate.
6839 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6840 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6841 (legacy_get_prev_frame): Ditto.
6842 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6845 2004-03-21 Andrew Cagney <cagney@redhat.com>
6847 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6848 declaration and out-of-date comment.
6849 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6851 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6852 deprecated_pc_in_call_dummy.
6854 * infrun.c (handle_inferior_event): For non legacy frames, use the
6855 frame ID and frame type to identify a signal trampoline. Update
6858 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6860 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6861 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6863 2004-03-21 Andrew Cagney <cagney@redhat.com>
6865 * frame-unwind.h: Update copyright.
6866 (struct frame_data): Add opaque declaration.
6867 (frame_sniffer_ftype): Declare.
6868 (struct frame_unwind): Add "unwind_data" and "sniffer".
6869 (frame_unwind_register_unwinder): Declare.
6870 (frame_unwind_find_by_frame): Add parameter "this_cache".
6871 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6872 (legacy_get_prev_frame, legacy_get_prev_frame)
6873 (get_frame_type): Pass the prologue_cache to
6874 frame_unwind_find_by_frame.
6875 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6877 (frame_unwind_register_unwinder): New function.
6878 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6880 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6882 * bcache.c (print_percentage): Use floating point to avoid
6883 incorrect results when portion*100 overflows.
6885 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6887 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6888 (ppc_linux_init_extra_frame_info)
6889 (ppc_linux_frameless_function_invocation)
6890 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6891 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6892 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6893 (rs6000_frame_chain): Delete declarations.
6894 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6895 (ppc_linux_init_extra_frame_info)
6896 (ppc_linux_frameless_function_invocation)
6897 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6898 (ppc_linux_init_abi): Remove registration of above deleted functions.
6899 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6900 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6901 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6902 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6903 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6904 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6905 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6906 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6907 frame management for all OSABIs.
6909 2004-03-19 Andrew Cagney <cagney@redhat.com>
6911 Committed by Kevin Buettner <kevinb@redhat.com>.
6913 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6915 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6916 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6917 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6918 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6919 unwinders. #ifdef legacy frame code.
6920 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6922 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6923 (struct rs6000_frame_cache, rs6000_frame_cache)
6924 (rs6000_frame_this_id, rs6000_frame_prev_register)
6925 (rs6000_frame_sniffer, rs6000_frame_unwind)
6926 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6927 (rs6000_frame_base): Implement a traditional frame unwinder.
6928 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6931 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6933 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6934 breakpoint address for watchpoints or the catch eventpoints.
6935 Add new paramter ``bptype''. Adjust all callers.
6937 2004-03-19 Andrew Cagney <cagney@redhat.com>
6939 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6941 * PROBLEMS: Delete note that ARM does not use frame code, problem
6944 2004-03-18 Andrew Cagney <cagney@redhat.com>
6946 * stack.c (return_command): Delete code wrapped in #ifdef
6947 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6949 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6951 2004-03-18 Andrew Cagney <cagney@redhat.com>
6953 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6954 DEPRECATED_IN_SIGTRAMP.
6955 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6956 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6957 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6958 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6959 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6960 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6961 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6962 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6963 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6964 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6966 2004-03-18 Andrew Cagney <cagney@redhat.com>
6968 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6969 (struct frame_base_table_entry): Define.
6970 (struct frame_base_table): Re-implement as a linked list.
6971 (frame_base_init): Re-implement.
6972 (frame_base_table): Delete function.
6973 (append_predicate): Delete function.
6974 (frame_base_append_sniffer): Update.
6975 (frame_base_set_default): Update.
6976 (frame_base_find_by_frame): Update.
6977 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6978 * Makefile.in (frame-base.o): Update dependencies.
6980 2004-03-17 Andrew Cagney <cagney@redhat.com>
6982 * frame.c (legacy_get_prev_frame): Pass correct frame to
6983 frame_unwind_find_by_frame.
6985 2004-03-17 David Carlton <carlton@kealia.com>
6987 * NEWS: Mention C++ nested types and namespaces
6989 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6991 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6992 and "Regressions since gdb 5.3.". Add known regressions since
6995 2004-03-16 David Carlton <carlton@kealia.com>
6997 * dwarf2read.c (process_structure_scope): Process children even
6998 when we're a declaration.
7000 2004-03-16 Andrew Cagney <cagney@redhat.com>
7002 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7003 * blockframe.c (find_pc_partial_function)
7004 (find_pc_sect_partial_function): Merge into a single
7005 find_pc_partial_function.
7007 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7009 * i386bsd-nat.c: s/regno/regnum/g.
7010 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7012 (store_inferior_registers): Likewise.
7014 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7016 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7018 (store_inferior_registers): Call i387_collect_fsave and
7019 i387_collect_fxsave instead of i387_fill_fsave and
7022 2004-03-15 Andrew Cagney <cagney@redhat.com>
7024 * Makefile.in (frame-unwind.o): Update dependencies.
7025 * frame-unwind.c: Include "gdb_obstack.h".
7026 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7028 (append_predicate): Delete function.
7029 (struct frame_unwind_table_entry): New structure.
7030 (struct frame_unwind_table): Replace "sniffer" with "head" and
7032 (frame_unwind_append_sniffer): Update.
7033 (frame_unwind_find_by_frame): Update.
7034 (_initialize_frame_unwind): Registe frame_unwind_init using
7035 gdbarch_data_register_pre_init.
7037 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7039 * i386bsd-nat.c: Update copyright year.
7040 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7041 define unconditionally.
7043 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7045 * i387-tdep.h (i387_collect_fsave): New prototype.
7046 * i387-tdep.c (i387_collect_fsave): New function containing most
7047 of the code from i387_fill_fsave.
7048 (i387_fill_fsave): Call i387_collect_fsave.
7050 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7052 * i386-linux-tdep.c: Update copyright year.
7053 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7054 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7055 svr4_ilp32_link_map_offsets instead of
7056 i386_linux_svr4_fetch_link_map_offsets.
7058 2004-03-15 David Carlton <carlton@kealia.com>
7060 Fix for PR c++/1553:
7061 * dwarf2read.c (read_structure_type): Determine type name by
7062 calling determine_class_name.
7063 (determine_class_name): New.
7064 (determine_prefix): Look at TYPE_TAG_NAME and call
7065 determine_class_name when appropriate.
7066 (determine_prefix_aux, class_name): Delete.
7067 (read_namespace): Set die->type.
7069 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7071 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7072 unused macro definition. The definition in target.h (or perhaps
7073 elsewhere) takes precedence.
7075 2004-03-15 Andrew Cagney <cagney@redhat.com>
7077 * ppc-tdep.h: Update copyright.
7078 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7079 function signatures to match "regsets.h".
7080 * ppc-linux-tdep.c: Include "regset.h".
7081 (ELF_GREGSET_SIZE): Delete.
7082 (right_supply_register): New function.
7083 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7084 using right_supply_register.
7085 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7087 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7088 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7089 (_initialize_ppc_linux_tdep): Do not register
7090 ppc_linux_regset_core_fns.
7091 (ppc_linux_regset_from_core_section): Replace
7092 fetch_core_registers.
7093 (ppc_linux_regset_core_fns): Delete.
7094 * ppc-linux-nat.c: (right_fill_reg): New function.
7095 (supply_gregset): Update call to ppc_linux_supply_gregset.
7096 (fill_gregset): Clear the register set, use right_fill_reg.
7097 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7098 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7100 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7103 2004-03-15 Andrew Cagney <cagney@redhat.com>
7105 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7106 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7107 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7108 and register_gdbarch_data.
7109 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7110 (struct gdbarch_data): Replace "init" by "pre_init" and
7112 * gdbarch.h, gdbarch.c: Re-generate.
7113 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7114 with"obstack", use OBSTACK_ZALLOC.
7115 (dwarf2_frame_ops): Delete.
7116 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7117 (dwarf2_frame_init_reg): Use gdbarch_data.
7118 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7119 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7120 (_initialize_svr4_solib): Update.
7121 * user-regs.c (_initialize_user_regs): Update.
7122 * reggroups.c (_initialize_reggroup): Update.
7123 * regcache.c (_initialize_regcache): Update.
7124 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7125 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7126 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7127 * frame-unwind.c (_initialize_frame_unwind): Update.
7128 * frame-base.c (_initialize_frame_base): Update.
7129 * user-regs.c (user_reg_add): Update.
7130 * reggroups.c (reggroup_add): Update.
7131 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7132 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7133 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7134 * frame-base.c (frame_base_table): Update.
7135 * remote.c (_initialize_remote): Update.
7136 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7138 2004-03-15 Andrew Cagney <cagney@redhat.com>
7140 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7142 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7144 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7145 * frv-linux-tdep.c: New file.
7146 * frv-tdep.c (struct gdbarch_tdep): Add new field
7147 ``sigcontext_reg_addr''.
7148 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7149 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7150 (frv_sigramp_frame_sniffer): New functions.
7151 (frv_sigtramp_frame_unwind): New static global.
7152 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7154 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7155 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7157 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7159 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7160 but not via a call to error(), when unable to read memory.
7162 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7164 * frv-tdep.c (frv_call_dummy_words): Delete.
7165 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7167 2004-03-15 Andrew Cagney <cagney@redhat.com>
7169 * infrun.c (handle_step_into_function, step_over_function): Only
7170 update and use STEP_FRAME_ID when the system is using legacy
7171 frames. Update comments.
7173 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7175 * amd64-linux-tdep.h: Remove file.
7176 * amd64-linux-tdep.c: Don't include "inferior.h" and
7177 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7178 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7179 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7180 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7181 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7183 (user_to_gdb_regmap): Remove variable.
7184 (amd64_linux_gregset_reg_offset): New variable.
7185 (amd64_core_fns): Remove variable.
7186 (fetch_core_registers): Remove function.
7187 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7189 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7190 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7191 * Makefile.in (amd64_linux_tdep_h): Remove.
7192 (amd64-linux-nat.o): Update dependencies.
7193 (amd64-linux-tdep.o): Update dependencies.
7195 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7196 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7198 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7200 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7201 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7203 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7205 * dwarf2read.c (read_structure_type): Rename from
7206 read_structure_scope. Don't create a symbol or call process_die.
7207 Return immediately if die->type is set. Call read_type_die before
7208 dwarf2_add_member_fn.
7209 (process_structure_scope): New function.
7210 (read_enumeration_type, process_enumeration_scope): New functions,
7211 broken out from read_enumeration. Don't create the enumeration
7212 type if it has already been created.
7213 (read_enumeration): Removed.
7214 (process_die): Call read_structure_type, process_structure_scope,
7215 read_enumeration_type, and process_enumeration_scope. Just call
7216 new_symbol for base and subrange types. Add a comment about other
7218 (read_type_die): Call read_enumeration_type.
7219 (add_partial_structure, new_symbol): Update comments.
7221 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7223 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7225 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7227 * tui/tui-win.h (tui_get_cmd_list): Declare.
7228 * tui/tui-win.c (tui_command): New function.
7229 (tui_get_cmd_list): New function.
7230 (_initialize_tui_win): Moved initialization of tui command in
7233 * tui/tui-data.c (init_content_element): Setup new data members.
7234 (init_win_info): Likewise.
7235 (free_content_elements): Free it.
7236 * tui/tui-data.h (struct tui_data_element): Store the register
7238 (struct tui_data_info): Keep the current register group.
7240 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7242 * tui/tui-regs.h (tui_show_registers): Update prototype.
7243 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7244 (tui_resize_all): No need to calculate anything for register window.
7245 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7246 (tui_set_register_element, tui_set_general_regs_content): Remove.
7247 (tui_set_special_regs_content): Remove.
7248 (tui_set_general_and_special_regs_content): Remove.
7249 (tui_set_float_regs_content): Remove.
7250 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7251 (tui_set_regs_content): Remove.
7252 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7253 (tui_v_show_registers_command_support): Remove.
7254 (tui_show_registers): Use a reggroup to specify the registers to show.
7255 (tui_show_register_group): New function.
7256 (tui_display_registers_from): Compute the layout of register window
7257 and refresh with new API; be sure to delete old register windows.
7258 (tui_check_register_values): Update to use tui_get_register and
7260 (tui_display_register): Just refresh the register window part.
7261 (tui_register_format): Format registers and save in tui_data_element.
7262 (tui_get_register): New to combine tui_reg_value_has_changed and
7263 tui_get_register_raw_value; fix to use the new gdb API.
7264 (tui_show_float_command): Renamed tui_reg_float_command.
7265 (tui_show_general_command): Renamed tui_reg_general_command.
7266 (tui_show_special_command): Renamed tui_reg_system_command.
7267 (_initialize_tui_regs): Remove unused commands.
7269 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7271 * NEWS (New native configurations): Mention OpenBSD/amd64.
7273 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7274 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7276 * config/i386/nm-fbsd64.h: Likewise.
7277 * config/i386/nm-obsd.h: Likewise.
7278 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7279 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7281 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7283 * frv-tdep.c (set_variant_scratch_registers): New function.
7284 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7287 From Richard Sandiford <rsandifo@redhat.com>:
7288 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7290 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7292 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7293 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7294 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7295 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7296 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7297 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7298 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7299 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7300 definitions from frv-tdep.c to frv-tdep.h.
7302 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7304 Add shared library support for FR-V FDPIC ABI:
7305 * Makefile.in (solib-frv.o): Add dependencies.
7306 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7308 (frv_push_dummy_call): Add support for FDPIC ABI.
7309 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7311 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7312 (frv_fdpic_find_canonical_descriptor): Declare.
7313 * solib-frv.c: New file.
7314 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7315 * config/frv/tm-frv.h (solib.h): Include.
7317 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7319 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7320 (frv-tdep.o): Update dependencies.
7321 * frv-tdep.h: New file.
7322 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7323 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7325 (struct gdbarch_tdep): Add new member ``frv_abi''.
7326 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7328 (new_variant): Set ``frv_abi'' field.
7329 (gdb_arch_init): Detect FDPIC executables.
7331 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7333 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7336 2004-03-11 Andrew Cagney <cagney@redhat.com>
7338 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7340 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7342 * solist.h (master_so_list): New function.
7343 * solib.c (master_so_list): Likewise.
7344 * solib-svr4.c (enable_break): Iterate over so_list entries
7345 obtained from master list instead of entries obtained directly
7346 via svr4_current_sos().
7348 2004-03-10 Ben Elliston <bje@gnu.org>
7350 * MAINTAINERS: Update my mail address.
7352 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7354 * remote-m32r-sdi.c: Support hardware watchpoint.
7356 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7358 * user-regs.c: Update copyright years.
7359 (struct user_regs): Rename to gdb_user_regs.
7360 (append_user_reg, builtin_user_regs, user_regs_init)
7361 (user_reg_add, user_reg_map_name_to_regnum)
7362 (usernum_to_user_reg): Update.
7364 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7366 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7367 (skip_children): New functions.
7368 (locate_pdi_sibling): Call skip_children.
7370 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7372 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7373 * gdbtypes.c (check_typedef): Update comments.
7375 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7377 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7378 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7379 pointer. Update comment about comp_unit_head.
7380 (struct abbrev_info): Shorten two int flags.
7381 (dwarf_alloc_abbrev): Take a CU argument.
7382 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7383 each time through the loop. Update cleanup argument.
7384 (psymtab_to_symtab_1): Update cleanup call.
7385 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7387 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7388 Just call obstack_free and clear the pointer.
7390 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7392 * infrun.c (handle_inferior_event): Remove short-circuit code for
7393 events in a different thread.
7395 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7397 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7398 print the whole transfer.
7399 (initialize_targets): Update description of "set debug target".
7401 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7403 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7405 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7407 * MAINTAINERS (write after approval): Add myself.
7409 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7411 * sh-tdep.c (sh_print_registers_info): Use for loop.
7412 Don't skip multiple registers when a float register is encountered.
7414 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7417 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7418 to official SH documentation.
7420 2004-03-07 Andrew Cagney <cagney@redhat.com>
7422 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7425 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7427 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7428 (arm_get_next_pc): Handle BX and BLX.
7430 2004-03-07 Andrew Cagney <cagney@redhat.com>
7432 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7433 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7435 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7436 (hppa_target_read_fp): Delete.
7437 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7438 register_virtual_size, max_register_raw_size,
7439 max_register_virtual_size, register_byte, register_size,
7440 target_read_fp, fp_regnum, and register_bytes. Set register_type
7441 instead of register_virtual_type.
7442 (hppa32_register_type, hppa64_register_type): Replace
7443 hppa32_register_virtual_type and hppa64_register_virtual_type.
7444 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7445 (HPPA_FP_REGNUM): Define.
7447 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7449 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7450 (pa_do_registers_info): Delete.
7451 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7452 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7453 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7455 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7456 GDB_TARGET_IS_HPPA code.
7457 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7458 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7459 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7460 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7461 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7462 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7463 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7464 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7465 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7466 (hppa_frameless_function_invocation, hppa64_store_return_value)
7467 (hppa_store_struct_return, hppa64_extract_return_value)
7468 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7469 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7470 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7471 (find_proc_framesize, deposit_21, restore_pc_queue)
7472 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7473 (rp_saved, pc_in_linker_stub): Delete.
7475 Unconditionally enable 64-bit frame and ABI code.
7476 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7477 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7478 push_dummy_frame, fix_call_dummy, push_arguments,
7479 call_dummy_location, extract_return_value, use_struct_convention,
7480 store_return_value, store_struct_return, saved_pc_after_call,
7481 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7482 frame_chain, frame_chain_valid, frameless_function_invocation,
7483 frame_saved_pc, and pop_frame.
7485 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7486 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7487 (hppa_gdbarch_init): Do not set PC_REGNUM.
7489 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7491 * config/alpha/tm-fbsd.h: Remove file.
7492 * config/alpha/fbsd.mt: Tweak comment.
7493 (TM_FILE): Set to tm-alpha.h.
7495 2004-03-05 Andrew Cagney <cagney@redhat.com>
7497 * infrun.c (step_over_function): When non-legacy code, and no
7498 step_frame_id, use the unwinder to get the caller's frame ID.
7500 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7502 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7503 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7504 bfd_arch_unknown. Adjust comment.
7506 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7507 * i386obsd-tdep.c: Correct spelling in comment.
7508 * i386nbsd-tdep.c: Correct spelling in comment.
7509 * sparc-tdep.c: Correct spelling in comments.
7511 2004-03-05 David Carlton <carlton@kealia.com>
7513 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7516 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7518 * sparc-tdep.c: Fix typo in comment.
7520 2004-03-04 J. Brobecker <brobecker@gnat.com>
7522 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7524 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7526 * dwarf2read.c: Add comment describing memory lifetimes.
7527 (struct dwarf2_pinfo): Update comment.
7528 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7529 (read_enumeration, new_symbol): Don't use obsavestring.
7531 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7533 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7534 instead of amd64_fill_fxsave.
7535 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7536 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7538 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7539 Reorganize code a bit.
7541 2004-03-04 Orjan Friberg <orjanf@axis.com>
7543 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7544 when the frame pointer is pushed. Don't set the frame pointer's
7545 address on the stack unless it's actually located there.
7546 Set the SRP's address on the stack correctly when the PC is still in
7548 (cris_return_value): New function.
7549 (cris_gdbarch_init): Clear deprecated store_return_value,
7550 extract_return_value.
7552 2004-03-02 Jim Blandy <jimb@redhat.com>
7554 * stabsread.c (reg_value_complaint): The maximum register number
7555 is one less than the number of registers.
7557 2004-03-02 Andrew Cagney <cagney@redhat.com>
7559 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7560 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7561 trailing comma and redundant assignment of I386_ST0_REGNUM.
7562 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7563 32-bit segment registers.
7565 2004-03-01 Andrew Cagney <cagney@redhat.com>
7567 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7568 use frame_relative_level and get_next_frame.
7570 2004-02-29 Andrew Cagney <cagney@redhat.com>
7572 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7573 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7574 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7577 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7579 * inflow.c (terminal_inferior): Don't give up the terminal if we
7580 previously couldn't get the inferior's terminal state.
7582 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7584 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7587 2004-02-28 Andrew Cagney <cagney@redhat.com>
7589 * NEWS: Refer to GDB 6.1.
7590 * README: Refer to GDB 6.1.
7591 * PROBLEMS: Refer to GDB 6.1.
7593 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7595 * thread-db.c (disable_thread_signals): Remove unused function.
7597 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7599 * amd64-nat.c: Include "gdb_string.h".
7600 (amd64_collect_native_gregset): Zero-extend the 32-bit
7601 general-purpose registers and %eip.
7603 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7604 * amd64-tdep.c (amd64_collect_fxsave): New function.
7605 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7607 * i387-tdep.h: Update copyright year.
7608 (i387_collect_fxsave): New prototype.
7609 * i387-tdep.c: Update copyright year.
7610 (i387_collect_fxsave): New function containing most of the code
7611 from i387_fill_fxsave.
7612 (i387_fill_fxsave): Call i387_collect_fxsave.
7614 2004-02-28 Andrew Cagney <cagney@redhat.com>
7616 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7617 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7619 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7621 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7623 2004-02-28 Andrew Cagney <cagney@redhat.com>
7625 * utils.c: Use "", instead of <>, to include readline.
7626 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7627 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7628 * source.c, solib.c, exec.c, event-top.c: Ditto.
7629 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7630 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7631 * Makefile.in: Update all dependencies.
7632 (readline_tilde_h, readline_history_h): Define.
7633 (readline_headers): Delete.
7635 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7637 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7638 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7639 "config/i386/tm-lx64.h".
7641 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7642 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7643 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7645 2004-02-28 Andrew Cagney <cagney@redhat.com>
7647 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7649 * breakpoint.c (_initialize_breakpoint): Use
7650 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7651 Add help to show command.
7653 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7655 * i386-nat.c: Reformat to be closer to coding standards.
7656 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7657 `retval'. Make variables `align' and `size' local to while-loop.
7658 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7659 (_initialize_i386_nat): New prototype.
7661 * tui/tui.c: Include <readline/readline.h> instead of
7662 "readline/readline.h". Include it after <term.h> and
7665 2004-02-27 Andrew Cagney <cagney@redhat.com>
7667 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7668 the new frame unwind code.
7669 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7670 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7673 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7674 "return_value" and "push_dummy_call".
7675 (hppa32_use_struct_convention): Delete unused function.
7676 (hppa32_store_return_value): Delete unused function.
7677 (hppa32_extract_return_value): Delete unused function.
7678 (hppa32_stack_align): Delete function.
7680 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7682 * coffread.c (enter_linenos): Don't let rawptr reference memory
7683 outside linetab[]'s limits.
7685 2004-02-27 Andrew Cagney <cagney@redhat.com>
7687 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7688 inferior stack space - the stack needs to grow upwards.
7689 (hppa32_frame_align): New function.
7690 (hppa64_frame_align): Replace hppa_frame_align.
7691 (hppa_gdbarch_init): Update.
7693 2004-02-26 Orjan Friberg <orjanf@axis.com>
7695 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7696 (dwarf2-frame.h): Include.
7697 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7698 Remove static variables related to ABI setting.
7699 (struct gdbarch_tdep): Remove cris_abi member.
7700 (struct frame_extra_info): Remove.
7701 (cris_unwind_cache, stack_item): New structs.
7702 (cris_frame_unwind, cris_frame_base): New variables.
7703 (push_stack_item, pop_stack_item)
7704 (cris_frame_unwind_cache, cris_frame_this_id)
7705 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7706 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7707 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7708 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7709 (cris_reg_struct_has_addr): New functions.
7710 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7711 (cris_frame_saved_pc, cris_saved_pc_after_call,
7712 (cris_store_struct_return, cris_frameless_function_invocation)
7713 (cris_pop_frame, cris_skip_prologue_main)
7714 (cris_abi_original_store_return_value)
7715 (cris_abi_v2_store_return_value)
7716 (cris_abi_original_extract_return_value)
7717 (cris_abi_v2_extract_return_value)
7718 (cris_abi_original_reg_struct_has_addr)
7719 (cris_abi_v2_reg_struct_has_addr)
7720 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7721 (cris_push_return_address, cris_abi_update): Remove.
7722 (_initialize_cris_tdep): Remove ABI command.
7723 (cris_dump_tdep): Ditto.
7724 (cris_gdbarch_init): Remove ABI command.
7725 Set store_return_value, extract_return_value, push_dummy_code,
7726 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7727 frame_unwind_append_sniffer, frame_base_set_default.
7728 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7729 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7730 sizeof_call_dummy_words, get_saved_register, push_return_address,
7731 pop_frame, store_struct_return, frame_init_saved_regs,
7732 init_extra_frame_info, frameless_function_invocation, frame_chain,
7733 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7736 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7738 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7739 * valprint.c (print_hex_chars): Change from static to external.
7740 (print_char_chars): New function.
7741 * printcmd.c (print_scalar_formatted): For integer and enum types
7742 that are longer than LONGEST, perform processing via appropriate
7743 print_*_chars routines.
7745 2004-02-26 Andrew Cagney <cagney@redhat.com>
7747 * Makefile.in: Update dependencies.
7748 Changes from Ulrich Weigand,
7749 * s390-tdep.c: Include "dwarf2-frame.h".
7750 (s390_dwarf2_frame_init_reg): New function.
7751 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7752 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7754 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7756 * breakpoint.c (pending_break_support): New setting variable.
7757 (break_command_1): Account for pending_break_support setting
7758 when creating pending breakpoints.
7759 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7760 (_initialize_breakpoint): Add "set breakpoint pending" and
7761 "show breakpoint pending" commands.
7763 2004-02-26 Andrew Cagney <cagney@redhat.com>
7766 * charset.c (backslashable, backslashed, represented): Remove 'e'
7767 from list of escaped characters, not part of ISO-C.
7769 2004-02-25 J. Brobecker <brobecker@gnat.com>
7771 From Peter Schauer <schauer@pdf.de>:
7772 * tui/tui.c: Move system header includes after local includes.
7773 Fixes a build failure on solaris systems.
7775 2004-02-25 J. Brobecker <brobecker@gnat.com>
7777 * configure.in: Refine the previous change.
7778 * configure: Regenerate.
7780 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7782 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7783 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7784 "amd64-tdep.h" instead of "x86-64-tdep.h".
7785 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7786 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7787 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7788 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7789 and "x86-64-tdep.c".
7790 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7791 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7792 and "x86-64-tdep.c".
7793 * amd64bsd-nat.c: Update copyright year.
7794 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7795 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7797 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7799 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7801 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7803 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7805 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7807 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7808 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7809 * Makefile.in (amd64_linux_tdep_h): Renamed from
7810 x86_64_linux_tdep_h.
7811 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7812 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7813 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7814 (amd64obsd-tdep.o): Update dependencies.
7815 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7817 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7819 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7820 amd64-linux-nat.c amd64-linux-tdep.c.
7821 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7822 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7823 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7824 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7825 amd64-tdep.o and amd64-linux-tdep.o.
7826 (TM_FILE): Set to tm-linux64.h.
7827 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7828 (NAT_FILE): Set to nm-linux64.h.
7829 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7830 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7832 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7834 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7837 2004-02-25 Roland McGrath <roland@redhat.com>
7839 * remote.c (remote_protocol_qPart_auxv): New variable.
7840 (init_all_packet_configs): Initialize it.
7841 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7842 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7843 (show_remote_cmd): Call it.
7844 (_initialize_remote): Initialize commands.
7845 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7846 service TARGET_OBJECT_AUXV requests.
7848 2004-02-25 J. Brobecker <brobecker@gnat.com>
7850 * configure.in: Make sure that the wborder function is available.
7851 Otherwise, search for it in the cur_colr library.
7852 * configure: Regenerate.
7854 2004-02-25 Andrew Cagney <cagney@redhat.com>
7856 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7858 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7860 * config/i386/tm-x86-64linux.h: Tweak comments.
7862 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7864 * MAINTAINERS: Add self to write-after-approval list.
7866 2004-02-25 Andrew Cagney <cagney@redhat.com>
7868 PR cli/1566. Problem found, and fix suggested by David Allan.
7869 * cli/cli-script.c (execute_control_command): Unconditionally
7870 install a cleanup. Default "ret" to "invalid_control". Use
7871 "break" instead of "return" to escape from the switch.
7873 2004-02-24 J. Brobecker <brobecker@gnat.com>
7875 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7876 with the lines macro defined in term.h on AiX.
7877 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7878 a collision with the label_width macro defined in term.h on AiX.
7880 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7882 Committed by Kevin Buettner <kevinb@redhat.com>.
7884 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7885 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7886 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7887 instead of ia64_write_pc().
7888 * ia64-linux-tdep.c (regcache.h): Include.
7889 (ia64_linux_write_pc): New function.
7891 2004-02-23 Roland McGrath <roland@redhat.com>
7893 * auxv.c (info_auxv_command): Fix typos in error messages.
7895 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7897 * x86-64-tdep.h: Tweak comment.
7898 (enum amd64_regnum): New.
7899 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7900 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7901 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7902 (X86_64_XMM1_REGNUM): Removed.
7903 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7904 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7905 prototypes for renamed functions.
7906 * x86-64-tdep.c: Fix typo.
7907 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7909 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7910 Use constants from `enum amd64_regnum' for register numbers.
7911 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7912 (amd64_analyze_prologue, amd64_frame_cache,
7913 amd64_sigtramp_frame_cache): Use constants from `enum
7914 amd64_regnum' for register numbers.
7915 (amd64_supply_fpregset): Adjust for renamed functions.
7916 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7917 `enum amd64_regnum' for register numbers.
7918 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7919 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7920 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7921 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7922 (amd64_linux_fill_gregset): Adjust for renamed macros.
7923 (fetch_core_registers): Adjust for renamed functions.
7924 (amd64_linux_init_abi): Adjust for renamed functions.
7925 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7927 * amd64-nat.c: Adjust for renamed macros.
7928 * amd64bsd-nat.c (fetch_inferior_registers)
7929 (store_inferior_registers): Use constants from `enum amd64_regnum'
7930 for register numbers. Adjust for renamed variables.
7931 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7933 (_initialize_amd64fbsd_nat): Use constants from `enum
7934 amd64_regnum' for register numbers.
7935 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7936 `enum amd64_regnum' for register numbers.
7937 (amd64fbsd_init_abi): Adjust for renamed functions.
7938 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7939 `enum amd64_regnum' for register numbers.
7940 (amd64nbsd_init_abi): Adjust for renamed functions.
7941 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7942 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7943 `enum amd64_regnum' for register numbers.
7944 (amd64obsd_init_abi): Adjust for renamed functions.
7945 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7947 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7949 * breakpoint.c (print_one_breakpoint): Do not output spaces
7950 after printing <PENDING> for a pending breakpoint.
7952 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7954 * printcmd.c (print_scalar_formatted): Initialize val_long
7955 to remove compiler warning message.
7957 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7959 * defs.h (nquery, yquery): New prototypes.
7960 * breakpoint.c (break_command_1): Use new nquery interface.
7961 * utils.c (defaulted_query, nquery, yquery): New functions.
7963 2004-02-23 Andrew Cagney <cagney@redhat.com>
7965 * hppa-tdep.c (hppa_frame_align): New function.
7966 (hppa32_push_dummy_call): New function.
7967 (hppa64_push_dummy_call): New function.
7968 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7971 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7972 FIX_CALL_DUMMY when push_dummy_call is available.
7973 (call_function_by_hand, push_dummy_code): Ditto.
7975 2004-02-22 Andrew Cagney <cagney@redhat.com>
7977 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7978 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7979 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7980 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7981 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7982 call_dummy_location to ON_STACK.
7984 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7986 * x86-64-linux-tdep.c: Tweak comment.
7987 (amd64_linux_supply_gregset): Renamed from
7988 x86_64_linux_supply_gresget.
7989 (amd64_linux_fill_gregset): Renamed from
7990 x86_64_linux_fill_gregset.
7991 (fetch_core_registers): Adjust for renamed functions.
7992 (amd64_core_fns): Renamed from x86_64_core_fns.
7993 (amd64_linux_sigtramp_start): Renamed from
7994 x86_64_linux_sigtramp_start.
7995 (amd64_linux_pc_in_sigtramp): Renamed from
7996 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7997 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7998 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7999 (amd64_linux_sigcontext_addr): Renamed from
8000 x86_64_linux_sigcontext_addr.
8001 (amd64_linux_sc_reg_offset): Renamed from
8002 x86_64_linux_sc_reg_offset.
8003 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8004 Adjust for renamed functions and variables.
8005 (_initialize_amd64_linux_tdep): Renamed from
8006 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8008 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8009 Adjust for renamed functions.
8011 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8012 from x86_64_linux_gregset64_reg_offset.
8013 (amd64_linux_gregset32_reg_offset): Rename from
8014 x86_64_linux_gregset64_reg_offset.
8015 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8016 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8017 (amd64_linux_dr_set_control): Renamed from
8018 x86_64_linux_dr_set_control. Adjust for renamed functions.
8019 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8020 Adjust for renamed functions.
8021 (amd64_linux_dr_reset_addr): Renamed from
8022 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8023 (amd64_linux_dr_get_status): Renamed from
8024 x86_64_linux_dr_get_status. Adjust for renamed functions.
8025 (_initialize_amd64_linux_nat): Renamed from
8026 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8028 * config/i386/nm-x86-64linux.h: Update copyright year.
8029 Adjust for renamed functions.
8031 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8032 amd64fbsd_sigtramp_start.
8033 (amd64fbsd_sigtramp_end_addr): Renamed from
8034 amd64fbsd_sigtramp_end.
8035 (amd64fbsd_init_abi): Adjust for renamed variables.
8036 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8038 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8039 amd64fbsd_sigtramp_start.
8040 (amd64fbsd_sigtramp_end_addr): Renamed from
8041 amd64fbsd_sigtramp_end.
8043 2004-02-22 Andrew Cagney <cagney@redhat.com>
8045 * hppa-tdep.c (hppa32_return_value): New function.
8046 (hppa64_return_value): New function.
8047 (hppa_gdbarch_init): Set return_value; keep disabled.
8049 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8050 struct-return and inferior function call methods.
8052 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8054 (struct hppa_frame_cache): Define.
8055 (hppa_frame_cache, hppa_frame_this_id): New functions.
8056 (hppa_frame_prev_register): New function.
8057 (hppa_frame_unwind, hppa_frame_base): New variables.
8058 (hppa_frame_unwind_sniffer): New function.
8059 (hppa_frame_base_address, hppa_unwind_pc): New function.
8060 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8061 sniffer, and frame base sniffer; keep disabled.
8062 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8063 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8065 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8066 to predicates for "seriously old code".
8068 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8071 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8073 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8075 * config/pa/tm-hppa.h: Update copyright.
8076 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8077 (deprecated_init_frame_pc_default): Delete declaration.
8078 (hppa_frame_init_saved_regs): Delete declaration.
8079 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8080 * hppa-tdep.c: Include "arch-utils.h".
8081 (hppa_gdbarch_init): Set deprecated init_frame_pc
8082 and deprecated frame_init_saved_regs.
8083 (hppa_frame_init_saved_regs): Make static.
8085 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8087 Remove old 386BSD support.
8088 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8089 * configure.host: Remove i[34567]86-*-bsd*.
8090 * configure.tgt: Remove i[34567]86-*-bsd*.
8091 * i386b-nat.c: Removed.
8092 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8093 (i386b-nat.o): Remove dependencies.
8095 * config/i386/i386bsd.mh: Removed.
8096 * config/i386/i386bsd.mt: Removed.
8097 * config/i386/nm-i386bsd.h: Removed.
8098 * config/i386/tm-i386bsd.h: Removed.
8099 * config/i386/xm-i386bsd.h: Removed.
8101 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8103 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8104 (amd64fbsd_init_abi): Set link map offsets.
8105 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8106 (amd64nbsd_init_abi): Set link map offsets.
8107 * amd64obsd-tdep.c: Include "solib-svr4.h".
8108 (amd64obsd_init_abi): Set link map offsets.
8109 * i386fbsd-tdep.c: Include "solib-svr4.h".
8110 (i386fbsd_init_abi): Set link map offsets.
8111 * i386nbsd-tdep.c: Include "solib-svr4.h".
8112 (i386nbsdelf_init_abi): Set link map offsets.
8113 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8114 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8115 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8116 solib-legacy.o and core-aout.o. Reformat.
8117 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8118 solib-svr4.o, solib-legacy.o. Reformat.
8119 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8120 * config/i386/nbsdelf.mh: Reformat.
8121 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8122 solib-svr4.o, solib-legacy.o and corelow.o.
8123 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8124 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8125 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8126 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8127 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8128 (TM_FILE): Set to tm-fbsd.h.
8129 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8130 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8132 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8134 (TM_FILE): Set to nm-nbsd.h.
8135 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8136 Simplify shared library support. Don't include "elf/common.h".
8137 (SVR4_SHARED_LIBS): Don't define.
8138 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8140 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8141 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8142 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8143 Don't include "i386/tm-i386.h". Include "solib.h".
8144 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8145 Don't include "i386/tm-i386.h".
8146 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8147 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8148 Include "i386/xm-i386.h".
8149 (HOST_LONG_DOUBLE_FORMAT): Remove.
8151 Fix OpenBSD/i386 sigtramp recognition.
8152 * i386-tdep.h: Update copyright year.
8153 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8154 (i386bsd_sigtramp_end): New prototypes.
8155 (i386fbsd_sigtramp_start_addr): Renamed from
8156 i386fbsd_sigtramp_start.
8157 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8158 (i386obsd_sigtramp_start_addr): Renamed from
8159 i386obsd_sigtramp_start.
8160 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8161 * i386bsd-tdep.c: Update copyright year.
8162 (i386bsd_pc_in_sigtramp): Make public.
8163 * i386fbsd-nat.c: Update copyright year.
8164 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8165 * i386fbsd-tdep.c: Update copyright year.
8166 (i386fbsd_sigtramp_start_addr): Renamed from
8167 i386fbsd_sigtramp_start.
8168 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8169 (i386fbsdaout_init_abi): Adjust for renamed variables.
8170 * i386obsd-nat.c: Update copyright year.
8171 (_initialize_i386obsd_nat): Adjust for renamed variables.
8172 * i386obsd-tdep.c: Include "target.h".
8173 (i386obsd_page_size): New variable.
8174 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8175 (i386obsd_sigtramp_end): New functions.
8176 (i386obsd_sigtramp_start_addr): Renamed from
8177 i386obsd_sigtramp_start.
8178 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8179 (i386obsd_init_abi): Adjust for renamed variables. Set
8180 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8181 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8183 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8184 trampoline change in OpenBSD kernel.
8186 * amd64-nat.c: Update copyright year.
8187 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8188 architecture from REGCACHE.
8190 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8191 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8193 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8195 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8196 i[34567]86-*-openbsd3.[0-3].
8197 * config/i386/obsdaout.mh: New file.
8199 * config/i386/obsd.mh (MH_FLAGS): Remove.
8202 * i386obsd-tdep.c: Update copyright years. Include
8204 (i386obsd_init_abi): Don't set regset_from_core_section here.
8205 (i386obsd_aout_init_abi): New function. Set
8206 regset_from_core_section here.
8207 (i386obsd_elf_init_abi): New function.
8208 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8209 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8210 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8211 (TM_FILE): Set to tm-nbsd.h.
8213 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8216 * solib-svr4.h: Update copyright year.
8217 (svr4_ilp32_fetch_link_map_offsets)
8218 (svr4_lp64_fetch_link_map_offsets): New prototype.
8219 * solib-svr4.c: Update copyright year.
8220 (svr4_ilp32_fetch_link_map_offsets)
8221 (svr4_lp64_fetch_link_map_offsets): New function.
8223 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8225 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8226 to the partial symbol table.
8228 2004-02-20 J. brobecker <brobecker@gnat.com>
8230 * PROBLEMS: Add description of problem documented under gdb/1560.
8232 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8234 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8236 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8238 (amd64obsd_init_abi): Reorder initializations. Use
8239 amd64obsd_r_reg_offset to initialize the general-purpose register
8240 set details. Set regset_from_core_section.
8241 (_initialize_amd64obsd_tdep): Rename from
8242 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8243 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8244 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8246 * NEWS (New native configurations): Mention OpenBSD/alpha.
8247 * configure.tgt: Add alpha*-*-openbsd*.
8248 * configure.host: Add alpha*-*-openbsd*.
8249 * alphanbsd-tdep.c: Update copyright year.
8250 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8252 2004-02-20 Andrew Cagney <cagney@redhat.com>
8255 * configure.tgt: Delete target "none-*-*".
8256 * configure.host: Delete host "none-*-*".
8257 * config/none/none.mh: Delete file.
8258 * config/none/none.mt: Delete file.
8259 * config/none/xm-none.h: Delete file.
8260 * config/none/tm-none.h: Delete file.
8261 * config/none/nm-none.h: Delete file.
8263 2004-02-19 Fred Fish <fnf@redhat.com>
8265 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8266 cache->uses_fp prior to setting it.
8268 2004-02-19 Fred Fish <fnf@redhat.com>
8270 Fix for PR breakpoint/1558.
8271 * sh-tdep.c (IS_JSR): New macro.
8272 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8274 2004-02-19 Jim Blandy <jimb@redhat.com>
8276 * findvar.c (value_from_register): Doc fix.
8278 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8280 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8281 type being greater than sizeof of host's LONGEST. Always use
8282 unpack_long() unless format 'f' chosen.
8284 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8286 Committed by Elena Zannoni <ezannoni@redhat.com>
8288 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8289 contains a symbol wich is the best, non-exact match for the given
8290 pc. Update comments.
8292 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8294 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8295 macro, which was part of the now removed Mach 3 port.
8296 * utils.c (request_quit): Ditto.
8298 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8300 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8301 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8303 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8305 Committed by Mark Kettenis <kettenis@gnu.org>.
8307 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8310 2004-02-18 Andrew Cagney <cagney@redhat.com>
8312 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8313 CONFIG_INSTALL and CONFIG_UNINSTALL.
8314 * configure: Re-generate.
8315 * interps.h (INTERP_TUI): Define.
8316 * Makefile.in: Update dependencies.
8318 (tui-main.o): Specify dependencies.
8319 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8320 * tui/tui-main.c: New file.
8322 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8324 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8325 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8327 * configure.host: Add x86_64-*-openbsd*.
8328 * configure.tgt: Add x86_64-*-openbsd*.
8329 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8331 * tui/tui.c: Don't include <malloc.h>.
8333 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8334 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8337 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8338 static. Remove extraneous whitespace.
8339 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8342 2004-02-17 Jim Blandy <jimb@redhat.com>
8344 * findvar.c (value_from_register): Doc fix.
8346 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8348 Committed by Jim Blandy <jimb@redhat.com>.
8350 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8351 CORE_ADDR as type for selectors. Correct types for GNU run time
8352 message lookup function to use double indirection.
8353 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8354 * objc-lang.h (lookup_child_selector): Adapt prototype.
8356 * s390-nat.c (SUBOFF): New macro.
8357 (supply_gregset, fill_gregset): Use it to handle debugging
8358 of 32-bit exectuables running under a 64-bit kernel.
8359 * s390-tdep.c: Include "solib-svr4.h".
8360 (s390_svr4_fetch_link_map_offset): New function.
8361 (s390x_svr_fetch_link_map_offset): Likewise.
8362 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8363 * Makefile.in (s390-tdep.o): Update dependencies.
8365 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8367 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8368 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8369 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8370 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8371 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8372 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8373 S390_SIGNAL_FRAMESIZE,
8374 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8375 (struct frame_extra_info): Remove.
8376 (s390_memset_extra_info): Remove.
8377 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8378 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8379 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8380 (is_rse): Renamed to ...
8381 (is_rsy): ... this. Support long displacements.
8382 (is_rxe): Renamed to ...
8383 (is_rxy): ... this. Support long displacements.
8384 (compute_x_addr): Support long displacements.
8385 (struct s390_prologue_data): New data type.
8386 (s390_on_stack): Change API to use struct s390_prologue_data.
8387 (s390_store): Reimplement.
8388 (s390_load): New function.
8389 (s390_get_signal_frame_info): Remove.
8390 (s390_get_frame_info): Remove, replace by ...
8391 (s390_analyze_prolog): ... this new function.
8392 (s390_check_function_end): Remove.
8393 (s390_function_start): Remove.
8394 (s390_frameless_function_invokation): Remove.
8395 (s390_is_sigreturn): Remove.
8396 (s390_init_frame_pc_first): Remove.
8397 (s390_init_frame_extra_info): Remove.
8398 (s390_frame_init_saved_regs): Remove.
8399 (s390_frame_saved_pc_nofix): Remove.
8400 (s390_frame_saved_pc): Remove.
8401 (s390_frame_chain): Remove.
8402 (s390_fp_regnum, s390_read_fp): Remove.
8403 (s390_pop_frame_regular, s390_pop_frame): Remove.
8404 (s390_saved_pc_after_call): Remove.
8405 (s390_skip_prologue): Reimplement.
8406 (s390_in_function_epilogue_p): Support long displacements.
8407 (struct s390_unwind_cache): New data structure.
8408 (s390_frame_unwind_cache): New function.
8409 (s390_prologue_frame_unwind_cache): Likewise.
8410 (s390_backchain_frame_unwind_cache): Likewise.
8411 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8412 (s390_frame_unwind): Define.
8413 (s390_frame_sniffer): New function.
8414 (struct s390_pltstub_unwind_cache): New data structure.
8415 (s390_pltstub_frame_unwind_cache): New function.
8416 (s390_pltstub_frame_this_id): Likewise.
8417 (s390_pltstub_frame_prev_register): Likewise.
8418 (s390_pltstub_frame_unwind): Define.
8419 (s390_pltstub_frame_sniffer): New function.
8420 (struct s390_sigtramp_unwind_cache): New data structure.
8421 (s390_sigtramp_frame_unwind_cache): New function.
8422 (s390_sigtramp_frame_this_id): Likewise.
8423 (s390_sigtramp_frame_prev_register): Likewise.
8424 (s390_sigtramp_frame_unwind): Define.
8425 (s390_sigtramp_frame_sniffer): New function.
8426 (s390_frame_base_address, s390_local_base_address): New functions.
8427 (s390_frame_base): Define.
8428 (s390_unwind_pc, s390_unwind_sp): New function.
8429 (s390_push_dummy_call): Use new frame base location.
8430 (s390_unwind_dummy_id): Likewise.
8431 (s390_gdbarch_init): Remove calls to:
8432 set_gdbarch_frameless_function_invocation,
8433 set_gdbarch_deprecated_init_frame_pc,
8434 set_gdbarch_deprecated_frame_chain,
8435 set_gdbarch_deprecated_frame_init_saved_regs,
8436 set_gdbarch_deprecated_pop_frame,
8437 set_gdbarch_deprecated_init_extra_frame_info,
8438 set_gdbarch_deprecated_init_frame_pc_first,
8439 set_gdbarch_deprecated_target_read_fp,
8440 set_gdbarch_deprecated_frame_saved_pc,
8441 set_gdbarch_deprecated_saved_pc_after_call,
8442 set_gdbarch_deprecated_fp_regnum.
8444 set_gdbarch_in_solib_call_trampoline,
8445 frame_unwind_append_sniffer,
8446 frame_base_set_default,
8447 set_gdbarch_unwind_pc,
8448 set_gdbarch_unwind_sp.
8449 * Makefile.in (s390-tdep.o): Update dependencies.
8451 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8452 (S390_STACK_FRAME_OVERHEAD): Remove.
8453 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8454 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8455 (s390_promote_integer_argument): Remove.
8456 (s390_cannot_extract_struct_value_address): Remove.
8457 (s390_use_struct_convention, s390_store_struct_return): Remove.
8458 (s390_extract_return_value, s390_store_return_value): Remove.
8459 (s390_return_value_convention, s390_return_value): New functions.
8460 (is_float_singleton): Handle typedefs.
8461 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8462 Remove, replace by ...
8463 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8464 s390_function_arg_integer): ... these new functions.
8465 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8466 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8467 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8470 set_gdbarch_deprecated_store_struct_return,
8471 set_gdbarch_deprecated_extract_return_value,
8472 set_gdbarch_deprecated_store_return_value,
8473 set_gdbarch_use_struct_convention,
8474 set_gdbarch_extract_struct_value_address,
8475 set_gdbarch_deprecated_pc_in_call_dummy,
8476 set_gdbarch_deprecated_push_arguments,
8477 set_gdbarch_deprecated_save_dummy_frame_tos,
8478 set_gdbarch_deprecated_push_return_address,
8479 set_gdbarch_deprecated_sizeof_call_dummy_words,
8480 set_gdbarch_deprecated_call_dummy_words,
8481 set_gdbarch_deprecated_dummy_write_sp.
8483 set_gdbarch_push_dummy_call,
8484 set_gdbarch_unwind_dummy_id,
8485 set_gdbarch_return_value.
8487 * config/s390/nm-linux.h: Update comments.
8488 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8489 (STOPPED_BY_WATCHPOINT): Redefine.
8490 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8491 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8492 (s390_stopped_by_watchpoint): Likewise.
8493 (watch_area_cnt): Remove.
8494 * s390-nat.c: Update comments.
8495 (watch_area): Remove typedef.
8496 Global replace watch_area by struct watch_area.
8497 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8498 (s390_stopped_by_watchpoint): Remove pid argument,
8499 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8500 (s390_fix_watch_points): Remove pid argument,
8501 use s390_inferior_tid. Recompute area spanned by watchpoints.
8502 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8503 argument. Reimplement.
8505 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8506 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8507 (FETCH_INFERIOR_REGISTERS): Define.
8508 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8510 * config/s390/s390x.mt: Remove.
8511 * config/s390/tm-s390.h: Remove.
8512 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8513 (TARGET_ELF64): Remove.
8514 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8515 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8516 s390*-*-* case; always set gdb_target to s390.
8517 * regformats/reg-s390.dat: Remove control registers.
8518 * regformats/reg-s390x.dat: Likewise.
8519 * s390-tdep.h: New file.
8520 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8521 Include "inferior.h" and "s390-tdep.h".
8522 Remove private definition of offsetof.
8523 (s390_register_u_addr): Remove.
8524 (regmap_gregset, regmap_fpregset): Define.
8525 (supply_gregset, fill_gregset): Reimplement.
8526 (supply_fpregset, fill_fpregset): Likewise.
8527 (s390_inferior_tid): New function.
8528 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8529 (fetch_inferior_registers, store_inferior_registers): Likewise.
8530 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8531 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8532 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8533 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8534 (struct gdbarch_tdep): Define.
8535 (struct s390_register_info): Define.
8536 (s390_register_info): New variable.
8537 (s390_register_name): Reimplement.
8538 (s390_register_type): New function.
8539 (s390_register_raw_size, s390x_register_raw_size): Remove.
8540 (s390_cannot_fetch_register): Remove.
8541 (s390_register_byte): Remove.
8542 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8543 (s390_dwarf_regmap): New variable.
8544 (s390_dwarf_reg_to_regnum): New function.
8545 (s390_stab_reg_to_regnum): Remove.
8546 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8547 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8548 (s390_convert_register_p): Likewise.
8549 (s390_register_to_value, s390_value_to_register): Likewise.
8550 (s390_register_reggroup_p): Likewise.
8551 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8552 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8553 (s390_supply_regset, s390_regset_from_core_section): New functions.
8554 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8555 (S390_FPR_SIZE): Likewise.
8556 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8557 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8558 (S390_NUM_GPRS): Move here from tm-s390.h.
8559 (S390_NUM_FPRS): Likewise.
8560 (s390_in_function_epilogue_p): New function.
8561 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8562 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8563 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8564 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8565 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8567 set_gdbarch_deprecated_max_register_raw_size,
8568 set_gdbarch_deprecated_max_register_virtual_size,
8569 set_gdbarch_deprecated_register_byte,
8570 set_gdbarch_cannot_fetch_register,
8571 set_gdbarch_cannot_store_register,
8572 set_gdbarch_deprecated_register_size,
8573 set_gdbarch_deprecated_register_raw_size,
8574 set_gdbarch_deprecated_register_virtual_size,
8575 set_gdbarch_deprecated_register_virtual_type,
8576 set_gdbarch_deprecated_register_bytes.
8578 set_gdbarch_num_pseudo_regs,
8579 set_gdbarch_register_type,
8580 set_gdbarch_convert_register_p,
8581 set_gdbarch_register_to_value,
8582 set_gdbarch_value_to_register,
8583 set_gdbarch_register_reggroup_p,
8584 set_gdbarch_regset_from_core_section,
8585 set_gdbarch_pseudo_register_read,
8586 set_gdbarch_pseudo_register_write,
8587 set_gdbarch_in_function_epilogue_p.
8588 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8589 (s390_tdep_h): New variable.
8591 2004-02-17 Jim Blandy <jimb@redhat.com>
8593 * findvar.c (value_from_register): If the type has no length, just
8594 return an acceptable value --- don't report an internal error.
8596 * stabsread.c (read_type): If we find any type numbers that are
8597 forward references, complain if the references aren't resolved by
8598 the time we're finished reading.
8599 (cleanup_undefined_types): Make error message more appropriate for
8602 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8604 * Makefile.in (defs_h): Remove dependency on progress_h.
8605 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8607 * main.c (captured_main): Delete use of START_PROGRESS and
8610 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8612 * objfiles.c (terminate_minimal_symbol_table): Add back
8613 initialization of MSYMBOL_TYPE.
8615 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8617 Committed by Andrew Cagney.
8618 * Makefile.in (ia64_tdep_h): New macro.
8619 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8620 (ia64-tdep.o): Likewise.
8621 * ia64-tdep.h: New file.
8622 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8623 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8624 (ia64_aix_sigcontext_register_address): Likewise.
8625 (ia64_linux_getunwind_table): Delete declaration.
8626 * ia64-linux-tdep.c: Likewise.
8628 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8630 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8631 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8632 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8634 2004-02-17 Andrew Cagney <cagney@redhat.com>
8636 * symtab.c (skip_prologue_using_sal): New function.
8637 * symtab.h (skip_prologue_using_sal): Declare.
8638 * frv-tdep.c: Include "symtab.h".
8639 (skip_prologue_using_sal): Delete function.
8640 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8641 * rs6000-tdep.c (refine_prologue_limit): Mention
8642 skip_prologue_using_sal.
8643 * ia64-tdep.c (refine_prologue_limit): Ditto.
8644 * Makefile.in: Update dependencies.
8646 2004-02-16 Andrew Cagney <cagney@redhat.com>
8648 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8649 START_INFERIOR_TRAPS_EXPECTED.
8650 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8651 START_INFERIOR_TRAPS_EXPECTED.
8652 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8654 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8655 macro, moved to "nm-osf.h". Update copyright.
8656 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8659 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8660 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8661 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8662 frameless_look_for_prologue.
8663 * frame.h (legacy_frameless_look_for_prologue): Rename
8664 frameless_look_for_prologue.
8665 * gdbarch.h, gdbarch.c: Re-generate.
8666 * sh64-tdep.c (sh64_gdbarch_init): Update.
8667 * sh-tdep.c (sh_gdbarch_init): Update.
8668 * s390-tdep.c (s390_gdbarch_init): Update.
8669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8670 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8671 * m68k-tdep.c (m68k_gdbarch_init): Update.
8672 (delta68_frame_args_address): Update.
8673 * m32r-tdep.c (m32r_gdbarch_init): Update.
8674 * hppa-tdep.c (hppa_gdbarch_init): Update.
8675 * h8300-tdep.c (h8300_gdbarch_init): Update.
8676 * frv-tdep.c (frv_gdbarch_init): Update.
8677 (frv_frameless_function_invocation): Update.
8678 * cris-tdep.c (cris_gdbarch_init): Update.
8679 (cris_frameless_function_invocation): Update.
8680 * avr-tdep.c (avr_gdbarch_init): Update.
8681 * arm-tdep.c (arm_gdbarch_init): Update.
8682 * stack.c (frame_info): Update, call predicate.
8683 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8684 * frame.c (legacy_get_prev_frame): Update, call predicate..
8685 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8686 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8687 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8689 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8690 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8691 * vax-tdep.c (vax_gdbarch_init): Ditto.
8693 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8696 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8698 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8701 2004-02-16 Andrew Cagney <cagney@redhat.com>
8703 * tui/tui-windata.c: Include "gdb_string.h".
8704 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8705 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8706 * Makefile.in: Update dependencies.
8708 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8710 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8711 * infrun.c: Include "gdb_assert.h".
8712 (singlestep_ptid, saved_singlestep_ptid)
8713 (stepping_past_singlestep_breakpoint): New variables.
8714 (resume): Set singlestep_ptid. Check for singlestep thread
8716 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8717 (handle_inferior_event): Handle singlestep thread hop.
8719 2004-02-16 Andrew Cagney <cagney@redhat.com>
8721 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8722 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8723 (dwarf2_frame_init_reg): Ditto.
8725 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8726 suggested by Joshua Neuheisel
8728 * configure.in: Always check for curses, including pdcurses.
8729 Warn, instead of error, when no curses are found. Enable TUI when
8730 curses is available.
8731 * configure: Re-generate.
8733 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8735 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8736 sh_sh4_register_convert_to_virtual.
8737 (sh_register_convert_to_raw): Rename from
8738 sh_sh4_register_convert_to_raw.
8739 (sh_pseudo_register_read): Accomodate above name change.
8740 (sh_pseudo_register_write): Ditto.
8742 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8744 * sh-tdep.c (sh_generic_register_name): Remove.
8745 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8747 2004-02-15 Andrew Cagney <cagney@redhat.com>
8749 * configure.in (build_warnings): Add -Wunused-function.
8750 * configure: Re-generate.
8752 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8753 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8755 * procfs.c (procfs_init_inferior): Assume that
8756 START_INFERIOR_TRAPS_EXPECTED is defined.
8757 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8758 * config/ns32k/tm-nbsd.h: Delete file,
8759 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8761 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8762 * config/vax/tm-vax.h: Delete file.
8764 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8765 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8766 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8767 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8768 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8769 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8770 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8772 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8774 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8775 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8776 (struct dwarf2_frame_ops): New.
8777 (dwarf2_frame_default_init_reg): New function, based on
8778 dwarf2_frame_init_reg.
8779 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8780 (dwarf2_frame_init_reg): Call architecture-specific function.
8781 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8782 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8783 instead of dwarf2_frame_data.
8784 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8785 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8787 2004-02-15 Andrew Cagney <cagney@redhat.com>
8789 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8790 register_gdbarch_swap.
8791 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8792 * f-lang.c (_initialize_f_language): Update, use
8793 DEPRECATED_REGISTER_GDBARCH_SWAP.
8794 * remote.c (_initialize_remote): Ditto.
8795 * regcache.c (_initialize_regcache): Ditto.
8796 * parse.c (_initialize_parse): Ditto.
8797 * infrun.c (_initialize_infrun): Ditto.
8798 * mi/mi-main.c (_initialize_mi_main): Ditto.
8799 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8801 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8802 poking .cacheable directly.
8803 * symfile.c (symfile_bfd_open): Ditto.
8805 * Makefile.in: Update all dependencies.
8807 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8808 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8809 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8810 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8811 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8813 2004-02-14 Andrew Cagney <cagney@redhat.com>
8815 * arch-utils.c (legacy_convert_register_p): Check
8816 DEPRECATED_REGISTER_CONVERTIBLE_P.
8817 * findvar.c (value_of_register): Ditto.
8819 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8820 * gdbarch.h, gdbarch.c: Re-generate.
8821 * arch-utils.c (deprecated_register_convertible_not): Delete.
8822 * arch-utils.h (deprecated_register_convertible_not): Delete.
8823 * mi/mi-main.c (get_register): Update. Update copyright.
8824 * infcmd.c (default_print_registers_info): Update.
8826 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8827 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8828 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8829 * gdbarch.h, gdbarch.c: Re-generate.
8830 * frame.c (deprecated_get_next_frame_hack): Delete function.
8831 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8832 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8834 * infcall.c (call_function_by_hand): Update.
8836 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8838 * symfile.c (init_entry_point_info, entry_point_address): Move
8840 * objfiles.c (init_entry_point_info, entry_point_address):..to
8842 * symfile.h (init_entry_point_info, entry_point_address): Remove
8844 * objfiles.h (init_entry_point_info, entry_point_address):Add
8846 * cris-tdep.c: Remove include of symfile.h. Add include of
8849 * mcore-tdep.c: Ditto.
8850 * mn10300-tdep.c: Ditto.
8851 * sh64-tdep.c: Ditto.
8852 * v850-tdep.c: Ditto.
8853 * arm-tdep.c: Remove include of symfile.h.
8854 * blockframe.c: Ditto.
8855 * coffread.c: Ditto.
8857 * dwarf2read.c: Ditto.
8858 * dwarfread.c: Ditto.
8859 * frv-tdep.c: Ditto.
8860 * ia64-tdep.c: Ditto.
8861 * mdebugread.c: Ditto.
8862 * mipsread.c: Ditto.
8863 * rs6000-tdep.c: Ditto.
8864 * s390-tdep.c: Ditto.
8866 * xstormy16-tdep.c: Ditto.
8867 * gdbarch.sh: Remove include of symfile.h.
8868 * gdbarch.c: Regenerate.
8869 * solib-irix.c (enable_break): Use entry_point_address().
8870 Add comment about include file.
8871 * xcoffread.c: Add comment about include file.
8872 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8873 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8874 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8875 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8876 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8878 2004-02-13 Andrew Cagney <cagney@redhat.com>
8880 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8881 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8883 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8885 2004-02-12 Fred Fish <fnf@redhat.com>
8887 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8888 set_gdbarch_store_return_value.
8890 2004-02-12 Andrew Cagney <cagney@redhat.com>
8892 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8893 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8894 (interrupt_query): Ditto.
8895 (ofunc): Delete unused variable.
8896 * cris-tdep.c (cris_abi): Delete unused function.
8897 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8898 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8899 (cris_get_asr_quick_shift_steps): Ditto.
8900 (cris_skip_prologue_frameless_p): Ditto.
8901 * arm-tdep.c (arm_push_return_address): Delete unused function.
8902 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8903 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8904 * s390-tdep.c (s390_function_start): Delete unused function.
8906 2004-02-12 Andrew Cagney <cagney@redhat.com>
8908 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8909 gdbarch.h, gdbarch.c: Re-generate.
8910 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8911 to generic_prologue_frameless_p.
8912 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8913 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8915 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8917 * mips-linux-tdep.c: Include "frame.h".
8918 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8919 (mips_linux_skip_resolver): New functions.
8920 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8921 and set_gdbarch_in_solib_call_trampoline.
8922 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8923 to after set_gdbarch_in_solib_return_trampoline. Only set the
8924 solib hooks to mips16 functions if the OS ABI is unknown.
8925 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8926 including "config/tm-linux.h".
8927 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8928 * Makefile.in (mips-linux-tdep.o): Update.
8930 2004-02-11 David Carlton <carlton@kealia.com>
8932 * linespec.c (decode_compound): Only look for a class symbol when
8933 considering all but the rightmost component.
8935 2004-02-11 Andrew Cagney <cagney@redhat.com>
8937 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8938 abi code are are separatly grouped.
8940 2004-02-11 Andrew Cagney <cagney@redhat.com>
8942 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8943 * gdbarch.h, gdbarch.c: Re-generate.
8944 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8945 * v850-tdep.c (v850_gdbarch_init): Update.
8946 * sh64-tdep.c (sh64_gdbarch_init): Update.
8947 * sh-tdep.c (sh_gdbarch_init): Update.
8948 * s390-tdep.c (s390_gdbarch_init): Update.
8949 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8950 * mips-tdep.c (mips_gdbarch_init): Update.
8951 * mcore-tdep.c (mcore_gdbarch_init): Update.
8952 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8953 * m32r-tdep.c (m32r_gdbarch_init): Update.
8954 * ia64-tdep.c (ia64_gdbarch_init): Update.
8955 * hppa-tdep.c (hppa_gdbarch_init): Update.
8956 * h8300-tdep.c (h8300_gdbarch_init): Update.
8957 * frv-tdep.c (frv_gdbarch_init): Update.
8958 * d10v-tdep.c (d10v_gdbarch_init): Update.
8959 * cris-tdep.c (cris_gdbarch_init): Update.
8960 * avr-tdep.c (avr_gdbarch_init): Update.
8961 * arm-tdep.c (arm_gdbarch_init): Update.
8962 * alpha-tdep.c (alpha_gdbarch_init): Update.
8964 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8966 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8968 (sh_sh4al_dsp_register_name): Ditto.
8970 2004-02-10 Andrew Cagney <cagney@redhat.com>
8972 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8973 (mips_init_frame_pc_first): Delete function.
8974 (mips_frame_saved_pc): Delete function.
8975 (mips_frame_chain): Delete function.
8976 (mips_init_extra_frame_info): Delete function.
8977 (mips_xfer_register): Delete unused variable "reg".
8978 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8979 (mips_n32n64_return_value): Delete unused variable "reg".
8980 (mips_n32n64_return_value): Delete unused variable "pos".
8981 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8982 (mips_o32_return_value): Delete unused variable "pos".
8983 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8984 (mips_print_fp_register): Delete unused variable "namelen"
8985 (mips_print_fp_register): Delete unused variable "flt2"
8986 (get_frame_pointer): Delete function.
8987 (cached_proc_desc): Delete static variable.
8988 (mips_pop_frame): Delete function.
8989 (mips_find_saved_regs): Delete function.
8990 (mips_get_saved_register): Delete function.
8991 (mips_saved_pc_after_call): Delete function.
8992 (SIGFRAME_BASE): Delete macro.
8993 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8994 (SIGFRAME_PC_OFF): Delete macro.
8995 (SIGFRAME_REGSAVE_OFF): Delete macro.
8996 (mips_dump_tdep): Do not print deleted macro definitions.
8998 2004-02-10 Andrew Cagney <cagney@redhat.com>
9000 * Makefile.in (SFILES): Remove explictly listed tui files.
9001 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9003 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9005 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9006 to use paddr functions to format ia64 addresses and long values.
9007 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9008 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9009 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9010 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9011 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9013 2004-02-10 Andrew Cagney <cagney@redhat.com>
9015 * defs.h: Do not include "tui.h".
9016 * gdb_curses.h: New file.
9017 * tui/tui-hooks.h: New file.
9018 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9019 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9020 (tui_initialize_io): Delete declaration.
9021 (tui_initialize_readline: Delete redundant declaration.
9022 (struct tui_point): Delete definition.
9023 * tui/tui-data.h (struct tui_point): Define.
9024 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9025 * utils.c: Include "tui/tui.h".
9026 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9027 * printcmd.c [TUI]: Include "tui/tui.h".
9028 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9029 * tui/tui-command.c: Include "gdb_curses.h".
9030 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9031 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9032 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9033 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9034 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9035 * Makefile.in: Update all dependencies.
9036 (tui_hooks_h, gdb_curses_h): Define.
9037 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9039 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9041 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9042 auxf2. Add comments about some other rarely used fields.
9044 2004-02-10 Andrew Cagney <cagney@redhat.com>
9046 * Makefile.in (init.c): Fix script removing duplicates. Problem
9047 reported by Peter Schauer.
9049 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9051 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9052 obstack_specify_allocation.
9053 * objfiles.c (allocate_objfile): Ditto.
9054 * solib-sunos.c (solib_add_common_symbols)
9055 (allocate_rt_common_objfile): Ditto.
9056 * symfile.c (reread_symbols): Ditto.
9057 * gdb_obstack.h: Add comment.
9059 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9061 * linespec.c (decode_line_1, locate_first_half)
9062 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9065 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9067 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9070 2004-02-09 Andrew Cagney <cagney@redhat.com>
9072 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9073 fails, try find_pc_section. Fix PR c++/1267.
9074 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9075 instead of find_pc_mapped_section.
9076 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9077 not default to the section containing PC. Fix PR symtab/1519.
9079 2004-02-09 Andrew Cagney <cagney@redhat.com>
9081 * Makefile.in (mips-tdep.o): Update dependencies.
9082 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9084 (mips_unwind_pc): Return the pseudo PC register.
9085 (mips_unwind_dummy_id): New function.
9086 (mips16_fetch_instruction): New function.
9087 (mips32_fetch_instruction): New function.
9088 (struct mips_frame_cache): Define.
9089 (mips_mdebug_frame_cache): New function.
9090 (mips_mdebug_frame_this_id): New function.
9091 (mips_mdebug_frame_prev_register): New function.
9092 (mips_mdebug_frame_unwind): Define.
9093 (mips_mdebug_frame_sniffer): New function.
9094 (mips_mdebug_frame_base_address): New function.
9095 (mips_mdebug_frame_base): Define.
9096 (mips_mdebug_frame_base_sniffer): New function.
9097 (mips_gdbarch_init): Append unwind and base sniffers. Set
9100 2004-02-08 Andrew Cagney <cagney@redhat.com>
9102 * frame.c: Print both the register number and name.
9104 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9105 and a sed into a single sed. Make .c and .o patterns more robust.
9107 (INIT_FILES): Replace OBS with COMMON_OBS.
9108 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9110 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9112 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9113 the PT_WCOOKIE request.
9115 2004-02-08 Andrew Cagney <cagney@redhat.com>
9117 * mips-tdep.c (mips_unwind_pc): New function.
9118 (mips_gdbarch_init): Set mips_unwind_pc.
9120 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9121 (get_frame_id): Allow the UNKNOWN_FRAME.
9122 (frame_register_unwind, get_frame_type): Ditto.
9124 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9125 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9126 unwind_dummy_id indicates a legacy frame.
9128 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9129 * configure: Re-generate.
9131 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9134 2004-02-08 Andrew Cagney <cagney@redhat.com>
9136 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9138 * configure: Re-generate.
9139 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9140 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9141 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9142 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9143 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9144 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9145 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9146 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9147 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9148 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9150 2004-02-07 Andrew Cagney <cagney@redhat.com>
9152 * Makefile.in: Update all dependencies.
9154 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9155 * configure: Re-generate.
9156 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9157 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9158 (COMMON_OBS): Add "main.o" and "annotate.o".
9159 (ANNOTATE_OBS): Delete.
9160 (OBS): Remove ANNOTATE_OBS.
9161 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9163 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9164 against CONFIG_OBS and "main.o".
9165 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9166 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9168 * tui/tui-command.c: Include "gdb_string.h", delete register
9169 attribute, use ISO-C function signatures.
9170 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9171 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9172 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9175 * tui/tui-command.c: Change variable and function names to lower
9177 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9178 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9179 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9180 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9181 * tui/tui-winsource.c, tui/tui.c: Ditto.
9183 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9185 * buildsym.c (free_pending_blocks, finish_block)
9186 (record_pending_block, make_blockvector, end_symtab): Replace
9187 symbol_obstack with objfile_obstack.
9188 * coffread.c (process_coff_symbol, coff_read_struct_type)
9189 (coff_read_enum_type): Ditto.
9190 * cp-namespace.c (initialize_namespace_symtab)
9191 (check_one_possible_namespace_symbol): Ditto.
9192 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9193 (dwarf2_symbol_mark_computed): Ditto.
9194 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9195 * elfread.c (elf_symtab_read): Ditto.
9196 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9197 (hpread_read_enum_type, hpread_read_function_type)
9198 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9200 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9201 (java_link_class_type): Ditto.
9202 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9203 (new_symbol): Ditto.
9204 * minsyms.c (install_minimal_symbols): Ditto.
9205 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9206 (terminate_minimal_symbol_table): Replace symbol_obstack with
9208 (free_objfile): Remove freeing of symbol_obstack.
9209 * objfiles.h: Remove symbol_obstack field.
9210 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9212 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9214 (solib_add_common_symbols): Replace symbol_obstack with
9216 * somsolib.c (som_solib_add): Ditto.
9217 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9218 (common_block_start, common_block_end): Ditto.
9219 * symfile.c (reread_symbols): Remove freeing and init of
9221 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9222 * symfile.h: Update comment.
9223 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9225 * symtab.c (symbol_set_names): Replace symbol_obstack with
9227 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9229 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9230 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9233 2004-02-07 Andrew Cagney <cagney@redhat.com>
9235 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9236 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9237 fields and variables.
9238 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9239 (m_beInvisible): Delete macro.
9240 * tui/tui-data.h: Fix case case fields and variables.
9241 (m_genWinPtrIsNull): Delete macro.
9242 (tui_win_list): Rename winList.
9243 (TUI_SRC_WIN): Rename srcWin.
9244 (TUI_DISASM_WIN): Rename disassemWin.
9245 (TUI_DATA_WIN): Rename dataWin.
9246 (TUI_CMD_WIN): Rename cmdWin.
9247 (m_genWinPtrNotNull): Delete macro.
9248 (m_winPtrIsNull): Delete macro.
9249 (m_winPtrNotNull): Delete macro.
9250 (tui_win_is_source_type): Replace m_winIsSourceType
9251 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9252 (tui_win_has_locator): Replace m_hasLocator.
9253 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9254 m_setWinHighlightOff.
9255 * tui/tui-data.c: Update references.
9256 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9257 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9258 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9259 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9260 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9261 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9262 * tui/tui-winsource.c, tui/tui.c: Ditto.
9264 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9266 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9267 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9270 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9271 variable `i6' to `i7'.
9272 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9274 2004-02-07 Andrew Cagney <cagney@redhat.com>
9276 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9277 (TuiPoint, TuiPointPtr): Ditto.
9278 (TuiStatus, TuiStatusPtr): Ditto.
9279 (TuiWinType, TuiWinTypePtr): Ditto.
9280 (struct tui_point): Rename _TuiPoint.
9281 (tui_get_low_disassembly_address): Rename
9282 tuiGetLowDisassemblyAddress.
9283 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9284 (tuiFree): Delete declaration.
9285 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9286 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9287 * tui/tui.c (tuiFree): Delete function.
9288 * cli/cli-cmds.c (disassemble_command): Update references.
9289 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9290 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9291 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9292 * tui/tui-winsource.c: Ditto.
9294 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9296 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9297 coffstab_build_psymtabs, elfstab_build_psymtabs)
9298 (stabsect_build_psymtabs): Replace psymbol_obstack with
9300 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9301 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9303 * dwarfread.c (scan_compilation_units): Ditto.
9304 * elfread.c (elfstab_offset_sections): Ditto.
9305 * hppa-tdep.c (read_unwind_info): Ditto.
9306 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9307 (hpread_end_psymtab): Ditto.
9308 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9309 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9311 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9312 * objfiles.c (add_to_objfile_sections)
9313 (build_objfile_section_table): Ditto.
9314 (allocate_objfile): Remove init of psymbol_obstack.
9315 (free_objfile): Remove freeing of psymbol_obstack.
9316 * objfiles.h (struct objfile): Remove field
9317 psymbol_obstack. Update comments.
9318 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9319 psymbol_obstack with objfile_obstack.
9320 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9322 * somread.c (som_symfile_offsets, init_import_symbols)
9323 (init_export_symbols): Replace psymbol_obstack with
9325 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9326 * symfile.c (default_symfile_offsets, syms_from_objfile)
9327 (reread_symbols): Remove freeing and init of psymbol_obstack.
9328 (cashier_psymtab): Update comment.
9329 * symmisc.c (print_objfile_statistics): Don't report stats for
9331 * symtab.h (struct general_symbol_info, struct partial_symtab):
9333 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9334 (xcoff_symfile_offsets): Replace psymbol_obstack with
9337 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9339 * objfiles.h (struct objfile): Add objfile_obstack field.
9340 Remove type_obstack field.
9342 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9343 read_structure_scope read_enumeration, new_symbol): Replace
9344 type_obstack with objfile_obstack.
9345 * dwarfread.c (struct_type, enum_type): Ditto.
9346 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9347 (lookup_fundamental_type): Ditto.
9348 * gdbtypes.h (TYPE_ALLOC): Ditto.
9349 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9350 (hpread_read_doc_function_type, hpread_read_struct_type)
9351 (fix_static_member_physnames, hpread_read_array_type)
9352 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9353 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9354 (java_link_class_type): Ditto.
9355 * mdebugread.c (parse_type): Ditto.
9356 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9357 * solib-sunos.c (solib_add_common_symbols): Ditto.
9358 * stabsread.c (define_symbol, read_type, read_member_functions,
9359 read_cpp_abbrev, read_one_struct_field): Ditto.
9360 * symfile.c (reread_symbols): Ditto.
9361 * symmisc.c (print_objfile_statistics): Ditto.
9363 2004-02-07 Andrew Cagney <cagney@redhat.com>
9365 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9366 (tui_exec_info_content): Rename TuiExecInfoContent.
9367 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9368 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9369 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9370 (TuiList, TuiListPtr): Ditto.
9371 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9372 (TuiDataType, TuiDataTypePtr): Ditto.
9373 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9374 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9375 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9376 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9377 (TuiDataElement, TuiDataElementPtr): Ditto.
9378 (TuiWinElement, TuiWinElementPtr): Ditto.
9379 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9380 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9381 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9382 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9383 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9384 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9385 * tui/tui-command.c, tui/tui-data.c: Update references.
9386 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9387 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9388 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9389 * tui/tui-winsource.c, tui/tui.c: Ditto.
9391 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9393 * dwarf2-frame.h: Update copyright.
9394 (enum dwarf2_frame_reg_rule): New.
9395 (struct dwarf2_frame_state_reg): New.
9396 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9397 * dwarf2-frame.c: Update copyright.
9398 (enum dwarf2_reg_rule): Remove.
9399 (struct dwarf2_frame_state): Remove defenition of `struct
9400 dwarf2_frame_state_reg'.
9401 (read_reg): Call get_frame_arch to get the architecture instead of
9402 using CURRENT_GDBARCH.
9403 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9405 (dwarf2_frame_init_reg): New function.
9406 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9407 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9408 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9409 tags with DWARF2_FRAME_.
9410 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9411 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9412 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9414 2004-02-06 Andrew Cagney <cagney@redhat.com>
9416 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9417 (enum tui_data_type): Rename _TuiDataType.
9418 (struct tui_layout_def): Rename _TuiLayoutDef.
9419 (struct tui_source_element): Rename _TuiSourceElement.
9420 (struct tui_data_element): Rename _TuiDataElement.
9421 (struct tui_command_element): Rename _TuiCommandElement.
9422 (struct tui_locator_element): Rename _TuiLocatorElement.
9423 (union tui_which_element): Define.
9424 (struct tui_win_element): Rename _TuiWinElement.
9425 (struct tui_data_info): Rename _TuiDataInfo.
9426 (struct tui_source_info): Rename _TuiSourceInfo.
9427 (struct tui_command_info): Rename _TuiCommandInfo.
9428 (tui_initialize_static_data): Rename initializeStaticData.
9429 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9430 (tui_alloc_win_info): Rename allocWinInfo.
9431 (tui_init_generic_part): Rename initGenericPart.
9432 (tui_init_win_info): Rename initWinInfo.
9433 (tui_alloc_content): Rename allocContent.
9434 (tui_add_content_elements): Rename addContentElements.
9435 (tui_init_content_element): Rename initContentElement.
9436 (tui_free_window): Rename freeWindow.
9437 (tui_free_win_content): Rename freeWinContent.
9438 (tui_free_data_content): Rename freeDataContent.
9439 (tui_free_all_source_wins_content): Rename
9440 freeAllSourceWinsContent.
9441 (tui_del_window): Rename tuiDelWindow.
9442 (tui_del_data_windows): Rename tuiDelDataWindows.
9443 (tui_partial_win_by_name): Rename partialWinByName.
9444 (tui_win_name): Rename winName.
9445 (tui_current_layout): Rename currentLayout.
9446 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9447 (tui_term_height): Rename termHeight.
9448 (tui_set_term_height_to): Rename setTermHeightTo.
9449 (tui_term_width): Rename termWidth.
9450 (tui_set_term_width_to): Rename setTermWidthTo.
9451 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9452 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9453 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9454 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9455 (tui_source_windows): Rename sourceWindows.
9456 (tui_clear_source_windows): Rename clearSourceWindows.
9457 (tui_clear_source_windows_detail): Rename
9458 clearSourceWindowsDetail.
9459 (tui_clear_win_detail): Rename clearWinDetail.
9460 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9461 (tui_default_tab_len): Rename tuiDefaultTabLen.
9462 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9463 (tui_win_with_focus): Rename tuiWinWithFocus.
9464 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9465 (tui_layout_def): Rename tuiLayoutDef.
9466 (tui_win_resized): Rename tuiWinResized.
9467 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9468 (tui_next_win): Rename tuiNextWin.
9469 (tui_prev_win): Rename tuiPrevWin.
9470 (tui_add_to_source_windows): Rename addToSourceWindows.
9471 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9472 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9473 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9474 * tui/tui.c, tui/tui-data.c: Ditto.
9475 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9476 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9478 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9479 (struct symtab): Declare.
9480 (tui_set_source_content): Rename tuiSetSourceContent.
9481 (tui_show_symtab_source): Rename tuiShowSource.
9482 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9483 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9484 * tui/tui-source.c: Update copyright. Update references.
9485 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9486 * tui/tui-stack.c: Update references.
9488 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9489 (struct tui_win_info): Declare.
9490 (tui_scroll_forward): Rename tuiScrollForward.
9491 (tui_scroll_backward): Rename tuiScrollBackward.
9492 (tui_scroll_left): Rename tuiScrollLeft.
9493 (tui_scroll_right): Rename tuiScrollRight.
9494 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9495 (tui_resize_all): Rename tuiResizeAll.
9496 (tui_refresh_all_win): Rename tuiRefreshAll.
9497 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9498 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9499 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9500 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9502 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9503 (tui_erase_data_content): Rename tuiEraseDataContent.
9504 (tui_display_all_data): Rename tuiDisplayAllData.
9505 (tui_check_data_values): Rename tuiCheckDataValues.
9506 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9507 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9508 (tui_first_data_element_no_in_line): Rename
9509 tuiFirstDataElementNoInLine.
9510 (tui_delete_data_content_windows): Rename
9511 tuiDeleteDataContentWindows.
9512 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9513 (tui_display_data_from): Rename tuiDisplayDataFrom.
9514 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9515 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9516 * tui/tui-win.c, tui/tui-regs.c: Update references.
9517 * tui/tui-layout.c, tui/tui.c: Update references.
9519 * tui/tui-wingeneral.h: Update copyright.
9520 (m_allBeVisible): Delete macro.
9521 (m_allBeInvisible): Delete macro.
9522 (struct tui_gen_win_info): Declare.
9523 (struct tui_win_info): Declare.
9524 (tui_unhighlight_win): Rename unhighlightWin.
9525 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9526 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9527 (tui_make_window): Rename makeWindow.
9528 (tui_copy_win): Rename copyWin.
9529 (tui_box_win): Rename boxWin.
9530 (tui_highlight_win): Rename highlightWin.
9531 (tui_check_and_display_highlight_if_needed): Rename
9532 checkAndDisplayHighlightIfNeeded.
9533 (tui_refresh_all): Rename refreshAll.
9534 (tui_delete_win): Rename tuiDelwin.
9535 (tui_refresh_win): Rename tuiRefreshWin.
9536 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9537 (tui_make_visible, tui_make_invisible): New functions.
9538 (tui_make_all_visible, tui_make_all_invisible): New functions.
9539 (make_all_visible): Rename makeAllVisible.
9540 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9541 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9542 * tui/tui-windata.c, tui/tui-win.c: Update references.
9543 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9544 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9546 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9548 * proc-api.c (write_with_trace): Initialize local variable to
9549 silence compiler warning.
9551 2004-02-06 Andrew Cagney <cagney@redhat.com>
9553 * tui/tui-source.h: Do not include "defs.h".
9554 (struct tui_win_info): Declare.
9555 (tui_set_source_content_nil): Declare.
9556 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9557 (union tui_line_or_address): Rename _TuiLineOrAddress.
9558 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9559 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9560 (tui_update_source_window_as_is): Rename
9561 tuiUpdateSourceWindowAsIs.
9562 (tui_update_source_windows_with_addr): Rename
9563 tuiUpdateSourceWindowsWithAddr.
9564 (tui_update_source_windows_with_line): Rename
9565 tuiUpdateSourceWindowsWithLine.
9566 (tui_clear_source_content): Rename tuiClearSourceContent.
9567 (tui_erase_source_content): Rename tuiEraseSourceContent.
9568 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9569 (tui_show_source_content): Rename tuiShowSourceContent.
9570 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9571 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9572 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9573 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9574 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9575 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9576 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9577 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9578 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9579 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9580 (struct tui_win_info): Declare.
9581 * tui/tui-stack.c: Update references.
9582 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9583 * tui/tui-win.c, tui/tui-source.c: Ditto.
9584 * tui/tui.c, tui/tui-disasm.c: Ditto.
9586 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9588 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9589 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9591 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9593 * infrun.c (handle_inferior_event): Allow for breakpoint
9594 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9595 and SIGEMT. Update comments.
9596 * NEWS (Revised SPARC target): Mention support for non-executable
9599 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9601 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9602 * inftarg.c: Update copyright year.
9603 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9604 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9605 (sparc_xfer_wcookie): New function.
9606 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9607 * Makefile.in (sparc-nat.o): Update dependencies.
9608 * config/sparc/nm-nbsd.h: Include "target.h".
9609 (NATIVE_XFER_WCOOKIE): New define.
9610 (sparc_xfer_wcookie): New prototype.
9612 2004-02-04 Andrew Cagney <cagney@redhat.com>
9614 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9615 SYSCALL_TRAP function.
9616 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9618 2004-02-04 Andrew Cagney <cagney@redhat.com>
9619 Daniel Jacobowitz <drow@mvista.com>
9621 * objfiles.h: Delete comments refering to inside_entry_func and
9622 DEPRECATED_FRAME_CHAIN_VALID.
9623 * defs.h (inside_entry_func): Update prototype..
9624 * blockframe.c (inside_entry_func): Rename to
9625 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9626 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9628 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9630 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9631 outside of #ifdef SOLIB_ADD region.
9632 (do_restore_lang_radix_cleanup): Ditto.
9633 (resolve_pending_breakpoint): Ditto.
9635 2004-02-03 Andrew Cagney <cagney@redhat.com>
9637 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9638 (process_note_abi_tag_sections): Delete unused function.
9639 (ia64_read_fp): Delete unused function.
9640 (gdbarch_extract_struct_value_address): Delete declaration.
9642 2004-02-02 Andrew Cagney <cagney@redhat.com>
9644 * vax-tdep.c (vax_frame_chain): Delete call to
9645 deprecated_inside_entry_file.
9646 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9648 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9650 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9651 column that's "empty" or "same value" when eliminating REG_RA
9654 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9656 * NEWS: Add information about new pending breakpoint support.
9658 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9660 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9661 and pending fields for pending breakpoint support.
9662 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9663 (condition_command): Only parse condition if not a pending
9665 (print_one_breakpoint): Add support for pending breakpoints.
9666 (describe_other_breakpoints): Add checks to verify we are not
9667 dealing with pending breakpoints.
9668 (check_duplicates): Don't check pending breakpoints.
9669 (set_raw_breakpoint): Initialize pending flag.
9670 (do_restore_lang_radix_cleanup): New cleanup routine.
9671 (resolve_pending_breakpoint): New function.
9672 (re_enable_breakpoints_in_shlibs): Try and resolve any
9673 pending breakpoints via resolve_pending_breakpoint.
9674 (mention): Add pending breakpoint support.
9675 (parse_breakpoint_sals): Add new parameter to pass to
9676 decode_line_1 to indicate silent errors when files or functions
9677 are not found. Change all callers.
9678 (do_captured_parse_breakpoint): New function.
9679 (break_command_1): Change prototype to return an rc value and to
9680 take an optional pending breakpoint pointer. Support creating
9681 a pending breakpoint if a "not found" form of error occurs when
9682 parsing the breakpoint. Also support resolving an existing pending
9683 breakpoint and be silent if the resolution fails.
9684 (create_breakpoints): Change prototype to take pending breakpoint
9685 pointer. When resolving a pending breakpoint, use the new pointer
9686 to provide a conditional or commands added by the end-user.
9687 (delete_breakpoint): Add appropriate check for pending.
9688 (breakpoint_re_set_one): Ditto.
9689 (do_enable_breakpoint): Ditto.
9691 2004-02-02 David Carlton <carlton@kealia.com>
9693 * valops.c (enum oload_classification): New.
9694 (find_overload_match): Break implementation into separate
9695 functions; delete #if 0'd code; look for symbols within
9697 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9698 (find_oload_champ,oload_method_static,classify_oload_match): New.
9699 * cp-support.h: Add declaration for cp_func_name; update
9700 declaration for make_symbol_overload_list.
9701 * cp-support.c (cp_func_name): New.
9702 (overload_list_add_symbol): Fix comment, use
9703 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9704 (make_symbol_overload_list): Take a function name and a namespace
9705 instead of a symbol; change implementation.
9706 (make_symbol_overload_list_using): New.
9707 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9709 2004-02-02 Fred Fish <fnf@redhat.com>
9711 * main.c (gdb_stdtarg): Move definition to group with other
9712 gdb_stdtarg definitions and update copyright years.
9713 * remote-sim.c (gdb_os_write_stderr): Write output to
9714 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9715 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9716 gdb_stderr stream and update copyright years.
9718 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9720 * Makefile.in (mips-linux-nat.o): Update dependencies.
9721 * mips-linux-nat.c: Include mips-tdep.h.
9723 2004-02-01 Roland McGrath <roland@redhat.com>
9725 * sol-thread.c (sol_thread_xfer_partial): New function.
9726 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9727 (init_sol_core_ops): Likewise.
9729 * procfs.c (procfs_xfer_partial): New function.
9730 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9731 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9733 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9734 procfs_xfer_auxv function.
9736 * procfs.c (procfs_make_note_section): If we can read
9737 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9738 * linux-proc.c (linux_make_note_section): Likewise.
9742 * Makefile.in (auxv_h): New variable.
9743 (COMMON_OBS): Add auxv.o here.
9744 (auxv.o): New target.
9746 * corelow.c (core_xfer_partial): New function.
9747 (init_core_ops): Use it for core_ops.to_xfer_partial.
9749 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9750 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9751 macro if that is defined.
9753 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9755 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9756 and check the specified thread for each breakpoint.
9757 * breakpoint.h (bpstat_stop_status): Update prototype.
9758 * infrun.c (handle_inferior_event): Update calls to
9761 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9763 * Makefile.in (cli-cmds.o): Add $(readline_h).
9765 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9767 * cli/cli-cmds.c: Include readline.h.
9768 (complete_command): Pass the start of the last word to
9771 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9773 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9774 argument, and change first argument to a CORE_ADDR.
9775 * breakpoint.h (bpstat_stop_status): Update prototype.
9776 * infrun.c (adjust_pc_after_break): Add a new comment.
9777 (handle_inferior_event): Update calls to bpstat_stop_status.
9779 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9781 * breakpoint.h: Update copyright years.
9783 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9785 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9786 (bpstat_stop_status): Don't decrement PC.
9787 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9789 * infrun.c (adjust_pc_after_break): New function.
9790 (handle_inferior_event): Call it, early. Remove later references
9791 to DECR_PC_AFTER_BREAK.
9792 (normal_stop): Add commentary.
9794 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9796 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9797 2004-01-27 double-free fix.
9799 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9801 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9802 (sparc32_frame_prev_register): Handle StackGhost.
9803 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9805 2004-01-29 Roland McGrath <roland@redhat.com>
9807 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9808 * configure: Regenerated.
9810 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9811 * Makefile.in (procfs.o): Add dep.
9813 2004-01-28 Andrew Cagney <cagney@redhat.com>
9815 * tui/tui-stack.h: Update copyright.
9816 (struct frame_info): Add opaque declaration.
9817 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9818 (tui_show_locator_content): Rename tuiShowLocatorContent.
9819 (tui_show_frame_info): Rename tuiShowFrameInfo.
9820 * tui/tui-stack.c: Update copyright. Update references.
9821 * tui/tui-winsource.c: Update references.
9822 * tui/tui-win.c: Update references.
9823 * tui/tui-layout.c: Update references.
9824 * tui/tui-hooks.c: Update copyright, update references.
9825 * tui/tui.c: Update copyright, update references.
9826 * tui/tui-disasm.c: Update references.
9828 2004-01-28 David Carlton <carlton@kealia.com>
9830 * dwarf2read.c (add_partial_structure): Use demangled name if
9831 namespace equals "".
9833 2004-01-27 Jim Blandy <jimb@redhat.com>
9835 Clean up misapplied patch:
9836 * dwarf2read.c (determine_prefix): Change one of the two forward
9837 declarations for 'determine_prefix_aux' to a declaration for this.
9838 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9839 argument to 'die_specification'.
9841 * dwarf2read.c (read_func_scope): Re-indent comment.
9843 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9845 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9846 b->exp to NULL after freeing so that error during re-parsing or
9847 evaluation of expressions associated with breakpoint don't
9848 eventually lead to re-freeing of storage.
9849 Committed by Andrew Cagney.
9851 2004-01-27 Andrew Cagney <cagney@redhat.com>
9853 * source.c (ambiguous_line_spec): Delete undefined declaration.
9854 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9855 (m32r_set_server_address, m32r_set_download_path): Ditto.
9856 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9858 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9860 * dwarf2read.c: Update calls to changed and renamed functions, and
9861 references to moved variables.
9863 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9864 language, language_defn, list_in_scope, and ftypes members.
9865 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9866 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9867 (baseaddr): Remove globals.
9869 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9870 (set_cu_language, die_is_declaration, die_specification)
9871 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9872 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9873 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9874 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9876 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9877 cu.list_in_scope. Don't initialize cu_header_offset.
9878 (add_partial_symbol): Add local baseaddr.
9879 (psymtab_to_symtab_1): Add local baseaddr. Use
9880 objfile->section_offsets for consistency. Don't initialize
9881 cu_header_offset; do initialize cu.header.offset and
9883 (read_file_scope, read_func_scope, read_lexical_block_scope)
9884 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9886 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9888 * PROBLEMS: Add gdb/1516.
9890 2003-12-29 Robert Millan <robertmh@gnu.org>
9892 Patch committed by Andrw Cagney.
9893 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9894 * configure.tgt: Match knetbsd*-gnu.
9896 2004-01-26 Andrew Cagney <cagney@redhat.com>
9898 * breakpoint.c (catch_command_1): Delete #ifdef code.
9899 (catch_fork_command_1): Delete #ifdef wrapper.
9900 (catch_exec_command_1): Ditto.
9901 (catch_load_command_1): Ditto.
9902 (catch_unload_command_1): Ditto.
9904 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9905 (catch_breakpoint): Delete #if0ed function.
9906 (disable_catch_breakpoint): Ditto.
9907 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9908 (disable_catch, enable_catch, delete_catch): Ditto.
9910 2004-01-26 Andrew Cagney <cagney@redhat.com>
9912 * remote.c (echo_check, quit_flag): Delete variables.
9913 (cisco_kernel_mode): Delete variable.
9914 (minitelnet_return, tty_input, escape_count): Delete variables.
9915 (remote_cisco_mode): Delete variable.
9916 (remote_cisco_open, remote_cisco_close): Delete function.
9917 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9918 (init_remote_cisco_ops): Delete function.
9919 (_initialize_remote): Do not install "remote cisco" code.
9920 (read_frame): Delete cisco specific code.
9921 (remote_info_process): Delete function.
9922 (remote_wait): Delete cisco specific code.
9923 (remote_cisco_section_offsets): Delete function.
9924 (remote_cisco_objfile_relocate): Delete function.
9925 (remote_async_wait): Delete cisco specific code.
9926 (minitelnet, readtty, readsocket): Delete function.
9928 2004-01-26 Andrew Cagney <cagney@redhat.com>
9930 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9931 comments mentioning extract_returned_value_address.
9932 * infcmd.c (print_return_value): Update. Add comments on
9933 extract_returned_value_address.
9934 * stack.c (return_command): Add comments on
9935 extract_returned_value_address.
9936 * values.c: Update comment.
9937 * m32r-tdep.c: Update comment.
9938 * sparc-tdep.c: Update comment.
9939 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9940 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9941 * sh64-tdep.c (sh64_gdbarch_init): Update.
9942 * sh-tdep.c (sh_gdbarch_init): Update.
9943 * s390-tdep.c (s390_gdbarch_init): Update.
9944 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9945 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9946 * m68k-tdep.c (m68k_gdbarch_init): Update.
9947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9948 * m32r-tdep.c (m32r_gdbarch_init): Update.
9949 * ia64-tdep.c (ia64_gdbarch_init): Update.
9950 * h8300-tdep.c (h8300_gdbarch_init): Update.
9951 * frv-tdep.c (frv_gdbarch_init): Update.
9952 * arm-tdep.c (arm_gdbarch_init): Update.
9953 * alpha-tdep.c (alpha_gdbarch_init): Update.
9955 2004-01-26 Andrew Cagney <cagney@redhat.com>
9957 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9958 SYMBOL_LOCATION_FUNCS
9959 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9960 "struct symbol_ops".
9961 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9962 type to "struct symbol_ops".
9963 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9964 (struct symbol): Replace ".aux_value.loc.funcs" and
9965 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9966 (SYMBOL_OBJFILE): Delete macro.
9967 (SYMBOL_LOCATION_FUNCS): Delete macro.
9968 (SYMBOL_LOCATION_BATON): Update.
9969 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9970 intead of SYMBOL_LOCATION_FUNCS.
9971 * ax-gdb.c (gen_var_ref): Ditto.
9972 * printcmd.c (address_info): Ditto.
9973 * findvar.c (read_var_value): Ditto.
9974 (symbol_read_needs_frame): Ditto.
9976 2004-01-26 Andrew Cagney <cagney@redhat.com>
9978 * dwarf2read.c (read_func_scope): Document frame-base hack.
9980 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9982 * infcmd.c (print_return_value): Plug memory leak; delete
9983 ui_stream object. Rename argument `structure_return' to
9986 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9988 * infcmd.c (print_return_value): Wrap long lines.
9989 (finish_command_continuation, finish_command): Remove unused
9990 variable `funcaddr'. Fix some coding-standards problems.
9992 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9993 SECT_SIZE is large enough, not whether it's exactly the right size.
9994 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9995 TDEP->fpregset to zero.
9997 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9998 floating-point registers for traditional NetBSD core files.
9999 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10000 TDEP->sizeof_fpregset here.
10002 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10004 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10005 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10006 function with code split out from
10007 sparc32nbsd_sigcontext_frame_cache.
10008 (sparc32nbsd_sigcontext_frame_cache): Use
10009 sparc32nbsd_sigcontext_saved_regs.
10010 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10012 * sparcobsd-tdep.c: New file.
10013 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10014 (sparcobsd-tdep.o): New dependency.
10015 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10016 * config/sparc/obsd.mt: New file.
10018 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10019 TDEP->fpregset to be initialized to enable core file register
10022 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10024 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10025 Add opaque declarations.
10026 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10027 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10028 function with code split out from
10029 sparc64nbsd_sigcontext_frame_cache.
10030 (sparc64nbsd_sigcontext_frame_cache): Use
10031 sparc64nbsd_sigcontext_saved_regs.
10032 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10034 * sparc64obsd-tdep.c: New file.
10035 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10036 (sparc64obsd-tdep.o): New dependency.
10037 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10038 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10039 * config/sparc/obsd64.mt: New file.
10041 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10042 read the instruction at PC.
10044 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10045 value of GDB_OSABI_DEFAULT.
10046 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10047 instead of GDB_OSABI_NETBSD_AOUT.
10049 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10051 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10054 2004-01-23 Andrew Cagney <cagney@redhat.com>
10056 * printcmd.c (display_command): Replace tui_set_display call with
10057 tui_set_layout_for_display_command.
10058 * tui/tui.h (enum tui_win_type): Define.
10059 (tui_set_layout): Delete declaration.
10060 (tui_set_layout_for_display_command): Rename set_tui_layout.
10061 * tui/tui-data.h (enum tui_layout_type): Define.
10062 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10064 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10065 (tui_default_win_height): Rename tuiDefaultWinHeight.
10066 (tui_default_win_viewport_height): Rename
10067 tuiDefaultWinViewportHeight.
10068 (tui_set_layout): RenametuiSetLayout.
10069 * tui/tui-layout.c: Update references.
10070 * tui/tui.c: Update references.
10071 * tui/tui-disasm.c: Update references.
10073 2004-01-23 David Carlton <carlton@kealia.com>
10075 Partial workaround for PR c++/1511:
10076 * cp-namespace.c: Include frame.h.
10077 (cp_lookup_transparent_type): New
10078 (cp_lookup_transparent_type_loop): New.
10079 * cp-support.h: Declare cp_lookup_transparent_type.
10080 * symtab.c (basic_lookup_transparent_type): Renamed from
10081 lookup_transparent_type.
10082 (lookup_transparent_type): Replace old body by a call to
10083 current_language->la_lookup_transparent_type.
10084 * symtab.h: Update copyright. Declare
10085 basic_lookup_transparent_type.
10086 * language.h: Update copyright.
10087 (struct language_defn): Add la_lookup_transparent_type.
10088 * language.c: Update copyright.
10089 (unknown_language_defn): Add basic_lookup_transparent_type.
10090 (auto_language_defn): Add basic_lookup_transparent_type.
10091 (local_language_defn): Add basic_lookup_transparent_type.
10092 * ada-lang.c: Update copyright.
10093 (ada_language_defn): Add basic_lookup_transparent_type.
10094 * c-lang.c: Update copyright.
10095 (c_language_defn): Add basic_lookup_transparent_type.
10096 (cplus_language_defn): Add basic_lookup_transparent_type.
10097 (asm_language_defn): Add basic_lookup_transparent_type.
10098 (minimal_language_defn): Add basic_lookup_transparent_type.
10099 * f-lang.c: Update copyright.
10100 (f_language_defn): Add basic_lookup_transparent_type.
10101 * jv-lang.c: Update copyright.
10102 (java_language_defn): Add basic_lookup_transparent_type.
10103 * m2-lang.c: Update copyright.
10104 (m2_language_defn): Add basic_lookup_transparent_type.
10105 * objc-lang.c: Update copyright.
10106 (objc_language_defn): Add basic_lookup_transparent_type.
10107 * p-lang.c: Update copyright.
10108 (p_language_defn): Add basic_lookup_transparent_type.
10109 * scm-lang.c: Update copyright.
10110 (scm_language_defn): Add basic_lookup_transparent_type.
10111 * Makefile.in (cp-namespace.o): Depend on frame.h.
10113 2004-01-23 David Carlton <carlton@kealia.com>
10115 Patch for PR c++/1520:
10116 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10117 properly if we have a specification die.
10118 (determine_prefix_aux): Rename from determine_prefix.
10119 (determine_prefix): Like the old determine_prefix, but never
10122 2004-01-23 Theodore A. Roth <troth@openavr.org>
10124 * avr-tdep.c: Update copyright.
10125 (avr_iaddr_p): Delete unused function.
10126 (avr_saddr_p): Delete unused function.
10128 2004-01-23 David Carlton <carlton@kealia.com>
10130 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10131 Fix for PR symtab/1534.
10133 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10135 * NEWS (New native configurations): Mention OpenBSD/sparc and
10137 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10138 * configure.host: Likewise.
10139 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10140 handler for OpenBSD.
10141 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10143 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10145 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10146 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10148 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10149 * cli/cli-cmds.c (shell_escape): Likewise.
10151 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10152 OpenBSD .note.openbsd.ident sections.
10154 2004-01-22 David Carlton <carlton@kealia.com>
10156 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10157 get_scope_pc_bounds.
10158 (read_file_scope): Ditto.
10159 (get_scope_pc_bounds): New function, produced by extracting code
10160 from the above two functions, consolidating it, and adding support
10161 for DW_TAG_namespace.
10163 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10165 * osabi.c (MAX_NOTESZ): New define.
10166 (check_note): New function.
10167 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10170 2004-01-21 Roland McGrath <roland@redhat.com>
10172 * MAINTAINERS (write after approval): Add myself.
10174 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10176 * utils.c (init_page_info): Move declarations of `rows' and
10177 `cols' before the __GO32__-specific code. Move the closing brace
10178 outside the #ifdef __GO32__..#endif block.
10179 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10181 2004-01-21 Paul Brook <paul@codesourcery.com>
10183 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10184 BPSTAT_WHAT_CHECK_SHLIBS.
10186 2004-01-21 Paul Brook <paul@codesourcery.com>
10188 * MAINTAINERS: Add myself to write-after-approval.
10190 2004-01-20 Andrew Cagney <cagney@redhat.com>
10192 * ax-gdb.c (print_axs_value): Delete unused function.
10193 * jv-lang.c (java_lookup_type): Delete unused function.
10194 * cli/cli-dump.c (dump_filetype): Delete unused function.
10195 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10196 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10197 (mips_getstring): Delete unused function.
10198 (pmon_insert_breakpoint): Delete #if0ed function.
10199 (PMON_MAX_BP): Delete #if0ed MACRO.
10200 (mips_pmon_bp_info): Delete #if0ed variable.
10201 (pmon_remove_breakpoint): Delete #if0ed function.
10202 * monitor.c (monitor_write_even_block): Delete unused function.
10203 (monitor_write_memory_block): Delete #if0ed code.
10204 * dink32-rom.c (dink32_load): Delete unused function.
10205 (_initialize_dink32_rom): Delete #if0ed code.
10206 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10208 * tui/tui-command.c: Update references.
10209 * tui/tui-io.c: Update references.
10210 * tui/tui-command.h: Update copyright.
10211 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10213 * source.c (ambiguous_line_spec): Delete never-defined function.
10214 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10215 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10216 * cli/cli-cmds.c (validate_comname): Ditto.
10218 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10220 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10221 (tui_show_disassem): Rename tuiShowDisassem.
10222 (tui_show_disassem_and_update_source): Rename
10223 tuiVerticalDisassemScroll.
10224 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10225 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10226 * tui/tui.h: Update copyright.
10227 (enum tui_status): Define.
10228 * tui/tui-data.h (enum tui_scroll_direction): Define.
10229 * tui/tui-disasm.c: Update copyright. Update references.
10230 * tui/tui-winsource.c: Update copyright. Update references.
10231 * tui/tui-win.c: Update references.
10232 * tui/tui-layout.c: Update references.
10234 2004-01-20 Andrew Cagney <cagney@redhat.com>
10236 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10237 sym2 to start of block.
10239 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10241 * MAINTAINERS: Delete mmalloc.
10242 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10243 * NEWS: Mention removal of --with-malloc.
10244 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10245 * config.in: Regenerate.
10246 * configure: Regenerate.
10247 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10248 USE_MMALLOC, MMCHECK_FORCE.
10249 * gdbinit.in: Remove mmalloc.
10250 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10251 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10252 * config/i386/go32.mh: Likewise.
10253 * config/i386/interix.mh: Likewise.
10254 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10256 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10258 * linespec.c (decode_variable, symtab_from_filename): Call
10259 error_silent with error message instead of throwing an exception
10261 * defs.h (error_silent, error_output_message): Add prototypes.
10262 (catch_exceptions_with_msg): Ditto.
10263 * utils.c (error_silent, error_output_message): New functions.
10264 * top.c (catch_exceptions_with_msg): New function.
10266 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10268 * mi/mi-cmds.h (enum print_values): Add definition.
10270 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10271 type and value for simple data types and just the name and type
10272 for complex ones, if required.
10274 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10275 children, if required.
10277 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10279 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10280 unused declarations.
10282 2004-01-19 Andrew Cagney <cagney@redhat.com>
10284 * top.h (mapped_symbol_files): Delete declaration.
10285 * main.c (captured_main): Delete option "m" and "mapped".
10286 * objfiles.c (mapped_symbol_files): Delete variable.
10287 * symfile.c (symbol_file_command): Delete mmap code.
10288 (symbol_file_add_with_addrs_or_offsets): Ditto.
10289 (add_symbol_file_command, reread_separate_symbols): Ditto.
10290 * objfiles.h (OBJF_MAPPED): Delete.
10291 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10292 (free_objfile) [USE_MMALLOC]: Ditto.
10293 (open_existing_mapped_file): Delete function.
10294 (open_mapped_file): Delete function.
10295 (map_to_file): Delete function.
10297 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10299 * infrun.c (step_into_function): Account for possible breakpoint
10300 adjustment when computing ``stop_func_start''.
10302 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10304 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10305 the region size against the size of a pointer, not the size of
10306 a register as given by DEPRECATED_REGISTER_SIZE.
10308 2004-01-19 Andrew Cagney <cagney@redhat.com>
10310 * tui/tui-regs.h: Include "tui-data.h".
10311 (tuiFirstRegElementNoInLine): Delete declaration.
10312 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10313 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10314 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10315 (tui_calculate_regs_column_count): Rename
10316 tuiCalculateRegsColumnCount.
10317 (tui_check_register_values): Rename tuiCheckRegisterValues.
10318 (tui_show_registers): Rename tuiShowRegisters.
10319 (tui_display_registers_from_line): Rename
10320 tuiDisplayRegistersFromLine.
10321 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10322 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10323 (tui_first_reg_element_no_inline): Rename
10324 tuiFirstRegElementNoInLine.
10325 * tui/tui-data.h: Update copyright.
10326 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10327 * tui/tui-windata.c: Update copyright, update references.
10328 * tui/tui-regs.c: Update copyright, update references.
10329 * tui/tui-win.c: Update copyright, update references.
10330 * tui/tui-layout.c: Update copyright, update references.
10332 2004-01-18 Andrew Cagney <cagney@redhat.com>
10334 * tui/tui-io.c: Update copyright.
10335 (key_is_end_sequence, key_is_backspace): New functions.
10336 (key_is_command_char, key_is_start_sequence): New function.
10337 (tui_getc): Update references.
10338 * tui/tui-io.h: Update copyright.
10339 (m_tuiStartNewLine): Delete macro.
10340 (m_isBackspace, m_isDeleteChar): Delete macros.
10341 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10342 (m_isNextPage, m_isPrevPage): Delete macros.
10343 (m_isLeftArrow, m_isRightArrow): Delete macros.
10344 (m_isXdbStyleCommandChar): Delete macro.
10345 (key_is_start_sequence): Declare, replace m_isStartSequence.
10346 (key_is_end_sequence): Declare, replace m_isEndSequence.
10347 (key_is_backspace): Declare ,replace m_isBackspace.
10348 (key_is_command_char): Declare, replace m_isCommandChar.
10349 * tui/tui-command.c: Update copyright.
10350 (tuiDispatchCtrlChar): Update references.
10352 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10355 * tui/tui-command.c: Rename tui/tuiCommand.c.
10356 * tui/tui-command.h: Rename tui/tuiCommand.h.
10357 * tui/tui-data.c: Rename tui/tuiData.c.
10358 * tui/tui-data.h: Rename tui/tuiData.h.
10359 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10360 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10361 * tui/tui-io.c: Rename tui/tuiIO.c.
10362 * tui/tui-io.h: Rename tui/tuiIO.h.
10363 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10364 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10365 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10366 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10367 * tui/tui-source.c: Rename tui/tuiSource.c.
10368 * tui/tui-source.h: Rename tui/tuiSource.h.
10369 * tui/tui-stack.c: Rename tui/tuiStack.c.
10370 * tui/tui-stack.h: Rename tui/tuiStack.h.
10371 * tui/tui-win.c: Rename tui/tuiWin.c.
10372 * tui/tui-win.h: Rename tui/tuiWin.h.
10373 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10374 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10375 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10376 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10377 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10378 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10379 * tui/tui-file.c: Update includes.
10380 * tui/tui-hooks.c: Update includes.
10381 * tui/tui-interp.c: Update includes.
10382 * tui/tui.c: Update includes.
10383 * Makefile.in: Update all tui/ dependencies.
10384 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10386 * Makefile.in: Update copyright. Update dependencies.
10388 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10391 2004-01-18 Andrew Cagney <cagney@redhat.com>
10393 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10394 instead of register_gdbarch_init.
10396 * remote-sds.c (tohex): Delete unused function. Update copyright.
10397 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10398 * v850-tdep.c (v850_register_virtual_size): Ditto.
10399 * target.c (normal_target_post_startup_inferior): Ditto.
10400 * source.c (ambiguous_line_spec): Ditto.
10401 * remote.c (adapt_remote_get_threadinfo): Ditto.
10402 * mi/mi-out.c (out_field_fmt): Ditto.
10403 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10404 (output_control_change_notification): Ditto.
10405 * m68k-tdep.c (m68k_register_byte): Ditto.
10406 (m68k_remote_breakpoint_from_pc): Ditto.
10407 * ui-out.c (init_ui_out_state): Delete unused declaration.
10408 * stabsread.c (search_value): Ditto.
10409 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10410 * maint.c (print_section_table): Ditto.
10411 * infrun.c (set_follow_fork_mode_command): Ditto.
10413 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10415 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10416 DW_CFA_def_cfa_exporession. Add support for
10417 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10418 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10420 2004-01-18 Andrew Cagney <cagney@redhat.com>
10422 * ocd.c: Update copyright.
10423 (bdm_read_register_command): Delete unused function.
10424 (_initialize_remote_ocd): Delete commented out reference.
10425 (get_quoted_char, reset_packet): Delete #if0ed function.
10426 (output_packet, put_quoted_char): Delete #if0ed function.
10427 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10428 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10429 (BDM_BREAKPOINT): Delete #if0ed macro.
10430 (remote_timeout): Delete #if0ed variable.
10432 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10434 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10435 (core-sol2.o): Remove dependency.
10436 * core-sol2.c: Remove file.
10438 2004-01-17 Andrew Cagney <cagney@redhat.com>
10440 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10441 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10444 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10446 * remote.c: Update copyright years.
10448 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10450 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10452 2004-01-17 Andrew Cagney <cagney@redhat.com>
10454 * mdebugread.c: Update copyright.
10455 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10456 (parse_type, parse_procedure): Ditto.
10457 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10459 * cris-tdep.c (cris_store_struct_return): Put back accidently
10462 * gdbarch.sh: Update copyright year.
10463 * gdbarch.h, gdbarch.c: Re-generate.
10465 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10467 Suggested by George Anzinger.
10468 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10469 correct stack offset. Include unknown opcode numbers in the error
10472 2004-01-17 Andrew Cagney <cagney@redhat.com>
10474 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10475 extract_struct_value_address, i386 does not set it.
10476 * sparc64-tdep.c (sparc64_init_abi): Do not set
10477 extract_struct_value_address, never called.
10478 (sparc64_extract_struct_value_address): Delete function.
10479 * m68hc11-tdep.c: Update copyright.
10480 (m68hc11_gdbarch_init): Delete redundant assignment of
10481 extract_struct_value_address.
10482 * i386-tdep.c: Update copyright.
10483 (i386_gdbarch_init): Do not set extract_struct_value_address,
10485 (i386_extract_struct_value_address): Delete function.
10486 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10487 extract_struct_value_address, never called.
10488 (sparc32_extract_struct_value_address): #if 0 function. Add
10489 comments explaining its future.
10491 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10493 * arm-tdep.c (arm_write_pc): New function.
10494 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10496 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10498 * breakpoint.c (must_shift_inst_regs): Delete.
10499 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10500 and SHIFT_INST_REGS.
10501 * infcmd.c (step_1, step_1_continuation): Delete references to
10503 * infrun.c (keep_going): Likewise.
10504 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10505 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10507 2004-01-17 Andrew Cagney <cagney@redhat.com>
10509 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10510 * gdbarch.h, gdbarch.c: Re-generate.
10511 * infcmd.c (print_return_value): Delete reference to
10512 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10514 * cris-tdep.c (cris_gdbarch_init): Do not set
10515 deprecated_extract_struct_value_address.
10517 * xstormy16-tdep.c: Update copyright.
10518 (xstormy16_extract_struct_value_address): Update to current
10519 extract struct value address interface.
10520 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10521 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10522 current extract struct value address interface.
10523 (sh64_gdbarch_init): Set extract_struct_value_address.
10525 * cris-tdep.c: Update copyright.
10526 (cris_extract_struct_value_address): Delete function.
10527 (struct_return_address): Delete variable.
10528 (cris_store_struct_return): Do not set struct_return_address.
10530 * mcore-tdep.c: Update copyright.
10531 (mcore_extract_struct_value_address): Delete function. Update
10533 (mcore_gdbarch_init): Update.
10534 * mn10300-tdep.c: Update copyright.
10535 (mn10300_extract_struct_value_address): Delete function.
10536 (mn10300_gdbarch_init): Update.
10537 * v850-tdep.c: Update copyright.
10538 (v850_extract_struct_value_address): Delete.
10539 (v850_gdbarch_init): Update.
10540 * ns32k-tdep.c: Update copyright.
10541 (ns32k_extract_struct_value_address): Delete.
10542 (ns32k_gdbarch_init): Update.
10543 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10544 (hppa_gdbarch_init): Update.
10545 * vax-tdep.c: Update copyright.
10546 (vax_extract_struct_value_address): Delete.
10547 (vax_gdbarch_init): Update.
10549 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10550 * gdbarch.h, gdbarch.c: Re-generate.
10551 * procfs.c (procfs_fetch_registers): Delete reference to
10552 DEPRECATED_NPC_REGNUM.
10553 (procfs_store_registers): Ditto.
10554 * regcache.c (generic_target_write_pc): Simplify.
10555 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10557 * core-sol2.c (fetch_core_registers): Replace
10558 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10560 * hppa-tdep.c: Update copyright year.
10561 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10563 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10565 * mips-tdep.c (mips_write_pc): New function.
10566 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10567 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10568 (mips_find_saved_regs, mips_software_single_step: Ditto.
10569 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10570 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10572 2004-01-17 Andrew Cagney <cagney@redhat.com>
10574 * mips-tdep.c: Re-indent. Group functions by ABI.
10576 2004-01-17 Andrew Cagney <cagney@redhat.com>
10578 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10579 * gdbarch.c: Re-generate.
10580 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10581 DECR_PC_AFTER_BREAK to zero.
10582 * vax-tdep.c (vax_gdbarch_init): Ditto.
10583 * v850-tdep.c (v850_gdbarch_init): Ditto.
10584 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10585 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10586 * sh-tdep.c (sh_gdbarch_init): Ditto.
10587 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10588 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10589 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10590 * mips-tdep.c (mips_gdbarch_init): Ditto.
10591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10592 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10593 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10594 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10595 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10596 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10597 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10598 * frv-tdep.c (frv_gdbarch_init): Ditto.
10599 * cris-tdep.c (cris_gdbarch_init): Ditto.
10600 * avr-tdep.c (avr_gdbarch_init): Ditto.
10601 * arm-tdep.c (arm_gdbarch_init): Ditto.
10602 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10604 2004-01-17 J. Brobecker <brobecker@gnat.com>
10606 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10607 Delete, no longer used.
10608 (read_subrange_type): New function, mostly extracted from
10610 (read_array_type): Replace extracted code by call to
10611 read_subrange_type().
10612 (dwarf2_get_attr_constant_value): New function.
10613 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10614 (add_partial_symbol): Likewise.
10615 (process_die): Likewise.
10616 (new_symbol): Likewise.
10617 (read_type_die): Likewise.
10619 2004-01-16 Andrew Cagney <cagney@redhat.com>
10621 * symfile.c: Update copyright year.
10622 (compare_symbols): Delete unused function.
10623 * stabsread.c: Update copyright year.
10624 (lrs_general_complaint): Delete unused function.
10625 (ref_search_value): Ditto.
10626 (get_substring): Delete declaration.
10627 * sh64-tdep.c: Update copyright year.
10628 (sh64_get_gdb_regnum): Delete unused function.
10629 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10630 Delete unused function.
10632 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10634 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10635 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10637 2004-01-16 Andrew Cagney <cagney@redhat.com>
10639 Changes from Peter Schauer.
10640 * rs6000-tdep.c: Update copyright year.
10641 (rs6000_push_dummy_call): Update the stack pointer before
10642 accessing the corresponding stack region.
10643 * rs6000-nat.c: Update copyright year.
10644 (set_host_arch): Set "info.abfd" to "exec_bfd".
10646 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10648 * blockframe.c: Update copyright year.
10649 (inside_entry_func): Don't treat a zero PC specially.
10651 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10653 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10655 (gcore_create_callback): Ditto. Skip any memory segment that has
10656 no permissions set.
10658 2004-01-14 David Carlton <carlton@kealia.com>
10660 Change symbols for C++ nested types to contain the fully qualified
10661 name, if possible. (At least in the DWARF-2 case.) Partial fix
10662 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10664 * c-exp.y (qualified_type): Handle types nested within classes.
10665 * cp-namespace.c: Update comments.
10666 (cp_set_block_scope): Delete #if 0.
10667 (cp_lookup_nested_type): Handle types nested within classes.
10668 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10670 (add_partial_symbol): Add the name of the enclosing namespace to
10672 (pdi_needs_namespace): New.
10673 (add_partial_namespace): Tweak comment.
10674 (add_partial_structure): New.
10675 (psymtab_to_symtab_1): Initialize processing_current_prefix
10677 (process_die): instead of here.
10678 (read_structure_scope): Try to figure out the name of the class or
10679 namespace that the structure might be defined within.
10680 (read_enumeration): Generate fully-qualified names, if possible.
10681 (read_namespace): Don't set name to NULL.
10682 (die_specification): New.
10683 (new_symbol): Generate fully-qualified names for types.
10684 (read_type_die): Determine appropriate prefix.
10685 (determine_prefix): New.
10686 (typename_concat): New.
10688 * valops.c (value_aggregate_elt): Pass NOSIDE to
10689 value_struct_elt_for_reference.
10690 (value_struct_elt_for_reference): Make static, add NOSIDE
10691 parameter, call value_maybe_namespace_elt as a last resort.
10692 (value_namespace_elt): Break out code into
10693 value_maybe_namespace_elt.
10694 (value_maybe_namespace_elt): New.
10696 2004-01-12 Andrew Cagney <cagney@redhat.com>
10698 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10699 cooked floating-point registers.
10700 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10701 and value_to_register.
10703 2004-01-13 Andrew Cagney <cagney@redhat.com>
10705 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10706 * gdbarch.c: Re-generate.
10707 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10708 FUNCTION_START_OFFSET.
10709 * v850-tdep.c (v850_gdbarch_init): Ditto.
10710 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10711 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10712 * sh-tdep.c (sh_gdbarch_init): Ditto.
10713 * s390-tdep.c (s390_gdbarch_init): Ditto.
10714 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10715 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10716 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10717 * mips-tdep.c (mips_gdbarch_init): Ditto.
10718 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10719 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10720 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10721 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10722 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10723 * i386-tdep.c (i386_gdbarch_init): Ditto.
10724 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10725 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10726 * frv-tdep.c (frv_gdbarch_init): Ditto.
10727 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10728 * cris-tdep.c (cris_gdbarch_init): Ditto.
10729 * avr-tdep.c (avr_gdbarch_init): Ditto.
10730 * arm-tdep.c (arm_gdbarch_init): Ditto.
10731 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10733 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10735 * infrun.c (follow_fork_mode_ask): Remove.
10736 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10737 (follow_fork): Simplify and remove internal error for
10738 follow_fork_mode_ask.
10739 (_initialize_infrun): Update "set follow-fork-mode" help text.
10741 2004-01-13 Andrew Cagney <cagney@redhat.com>
10743 * configure.in: Update copyright year.
10744 (build_warnings): Add -Wunused-label.
10745 * configure: Re-generate.
10747 2004-01-12 Andrew Cagney <cagney@redhat.com>
10749 * exec.h (exec_ops): Make "extern".
10751 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10752 the function is void.
10753 (mips_pseudo_register_write): Ditto.
10755 2004-01-12 Andrew Cagney <cagney@redhat.com>
10757 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10758 call. Never defined.
10759 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10760 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10761 (struct sparc_gregset, struct regcache): Ditto.
10762 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10764 2004-01-12 Andrew Cagney <cagney@redhat.com>
10766 * mi/ChangeLog: Delete file. Renamed to ...
10767 * mi/ChangeLog-1999-2003: New file.
10768 * tui/ChangeLog: Delete file. Renamed to ...
10769 * tui/ChangeLog-1998-2003: New file.
10771 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10773 * sparc64nbsd-tdep.c: Include "regset.h".
10774 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10776 (fetch_core_registers): Remove function.
10777 (sparc64nbsd_core_fns): Remove variable.
10778 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10780 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10781 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10782 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10784 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10785 sparc_extract_struct_value_address.
10786 (sparc32_gdbarch_init): Set extract_struct_value_address.
10787 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10789 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10790 return_value_on_stack.
10792 * NEWS: Mention that %cs and %ss have been added to the AMD64
10795 * frame.c: Update copyright year.
10796 (get_prev_frame): Improve comment.
10798 * sparc64fbsd-tdep.c: Include "regset.h".
10799 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10801 (fetch_core_registers): Remove function.
10802 (sparc64fbsd_core_fns): Remove variable.
10803 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10805 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10806 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10807 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10809 * sparcnbsd-tdep.c: Include "regset.h".
10810 (fetch_core_registers): Remove function.
10811 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10812 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10814 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10816 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10818 * sparc-tdep.h (struct regset): Provide opaque declaration.
10819 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10820 fpregset and sizeof_fpregset members.
10821 * sparc-tdep.c (struct regset): Provide opaque declaration.
10822 (sparc_regset_from_core_section): New function.
10823 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10824 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10825 Set regset_from_core_section when appropriate.
10827 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10829 * x86-64-tdep.c (amd64_non_pod_p): New function.
10830 (amd64_classify_aggregate): Return class memory for non-POD
10831 C++ structure types.
10833 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10834 argument. Use it to reserve a register if necessary.
10835 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10836 amd64_push_arguments.
10838 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10840 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10841 register numbers in comments.
10842 * x86-64-tdep.h: Update copyright year.
10843 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10844 Adjust for addition of %cs and %ss.
10845 * amd64fbsd-nat.c: Update copyright year.
10846 (reg_offset): Add register offsets for %cs and %ss.
10847 * amd64fbsd-tdep.c: Update copyright year.
10848 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10849 (amd64fbsd_sc_reg_offset): Likewise.
10850 * x86-64-linux-nat.c: Update copyright year.
10851 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10853 * amd64nbsd-nat.c: Update copyright year.
10854 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10855 * amd64nbsd-tdep.c: Update copyright year.
10856 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10857 * x86-64-linux-tdep.c: Update copyright year.
10858 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10859 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10860 * regformats/reg-x86-64.dat: Add %cs and %ss.
10862 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10863 variables to prevent long lines. Update comments to reflect
10866 2004-01-09 David Carlton <carlton@kealia.com>
10868 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10869 * dwarf2read.c (read_namespace): Pull out name-generating code
10870 into namespace_name. Rename previous_namespace to previous_prefix
10871 and processing_current_namespace to processing_current_prefix..
10872 (namespace_name): New function.
10873 (add_partial_symbol): Substitute uses of pdi->name with
10875 * cp-support.h: Rename processing_current_namespace to
10876 processing_current_prefix.
10877 Update copyright year.
10878 * cp-namespace.c: Rename processing_current_namespace to
10879 processing_current_prefix.
10880 Update copyright year.
10882 2004-01-09 Andrew Cagney <cagney@redhat.com>
10884 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10886 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10888 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10890 (process_one_symbol): Deal with N_PATCH stabs.
10892 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10894 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10896 Update copyright year.
10898 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10900 * config/pa/tm-hppa.h: Update extern declarations for
10901 hppa32_hpux_frame_saved_pc_in_sigtramp,
10902 hppa32_hpux_frame_base_before_sigtramp, and
10903 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10905 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10907 * config/pa/tm-hppah.h: Update copyright years.
10909 2004-01-08 Andrew Cagney <cagney@redhat.com>
10911 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10912 (mips_o32_reg_struct_has_addr): Delete function.
10913 (mips_gdbarch_init): Update.
10914 (mips_extract_struct_value_address): Delete function.
10916 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10918 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10921 2004-01-07 Andrew Cagney <cagney@redhat.com>
10923 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10924 architecture's elf flags (when available).
10926 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10927 FPU to the start, check the MIPS FPU when looking for an old
10929 (set_mipsfpu_single_command): Update the architecture.
10930 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10932 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10933 (mips_mask_address_p): Add "tdep" parameter.
10934 (show_mask_address, mips_addr_bits_remove): Update.
10935 (mips_dump_tdep): Update.
10936 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10937 (MIPS_STACK_ARGSIZE): Delete macro.
10938 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10939 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10940 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10941 (mips_dump_tdep): Update.
10942 (MIPS_SAVED_REGSIZE): Delete macro.
10943 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10944 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10945 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10946 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10947 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10948 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10949 (mips_pop_frame, return_value_location): Update.
10950 (mips_n32n64_return_value, mips_dump_tdep): Update.
10952 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10955 * mips-tdep.c: Update copyright.
10956 (mips_gdbarch_init): Merge two code blocks handling the register
10957 name and number layout.
10959 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10961 * tracepoint.c (validate_actionline): Fix segv at EOF
10963 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10965 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10966 properly for static fields.
10968 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10969 Jason Molenda <jmolenda@apple.com>
10971 * disasm.c: Update copyright to include 2004.
10972 (do_mixed_source_and_assembly): For uiout asm list
10973 and tuple cleanups, initialize to null_cleanup instead of
10974 NULL and do so prior to loop. Only reset when we close off
10975 the tuple/list. Move check for whether to close off the
10976 asm tuple/list to after dump_insns call where it will be run
10977 on each loop iteration.
10979 2004-01-05 Andrew Cagney <cagney@redhat.com>
10981 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10982 should be a switch case and not a label.
10983 * mips-tdep.c (mips32_next_pc): Delete unused labels
10984 "greater_equal_branch" and "less_zero_branch".
10985 * jv-valprint.c (java_print_value_fields): Delete unused label
10988 * target.c (unpush_target): Only close a target that is in the
10991 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10993 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10994 address from [sp + 64] instead of %o2.
10996 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10997 fixes PR backtrace/1476.
10999 2004-01-05 Andrew Cagney <cagney@redhat.com>
11001 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11002 move to start of file.
11003 * i386-tdep.h (struct regcache): Add opaque declaration.
11004 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11006 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11007 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11008 * win32-nat.c (fake_create_process): Use ISO C style definition.
11009 * stabsread.c (define_symbol): Delete #ifndef
11010 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11011 stabs_argument_has_addr call, macro never defined.
11013 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11015 * op50-rom.c: Delete.
11016 * w89k-rom.c: Delete.
11017 * Makefile.in: Remove references.
11019 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11021 * x86-64-tdep.c: Update copyright year.
11022 (struct amd64_register_info): Rename from x86_64_register_info.
11023 (amd64_register_info): Rename from x86_64_register_info.
11024 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11025 (amd64_register_name): Rename from x86_64_register_name.
11026 (amd64_register_type): Rename from x86_64_register_type.
11027 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11028 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11029 (amd64_dwarf_reg_to_regnum): Rename from
11030 x86_64_dwarf_reg_to_regnum.
11031 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11032 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11033 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11034 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11035 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11036 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11037 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11038 (amd64_frame_cache): Rename from x86_64_frame_cache.
11039 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11040 (amd64_frame_prev_register): Rename from
11041 x86_64_frame_prev_register.
11042 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11043 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11044 (amd64_sigtramp_frame_cache): Rename from
11045 x86_64_sigtramp_frame_cache.
11046 (amd64_sigtramp_frame_prev_register): Rename from
11047 x86_64_sigtramp_frame_prev_register.
11048 (amd64_sigtramp_frame_unwind): Rename from
11049 x86_64_sigtramp_frame_unwind.
11050 (amd64_sigtramp_frame_sniffer): Rename from
11051 x86_64_sigtramp_frame_sniffer.
11052 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11053 (amd64_frame_base): Rename from x86_64_frame_base.
11054 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11055 (amd64_frame_align): Rename from x86_64_frame_align.
11056 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11057 (amd64_regset_from_core_section): Rename from
11058 x86_64_regset_from_core_section.
11059 (x86_64_init_abi): Update comments.
11061 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11063 * MAINTAINERS (write after approval): Add myself.
11065 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11067 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11070 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11072 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11073 such that it mentions a specific version of GCC that exhibits this
11076 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11078 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11079 structure that has a single `float' member, store it in %f1 in
11082 * sparc-sol2-nat.c: Add missing '\'.
11084 * sparc-tdep.c (sparc32_return_value): New function.
11085 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11087 (sparc32_gdbarch_init): Set return_value, don't set
11088 extract_return_value, store_return_value, use_struct_convention
11089 and return_value_on_stack.
11091 * sparc-sol2-nat.c: Add missing ')'.
11093 2004-01-03 J. Brobecker <brobecker@gnat.com>
11095 * infrun.c (handle_step_into_function): New function.
11096 (handle_inferior_event): Extract out some code into the new
11099 2004-01-03 J. Brobecker <brobecker@gnat.com>
11101 * infrun.c (handle_inferior_event): Move the declaration of
11102 real_stop_pc inside the if blocks where it is used.
11104 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11106 * sparc64-tdep.c (sparc64_16_byte_align_p)
11107 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11108 Use check_typedef to get subtypes of structures and unions.
11109 (sparc64_store_return_value): Fix calculation of the appropriate
11110 offset into VALBUF when storing a structure or union.
11111 (sparc64_return_value): New function.
11112 (sparc64_use_struct_convention): Remove function.
11113 (sparc64_init_abi): Set return_value, don't set
11114 extract_return_value, store_return_value and
11115 use_struct_convention.
11117 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11119 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11120 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11121 gdb/config/alpha/xm-alphaosf.h,
11122 gdb/config/powerpc/tm-ppcle-eabi.h,
11123 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11124 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11125 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11126 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11127 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11128 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11129 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11130 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11131 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11132 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11133 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11134 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11135 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11136 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11137 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11138 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11139 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11140 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11141 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11142 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11143 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11144 Remove lines for .cvsignore files.
11146 2004-01-03 J. Brobecker <brobecker@gnat.com>
11148 * infrun.c: Back out the previous change.
11150 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11152 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11153 sparc-*-sunos4* to the list of REMOVED configurations.
11155 * configure.tgt: Add back sparc-*-vxworks*.
11156 * remote-vxsparc.c: Remove all includes except for "defs.h",
11157 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11158 Include "sparc-tdep.h".
11159 (SPARC_R_G1): New define.
11160 (vxsparc_gregset): New variable.
11161 (ext_format_sparc): Remove extern declaration.
11162 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11163 sparc32_supply_fpregset.
11164 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11165 sparc_collect_rwindow and sparc32_collect_fpregset.
11166 * config/sparc/tm-vxworks.h: New file, based on recently removed
11168 * config/sparc/vxworks.mt: New file, based on recently removed
11171 2004-01-03 J. Brobecker <brobecker@gnat.com>
11173 * infrun.c (handle_step_into_function): New function.
11174 (handle_inferior_event): Extract out some code into the new
11177 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11179 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11180 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11181 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11182 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11183 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11184 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11185 (sparc_nat_h): New variable.
11186 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11187 (tm-sun4os4.h): Remove dependency.
11188 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11189 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11190 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11191 sparc-tdep.o): Update dependencies.
11192 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11193 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11194 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11196 * configure.host: Remove existing sparc-*-lynxos*,
11197 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11198 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11199 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11200 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11202 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11203 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11204 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11205 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11206 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11207 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11208 sparc64-*-solaris2* and sparc64-*-* triplets.
11209 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11210 "symtab.h" and "objfiles.h".
11211 (BIAS): Remove define.
11212 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11213 (X_DISP19): Remove macros.
11214 (sparc_fetch_instruction): Remove function.
11215 (struct gdbarch_tdep): Remove definition.
11216 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11217 (sparc_breakpoint_from_pc): Remove function.
11218 (struct sparc64_frame_cache): Remove definition.
11219 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11220 sparc64_unwind_pc): Remove functions.
11221 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11222 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11223 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11224 (sparc64_frame_cache): Change return type to `struct
11225 sparc_frame_cache *'. Simply call sparc_frame_cache.
11226 (sparc64_frame_this_id, sparc64_frame_prev_register,
11227 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11228 instead of `struct sparc64_frame_cache.
11229 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11230 sparc_analyze_control_transfer, sparc_software_single_step,
11231 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11232 _initialize_sparc64_tdep): Remove functions.
11233 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11234 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11236 (sparc64_supply_gregset, sparc64_collect_gregset,
11237 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11238 (sparc64_init_abi): New function.
11239 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11240 inclusion guard. Include "sparc-tdep.h".
11242 (r_tstate_offset, r_fprs_offset): New defines.
11243 (enum sparc_regnum): Remove defenition.
11244 (enum sparc64_regnum): Reformat.
11245 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11246 (sparc64_init_abi, sparc64_supply_gregset,
11247 sparc64_collect_gregset, sparc64_supply_fpregset,
11248 sparc64_collect_fpregset): New prototypes.
11249 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11250 Add extern declarations.
11251 (sparc64_sol2_init_abi): New prototype.
11252 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11253 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11255 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11257 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11259 (_initialize_sparc64fbsd_nat): Remove initialization of
11260 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11261 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11262 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11263 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11264 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11265 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11266 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11267 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11268 (sparc64fbsd_r_y_offset): Remove variables.
11269 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11270 Make static and const.
11271 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11272 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11274 (sparc64fbsd_gregset): New variable.
11275 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11276 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11277 and sparc64_supply_fpregset.
11278 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11279 (sparc64fbsd_sigtramp_frame_this_id)
11280 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11281 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11282 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11283 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11284 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11285 * sparcnbsd-tdep.c: Update copyright year. Include
11286 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11287 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11288 "value.h" and "sparcnbsd-tdep.h".
11289 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11290 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11291 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11292 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11294 (sparcnbsd_gregset): New variable.
11295 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11296 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11297 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11298 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11299 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11301 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11302 (sparc32nbsd_sigcontext_frame_this_id)
11303 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11304 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11305 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11306 (sparcnbsd_get_longjmp_target_32,
11307 sparcnbsd_get_longjmp_target_64): Remove functions.
11308 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11309 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11310 sparcnbsd_init_elf): Remove.
11311 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11312 (sparcnbsd_elf_init_abi): New functions.
11313 (_initialize_sparcnbsd_tdep): New prototype.
11314 (_initialize_sparnbsd_tdep): Update.
11315 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11316 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11317 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11318 * config/sparc/linux.mh: Update comment.
11319 (XM_FILE, HOST_IPC): Remove variables.
11320 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11322 * config/sparc/linux.mt: Update comment.
11323 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11324 * config/sparc/nbsd.mt: Reformat.
11325 * config/sparc/nbsd64.mh: Update comment.
11326 (NATDEPFILES): Add sparc-nat.o.
11327 * config/sparc/nbsd64.mt: Update comment.
11328 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11329 (TM_FILE): Set to tm-nbsd.h.
11330 * config/sparc/nbsdelf.mh: Update comment.
11331 (NATDEPFILES): Add sparc-nat.o.
11333 * config/sparc/nbsdaout.mh: Update comment.
11334 (NATDEPFILES): Add sparc-nat.o
11336 * config/sparc/nm-linux.h: Update copyright year. Don't include
11337 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11339 (KERNEL_U_SIZE): Remove define.
11340 (kernel_u_size): Remove prototype.
11341 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11342 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11344 (CHILD_PREPARE_TO_STORE): Remove define.
11345 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11346 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11347 sparcnbsd-nat.c: Rewrite files.
11348 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11349 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11350 sparcnbsd-tdep.h: Remove files.
11351 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11352 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11353 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11354 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11355 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11356 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11357 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11358 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11359 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11360 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11361 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11362 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11363 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11364 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11365 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11366 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11367 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11368 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11369 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11371 2004-01-02 Andrew Cagney <cagney@redhat.com>
11373 From 2003-12-18 Kazuhiro Inaoka:
11374 * configure.host: Add m32r-linux target.
11376 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11378 * top.c (print_gdb_version): Update year to 2004.
11380 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11382 * MAINTAINERS: Add myself to the write-after-approval category.
11384 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11386 From Bernardo Innocenti <bernie@develer.com>:
11387 * configure.tgt: Add uClinux target.
11389 2004-01-02 Andrew Cagney <cagney@redhat.com>
11391 * utils.c (do_my_cleanups): Make static, add forward declaration.
11392 * defs.h (do_my_cleanups): Delete declaration.
11394 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11396 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11397 bfd/ChangeLog-0203.
11399 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11401 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11402 in <machine/reg.h>.
11403 * configure, config.in: Regenerate.
11405 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11406 tui/ChangeLog-1998-2003.
11412 version-control: never