1 2004-09-01 Andrew Cagney <cagney@gnu.org>
3 * frame.c: Include "objfiles.h".
4 (inside_main_func): New function.
5 (get_prev_frame): Use new inside_main_func.
6 * Makefile.in (frame.o): Update dependencies.
7 * defs.h (inside_main_func): Delete declaration.
8 * blockframe.c (inside_main_func): Delete function.
10 2004-08-31 Jim Blandy <jimb@redhat.com>
12 * dwarf2read.c (is_vtable_name): New function, based on logic from
13 read_structure_type, but passing the correct length to strncmp,
14 and using 'sizeof' instead of 'strlen'.
15 (read_structure_type): Call it.
17 2004-08-31 Joel Brobecker <brobecker@gnat.com>
19 * config/powerpc/aix.mh: Add comment.
21 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
23 * MAINTAINERS: Add self to Write-After-Approval.
25 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
27 * MAINTAINERS: Add self to Write-After-Approval.
29 2004-08-30 Andrew Cagney <cagney@gnu.org>
31 Fix PR breakpoints/1757.
32 * infrun.c (struct execution_control_state): Replace
33 remove_breakpoints_on_following_step with
34 step_after_step_resume_breakpoint.
35 (init_execution_control_state): Update.
36 (handle_inferior_event): For signals, when stepping off a
37 breakpoint, set step_after_step_resume_breakpoint. When
38 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
39 (keep_going): Delete code handling
40 remove_breakpoints_on_following_step.
42 2004-08-29 David Lecomber <david@streamline-computing.com>
45 * language.h (enum array_ordering): New enum.
46 * language.h (struct language_defn): New la_array_ordering
48 * language.c (unknown_language_defn, auto_language_defn)
49 (local_language_defn): Ditto.
50 * ada-lang.c (ada_language_defn): Ditto.
51 * c-lang.c (c_language_defn, cplus_language_defn)
52 (asm_language_defn, minimal_language_defn): Ditto.
53 * f-lang.c (f_language_defn): Ditto.
54 * jv-lang.c (java_language_defn): Ditto.
55 * m2-lang.c (f_language_defn): Ditto.
56 * objc-lang.c (objc_language_defn): Ditto.
57 * p-lang.c (pascal_language_defn): Ditto.
58 * scm-lang.c (scm_language_defn): Ditto.
59 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
60 oriented large to small in type structure.
61 * dwarf2read.c (read_array_order): New function.
62 (read_array_type): Use read_array_order to check row/column
65 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
67 * target.c (target_resize_to_sections): Check
68 current_target.to_sections for an old value when updating.
70 2004-08-27 Joel Brobecker <brobecker@gnat.com>
72 * procfs.c (dbx_link_bpt_addr): New static global variable.
73 (dbx_link_shadow_contents): New static global variable.
74 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
75 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
77 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
78 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
80 (procfs_create_inferior): Remove syssgi syscall-exit notifications
81 after the inferior has been forked.
82 (remove_dbx_link_breakpoint): New function.
83 (dbx_link_addr): New function.
84 (insert_dbx_link_bpt_in_file): New function.
85 (insert_dbx_link_bpt_in_region): New function.
86 (insert_dbx_link_breakpoint): New function.
87 (proc_trace_syscalls_1): New function, extracted from
89 (proc_trace_syscalls): Replace extract code by call to
90 proc_trace_syscalls_1.
91 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
94 2004-08-25 Jim Blandy <jimb@redhat.com>
96 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
98 2004-08-25 Andrew Cagney <cagney@gnu.org>
100 * infrun.c (struct execution_control_state): Delete field
101 "stepping_through_sigtramp".
102 (init_execution_control_state): Do not set same.
103 (context_switch): Do not pass same to save_infrun_state and
105 * gdbthread.h (struct thread_info): Delete field
106 stepping_through_sigtramp.
107 (save_infrun_state, load_infrun_state): Delete parameter
108 stepping_through_sigtramp.
109 * thread.c (load_infrun_state, save_infrun_state): Update.
111 * infrun.c: Re-indent. Move expression operators to the beginning
112 of the line. Remove long disabled #if 0 code.
114 2004-08-24 Andrew Cagney <cagney@gnu.org>
116 * doublest.h (floatformat_ieee_quad): Rename
117 floatformat_ia64_quad.
118 * doublest.c (floatformat_ieee_quad): Rename
119 floatformat_ia64_quad.
120 (_initialize_doublest): Update.
122 2004-08-24 Jim Blandy <jimb@redhat.com>
124 * dwarf2expr.h (struct dwarf_expr_context): New members
125 'num_pieces' and 'pieces', for returning the result of an
126 expression that uses DW_OP_piece.
127 (struct dwarf_expr_piece): New struct type.
128 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
130 (free_dwarf_expr_context): Free pieces, if any.
131 (add_piece): New function.
132 (execute_stack_op): Implement DW_OP_piece.
133 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
134 expression is a list of pieces, print an error message.
135 (dwarf2_loc_desc_needs_frame): If the expression yields
136 pieces, and any piece is in a register, then we need a frame.
138 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
139 the stack until we've decided what sort of result the evaluation
140 has produced. Use separate variables, with more specific names.
142 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
144 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
145 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
146 (arm_netbsd_init_abi_common): Register them.
148 2004-08-22 Mark Kettenis <kettenis@gnu.org>
150 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
152 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
153 safe_frame_unwind_memory instead of target_read_memory.
155 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
157 (fetch_register, store_register): Remove prototypes.
158 (child_resume): Reorganize code and comments such that it is
159 grouped a bit more logically.
160 (attach): Explicitly compare errno against 0.
161 (detach): Likewise. Use perror_with_name instead of
163 * Makefile.in (infptrace.o): Update dependencies.
165 * ia64-linux-nat.c: Update copyright year.
166 (fetch_debug_register, store_debug_register)
167 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
169 * config/ia64/nm-linux.h: Update copyright year.
170 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
172 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
173 from CORE_ADDR to struct frame_info *. Use
174 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
175 (amd64_linux_sigtramp_p): Adjust for changed signature of
176 and64_linux_sigtramp_start
178 * gdb_ptrace.h: GNU/Linux.
180 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
183 * infptrace.c: Include "gdb_assert.h".
184 (PTRACE_XFER_TYPE): Remove define.
185 (offsetof): Only define if U_REGS_OFFSET isn't defined.
186 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
188 (fetch_inferior_registers, store_inferior_registers): Remove
189 redundant culry braces. Tweak comment. s/regno/regnum.
190 * Makefile.in (infptrace.o): Update dependencies.
192 * configure.in: Change test for return type of ptrace to default
193 to `long' instead of `int'.
194 * configure: Regenerate.
196 2004-08-21 Mark Kettenis <kettenis@gnu.org>
198 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
200 * configure.in: Check for ttrace function.
201 * configure, config.in: Regenerate.
203 * gdb_ptrace.h: New file.
204 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
206 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
207 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
208 (attach): Don't define PT_ATTACH.
209 (detach): Don't define PT_DETACH.
210 * Makefile.in (gdb_ptrace_h): New variable.
211 (infptrace.o): Update dependencies.
213 2004-08-16 Mark Kettenis <kettenis@gnu.org>
215 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
216 instead of `int' if not already defined.
217 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
219 * infptrace.c (call_ptrace): Revert change that replaced
220 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
222 2004-08-15 Mark Kettenis <kettenis@gnu.org>
224 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
227 * linux-nat.c (kill_inferior): Add missing third and fourth
228 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
230 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
233 * proc-why.c (proc_prettyfprint_why): Fix format string.
235 * solib-osf.c (osf_current_sos): Remove unsused label.
237 * configure.in: Add <ncurses/ncurses.h> to the list of possible
239 * configure, config.in: Regenerate.
240 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
243 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
244 * config/nm-nbsd.h: Update copyright year.
245 (PTRACE_ARG3_TYPE): Remove define.
247 * sparc-nat.c (fetch_inferior_registers)
248 (store_inferior_registers, sparc_xfer_wcookie):
249 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
251 * alphabsd-nat.c (fetch_inferior_registers):
252 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
254 * amd64bsd-nat.c (fetch_inferior_registers)
255 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
257 * armnbsd-nat.c: Update copyright year.
258 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
259 (store_register, store_regs, store_fp_register, store_fp_regs):
260 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
261 * hppabsd-nat.c (fetch_inferior_registers)
262 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
264 * i386bsd-nat.c (fetch_inferior_registers)
265 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
266 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
267 * m68kbsd-nat.c (fetch_inferior_registers)
268 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
270 * m88kbsd-nat.c (fetch_inferior_registers)
271 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
273 * mipsnbsd-nat.c: Update copyright year.
274 (fetch_inferior_registers, store_inferior_registers):
275 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
276 * ns32knbsd-nat.c: Update copyright year.
277 (fetch_inferior_registers, store_inferior_registers):
278 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
279 * ppcnbsd-nat.c (fetch_inferior_registers):
280 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
282 * ppcobsd-nat.c (fetch_inferior_registers):
283 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
285 * shnbsd-nat.c: Update copyright year.
286 (fetch_inferior_registers, store_inferior_registers):
287 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
288 * vaxbsd-nat.c (fetch_inferior_registers)
289 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
292 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
294 * infptrace.c (call_ptrace, child_resume, attach, detach)
295 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
296 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
297 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
300 2004-08-14 Mark Kettenis <kettenis@gnu.org>
302 * defs.h: Remove out-of-date comment.
303 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
304 [!GETENV_PROVIDED] (getenv): Remove prototype.
306 * standalone.c: Remove file.
307 * Makefile.in (standalone.o): Remove dependency.
309 * i386-linux-nat.c (dummy_sse_values): Remove function and
311 (i386_linux_dr_get): Fix typo in comment.
312 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
314 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
316 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
318 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
321 2004-08-13 Mark Kettenis <kettenis@gnu.org>
323 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
324 parenthesis in definition.
325 * configure: Regenerated.
327 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
329 * PROBLEMS: Mention build/1411.
331 2004-08-09 Robert Millan <robertmh@gnu.org>
333 Committed by Nathanael Nerode.
334 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
335 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
337 2004-08-12 Andrew Cagney <cagney@gnu.org>
339 * NEWS: Mention fixes in GDB 6.2.1.
340 * PROBLEMS: Remove mention of mips-irix.
342 2004-08-11 Joel Brobecker <brobecker@gnat.com>
344 * config/powerpc/xm-aix.h: Delete.
345 * config/powerpc/aix.mh (MH_FILE): Remove.
346 * config/powerpc/aix432.mh (MH_FILE): Remove.
348 2004-08-11 Joel Brobecker <brobecker@gnat.com>
350 * config/powerpc/aix.mh: Remove obsolete comment.
351 * config/powerpc/aix432.mh: Likewise.
353 2004-08-11 Joel Brobecker <brobecker@gnat.com>
355 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
357 2004-08-11 Joel Brobecker <brobecker@gnat.com>
359 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
360 this file is now empty.
361 * config/xm-aix4.h: Remove, this file is no longer included
364 2004-08-11 Joel Brobecker <brobecker@gnat.com>
366 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
367 that file is now empty.
368 (termdef): Remove prototype, function no longer used.
370 2004-08-11 Joel Brobecker <brobecker@gnat.com>
372 * doc/gdbint.texinfo (Host Definition): Remove documentation
373 for USE_O_NOCTTY, no longer used.
374 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
375 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
377 2004-08-11 Joel Brobecker <brobecker@gnat.com>
379 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
380 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
381 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
383 2004-08-11 Mark Kettenis <kettenis@gnu.org>
385 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
386 instead of FIVE_ARG_PTRACE.
388 * inflow.c (O_NOCTTY): Define to zero if not already defined.
389 (new_tty): Use O_NOCTTY unconditionally.
391 2004-08-10 Mark Kettenis <kettenis@gnu.org>
393 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
394 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
397 2004-08-10 Joel Brobecker <brobecker@gnat.com>
399 * xcoff_symfile_finish: Replace last call to xmfree by call
402 2004-08-10 Andrew Cagney <cagney@gnu.org>
404 * main.c (captured_main): Delete call to init_malloc.
405 * defs.h (init_malloc): Delete declaration.
406 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
407 (init_malloc): Delete functions.
409 * defs.h (xmfree): Delete.
410 * utils.c (xmfree): Delete function.
411 (xfree): Inline calls to xmfree and mfree.
412 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
413 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
414 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
415 * somread.c (som_symfile_finish): Ditto.
416 * objfiles.c (allocate_objfile, free_objfile):
417 * nlmread.c (nlm_symfile_finish): Ditto.
418 * hpread.c (hpread_symfile_finish): Ditto.
419 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
420 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
421 * coffread.c (coff_symfile_finish): Ditto.
423 * defs.h (xmcalloc): Delete declaration.
424 * utils.c (xmcalloc): Delete.
425 (xcalloc): Inline calls to xmcalloc and mcalloc.
426 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
428 * symtab.c (create_demangled_names_hash): Ditto.
430 * defs.h (xmrealloc): Delete.
431 * utils.c (xmrealloc): Delete.
432 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
433 * symmisc.c (extend_psymbol_list): Use xrealloc.
434 * source.c (find_source_lines): Ditto.
435 * hpread.c (hpread_lookup_type): Ditto.
436 * dbxread.c (add_bincl_to_list): Ditto.
438 * utils.c (xmmalloc): Delete.
439 (xmalloc): Inline xmmalloc and mmalloc calls.
440 (msavestring): Use xmalloc.
441 * defs.h (xmmalloc): Delete declaration.
442 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
444 * symmisc.c (extend_psymbol_list): Ditto.
445 * symfile.c (init_psymbol_list): Ditto.
446 * source.c (find_source_lines): Ditto.
447 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
448 * elfread.c (elf_symtab_read): Ditto.
449 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
450 * coffread.c (coff_symfile_init): Ditto.
452 2004-08-10 David Carlton <carlton@bactrian.org>
454 * MAINTAINERS: Remove David Carlton from c++ testsuite
457 2004-08-10 Jerome Guitton <guitton@gnat.com>
459 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
460 print a line feed before the prompt.
462 2004-08-10 Mark Kettenis <kettenis@gnu.org>
464 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
466 2004-08-09 Joel Brobecker <brobecker@gnat.com>
468 General cleanup of the AIX xm include file:
469 * config/xm-aix4.h (fd_set): Remove undefine.
470 Remove include of <sys/select.h>.
471 (HAVE_TERMIO): Remove define.
473 (NULL): Remove redefine.
474 (alloca): Remove #pragma.
475 (vfork): Remove define.
477 (SIGWINCH_HANDLER): Remove.
478 (SIGWINCH_HANDLER_BODY): Remove.
480 2004-08-09 Mark Kettenis <kettenis@gnu.org>
482 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
483 GDB_OSABI_OPENBSD_ELF.
485 2004-08-07 Robert Millan <robertmh@gnu.org>
487 * bsd-kvm.c: Check for nlist.h before including it.
489 2004-08-09 Mark Kettenis <kettenis@gnu.org>
491 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
492 sigcontext' offset consistency checks for ancient BSD.
494 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
496 * configure.in: Check for <sys/types.h>. Check return and
497 argument types of ptrace.
498 * configure, config.in: Regenerate.
500 2004-08-09 Jim Blandy <jimb@redhat.com>
502 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
503 rs6000_register_sim_regno): Doc fixes.
505 2004-08-08 Joel Brobecker <brobecker@gnat.com>
507 * mips-tdep.c: Include "floatformat.h".
508 (n32n64_floatformat_always_valid): New function.
509 (floatformat_n32n64_long_double_big): New constant.
510 (mips_gdbarch_init): Set size and format of long double
511 for N32 and N64 ABIs.
512 * Makefile.in (mips-tdep.o): Update dependencies.
514 2004-08-08 Andrew Cagney <cagney@gnu.org>
516 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
517 print. Improve script's error messages.
518 * gdbarch.h: Re-generate.
520 * gdbarch.sh (pformat): New function.
521 (float_format, double_format, long_double_format): List with bit
522 members. Use pformat when printing.
523 * gdbarch.c, gdbarch.h: Re-generate.
525 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
527 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
528 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
529 (ppcnbsd_supply_pcb): New function.
530 (_initialize_ppcnbsd_nat): New prototype and function.
531 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
532 (LOADLIBES): New variable.
533 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
535 2004-08-08 Andrew Cagney <cagney@gnu.org>
537 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
538 (builtin_type_ieee_double, builtin_type_ia64_quad)
539 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
540 BE/LE floating-point types.
541 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
542 (builtin_type_ieee_double, builtin_type_ia64_quad)
543 (builtin_type_ia64_spill): Declare.
544 * doublest.c (_initialize_doublest, floatformat_ieee_single)
545 (floatformat_ieee_double, floatformat_arm_ext)
546 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
547 of LE/BE floatformats.
548 * doublest.h: (struct floatformat, floatformat_ieee_single)
549 (floatformat_ieee_double, floatformat_arm_ext)
550 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
552 2004-08-08 Mark Kettenis <kettenis@gnu.org>
554 * i386gnu-nat.c (gnu_store_registers): Fix typo.
556 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
557 instead of regcache_raw_supply when storing the registers.
559 * i386gnu-nat.c: Update copyright year.
560 (gnu_store_registers): Don't use deprecated_registers and
561 deprecated_registers_valid. Use regcache_valid_p and
562 regcache_raw_supply instead.
564 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
567 * procfs.c (procfs_pid_to_str): Remove redundant and unused
568 variables. Incapitalized "process".
570 * configure.in: Add cursesX to the list of possible curses libs.
571 Add cursesX.h to the list of possible curses headers.
572 * configure, config.in: Regenerate.
574 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
576 * configure.in: Test for struct lwp in <sys/lwp.h>.
577 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
578 the offset of l_addr in struct lwp.
580 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
582 * bsd-kvm.c: Include "gdbcore.h"
583 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
585 2004-08-07 Andrew Cagney <cagney@gnu.org>
587 * gdbtypes.c (build_flt, build_complex): New functions.
588 (gdbtypes_post_init): Use.
590 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
592 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
593 through to builtin_type_uint128.
595 * c-exp.y: Use builtin_type function to obtain builtin types.
597 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
599 * gdbtypes.c (gdbtypes_post_init): Update.
600 (build_gdbtypes): Move initialization of builtin_type_int0
601 through to builtin_type_uint128 from here ...
602 (_initialize_gdbtypes): ... to here.
603 * d10v-tdep.c (d10v_register_type): Update.
605 * doublest.c: Update copyright.
606 (floatformat_from_length): Call error when floatformat is NULL.
607 (extract_floating_by_length): Remove NULL fmt check.
608 (store_floating_by_length): Ditto.
610 2004-08-07 Andrew Cagney <cagney@gnu.org>
612 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
613 that the register is valid.
615 2004-08-05 Mark Kettenis <kettenis@chello.nl>
617 * i386-linux-tdep.c (i386_linux_sigtramp_start)
618 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
619 struct frame_info *. Use safe_frame_unwind_memory instead of
620 deprecated_read_memory_nobpt.
621 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
622 changed signature of i386_linux_sigtramp_start and
623 i386_linux_rt_sigtramp_start.
625 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
626 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
627 instead of deprecated_read_memory_nobpt.
628 (i386nbsd_sigtramp_p): Adjust for changed signature of
629 i386nbsd_sigtramp_offset.
631 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
632 safe_frame_unwind_memory instead of target_read_memory.
634 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
636 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
637 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
638 (_initialize_kernel_u_addr): Remove prototype and function.
639 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
641 * xcoffread.c: Likewise.
643 2004-08-06 Mark Kettenis <kettenis@gnu.org>
645 * vax-nat.c: New file.
646 * vaxbsd-nat.c: Tweak comment.
647 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
649 (vax-nat.o): New dependency.
650 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
651 (vax-*-ultrix2*): Remove.
652 * config/vax/vax.mh: New file.
653 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
654 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
655 (vax_register_u_addr): New prototype.
656 (REGISTER_U_ADDR): Define using vax_register_u_addr.
657 * config/vax/vaxult2.mh: Remove file.
658 * config/vax/vaxult.mh: Remove file.
659 * config/vax/vaxbsd.mh: Remove file.
660 * config/vax/vax.mt (TM_FILE): Remove.
661 * config/vax/tm-vaxbsd.h: Remove file.
663 2004-08-06 Joel Brobecker <brobecker@gnat.com>
665 * aix-thread.c (get_signaled_thread): New function.
666 (iter_trap): Delete, no longer used.
667 (iter_tid): New function.
668 (pd_update): Find the thread that received the SIGTRAP signal
669 by first locating the kernel thread, and then finding its
672 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
674 * lin-lwp.c (child_wait): Continue inferior after processing
675 PTRACE_EVENT_CLONE event.
677 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
679 * MAINTAINERS: Add self to Write-After-Approval.
681 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
683 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
684 libunwind-xxxx.so" where xxxx is UNW_TARGET.
686 2004-08-05 Andrew Cagney <cagney@gnu.org>
688 * config/xm-sysv4.h: Delete file.
689 * config/mips/xm-irix5.h: Delete file.
690 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
691 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
692 * config/ia64/xm-aix.h: Delete file.
693 * config/ia64/aix.mh (XM_FILE): Delete.
694 * config/pa/xm-hppah.h: Delete file.
695 * config/pa/hpux11w.mh (XM_FILE): Delete.
696 * config/pa/hpux11.mh (XM_FILE): Delete.
697 * config/pa/hpux1020.mh (XM_FILE): Delete.
698 * config/pa/hppahpux.mh (XM_FILE): Delete.
700 * config/alpha/xm-alphalinux.h: Delete file.
701 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
702 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
703 * config/alpha/xm-alphaosf.h: Delete file.
704 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
705 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
706 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
707 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
709 * config/i386/xm-i386v.h: Delete file.
710 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
711 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
712 * config/i386/xm-i386sco.h: Delete file.
713 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
714 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
715 * config/i386/xm-i386v4.h: Delete file.
716 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
717 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
718 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
719 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
721 * config/vax/xm-vax.h: Delete file.
722 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
723 * config/vax/xm-vaxult2.h: Delete file.
724 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
725 * config/vax/vaxult2.mh (XM_FILE): Delete.
726 * config/vax/xm-vaxult.h: Delete file.
727 * config/vax/vaxult.mh (XM_FILE): Delete.
728 * config/vax/xm-vaxbsd.h: Delete file.
729 * config/vax/vaxbsd.mh (XM_FILE): Delete.
731 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
732 * gdbarch.h, gdbarch.c: Re-generate.
733 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
734 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
735 * frame.h: Delete deprecated_read_fp from comments.
736 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
737 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
739 2004-08-04 Mark Kettenis <kettenis@gnu.org>
741 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
742 trampoline in OpenBSD 3.5-current.
744 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
747 * Makefile.in: Remove embedded page breaks.
749 2004-08-04 Jim Blandy <jimb@redhat.com>
751 * regcache.c (regcache_raw_read): Assert that, after calling
752 target_fetch_registers, the register we're reading is cached.
754 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
755 a call to 'internal_error', with a more helpful error message.
756 * rs6000-tdep.c (e500_pseudo_register_read,
757 e500_pseudo_register_write, rs6000_store_return_value): Same.
759 2004-08-04 Andrew Cagney <cagney@gnu.org>
761 * Makefile.in: Update dependencies.
763 2004-08-04 Jim Blandy <jimb@redhat.com>
765 Change the layout of the PowerPC E500 raw register cache to allow
766 the lower 32-bit halves of the GPRS to be their own raw registers,
768 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
769 add ppc_ev0_upper_regnum flag.
770 * rs6000-tdep.c: #include "reggroups.h".
771 (spe_register_p): Recognize the ev upper half registers as SPE
773 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
775 (e500_move_ev_register): New function.
776 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
777 vector registers are the pseudo-registers now, formed by splicing
778 together the gprs and the upper-half registers.
779 (e500_register_reggroup_p): New function.
782 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
783 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
785 (registers_e500): Rearrange register set so that the raw register
786 set contains 32-bit GPRs and upper-half registers, and the SPE
787 vector registers become pseudo-registers.
788 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
789 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
790 register numbers are now the same for the E500 as they are for
791 other PowerPC variants. Register e500_register_reggroup_p as the
792 register group function for the E500.
793 * Makefile.in (rs6000-tdep.o): Update dependencies.
795 Adapt PPC E500 native support to the new raw regcache layout.
796 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
797 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
798 (fetch_spe_register, store_spe_register): Handle fetching/storing
799 all the SPE registers at once, if regno == -1. These now take
800 over the job of fetch_spe_registers and store_spe_registers.
801 (fetch_spe_registers, store_spe_registers): Deleted.
802 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
803 unconditionally; they're always raw. Fetch/store SPE upper half
804 registers, if present, instead of ev registers.
805 (fetch_register, store_register): Remove sanity checks: gprs are
806 never pseudo-registers now, so we never need to even mention any
807 registers that are ever pseudoregisters.
809 Use a fixed register numbering when communicating with the PowerPC
811 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
812 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
813 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
815 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
816 init_sim_regno_table.
817 * Makefile.in (gdb_sim_ppc_h): New variable.
818 (rs6000-tdep.o): Update dependencies.
820 2004-08-02 Andrew Cagney <cagney@gnu.org>
822 * cris-tdep.c (cris_register_size): Restore function, still used
825 * gdbarch.sh (deprecated_target_read_fp)
826 (deprecated_frame_locals_address, deprecated_frame_args_address)
827 (deprecated_frame_chain_valid, deprecated_frame_chain)
828 (deprecated_init_extra_frame_info, deprecated_pop_frame)
829 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
830 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
831 * gdbarch.h, gdbarch.c: Re-generate.
832 * regcache.c (deprecated_read_fp): Do not call
833 DEPRECATED_TARGET_READ_FP_P.
834 * infcmd.c (default_print_registers_info): Do not call
835 DEPRECATED_DO_REGISTERS_INFO.
836 * frame-base.c (default_frame_locals_address): Do not call
837 DEPRECATED_FRAME_LOCALS_ADDRESS.
838 (default_frame_args_address): Do not call
839 DEPRECATED_FRAME_ARGS_ADDRESS.
841 * gdbarch.sh (deprecated_register_raw_size)
842 (deprecated_register_virtual_size:int): Delete.
843 * gdbarch.h, gdbarch.c: Re-generate.
844 * cris-tdep.c (cris_register_size): Delete.
845 (cris_gdbarch_init): Update.
846 * alpha-tdep.c (alpha_register_raw_size)
847 (alpha_register_virtual_size): Delete.
848 (alpha_gdbarch_init): Update.
850 * gdbarch.sh (deprecated_register_virtual_type)
851 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
852 (deprecated_dummy_write_sp): Delete.
853 * gdbarch.h, gdbarch.c: Re-generate.
855 * gdbarch.sh (deprecated_register_bytes): Delete.
856 * gdbarch.h, gdbarch.c: Re-generate.
857 * regcache.c (deprecated_register_bytes): New function.
858 * regcache.h (deprecated_register_bytes): Declare.
859 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
860 * v850-tdep.c (v850_gdbarch_init): Update.
861 * sh64-tdep.c (sh64_gdbarch_init): Update.
862 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
863 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
864 * mcore-tdep.c (mcore_gdbarch_init): Update.
865 * cris-tdep.c (cris_gdbarch_init): Update.
866 * arm-tdep.c (arm_gdbarch_init): Update.
867 * remote.c (init_remote_state): Update.
868 * remote-vx.c (vx_prepare_to_store): Update.
869 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
870 * irix5-nat.c (fetch_core_registers): Update.
871 * cris-tdep.c (cris_register_bytes_ok): Update.
872 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
874 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
875 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
876 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
877 (mips_insn16_frame_base_address, mips_insn16_frame_base)
878 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
879 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
880 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
881 (mips_insn32_frame_base_address, mips_insn32_frame_base)
882 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
883 with mips_insn16 and mips_insn32.
885 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
886 * rs6000-tdep.c (rs6000_push_dummy_call)
887 (rs6000_extract_return_value): Use register_size.
888 * xstormy16-tdep.c (xstormy16_get_saved_register)
889 (xstormy16_extract_return_value): Ditto.
890 * valops.c (value_assign): Ditto.
891 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
892 * v850-tdep.c (v850_extract_return_value): Ditto.
893 * tracepoint.c (collect_symbol): Ditto.
894 * target.c (debug_print_register): Ditto.
895 * stack.c (frame_info): Ditto.
896 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
897 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
898 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
899 (store_register_using_P): Ditto.
900 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
901 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
902 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
903 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
904 * regcache.c (deprecated_read_register_bytes)
905 (deprecated_write_register_bytes, read_register)
906 (write_register): Ditto.
907 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
908 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
909 * monitor.c (monitor_supply_register, monitor_fetch_register)
910 (monitor_store_register): Ditto.
911 * mn10300-tdep.c (mn10300_pop_frame_regular)
912 (mn10300_print_register): Ditto.
913 * mipsv4-nat.c (fill_fpregset): Ditto.
914 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
915 (mips64_fill_fpregset): Ditto.
916 * mi/mi-main.c (register_changed_p, get_register)
917 (mi_cmd_data_write_register_values): Ditto.
918 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
919 * irix5-nat.c (fill_gregset, fetch_core_registers):
920 * infrun.c (write_inferior_status_register): Ditto.
921 * infptrace.c (fetch_register, store_register): Ditto.
922 * infcmd.c (default_print_registers_info): Ditto.
923 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
924 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
925 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
926 * hpux-thread.c (hpux_thread_fetch_registers)
927 (hpux_thread_store_registers): Ditto.
928 * hppah-nat.c (store_inferior_registers, fetch_register):
929 * findvar.c (value_from_register): Ditto.
930 * dve3900-rom.c (fetch_bitmapped_register):
931 * cris-tdep.c (cris_gdbarch_init): Ditto.
932 * alpha-tdep.h: Ditto.
933 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
935 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
936 DEPRECATED_REGISTER_RAW_SIZE from comments.
937 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
938 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
939 DEPRECATED_REGISTER_RAW_SIZE.
940 * findvar.c (value_of_register): Simplify by assuming that the
941 registers raw and virtual sizes are identical.
942 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
944 * arch-utils.c (generic_register_size): Simplify by assuming
947 * regcache.c (legacy_read_register_gen, real_register)
948 (legacy_write_register_gen): Delete, not used.
950 * regcache.c (struct regcache_descr): Delete legacy_p.
951 (init_legacy_regcache_descr): Delete function.
952 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
953 Do not use deprecated register functions.
954 (regcache_raw_read, deprecated_write_register_gen):
955 (deprecated_read_register_gen, regcache_raw_write): Delete code
956 predicated on legacy_p.
957 (register_size): Delete check against register raw size.
959 * cris-tdep.c (cris_register_type): Replace
960 cris_register_virtual_type.
961 (cris_gdbarch_init): Update, set register_type.
963 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
964 * gdbarch.h, gdbarch.c: Re-generate.
965 * arm-tdep.c (arm_frameless_function_invocation): Delete.
966 (arm_gdbarch_init) Do not set frameless function invocation.
967 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
968 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
969 * frv-tdep.c (frv_frameless_function_invocation): Delete.
970 (frv_gdbarch_init): Do not set frameless function invocation.
971 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
972 * sh-tdep.c (sh_gdbarch_init): Ditto.
973 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
974 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
975 * avr-tdep.c (avr_gdbarch_init): Ditto.
977 * blockframe.c (legacy_frame_chain_valid): Delete function.
979 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
980 and pc. Update comments.
981 (pc_in_dummy_frame): Delete function.
982 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
984 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
985 call_hi, top and pc, use the id.
986 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
988 * dummy-frame.c: Include "gdb_string.h".
989 (generic_save_call_dummy_addr, generic_push_dummy_frame)
990 (generic_save_dummy_frame_tos): Delete.
991 (dummy_frame_push): New function, replaces above.
992 * dummy-frame.h: Update copyright.
993 (dummy_frame_push): Declare.
994 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
995 (generic_save_call_dummy_addr): Delete declarations.
996 * infcall.c: Include "dummy-frame.h".
997 (call_function_by_hand): Add locals caller_regcache,
998 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
999 with call to frame_save_as_regcache plus cleanup. Delete calls to
1000 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1001 Move clear_proceed_status to just before the resume, add call to
1002 dummy_frame_push (discard cleanup).
1003 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1004 (dummy-frame.o): Add $(gdb_string_h).
1006 2004-08-01 Andrew Cagney <cagney@gnu.org>
1008 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1009 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1010 * dummy-frame.c (find_dummy_frame): Delete.
1011 (struct dummy_frame_cache, dummy_frame_sniffer)
1012 (dummy_frame_prev_register, dummy_frame_this_id)
1013 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1014 frame unwinder using a dummy_frame_cache.
1016 2004-08-01 Andrew Cagney <cagney@gnu.org>
1018 * frame.h (frame_save_as_regcache): Declare.
1019 * frame.c (frame_save_as_regcache): New function.
1020 (do_frame_read_register): Replace do_frame_unwind_register.
1021 (frame_pop): Use frame_save_as_regcache.
1022 * dummy-frame.c (generic_push_dummy_frame): Use
1023 frame_save_as_regcache.
1025 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1027 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1028 file as included until we record the first line in the linetable.
1030 2004-08-01 Andrew Cagney <cagney@gnu.org>
1032 * frame.h (deprecated_pop_dummy_frame)
1033 (deprecated_read_register_dummy)
1034 (deprecated_generic_find_dummy_frame): Delete.
1035 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1036 (deprecated_read_register_dummy)
1037 (deprecated_find_dummy_frame_regcache)
1038 (discard_innermost_dummy)
1039 (deprecated_pop_dummy_frame): Delete.
1040 (dummy_frame_this_id): Simplify.
1041 (struct dummy_frame): Delete "fp" and "sp".
1042 (find_dummy_frame): Simplify.
1043 (generic_push_dummy_frame): Do not set "fp" or "sp".
1044 (fprint_dummy_frames): Do not print "fp" and "sp"
1046 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1048 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1049 (struct i386_insn): New structure.
1050 (i386_match_insn): New function.
1051 (i386_frame_setup_skip_insns): New variable.
1052 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1053 array i386_frame_setup_insns of instructions that should be
1054 skipped inside the frame setup sequence.
1056 2004-08-01 Andrew Cagney <cagney@gnu.org>
1058 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1059 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1060 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1061 * stack.c (frame_info): Delete references to
1062 DEPRECATED_FRAME_INIT_SAVED_REGS and
1063 deprecated_get_frame_saved_regs.
1064 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1065 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1066 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1067 (frame_unwind_register_signed)
1068 (frame_unwind_register_unsigned)
1069 (frame_unwind_unsigned_register): Use register_size.
1070 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1071 (deprecated_frame_xmalloc_with_cleanup)
1072 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1073 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1075 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1076 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1077 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1078 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1080 * infcall.c (call_function_by_hand): Do not use
1081 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1082 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1083 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1084 DEPRECATED_STACK_ALIGN.
1086 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1088 Committed by Andrew Cagney.
1089 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1091 2004-08-01 Andrew Cagney <cagney@gnu.org>
1093 * mips-tdep.c (mips16_frame_cache)
1094 (mips16_frame_this_id, mips16_frame_prev_register)
1095 (mips16_frame_unwind, mips16_frame_sniffer)
1096 (mips16_frame_base_address, mips16_frame_base)
1097 (mips16_frame_base_sniffer, mips32_frame_cache)
1098 (mips32_frame_this_id, mips32_frame_prev_register)
1099 (mips32_frame_unwind, mips32_frame_sniffer)
1100 (mips32_frame_base_address, mips32_frame_base)
1101 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1102 separate heuristic mips16 and mips32 unwinders.
1103 (mips_stub_frame_cache, mips_stub_frame_this_id)
1104 (mips_stub_frame_prev_register)
1105 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1106 (mips_stub_frame_base_address, mips_stub_frame_base)
1107 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1108 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1109 match true mdebug frames.
1110 (non_heuristic_proc_desc): Add forward declaration.
1112 2004-08-01 Andrew Cagney <cagney@gnu.org>
1114 * config/mips/tm-irix6.h: Delete file.
1115 * config/mips/tm-irix5.h: Delete file.
1116 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1117 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1119 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1120 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1121 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1122 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1123 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1124 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1125 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1126 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1127 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1128 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1129 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1130 (TARGET_SIGNAL_RAW_VALUES): Delete.
1131 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1133 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1134 (TARGET_HW_WATCH_LIMIT): Delete.
1135 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1136 * minimon.h: Delete file.
1138 * trad-frame.c (trad_frame_get_this_base)
1139 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1141 * trad-frame.h (trad_frame_set_this_base)
1142 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1144 2004-07-31 Andrew Cagney <cagney@gnu.org>
1146 * trad-frame.c (trad_frame_get_prev_register): Rename
1147 trad_frame_get_prev_register.
1148 * vax-tdep.c (vax_frame_prev_register): Update.
1149 * trad-frame.h: Update.
1150 * trad-frame.c (trad_frame_get_register): Update.
1151 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1152 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1154 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1155 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1157 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1159 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1161 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1163 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1165 * s390-tdep.c (s390_frame_prev_register)
1166 (s390_stub_frame_prev_register)
1167 (s390_sigtramp_frame_prev_register): Update.
1168 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1169 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1170 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1171 * m88k-tdep.c (m88k_frame_prev_register)
1172 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1173 * m32r-tdep.c (m32r_frame_prev_register): Update.
1174 * hppa-tdep.c (hppa_frame_prev_register_helper)
1175 * frv-tdep.c (frv_frame_prev_register): Update.
1176 * d10v-tdep.c (d10v_frame_prev_register): Update.
1177 * cris-tdep.c (cris_frame_prev_register): Update.
1178 * avr-tdep.c (avr_frame_prev_register): Update.
1179 * arm-tdep.c (arm_prologue_prev_register)
1180 (arm_sigtramp_prev_register): Update.
1182 2004-07-31 Andrew Cagney <cagney@gnu.org>
1184 * frame.h (legacy_saved_regs_unwind)
1185 (legacy_frame_chain_valid, legacy_frame_p)
1186 (enum frame_type): Delete UNKNOWN_FRAME.
1187 * dummy-frame.c (dummy_frame_this_id): Simplify.
1188 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1189 * frame.c (struct frame_info): Delete the field "type".
1190 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1191 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1192 (legacy_saved_regs_unwind, legacy_frame_p)
1193 (frame_type_from_pc): Delete.
1194 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1195 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1197 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1199 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1202 * mips-nat.c: Remove file.
1203 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1204 (mips-nat.o): Remove dependency.
1206 * infptrace.c: Update copyright year.
1207 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1208 explicitly setting the buffer to all zeroes.
1210 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1211 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1213 2004-07-30 Andrew Cagney <cagney@gnu.org>
1215 * GDB 6.2 released from gdb_6_2-branch.
1217 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1219 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1221 * exec.c (exec_file_attach):
1222 * nto-tdep.c (nto_find_and_open_solib):
1223 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1224 * solib.c (solib_open):
1225 * somsolib.c (som_solib_sizeof_symbol_table):
1226 * source.c (is_regular_file, openp, open_source_file):
1227 * symfile.c (symfile_bfd_open):
1228 * wince.c (upload_to_device): Differentiate between the search for
1229 binary and source files.
1231 2004-07-30 Andrew Cagney <cagney@gnu.org>
1233 * complaints.c (_initialize_complaints): Pass NULL to
1234 add_setshow_zinteger_cmd for help_doc.
1235 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1237 2004-07-30 Andrew Cagney <cagney@gnu.org>
1240 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1241 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1242 $(PACKAGE).pot and update-po.
1243 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1244 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1245 (update-po): New rules.
1246 (localedir): Define using autoconf.
1247 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1248 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1249 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1250 * configure.in: Generate CATALOGS and LINGUAS from contents of
1251 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1252 * configure: Re-generate.
1253 * po/gdbtext: New file
1255 2004-07-30 Jerome Guitton <guitton@gnat.com>
1257 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1260 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1262 * dwarf2read.c (read_file_scope): Set producer if attribute
1264 (struct dwarf2_cu): Added new member producer.
1266 2004-07-30 Jerome Guitton <guitton@gnat.com>
1268 * inflow.c (kill_command): release file handles in BFD.
1269 * exec.c (exec_file_attach): Ditto.
1270 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1272 2004-07-29 Andrew Cagney <cagney@gnu.org>
1274 * PROBLEMS (mips-irix): Note that it is broken.
1276 2004-07-29 Andrew Cagney <cagney@gnu.org>
1278 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1279 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1281 * config/xm-nbsd.h: Delete file.
1282 * config/arm/xm-nbsd.h: Delete file.
1283 * config/i386/xm-nbsd.h: Delete file.
1284 * config/ns32k/xm-nbsd.h: Delete file.
1285 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1286 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1287 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1288 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1289 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1291 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1292 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1293 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1294 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1295 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1296 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1298 * config/powerpc/xm-linux.h: Delete empty file.
1299 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1300 * config/powerpc/linux.mh (XM_FILE): Delete.
1301 * config/m68k/xm-linux.h: Delete empty file.
1302 * config/m68k/linux.mh (XM_FILE): Delete.
1303 * config/ia64/xm-linux.h: Delete empty file.
1304 * config/ia64/linux.mh (XM_FILE): Delete.
1305 * config/arm/xm-linux.h: Delete empty file.
1306 * config/arm/linux.mh (XM_FILE): Delete.
1308 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1309 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1310 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1311 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1312 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1313 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1314 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1315 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1317 * config/m68k/xm-m68k.h: Delete file.
1318 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1320 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1321 * config/pa/xm-linux.h: Delete empty file.
1322 * config/pa/linux.mh (XM_FILE): Delete.
1323 * config/i386/xm-i386.h: Delete empty file.
1324 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1326 * config/i386/obsdaout.mh (XM_FILE): Delete.
1327 * config/i386/obsd64.mh (XM_FILE): Delete.
1328 * config/i386/fbsd64.mh (XM_FILE): Delete.
1329 * config/i386/nto.mh (XM_FILE): Delete.
1330 * config/i386/obsd.mh (XM_FILE): Delete.
1331 * config/i386/linux64.mh (XM_FILE): Delete.
1332 * config/i386/linux.mh (XM_FILE): Delete.
1333 * config/i386/i386sol2.mh (XM_FILE): Delete.
1334 * config/i386/i386gnu.mh (XM_FILE): Delete.
1335 * config/i386/fbsd.mh (XM_FILE): Delete.
1336 * config/i386/nbsd64.mh (XM_FILE): Delete.
1338 2004-07-29 Andrew Cagney <cagney@gnu.org>
1340 * config/pa/xm-linux.h: Do not include "floatformat.h".
1341 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1342 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1343 * config/i386/xm-i386.h: Do not include "floatformat.h".
1344 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1345 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1346 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1347 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1348 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1349 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1350 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1351 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1352 * configure, config.in: Regenerate.
1353 * configure.host (gdb_host_float_format, gdb_host_double_format)
1354 (gdb_host_long_double_format): Set according to the host.
1356 2004-07-29 Andrew Cagney <cagney@gnu.org>
1358 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1360 2004-07-28 Andrew Cagney <cagney@gnu.org>
1362 * PROBLEMS: Mention threads/1650.
1363 * NEWS: Mention the NPTL fix.
1365 2004-07-28 Andrew Cagney <cagney@gnu.org>
1367 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1368 (add_setshow_cmd_full): Make static.
1369 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1370 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1371 * cli/cli-decode.c (add_setshow_filename_cmd)
1372 (add_setshow_string_cmd): New functions.
1373 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1374 * mips-tdep.c (_initialize_mips_tdep): Update.
1375 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1376 * cli/cli-logging.c (_initialize_cli_logging): Update.
1377 * complaints.c (_initialize_complaints): Update.
1378 * remote.c (_initialize_remote): Update.
1380 2004-07-28 Andrew Cagney <cagney@gnu.org>
1382 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1383 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1384 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1385 print parameters. Make string parameters constant.
1386 * command.h: Update. Update copyright.
1387 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1388 * observer.c (_initialize_observer): Ditto.
1389 * frame.c (_initialize_frame): Ditto.
1390 * complaints.c (_initialize_complaints): Ditto.
1391 * maint.c (_initialize_maint_cmds): Ditto.
1392 * target.c (initialize_targets): Ditto.
1393 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1394 * infcall.c (_initialize_infcall): Ditto.
1395 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1396 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1397 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1398 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1399 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1401 2004-07-28 Andrew Cagney <cagney@gnu.org>
1403 * gdbtypes.c (lookup_primitive_typename): Delete function.
1404 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1405 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1406 * gdbtypes.c (lookup_typename): Ditto.
1407 * f-exp.y (yylex): Ditto.
1408 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1410 * scm-lang.c (c_builtin_types): Delete extern declaration.
1411 (scm_language_defn): Replace
1412 string_char_type and primitive_type_vector with
1413 la_language_arch_info.
1414 * jv-lang.c (java_language_defn): Replace
1415 string_char_type and primitive_type_vector with
1416 la_language_arch_info.
1417 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1418 c_builtin_types in comment.
1419 * c-lang.h (struct language_arch_info): Declare opaque.
1420 (c_language_arch_info): Declare.
1421 (c_builtin_types): Delete declaration.
1422 * c-lang.c (c_language_arch_info): Set string_char_type to
1423 builtin_char, not builtin_true_char. Make global.
1424 (c_builtin_types): Delete array.
1425 (asm_language_defn, minimal_language_defn): Replace
1426 string_char_type and primitive_type_vector with
1427 la_language_arch_info.
1429 2004-07-28 Andrew Cagney <cagney@gnu.org>
1431 * gdbtypes.h (struct builtin_type): Rename true_char to
1433 * gdbtypes.c (gdbtypes_post_init): Update.
1434 * c-lang.c (arch_info): New function.
1435 (enum c_primitive_types): New enum.
1436 (c_language_defn): Instead of string_char_type and
1437 primitive_type_vector set la_language_arch_info.
1439 2004-07-28 Andrew Cagney <cagney@gnu.org>
1441 * language.h (struct language_arch_info): Fix typo
1442 s/primative/primitive/.
1443 * gdbtypes.c (lookup_primitive_typename): Ditto.
1444 * language.c (language_lookup_primitive_type_by_name)
1445 (unknown_language_arch_info): Ditto.
1447 2004-07-27 Andrew Cagney <cagney@gnu.org>
1449 * defs.h (enum language): Add nr_languages.
1450 * language.h (struct language_arch_info): Define.
1451 (struct language_defn): Add la_language_arch_info.
1452 (language_lookup_primative_type_by_name): Declare.
1453 (language_string_char_type): Declare.
1454 * language.c (_initialize_language, language_gdbarch_post_init)
1455 (struct language_gdbarch, language_gdbarch_data): Implement
1456 per-architecture language information.
1457 (unknown_language_arch_info, language_string_char_type)
1458 (language_lookup_primative_type_by_name): New functions.
1459 (unknown_language_defn, auto_language_defn)
1460 (local_language_defn): Set la_language_arch_info to
1461 unknown_language_arch_info.
1462 (unknown_builtin_types): Delete.
1463 * gdbtypes.c (lookup_primitive_typename): Use
1464 language_lookup_primative_type_by_name.
1465 (create_string_type): Use language_string_char_type.
1466 * values.c (value_from_string): Use language_string_char_type.
1467 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1468 * p-lang.c (pascal_language_defn): Ditto.
1469 * m2-lang.c (m2_language_defn): Ditto.
1470 * jv-lang.c (java_language_defn): Ditto.
1471 * objc-lang.c (objc_language_defn): Ditto.
1472 * f-lang.c (f_language_defn): Ditto.
1473 * c-lang.c (c_language_defn, cplus_language_defn)
1474 (asm_language_defn, minimal_language_defn): Ditto.
1476 2004-07-27 Andrew Cagney <cagney@gnu.org>
1478 * gdbtypes.h (struct builtin_type): Declare.
1479 (builtin_type): Declare.
1480 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1481 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1482 (gdbtypes_post_init): New function.
1483 (builtin_type): New function.
1485 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1487 * remote-m32r-sdi.c: Fix breakpoint bug.
1488 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1489 recv_char_data, recv_long_data): New functions to replace communication
1492 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1494 Document PR threads/1650.
1495 * PROBLEMS (Threads): Document problem with many threads
1497 2004-07-26 Andrew Cagney <cagney@gnu.org>
1499 * gdb-mi.el: Move from here ...
1500 * mi/gdb-mi.el: ... to here.
1502 2004-07-26 Andrew Cagney <cagney@gnu.org>
1504 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1505 * main.c (captured_main): When in batch mode always detach.
1507 2004-07-26 Andrew Cagney <cagney@gnu.org>
1509 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1510 and h8300 as broken.
1511 * NEWS: END-OF-LIFE frame compatibility module.
1512 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1515 2004-07-26 Andrew Cagney <cagney@gnu.org>
1517 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1518 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1519 * wince.c (_initialize_wince): Update.
1520 * win32-nat.c (_initialize_win32_nat): Update.
1521 * varobj.c (_initialize_varobj): Update.
1522 * valops.c (_initialize_valops): Update.
1523 * utils.c (initialize_utils, initialize_utils): Update.
1524 * tui/tui-win.c (_initialize_tui_win): Update.
1525 * top.c (init_main): Update.
1526 * symfile.c (_initialize_symfile): Update.
1527 * source.c (_initialize_source): Update.
1528 * somsolib.c (_initialize_som_solib): Update.
1529 * solib.c (_initialize_solib): Update.
1530 * solib-frv.c (_initialize_frv_solib): Update.
1531 * serial.c (_initialize_serial): Update.
1532 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1533 * remote.c (_initialize_remote, _initialize_remote): Update.
1534 * remote-vx.c (_initialize_vx): Update.
1535 * remote-utils.c (_initialize_sr_support): Update.
1536 * remote-sds.c (_initialize_remote_sds): Update.
1537 * remote-mips.c (_initialize_remote_mips): Update.
1538 * remote-e7000.c (_initialize_remote_e7000): Update.
1539 * proc-api.c (_initialize_proc_api): Update.
1540 * printcmd.c: Update.
1541 * parse.c (_initialize_parse): Update.
1542 * pa64solib.c (_initialize_pa64_solib): Update.
1543 * p-valprint.c (_initialize_pascal_valprint): Update.
1544 * monitor.c (_initialize_remote_monitors): Update.
1545 * mips-tdep.c (_initialize_mips_tdep): Update.
1546 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1547 * maint.c (_initialize_maint_cmds): Update.
1548 * lin-lwp.c (_initialize_lin_lwp): Update.
1549 * language.c (_initialize_language): Update.
1550 * kod.c (_initialize_kod): Update.
1551 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1552 * i386-tdep.c (_initialize_i386_tdep): Update.
1553 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1554 * gdbarch.sh: Update.
1555 * gdbarch.c: Re-generate.
1556 * gdb-events.sh: Update.
1557 * gdb-events.c: Re-generate.
1558 * frame.c (_initialize_frame): Update.
1560 * demangle.c (_initialize_demangler): Update.
1561 * dcache.c (_initialize_dcache): Update.
1562 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1563 * cp-valprint.c (_initialize_cp_valprint): Update.
1564 * corefile.c (_initialize_core): Update.
1565 * command.h: Update.
1566 * cli/cli-decode.h: Update.
1567 * cli/cli-cmds.c (init_cli_cmds): Update.
1568 * charset.c (_initialize_charset): Update.
1569 * breakpoint.c (_initialize_breakpoint): Update.
1570 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1571 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1572 * aix-thread.c (_initialize_aix_thread): Update.
1574 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1576 Partial fix for PR backtrace/1718.
1577 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1578 that GCC migrates into the prolugue. Don't handle any
1579 instructions that clobber %ebx.
1581 2004-07-23 Andrew Cagney <cagney@gnu.org>
1583 Use regcache_raw_collect instead of regcache_collect.
1584 * regcache.h (regcache_collect): Delete declaration.
1585 * regcache.c (regcache_colect): Delete function.
1586 * win32-nat.c (do_child_store_inferior_registers): Update.
1587 * sol-thread.c (sol_thread_store_registers): Update.
1588 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1589 * rs6000-nat.c (store_register): Update.
1590 * remote.c (store_register_using_P, remote_store_registers): Update.
1591 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1592 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1593 (fill_vrregset, store_spe_registers, fill_gregset)
1594 (fill_gregset): Update.
1595 * nto-procfs.c (procfs_store_registers): Update.
1596 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1597 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1598 * m68klinux-nat.c (store_register, fill_gregset): Update.
1599 * m68k-tdep.c (fill_gregset): Update.
1600 * infptrace.c (store_register): Update.
1601 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1602 * i386-linux-nat.c (store_register, fill_gregset): Update.
1603 * hppa-linux-nat.c (fill_gregset): Update.
1604 * go32-nat.c (store_register): Update.
1605 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1606 (store_fp_regs): Update.
1607 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1608 (store_nwfpe_extended, store_fpregister, store_fpregs)
1609 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1610 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1611 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1612 (store_regs_user_thread, store_regs_kernel_thread): Update.
1614 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1616 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1617 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1619 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1620 member of `struct comp_unit'.
1622 2004-07-23 Andrew Cagney <cagney@gnu.org>
1624 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1625 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1627 2004-07-23 Martin Hunt <hunt@redhat.com>
1628 Kevin Buettner <kevinb@redhat.com>
1630 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1631 alignment was being added to the offset instead of multiplied.
1633 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1635 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1636 changed signal trampoline in OpenBSD 3.5-current.
1638 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1639 <machine/pcb.h> and "bsd-kvm.h".
1640 (sparc64nbsd_supply_pcb): New function.
1641 (_initialize_sparc64nbsd_nat): Renamed from
1642 _initialize_sparcnbsd_nat. Enable libkvm interface.
1643 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1644 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1645 (LOADLIBES): New variable.
1647 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1649 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1651 2004-07-21 Andrew Cagney <cagney@gnu.org>
1653 Use regcache_raw_supply instead of supply_register.
1654 * regcache.h (supply_register): Delete declaration.
1655 * regcache.c (supply_register): Delete function.
1656 * wince.c (do_child_fetch_inferior_registers): Update.
1657 * win32-nat.c (do_child_fetch_inferior_registers)
1658 (fetch_elf_core_registers): Update.
1659 * v850ice.c (v850ice_fetch_registers): Update.
1660 * thread-db.c (thread_db_store_registers): Update.
1661 * sol-thread.c (sol_thread_store_registers): Update.
1662 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1663 * rs6000-nat.c (fetch_register): Update.
1664 * rom68k-rom.c (rom68k_supply_one_register): Update.
1665 * remote.c (remote_wait, remote_async_wait): Update.
1666 * remote-st.c (get_hex_regs): Update.
1667 * remote-sim.c (gdbsim_fetch_register): Update.
1668 * remote-sds.c (sds_fetch_registers): Update.
1669 * remote-rdp.c (remote_rdp_fetch_register): Update.
1670 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1671 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1672 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1673 * remote-hms.c (init_hms_cmds): Update.
1674 * remote-est.c (init_est_cmds): Update.
1675 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1676 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1677 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1678 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1679 (fetch_register, supply_vrregset, supply_vrregset)
1680 (fetch_spe_registers): Update.
1681 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1682 * monitor.c (monitor_supply_register): Update.
1683 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1684 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1685 (mipsnbsd_supply_fpreg): Update.
1686 * mips-nat.c (fetch_inferior_registers)
1687 (fetch_core_registers): Update.
1688 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1689 (supply_fpregset, mips64_supply_gregset)
1690 (mips64_supply_fpregset): Update.
1691 * m68klinux-nat.c (fetch_register, supply_gregset)
1692 (supply_fpregset): Update.
1693 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1694 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1695 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1696 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1697 * infptrace.c (fetch_register): Update.
1698 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1699 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1700 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1701 (gnu_fetch_registers, gnu_store_registers): Update.
1702 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1703 * i386-linux-nat.c (fetch_register, supply_gregset)
1704 (dummy_sse_values): Update.
1705 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1706 * hppah-nat.c (fetch_register): Update.
1707 * hppa-linux-nat.c (fetch_register, supply_gregset)
1708 (supply_fpregset): Update.
1709 * go32-nat.c (fetch_register): Update.
1710 * dve3900-rom.c (fetch_bitmapped_register)
1711 (_initialize_r3900_rom): Update.
1712 * cris-tdep.c (supply_gregset): Update.
1713 * abug-rom.c (init_abug_cmds): Update.
1714 * core-aout.c (fetch_core_registers): Update.
1715 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1716 (fetch_register, fetch_fp_register): Update.
1717 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1718 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1719 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1720 * alphanbsd-tdep.c (fetch_core_registers): Update.
1721 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1722 * alpha-nat.c (fetch_osf_core_registers)
1723 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1724 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1725 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1727 2004-07-21 Andrew Cagney <cagney@gnu.org>
1729 * PROBLEMS: Mention breakpoints/1702.
1730 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1731 that is known to work.
1733 2004-07-21 Andrew Cagney <cagney@gnu.org>
1735 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1736 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1737 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1738 (handle_inferior_event): Wrap call to deprecated
1739 IGNORE_HELPER_CALL in #ifdef.
1740 * config/mips/tm-nbsd.h: Update.
1742 2004-07-20 Jim Blandy <jimb@redhat.com>
1744 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1745 bfd_mach_ppc has no segment registers.
1747 Include PowerPC SPR numbers for special-purpose registers.
1748 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1749 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1750 new member in initializer.
1751 (S, S4, SN4, S64): New macros for defining special-purpose
1753 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1754 registers_403, registers_403GC, registers_505, registers_860,
1755 registers_601, registers_602, registers_603, registers_604,
1756 registers_750, registers_e500): Use them.
1758 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1759 replace references with expression used to initialize variable.
1761 2004-07-20 Andrew Cagney <cagney@gnu.org>
1763 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1765 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1766 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1767 (s390_sigtramp_frame_sniffer): Update.
1768 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1769 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1770 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1771 (mips32_fetch_instruction): Update.
1772 * mcore-tdep.c (get_insn): Update.
1773 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1774 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1775 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1776 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1777 (i386_linux_rt_sigtramp_start): Update.
1778 * i386-linux-nat.c (child_resume): Update.
1779 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1780 * hppa-linux-tdep.c (insns_match_pattern): Update.
1781 * gdbcore.h: Update.
1782 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1783 * frame.c (safe_frame_unwind_memory): Update.
1784 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1785 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1786 * alpha-tdep.c (alpha_read_insn): Update.
1788 2004-07-20 Andrew Cagney <cagney@gnu.org>
1790 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1791 containing both bytes and mask. Add "frame_type".
1792 * tramp-frame.c (tramp_frame_start): Update.
1793 (tramp_frame_prepend_unwinder): Update.
1794 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1795 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1796 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1797 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1799 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1801 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1802 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1803 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1804 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1806 2004-07-17 Andrew Cagney <cagney@gnu.org>
1808 * NEWS, PROBLEMS: Update for 6.2.
1810 * README: Update to 6.2.
1812 * utils.c (xvasprintf): Call xstrvprintf.
1814 * parse.c: Update copyright.
1815 (null_post_parser): Eliminate ARGSUSED.
1817 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1818 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1819 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1821 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1822 * ppc-linux-nat.c: Use "Linux kernel".
1823 * hppa-linux-tdep.c: Use GNU/Linux.
1824 * hppa-linux-nat.c: Use GNU/Linux.
1825 * dwarfread.c: Add [sic] to use of Linux.
1827 * hppa-linux-nat.c: Do not include <string.h>.
1828 (supply_fpregset): Remove "register" attribute.
1830 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1832 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1834 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1835 * configure, config.in: Regenerated.
1837 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1839 (vaxbsd_supply_pcb): New function.
1840 (_initialize_vaxbsd_nat): New prototype and function.
1841 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1843 (LOADLIBES): New variable.
1844 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1845 (LOADLIBES): New variable.
1846 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1847 (LOADLIBES): New variable.
1848 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1850 2004-07-16 Andrew Cagney <cagney@gnu.org>
1852 * defs.h (event_loop_p): Replace variable declaration with macro,
1854 * main.c (captured_main): Delete options "-async" and "-noasync".
1855 (event_loop_p): Delete variable.
1856 * NEWS: Mention that "-async" and "-noasync" were removed.
1858 2004-07-16 Andrew Cagney <cagney@gnu.org>
1860 * remote-m32r-sdi.c: Re-indent.
1862 2004-07-16 Jim Blandy <jimb@redhat.com>
1864 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1865 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1866 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
1867 missing MPC823 SPRs.
1868 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
1869 incorrect. (This was corrected in GDB's register name tables on
1872 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
1873 should be "esasrr" ("ESA Save and Restore Register").
1875 2004-07-16 Andrew Cagney <cagney@gnu.org>
1877 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
1878 calls, no longer applicable. Update comments and rename parameter
1879 "step_frame" to "return_frame".
1881 2004-07-16 Andrew Cagney <cagney@gnu.org>
1883 * frame.c (fprint_field): New function.
1884 (fprint_frame_id): Use fprint_field.
1886 2004-07-15 Joel Brobecker <brobecker@gnat.com>
1888 * ada-lang.c (ada_language_defn): Remove commented out code.
1890 2004-07-15 Jim Blandy <jimb@redhat.com>
1892 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
1893 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
1895 2004-07-14 Jim Blandy <jimb@redhat.com>
1897 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
1899 * ppc-tdep.h (ppc_num_vrs): New enum constant.
1901 * ppc-tdep.h (ppc_num_srs): New enum constant.
1903 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
1904 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
1905 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
1906 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
1907 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
1908 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
1909 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
1910 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
1911 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
1912 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
1913 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
1914 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
1915 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
1916 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
1917 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
1918 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
1919 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
1920 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
1921 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
1922 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
1923 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
1924 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
1925 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
1926 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
1927 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
1928 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
1929 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
1930 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
1931 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
1932 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
1933 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
1934 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
1935 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
1936 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
1937 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
1938 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
1939 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
1940 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
1941 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
1942 special-purpose register numbers.
1944 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
1945 manual mentions 'md_twb', but many mention 'm_twb', and at that
1946 point in the register list.)
1948 2004-07-14 Andrew Cagney <cagney@gnu.org>
1950 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
1951 instead of "internal-error".
1953 2004-07-10 Joel Brobecker <brobecker@gnat.com>
1955 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
1956 that was inserted inside a comment.
1958 2004-07-10 Randolph Chung <tausq@debian.org>
1960 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
1962 (hppa_hpux_push_dummy_code): New function.
1963 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
1964 Set find_global_pointer method.
1966 2004-07-10 Mark Kettenis <kettenis@gnu.org>
1968 * NEWS: Mention BSD libkvm interface.
1970 2004-07-10 Michael Snyder <msnyder@redhat.com>
1972 * symfile.c (generic_load): Comment typo.
1973 * stack.c (get_selected_block): Ditto.
1974 * regcache.c (regcache_cooked_read): Ditto.
1975 * monitor.c (monitor_debug): Ditto.
1976 * mips-tdep.c (mips_read_pc): Ditto.
1977 * i386-linux-nat.c (ps_get_thread_area): Ditto.
1978 * gdb_mbuild.sh: Ditto.
1979 * gdbarch.sh: Ditto.
1982 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
1984 * ada-tasks.c: Remove file.
1986 Remove ARI problems:
1988 * ada-exp.y (write_var_from_sym): Reformat to put operator at
1991 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
1993 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
1994 (MIN_OF_SIZE): Rename min_of_size. Add comment.
1995 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
1996 (UMIN_OF_SIZE): Remove.
1997 (max_of_type): New function to replace orphan macro in gdbtypes.h
1998 (min_of_type): Ditto.
1999 (discrete_type_high_bound): Use max_of_type.
2000 (discrete_type_low_bound): Use min_of_type.
2001 (possible_user_operator_p): Move operator to beginning of line.
2002 (ada_is_variant_part): Ditto.
2003 (ensure_lval): Rewrite to avoid deprecated operations.
2004 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2005 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2006 (ada_enum_name): Remove assignments in 'if' statements.
2007 (build_ada_types): Add gdbarch parameter.
2008 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2009 with gdbarch_data_register_post_init.
2010 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2013 * ada-valprint.c (inspect_it): Remove declaration.
2014 (repeat_count_threshold): Remove declaration.
2015 (ada_print_floating): Remove assignments in 'if' statements.
2016 (print_str): Move operator to beginning of line.
2018 2004-07-08 Jim Blandy <jimb@redhat.com>
2020 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2022 2004-07-08 Bob Rossi <bob@brasko.net>
2024 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2026 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2028 * language.h (struct_language_defn): Add new function pointer:
2029 la_class_name_from_physname. Also add new prototype for
2030 language_class_name_from_physname.
2031 * language.c (language_class_name_from_physname): New function.
2032 (unk_lang_class_name): Ditto.
2033 (unknown_language_defn, auto_language_defn): Change
2034 to add unk_lang_class_name function pointer for
2035 la_class_name_from_physname.
2036 (local_language_defn): Ditto.
2037 * dwarf2read.c (guess_structure_name): Change to call
2038 language_class_name_from_physname.
2039 (determine_class_name): Ditto.
2040 * cp-support.c (class_name_from_physname): Renamed.
2041 (cp_class_name_from_physname): New name of function.
2042 * cp-support.h: Ditto.
2043 * c-lang.c (c_language_defn): Change to add NULL
2044 for class_name_from_physname function pointer.
2045 (cplus_language_defn): Change to add cp_class_name_from_physname.
2046 * jv-lang.c (java_class_name_physname): New function.
2047 (java_find_last_component): New static routine.
2048 (java_language_defn): Add java_class_name_from_physname pointer.
2049 * ada-lang.c (ada_language_defn): Change to add NULL
2050 for class_name_from_physname function pointer.
2051 * f-lang.c (f_language_defn): Ditto.
2052 * m2-lang.c (m2_language_defn): Ditto.
2053 * objc-lang.c (objc_language_defn): Ditto.
2054 * p-lang.c (pascal_language_defn): Ditto.
2055 * scm-lang.c (scm_language_defn): Ditto.
2057 2004-07-06 Andrew Cagney <cagney@gnu.org>
2059 Patch from Bart Robinson.
2060 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2061 (O_LARGEFILE): Define to 0, if not defined.
2063 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2065 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2066 <machine/pcb.h> and "bsd-kvm.h".
2067 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2068 (m68kbsd_supply_pcb): New function.
2069 (_initialize_m68kbsd_nat): New prototype and function.
2070 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2071 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2072 (LOADLIBES): New variable.
2073 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2074 (LOADLIBES): New variable.
2076 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2078 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2080 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2082 (bsd_kvm_cmdlist): New variable.
2083 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2084 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2085 command and "kvm proc" command.
2086 * Makefile.in (bsd-kvm.o): Update dependencies.
2088 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2090 * osabi.c: Update copyright year.
2091 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2092 notes if EI_OSABI is set to ELFOSABI_HPUX.
2094 2004-07-01 Michael Snyder <msnyder@redhat.com>
2096 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2097 that seems to have gotten whacked out of line.
2099 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2101 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2104 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2106 * ada-lang.c (decode_packed_array): Minor change to comment.
2107 (ada_value_slice_ptr): New function.
2108 (ada_value_slice): New function.
2109 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2110 test. Don't know why it is there.
2111 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2112 to avoid dereferencing huge arrays from which one is slicing.
2113 (empty_array): Correct to return an array rather than
2115 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2116 on empty arrays (let'em use 'FIRST instead).
2118 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2120 Address complaints from gdb_ari.sh:
2122 * ada-exp.y: Include gdb_string.h rather than string.h.
2123 (convert_char_literal): Reformat declaration.
2124 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2125 * ada-lex.l: Change use of free to xfree (the macro would do so
2126 anyway, but this is harmless).
2127 Include gdb_string.h rather than string.h.
2128 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2130 * ada-lang.c (parse): Remove K&Rism in parameter list.
2131 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2133 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2135 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2138 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2140 * alphabsd-nat.c: Update copyright year.
2141 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2143 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2145 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2146 (i386_cygwin_in_solib_call_trampoline): New function.
2147 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2148 and skip_trampoline_code gdbarch methods.
2150 2004-06-29 Jim Blandy <jimb@redhat.com>
2152 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2153 name actually used in the dependency lists.
2155 2004-06-29 Randolph Chung <tausq@debian.org>
2157 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2159 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2161 * win32-nat.c (child_pid_to_exec_file): New function.
2162 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2165 2004-06-28 Andrew Cagney <cagney@gnu.org>
2167 * defs.h (xstrvprintf): Declare.
2168 * utils.c (xstrvprintf): New function.
2169 (internal_vproblem, xstrprintf, xasprintf)
2170 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2171 * serial.c (serial_printf): Ditto.
2172 * complaints.c (vcomplaint): Ditto.
2174 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2176 * infcmd.c (attach_command): Move call to target_terminal_inferior
2177 behind loading symbol table.
2179 2004-06-28 Andrew Cagney <cagney@gnu.org>
2181 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2182 change - add back extern deprecated_ui_loop_hook declaration.
2184 2004-06-28 Andrew Cagney <cagney@gnu.org>
2186 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2188 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2189 (c_value_of_variable): Ditto.
2190 * utils.c (internal_vproblem): Ditto.
2191 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2192 * remote.c (add_packet_config_cmd): Ditto.
2193 * remote-rdp.c (rdp_set_command_line): Ditto.
2194 * regcache.c (regcache_dump): Ditto.
2195 * frv-tdep.c (new_variant, new_variant): Ditto.
2196 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2197 (fbsd_find_memory_regions): Ditto.
2198 * breakpoint.c (create_thread_event_breakpoint)
2199 (create_breakpoints): Ditto.
2200 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2201 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2203 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2205 * ada-lang.c: Re-indent file, with some massaging to help indent
2206 a bit when the result is otherwise really too ugly.
2208 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2210 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2211 code_addr_p and special_addr_p to 'unsigned int'.
2213 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2215 * i386v4-nat.c: Update copyright year and tweak comment.
2216 (regmap): Remove trailing comma.
2217 (supply_gregset): Rename local variable i to regnum. Call
2218 regcache_raw_supply instead of supply_register.
2219 (fill_gregset): Rename argument regno to regnum. Call
2220 regcache_raw_collect instead of regcache_collect.
2222 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2224 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2226 (frame_id_build, frame_id_build_special): Update comments.
2227 (frame_id_build_wild): New prototype.
2228 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2229 struct frame_id fields.
2230 (frame_id_build_wild): New function.
2231 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2233 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2235 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2238 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2240 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2242 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2244 * ada-lang.c: Re-indent file.
2246 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2248 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2249 (no_symtab_msg): Likewise.
2251 2004-06-27 Andreas Schwab <schwab@suse.de>
2253 * source.c: Fix whitespace.
2255 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2257 * configure.in: Include <sys/param.h> for td_pcb test.
2258 * configure: Regenerated.
2260 * i386nbsd-nat.c: New file.
2261 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2262 i386obsd-nat.c and i386obsd-tdep.c.
2263 (i386nbsd-nat.o): New dependency.
2264 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2266 (LOADLIBES): New variable.
2267 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2269 (LOADLIBES): New variable.
2271 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2272 (LOADLIBES): New variable.
2274 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2275 fetching from BSD_KVM_PADDR. Correctly lookup address for
2278 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2280 (amd64fbsd_supply_pcb): New funcion.
2281 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2283 2004-06-27 <david@streamline-computing.com>
2285 Partial fix for PR cli/1056.
2286 * valarith.c: Check for zero in division and remainder
2289 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2291 * i387-tdep.c: Remove excessive whitespace.
2293 2004-06-26 Andrew Cagney <cagney@gnu.org>
2295 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2296 * gdb-events.h, gdb-events.c: Re-generate.
2297 * tui/tui-hooks.c (tui_install_hooks): Update.
2298 (tui_remove_hooks): Update.
2299 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2301 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2303 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2304 (gregset_t, fpregset_t): Remove typedefs.
2305 (REG_OFFSET): Rename argument.
2306 (amd64bsd_r_reg_offset): Rename from reg_offset.
2307 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2309 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2311 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2313 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2315 * vax-tdep.c: Tweak comment.
2317 Add OpenBSD/hppa support.
2318 * NEWS (New native configurations): Mention OpenBSD/hppa.
2319 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2320 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2322 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2323 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2324 * configure.host: Add hppa*-*-openbsd*.
2325 * configure.tgt: Add hppa*-*-openbsd*.
2327 2004-06-25 Andrew Cagney <cagney@gnu.org>
2329 * defs.h (deprecated_ui_loop_hook): Deprecated.
2330 * wince.c (child_wait): Update.
2331 * win32-nat.c (child_wait): Update.
2332 * v850ice.c (v850ice_wait): Update.
2333 * top.c (deprecated_ui_loop_hook): Update.
2335 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2336 (do_unix_readchar): Update.
2337 * ser-tcp.c (net_open): Update.
2338 * remote-sim.c (gdb_os_poll_quit): Update.
2339 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2341 2004-06-24 Andrew Cagney <cagney@gnu.org>
2343 * defs.h (deprecated_pre_add_symbol_hook)
2344 (deprecated_post_add_symbol_hook): Deprecated.
2345 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2346 (symbol_file_add_with_addrs_or_offsets): Update references.
2348 2004-06-24 Andrew Cagney <cagney@gnu.org>
2350 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2351 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2352 * wince.c (ui_loop_hook): Delete extern declaration.
2353 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2354 * v850ice.c (ui_loop_hook): Delete extern declaration..
2355 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2356 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2357 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2358 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2359 ui_loop_hook declaration.
2361 2004-06-24 Andrew Cagney <cagney@gnu.org>
2363 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2364 entry_func_highpc fields.
2365 * objfiles.c (init_entry_point_info): Do not clear
2366 entry_func_lowpc and entry_func_highpc.
2367 (objfile_relocate): Do not relocate entry_func_lowpc and
2369 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2371 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2373 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2374 entry_func_lowpc and entry_func_highpc with call to
2377 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2379 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2380 quad-precision floating point arguments in registers.
2382 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2384 From Michael Mueller <m.mueller99@kay-mueller.de>:
2385 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2388 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2390 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2392 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2393 untriggered watchpoints to a separate if clause. Update function
2394 comment regarding STOPPED_BY_WATCHPOINT argument.
2396 2004-06-22 Jim Blandy <jimb@redhat.com>
2398 * gdbarch.sh: Doc fix.
2400 2004-06-21 Martin Hunt <hunt@redhat.com>
2401 Kevin Buettner <kevinb@redhat.com>
2403 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2404 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2405 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2406 to set_gdbarch_sp_regnum(). Use cooked register number.
2407 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2409 2004-06-21 Andrew Cagney <cagney@gnu.org>
2411 * gdbarch.sh: When the macro field is empty, do not generate a
2412 macro definition. When the macro field is "=", generate the macro
2413 name from the upper-case function name.
2414 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2415 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2416 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2417 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2418 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2419 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2420 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2421 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2422 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2423 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2424 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2425 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2426 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2427 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2428 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2429 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2430 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2431 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2432 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2433 (DEPRECATED_USE_STRUCT_CONVENTION)
2434 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2435 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2436 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2437 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2438 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2439 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2440 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2441 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2442 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2443 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2444 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2445 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2446 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2447 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2448 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2449 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2450 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2451 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2453 2004-06-21 Andrew Cagney <cagney@gnu.org>
2455 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2456 macro name, and the function rather than macro value. Only wrap
2457 macro print statements in #ifdef. Move format logic to where it
2459 * gdbarch.c: Re-generate.
2461 * gdbarch.sh (read): Delete "print_p" and "description", add
2462 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2463 Delete references to print_p.
2464 (TARGET_ARCHITECTURE): Delete print predicate.
2465 * gdbarch.c: Re-generate.
2467 * gdbarch.sh: Check that multi-arch methods do not provide a
2469 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2470 (print_registers_info, print_float_info, print_vector_info)
2471 (adjust_breakpoint_address, remote_translate_xfer_address)
2472 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2473 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2474 name from the multi-arch definition.
2476 2004-06-20 Andrew Cagney <cagney@gnu.org>
2478 * gdbarch.sh: Sort by the function, instead of macro name.
2479 * gdbarch.c: Re-generate.
2481 2004-06-20 Andrew Cagney <cagney@gnu.org>
2483 * gdbarch.sh: Use the function, instead of macro name in
2484 errors and the log file.
2485 (return_value): Remove stray ":" in spec.
2487 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2488 * gdbarch.h, gdbarch.c: Re-generate.
2489 * Makefile.in (arch-utils.o): Update dependencies.
2490 * values.c (using_struct_return): Move code calling
2491 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2492 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2493 to legacy_return_value, simplify.
2494 * infcmd.c (print_return_value): Move code calling
2495 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2496 to legacy_return_value, simplify.
2497 * infcall.c (call_function_by_hand): Move code calling
2498 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2499 * arch-utils.c: Update copyright. Include "gdbcore.h".
2500 (legacy_return_value): New function.
2501 * arch-utils.h: Update copyright.
2502 (legacy_return_value): Declare.
2504 2004-06-20 Andrew Cagney <cagney@gnu.org>
2506 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2507 * gdbarch.h, gdbarch.c: Re-generate.
2508 * values.c (using_struct_return): Update call.
2509 * mcore-tdep.c: Update comment.
2510 * infcall.c (call_function_by_hand): Update comment.
2511 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2512 * arch-utils.h (always_use_struct_convention): Update.
2513 * v850-tdep.c (v850_gdbarch_init): Update.
2514 * sh64-tdep.c (sh64_gdbarch_init): Update.
2515 * sh-tdep.c (sh_gdbarch_init): Update.
2516 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2517 * mips-tdep.c (mips_gdbarch_init): Update.
2518 * mcore-tdep.c (mcore_gdbarch_init): Update.
2519 * m32r-tdep.c (m32r_gdbarch_init): Update.
2520 * ia64-tdep.c (ia64_gdbarch_init): Update.
2521 * h8300-tdep.c (h8300_gdbarch_init): Update.
2522 * frv-tdep.c (frv_gdbarch_init): Update.
2523 * cris-tdep.c (cris_gdbarch_init): Update.
2524 * arm-tdep.c (arm_gdbarch_init): Update.
2525 * alpha-tdep.c (alpha_gdbarch_init): Update.
2527 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2529 * PROBLEMS: Add more specific information, and a work-around,
2532 2004-06-18 Andrew Cagney <cagney@gnu.org>
2534 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2535 * gdbarch.h, gdbarch.c: Re-generate.
2536 * ada-lang.c (ada_finish_decode_line_1): Update.
2537 * infrun.c (handle_inferior_event): Update.
2538 * infcall.c (find_function_addr): Update.
2539 * linespec.c (minsym_found): Update.
2540 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2542 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2543 * cli/cli-cmds.c (disassemble_command): Update.
2544 * vax-tdep.c (vax_gdbarch_init): Update.
2546 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2548 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2550 2004-06-17 Andrew Cagney <cagney@gnu.org>
2552 GDB 6.1.1 released from the GDB 6.1 branch.
2553 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2556 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2559 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2560 operation as a uleb128. Found by Michael Coulter.
2562 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2564 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2566 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2567 to ada-lang.h; this is needed to be able to implement the kill command
2570 (task_entry): Ditto.
2572 (ada_build_task_list): Ditto.
2574 * ada-lang.c: Conditionalize routines and data structures related
2575 to breakpoints, exceptions, completion, and symbol caching on
2576 GNAT_GDB, since these are not yet used in the submitted public sources.
2577 (ada_main_name): Editorial: Move definition out of exception-related
2580 2004-06-15 Andrew Cagney <cagney@gnu.org>
2582 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2583 deprecated_pc_in_call_dummy.
2585 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2587 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2588 bfd_get_section_size_before_reloc or _raw_size.
2589 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2590 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2591 (dwarf2_read_section): Likewise.
2592 * elfread.c (elf_locate_sections): Likewise.
2593 * gcore.c (derive_heap_segment): Likewise.
2594 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2595 * remote-e7000.c (e7000_load): Likewise.
2596 * remote-m32r-sdi.c (m32r_load): Likewise.
2597 * remote-mips.c (mips_load_srec): Likewise.
2598 (pmon_load_fast): Likewise.
2599 * remote.c (compare_sections_command): Likewise.
2600 * symfile.c (add_section_size_callback): Likewise.
2601 (load_section_callback): Likewise.
2602 (pc_in_unmapped_range): Likewise.
2603 (pc_in_mapped_range): Likewise.
2604 (sections_overlap): Likewise.
2605 (list_overlays_command): Likewise.
2606 (simple_overlay_update_1): Likewise.
2607 (simple_overlay_update): Likewise.
2608 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2609 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2611 2004-06-14 Randolph Chung <tausq@debian.org>
2613 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2614 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2616 (hppa_hpux_inferior_created): New function.
2617 (hppa_hpux_init_abi): Register observer.
2618 * symfile.c (hp_cxx_exception_support_initialized)
2619 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2620 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2622 2004-06-14 Randolph Chung <tausq@debian.org>
2624 * MAINTAINERS (Write After Approval): Alphabetize my entry
2627 2004-06-14 Andrew Cagney <cagney@gnu.org>
2629 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2630 testsuite maintainer.
2632 2004-06-13 Andrew Cagney <cagney@gnu.org>
2634 * infcmd.c (print_return_value): Fix logic, allow
2635 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2637 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2638 defining any macros.
2639 * gdbarch.h: Re-generate.
2641 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2642 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2643 * gdbarch.h: Re-generate.
2645 * values.c (generic_use_struct_convention): Don't check gcc_p.
2647 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2648 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2649 * gdbarch.h, gdbarch.c: Regenerate.
2650 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2651 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2652 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2653 deprecated_max_register_raw_size and
2654 deprecated_max_register_virtual_size.
2655 * v850-tdep.c (v850_gdbarch_init): Ditto.
2656 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2657 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2658 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2659 * cris-tdep.c (cris_gdbarch_init): Ditto.
2661 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2662 * gdbarch.h, gdbarch.c: Re-generate.
2663 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2664 (m68hc11_use_struct_convention): Delete function.
2665 (m68hc11_extract_struct_value_address): Delete function.
2666 (m68hc11_return_value): New function.
2667 (m68hc11_gdbarch_init): Instead of store_return_value,
2668 extract_return_value, return_value_on_stack,
2669 deprecated_extract_struct_value_address and use_struct_convention,
2671 * values.c (using_struct_return): Do not call
2672 RETURN_VALUE_ON_STACK.
2673 * arch-utils.h (generic_return_value_on_stack_not): Delete
2675 * arch-utils.c (generic_return_value_on_stack_not): Delete
2678 2004-06-12 Andrew Cagney <cagney@gnu.org>
2680 * values.c (register_value_being_returned): Delete function.
2681 * infcmd.c (legacy_return_value): Delete function.
2682 * infcall.c (call_function_by_hand): Inline
2683 "register_value_being_returned", simplify.
2684 * values.c (using_struct_return): Update comment, refer to
2685 print_return_value instead of register_value_being_returned.
2686 * infcmd.c (print_return_value): Inline calls to
2687 register_value_being_returned and legacy_return_value. Simplify.
2689 2004-06-11 Randolph Chung <tausq@debian.org>
2691 * somread.c (som_symtab_read): Exclude gcc local symbols.
2693 2004-06-11 Randolph Chung <tausq@debian.org>
2695 * infrun.c (handle_inferior_event): Handle the case when a
2696 trampoline ends up in the runtime resolver, and if the trampoline
2697 has no name. Rearrange the code so that all the trampoline
2698 processing happens before other step-out-of-range handling.
2700 2004-06-11 Martin Hunt <hunt@redhat.com>
2702 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2705 2004-06-10 Andrew Cagney <cagney@gnu.org>
2707 * blockframe.c (legacy_inside_entry_func): Delete.
2708 (legacy_frame_chain_valid): Inline call to
2709 legacy_inside_entry_func, simplify.
2711 2004-06-10 Bob Rossi <bob@brasko.net>
2713 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2714 * dwarf2read.c (partial_die_info): Add dirname field.
2715 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2716 (read_partial_die): Save away DW_AT_comp_dir.
2717 * defs.h (symtab_to_filename): Removed.
2718 * source.c (find_and_open_source): Added.
2719 (open_source_file): Just calls find_and_open_source.
2720 (symtab_to_filename): Removed.
2721 (symtab_to_fullname, psymtab_to_fullname): Added.
2722 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2723 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2725 * symtab.h (partial_symtab): Add dirname field.
2726 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2727 (mi_cmd_file_list_exec_source_file): Call new function
2728 symtab_to_fullname to find fullname.
2729 (mi_cmd_file_list_exec_source_files): Added.
2730 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2731 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2733 2004-06-10 Andrew Cagney <cagney@gnu.org>
2735 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2736 to generic_use_struct_convention, the default value.
2738 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2741 * ns32k-tdep.c (ns32k_push_arguments): New function.
2742 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2743 * infcall.c (call_function_by_hand): Call error instead of
2744 legacy_push_arguments.
2745 * value.h (legacy_push_arguments): Delete declaration.
2746 * valops.c (legacy_push_arguments): Delete function.
2747 (value_push): Delete function.
2749 2004-06-10 Brian Ford <ford@vss.fsi.com>
2751 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2752 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2754 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2756 2004-06-10 Andrew Cagney <cagney@gnu.org>
2758 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2759 * gdbarch.h, gdbarch.c: Re-generate.
2760 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2762 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2763 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2764 deprecated_pc_in_call_dummy instead of
2765 DEPRECATED_PC_IN_CALL_DUMMY.
2766 (arm_skip_prologue): Ditto.
2767 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2768 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2769 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2770 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2772 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2773 (sh64_init_extra_frame_info, sh64_get_saved_register)
2774 (sh64_pop_frame): Ditto.
2775 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2776 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2777 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2778 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2779 (h8300_pop_frame): Ditto.
2780 * blockframe.c (legacy_inside_entry_func)
2781 (legacy_frame_chain_valid): Ditto.
2782 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2783 to deprecated_pc_in_call_dummy.
2785 2004-06-09 Andrew Cagney <cagney@gnu.org>
2787 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2788 provide a default value.
2789 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2790 * gdbarch.h, gdbarch.c: Re-generate.
2791 * arch-utils.c (generic_convert_register_p): Rename
2792 legacy_convert_register_p
2793 (legacy_register_to_value, legacy_value_to_register): Delete
2795 * arch-utils.h (generic_convert_register_p): Rename
2796 legacy_convert_register_p.
2797 (legacy_register_to_value, legacy_value_to_register): Delete
2800 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2801 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2802 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2803 * gdbarch.h, gdbarch.c: Re-generate.
2804 * infcmd.c (default_print_registers_info): Simplify.
2805 * findvar.c (value_of_register): Simplify.
2806 * mi/mi-main.c (get_register): Simplify.
2807 * arch-utils.c (legacy_convert_register_p): Always return 0.
2808 (legacy_register_to_value, legacy_value_to_register): Always call
2811 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2812 #ifdef CLEAR_INSN_CACHE code.
2813 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2814 Delete #ifdef CLEAR_DEFERRED_STORES code.
2816 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2818 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2820 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2822 * config/mips/mipsv4.mh: Delete file.
2824 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2826 (hpread_adjust_stack_address): Delete declaration.
2828 2004-06-08 Andrew Cagney <cagney@gnu.org>
2830 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2831 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2832 PTRACE_ATTACH / PTRACE_DETACH available call error.
2833 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2834 * infttrace.c (update_thread_state_after_attach, attach, detach):
2835 Remove #ifdef wrappers.
2836 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2837 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2838 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2839 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2840 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2841 * config/nm-linux.h (ATTACH_DETACH): Delete.
2842 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2843 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2844 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2845 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2846 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2848 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2850 * configure.in: Set $configdir to the right OS specific value.
2851 Use value when setting $tcldir and $tkdir.
2852 * configure: Regenerate.
2854 2004-06-06 Paul Brook <paul@codesourcery.com>
2856 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2859 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2861 * ada-lang.c (lookup_symbol_in_language): New function to allow
2862 re-use of another language's symbol lookup code. (Placed here
2863 temporarily while Ada support is being integrated into the public
2865 (restore_language): New auxiliary function for
2866 lookup_symbol_in_language.
2867 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
2868 temporarily while Ada support is being integrated into the public
2871 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
2873 * Makefile.in (check//%): New.
2875 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
2876 (mn10300_store_return_value): Rewrite.
2877 (mn10300_type_align): New.
2878 (mn10300_use_struct_convention): Rewrite.
2879 (mn10300_return_value): New, using all of the above.
2880 (mn10300_pop_frame_regular): Add saved_regs_size.
2881 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
2883 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
2884 regs if PC is on movm.
2886 2004-06-07 Jim Blandy <jimb@redhat.com>
2888 Add native Linux support for the PowerPC E500.
2889 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
2890 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
2891 all architectures except the E500.
2892 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
2894 (struct gdb_evrregset_t): New type.
2895 (have_ptrace_getsetevrregs): New variable.
2896 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
2897 fetch_spe_registers): New functions.
2898 (fetch_register): Call fetch_spe_register as appropriate.
2899 Assert that we're only passed raw register numbers.
2900 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
2901 Don't fetch gprs if they're pseudoregisters.
2902 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
2903 store_spe_registers): New functions.
2904 (store_register): Call store_spe_register as appropriate.
2905 Assert that we're only passed raw register numbers.
2906 (store_ppc_registers): Call store_spe_registers as appropriate.
2907 Don't store gprs if they're pseudoregisters.
2909 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
2911 * thread-db.c (thread_get_info_callback): Fill in the thread_info
2912 struct if one exists, even if we are dealing with a zombie thread.
2914 2004-06-07 Andrew Cagney <cagney@gnu.org>
2916 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
2917 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
2918 Rename PC_REQUIRES_RUN_BEFORE_USE.
2919 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
2922 2004-06-07 Randolph Chung <tausq@debian.org>
2924 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
2925 unwinding after sp has been saved to the stack but before the end
2926 of the prologue, and after the fp has been modified but before it has
2927 been saved to the stack.
2928 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
2929 Remove superfluous definitions.
2930 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
2932 2004-06-07 Guy Martin <gmsoft@gentoo.org>
2934 Committed by Randolph Chung.
2935 * hppa-linux-nat.c: Include the correct version of the header file
2936 depending on the kernel version.
2938 2004-06-06 Randolph Chung <tausq@debian.org>
2940 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
2941 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
2943 2004-06-06 Randolph Chung <tausq@debian.org>
2945 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2946 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
2947 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
2948 * hppa-tdep.c (hppa_symbol_address): New function definition.
2949 * hppa-tdep.h (hppa_symbol_address): New function declaration.
2951 2004-06-06 Randolph Chung <tausq@debian.org>
2953 * hppa-tdep.h (struct value): Forward declaration.
2954 (gdbarch_tdep): Define tdep find_global_pointer method.
2955 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
2956 associated with the function we are trying to call, and write it
2958 (hppa32_convert_from_funct_ptr_addr): New function.
2959 (hppa_find_global_pointer): New function.
2960 (hppa_gdbarch_init): Set default find_global_pointer method; set
2961 convert_from_func_ptr_addr method.
2962 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
2963 (hppa_linux_init_abi): Set find_global_pointer method.
2964 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2966 2004-06-06 Randolph Chung <tausq@debian.org>
2968 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
2969 to struct value *function.
2970 * gdbarch.c: Regenerate.
2971 * gdbarch.h: Likewise.
2972 * infcall.c (call_function_by_hand): Pass entire function value
2975 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
2976 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
2977 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
2978 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
2979 * arm-tdep.c (arm_push_dummy_call): Likewise.
2980 * avr-tdep.c (avr_push_dummy_call): Likewise.
2981 * cris-tdep.c (cris_push_dummy_call): Likewise.
2982 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
2983 * frv-tdep.c (frv_push_dummy_call): Likewise.
2984 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
2985 * hppa-tdep.c (hppa32_push_dummy_call)
2986 (hppa64_push_dummy_call): Likewise.
2987 * i386-tdep.c (i386_push_dummy_call): Likewise.
2988 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
2989 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
2990 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2991 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
2992 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
2993 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
2994 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
2995 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2996 (ppc64_sysv_abi_push_dummy_call): Likewise.
2997 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
2998 (ppc64_sysv_abi_push_dummy_call): Likewise.
2999 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3000 * s390-tdep.c (s390_push_dummy_call): Likewise.
3001 * sh-tdep.c (sh_push_dummy_call_fpu)
3002 (sh_push_dummy_call_nofpu): Likewise.
3003 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3004 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3005 * vax-tdep.c (vax_push_dummy_call): Likewise.
3007 2004-06-04 Jim Blandy <jimb@redhat.com>
3009 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3010 gdbarch argument to register_size.
3012 * rs6000-tdep.c (rs6000_store_return_value): Use
3013 regcache_cooked_write_part instead of
3014 deprecated_write_register_bytes.
3015 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3016 not gdbarch_deprecated_store_return_value.
3018 * ppc-linux-nat.c (store_register, fetch_register): Remove
3019 incorrect assertions. Simplify and generalize handling of
3020 transfers whose sizes are not multiples of, or less than, sizeof
3023 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3025 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3026 as a new thread event.
3027 * thread-db.c (thread_get_info_callback): If the thread is a
3028 zombie, return TD_THR_ZOMBIE.
3029 (thread_from_lwp): If thread_get_info_callback returns
3030 TD_THR_ZOMBIE, check if the thread is still on the thread list
3031 and return a -1 ptid if not found.
3032 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3033 change the status to TARGET_WAITKIND_SPURIOUS.
3035 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3037 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3038 double values in little endian mode.
3040 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3042 Committed by Andrew Cagney.
3043 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3044 after last enum constant to avoid error from IBM C
3047 2004-06-02 Jim Blandy <jimb@redhat.com>
3049 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3050 to 'message', and make it local to the lone block that uses it.
3052 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3054 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3056 * ada-exp.y: Update copyright notice.
3059 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3060 SPECIAL_VARIABLE and unify the treatment of these cases.
3062 (write_attribute_call0): Remove.
3063 (write_attribute_call1): Remove.
3064 (write_attribute_calln): Remove.
3065 (save_qualifier): Add missing semicolon.
3067 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3068 temporarily disabled to allow compilation with FSF head version.
3070 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3071 use individual operators (OP_*) for all attributes.
3072 (exp syntax): Use write_int.
3073 Handle STRING literals with OP_STRING.
3074 (variable syntax): Add limit parameter to calls to
3075 write_object_renaming.
3077 (temp_parse_space): New definition to hold entities that need
3078 only live until the next call to ada_parse.
3079 (string_to_operator): Rename fields of ada_opname_table entries.
3081 (write_var_from_sym): Record block.
3082 (write_var_from_name): Minor reformatting.
3083 Make sure saved name is properly encoded in the case of multiple
3084 matches, and set its language to Ada.
3086 Modify to indicate unresolved name as symbol in the UNRESOLVED
3087 namespace, allocated in temp_parse_space.
3088 (write_int): New function.
3090 (write_object_renaming): Add max_depth parameter to limit
3091 chains of object renamings.
3092 Handle case where root of renaming expression is itself a renaming.
3093 Use temp_parse_space for temporary name buffer.
3094 Handle renamings to dereferenced pointers (___XEXA suffices).
3096 (ada_parse, yyerror, string_to_operator,
3097 write_var_from_sym, write_var_from_name, write_attribute_call0,
3098 write_attribute_call1, write_attribute_calln,
3099 write_object_renaming): Protoize.
3101 (_initialize_ada_exp): New function.
3103 * ada-lang.c: Update copyright notice.
3104 General terminology change to conform to GNAT compiler usage:
3105 mangle => encode, demangle => decode
3106 Include gdb_obstack.h.
3115 (ADA_RETAIN_DOTS): Make sure this is defined.
3116 (TRUNCATION_TOWARDS_ZERO): Define.
3117 (struct string_vector): Define.
3118 (unresolved_names): Remove definition.
3119 (xnew_string_vector): New function.
3120 (string_vector_append): New function.
3121 (extract_string): Make static.
3122 (ada_unqualified_name): New function.
3123 (add_angle_brackets): New function.
3124 (function_name_from_pc): New function.
3125 (place_on_stack): Rename to ensure_lval.
3127 (ensure_lval): Renamed from place_on_stack.
3128 Make identity on lvals.
3130 (is_nonfunction): New interface.
3131 Only symbols in LOC_CONST class can be enumerals.
3132 (fill_in_ada_prototype): Remove; now independent of language.
3133 (add_defn_to_vec): Add obstack and symtab arguments.
3134 Use obstack to hold collected definitions.
3135 (num_defns_collected): New function.
3136 (defns_collected): New function.
3137 (ada_resolve_subexp): Rename to resolve_subexp.
3138 (resolve_subexp): Renamed from ada_resolve_subexp.
3139 (ada_op_name): Return non-const result.
3140 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3143 (to_fixed_array_type): Add declaration.
3144 (coerce_unspec_val_to_type): Remove offset parameter.
3145 (find_sal_from_funcs_and_line): New interface.
3146 (find_line_in_linetable): Ditto.
3148 (all_sals_for_line): Rename to ada_sals_for_line and make
3150 Add new parameter. When set, do not ask the user to choose the
3151 instance, but use the first one found instead.
3152 Use given line number in returned sals.
3154 Skip the prologue if funfirstline is set.
3155 Correct for memory leak when 0 lines found.
3157 (value_pos_atr): Use pos_atr.
3158 (pos_atr): New function.
3159 (standard_lookup): Add block parameter.
3161 (makeTimeStart): Remove declaration and uses.
3162 (makeTimeStop): Remove declaration and uses.
3164 (ada_completer_word_break_characters): Allow for VMS.
3165 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3166 (raise_sym_name): New constant.
3167 (raise_unhandled_sym_name): New constant.
3168 (raise_assert_sym_name): New constant.
3169 (process_raise_exception_name): New constant.
3170 (longest_exception_template): New constant.
3171 (warning_limit): New variable to limit warnings during expression
3173 (warnings_issued): New variable to keep track of warnings issued.
3174 (known_runtime_file_name_patterns): New constant.
3175 (known_auxiliary_function_name_patterns): New constant.
3176 (symbol_list_obstack): New variable.
3178 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3179 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3180 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3181 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3182 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3183 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3184 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3185 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3188 (ada_get_field_index): New function.
3189 (lim_warning): New function.
3190 (ada_translate_error_message): New function.
3191 (MAX_OF_SIZE): New function.
3192 (MIN_OF_SIZE): New function.
3193 (UMAX_OF_SIZE): New function.
3194 (UMIN_OF_SIZE): New function.
3195 (discrete_type_high_bound): New function.
3196 (discrete_type_low_bound): New function.
3197 (base_type): New function.
3198 (do_command): Remove.
3200 (ada_update_initial_language): Use language_ada, not language_unknown.
3201 (ada_encode): Renamed from ada_mangle.
3202 Obey ADA_RETAIN_DOTS.
3203 (ada_decode): Renamed from ada_demangle.
3204 Update coding conventions.
3205 (decoded_names_store): New hash table.
3206 (ada_decode_symbol): New function.
3207 (ada_la_decode): New function.
3209 (modify_general_field): Correct computations of offset and bit
3211 (desc_base_type): Handle ref types, too.
3212 (ada_is_direct_array_type): New function.
3214 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3215 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3216 (ada_is_bogus_array_descriptor,ada_type_of_array,
3217 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3218 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3219 ada_is_array_descriptor_type.
3221 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3222 (ada_is_packed_array_type): Handle pointers or
3223 references to packed arrays as well.
3224 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3225 (decode_packed_array_type): Search for the packed array type
3226 symbol in the currently selected block and associated
3228 Use lookup_symbol again.
3230 (decode_packed_array): Handle pointers and references.
3231 Update call to coerce_unspec_val_to_type.
3232 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3233 (ada_value_primitive_packed_val): Improve comment.
3235 (ada_index_type): Substitute int type for "undefined".
3236 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3237 ada_array_langth, ada_is_string_type): Use renamed
3238 ada_is_simple_array_type.
3239 (empty_array): New function.
3241 (ada_resolve): Rename to resolve.
3242 (resolve): Make static.
3243 Call renamed resolve_subexp.
3245 (ada_resolve_subexp): Rename to resolve_subexp.
3246 (resolve_subexp): Update comment.
3247 Decomment disabled code.
3248 Add LOC_COMPUTED* cases.
3249 Modify to use temporary struct symbols (marked as being in
3250 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3251 OP_UNRESOLVED_VALUE.
3252 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3255 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3256 Use new ada_lookup_symbol_list interface.
3257 Use new ada_resolve_function interface.
3258 Remove OP_TYPE case.
3260 (ada_args_match): Idiot proof against null actuals.
3261 Use intermediate variables to clarify.
3262 (ada_resolve_function): Update comment and interface.
3263 (mangled_ordered_before): Rename to encoded_ordered_before and
3265 (sort_choices): Update comment and interface.
3266 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3267 (user_select_syms): New interface.
3268 Use new sort_choices interface.
3269 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3270 (possible_user_operator_p): Idiot-proof against null values.
3271 (ada_simple_renamed_entity): Don't make cleanup; rely on
3272 caller to free result string.
3273 Remove const from return type.
3274 (make_array_descriptor): Rename uses of place_on_stack to
3276 Make sure that arrays are on stack.
3278 (HASH_SIZE): Define.
3279 (struct cache_entry): Define.
3280 (cache_space): Define.
3282 (clear_ada_sym_cache): New function.
3283 (find_entry): New function.
3284 (lookup_cached_symbol): New function.
3285 (defn_vector_size): Define.
3286 (cache_symbol): New function.
3287 (defn_symbols): Remove.
3289 (standard_lookup): Use lookup_symbol_in_language to get effect of
3293 (symbol_completion_match): New function.
3294 (symbol_completion_add): New function.
3295 (ada_make_symbol_completion_list): New function.
3297 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3298 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3299 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3300 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3302 (ada_lookup_simple_minsym): New function.
3303 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3305 (add_symbols_from_enclosing_procs): New interface.
3306 Conditionalize more helpfully.
3307 Don't bother if program isn't running.
3308 Use new interface to get_frame_block.
3309 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3311 (remove_extra_symbols): New interface.
3312 (xget_renaming_scope): New function.
3313 (is_package_name): New function.
3314 (renaming_is_visible): New function.
3315 (remove_out_of_scope_renamings): New function.
3317 (ada_lookup_symbol_list): New interface.
3318 Properly reinitialize the symbol list obstack.
3319 Don't call add_symbols_from_enclosing_procs if we start from a
3320 static or global block.
3321 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3322 add_symbols_from_enclosing_procs.
3323 Add symtab data to cached entries.
3324 Handle symbols prefixed with
3325 "standard__" specially; strip prefix and don't look in local symbols.
3326 Do not include out of scope renaming symbols in list of
3328 Add const to block parameter.
3329 Move check for non-local, non-global symbols earlier.
3330 Remove timing stuff.
3331 (ada_lookup_symbol): New interface.
3332 Find symtab as well.
3333 (ada_lookup_symbol_nonlocal): New function.
3335 (is_name_suffix): Enhance suffix detection to recognize
3336 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3337 (is_dot_digits_suffix): New function.
3338 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3340 (ada_add_block_symbols): New interface. Use obstack to return results
3341 in a vector of struct ada_symbol_infos. Add symtab argument.
3342 Use new interface to add_defn_to_vec.
3343 Remove calls to fill_in_ada_prototype.
3344 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3346 (ada_finish_decode_line_1): Add const qualification to local to fix
3348 Start looking in static block for functions to avoid attempts
3349 to search frame chain for up-level variables.
3350 Adapt to new ada_sals_for_line interface.
3351 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3352 Handle quoting of the function name inside the spec string.
3353 Skip prologue when funfirstline is set and update the
3354 function documentation to that effect.
3356 (debug_print_lines, debug_print_block, debug_print_blocks,
3357 debug_print_symtab): Remove.
3359 (ada_main_name): New function.
3360 (ada_exception_breakpoint_type): New function.
3361 (is_known_support_routine): New function.
3362 (ada_find_printable_frame): Renamed from find_printable_frame and made
3364 Remove level parameter.
3365 Use new interface to select_frame.
3367 (begin_command): Remove.
3368 (ada_adjust_exception_stop): New function.
3369 (ada_print_exception_stop): New function.
3370 (exception_name_from_cond): New function.
3371 (ada_report_exception_break): Replace disabled code with
3372 conditionalization on GNAT_GDB.
3373 Get the exception name from the condition string.
3374 Remove and move functionality into new functions
3375 ada_print_exception_breakpoint_task and
3376 ada_print_exception_breakpoint_nontask.
3377 (error_breakpoint_runtime_sym_not_found): New function.
3378 (is_runtime_sym_defined): New function.
3379 (ada_breakpoint_rewrite): Uncomment suppressed code.
3380 Use symbolic error-message and runtime-symbol names.
3381 Surround runtime symbol names in quotes.
3382 Allow non-specific breakpoints on exceptions and assertions before
3385 (ada_is_tagged_type): Add parameter.
3386 (ada_is_tag_type): New function.
3387 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3388 (ada_variant_discrim_type): Ditto.
3389 (value_tag_from_contents_and_address): New function.
3390 (type_from_tag): New function.
3391 (struct tag_args): New structure used to communicate with
3393 (ada_tag_name_1): New function.
3394 (ada_tag_name): New function.
3396 (ada_scan_number): Update comment.
3397 (find_struct_field): New function.
3398 (ada_search_struct_field): Make static.
3399 (ada_value_struct_elt): New version that returns references when
3400 given pointers or references to structs.
3401 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3402 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3404 (ada_value_ind): Use new ada_to_fixed_value interface.
3405 (ada_coerce_ref): Ditto.
3406 (field_offset): Remove.
3408 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3409 (ada_find_renaming_symbol): New function.
3410 (ada_prefer_type): Prefer named types over unnamed ones.
3411 (variant_field_index): New function.
3412 (contains_variant_part): Removed: subsumed by variant_field_index.
3413 (ada_template_to_fixed_record_type): New function, mostly from
3414 template_to_fixed_record_type.
3415 (template_to_fixed_record_type):
3416 Do not scan the type fields beyond the last one; prevents a
3418 Handle case where variant field is listed BEFORE discriminant it
3420 Fix calculation of record length when bit length is
3421 not evenly divisible by char length.
3422 Move code to ada_template_to_fixed_record_type and call it.
3424 (template_to_static_fixed_type): Revise comment.
3425 Modify to work on ordinary record types as well as templates,
3426 so as to handle fields that use ___XVE or ___XVU encodings.
3427 (to_record_with_fixed_variant_part): Fill out comment.
3428 Initialize C++ stuff in right type.
3429 Allow case where DVAL is null.
3430 Handle case where variant field is not last.
3431 Fix typo concerning record length.
3432 (to_fixed_record_type): Decomment disabled code.
3433 (to_fixed_record_type): Use variant_field_index instead of
3434 contains_variant_part.
3435 (to_fixed_variant_branch_type): Ditto.
3436 (to_fixed_array_type): Decomment disabled code.
3437 (ada_to_fixed_type): Convert tagged types to the specific type.
3438 Deactivate the size-check for array types in order to avoid
3439 some false size alarms.
3440 (to_static_fixed_type): Decomment disabled code.
3441 Modify to call template_to_static_fixed_type
3442 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3443 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3444 Remove valaddr argument, as it is never really used.
3445 (ada_to_fixed_value): Change interface to act on single struct value*
3447 (adjust_pc_past_prologue): New function.
3448 (ada_attribute_name): Modify to take enum exp_opcode argument.
3450 (ada_enum_name): Recognize new homonym-distinguishing convention.
3451 Adjust local variable's type to remove compiler warning.
3452 Fix a small problem in the part that unqualifies the enumeration name.
3453 (ada_value_binop): New function.
3454 (ada_value_equal): New function.
3456 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3457 Don't give error message when not doing normal evaluation
3458 and a tagged type doesn't seem to contain a structure member.
3459 Give error message for packed arrays.
3460 For indexing arrays, handle pointers to packed arrays correctly.
3461 Handle case of 'first and 'last attributes of bare integral type
3462 without encoded subtype info.
3463 Remove some unnecessary casts.
3464 Fix uninitialized value of type in computing 'first, 'last, or 'length
3466 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3467 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3469 Attributes are now exp_opcode values.
3470 Correct treatment of 'modulus.
3471 Better error message for taking 'length of wrong kind of type;
3473 Change EVAL_NORMAL to noside for consistency.
3474 Use ada_value_binop for DIV, MOD, REM.
3475 Make special case out of array of length 0, since an argument
3476 of 0 upsets some platforms' malloc.
3477 Use OP_STRING instead of OP_ARRAY.
3478 For slice, add check that we have an array type before extracting
3479 a slice out of it. Avoids a SEGV.
3480 When evaluating an array slice, if the array type is a reference to
3481 an aligner type, then replace the aligner type by the actual type.
3482 Decomment disabled code.
3483 Remove some dead code.
3484 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3485 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3486 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3487 and UNOP_MBR to UNOP_IN_RANGE.
3488 If an array type has a parallel ___XVE type, then use it.
3489 Turn arrays into pointers for lvalue arrays.
3490 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3491 bounds error and handle 0-length slices.
3493 When selecting fields, apply ada_to_fixed_value (because the fields
3494 might have ___XVU or ___XVE encodings even if not dynamic.)
3495 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3496 (ada_is_system_address_type): New function.
3498 (get_var_value): Use new interface to ada_lookup_symbol_list.
3499 (get_int_var_value): New interface.
3500 (to_fixed_range_type): Allow unknown bound, with warning.
3501 (ada_is_modular_type): Decomment disabled code.
3502 (ADA_OPERATORS): New definition.
3503 (ada_operator_length): New function.
3504 (ada_expr_op_name): New function.
3505 (ada_forward_operator_length): New function.
3506 (ada_dump_subexp_body): New function.
3507 (ada_print_subexp): New function.
3508 (ada_exp_descriptor): New constant.
3509 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3510 (ada_language_defn): Add ada_exp_descriptor entry.
3511 Change ada_parse => parse.
3512 Add post-parser entry.
3513 Use ada-specific non-local symbol lookup.
3514 Don't use C-style arrays.
3515 String lower-bound is 1.
3516 Decomment disabled code.
3517 (parse): New function.
3518 New fields ada_translate_error_message, ada_lookup_symbol,
3519 ada_lookup_minimal_symbol.
3521 * ada-lang.h: Update copyright dates.
3522 Replace the mangle/demangle terminology throughout by the
3523 more appropriate encode/decode one.
3524 Include breakpoint.h.
3525 Forward declare struct partial_symbol, struct block.
3526 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3527 (EXTRACT_ADDRESS): Remove.
3528 (EXTRACT_INT): Remove.
3529 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3530 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3531 (MAX_RENAMING_CHAIN_LENGTH): Define.
3532 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3534 (enum task_states): Remove.
3535 ada_task_states: Remove.
3536 (fat_string): Remove.
3537 (struct entry_call): Remove.
3538 (struct task_fields): Remove.
3539 (struct task_entry): Remove.
3541 (struct ada_symbol_info): Define.
3542 (enum ada_attribute): Remove.
3543 (enum ada_operator): Define.
3545 (ada_get_field_index): Declare.
3546 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3547 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3548 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3549 (ada_lookup_symbol_list): New interface.
3550 (ada_decode_symbol): Declare.
3551 (ada_decode): Declare.
3552 (ada_lookup_symbol): New interface.
3553 (ada_update_initial_language): Declare.
3554 (ada_lookup_simple_minsym): Declare.
3555 (user_select_syms): New interface.
3556 (ada_sals_for_line): Declare.
3557 (ada_is_tagged_type): New interface.
3558 (ada_tag_name): Declare.
3559 (ada_lookup_struct_elt_type): Remove declaration.
3560 (ada_search_struct_field): Remove declaration.
3561 (ada_attribute_name): New interface.
3562 (ada_is_system_address_type): Declare.
3563 (ada_to_fixed_value): Remove declaration.
3564 (ada_template_to_fixed_record_type_1): Declare.
3565 (get_int_var_value): New interface.
3566 (ada_find_any_symbol): Declare.
3567 (ada_find_renaming_symbol): Declare.
3568 (ada_mangle): Rename to ada_encode.
3569 (ada_simple_renamed_entity): Remove const.
3570 (ada_main_name): Declare.
3571 (get_current_task): Rename to ada_get_current_task.
3572 (get_entry_number): Remove declaration.
3573 (ada_report_exception_break): Remove declaration.
3574 (ada_print_exception_breakpoint_nontask): Declare.
3575 (ada_print_exception_breakpoint_task): Declare.
3576 (ada_find_printable_frame): Declare.
3578 * ada-lex.l: Update copyright notices.
3579 Use xmalloc and xfree instead of malloc and free.
3580 Use new interface to name_lookup.
3581 Use new interface to
3582 ada_mangle=>ada_encode.
3583 Redo handling of '$...' variable to parallel current treatment
3585 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3586 digit_to_int, strtoulst, processInt, processReal, processId,
3587 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3590 (processInt): Use cast to remove harmless warning.
3591 (processReal): Modify to get rid of compiler warning on scan formats.
3593 (processId): Replace xmalloc with obstack_alloc for name and remove
3594 call to ada_name_string_cleanup.
3595 Remove obsolete disabled code.
3596 (name_lookup): Ditto.
3598 Use obsavestring on temp_parse_space instead of savestring
3599 on name, and remove call to ada_name_string_cleanup.
3600 Free string returned from ada_simple_renamed_entity.
3601 Use new interface to ada_lookup_symbol_list.
3602 Decomment disabled code.
3603 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3605 When a type name lookup succeeds as a result of
3606 lookup_primitive_typename, check for regular type entry that has not
3608 Limit length of chain of renamed symbols we are willing to follow.
3609 Do not break names beginning with "standard__" into segments.
3610 (block_lookup): Use new interface to ada_lookup_symbol_list.
3612 * ada-typeprint.c: Update copyright notice.
3613 (demangled_type_name): Rename to decoded_type_name.
3614 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3615 (print_range_bound): Correct handling of negative
3616 bounds that make the index type looked unsigned under STABS.
3617 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3618 (print_range_type_named): Use the builtin int type if no type
3619 corresponding to the given type name could be found.
3620 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3621 Add some bullet-proofing.
3622 (print_variant_clauses): Allow for variant branches with ___XVU
3623 encodings that are not dynamic fields.
3624 Use new interface to ada_is_tagged_type.
3625 (print_record_type): Allow for fields with ___XVE encodings that
3626 are not dynamic fields.
3627 Use new interface to ada_is_tagged_type.
3628 (ada_print_type): ada_is_array_descriptor =>
3629 ada_is_array_descriptor_type.
3631 * ada-valprint.c: Update copyright notice.
3632 Include gdb_string.h
3634 (ui_memcpy): New function.
3635 (ada_print_floating): New function.
3636 (ada_print_str): Order arguments correctly.
3637 Correct handling of empty arrays and arrays of 0-length items.
3638 ada_is_array_descriptor => ada_is_array_descriptor_type
3639 Print values of type System.Address in hexadecimal format.
3640 Use ada_print_floating to print floating-point numbers in Ada format.
3641 Print class tag values with type names.
3642 No longer print the address of reference values. Avoids
3643 a potential confusion.
3644 (ada_value_print): Stop printing the object type for reference
3645 values, but preserve that behavior for access types. Avoids
3646 a potential confusion.
3647 Simplify one conditional expression, as the first part is now
3649 ada_is_array_descriptor => ada_is_array_descriptor_type
3650 Add check for arrays for null records, and print them by hand.
3652 2004-06-01 Jim Blandy <jimb@redhat.com>
3654 * ppc-tdep.h: Delete unused 'regoff' member.
3655 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3657 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3660 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3661 (hpread_read_struct_type): Likewise.
3663 2004-06-01 Andrew Cagney <cagney@gnu.org>
3665 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3666 instead of xasprintf.
3667 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3668 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3669 (mi_cmd_data_list_register_names)
3670 (mi_cmd_data_list_changed_registers)
3671 (mi_cmd_data_list_register_values)
3672 (get_register, mi_cmd_data_write_register_values)
3673 (mi_cmd_data_write_register_values)
3674 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3675 (mi_cmd_target_download, mi_cmd_target_select)
3676 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3677 (mi_execute_cli_command, mi_execute_async_cli_command)
3678 (mi_execute_async_cli_command): Ditto.
3679 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3680 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3682 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3683 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3684 error_last_message instead of mi_error_last_message.
3685 * mi/mi-main.c (mi_error_last_message): Delete function.
3687 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3688 "invalid number of columns" error. Delete redundant "out of
3691 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3693 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3694 (gregset_t, fpregset_t): Remove typedefs.
3695 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3696 (REG_OFFSET): Rename argument.
3697 (i386bsd_r_reg_offset): Rename from reg_offset.
3698 (REG_ADDR): Remove macro.
3699 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3701 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3702 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3703 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3704 instead of supply_gregset.
3705 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3706 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3707 instead of fill_gregset.
3708 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3710 * i386bsd-nat.c: Don't include "gregset.h".
3711 (supply_gregset, fill_gregset): Make static.
3712 (supply_fpregset, fill_fpregset): Remove.
3713 * Makefile.in (i386bsd-nat.o): Update dependencies.
3715 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3717 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3718 "gdb_assert.h". Con't include "gregset.h".
3719 (fbsd_make_corefile_notes): Use regset-based core file support
3720 instead off fill_gregset and fill_fpregset.
3721 * Makefile.in (fbsd-proc.o): Update dependencies.
3723 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3725 (m88k_frame_prev_register): Simplify code a bit.
3727 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3728 (amd64_collect_fpregset): New function.
3729 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3731 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3733 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3734 (i386_collect_gregset): New function.
3735 (i386_supply_fpregset): Adjust comment.
3736 (i386_collect_fpregset): New function.
3737 (i386_regset_from_core_section): Use i386_collect_gregset and
3738 i386_collect_fpregset.
3740 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3741 handle VALUEP being null.
3743 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3745 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3747 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3749 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3750 assembler in OpenBSD 3.5-current.
3751 (amd64obsd_sigcontext_addr): Likewise.
3753 2004-05-28 Jim Blandy <jimb@redhat.com>
3755 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3756 register set, so our regcache isn't declared "legacy" and our E500
3757 pseudoregister read and write functions aren't ignored.
3758 (rs6000_register_byte, rs6000_register_raw_size,
3759 rs6000_register_virtual_type, rs6000_register_convertible,
3760 rs6000_register_convert_to_virtual,
3761 rs6000_register_convert_to_raw): Deleted.
3762 (rs6000_register_type, rs6000_convert_register_p,
3763 rs6000_register_to_value, rs6000_value_to_register): New
3765 (rs6000_gdbarch_init): Don't register
3766 gdbarch_deprecated_register_size,
3767 gdbarch_deprecated_register_bytes,
3768 gdbarch_deprecated_register_byte,
3769 gdbarch_deprecated_register_raw_size,
3770 gdbarch_deprecated_register_virtual_type,
3771 gdbarch_deprecated_register_convertible,
3772 gdbarch_deprecated_register_convert_to_virtual, or
3773 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3774 register gdbarch_register_type, gdbarch_convert_register_p,
3775 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3777 2004-05-26 Jim Blandy <jimb@redhat.com>
3779 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3780 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3781 functions, updated to match the register numberings used in GCC.
3782 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3783 rs6000_dwarf2_reg_to_regnum as register number conversions
3784 functions for STABS and Dwarf2.
3786 2004-05-26 Randolph Chung <tausq@debian.org>
3788 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3791 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3793 * NEWS: Document new "start" command.
3795 2004-05-25 Randolph Chung <tausq@debian.org>
3797 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3800 2004-05-25 Randolph Chung <tausq@debian.org>
3802 * hppa-hpux-tdep.c (offsetof): Define.
3803 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3804 (hppa32_hpux_frame_base_before_sigtramp)
3805 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3806 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3807 (hppa64_hpux_frame_base_before_sigtramp)
3808 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3810 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3811 (hppa_hpux_sigtramp_frame_unwind_cache)
3812 (hppa_hpux_sigtramp_frame_this_id)
3813 (hppa_hpux_sigtramp_frame_prev_register)
3814 (hppa_hpux_sigtramp_frame_unwind)
3815 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3816 (hppa_hpux_init_abi): Register sigtramp unwinder.
3817 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3819 2004-05-25 Randolph Chung <tausq@debian.org>
3821 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3822 and multiple stack unwinds.
3823 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3825 2004-05-25 Andrew Cagney <cagney@gnu.org>
3827 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3828 * symfile-mem.h: Delete file.
3829 * symfile-mem.c: Do not include "symfile-mem.h".
3830 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3831 "struct bfd_section". When an error do not bother returning NULL.
3832 (add_symbol_file_from_memory_command): Use "struct bfd" and
3833 "struct bfd_section".
3834 * Makefile.in (symfile_mem_h): Delete.
3835 (symfile-mem.o): Update dependencies.
3837 2004-05-25 Nick Roberts <nickrob@gnu.org>
3839 * gdb-mi.el: New file.
3841 2004-05-25 Andrew Cagney <cagney@gnu.org>
3843 * inftarg.c: Include "observer.h".
3844 (child_attach, child_create_inferior): Notify inferior_created.
3845 * corelow.c: Include "observer.h".
3846 (core_open): Notify inferior_created.
3847 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3849 2004-05-25 Andrew Cagney <cagney@gnu.org>
3851 * target.h (struct target_ops): Add from_tty to
3853 (target_create_inferior, find_default_create_inferior): Update.
3854 * infcmd.c (run_command): Update.
3855 * wince.c (child_create_inferior): Update.
3856 * win32-nat.c (child_create_inferior): Update.
3857 * uw-thread.c (uw_thread_create_inferior): Update.
3858 * thread-db.c (thread_db_create_inferior): Update.
3859 * target.c (debug_to_create_inferior)
3860 (find_default_create_inferior): Update.
3861 (maybe_kill_then_create_inferior): Update.
3862 * sol-thread.c (sol_thread_create_inferior): Update.
3863 * remote.c (extended_remote_async_create_inferior)
3864 (extended_remote_create_inferior): Update.
3865 * remote-vx.c (vx_create_inferior): Update.
3866 * remote-st.c (st2000_create_inferior): Update.
3867 * remote-sim.c (gdbsim_create_inferior): Update.
3868 * remote-sds.c (sds_create_inferior): Update.
3869 * remote-rdp.c (remote_rdp_create_inferior): Update.
3870 * remote-rdi.c (arm_rdi_create_inferior): Update.
3871 * remote-m32r-sdi.c (m32r_create_inferior): Update.
3872 * remote-e7000.c (e7000_create_inferior): Update.
3873 * procfs.c (procfs_create_inferior): Update.
3874 * ocd.c (ocd_create_inferior): Update.
3875 * ocd.h (ocd_create_inferior): Update.
3876 * nto-procfs.c (procfs_create_inferior): Update.
3877 * monitor.c (monitor_create_inferior): Update.
3878 * lin-lwp.c (lin_lwp_create_inferior): Update.
3879 * inftarg.c (child_create_inferior): Update.
3880 * hpux-thread.c (hpux_thread_create_inferior): Update.
3881 * gnu-nat.c (gnu_create_inferior): Update.
3883 2004-05-25 Andrew Cagney <cagney@gnu.com>
3885 * MAINTAINERS: Update e-mail address.
3887 2004-05-24 Randolph Chung <tausq@debian.org>
3889 * thread.c (info_threads_command, thread_apply_all_command)
3890 (thread_apply_command, thread_command, do_captured_thread_select):
3891 Remove HPUXHPPA-specific code.
3893 2004-05-24 Randolph Chung <tausq@debian.org>
3895 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
3897 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
3900 2004-05-24 Joel Brobecker <brobecker@gnat.com>
3902 * infcmd.c (kill_if_already_running): New function, extracted
3904 (run_command): Replace extracted code by call to
3905 kill_if_already_running().
3906 (start_command): New function.
3907 (_initialize_infcmd): Add "start" command.
3909 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3911 Add OpenBSD/m88k support.
3912 * NEWS (New native configurations): Mention OpenBSD/m88k.
3913 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
3914 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
3915 * Makefile.in (m88k_tdep_h): New variable.
3916 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
3917 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
3918 * configure.host: Add m88*-*-openbsd*.
3919 * configure.tgt: Add m88*-*-openbsd*.
3921 2004-05-24 Jim Blandy <jimb@redhat.com>
3923 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
3926 2004-05-24 Kevin Buettner <kevinb@redhat.com>
3928 * symtab.c (fixup_section): Search section table when lookup by
3931 2004-05-24 Randolph Chung <tausq@debian.org>
3933 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
3936 2004-05-24 Mark Kettenis <kettenis@gnu.org>
3938 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
3939 register number in regcache_raw_collect call.
3940 (m68kbsd_collect_fpregset): Likewise.
3941 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
3943 * regset.h (struct regset): Add back `regset' member.
3945 2004-05-23 Mark Kettenis <kettenis@gnu.org>
3947 * configure.in: Check for td_pcb in `struct thread'.
3948 * configure, config.in: Regenerated.
3950 * dpx2-nat.c: Remove file.
3951 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
3952 (dpx2-nat.o): Remove dependencies.
3954 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
3955 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
3956 (amd64obsd_supply_pcb): New function.
3957 (_initialize_amd64obsd_nat): Enable libkvm interface.
3958 * Makefile.in (amd64obsd-nat.o): Update dependencies.
3959 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
3960 (LOADLIBES): New variable.
3962 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
3963 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
3964 (sparc32nbsd_supply_pcb): New function.
3965 (_initialize_sparcnbsd_nat): Enable libkvm interface.
3966 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
3967 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
3968 (LOADLIBES): New variable.
3970 2004-05-22 Mark Kettenis <kettenis@gnu.org>
3972 * bsd-kvm.c, bsd-kvm.h: New files.
3973 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
3975 (i386fbsd_supply_pcb): New function.
3976 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
3977 (i386fbsd-nat.o): Update dependencies.
3978 (bsd_kvm_h): New variable.
3979 (bsd-kvm.o): New dependency.
3980 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
3981 (LOADLIBES): New variable.
3983 * regset.c: Tweak comment.
3984 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
3986 * regset.h: Update copyright year.
3987 (struct regset): Remove `descr' member, add `gdbarch' member.
3988 (regset_alloc): Adjust prototype and comment.
3989 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
3990 (i386_supply_fpregset): Likewise.
3991 (i386_regset_from_core_section): Update call to regset_alloc.
3992 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
3994 (i386obsd_aout_regset_from_core_section): Update call to
3996 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
3998 (i386nbsd_aout_regset_from_core_section): Update call to
4000 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4002 (amd64_regset_from_core_section): Update call to regset_alloc.
4003 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4005 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4006 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4007 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4008 (sparc32nbsd_init_abi): Update call to regset_alloc.
4009 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4010 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4011 (sparc64obsd_init_abi): Update call to regset_alloc.
4012 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4013 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4014 (sparc64nbsd_init_abi): Update call to regset_alloc.
4015 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4016 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4017 (sparc64fbsd_init_abi): Update call to regset_alloc.
4019 2004-05-22 Jim Blandy <jimb@redhat.com>
4021 * ppc-tdep.h (spe_register_p): New declaration.
4022 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4024 * rs6000-tdep.c (spe_register_p): New function.
4025 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4027 (rs6000_gdbarch_init): Initialize the new members of the tdep
4030 2004-05-21 Jim Blandy <jimb@redhat.com>
4032 * ppc-linux-nat.c (fetch_register): Move code back to be next
4033 to the comment that describes it. (Moved code, instead of
4034 comment, for symmetry with store_register.)
4036 Allocate regset structures in the gdbarch's obstack, not using
4038 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4039 Add 'arch' argument. Allocate the regset on arch's obstack, not
4041 * regset.h (regset_alloc): Update declaration.
4042 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4044 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4045 * i386-tdep.c (i386_regset_from_core_section): Same.
4046 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4047 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4048 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4049 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4050 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4051 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4053 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4055 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4057 2004-05-21 Jim Blandy <jimb@redhat.com>
4059 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4060 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4062 2004-05-20 Jim Blandy <jimb@redhat.com>
4064 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4066 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4068 * regset.h: Make prototype const-correct.
4069 * regset.c (regset_xmalloc): Make const-correct.
4071 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4073 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4074 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4075 (symbol_search_name): Declare.
4077 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4078 (iter_name_next_hashed): Ditto.
4079 (iter_name_next_linear): Ditto.
4080 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4082 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4083 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4084 (symbol_search_name): New function.
4086 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4088 * minsyms.c (build_minimal_symbol_hash_tables): Change
4089 test for adding to demangled hash table to check for difference
4090 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4092 2004-05-19 Jim Blandy <jimb@redhat.com>
4094 Use a constructor function to create regset structures.
4095 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4096 (struct regset): Use supply_regset_ftype. Add new
4097 'collect_regset' member.
4098 (regset_xmalloc): New declaration.
4099 * regset.c: New file.
4100 * am64-tdep.c (amd64_regset_from_core_section): Use
4101 regset_xmalloc to construct regset structures.
4102 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4103 * i386-tdep.c (i386_regset_from_core_section): Same.
4104 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4105 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4106 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4107 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4108 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4109 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4110 * Makefile.in (COMMON_OBS): Add regset.o.
4111 (regset.o): New rule.
4113 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4115 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4116 and pthread_cond_wait.c.
4118 2004-05-18 Jim Blandy <jimb@redhat.com>
4120 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4121 before the mach-specific switch, and then let the individual cases
4122 override the defaults, rather than leaving them uninitialized
4123 until the switch and then setting them in each case.
4125 2004-05-18 Randolph Chung <tausq@debian.org>
4127 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4128 millicode functions.
4130 2004-05-18 Randolph Chung <tausq@debian.org>
4132 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4133 references to dld_flags_buffer consistent.
4135 2004-05-18 Randolph Chung <tausq@debian.org>
4137 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4138 it for unwinding the stack.
4140 2004-05-18 Randolph Chung <tausq@debian.org>
4142 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4143 Undefine these so we can overide them using gdbarch.
4145 2004-05-18 Randolph Chung <tausq@debian.org>
4147 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4148 handling for 64-bit HPUX (elf).
4150 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4152 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4154 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4155 * ia64-tdep.c (examine_prologue): Likewise.
4156 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4157 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4159 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4161 * vax-tdep.c (vax_return_value): Implement
4162 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4164 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4166 * vax-tdep.c (vax_return_value): Fix typo.
4168 2004-05-17 Andrew Cagney <cagney@redhat.com>
4170 * MAINTAINERS: Mark Salter was also responsible for
4173 * NEWS: Mention signal fixes.
4175 2004-05-17 Randolph Chung <tausq@debian.org>
4177 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4178 check to see if we are unwinding an export stub. Export stubs clobber
4179 the %rp in the call path and stores the original rp in a stack slot.
4181 2004-05-17 Jim Blandy <jimb@redhat.com>
4183 * MAINTAINERS: Update address for J.T. Conklin.
4185 2004-05-17 Randolph Chung <tausq@debian.org>
4187 * hppa-tdep.c: Remove superfluous #include's.
4188 * Makefile.in (hppa-tdep.o): Update dependencies.
4190 2004-05-17 Randolph Chung <tausq@debian.org>
4192 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4193 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4194 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4195 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4196 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4197 Remove static function declarations.
4199 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4201 * alphabsd-nat.c: Update copyright year.
4202 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4204 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4207 * m68k-tdep.c (m68k_svr4_return_value): Implement
4208 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4210 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4212 * sol-thread.c Update copyright year. Fix various coding
4213 standards violations. Tweak a few comments.
4214 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4217 2004-05-15 Randolph Chung <tausq@debian.org>
4219 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4220 as pointer instead of array reference since HPUX compiler does
4221 not accept unsized array arguments.
4222 * somsolib.c (dld_flags_buffer): Use constant array size.
4224 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4226 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4227 offset with decimal offset.
4228 (amd64obsd_sigcontext_addr): Return correct address for entire
4231 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4232 instead of get_frame_base.
4234 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4235 (fill_gregset): Use regcache_raw_collect.
4237 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4240 * config/sparc/tm-nbsd64.h: Remove file.
4241 * config/tm-sunos.h: Remove file.
4243 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4245 * rs6000-tdep.c (store_param_on_stack_p): New function,
4246 an improved version of some code extracted from skip_prologue().
4247 (skip_prologue): Use store_param_on_stack_p() to detect
4248 instructions saving a parameter on the stack. Detect when r0
4249 is used to save a parameter.
4250 Do not mark "li rx, SIMM" instructions as part of the prologue,
4251 unless the following instruction is also part of the prologue.
4253 2004-05-14 Andrew Cagney <cagney@redhat.com>
4255 * infrun.c (handle_inferior_event): Simplify
4256 STEP_OVER_UNDEBUGGABLE.
4258 * infrun.c (handle_step_into_function): Delete function.
4259 (handle_inferior_event): Inline calls to
4260 handle_step_into_function.
4262 2004-05-14 Jerome Guitton <guitton@gnat.com>
4264 * rs6000-nat.c: Fix a comment.
4266 2004-05-12 David Anderson <davea@sgi.com>
4268 Committed by Jim Blandy <jimb@redhat.com>:
4269 * regcache.c (struct regcache_descr): fix comment spelling.
4271 2004-05-13 J. Brobecker <brobecker@gnat.com>
4273 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4274 Fixes a link link failure.
4276 2004-05-13 J. Brobecker <brobecker@gnat.com>
4278 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4279 error that was causing the build to fail.
4281 2004-05-13 J. Brobecker <brobecker@gnat.com>
4283 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4284 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4286 2004-05-13 Andrew Cagney <cagney@redhat.com>
4288 * infrun.c (handle_inferior_event): Check for
4289 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4290 calls. Update comments.
4292 2004-05-13 Jim Blandy <jimb@redhat.com>
4294 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4295 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4296 (store_regs_user_thread, store_regs_kernel_thread): Use
4297 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4298 * ppc-linux-nat.c (fill_gregset): Same.
4299 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4300 (ppc_linux_sigtramp_cache): Same.
4301 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4302 (ppcnbsd_sigtramp_cache_init): Same.
4303 * rs6000-nat.c (fetch_core_registers): Same.
4304 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4305 (rs6000_frame_cache): Same.
4307 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4308 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4309 of assuming that the gprs are numbered starting with zero.
4310 * ppc-linux-nat.c (fill_gregset): Same.
4311 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4312 * ppcnbsd-nat.c (getregs_supplies): Same.
4313 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4314 * rs6000-nat.c (fetch_core_registers): Same.
4315 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4317 2004-05-07 Michael Snyder <msnyder@redhat.com>
4319 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4320 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4322 2004-05-13 Andrew Cagney <cagney@redhat.com>
4324 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4326 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4328 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4329 base_address for shared libraries.
4331 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4333 * MAINTAINERS (write after approval): Add myself.
4335 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4337 * breakpoint.c (bpstat_stop_status): Add new argument
4338 STOPPED_BY_WATCHPOINT. Use it instead of testing
4339 target_stopped_data_address agaist 0 to check whether
4340 or not we stopped due to a hardware watchpoint.
4341 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4342 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4345 2004-05-12 Jim Blandy <jimb@redhat.com>
4347 * configure.in: When checking whether we should use the -bbigtoc
4348 option, don't forget to restore the original value of LDFLAGS.
4349 * configure: Regenerated.
4351 2004-05-12 Andrew Cagney <cagney@redhat.com>
4353 * thread.c (load_infrun_state): Delete step_sp.
4354 * infrun.c (context_switch): Ditto.
4355 * inferior.h (step_sp): Ditto.
4356 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4357 * gdbthread.h (struct thread_info, save_infrun_state)
4358 (restore_infrun_state): Ditto.
4360 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4362 * MAINTAINERS (write after approval): Add myself.
4364 2004-05-12 Andrew Cagney <cagney@redhat.com>
4366 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4367 eliminate reference to step_sp.
4368 (struct execution_control_state, init_execution_control_state)
4369 (handle_inferior_event, keep_going): Delete update_step_sp and
4371 * infcmd.c (step_sp): Note that variable is unused.
4373 2004-05-11 Andrew Cagney <cagney@redhat.com>
4375 * infrun.c (step_over_function): Delete function.
4376 (handle_step_into_function): Use insert_step_resume_breakpoint.
4377 (insert_step_resume_breakpoint): Fix assertion.
4379 2004-05-11 Nick Roberts <nickrob@gnu.org>
4381 * utils.c (defaulted_query): Just use the normal query input type
4382 when printing the annotations.
4384 2004-05-11 Andrew Cagney <cagney@redhat.com>
4386 * infrun.c (handle_inferior_event): Simplify code handling
4387 step-into or return-from a signal trampoline.
4389 2004-05-11 Andrew Cagney <cagney@redhat.com>
4391 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4392 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4394 2004-05-10 Jim Blandy <jimb@redhat.com>
4396 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4397 with a call to internal_error.
4399 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4400 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4401 processor variant lacks those registers.
4402 (ppc_floating_point_unit_p): Change description to make it clear
4403 that this returns info about the ISA, not the ABI.
4404 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4405 return true or false by checking tdep->ppc_fp0_regnum and
4406 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4407 arch/mach switching done in rs6000_gdbarch_init; it's better to
4408 keep that logic there, and just check the results here.
4409 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4410 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4411 floating-point registers.
4412 (ppc_supply_fpregset, ppc_collect_fpregset)
4413 (rs6000_push_dummy_call, rs6000_extract_return_value)
4414 (rs6000_store_return_value): Assert that we have floating-point
4416 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4417 (rs6000_frame_cache): Don't note the locations at which
4418 floating-point registers were saved if we have no fprs.
4419 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4421 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4422 (store_regs_user_thread, store_regs_kernel_thread): Only call
4423 supply_fprs / fill_fprs if we actually have floating-point
4425 (special_register_p): Check ppc_fpscr_regnum before matching
4427 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4428 supply / collect fpscr if we don't have it.
4429 * ppc-bdm.c: #include "gdb_assert.h".
4430 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4431 have floating-point registers, since I can't test this code on
4432 FP-free systems to adapt it.
4433 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4434 fpscr and floating point register numbers if they don't exist.
4435 (fetch_register): Assert that we have floating-point registers
4436 before we reach the code that handles them.
4437 (store_register): Same. And use tdep instead of calling
4439 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4441 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4442 fprs and fpscr if we don't have them.
4443 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4445 * ppcnbsd-nat.c: #include "gdb_assert.h".
4446 (getfpregs_supplies): Assert that we have floating-point registers.
4447 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4448 * ppcobsd-tdep.c: #include "gdb_assert.h".
4449 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4450 have floating-point registers.
4451 * rs6000-nat.c (regmap): Don't match against the fpscr and
4452 floating point register numbers if they don't exist.
4453 (fetch_inferior_registers, store_inferior_registers,
4454 fetch_core_registers): Only fetch / store / supply the
4455 floating-point registers and the fpscr if we have them.
4456 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4457 (ppcobsd-tdep.o): Update dependencies.
4459 2004-05-10 Andrew Cagney <cagney@redhat.com>
4461 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4462 (context_switch): Do not switch through_sigtramp_breakpoint.
4463 * gdbthread.h (save_infrun_state, load_infrun_state)
4464 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4465 and structure member.
4466 * thread.c (load_infrun_state, save_infrun_state): Update.
4468 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4470 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4472 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4474 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4476 * aclocal.m4: Regenerate.
4478 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4480 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4482 2004-05-10 Andrew Cagney <cagney@redhat.com>
4484 * infrun.c (check_sigtramp2): Delete function.
4485 (handle_inferior_event): When single stepping, and taking a
4486 signal, set a breakpoint at the signal return address. Delete
4487 redundant calls to check_sigtramp2.
4488 (insert_step_resume_breakpoint): New function.
4489 (through_sigtramp_breakpoint, handle_inferior_event)
4490 (follow_exec, wait_for_inferior, fetch_inferior_event)
4491 (currently_stepping, keep_going): Delete most uses of
4492 through_sigtramp_breakpoint, not that it should be deleted.
4493 (delete_breakpoint_current_contents): Delete function.
4495 2004-05-10 Randolph Chung <tausq@debian.org>
4497 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4499 * config/pa/tm-linux.h: New file.
4501 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4503 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4504 of prefixes. Don't print the prefix twice in the CLI.
4506 2004-05-10 Jim Blandy <jimb@redhat.com>
4508 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4509 collect all the gprs.
4511 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4512 loop collecting gprs.
4514 2004-05-09 Andrew Cagney <cagney@redhat.com>
4516 * remote-vx.c (net_step): Delete step-range code.
4517 * remote.c (remote_resume, init_all_packet_configs)
4518 (set_remote_protocol_E_packet_cmd)
4519 (show_remote_protocol_E_packet_cmd)
4520 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4521 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4522 (show_remote_protocol_e_packet_cmd): Ditto.
4524 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4526 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4528 * hppa-tdep.h: Update copyright year.
4529 (struct trad_frame_saved_reg): Add opaque declaration.
4531 * amd64-tdep.c (amd64_return_value): Implement
4532 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4534 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4535 (m68k_value_to_register): New functions.
4536 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4539 * defs.h (enum return_value_convention): Add
4540 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4541 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4542 * infcmd.c (legacy_return_value): New function.
4543 (print_return_value): Rwerite to implement
4544 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4545 * values.c (using_struct_return): Check for inequality to
4546 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4547 RETURN_VALUE_STRUCT_CONVENTION.
4548 * i386-tdep.c (i386_return_value): Implement
4549 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4551 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4552 include "symtab.h", "opcode/vax.h" and "inferior.h".
4553 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4554 to read_memory_unsigned_integer.
4555 (vax_gdbarch_init): Reorder.
4556 (_initialize_vax_tdep): Spell out prototype.
4557 * Makefile.in (vax-tdep.o): Update dependencies.
4559 2004-05-08 Andrew Cagney <cagney@redhat.com>
4561 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4562 * target.c (target_detach, target_disconnect): Ditto.
4564 * infcall.c (call_function_by_hand): When no
4565 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4566 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4567 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4568 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4569 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4571 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4572 * gdbarch.h, gdbarch.c: Re-generate.
4573 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4574 deprecated_fix_call_dummy.
4575 * v850-tdep.c (v850_gdbarch_init): Ditto.
4576 * infcall.c (call_function_by_hand): Do not call
4577 DEPRECATED_FIX_CALL_DUMMY.
4579 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4580 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4581 * gdbarch.h, gdbarch.c: Re-generate.
4582 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4583 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4584 deprecated_sizeof_call_dummy_words.
4585 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4587 * v850-tdep.c (v850_gdbarch_init): Ditto.
4588 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4589 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4590 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4591 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4592 * arch-utils.h (legacy_call_dummy_words)
4593 (legacy_sizeof_call_dummy_words): Delete declarations.
4594 * arch-utils.c (legacy_call_dummy_words)
4595 (legacy_sizeof_call_dummy_words): Delete variables.
4597 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4598 * gdbarch.h, gdbarch.c: Re-generate.
4599 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4600 * infcall.c (call_function_by_hand): Eliminate call to
4601 DEPRECATED_PUSH_DUMMY_FRAME.
4602 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4604 (ns32k_push_dummy_frame): Delete function.
4606 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4607 deprecated_call_dummy_breakpoint_offset or
4608 deprecated_call_dummy_start_offset.
4609 * dummy-frame.c, arm-tdep.c: Update comments.
4610 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4611 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4612 * gdbarch.h, gdbarch.c: Re-generate.
4614 * infcall.c (legacy_push_dummy_code): Delete function.
4615 (push_dummy_code): Delete call.
4617 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4618 * gdbarch.h, gdbarch.c: Re-generate.
4619 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4620 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4621 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4622 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4624 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4625 (struct frame_info): Delete opaque declaration.
4626 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4627 * frame.c (get_frame_type): Delete call.
4629 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4631 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4632 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4634 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4636 * alphanbsd-tdep.c: Include "gdb_string.h".
4637 * armnbsd-tdep.c: Update copyright year.
4638 Include "gdb_string.h".
4639 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4642 * delta68-nat.c: Remove file.
4643 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4644 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4645 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4646 (delta68-nat.o): Remove dependency.
4648 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4650 (m68k_gdbarch_init): Don't set
4651 deprecated_frameless_function_invocation.
4653 2004-05-07 Randolph Chung <tausq@debian.org>
4655 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4656 read_memory_nobpt for code reading when doing frame unwinding.
4657 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4659 2004-05-07 Randolph Chung <tausq@debian.org>
4661 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4662 instead of sp, handle sigaltstack case.
4663 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4664 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4665 signal handler and not that of the caller.
4666 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4667 hppa_linux_sigtramp_find_sigcontext.
4669 2004-05-07 Randolph Chung <tausq@debian.org>
4671 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4673 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4674 * hppa-linux-nat.c (fetch_register, store_register): Define.
4675 (fetch_inferior_registers, store_inferior_registers): Define.
4676 (supply_gregset): Add comment and clean up some unneeded code.
4677 (fill_gregset): Add comment and fix so that it saves registers in
4678 the right place in the gregset.
4679 (fill_fpregset): Fix buffer overrun problem.
4680 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4682 2004-05-07 Randolph Chung <tausq@debian.org>
4684 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4685 do common handling of the pcoqt register.
4686 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4687 to use helper function.
4688 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4689 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4690 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4691 generic fallback unwinder when all else fails.
4692 (hppa_gdbarch_init): Add fallback sniffer.
4693 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4694 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4695 to use helper function.
4697 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4699 * config/djgpp/fnchange.lst: Add translation rules for
4700 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4702 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4704 * frame.c (get_prev_frame_1): Work around GCC bug.
4705 * frame.h: Add comment about GCC bug.
4707 2004-05-07 Andrew Cagney <cagney@redhat.com>
4709 * observer.c: Include "commands.h" and "gdbcmd.h".
4710 (observer_debug, _initialize_observer): Add the
4711 command "set/show debug observer".
4712 * observer.sh: When observer debugging, log notify calls.
4713 * Makefile.in (observer.o): Update dependencies.
4715 2004-05-07 Jason Molenda (jmolenda@apple.com)
4717 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4719 2004-05-07 Jim Blandy <jimb@redhat.com>
4721 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4722 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4723 to recognize gpr regnums, instead of assuming that
4724 tdep->ppc_fp0_regnum marks the end of the general-purpose
4727 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4728 the given architecture has floating-point registers.
4730 2004-05-07 Andrew Cagney <cagney@redhat.com>
4732 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4734 * gdbarch.h, gdbarch.c: Re-generate.
4735 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4736 deprecated_use_generic_dummy_frames.
4738 2004-05-07 Brian Ford <ford@vss.fsi.com>
4740 * NEWS: Mention Cygwin DWARF 2 support.
4742 2004-05-07 Andrew Cagney <cagney@redhat.com>
4744 * objfiles.h (struct entry_info): Delete unused fields
4745 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4746 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4747 * mipsread.c (mipscoff_symfile_read): Update.
4748 * mdebugread.c (parse_partial_symbols): Update.
4749 * dwarfread.c (read_file_scope): Update.
4750 * dwarf2read.c (read_file_scope): Update.
4751 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4752 * coffread.c (complete_symtab): Update.
4754 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4756 * infcall.c (_initialize_infcall): Fix typo.
4758 2004-05-07 Andrew Cagney <cagney@redhat.com>
4760 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4761 * command.h (add_setshow_zinteger_cmd): Declare.
4763 2004-05-06 Randolph Chung <tausq@debian.org>
4765 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4766 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4767 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4768 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4769 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4770 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4771 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4773 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4774 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4775 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4776 (hppa64_hpux_frame_find_saved_regs_in_sig)
4777 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4778 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4779 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4780 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4781 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4782 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4783 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4784 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4785 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4786 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4787 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4788 (hppa32_register_type, hppa_cannot_store_register)
4789 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4790 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4791 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4792 * pa64solib.c (pa64_solib_have_load_event)
4793 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4794 (pa64_solib_unloaded_library_pathname): Likewise.
4795 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4796 (som_solib_library_pathname): Likewise.
4798 2004-05-05 Jim Ingham <jingham@apple.com>
4800 * breakpoint.c (create_breakpoints): Copy the ignore count and
4801 thread id over from the pended breakpoint to the actual
4804 2004-05-05 Andrew Cagney <cagney@redhat.com>
4806 * gdbarch.sh (PARM_BOUNDARY): Delete.
4807 gdbarch.h, gdbarch.c: Re-generate.
4808 * valops.c (PARM_BOUNDARY): Delete macro.
4809 (value_push): Delete PARM_BOUNDARY code.
4810 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4812 2004-05-04 Jim Blandy <jimb@redhat.com>
4814 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4815 Don't assume that the gprs, fprs, and UISA sprs are
4816 contiguous, start at register number zero, and end with fpscr.
4817 Instead, use the numbers from the tdep structure.
4819 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4820 should no longer be used in code specific to the RS6000 and its
4822 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4823 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4824 tdep->ppc_fp0_regnum.
4825 (ppc_supply_fpregset, ppc_collect_fpregset)
4826 (rs6000_push_dummy_call, rs6000_extract_return_value)
4827 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4828 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4830 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4831 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4833 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4834 bdm_ppc_store_registers): Same.
4835 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4836 (store_register, fill_fpregset): Same.
4837 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4838 (ppc_linux_supply_fpregset): Same.
4839 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4840 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4842 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4843 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4844 ppc64_sysv_abi_return_value): Same.
4845 * rs6000-nat.c (regmap, fetch_inferior_registers)
4846 (store_inferior_registers, fetch_core_registers): Same.
4848 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4850 * m68knbsd-nat.c: Remove file.
4851 * m68knbsd-tdep.c: Remove file.
4852 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4854 * configure.host: Add m68k-*-netbsdelf*.
4855 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4856 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4857 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4859 * config/m68k/nbsdelf.mh: New file.
4860 * config/m68k/nbsd.mt: New file.
4861 * config/m68k/nbsdaout.mt: Remove file.
4862 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4863 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4864 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4865 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4866 (use_struct_convention): Remove prototype.
4867 (USE_STRUCT_CONVENTION): Remove define.
4868 * config/m68k/xm-nbsd.h: Remove file.
4870 2004-05-04 Michael Snyder <msnyder@redhat.com>
4872 * m68k-tdep.c (m68k_gdbarch_init): Default to using
4873 reg_struct_return method (as gcc usually does for cross targets).
4875 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4877 Committed by Andrew Cagney.
4878 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
4879 alignment padding when accessing ucontext struct members.
4881 2004-05-04 Jim Blandy <jimb@redhat.com>
4883 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
4884 'ppc_gplast_regnum' member.
4885 (ppc_num_gprs): New enum constant.
4886 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
4887 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
4888 * rs6000-nat.c (regmap, fetch_inferior_registers,
4889 store_inferior_registers): Same.
4890 * rs6000-tdep.c (e500_pseudo_register_read)
4891 (e500_pseudo_register_write): Same.
4892 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
4894 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
4895 * ppc-tdep.h (ppc_num_fprs): New enum constant.
4896 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
4897 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
4899 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
4901 * ppc-linux-nat.c (ppc_register_u_addr): Same.
4902 * rs6000-nat.c (regmap, fetch_inferior_registers)
4903 (store_inferior_registers): Same.
4905 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
4908 2004-05-03 Joel Brobecker <brobecker@gnat.com>
4910 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
4911 failure detected by recent versions of GCC.
4912 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
4913 to be consistent with the usage in dwarf2_create_include_psymtab.
4915 2004-05-03 Michael Snyder <msnyder@redhat.com>
4917 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
4918 (heuristic_proc_start): Whitespace cleanup.
4920 2004-05-04 Mark Kettenis <kettenis@gnu.org>
4922 * sun3-nat.c: Remove file.
4923 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
4925 (ALLDEPFILES): Remove sun3-nat.c.
4926 (sun3-nat.o): Remove dependencies.
4928 * i386-interix-nat.c, i386-interix-tdep.c,
4929 config/i386/nm-interix.h, config/i386/interix.mh,
4930 config/i386/interix.mt: Remove files.
4931 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
4934 2004-05-03 Mark Kettenis <kettenis@gnu.org>
4936 * m68k-tdep.h (struct gdbarch_tdep): Add member
4937 struct_value_regnum.
4938 (m68k_svr4_init_abi): New prototype.
4939 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
4940 different calling conventions.
4941 (m68k_extract_return_value): Remove code dealing with single-field
4943 (m68k_store_return_value): Remove code dealing with single-field
4944 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
4945 (m68k_extract_struct_value_address): Remove function.
4946 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
4947 (m68k_reg_struct_return_p, m68k_return_value)
4948 (m68k_svr4_return_value): New functions.
4949 (m68k_use_struct_convention): Remove function.
4950 (m68k_push_dummy_call): Use new struct_value_regnum member of
4951 `struct gdbarch_tdep' instead of hardcoded register number to
4953 (m68k_svr4_init_abi): New function.
4954 (m68k_gdbarch_init): Don't set extract_return_value,
4955 store_return_values, deprecated_extract_struct_value_address and
4956 use_struct_convention. Set return_value instead. Initialize new
4957 struct_value_regnum member of `struct gdbarch_tdep'.
4958 * m68klinux-tdep.c: Update copyright year.
4959 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
4960 (m68k_linux_extract_struct_value_address): Remove function.
4961 (m68k_linux_init_abi): Don't set extract_return_value,
4962 store_return_values, deprecated_extract_struct_value_address and
4963 use_struct_convention. Call m68k_svr4_init_abi but override the
4964 new struct_value_regnum member of `struct gdbarch_tdep'.
4965 * Makefile.in (m68k-tdep.o): Update dependencies.
4967 2004-05-03 J. Brobecker <brobecker@gnat.com>
4969 * dwarf2read.c (line_header): Add new included_p field in
4971 (partial_die_info): New field has_stmt_list. New field line_offset.
4972 (dwarf2_create_include_psymtab): New function.
4973 (dwarf2_build_include_psymtabs): New function.
4974 (add_file_name): Add forward declaration. Initialize new field.
4975 (dwarf_decode_lines): Add new parameter. Enhance this procedure
4976 to be able to determine the list of files included by the
4977 given unit, and build their associated psymtabs.
4978 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
4980 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
4981 (read_file_scope): Update call to dwarf_decode_lines.
4982 (read_partial_die): Handle DW_AT_stmt_list attributes.
4984 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
4987 * configure.in: Revert special case for osf5.*.
4988 * configure: Regenerate.
4990 2004-05-02 Jim Blandy <jimb@redhat.com>
4992 Move the symbol-file-from-memory functions into their own file.
4993 * symfile-mem.c, symfile-mem.h: New files.
4994 * symfile.c (symbol_file_add_from_bfd): New function.
4995 (symbol_file_add): Call symbol_file_add_from_bfd.
4996 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
4997 Moved to symfile-mem.c.
4998 (_initialize_symfile): Move definition of
4999 add-symbol-file-from-memory command to symfile-mem.c.
5000 * symfile.h (symbol_file_add_from_bfd): New declaration.
5001 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5002 * config/powerpc/linux.mt (TDEPFILES): Same.
5003 * Makefile.in (SFILES): Add symfile-mem.c.
5004 (symfile_mem_h): New variable.
5005 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5006 (symfile-mem.o): New rule.
5008 2004-05-01 Andrew Cagney <cagney@redhat.com>
5010 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5011 frame_find_by_id instead of frame_relative_level.
5012 (do_enable_breakpoint): Ditto.
5013 * thread.c: Update copyright.
5014 (info_threads_command): Ditto, simplify.
5016 * frame.c (deprecated_generic_get_saved_register): Delete
5017 function, moved to "xstormy16-tdep.c".
5018 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5019 deprecated_generic_get_saved_register from "frame.c".
5020 (xstormy16_frame_saved_register): Call
5021 xstormy16_get_saved_register.
5022 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5024 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5025 * frame.h (deprecated_generic_get_saved_register): Delete.
5027 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5029 * dwarfread.c: Update documentation on the state of dwarf-1.
5031 2004-05-01 Andrew Cagney <cagney@redhat.com>
5033 * stack.c (select_frame_command): Delete call to
5034 frame_relative_level.
5035 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5037 (frame_info): Do not print FRAMELESS.
5038 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5039 (catch_info): Delete #if0 code.
5041 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5042 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5043 of frame_relative_level.
5044 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5046 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5047 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5048 frame_relative_level.
5050 * frame.h (deprecated_set_frame_type): Delete declaration.
5051 * frame.c (deprecated_set_frame_type): Delete function, update
5054 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5055 * gdbarch.h, gdbarch.c: Re-generate.
5056 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5057 (shnbsd_pc_in_sigtramp): Delete.
5058 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5060 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5062 * frame.h: Update comments.
5063 * ppc-linux-tdep.c: Update comments.
5064 * breakpoint.c (bpstat_what): Update comments.
5066 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5067 m68klinux-tdep.o's dependencies, were previously added to
5070 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5071 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5072 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5073 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5074 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5076 * Makefile.in (m68klinux-nat.o): Update dependencies.
5077 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5078 (m68k_linux_sigtramp_frame_cache)
5079 (m68k_linux_sigtramp_frame_this_id)
5080 (m68k_linux_sigtramp_frame_prev_register)
5081 (m68k_linux_sigtramp_frame_unwind)
5082 (m68k_linux_sigtramp_frame_sniffer)
5083 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5084 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5085 names, use trad-frame.h.
5086 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5087 (struct m68k_sigtramp_info): Delete.
5088 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5089 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5090 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5091 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5094 * infrun.c (check_sigtramp2): Delete check for
5095 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5097 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5099 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5101 2004-05-01 Andrew Cagney <cagney@redhat.com>
5103 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5104 (frv_linux_sigtramp_frame_cache)
5105 (frv_linux_sigtramp_frame_this_id)
5106 (frv_linux_sigtramp_frame_prev_register)
5107 (frv_linux_sigtramp_frame_unwind)
5108 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5109 include "linux" in function and variable names, directly call
5110 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5111 the latest trad-frame code.
5112 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5113 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5114 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5115 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5116 * frv-tdep.c (frv_sigtramp_frame_cache)
5117 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5118 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5120 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5121 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5122 (frv_set_sigcontext_reg_addr): Delete function.
5124 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5125 (DEPRECATED_SIGTRAMP_END): Delete.
5126 * gdbarch.h, gdbarch.c: Re-generate.
5127 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5128 * config/vax/tm-vaxbsd.h: Update copyright.
5129 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5130 (DEPRECATED_IN_SIGTRAMP): Define.
5131 * config/m68k/tm-nbsd.h: Update copyright.
5132 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5133 (DEPRECATED_IN_SIGTRAMP): Define.
5135 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5137 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5138 encondings. Fixes PR gdb/1628.
5140 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5141 DW_CFA_restore state without a matching DW_CFA_remember_state
5142 instead of aborting. Fixes PR backtrace/1589.
5144 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5146 * MAINTAINERS: Add self as AIX maintainer.
5147 Update my e-mail address in write-after-approval section.
5149 2004-04-30 Andrew Cagney <cagney@redhat.com>
5151 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5152 (legacy_get_prev_frame): Ditto.
5154 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5155 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5156 * mipsread.c (sigtramp_address): Delete extern variable.
5157 (mipscoff_new_init): Delete reference.
5158 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5159 (fixup_sigtramp): Delete function.
5160 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5161 (fixup_sigtramp): Delete declarations.
5163 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5164 deprecated_pc_in_sigtramp.
5165 (ppcnbsd_pc_in_sigtramp): Delete function.
5167 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5169 * config/m68k/nm-nbsd.h: Tweak comments.
5170 * config/m68k/nm-nbsdaout.h: Likewise.
5172 2004-04-30 Andrew Cagney <cagney@redhat.com>
5174 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5175 legacy_pc_in_sigtramp.
5176 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5178 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5180 Add OpenBSD/m68k support.
5181 * NEWS (New native configurations): Mention OpenBSD/m68k.
5182 * m68kbsd-tdep.c: New file.
5183 * m68kbsd-nat.c: New file.
5184 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5185 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5186 * configure.host: Add m68k-*-openbsd.
5187 * configure.tgt: Add m68k-*-openbsd.
5188 * config/m68k/tm-obsd.h: New file.
5189 * config/m68k/obsd.mt: New file.
5190 * config/m68k/obsd.mh: New file.
5191 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5194 2004-04-30 Andrew Cagney <cagney@redhat.com>
5196 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5197 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5199 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5201 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5202 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5204 2004-04-30 Brian Ford <ford@vss.fsi.com>
5206 Revert 2004-04-16 change.
5207 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5208 (i386_coff_init_abi): Remove.
5209 * i386-tdep.h (i386_coff_init_abi): Remove.
5210 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5212 2004-04-30 Andrew Cagney <cagney@redhat.com>
5214 * blockframe.c (find_pc_partial_function): Delete use of
5215 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5216 DEPRECATED_SIGTRAMP_END.
5218 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5219 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5220 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5221 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5222 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5224 * defs.h (deprecated_inside_entry_file): Delete declaration.
5225 * blockframe.c (deprecated_inside_entry_file): Delete function.
5226 (legacy_frame_chain_valid): Delete call.
5227 * sh64-tdep.c (sh64_frame_chain): Delete call.
5228 * objfiles.h: Update comments.
5229 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5231 * frame.c (get_prev_frame): Delete call, update comments.
5233 2004-04-30 Brian Ford <ford@vss.fsi.com>
5235 * MAINTAINERS (Write After Approval): Add myself.
5237 2004-04-30 Andrew Cagney <cagney@redhat.com>
5239 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5240 * gdbarch.h, gdbarch.c: Re-generate.
5241 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5244 2004-04-30 Andrew Cagney <cagney@redhat.com>
5246 * gdb-events.sh (selected_thread_changed)
5247 (selected_frame_level_changed, target_changed): Delete.
5248 * gdb-events.h, gdb-events.c: Re-generate.
5249 * valops.c (value_assign): Update.
5250 * stack.c (select_frame_command, up_silently_base)
5251 (down_silently_base): Update.
5253 2004-04-29 Andrew Cagney <cagney@redhat.com>
5255 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5256 registers correctly.
5257 (print_gp_register_row, mips32_heuristic_proc_desc)
5258 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5259 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5260 references to mips_isa_regsize.
5262 2004-04-29 Andrew Cagney <cagney@redhat.com>
5264 * mips-tdep.c (struct gdbarch_tdep): Delete
5265 mips_fp_register_double.
5266 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5268 (mips_gdbarch_init): Do not set mips_fp_register_double.
5269 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5271 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5273 Committed by Andrew Cagney.
5274 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5277 2004-04-29 Andrew Cagney <cagney@redhat.com>
5279 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5280 gdbarch, use mips_abi, update callers.
5281 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5282 mips_abi_regsize, update callers.
5283 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5284 mips_default_abi_regsize.
5285 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5286 mips_default_abi_regsize.
5288 2004-04-29 Andrew Cagney <cagney@redhat.com>
5290 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5291 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5292 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5293 mips_default_abi_regsize.
5294 (mips_isa_regsize): Rename mips_regisze.
5295 * mipsnbsd-tdep.c: Update.
5296 * mips-linux-tdep.c: Update.
5297 * irix5-nat.c: Update.
5298 * mips-tdep.h (mips_isa_regsize): Update.
5300 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5301 Delete all disabled code.
5302 * gdb-events.h, gdb-events.c: Re-generate.
5304 2004-04-19 Jerome Guitton <guitton@gnat.com>
5305 Mark Kettenis <kettenis@gnu.org>
5307 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5308 the function begins with a branch instruction.
5310 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5312 * i386-tdep.c: Fix spelling mistakes.
5314 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5315 Andrew Cagney <cagney@redhat.com>
5317 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5319 * acconfig.h: Provide default _KMEMUSER value.
5320 * config.in, configure: Re-generate.
5321 * NEWS: Mention fix.
5323 2004-04-24 Randolph Chung <tausq@debian.org>
5325 * configure.host (hppa*-*-linux*): New target.
5326 * configure.tgt (hppa*-*-linux*): Likewise.
5327 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5328 gdbarch_init_osabi() call earlier so that osabi-specific frame
5329 unwinders can be registered first.
5330 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5332 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5333 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5334 * config/pa/linux.mh: New file.
5335 * config/pa/linux.mt: New file.
5336 * config/pa/nm-linux.h: New file.
5337 * config/pa/xm-linux.h: New file.
5338 * hppa-linux-nat.c: New file.
5339 * hppa-linux-tdep.c: New file.
5341 2004-04-28 Randolph Chung <tausq@debian.org>
5343 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5345 (hppa32_push_dummy_call): Fix small struct and floating point argument
5346 passing, and make sure the stack frame is properly aligned.
5348 2004-04-28 Andrew Cagney <cagney@redhat.com>
5350 * stack.c (print_stack_frame): Fix description.
5352 * NEWS: Mention gdb/gdbserver/configure execute permission
5353 changed. PR server/519.
5355 2004-04-28 Andrew Cagney <cagney@redhat.com>
5357 * stack.c (print_stack_frame_stub): Delete declaration.
5358 (struct print_stack_frame_args, print_stack_frame)
5359 (print_frame_info, print_frame): Replace "source" with print what.
5360 Replace "print" with "print_level". Replace "args" with
5362 * frame.h (show_and_print_stack_frame, print_stack_frame)
5363 (print_frame_info): Update declarations.
5364 * stack.c (select_and_print_frame, frame_command)
5365 (current_frame_command, up_command, down_command): Update calls -
5366 use get_selected_frame, pass "enum print_what" for source, do not
5367 call frame_relative_level.
5368 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5369 * remote-rdp.c (remote_rdp_open): Ditto.
5370 * remote-mips.c (common_open): Ditto.
5371 * remote-e7000.c (e7000_start_remote): Ditto.
5372 * ocd.c (ocd_start_remote): Ditto.
5373 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5374 * infrun.c (normal_stop): Ditto.
5375 * inflow.c (kill_command): Ditto.
5376 * infcmd.c (finish_command): Ditto.
5377 * corelow.c (core_open): Ditto.
5378 * tracepoint.c (finish_tfind_command): Ditto.
5379 * thread.c (info_threads_command, info_threads_command)
5380 (restore_current_thread, do_captured_thread_select): Ditto.
5381 * ada-tasks.c (task_command): Ditto.
5383 2004-04-26 Orjan Friberg <orjanf@axis.com>
5385 * frame.c: Include "observer.h".
5386 (frame_observer_target_changed): New function.
5387 (_initialize_frame): Attach target_changed observer.
5388 * regcache.c: Include "observer.h".
5389 (regcache_observer_target_changed): New function.
5390 (_initialize_regcache): Attach target_changed observer.
5391 * valops.c: Include "observer.h".
5392 (value_assign): Notify target_changed event when modifying register.
5393 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5395 2004-04-26 Orjan Friberg <orjanf@axis.com>
5397 From Paul Koning <pkoning@equallogic.com>:
5398 * breakpoint.c (free_valchain): New function.
5399 (insert_bp_location, delete_breakpoint): Use free_valchain.
5400 (remove_breakpoint): Do not remove the valchain.
5401 (bpstat_stop_status): If not stopped by watchpoint, skip
5402 watchpoints when generating stop status list.
5403 * infrun.c (handle_inferior_event): Make
5404 stepped_after_stopped_by_watchpoint a global variable.
5405 * remote.c (remote_stopped_data_address): Return watch data
5406 address rather than zero if stepped_after_stopped_by_watchpoint is
5409 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5412 * configure.in: Check for curses after termcap.
5413 On osf5.*, do not check for ncurses.
5414 * configure: Regenerate.
5416 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5418 * ppcobsd-nat.c: Include "ppc-tdep.h".
5419 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5421 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5422 Fixes PR tdep/1623 and PR tdep/1624.
5424 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5426 * xmodem.h, xmodem.c: Remove files.
5427 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5429 2004-04-23 Randolph Chung <tausq@debian.org>
5431 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5432 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5433 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5434 for handling stackless frames.
5435 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5437 2004-04-23 Randolph Chung <tausq@debian.org>
5439 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5440 starts at a pc before the frame is created.
5442 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5444 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5446 2004-04-23 Jerome Guitton <guitton@gnat.com>
5448 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5449 use convert_typed_floating to get the appropriate format.
5451 2004-04-22 Randolph Chung <tausq@debian.org>
5453 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5454 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5455 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5456 (hppa_sign_extend): Add prototype.
5457 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5458 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5459 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5460 hppa targets will also use these functions.
5461 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5462 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5463 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5464 (hppa_gdbarch_init): Remove gdbarch setting of
5465 skip_trampoline_code, in_solib_call_trampoline and
5466 in_solib_return_trampoline.
5467 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5468 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5469 hppa_in_solib_call_trampoline.
5470 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5471 Moved from hppa-tdep.c.
5472 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5473 in_solib_call_trampoline and in_solib_return_trampoline.
5475 2004-04-22 Randolph Chung <tausq@debian.org>
5477 * hppa-tdep.c (hppa_debug): New variable.
5478 (find_unwind_entry, hppa_frame_cache): Add debug output.
5479 (_initialize_hppa_tdep): Add command to set debug flag.
5481 2004-04-22 Andrew Cagney <cagney@redhat.com>
5483 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5485 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5486 signal trampoline unwinder.
5487 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5489 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5491 Add OpenBSD/powerpc support.
5492 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5493 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5494 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5495 (ppc_collect_fpregset): New prototypes.
5496 * ppcobsd-nat.c: New file.
5497 * ppcobsd-tdep.c: New file.
5498 * ppcobsd-tdep.h: New file.
5499 * rs6000-tdep.c: Include "regset.h".
5500 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5501 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5503 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5504 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5505 (rs6000-tdep.o): Update dependencies.
5506 * configure.host: Add powerpc-*-openbsd.
5507 * configure.tgt: Add powerpc-*-openbsd.
5508 * config/powerpc/obsd.mh: New file.
5509 * config/powerpc/nm-obsd.h: New file.
5510 * config/powerpc/obsd.mt: New file.
5512 2004-04-22 Andrew Cagney <cagney@redhat.com>
5514 * frame.h (show_frame_info): Delete declaration.
5516 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5517 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5518 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5519 * frv-tdep.c (frv_frame_this_id): Ditto.
5520 * avr-tdep.c (avr_frame_this_id): Ditto.
5522 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5524 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5526 2004-04-22 Jim Blandy <jimb@redhat.com>
5528 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5529 register number zero.
5531 2004-04-21 Michael Snyder <msnyder@redhat.com>
5533 * mips-tdep.c (heuristic_proc_start):
5534 Warning() already prefixes "Warning: ".
5536 2004-04-21 Andrew Cagney <cagney@redhat.com>
5538 * annotate.h (deprecated_annotate_starting_hook)
5539 (deprecated_annotate_stopped_hook)
5540 (deprecated_annotate_exited_hook)
5541 (deprecated_annotate_signal_hook)
5542 (deprecated_annotate_signalled_hook): Deprecate.
5543 * tracepoint.h (deprecated_create_tracepoint_hook)
5544 (deprecated_delete_tracepoint_hook)
5545 (deprecated_modify_tracepoint_hook)
5546 (deprecated_trace_find_hook)
5547 (deprecated_trace_start_stop_hook): Deprecate.
5548 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5549 * remote.h (deprecated_target_resume_hook)
5550 (deprecated_target_wait_loop_hook): Deprecate.
5551 * gdbcore.h (deprecated_exec_file_display_hook)
5552 (deprecated_file_changed_hook): Deprecate.
5553 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5554 * defs.h (deprecated_modify_breakpoint_hook)
5555 (deprecated_command_loop_hook, deprecated_show_load_progress)
5556 (deprecated_print_frame_info_listing_hook)
5557 (deprecated_query_hook, deprecated_warning_hook)
5558 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5559 (deprecated_delete_breakpoint_hook)
5560 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5561 (deprecated_readline_begin_hook, deprecated_readline_hook)
5562 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5563 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5564 (deprecated_context_hook, deprecated_target_wait_hook)
5565 (deprecated_attach_hook, deprecated_detach_hook)
5566 (deprecated_call_command_hook, deprecated_set_hook)
5567 (deprecated_error_hook, deprecated_error_begin_hook)
5568 (deprecated_ui_load_progress_hook): Deprecate.
5569 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5570 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5571 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5572 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5573 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5574 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5575 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5576 * annotate.c, aix-thread.c: Update.
5578 2004-04-21 Andrew Cagney <cagney@redhat.com>
5580 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5581 * vaxnbsd-tdep.c: Include "gdb_string.h".
5583 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5584 (add_symbol_file_from_memory_command): #if 0 function body, call
5587 2004-04-21 Andrew Cagney <cagney@redhat.com>
5589 * gdbcore.h: Update copyright.
5590 (deprecated_add_core_fns): Rename add_core_fns.
5591 * win32-nat.c (_initialize_core_win32): Update.
5592 * sun3-nat.c (_initialize_core_sun3): Update.
5593 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5594 * rs6000-nat.c (_initialize_core_rs6000): Update.
5595 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5596 * nto-tdep.c (_initialize_nto_tdep): Update.
5597 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5598 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5599 * mips-nat.c (_initialize_core_mips): Update.
5600 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5601 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5602 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5603 * lynx-nat.c (_initialize_core_lynx): Update.
5604 * irix5-nat.c (_initialize_core_irix5): Update.
5605 * i386-interix-nat.c (_initialize_core_interix): Update.
5606 * cris-tdep.c (_initialize_cris_tdep): Update.
5607 * corelow.c (deprecated_add_core_fns): Update.
5608 * core-regset.c (_initialize_core_regset): Update.
5609 * core-aout.c (_initialize_core_aout): Update.
5610 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5611 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5612 * alpha-nat.c (_initialize_core_alpha): Update.
5614 2004-04-21 Jim Blandy <jimb@redhat.com>
5616 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5618 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5620 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5622 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5623 (read_attribute_value): Update calls to dwarf_alloc_block.
5624 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5626 (psymtab_to_symtab_1): Likewise. Clean up using
5627 free_stack_comp_unit.
5628 (add_to_cu_func_list): Use the comp_unit_obstack.
5630 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5632 * dwarf2read.c (dwarf2_flag_true_p): New function.
5633 (die_is_declaration): Use the function above. Add some comments.
5635 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5637 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5638 architecture when registering sparcnbsd_core_osabi_sniffer.
5641 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5643 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5646 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5647 * i386-tdep.c: Correct register numbering scheme comments
5649 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5650 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5651 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5652 (i386_gdb_arch_init): Likewise.
5654 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5655 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5658 * m68k-tdep.h: Tweak comments.
5659 * m68k-tdep.c: Tweak comment.
5661 2004-04-17 Randolph Chung <tausq@debian.org>
5663 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5664 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5665 (hppa_hpux_som_init_abi): Set is_elf to 0.
5666 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5667 * hppa-tdep.c (low_text_segment_address): Remove global.
5668 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5669 section offset to calculate segment address.
5670 (internalize_unwinds): Define low_text_segment_address as local and
5671 pass to record_text_segment_lowaddr for ELF targets.
5672 (hppa_gdbarch_init): Zero fill tdep structure.
5673 (hppa_dump_tdep): Print tdep structure.
5674 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5676 2004-04-17 Randolph Chung <tausq@debian.org>
5678 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5679 (hppa_gdbarch_init): Set pseudo_register_read.
5680 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5681 * regcache.c (supply_register): Remove check for
5682 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5684 2004-04-17 Randolph Chung <tausq@debian.org>
5686 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5687 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5688 (hpread_adjust_stack_address): Move to hpread.c.
5689 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5690 obj_private_struct): Move from tm-hppa.h.
5691 * hpread.c (hppa-tdep.h): Include.
5692 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5693 (hpread_read_function_type, hpread_read_doc_function_type)
5694 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5696 * pa64solib.c (hppa-tdep.h): Include.
5697 * somsolib.c (hppa-tdep.h): Include.
5698 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5699 inferior_status): Remove unused forward declarations.
5700 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5701 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5702 obj_private_struct): Move to hppa-tdep.h.
5703 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5705 2004-04-17 Randolph Chung <tausq@debian.org>
5707 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5708 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5709 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5710 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5711 Remove forward declaration and make static.
5712 (hppa_reg_struct_has_addr): Remove.
5714 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5716 * observer.sh: Move comments in sed command to first column.
5718 2004-04-16 Jason Molenda (jmolenda@apple.com)
5720 * frame.c: Minor typeo corrections in comments.
5722 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5724 * observer.c (observer_test_first_notification_function): Update
5726 (observer_test_second_notification_function): Likewise.
5727 (observer_test_third_notification_function): Likewise.
5729 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5731 From Brian Ford <ford@vss.fsi.com>:
5732 * i386-tdep.c (i386_coff_init_abi): New function.
5733 * i386-tdep.h (i386_coff_init_abi): New prototype.
5734 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5735 register number translation functions for DWARF and DWARF 2.
5737 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5739 * dwarf2read.c: Back out my previous change, it was incorrect.
5741 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5743 * dwarf2read.c: Include "hashtab.h".
5744 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5746 (struct partial_die_info): Add comments. Use bitfields to reduce
5747 memory footprint. Add scope, scope_set, has_specification,
5748 spec_offset, die_parent, die_child, and die_sibling.
5749 (peek_die_abbrev): Add prototype.
5750 (partial_read_comp_unit_head): New function, broken out from
5751 dwarf2_build_psymtabs_hard.
5752 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5753 Use partial_read_comp_unit_head. Initialize the CU and
5754 comp_unit_obstack. Update calls to read_partial_die and
5755 scan_partial_symbols. Use free_stack_comp_unit and
5757 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5758 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5759 Update calls to helper functions. Remove NAMESPACE argument.
5761 (partial_die_parent_scope, partial_die_full_name): New functions.
5762 (add_partial_symbol): Remove namespace argument. Update call to
5763 pdi_needs_namespace. Use partial_die_full_name. Handle
5764 DW_TAG_namespace. Check has_namespace_info flag.
5765 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5766 tag. Handle namespaces.
5767 (add_partial_namespace, add_partial_enumeration): Simplify.
5768 (guess_structure_name): New function, derived from
5769 add_partial_structure.
5770 (add_partial_structure): Remove.
5771 (determine_class_name): Update comment.
5772 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5773 (is_type_tag_for_partial, load_partial_dies): New functions.
5774 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5775 Record specifications instead of following them immediately.
5776 (find_partial_die_in_comp_unit, find_partial_die)
5777 (fixup_partial_die, free_stack_comp_unit)
5778 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5779 (partial_die_hash, partial_die_eq): New functions.
5780 * Makefile.in (hashtab_h): Define.
5781 (dwarf2read.o): Update dependencies.
5782 (observer_inc, observer_h): Move to the correct section.
5784 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5786 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5787 (die_is_declaration): Use the function above. Add comment.
5789 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5791 * dwarf2read.c (read_structure_scope): Identify stub types
5792 using die_is_declaration() only.
5794 2004-04-15 Roland McGrath <roland@redhat.com>
5796 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5797 argument instead of NAME.
5798 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5799 in call to symbol_file_add_with_addrs_or_offsets.
5800 (build_addr_info): New function, helper for ...
5801 (symbol_file_add_from_memory): New function.
5802 (add_symbol_file_from_memory_command): New function using that.
5803 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5804 (pre_add_symbol_hook): Add const to argument type.
5805 * symfile.h (symbol_file_add_from_memory): Declare it.
5807 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5809 * NEWS (New native configurations): Mention OpenBSD/vax.
5810 * configure.host: Add vax-*-openbsd*.
5811 * config/vax/obsd.mh: New file.
5812 * config/vax/nm-obsd.h: New file.
5814 * vax-tdep.c: Include "regset.h".
5815 (vax_supply_gregset): New function.
5816 (vax_gregset): New variable.
5817 (vax_regset_from_core_section): New function.
5818 (vax_gdbarch_init): Set regset_from_core_section.
5819 * Makefile.in (vax-tdep.o): Update dependencies.
5821 2004-04-15 Andrew Cagney <cagney@redhat.com>
5823 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5824 (observer_normal_stop_notification_stub)
5825 (observer_attach_normal_stop, observer_detach_normal_stop):
5826 Delete, replaced by #include "observer.inc".
5827 * infrun.c (normal_stop): Pass "stop_bpstat" to
5828 observer_notify_normal_stop.
5829 * Makefile.in (observer_inc): Define.
5830 (observer.o): Update dependencies.
5831 (observer.h, observer.inc): New rules.
5832 * observer.h: Delete file.
5833 * observer.sh: New file.
5835 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5837 * vax-tdep.c (vax_frame_cache): Fix typo.
5839 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5841 * NEWS (New native configurations): Mention NetBSD/vax.
5842 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5843 * config/vax/nbsdelf.mh: New file.
5844 * config/vax/nbsdaout.mh: New file.
5845 * config/vax/nm-nbsd.h: New file.
5846 * config/vax/nm-nbsdaout.h: New file.
5848 * vaxnbsd-tdep.c: New file.
5849 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5850 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5851 * config/vax/nbsd.mt: New file.
5852 * config/vax/tm-nbsd.h: New file.
5854 * Makefile.in (vaxbsd-nat.o): New dependency.
5856 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5857 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5858 struct_addr arguments. Don't push return value address.
5859 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5860 arguments to vax_store_arguments. Store return value address in
5862 (vax_store_struct_return, vax_extract_return_value)
5863 (vax_store_return_value): Remove functions.
5864 (vax_return_value): New function.
5865 (vax_gdbarch_init): Set return value. Don't set
5866 deprecated_store_struct_return, deprecated_extract_struct_return
5867 and deprecated_store_return_value.
5869 2004-04-14 Andreas Schwab <schwab@suse.de>
5871 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
5873 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
5875 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5877 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
5878 (vax_unwind_dummy_id): New functions.
5879 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
5880 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
5882 (vax_fix_call_dummy): Remove function.
5883 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
5884 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
5885 call_dummy_location, deprecated_call_dummy_words,
5886 deprecated_sizeof_call_dummy_words,
5887 deprecated_call_dummy_breakpoint_offset,
5888 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
5889 and deprecated_dummy_write_sp.
5891 2004-04-13 David Carlton <carlton@kealia.com>
5893 * MAINTAINERS: Move myself to "paper trail" section.
5895 2004-04-12 Mark Kettenis <kettenis@gnu.org>
5897 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
5899 (vax_frame_init_saved_regs): Remove function.
5900 (vax_sigtramp_saved_pc): Remove function.
5901 (vax_frame_saved_pc): Remove function.
5902 (vax_frame_args_address): Remove function.
5903 (vax_frame_num_args): Rewrite.
5904 (vax_frame_chain): Remove function.
5905 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
5907 (vax_pop_frame): Likewise.
5908 (vax_saved_pc_after_call): Remove function.
5909 (struct vax_frame_cache): New structure.
5910 (vax_frame_cache): New function.
5911 (vax_frame_this_id): New function.
5912 (vax_frame_prev_register): New function.
5913 (vax_frame_unwind): New variable.
5914 (vax_frame_sniffer): New function.
5915 (vax_frame_base_address): New function.
5916 (vax_frame_args_address): New function.
5917 (vax_frame_base): New variable.
5918 (vax_unwind_pc): New function.
5919 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
5920 deprecated_fp_regnum, deprecated_saved_pc_after_call,
5921 deprecated_frame_chain, deprecated_frame_saved_pc,
5922 deprecated_frame_args_address and
5923 deprecated_frame_init_saved_regs.
5924 * Makefile.in (vax-tdep.o): Update dependencies.
5926 * vaxbsd-nat.c: New file.
5928 * vax-tdep.h: Update copyright year. Adjust comments.
5929 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
5930 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
5931 (vax_regnum): New enum. Replacing...
5932 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
5933 (VAX_PS_REGNUM): ... these removed macros.
5934 * vax-tdep.c (vax_register_name): Remove prototype.
5935 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
5936 (vax_register_byte, vax_register_raw_size,
5937 vax_register_virtual_size, vax_register_virtual_type): Remove
5939 (vax_register_type): New function.
5940 (vax_breakpoint_from_pc): Reorganize.
5941 (vax_gdbarch_init): Set register_type. Don't set
5942 deprecated_register_size, deprecated_register_bytes,
5943 deprecated_register_byte, deprecated_register_raw_size,
5944 deprecated_max_register_raw_size,
5945 deprecated_register_virtual_size,
5946 deprecated_max_register_virtual_size and
5947 deprecated_register_virtual_type. Add comment on stack direction.
5949 2004-04-11 Mark Kettenis <kettenis@gnu.org>
5951 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
5952 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
5953 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
5955 2004-04-10 Randolph Chung <tausq@debian.org>
5957 * MAINTAINERS (write after approval): Add myself.
5959 2004-04-07 Randolph Chung <tausq@debian.org>
5961 * hppa-tdep.c (hppa_inner_than): Remove.
5962 (is_pa_2): Remove unused static variable.
5963 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
5965 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
5967 * language.h (language_defn): Add new la_post_parser field.
5968 * parser-defs.h (null_post_parser): New declaration (default for
5971 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
5972 insert call to that function.
5973 (parse_exp_in_context): New function, including code formerly in
5974 parse_exp_1. Calls language-dependent post-parser after
5976 (parse_expression_in_context): New exported function.
5977 (null_post_parser): New definition.
5978 * expression.h (parse_expression_in_context): Add declaration.
5980 * p-lang.c (pascal_language_defn): Add trivial post-parser.
5981 * c-lang.c (c_language_defn): Ditto.
5982 (cplus_language_defn): Ditto.
5983 (asm_language_defn): Ditto.
5984 (minimal_language_defn): Ditto.
5985 * f-lang.c (f_language_defn): Ditto.
5986 * jv-lang.c (java_language_defn): Ditto.
5987 * language.c (unknown_language_defn): Ditto.
5988 (auto_language_defn): Ditto.
5989 (local_language_defn): Ditto.
5990 * m2-lang.c (m2_language_defn): Ditto.
5991 * scm-lang.c (scm_language_defn): Ditto.
5992 * obj-lang.c (objc_language_defn): Ditto.
5994 2004-04-10 Mark Kettenis <kettenis@gnu.org>
5996 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
5997 (amd64nbsd_mcontext_addr): New function.
5998 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
5999 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6000 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6002 * corelow.c (core_xfer_partial): Fix coding standards violation.
6003 Add support for TARGET_OBJECT_WCOOKIE.
6005 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6006 deprecated_pc_in_sigtramp.
6007 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6008 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6009 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6010 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6011 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6012 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6013 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6015 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6016 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6019 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6020 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6021 (amd64_collect_fxsave): Likewise.
6023 * i386-sol2-tdep.c: Include "gdb_string.h".
6024 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6026 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6028 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6030 * i386-sol2-tdep.c: Include "solib-svr4.h".
6031 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6032 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6033 * config/i386/tm-i386sol2.h: Include :solib.h".
6034 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6035 solib-svr4.o and solib-legacy.o.
6036 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6039 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6041 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6042 whether a register is supplied by PTRACE_GETFPREGS.
6043 (store_inferior_registers): Likewise.
6044 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6045 whether a register is supplied by PT_GETFPREGS.
6046 (store_inferior_registers): Likewise.
6048 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6049 * config/i386/linux64.mt (TDEPFILES): Likewise.
6051 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6053 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6054 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6055 the program counter is in the range specified by `struct
6057 * amd64-linux-tdep.c: Include "symtab.h".
6058 (amd64_linux_pc_in_sigtramp): Remove function.
6059 (amd64_linux_sigtramp_p): New function.
6060 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6061 deprecated_pc_in_sigtramp.
6062 * amd64nbsd-tdep.c: Include "symtab.h".
6063 (amd64nbsd_sigtramp_p): New function.
6064 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6065 deprecated_pc_in_sigtramp.
6066 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6068 (amd64obsd_pc_in_sigtramp): Remove function.
6069 (amd64obsd_sigtramp_p): New function.
6070 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6071 deprecated_pc_in_sigtramp.
6072 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6073 (i386bsd_pc_ins_sigtramp): Remove prototype.
6074 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6075 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6076 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6077 the program counter is in the range specified by `struct
6079 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6080 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6081 (i386_go32_pc_in_sigtramp): Remove function.
6082 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6083 Initialize TDEP->sigtramp_p.
6084 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6085 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6086 deprecated_pc_in_sigtramp.
6087 * i386-linux-tdep.c: Adjust comments.
6088 (i386_linux_pc_in_sigtramp): Remove function.
6089 (i386_linux_sigtramp_p): New function.
6090 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6091 deprecated_pc_in_sigtramp.
6092 * i386-nto-tdep.c: Update copyright year.
6093 (i386nto_pc_in_sigtramp): Remove function.
6094 (i386nto_sigtramp_p): New function.
6095 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6097 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6098 deprecated_pc_in_sigtramp.
6099 * i386-sol2-tdep.c: Update copyright year.
6100 (i386_sol2_pc_in_sigtramp): Remove function.
6101 (i386_sol2_sigtramp_p): New function.
6102 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6103 deprecated_pc_in_sigtramp.
6104 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6105 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6106 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6107 deprecated_sigtramp_start and deprecated_sigtramp_end.
6108 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6109 (i386nbsd_pc_in_sigtramp): Remove function.
6110 (i386nbsd_sigtramp_p): New function.
6111 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6112 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6113 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6114 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6115 (i386obsd_pc_in_sigtramp): Remove function.
6116 (i386obsd_sigtramp_p): New function.
6117 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6119 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6120 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6122 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6123 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6126 * config/i386/i386aout.mt: Remove file.
6128 * configure.tgt: Remove i[34567]86-*-go32*,
6129 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6130 and i[34567]86-*-isc*. Set gdb_target to i386 for
6131 i[34567]86-*-netware* and i[34567]86-*-*.
6132 * config/i386/i386.mt: New file.
6133 * config/i386/embed.mt: Remove file.
6134 * config/i386/go32.mt: Remove file.
6135 * config/i386/i386nw.mt: Remove file.
6136 * config/i386/i386v.mt: Remove file.
6137 * config/i386/tm-go32.h: Remove file.
6139 * tui/tui-hooks.c: Include "readline/readline.h" after
6140 "gdb_curses.h" instead of before.
6141 * tui/tui-io.c: Likewise.
6143 * tui/tui.c: Fix typo in comment.
6145 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6147 2004-04-08 Andrew Cagney <cagney@redhat.com>
6149 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6150 (deprecated_exception_support_initialized): Declare.
6151 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6152 (initialize_hp_cxx_exception_support)
6153 (child_enable_exception_callback): Update.
6154 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6155 (deprecated_exception_support_initialized): Rename
6156 deprecated_exception_catchpoints_are_fragile and
6157 deprecated_exception_support_initialized.
6158 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6160 * symtab.c (deprecated_hp_som_som_object_present): Rename
6161 hp_som_som_object_present.
6162 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6163 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6164 Update. Delete extern declaration.
6165 * valops.c (hp_som_som_object_present): Ditto.
6166 * parse.c (deprecated_hp_som_som_object_present)
6167 (parse_nested_classes_for_hpacc): Ditto.
6168 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6169 * hppa-hpux-tdep.c (hp_som_som_object_present)
6170 (initialize_hp_cxx_exception_support): Ditto.
6171 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6172 * cp-valprint.c (hp_som_som_object_present)
6173 (cp_print_class_method): Ditto.
6174 * c-typeprint.c (hp_som_som_object_present):
6175 (c_type_print_base): Ditto.
6176 * c-exp.y (hp_som_som_object_present): Ditto.
6178 2004-04-08 Andrew Cagney <cagney@redhat.com>
6180 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6181 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6182 (frame_unwind_find_by_frame): Re-implement the unwind code so
6183 that it can both prepend and append sniffers. Replace
6184 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6185 * tramp-frame.c (tramp_frame_append): Use
6186 frame_unwind_prepend_unwinder.
6187 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6188 frame_unwind_register_unwinder.
6189 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6191 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6192 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6193 (mips_linux_init_abi): Update.
6195 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6197 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6198 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6201 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6203 * ia64-tdep.c (elf.h): Don't include.
6204 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6206 2004-04-07 Jason Molenda (jmolenda@apple.com)
6208 * frame.h: Typeo corrections in comments.
6210 2004-04-07 Jim Blandy <jimb@redhat.com>
6212 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6215 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6217 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6218 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6219 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6220 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6222 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6224 * config/sparc/tm-sol2.h: Update copyright year. Include
6227 * sparc-sol2-tdep.c: Update copyright year. Include
6229 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6230 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6231 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6232 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6235 2004-04-06 Andrew Cagney <cagney@redhat.com>
6237 * infttrace.c: Include "infttrace.h".
6238 * infttrace.h: Include "target.h".
6239 * Makefile.in (infttrace_h): Update.
6240 (infttrace.o): Update.
6242 2004-04-06 Andrew Cagney <cagney@redhat.com>
6244 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6245 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6246 move extern declarations from here ...
6247 * infttrace.h: ... to here.
6248 * Makefile.in (hppah-nat.o): Update dependencies.
6250 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6251 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6252 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6253 (hppa_breakpoint_from_pc): Delete.
6255 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6257 2004-04-05 Andrew Cagney <cagney@redhat.com>
6259 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6260 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6263 2004-04-06 Randolph Chung <tausq@debian.org>
6265 Committed by Andrew Cagney (mechanical change).
6266 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6267 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6268 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6269 child_enable_exception_callback, current_ex_event,
6270 null_symtab_and_line, child_get_current_exception_event,
6271 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6272 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6273 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6274 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6275 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6276 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6277 Move hpux-specific definitions ...
6278 * hppa-hpux-tdep.c: ... to here.
6280 2004-04-05 Andrew Cagney <cagney@redhat.com>
6282 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6283 skip_prologue_using_sal.
6285 2004-04-05 Andrew Cagney <cagney@redhat.com>
6287 * config/i386/tm-i386.h: Delete file.
6288 * config/i386/tm-vxworks.h: Update copyright, do not include
6290 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6291 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6292 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6293 * config/i386/ncr3000.mt (TM_FILE): Delete.
6294 * config/i386/interix.mt (TM_FILE): Delete.
6295 * config/i386/i386v.mt (TM_FILE): Delete.
6296 * config/i386/i386nw.mt (TM_FILE): Delete.
6297 * config/i386/i386gnu.mt (TM_FILE): Delete.
6298 * config/i386/i386aout.mt (TM_FILE): Delete.
6299 * config/i386/embed.mt (TM_FILE): Delete.
6301 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6303 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6304 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6305 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6306 (accg7_regnum): New constants.
6307 (last_spr_regnum, last_pseudo_regnum): Update.
6308 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6309 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6310 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6312 (frv_register_sim_regno): Update spr_map[].
6314 2004-04-04 Andrew Cagney <cagney@redhat.com>
6316 * config/mips/xm-riscos.h: Delete.
6317 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6318 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6319 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6320 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6321 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6322 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6323 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6324 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6325 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6326 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6327 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6328 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6329 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6330 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6331 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6332 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6333 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6334 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6335 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6336 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6337 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6338 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6339 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6340 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6341 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6342 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6344 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6345 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6346 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6347 * configure.host: Remove m680[01]0-sun-sunos3*,
6348 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6349 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6350 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6351 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6353 * NEWS: Mention removed systems.
6355 2004-04-04 Andrew Cagney <cagney@redhat.com>
6357 GDB 6.1 release created from 6.1 branch.
6359 2004-04-04 Andrew Cagney <cagney@redhat.com>
6361 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6362 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6363 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6365 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6366 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6367 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6369 2004-04-03 Jim Blandy <jimb@redhat.com>
6371 * MAINTAINERS: Chris Faylor has changed employers; add him to
6372 "paper trail" section, and update his E-mail address.
6374 2004-04-03 Andrew Cagney <cagney@redhat.com>
6376 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6377 generic dummy frames.
6378 * dummy-frame.c: Update copyright.
6379 (dummy_frame_sniffer): Delete check for generic dummy frames.
6381 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6382 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6383 (REG_PARM_STACK_SPACE): Delete.
6384 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6385 Inline reference to REG_PARM_STACK_SPACE.
6387 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6388 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6389 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6390 (FRAME_BASE_BEFORE_SIGTRAMP)
6391 (hppa32_hpux_frame_base_before_sigtramp)
6392 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6393 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6394 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6395 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6396 (FRAME_BASE_BEFORE_SIGTRAMP)
6397 (hppa64_hpux_frame_base_before_sigtramp)
6398 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6400 2004-04-03 Andrew Cagney <cagney@redhat.com>
6402 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6404 2004-04-02 Andrew Cagney <cagney@redhat.com>
6406 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6407 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6408 * dummy-frame.h: Delete out-of-date comments.
6409 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6410 * gdbarch.h, gdbarch.c: Re-generate.
6412 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6414 Committed by Andrew Cagney <cagney@redhat.com>.
6415 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6416 into account an instruction saving a register if we have already
6417 seen an earlier instruction saving that same register.
6419 2004-04-02 Andrew Cagney <cagney@redhat.com>
6421 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6422 * gdbarch.h, gdbarch.c: Re-generate.
6423 * frame.c (legacy_get_prev_frame): Delete references to
6424 DEPRECATED_INIT_FRAME_PC_FIRST.
6426 * infrun.c (pc_in_sigtramp): Delete function.
6427 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6430 2004-04-02 Andrew Cagney <cagney@redhat.com>
6432 * infrun.c (handle_step_into_function): Delete code conditional on
6434 (handle_inferior_event, step_over_function): Ditto.
6436 2004-04-02 Andrew Cagney <cagney@redhat.com>
6438 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6439 "previous frame inner to this frame" test.
6441 2004-04-02 Andrew Cagney <cagney@redhat.com>
6443 * frame.c (safe_frame_unwind_memory): New function.
6444 * frame.h (safe_frame_unwind_memory): Declare. Update description
6446 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6447 "next_frame". Use safe_frame_unwind_memory.
6448 (tramp_frame_sniffer): Update call to tramp_frame_start.
6450 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6452 * dwarf2read.c (dwarf2_objfile_data_key): New.
6453 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6454 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6455 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6456 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6457 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6458 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6459 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6461 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6462 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6463 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6464 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6465 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6466 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6468 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6470 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6471 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6472 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6473 (read_partial_die, read_full_die, read_indirect_string)
6474 (dwarf_decode_line_header, dwarf_decode_macros)
6475 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6476 Update uses of removed variables.
6477 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6479 (_initialize_dwarf2_read): New function.
6480 * symfile.h (dwarf2_has_info): Update prototype.
6481 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6482 * elfread.c (elf_symfile_read): Likewise.
6484 2004-04-01 Jim Blandy <jimb@redhat.com>
6486 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6487 function for register numbers on all the rs6000-derived targets.
6488 (rs6000_gdbarch_init): Don't register a separate
6489 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6490 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6493 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6496 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6498 * valarith.c: Update copyright notice.
6499 (value_add): Handle range types.
6501 (value_equal): Ditto.
6502 (value_less): Ditto.
6504 (value_complement): Ditto.
6505 (value_binop): Simplify slightly by using is_integral_type and
6506 eliminiating unnecessary COERCE_ENUMs.
6508 2004-03-31 Andrew Cagney <cagney@redhat.com>
6510 * frame.h (frame_unwind_id): Declare.
6511 * frame.c (frame_unwind_id): New function.
6512 (get_prev_frame_1): New function.
6513 (frame_debug_got_null_frame): New function.
6514 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6515 code proper to prev_frame, update description.
6516 * infrun.c (step_over_function): Use frame_unwind_id.
6518 2004-04-31 J. Brobecker <brobecker@gnat.com>
6520 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6521 (hppa64_push_dummy_call): Likewise.
6523 2004-03-30 Jim Blandy <jimb@redhat.com>
6525 From Ulrich Weigand:
6526 * utils.c (query): Do not use a va_list variable multiple times.
6528 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6530 * Makefile.in (linux_nat_h): Update dependencies.
6531 * configure.in: Check for <gnu/libc-version.h>.
6532 * configure: Regenerate.
6533 * config.in: Regenerate.
6534 * linux-nat.h: Include "target.h". Add waitstatus field to
6536 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6537 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6539 (lin_lwp_handle_extended): New function. Handle clone events.
6540 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6542 (child_wait): Handle clone events.
6543 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6544 * linux-nat.c (linux_enable_event_reporting): Turn on
6545 PTRACE_O_TRACECLONE.
6546 (linux_handle_extended_wait): Handle clone events.
6547 * thread-db.c: Include <gnu/libc-version.h>.
6548 (struct private_thread_info): Add dying flag.
6549 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6551 (attach_thread): Update comments. Handle dying threads.
6552 (detach_thread): Set the dying flag.
6553 (check_event): Always call attach_thread.
6555 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6557 * mips-tdep.c (mips_pdr_data): New.
6558 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6559 (_initialize_mips_tdep): Initialize mips_pdr_data.
6561 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6563 * minsyms.c (install_minimal_symbols): Move dropping leading
6564 char from linkage name from here...
6565 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6566 test for "__gnu_compiled*" symbols.
6568 2004-03-28 Jim Blandy <jimb@redhat.com>
6570 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6571 registers to temp register r0 and byte stores as prologue
6574 2004-03-28 Andrew Cagney <cagney@redhat.com>
6576 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6579 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6581 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6582 and switch the layout to force a display of register window.
6584 2004-02-26 J. Brobecker <brobecker@gnat.com>
6586 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6587 of the INTEGER class.
6589 2004-03-26 Jim Blandy <jimb@redhat.com>
6591 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6592 bytes long on PPC GNU/Linux.
6594 2004-03-26 David Carlton <carlton@kealia.com>
6596 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6598 2004-03-25 Andrew Cagney <cagney@redhat.com>
6600 * PROBLEMS: Add general section titles, remove references to
6603 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6605 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6607 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6608 FP_REGISTER_VIRTUAL_SIZE.
6609 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6610 of DEPRECATED_REGISTER_RAW_SIZE.
6611 (arm_register_type): Add gdbarch argument.
6612 (arm_register_raw_size, arm_register_virtual_size): Delete.
6613 (arm_register_byte, arm_extract_return_value)
6614 (arm_store_return_value, arm_get_longjmp_target): Update references
6615 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6616 (arm_gdbarch_init): Likewise. Don't set
6617 deprecated_register_raw_size, deprecated_register_virtual_size,
6618 deprecated_max_register_raw_size,
6619 deprecated_max_register_virtual_size, or
6620 deprecated_max_register_virtual_type. Do set register_type.
6621 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6622 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6623 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6624 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6625 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6626 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6628 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6629 (remote_rdp_store_register): Likewise.
6631 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6633 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6634 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6635 to after osabi initialization.
6636 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6637 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6639 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6640 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6642 (mips_linux_init_abi): Append signal trampoline unwinders.
6644 2004-03-24 Andrew Cagney <cagney@redhat.com>
6646 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6647 * tramp-frame.c: Include "gdb_assert.h".
6648 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6650 (tramp_frame_append): Validate the tramp frame's instructions.
6651 * Makefile.in (tramp-frame.o): Update dependencies.
6653 2004-03-23 Andrew Cagney <cagney@redhat.com>
6655 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6657 2004-03-23 Andrew Cagney <cagney@redhat.com>
6659 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6660 Nasser as past testsuite/lib/ (and other) maintainers.
6662 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6664 * infcmd.c (attach_command): Reread symbols if we already have
6667 2004-03-23 Andrew Cagney <cagney@redhat.com>
6669 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6671 2004-03-23 Andrew Cagney <cagney@redhat.com>
6673 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6674 * gdbarch.h, gdbarch.c: Re-generate.
6675 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6676 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6677 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6678 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6679 (DEPRECATED_SIGTRAMP_START): Update.
6680 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6681 (DEPRECATED_SIGTRAMP_START): Update.
6682 * blockframe.c (find_pc_sect_partial_function): Update.
6683 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6685 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6687 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6690 2004-03-23 Andrew Cagney <cagney@redhat.com>
6692 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6693 predicate, deprecate.
6694 * gdbarch.h, gdbarch.c: Re-generate.
6695 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6696 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6697 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6698 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6699 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6700 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6701 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6702 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6703 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6704 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6705 * blockframe.c (find_pc_partial_function): Update.
6706 * breakpoint.c (bpstat_what): Update.
6707 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6708 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6709 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6710 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6711 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6712 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6713 * i386-nto-tdep.c (i386nto_init_abi): Update.
6714 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6715 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6716 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6717 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6718 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6719 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6720 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6721 * infrun.c (pc_in_sigtramp): Update.
6722 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6723 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6724 * mips-tdep.c (mips_gdbarch_init): Update.
6725 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6726 * ppc-linux-tdep.c: Update comment.
6727 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6728 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6729 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6730 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6731 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6732 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6733 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6734 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6735 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6736 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6738 2004-03-23 Andrew Cagney <cagney@redhat.com>
6740 * tramp-frame.h, tramp-frame.h: New files.
6741 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6742 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6744 * Makefile.in: Update all dependencies.
6746 2004-03-23 Andrew Cagney <cagney@redhat.com>
6748 * Makefile.in (trad_frame_h): Add $(frame_h).
6749 * trad-frame.h: Update copyright. Include "frame.h".
6750 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6751 (trad_frame_set_id, trad_frame_get_id): Declare.
6752 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6753 * trad-frame.c: Update copyright.
6754 (struct trad_frame_cache): Define.
6755 (trad_frame_cache_zalloc): New function.
6756 (trad_frame_set_id, trad_frame_get_id): New functions.
6757 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6759 2004-03-22 Andrew Cagney <cagney@redhat.com>
6761 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6762 s390_pltstub_unwind_cache.
6763 (s390_stub_frame_unwind_cache): Rename
6764 s390_pltstub_frame_unwind_cache.
6765 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6766 (s390_stub_frame_prev_register): Rename
6767 s390_pltstub_frame_prev_register.
6768 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6769 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6771 From Ulrich Weigand:
6772 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6773 pointer calls like PLT calls.
6775 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6777 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6778 PC rather than the partial function start address. Use the start
6779 address to sanity check the found PDR.
6781 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6783 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6784 linux_handle_extended_wait.
6786 2004-03-22 Andrew Cagney <cagney@redhat.com>
6788 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6791 * frame.h (generic_pop_current_frame): Delete declaration.
6792 (deprecate_pop_dummy_frame): Deprecate
6793 generic_pop_dummy_frame.
6794 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6795 (generic_pop_current_frame): Delete function.
6796 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6797 generic_pop_current_frame.
6798 * v850-tdep.c (v850_pop_frame): Update.
6799 * mcore-tdep.c (mcore_pop_frame): Update.
6800 * sh64-tdep.c (sh64_pop_frame): Update.
6801 * h8300-tdep.c (h8300_pop_frame): Update.
6803 2004-03-22 Andrew Cagney <cagney@redhat.com>
6805 * frame.h (deprecated_pc_in_call_dummy): Rename
6806 generic_pc_in_call_dummy.
6807 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6808 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6809 generic_pc_in_call_dummy.
6810 (pc_in_dummy_frame): Make static.
6811 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6812 * gdbarch.h, gdbarch.c: Re-generate.
6813 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6814 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6815 (legacy_get_prev_frame): Ditto.
6816 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6819 2004-03-21 Andrew Cagney <cagney@redhat.com>
6821 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6822 declaration and out-of-date comment.
6823 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6825 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6826 deprecated_pc_in_call_dummy.
6828 * infrun.c (handle_inferior_event): For non legacy frames, use the
6829 frame ID and frame type to identify a signal trampoline. Update
6832 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6834 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6835 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6837 2004-03-21 Andrew Cagney <cagney@redhat.com>
6839 * frame-unwind.h: Update copyright.
6840 (struct frame_data): Add opaque declaration.
6841 (frame_sniffer_ftype): Declare.
6842 (struct frame_unwind): Add "unwind_data" and "sniffer".
6843 (frame_unwind_register_unwinder): Declare.
6844 (frame_unwind_find_by_frame): Add parameter "this_cache".
6845 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6846 (legacy_get_prev_frame, legacy_get_prev_frame)
6847 (get_frame_type): Pass the prologue_cache to
6848 frame_unwind_find_by_frame.
6849 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6851 (frame_unwind_register_unwinder): New function.
6852 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6854 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6856 * bcache.c (print_percentage): Use floating point to avoid
6857 incorrect results when portion*100 overflows.
6859 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6861 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6862 (ppc_linux_init_extra_frame_info)
6863 (ppc_linux_frameless_function_invocation)
6864 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6865 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6866 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
6867 (rs6000_frame_chain): Delete declarations.
6868 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
6869 (ppc_linux_init_extra_frame_info)
6870 (ppc_linux_frameless_function_invocation)
6871 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
6872 (ppc_linux_init_abi): Remove registration of above deleted functions.
6873 * rs6000-tdep.c (rs6000_init_extra_frame_info)
6874 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
6875 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
6876 (rs6000_pop_frame, rs6000_frameless_function_invocation)
6877 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
6878 (rs6000_gdbarch_init): Remove registration of above deleted functions.
6879 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
6880 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
6881 frame management for all OSABIs.
6883 2004-03-19 Andrew Cagney <cagney@redhat.com>
6885 Committed by Kevin Buettner <kevinb@redhat.com>.
6887 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
6889 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
6890 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
6891 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
6892 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
6893 unwinders. #ifdef legacy frame code.
6894 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
6896 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
6897 (struct rs6000_frame_cache, rs6000_frame_cache)
6898 (rs6000_frame_this_id, rs6000_frame_prev_register)
6899 (rs6000_frame_sniffer, rs6000_frame_unwind)
6900 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
6901 (rs6000_frame_base): Implement a traditional frame unwinder.
6902 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
6905 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6907 * breakpoint.c (adjust_breakpoint_address): Don't adjust
6908 breakpoint address for watchpoints or the catch eventpoints.
6909 Add new paramter ``bptype''. Adjust all callers.
6911 2004-03-19 Andrew Cagney <cagney@redhat.com>
6913 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
6915 * PROBLEMS: Delete note that ARM does not use frame code, problem
6918 2004-03-18 Andrew Cagney <cagney@redhat.com>
6920 * stack.c (return_command): Delete code wrapped in #ifdef
6921 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
6923 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
6925 2004-03-18 Andrew Cagney <cagney@redhat.com>
6927 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
6928 DEPRECATED_IN_SIGTRAMP.
6929 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6930 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
6931 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6932 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6933 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6934 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6935 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6936 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
6937 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
6938 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
6940 2004-03-18 Andrew Cagney <cagney@redhat.com>
6942 * frame-base.c: Update copyright. Include "gdb_obstack.h".
6943 (struct frame_base_table_entry): Define.
6944 (struct frame_base_table): Re-implement as a linked list.
6945 (frame_base_init): Re-implement.
6946 (frame_base_table): Delete function.
6947 (append_predicate): Delete function.
6948 (frame_base_append_sniffer): Update.
6949 (frame_base_set_default): Update.
6950 (frame_base_find_by_frame): Update.
6951 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
6952 * Makefile.in (frame-base.o): Update dependencies.
6954 2004-03-17 Andrew Cagney <cagney@redhat.com>
6956 * frame.c (legacy_get_prev_frame): Pass correct frame to
6957 frame_unwind_find_by_frame.
6959 2004-03-17 David Carlton <carlton@kealia.com>
6961 * NEWS: Mention C++ nested types and namespaces
6963 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
6965 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
6966 and "Regressions since gdb 5.3.". Add known regressions since
6969 2004-03-16 David Carlton <carlton@kealia.com>
6971 * dwarf2read.c (process_structure_scope): Process children even
6972 when we're a declaration.
6974 2004-03-16 Andrew Cagney <cagney@redhat.com>
6976 * symtab.h (find_pc_sect_partial_function): Delete declaration.
6977 * blockframe.c (find_pc_partial_function)
6978 (find_pc_sect_partial_function): Merge into a single
6979 find_pc_partial_function.
6981 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6983 * i386bsd-nat.c: s/regno/regnum/g.
6984 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
6986 (store_inferior_registers): Likewise.
6988 2004-03-16 Mark Kettenis <kettenis@gnu.org>
6990 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
6992 (store_inferior_registers): Call i387_collect_fsave and
6993 i387_collect_fxsave instead of i387_fill_fsave and
6996 2004-03-15 Andrew Cagney <cagney@redhat.com>
6998 * Makefile.in (frame-unwind.o): Update dependencies.
6999 * frame-unwind.c: Include "gdb_obstack.h".
7000 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7002 (append_predicate): Delete function.
7003 (struct frame_unwind_table_entry): New structure.
7004 (struct frame_unwind_table): Replace "sniffer" with "head" and
7006 (frame_unwind_append_sniffer): Update.
7007 (frame_unwind_find_by_frame): Update.
7008 (_initialize_frame_unwind): Registe frame_unwind_init using
7009 gdbarch_data_register_pre_init.
7011 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7013 * i386bsd-nat.c: Update copyright year.
7014 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7015 define unconditionally.
7017 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7019 * i387-tdep.h (i387_collect_fsave): New prototype.
7020 * i387-tdep.c (i387_collect_fsave): New function containing most
7021 of the code from i387_fill_fsave.
7022 (i387_fill_fsave): Call i387_collect_fsave.
7024 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7026 * i386-linux-tdep.c: Update copyright year.
7027 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7028 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7029 svr4_ilp32_link_map_offsets instead of
7030 i386_linux_svr4_fetch_link_map_offsets.
7032 2004-03-15 David Carlton <carlton@kealia.com>
7034 Fix for PR c++/1553:
7035 * dwarf2read.c (read_structure_type): Determine type name by
7036 calling determine_class_name.
7037 (determine_class_name): New.
7038 (determine_prefix): Look at TYPE_TAG_NAME and call
7039 determine_class_name when appropriate.
7040 (determine_prefix_aux, class_name): Delete.
7041 (read_namespace): Set die->type.
7043 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7045 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7046 unused macro definition. The definition in target.h (or perhaps
7047 elsewhere) takes precedence.
7049 2004-03-15 Andrew Cagney <cagney@redhat.com>
7051 * ppc-tdep.h: Update copyright.
7052 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7053 function signatures to match "regsets.h".
7054 * ppc-linux-tdep.c: Include "regset.h".
7055 (ELF_GREGSET_SIZE): Delete.
7056 (right_supply_register): New function.
7057 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7058 using right_supply_register.
7059 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7061 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7062 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7063 (_initialize_ppc_linux_tdep): Do not register
7064 ppc_linux_regset_core_fns.
7065 (ppc_linux_regset_from_core_section): Replace
7066 fetch_core_registers.
7067 (ppc_linux_regset_core_fns): Delete.
7068 * ppc-linux-nat.c: (right_fill_reg): New function.
7069 (supply_gregset): Update call to ppc_linux_supply_gregset.
7070 (fill_gregset): Clear the register set, use right_fill_reg.
7071 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7072 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7074 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7077 2004-03-15 Andrew Cagney <cagney@redhat.com>
7079 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7080 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7081 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7082 and register_gdbarch_data.
7083 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7084 (struct gdbarch_data): Replace "init" by "pre_init" and
7086 * gdbarch.h, gdbarch.c: Re-generate.
7087 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7088 with"obstack", use OBSTACK_ZALLOC.
7089 (dwarf2_frame_ops): Delete.
7090 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7091 (dwarf2_frame_init_reg): Use gdbarch_data.
7092 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7093 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7094 (_initialize_svr4_solib): Update.
7095 * user-regs.c (_initialize_user_regs): Update.
7096 * reggroups.c (_initialize_reggroup): Update.
7097 * regcache.c (_initialize_regcache): Update.
7098 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7099 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7100 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7101 * frame-unwind.c (_initialize_frame_unwind): Update.
7102 * frame-base.c (_initialize_frame_base): Update.
7103 * user-regs.c (user_reg_add): Update.
7104 * reggroups.c (reggroup_add): Update.
7105 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7106 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7107 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7108 * frame-base.c (frame_base_table): Update.
7109 * remote.c (_initialize_remote): Update.
7110 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7112 2004-03-15 Andrew Cagney <cagney@redhat.com>
7114 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7116 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7118 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7119 * frv-linux-tdep.c: New file.
7120 * frv-tdep.c (struct gdbarch_tdep): Add new field
7121 ``sigcontext_reg_addr''.
7122 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7123 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7124 (frv_sigramp_frame_sniffer): New functions.
7125 (frv_sigtramp_frame_unwind): New static global.
7126 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7128 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7129 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7131 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7133 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7134 but not via a call to error(), when unable to read memory.
7136 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7138 * frv-tdep.c (frv_call_dummy_words): Delete.
7139 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7141 2004-03-15 Andrew Cagney <cagney@redhat.com>
7143 * infrun.c (handle_step_into_function, step_over_function): Only
7144 update and use STEP_FRAME_ID when the system is using legacy
7145 frames. Update comments.
7147 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7149 * amd64-linux-tdep.h: Remove file.
7150 * amd64-linux-tdep.c: Don't include "inferior.h" and
7151 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7152 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7153 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7154 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7155 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7157 (user_to_gdb_regmap): Remove variable.
7158 (amd64_linux_gregset_reg_offset): New variable.
7159 (amd64_core_fns): Remove variable.
7160 (fetch_core_registers): Remove function.
7161 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7163 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7164 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7165 * Makefile.in (amd64_linux_tdep_h): Remove.
7166 (amd64-linux-nat.o): Update dependencies.
7167 (amd64-linux-tdep.o): Update dependencies.
7169 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7170 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7172 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7174 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7175 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7177 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7179 * dwarf2read.c (read_structure_type): Rename from
7180 read_structure_scope. Don't create a symbol or call process_die.
7181 Return immediately if die->type is set. Call read_type_die before
7182 dwarf2_add_member_fn.
7183 (process_structure_scope): New function.
7184 (read_enumeration_type, process_enumeration_scope): New functions,
7185 broken out from read_enumeration. Don't create the enumeration
7186 type if it has already been created.
7187 (read_enumeration): Removed.
7188 (process_die): Call read_structure_type, process_structure_scope,
7189 read_enumeration_type, and process_enumeration_scope. Just call
7190 new_symbol for base and subrange types. Add a comment about other
7192 (read_type_die): Call read_enumeration_type.
7193 (add_partial_structure, new_symbol): Update comments.
7195 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7197 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7199 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7201 * tui/tui-win.h (tui_get_cmd_list): Declare.
7202 * tui/tui-win.c (tui_command): New function.
7203 (tui_get_cmd_list): New function.
7204 (_initialize_tui_win): Moved initialization of tui command in
7207 * tui/tui-data.c (init_content_element): Setup new data members.
7208 (init_win_info): Likewise.
7209 (free_content_elements): Free it.
7210 * tui/tui-data.h (struct tui_data_element): Store the register
7212 (struct tui_data_info): Keep the current register group.
7214 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7216 * tui/tui-regs.h (tui_show_registers): Update prototype.
7217 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7218 (tui_resize_all): No need to calculate anything for register window.
7219 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7220 (tui_set_register_element, tui_set_general_regs_content): Remove.
7221 (tui_set_special_regs_content): Remove.
7222 (tui_set_general_and_special_regs_content): Remove.
7223 (tui_set_float_regs_content): Remove.
7224 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7225 (tui_set_regs_content): Remove.
7226 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7227 (tui_v_show_registers_command_support): Remove.
7228 (tui_show_registers): Use a reggroup to specify the registers to show.
7229 (tui_show_register_group): New function.
7230 (tui_display_registers_from): Compute the layout of register window
7231 and refresh with new API; be sure to delete old register windows.
7232 (tui_check_register_values): Update to use tui_get_register and
7234 (tui_display_register): Just refresh the register window part.
7235 (tui_register_format): Format registers and save in tui_data_element.
7236 (tui_get_register): New to combine tui_reg_value_has_changed and
7237 tui_get_register_raw_value; fix to use the new gdb API.
7238 (tui_show_float_command): Renamed tui_reg_float_command.
7239 (tui_show_general_command): Renamed tui_reg_general_command.
7240 (tui_show_special_command): Renamed tui_reg_system_command.
7241 (_initialize_tui_regs): Remove unused commands.
7243 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7245 * NEWS (New native configurations): Mention OpenBSD/amd64.
7247 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7248 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7250 * config/i386/nm-fbsd64.h: Likewise.
7251 * config/i386/nm-obsd.h: Likewise.
7252 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7253 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7255 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7257 * frv-tdep.c (set_variant_scratch_registers): New function.
7258 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7261 From Richard Sandiford <rsandifo@redhat.com>:
7262 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7264 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7266 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7267 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7268 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7269 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7270 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7271 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7272 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7273 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7274 definitions from frv-tdep.c to frv-tdep.h.
7276 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7278 Add shared library support for FR-V FDPIC ABI:
7279 * Makefile.in (solib-frv.o): Add dependencies.
7280 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7282 (frv_push_dummy_call): Add support for FDPIC ABI.
7283 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7285 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7286 (frv_fdpic_find_canonical_descriptor): Declare.
7287 * solib-frv.c: New file.
7288 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7289 * config/frv/tm-frv.h (solib.h): Include.
7291 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7293 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7294 (frv-tdep.o): Update dependencies.
7295 * frv-tdep.h: New file.
7296 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7297 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7299 (struct gdbarch_tdep): Add new member ``frv_abi''.
7300 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7302 (new_variant): Set ``frv_abi'' field.
7303 (gdb_arch_init): Detect FDPIC executables.
7305 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7307 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7310 2004-03-11 Andrew Cagney <cagney@redhat.com>
7312 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7314 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7316 * solist.h (master_so_list): New function.
7317 * solib.c (master_so_list): Likewise.
7318 * solib-svr4.c (enable_break): Iterate over so_list entries
7319 obtained from master list instead of entries obtained directly
7320 via svr4_current_sos().
7322 2004-03-10 Ben Elliston <bje@gnu.org>
7324 * MAINTAINERS: Update my mail address.
7326 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7328 * remote-m32r-sdi.c: Support hardware watchpoint.
7330 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7332 * user-regs.c: Update copyright years.
7333 (struct user_regs): Rename to gdb_user_regs.
7334 (append_user_reg, builtin_user_regs, user_regs_init)
7335 (user_reg_add, user_reg_map_name_to_regnum)
7336 (usernum_to_user_reg): Update.
7338 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7340 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7341 (skip_children): New functions.
7342 (locate_pdi_sibling): Call skip_children.
7344 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7346 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7347 * gdbtypes.c (check_typedef): Update comments.
7349 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7351 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7352 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7353 pointer. Update comment about comp_unit_head.
7354 (struct abbrev_info): Shorten two int flags.
7355 (dwarf_alloc_abbrev): Take a CU argument.
7356 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7357 each time through the loop. Update cleanup argument.
7358 (psymtab_to_symtab_1): Update cleanup call.
7359 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7361 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7362 Just call obstack_free and clear the pointer.
7364 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7366 * infrun.c (handle_inferior_event): Remove short-circuit code for
7367 events in a different thread.
7369 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7371 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7372 print the whole transfer.
7373 (initialize_targets): Update description of "set debug target".
7375 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7377 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7379 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7381 * MAINTAINERS (write after approval): Add myself.
7383 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7385 * sh-tdep.c (sh_print_registers_info): Use for loop.
7386 Don't skip multiple registers when a float register is encountered.
7388 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7391 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7392 to official SH documentation.
7394 2004-03-07 Andrew Cagney <cagney@redhat.com>
7396 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7399 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7401 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7402 (arm_get_next_pc): Handle BX and BLX.
7404 2004-03-07 Andrew Cagney <cagney@redhat.com>
7406 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7407 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7409 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7410 (hppa_target_read_fp): Delete.
7411 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7412 register_virtual_size, max_register_raw_size,
7413 max_register_virtual_size, register_byte, register_size,
7414 target_read_fp, fp_regnum, and register_bytes. Set register_type
7415 instead of register_virtual_type.
7416 (hppa32_register_type, hppa64_register_type): Replace
7417 hppa32_register_virtual_type and hppa64_register_virtual_type.
7418 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7419 (HPPA_FP_REGNUM): Define.
7421 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7423 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7424 (pa_do_registers_info): Delete.
7425 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7426 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7427 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7429 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7430 GDB_TARGET_IS_HPPA code.
7431 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7432 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7433 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7434 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7435 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7436 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7437 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7438 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7439 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7440 (hppa_frameless_function_invocation, hppa64_store_return_value)
7441 (hppa_store_struct_return, hppa64_extract_return_value)
7442 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7443 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7444 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7445 (find_proc_framesize, deposit_21, restore_pc_queue)
7446 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7447 (rp_saved, pc_in_linker_stub): Delete.
7449 Unconditionally enable 64-bit frame and ABI code.
7450 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7451 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7452 push_dummy_frame, fix_call_dummy, push_arguments,
7453 call_dummy_location, extract_return_value, use_struct_convention,
7454 store_return_value, store_struct_return, saved_pc_after_call,
7455 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7456 frame_chain, frame_chain_valid, frameless_function_invocation,
7457 frame_saved_pc, and pop_frame.
7459 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7460 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7461 (hppa_gdbarch_init): Do not set PC_REGNUM.
7463 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7465 * config/alpha/tm-fbsd.h: Remove file.
7466 * config/alpha/fbsd.mt: Tweak comment.
7467 (TM_FILE): Set to tm-alpha.h.
7469 2004-03-05 Andrew Cagney <cagney@redhat.com>
7471 * infrun.c (step_over_function): When non-legacy code, and no
7472 step_frame_id, use the unwinder to get the caller's frame ID.
7474 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7476 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7477 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7478 bfd_arch_unknown. Adjust comment.
7480 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7481 * i386obsd-tdep.c: Correct spelling in comment.
7482 * i386nbsd-tdep.c: Correct spelling in comment.
7483 * sparc-tdep.c: Correct spelling in comments.
7485 2004-03-05 David Carlton <carlton@kealia.com>
7487 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7490 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7492 * sparc-tdep.c: Fix typo in comment.
7494 2004-03-04 J. Brobecker <brobecker@gnat.com>
7496 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7498 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7500 * dwarf2read.c: Add comment describing memory lifetimes.
7501 (struct dwarf2_pinfo): Update comment.
7502 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7503 (read_enumeration, new_symbol): Don't use obsavestring.
7505 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7507 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7508 instead of amd64_fill_fxsave.
7509 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7510 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7512 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7513 Reorganize code a bit.
7515 2004-03-04 Orjan Friberg <orjanf@axis.com>
7517 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7518 when the frame pointer is pushed. Don't set the frame pointer's
7519 address on the stack unless it's actually located there.
7520 Set the SRP's address on the stack correctly when the PC is still in
7522 (cris_return_value): New function.
7523 (cris_gdbarch_init): Clear deprecated store_return_value,
7524 extract_return_value.
7526 2004-03-02 Jim Blandy <jimb@redhat.com>
7528 * stabsread.c (reg_value_complaint): The maximum register number
7529 is one less than the number of registers.
7531 2004-03-02 Andrew Cagney <cagney@redhat.com>
7533 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7534 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7535 trailing comma and redundant assignment of I386_ST0_REGNUM.
7536 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7537 32-bit segment registers.
7539 2004-03-01 Andrew Cagney <cagney@redhat.com>
7541 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7542 use frame_relative_level and get_next_frame.
7544 2004-02-29 Andrew Cagney <cagney@redhat.com>
7546 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7547 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7548 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7551 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7553 * inflow.c (terminal_inferior): Don't give up the terminal if we
7554 previously couldn't get the inferior's terminal state.
7556 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7558 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7561 2004-02-28 Andrew Cagney <cagney@redhat.com>
7563 * NEWS: Refer to GDB 6.1.
7564 * README: Refer to GDB 6.1.
7565 * PROBLEMS: Refer to GDB 6.1.
7567 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7569 * thread-db.c (disable_thread_signals): Remove unused function.
7571 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7573 * amd64-nat.c: Include "gdb_string.h".
7574 (amd64_collect_native_gregset): Zero-extend the 32-bit
7575 general-purpose registers and %eip.
7577 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7578 * amd64-tdep.c (amd64_collect_fxsave): New function.
7579 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7581 * i387-tdep.h: Update copyright year.
7582 (i387_collect_fxsave): New prototype.
7583 * i387-tdep.c: Update copyright year.
7584 (i387_collect_fxsave): New function containing most of the code
7585 from i387_fill_fxsave.
7586 (i387_fill_fxsave): Call i387_collect_fxsave.
7588 2004-02-28 Andrew Cagney <cagney@redhat.com>
7590 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7591 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7593 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7595 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7597 2004-02-28 Andrew Cagney <cagney@redhat.com>
7599 * utils.c: Use "", instead of <>, to include readline.
7600 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7601 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7602 * source.c, solib.c, exec.c, event-top.c: Ditto.
7603 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7604 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7605 * Makefile.in: Update all dependencies.
7606 (readline_tilde_h, readline_history_h): Define.
7607 (readline_headers): Delete.
7609 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7611 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7612 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7613 "config/i386/tm-lx64.h".
7615 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7616 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7617 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7619 2004-02-28 Andrew Cagney <cagney@redhat.com>
7621 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7623 * breakpoint.c (_initialize_breakpoint): Use
7624 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7625 Add help to show command.
7627 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7629 * i386-nat.c: Reformat to be closer to coding standards.
7630 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7631 `retval'. Make variables `align' and `size' local to while-loop.
7632 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7633 (_initialize_i386_nat): New prototype.
7635 * tui/tui.c: Include <readline/readline.h> instead of
7636 "readline/readline.h". Include it after <term.h> and
7639 2004-02-27 Andrew Cagney <cagney@redhat.com>
7641 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7642 the new frame unwind code.
7643 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7644 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7647 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7648 "return_value" and "push_dummy_call".
7649 (hppa32_use_struct_convention): Delete unused function.
7650 (hppa32_store_return_value): Delete unused function.
7651 (hppa32_extract_return_value): Delete unused function.
7652 (hppa32_stack_align): Delete function.
7654 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7656 * coffread.c (enter_linenos): Don't let rawptr reference memory
7657 outside linetab[]'s limits.
7659 2004-02-27 Andrew Cagney <cagney@redhat.com>
7661 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7662 inferior stack space - the stack needs to grow upwards.
7663 (hppa32_frame_align): New function.
7664 (hppa64_frame_align): Replace hppa_frame_align.
7665 (hppa_gdbarch_init): Update.
7667 2004-02-26 Orjan Friberg <orjanf@axis.com>
7669 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7670 (dwarf2-frame.h): Include.
7671 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7672 Remove static variables related to ABI setting.
7673 (struct gdbarch_tdep): Remove cris_abi member.
7674 (struct frame_extra_info): Remove.
7675 (cris_unwind_cache, stack_item): New structs.
7676 (cris_frame_unwind, cris_frame_base): New variables.
7677 (push_stack_item, pop_stack_item)
7678 (cris_frame_unwind_cache, cris_frame_this_id)
7679 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7680 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7681 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7682 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7683 (cris_reg_struct_has_addr): New functions.
7684 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7685 (cris_frame_saved_pc, cris_saved_pc_after_call,
7686 (cris_store_struct_return, cris_frameless_function_invocation)
7687 (cris_pop_frame, cris_skip_prologue_main)
7688 (cris_abi_original_store_return_value)
7689 (cris_abi_v2_store_return_value)
7690 (cris_abi_original_extract_return_value)
7691 (cris_abi_v2_extract_return_value)
7692 (cris_abi_original_reg_struct_has_addr)
7693 (cris_abi_v2_reg_struct_has_addr)
7694 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7695 (cris_push_return_address, cris_abi_update): Remove.
7696 (_initialize_cris_tdep): Remove ABI command.
7697 (cris_dump_tdep): Ditto.
7698 (cris_gdbarch_init): Remove ABI command.
7699 Set store_return_value, extract_return_value, push_dummy_code,
7700 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7701 frame_unwind_append_sniffer, frame_base_set_default.
7702 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7703 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7704 sizeof_call_dummy_words, get_saved_register, push_return_address,
7705 pop_frame, store_struct_return, frame_init_saved_regs,
7706 init_extra_frame_info, frameless_function_invocation, frame_chain,
7707 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7710 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7712 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7713 * valprint.c (print_hex_chars): Change from static to external.
7714 (print_char_chars): New function.
7715 * printcmd.c (print_scalar_formatted): For integer and enum types
7716 that are longer than LONGEST, perform processing via appropriate
7717 print_*_chars routines.
7719 2004-02-26 Andrew Cagney <cagney@redhat.com>
7721 * Makefile.in: Update dependencies.
7722 Changes from Ulrich Weigand,
7723 * s390-tdep.c: Include "dwarf2-frame.h".
7724 (s390_dwarf2_frame_init_reg): New function.
7725 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7726 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7728 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7730 * breakpoint.c (pending_break_support): New setting variable.
7731 (break_command_1): Account for pending_break_support setting
7732 when creating pending breakpoints.
7733 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7734 (_initialize_breakpoint): Add "set breakpoint pending" and
7735 "show breakpoint pending" commands.
7737 2004-02-26 Andrew Cagney <cagney@redhat.com>
7740 * charset.c (backslashable, backslashed, represented): Remove 'e'
7741 from list of escaped characters, not part of ISO-C.
7743 2004-02-25 J. Brobecker <brobecker@gnat.com>
7745 From Peter Schauer <schauer@pdf.de>:
7746 * tui/tui.c: Move system header includes after local includes.
7747 Fixes a build failure on solaris systems.
7749 2004-02-25 J. Brobecker <brobecker@gnat.com>
7751 * configure.in: Refine the previous change.
7752 * configure: Regenerate.
7754 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7756 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7757 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7758 "amd64-tdep.h" instead of "x86-64-tdep.h".
7759 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7760 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7761 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7762 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7763 and "x86-64-tdep.c".
7764 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7765 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7766 and "x86-64-tdep.c".
7767 * amd64bsd-nat.c: Update copyright year.
7768 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7769 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7771 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7773 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7775 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7777 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7779 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7781 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7782 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7783 * Makefile.in (amd64_linux_tdep_h): Renamed from
7784 x86_64_linux_tdep_h.
7785 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7786 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7787 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7788 (amd64obsd-tdep.o): Update dependencies.
7789 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7791 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7793 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7794 amd64-linux-nat.c amd64-linux-tdep.c.
7795 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7796 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7797 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7798 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7799 amd64-tdep.o and amd64-linux-tdep.o.
7800 (TM_FILE): Set to tm-linux64.h.
7801 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7802 (NAT_FILE): Set to nm-linux64.h.
7803 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7804 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7806 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7808 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7811 2004-02-25 Roland McGrath <roland@redhat.com>
7813 * remote.c (remote_protocol_qPart_auxv): New variable.
7814 (init_all_packet_configs): Initialize it.
7815 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7816 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7817 (show_remote_cmd): Call it.
7818 (_initialize_remote): Initialize commands.
7819 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7820 service TARGET_OBJECT_AUXV requests.
7822 2004-02-25 J. Brobecker <brobecker@gnat.com>
7824 * configure.in: Make sure that the wborder function is available.
7825 Otherwise, search for it in the cur_colr library.
7826 * configure: Regenerate.
7828 2004-02-25 Andrew Cagney <cagney@redhat.com>
7830 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7832 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7834 * config/i386/tm-x86-64linux.h: Tweak comments.
7836 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7838 * MAINTAINERS: Add self to write-after-approval list.
7840 2004-02-25 Andrew Cagney <cagney@redhat.com>
7842 PR cli/1566. Problem found, and fix suggested by David Allan.
7843 * cli/cli-script.c (execute_control_command): Unconditionally
7844 install a cleanup. Default "ret" to "invalid_control". Use
7845 "break" instead of "return" to escape from the switch.
7847 2004-02-24 J. Brobecker <brobecker@gnat.com>
7849 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7850 with the lines macro defined in term.h on AiX.
7851 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7852 a collision with the label_width macro defined in term.h on AiX.
7854 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7856 Committed by Kevin Buettner <kevinb@redhat.com>.
7858 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7859 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7860 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7861 instead of ia64_write_pc().
7862 * ia64-linux-tdep.c (regcache.h): Include.
7863 (ia64_linux_write_pc): New function.
7865 2004-02-23 Roland McGrath <roland@redhat.com>
7867 * auxv.c (info_auxv_command): Fix typos in error messages.
7869 2004-02-23 Mark Kettenis <kettenis@gnu.org>
7871 * x86-64-tdep.h: Tweak comment.
7872 (enum amd64_regnum): New.
7873 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
7874 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
7875 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
7876 (X86_64_XMM1_REGNUM): Removed.
7877 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
7878 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
7879 prototypes for renamed functions.
7880 * x86-64-tdep.c: Fix typo.
7881 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
7883 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
7884 Use constants from `enum amd64_regnum' for register numbers.
7885 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
7886 (amd64_analyze_prologue, amd64_frame_cache,
7887 amd64_sigtramp_frame_cache): Use constants from `enum
7888 amd64_regnum' for register numbers.
7889 (amd64_supply_fpregset): Adjust for renamed functions.
7890 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
7891 `enum amd64_regnum' for register numbers.
7892 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
7893 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
7894 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
7895 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
7896 (amd64_linux_fill_gregset): Adjust for renamed macros.
7897 (fetch_core_registers): Adjust for renamed functions.
7898 (amd64_linux_init_abi): Adjust for renamed functions.
7899 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
7901 * amd64-nat.c: Adjust for renamed macros.
7902 * amd64bsd-nat.c (fetch_inferior_registers)
7903 (store_inferior_registers): Use constants from `enum amd64_regnum'
7904 for register numbers. Adjust for renamed variables.
7905 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
7907 (_initialize_amd64fbsd_nat): Use constants from `enum
7908 amd64_regnum' for register numbers.
7909 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
7910 `enum amd64_regnum' for register numbers.
7911 (amd64fbsd_init_abi): Adjust for renamed functions.
7912 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
7913 `enum amd64_regnum' for register numbers.
7914 (amd64nbsd_init_abi): Adjust for renamed functions.
7915 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
7916 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
7917 `enum amd64_regnum' for register numbers.
7918 (amd64obsd_init_abi): Adjust for renamed functions.
7919 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
7921 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7923 * breakpoint.c (print_one_breakpoint): Do not output spaces
7924 after printing <PENDING> for a pending breakpoint.
7926 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7928 * printcmd.c (print_scalar_formatted): Initialize val_long
7929 to remove compiler warning message.
7931 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
7933 * defs.h (nquery, yquery): New prototypes.
7934 * breakpoint.c (break_command_1): Use new nquery interface.
7935 * utils.c (defaulted_query, nquery, yquery): New functions.
7937 2004-02-23 Andrew Cagney <cagney@redhat.com>
7939 * hppa-tdep.c (hppa_frame_align): New function.
7940 (hppa32_push_dummy_call): New function.
7941 (hppa64_push_dummy_call): New function.
7942 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
7945 * infcall.c (legacy_push_dummy_code): Don't call deprecated
7946 FIX_CALL_DUMMY when push_dummy_call is available.
7947 (call_function_by_hand, push_dummy_code): Ditto.
7949 2004-02-22 Andrew Cagney <cagney@redhat.com>
7951 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
7952 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
7953 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
7954 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
7955 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
7956 call_dummy_location to ON_STACK.
7958 2004-02-22 Mark Kettenis <kettenis@gnu.org>
7960 * x86-64-linux-tdep.c: Tweak comment.
7961 (amd64_linux_supply_gregset): Renamed from
7962 x86_64_linux_supply_gresget.
7963 (amd64_linux_fill_gregset): Renamed from
7964 x86_64_linux_fill_gregset.
7965 (fetch_core_registers): Adjust for renamed functions.
7966 (amd64_core_fns): Renamed from x86_64_core_fns.
7967 (amd64_linux_sigtramp_start): Renamed from
7968 x86_64_linux_sigtramp_start.
7969 (amd64_linux_pc_in_sigtramp): Renamed from
7970 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
7971 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
7972 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
7973 (amd64_linux_sigcontext_addr): Renamed from
7974 x86_64_linux_sigcontext_addr.
7975 (amd64_linux_sc_reg_offset): Renamed from
7976 x86_64_linux_sc_reg_offset.
7977 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
7978 Adjust for renamed functions and variables.
7979 (_initialize_amd64_linux_tdep): Renamed from
7980 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
7982 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
7983 Adjust for renamed functions.
7985 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
7986 from x86_64_linux_gregset64_reg_offset.
7987 (amd64_linux_gregset32_reg_offset): Rename from
7988 x86_64_linux_gregset64_reg_offset.
7989 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
7990 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
7991 (amd64_linux_dr_set_control): Renamed from
7992 x86_64_linux_dr_set_control. Adjust for renamed functions.
7993 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
7994 Adjust for renamed functions.
7995 (amd64_linux_dr_reset_addr): Renamed from
7996 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
7997 (amd64_linux_dr_get_status): Renamed from
7998 x86_64_linux_dr_get_status. Adjust for renamed functions.
7999 (_initialize_amd64_linux_nat): Renamed from
8000 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8002 * config/i386/nm-x86-64linux.h: Update copyright year.
8003 Adjust for renamed functions.
8005 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8006 amd64fbsd_sigtramp_start.
8007 (amd64fbsd_sigtramp_end_addr): Renamed from
8008 amd64fbsd_sigtramp_end.
8009 (amd64fbsd_init_abi): Adjust for renamed variables.
8010 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8012 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8013 amd64fbsd_sigtramp_start.
8014 (amd64fbsd_sigtramp_end_addr): Renamed from
8015 amd64fbsd_sigtramp_end.
8017 2004-02-22 Andrew Cagney <cagney@redhat.com>
8019 * hppa-tdep.c (hppa32_return_value): New function.
8020 (hppa64_return_value): New function.
8021 (hppa_gdbarch_init): Set return_value; keep disabled.
8023 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8024 struct-return and inferior function call methods.
8026 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8028 (struct hppa_frame_cache): Define.
8029 (hppa_frame_cache, hppa_frame_this_id): New functions.
8030 (hppa_frame_prev_register): New function.
8031 (hppa_frame_unwind, hppa_frame_base): New variables.
8032 (hppa_frame_unwind_sniffer): New function.
8033 (hppa_frame_base_address, hppa_unwind_pc): New function.
8034 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8035 sniffer, and frame base sniffer; keep disabled.
8036 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8037 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8039 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8040 to predicates for "seriously old code".
8042 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8045 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8047 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8049 * config/pa/tm-hppa.h: Update copyright.
8050 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8051 (deprecated_init_frame_pc_default): Delete declaration.
8052 (hppa_frame_init_saved_regs): Delete declaration.
8053 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8054 * hppa-tdep.c: Include "arch-utils.h".
8055 (hppa_gdbarch_init): Set deprecated init_frame_pc
8056 and deprecated frame_init_saved_regs.
8057 (hppa_frame_init_saved_regs): Make static.
8059 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8061 Remove old 386BSD support.
8062 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8063 * configure.host: Remove i[34567]86-*-bsd*.
8064 * configure.tgt: Remove i[34567]86-*-bsd*.
8065 * i386b-nat.c: Removed.
8066 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8067 (i386b-nat.o): Remove dependencies.
8069 * config/i386/i386bsd.mh: Removed.
8070 * config/i386/i386bsd.mt: Removed.
8071 * config/i386/nm-i386bsd.h: Removed.
8072 * config/i386/tm-i386bsd.h: Removed.
8073 * config/i386/xm-i386bsd.h: Removed.
8075 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8077 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8078 (amd64fbsd_init_abi): Set link map offsets.
8079 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8080 (amd64nbsd_init_abi): Set link map offsets.
8081 * amd64obsd-tdep.c: Include "solib-svr4.h".
8082 (amd64obsd_init_abi): Set link map offsets.
8083 * i386fbsd-tdep.c: Include "solib-svr4.h".
8084 (i386fbsd_init_abi): Set link map offsets.
8085 * i386nbsd-tdep.c: Include "solib-svr4.h".
8086 (i386nbsdelf_init_abi): Set link map offsets.
8087 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8088 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8089 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8090 solib-legacy.o and core-aout.o. Reformat.
8091 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8092 solib-svr4.o, solib-legacy.o. Reformat.
8093 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8094 * config/i386/nbsdelf.mh: Reformat.
8095 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8096 solib-svr4.o, solib-legacy.o and corelow.o.
8097 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8098 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8099 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8100 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8101 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8102 (TM_FILE): Set to tm-fbsd.h.
8103 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8104 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8106 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8108 (TM_FILE): Set to nm-nbsd.h.
8109 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8110 Simplify shared library support. Don't include "elf/common.h".
8111 (SVR4_SHARED_LIBS): Don't define.
8112 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8114 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8115 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8116 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8117 Don't include "i386/tm-i386.h". Include "solib.h".
8118 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8119 Don't include "i386/tm-i386.h".
8120 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8121 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8122 Include "i386/xm-i386.h".
8123 (HOST_LONG_DOUBLE_FORMAT): Remove.
8125 Fix OpenBSD/i386 sigtramp recognition.
8126 * i386-tdep.h: Update copyright year.
8127 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8128 (i386bsd_sigtramp_end): New prototypes.
8129 (i386fbsd_sigtramp_start_addr): Renamed from
8130 i386fbsd_sigtramp_start.
8131 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8132 (i386obsd_sigtramp_start_addr): Renamed from
8133 i386obsd_sigtramp_start.
8134 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8135 * i386bsd-tdep.c: Update copyright year.
8136 (i386bsd_pc_in_sigtramp): Make public.
8137 * i386fbsd-nat.c: Update copyright year.
8138 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8139 * i386fbsd-tdep.c: Update copyright year.
8140 (i386fbsd_sigtramp_start_addr): Renamed from
8141 i386fbsd_sigtramp_start.
8142 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8143 (i386fbsdaout_init_abi): Adjust for renamed variables.
8144 * i386obsd-nat.c: Update copyright year.
8145 (_initialize_i386obsd_nat): Adjust for renamed variables.
8146 * i386obsd-tdep.c: Include "target.h".
8147 (i386obsd_page_size): New variable.
8148 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8149 (i386obsd_sigtramp_end): New functions.
8150 (i386obsd_sigtramp_start_addr): Renamed from
8151 i386obsd_sigtramp_start.
8152 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8153 (i386obsd_init_abi): Adjust for renamed variables. Set
8154 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8155 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8157 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8158 trampoline change in OpenBSD kernel.
8160 * amd64-nat.c: Update copyright year.
8161 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8162 architecture from REGCACHE.
8164 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8165 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8167 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8169 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8170 i[34567]86-*-openbsd3.[0-3].
8171 * config/i386/obsdaout.mh: New file.
8173 * config/i386/obsd.mh (MH_FLAGS): Remove.
8176 * i386obsd-tdep.c: Update copyright years. Include
8178 (i386obsd_init_abi): Don't set regset_from_core_section here.
8179 (i386obsd_aout_init_abi): New function. Set
8180 regset_from_core_section here.
8181 (i386obsd_elf_init_abi): New function.
8182 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8183 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8184 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8185 (TM_FILE): Set to tm-nbsd.h.
8187 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8190 * solib-svr4.h: Update copyright year.
8191 (svr4_ilp32_fetch_link_map_offsets)
8192 (svr4_lp64_fetch_link_map_offsets): New prototype.
8193 * solib-svr4.c: Update copyright year.
8194 (svr4_ilp32_fetch_link_map_offsets)
8195 (svr4_lp64_fetch_link_map_offsets): New function.
8197 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8199 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8200 to the partial symbol table.
8202 2004-02-20 J. brobecker <brobecker@gnat.com>
8204 * PROBLEMS: Add description of problem documented under gdb/1560.
8206 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8208 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8210 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8212 (amd64obsd_init_abi): Reorder initializations. Use
8213 amd64obsd_r_reg_offset to initialize the general-purpose register
8214 set details. Set regset_from_core_section.
8215 (_initialize_amd64obsd_tdep): Rename from
8216 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8217 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8218 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8220 * NEWS (New native configurations): Mention OpenBSD/alpha.
8221 * configure.tgt: Add alpha*-*-openbsd*.
8222 * configure.host: Add alpha*-*-openbsd*.
8223 * alphanbsd-tdep.c: Update copyright year.
8224 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8226 2004-02-20 Andrew Cagney <cagney@redhat.com>
8229 * configure.tgt: Delete target "none-*-*".
8230 * configure.host: Delete host "none-*-*".
8231 * config/none/none.mh: Delete file.
8232 * config/none/none.mt: Delete file.
8233 * config/none/xm-none.h: Delete file.
8234 * config/none/tm-none.h: Delete file.
8235 * config/none/nm-none.h: Delete file.
8237 2004-02-19 Fred Fish <fnf@redhat.com>
8239 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8240 cache->uses_fp prior to setting it.
8242 2004-02-19 Fred Fish <fnf@redhat.com>
8244 Fix for PR breakpoint/1558.
8245 * sh-tdep.c (IS_JSR): New macro.
8246 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8248 2004-02-19 Jim Blandy <jimb@redhat.com>
8250 * findvar.c (value_from_register): Doc fix.
8252 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8254 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8255 type being greater than sizeof of host's LONGEST. Always use
8256 unpack_long() unless format 'f' chosen.
8258 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8260 Committed by Elena Zannoni <ezannoni@redhat.com>
8262 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8263 contains a symbol wich is the best, non-exact match for the given
8264 pc. Update comments.
8266 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8268 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8269 macro, which was part of the now removed Mach 3 port.
8270 * utils.c (request_quit): Ditto.
8272 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8274 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8275 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8277 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8279 Committed by Mark Kettenis <kettenis@gnu.org>.
8281 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8284 2004-02-18 Andrew Cagney <cagney@redhat.com>
8286 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8287 CONFIG_INSTALL and CONFIG_UNINSTALL.
8288 * configure: Re-generate.
8289 * interps.h (INTERP_TUI): Define.
8290 * Makefile.in: Update dependencies.
8292 (tui-main.o): Specify dependencies.
8293 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8294 * tui/tui-main.c: New file.
8296 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8298 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8299 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8301 * configure.host: Add x86_64-*-openbsd*.
8302 * configure.tgt: Add x86_64-*-openbsd*.
8303 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8305 * tui/tui.c: Don't include <malloc.h>.
8307 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8308 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8311 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8312 static. Remove extraneous whitespace.
8313 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8316 2004-02-17 Jim Blandy <jimb@redhat.com>
8318 * findvar.c (value_from_register): Doc fix.
8320 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8322 Committed by Jim Blandy <jimb@redhat.com>.
8324 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8325 CORE_ADDR as type for selectors. Correct types for GNU run time
8326 message lookup function to use double indirection.
8327 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8328 * objc-lang.h (lookup_child_selector): Adapt prototype.
8330 * s390-nat.c (SUBOFF): New macro.
8331 (supply_gregset, fill_gregset): Use it to handle debugging
8332 of 32-bit exectuables running under a 64-bit kernel.
8333 * s390-tdep.c: Include "solib-svr4.h".
8334 (s390_svr4_fetch_link_map_offset): New function.
8335 (s390x_svr_fetch_link_map_offset): Likewise.
8336 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8337 * Makefile.in (s390-tdep.o): Update dependencies.
8339 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8341 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8342 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8343 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8344 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8345 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8346 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8347 S390_SIGNAL_FRAMESIZE,
8348 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8349 (struct frame_extra_info): Remove.
8350 (s390_memset_extra_info): Remove.
8351 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8352 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8353 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8354 (is_rse): Renamed to ...
8355 (is_rsy): ... this. Support long displacements.
8356 (is_rxe): Renamed to ...
8357 (is_rxy): ... this. Support long displacements.
8358 (compute_x_addr): Support long displacements.
8359 (struct s390_prologue_data): New data type.
8360 (s390_on_stack): Change API to use struct s390_prologue_data.
8361 (s390_store): Reimplement.
8362 (s390_load): New function.
8363 (s390_get_signal_frame_info): Remove.
8364 (s390_get_frame_info): Remove, replace by ...
8365 (s390_analyze_prolog): ... this new function.
8366 (s390_check_function_end): Remove.
8367 (s390_function_start): Remove.
8368 (s390_frameless_function_invokation): Remove.
8369 (s390_is_sigreturn): Remove.
8370 (s390_init_frame_pc_first): Remove.
8371 (s390_init_frame_extra_info): Remove.
8372 (s390_frame_init_saved_regs): Remove.
8373 (s390_frame_saved_pc_nofix): Remove.
8374 (s390_frame_saved_pc): Remove.
8375 (s390_frame_chain): Remove.
8376 (s390_fp_regnum, s390_read_fp): Remove.
8377 (s390_pop_frame_regular, s390_pop_frame): Remove.
8378 (s390_saved_pc_after_call): Remove.
8379 (s390_skip_prologue): Reimplement.
8380 (s390_in_function_epilogue_p): Support long displacements.
8381 (struct s390_unwind_cache): New data structure.
8382 (s390_frame_unwind_cache): New function.
8383 (s390_prologue_frame_unwind_cache): Likewise.
8384 (s390_backchain_frame_unwind_cache): Likewise.
8385 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8386 (s390_frame_unwind): Define.
8387 (s390_frame_sniffer): New function.
8388 (struct s390_pltstub_unwind_cache): New data structure.
8389 (s390_pltstub_frame_unwind_cache): New function.
8390 (s390_pltstub_frame_this_id): Likewise.
8391 (s390_pltstub_frame_prev_register): Likewise.
8392 (s390_pltstub_frame_unwind): Define.
8393 (s390_pltstub_frame_sniffer): New function.
8394 (struct s390_sigtramp_unwind_cache): New data structure.
8395 (s390_sigtramp_frame_unwind_cache): New function.
8396 (s390_sigtramp_frame_this_id): Likewise.
8397 (s390_sigtramp_frame_prev_register): Likewise.
8398 (s390_sigtramp_frame_unwind): Define.
8399 (s390_sigtramp_frame_sniffer): New function.
8400 (s390_frame_base_address, s390_local_base_address): New functions.
8401 (s390_frame_base): Define.
8402 (s390_unwind_pc, s390_unwind_sp): New function.
8403 (s390_push_dummy_call): Use new frame base location.
8404 (s390_unwind_dummy_id): Likewise.
8405 (s390_gdbarch_init): Remove calls to:
8406 set_gdbarch_frameless_function_invocation,
8407 set_gdbarch_deprecated_init_frame_pc,
8408 set_gdbarch_deprecated_frame_chain,
8409 set_gdbarch_deprecated_frame_init_saved_regs,
8410 set_gdbarch_deprecated_pop_frame,
8411 set_gdbarch_deprecated_init_extra_frame_info,
8412 set_gdbarch_deprecated_init_frame_pc_first,
8413 set_gdbarch_deprecated_target_read_fp,
8414 set_gdbarch_deprecated_frame_saved_pc,
8415 set_gdbarch_deprecated_saved_pc_after_call,
8416 set_gdbarch_deprecated_fp_regnum.
8418 set_gdbarch_in_solib_call_trampoline,
8419 frame_unwind_append_sniffer,
8420 frame_base_set_default,
8421 set_gdbarch_unwind_pc,
8422 set_gdbarch_unwind_sp.
8423 * Makefile.in (s390-tdep.o): Update dependencies.
8425 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8426 (S390_STACK_FRAME_OVERHEAD): Remove.
8427 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8428 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8429 (s390_promote_integer_argument): Remove.
8430 (s390_cannot_extract_struct_value_address): Remove.
8431 (s390_use_struct_convention, s390_store_struct_return): Remove.
8432 (s390_extract_return_value, s390_store_return_value): Remove.
8433 (s390_return_value_convention, s390_return_value): New functions.
8434 (is_float_singleton): Handle typedefs.
8435 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8436 Remove, replace by ...
8437 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8438 s390_function_arg_integer): ... these new functions.
8439 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8440 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8441 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8444 set_gdbarch_deprecated_store_struct_return,
8445 set_gdbarch_deprecated_extract_return_value,
8446 set_gdbarch_deprecated_store_return_value,
8447 set_gdbarch_use_struct_convention,
8448 set_gdbarch_extract_struct_value_address,
8449 set_gdbarch_deprecated_pc_in_call_dummy,
8450 set_gdbarch_deprecated_push_arguments,
8451 set_gdbarch_deprecated_save_dummy_frame_tos,
8452 set_gdbarch_deprecated_push_return_address,
8453 set_gdbarch_deprecated_sizeof_call_dummy_words,
8454 set_gdbarch_deprecated_call_dummy_words,
8455 set_gdbarch_deprecated_dummy_write_sp.
8457 set_gdbarch_push_dummy_call,
8458 set_gdbarch_unwind_dummy_id,
8459 set_gdbarch_return_value.
8461 * config/s390/nm-linux.h: Update comments.
8462 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8463 (STOPPED_BY_WATCHPOINT): Redefine.
8464 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8465 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8466 (s390_stopped_by_watchpoint): Likewise.
8467 (watch_area_cnt): Remove.
8468 * s390-nat.c: Update comments.
8469 (watch_area): Remove typedef.
8470 Global replace watch_area by struct watch_area.
8471 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8472 (s390_stopped_by_watchpoint): Remove pid argument,
8473 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8474 (s390_fix_watch_points): Remove pid argument,
8475 use s390_inferior_tid. Recompute area spanned by watchpoints.
8476 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8477 argument. Reimplement.
8479 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8480 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8481 (FETCH_INFERIOR_REGISTERS): Define.
8482 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8484 * config/s390/s390x.mt: Remove.
8485 * config/s390/tm-s390.h: Remove.
8486 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8487 (TARGET_ELF64): Remove.
8488 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8489 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8490 s390*-*-* case; always set gdb_target to s390.
8491 * regformats/reg-s390.dat: Remove control registers.
8492 * regformats/reg-s390x.dat: Likewise.
8493 * s390-tdep.h: New file.
8494 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8495 Include "inferior.h" and "s390-tdep.h".
8496 Remove private definition of offsetof.
8497 (s390_register_u_addr): Remove.
8498 (regmap_gregset, regmap_fpregset): Define.
8499 (supply_gregset, fill_gregset): Reimplement.
8500 (supply_fpregset, fill_fpregset): Likewise.
8501 (s390_inferior_tid): New function.
8502 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8503 (fetch_inferior_registers, store_inferior_registers): Likewise.
8504 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8505 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8506 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8507 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8508 (struct gdbarch_tdep): Define.
8509 (struct s390_register_info): Define.
8510 (s390_register_info): New variable.
8511 (s390_register_name): Reimplement.
8512 (s390_register_type): New function.
8513 (s390_register_raw_size, s390x_register_raw_size): Remove.
8514 (s390_cannot_fetch_register): Remove.
8515 (s390_register_byte): Remove.
8516 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8517 (s390_dwarf_regmap): New variable.
8518 (s390_dwarf_reg_to_regnum): New function.
8519 (s390_stab_reg_to_regnum): Remove.
8520 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8521 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8522 (s390_convert_register_p): Likewise.
8523 (s390_register_to_value, s390_value_to_register): Likewise.
8524 (s390_register_reggroup_p): Likewise.
8525 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8526 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8527 (s390_supply_regset, s390_regset_from_core_section): New functions.
8528 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8529 (S390_FPR_SIZE): Likewise.
8530 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8531 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8532 (S390_NUM_GPRS): Move here from tm-s390.h.
8533 (S390_NUM_FPRS): Likewise.
8534 (s390_in_function_epilogue_p): New function.
8535 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8536 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8537 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8538 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8539 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8541 set_gdbarch_deprecated_max_register_raw_size,
8542 set_gdbarch_deprecated_max_register_virtual_size,
8543 set_gdbarch_deprecated_register_byte,
8544 set_gdbarch_cannot_fetch_register,
8545 set_gdbarch_cannot_store_register,
8546 set_gdbarch_deprecated_register_size,
8547 set_gdbarch_deprecated_register_raw_size,
8548 set_gdbarch_deprecated_register_virtual_size,
8549 set_gdbarch_deprecated_register_virtual_type,
8550 set_gdbarch_deprecated_register_bytes.
8552 set_gdbarch_num_pseudo_regs,
8553 set_gdbarch_register_type,
8554 set_gdbarch_convert_register_p,
8555 set_gdbarch_register_to_value,
8556 set_gdbarch_value_to_register,
8557 set_gdbarch_register_reggroup_p,
8558 set_gdbarch_regset_from_core_section,
8559 set_gdbarch_pseudo_register_read,
8560 set_gdbarch_pseudo_register_write,
8561 set_gdbarch_in_function_epilogue_p.
8562 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8563 (s390_tdep_h): New variable.
8565 2004-02-17 Jim Blandy <jimb@redhat.com>
8567 * findvar.c (value_from_register): If the type has no length, just
8568 return an acceptable value --- don't report an internal error.
8570 * stabsread.c (read_type): If we find any type numbers that are
8571 forward references, complain if the references aren't resolved by
8572 the time we're finished reading.
8573 (cleanup_undefined_types): Make error message more appropriate for
8576 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8578 * Makefile.in (defs_h): Remove dependency on progress_h.
8579 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8581 * main.c (captured_main): Delete use of START_PROGRESS and
8584 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8586 * objfiles.c (terminate_minimal_symbol_table): Add back
8587 initialization of MSYMBOL_TYPE.
8589 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8591 Committed by Andrew Cagney.
8592 * Makefile.in (ia64_tdep_h): New macro.
8593 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8594 (ia64-tdep.o): Likewise.
8595 * ia64-tdep.h: New file.
8596 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8597 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8598 (ia64_aix_sigcontext_register_address): Likewise.
8599 (ia64_linux_getunwind_table): Delete declaration.
8600 * ia64-linux-tdep.c: Likewise.
8602 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8604 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8605 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8606 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8608 2004-02-17 Andrew Cagney <cagney@redhat.com>
8610 * symtab.c (skip_prologue_using_sal): New function.
8611 * symtab.h (skip_prologue_using_sal): Declare.
8612 * frv-tdep.c: Include "symtab.h".
8613 (skip_prologue_using_sal): Delete function.
8614 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8615 * rs6000-tdep.c (refine_prologue_limit): Mention
8616 skip_prologue_using_sal.
8617 * ia64-tdep.c (refine_prologue_limit): Ditto.
8618 * Makefile.in: Update dependencies.
8620 2004-02-16 Andrew Cagney <cagney@redhat.com>
8622 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8623 START_INFERIOR_TRAPS_EXPECTED.
8624 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8625 START_INFERIOR_TRAPS_EXPECTED.
8626 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8628 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8629 macro, moved to "nm-osf.h". Update copyright.
8630 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8633 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8634 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8635 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8636 frameless_look_for_prologue.
8637 * frame.h (legacy_frameless_look_for_prologue): Rename
8638 frameless_look_for_prologue.
8639 * gdbarch.h, gdbarch.c: Re-generate.
8640 * sh64-tdep.c (sh64_gdbarch_init): Update.
8641 * sh-tdep.c (sh_gdbarch_init): Update.
8642 * s390-tdep.c (s390_gdbarch_init): Update.
8643 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8644 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8645 * m68k-tdep.c (m68k_gdbarch_init): Update.
8646 (delta68_frame_args_address): Update.
8647 * m32r-tdep.c (m32r_gdbarch_init): Update.
8648 * hppa-tdep.c (hppa_gdbarch_init): Update.
8649 * h8300-tdep.c (h8300_gdbarch_init): Update.
8650 * frv-tdep.c (frv_gdbarch_init): Update.
8651 (frv_frameless_function_invocation): Update.
8652 * cris-tdep.c (cris_gdbarch_init): Update.
8653 (cris_frameless_function_invocation): Update.
8654 * avr-tdep.c (avr_gdbarch_init): Update.
8655 * arm-tdep.c (arm_gdbarch_init): Update.
8656 * stack.c (frame_info): Update, call predicate.
8657 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8658 * frame.c (legacy_get_prev_frame): Update, call predicate..
8659 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8660 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8661 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8663 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8664 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8665 * vax-tdep.c (vax_gdbarch_init): Ditto.
8667 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8670 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8672 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8675 2004-02-16 Andrew Cagney <cagney@redhat.com>
8677 * tui/tui-windata.c: Include "gdb_string.h".
8678 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8679 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8680 * Makefile.in: Update dependencies.
8682 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8684 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8685 * infrun.c: Include "gdb_assert.h".
8686 (singlestep_ptid, saved_singlestep_ptid)
8687 (stepping_past_singlestep_breakpoint): New variables.
8688 (resume): Set singlestep_ptid. Check for singlestep thread
8690 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8691 (handle_inferior_event): Handle singlestep thread hop.
8693 2004-02-16 Andrew Cagney <cagney@redhat.com>
8695 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8696 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8697 (dwarf2_frame_init_reg): Ditto.
8699 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8700 suggested by Joshua Neuheisel
8702 * configure.in: Always check for curses, including pdcurses.
8703 Warn, instead of error, when no curses are found. Enable TUI when
8704 curses is available.
8705 * configure: Re-generate.
8707 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8709 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8710 sh_sh4_register_convert_to_virtual.
8711 (sh_register_convert_to_raw): Rename from
8712 sh_sh4_register_convert_to_raw.
8713 (sh_pseudo_register_read): Accomodate above name change.
8714 (sh_pseudo_register_write): Ditto.
8716 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8718 * sh-tdep.c (sh_generic_register_name): Remove.
8719 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8721 2004-02-15 Andrew Cagney <cagney@redhat.com>
8723 * configure.in (build_warnings): Add -Wunused-function.
8724 * configure: Re-generate.
8726 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8727 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8729 * procfs.c (procfs_init_inferior): Assume that
8730 START_INFERIOR_TRAPS_EXPECTED is defined.
8731 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8732 * config/ns32k/tm-nbsd.h: Delete file,
8733 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8735 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8736 * config/vax/tm-vax.h: Delete file.
8738 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8739 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8740 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8741 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8742 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8743 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8744 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8746 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8748 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8749 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8750 (struct dwarf2_frame_ops): New.
8751 (dwarf2_frame_default_init_reg): New function, based on
8752 dwarf2_frame_init_reg.
8753 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8754 (dwarf2_frame_init_reg): Call architecture-specific function.
8755 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8756 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8757 instead of dwarf2_frame_data.
8758 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8759 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8761 2004-02-15 Andrew Cagney <cagney@redhat.com>
8763 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8764 register_gdbarch_swap.
8765 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8766 * f-lang.c (_initialize_f_language): Update, use
8767 DEPRECATED_REGISTER_GDBARCH_SWAP.
8768 * remote.c (_initialize_remote): Ditto.
8769 * regcache.c (_initialize_regcache): Ditto.
8770 * parse.c (_initialize_parse): Ditto.
8771 * infrun.c (_initialize_infrun): Ditto.
8772 * mi/mi-main.c (_initialize_mi_main): Ditto.
8773 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8775 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8776 poking .cacheable directly.
8777 * symfile.c (symfile_bfd_open): Ditto.
8779 * Makefile.in: Update all dependencies.
8781 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8782 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8783 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8784 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8785 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8787 2004-02-14 Andrew Cagney <cagney@redhat.com>
8789 * arch-utils.c (legacy_convert_register_p): Check
8790 DEPRECATED_REGISTER_CONVERTIBLE_P.
8791 * findvar.c (value_of_register): Ditto.
8793 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8794 * gdbarch.h, gdbarch.c: Re-generate.
8795 * arch-utils.c (deprecated_register_convertible_not): Delete.
8796 * arch-utils.h (deprecated_register_convertible_not): Delete.
8797 * mi/mi-main.c (get_register): Update. Update copyright.
8798 * infcmd.c (default_print_registers_info): Update.
8800 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8801 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8802 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8803 * gdbarch.h, gdbarch.c: Re-generate.
8804 * frame.c (deprecated_get_next_frame_hack): Delete function.
8805 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8806 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8808 * infcall.c (call_function_by_hand): Update.
8810 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8812 * symfile.c (init_entry_point_info, entry_point_address): Move
8814 * objfiles.c (init_entry_point_info, entry_point_address):..to
8816 * symfile.h (init_entry_point_info, entry_point_address): Remove
8818 * objfiles.h (init_entry_point_info, entry_point_address):Add
8820 * cris-tdep.c: Remove include of symfile.h. Add include of
8823 * mcore-tdep.c: Ditto.
8824 * mn10300-tdep.c: Ditto.
8825 * sh64-tdep.c: Ditto.
8826 * v850-tdep.c: Ditto.
8827 * arm-tdep.c: Remove include of symfile.h.
8828 * blockframe.c: Ditto.
8829 * coffread.c: Ditto.
8831 * dwarf2read.c: Ditto.
8832 * dwarfread.c: Ditto.
8833 * frv-tdep.c: Ditto.
8834 * ia64-tdep.c: Ditto.
8835 * mdebugread.c: Ditto.
8836 * mipsread.c: Ditto.
8837 * rs6000-tdep.c: Ditto.
8838 * s390-tdep.c: Ditto.
8840 * xstormy16-tdep.c: Ditto.
8841 * gdbarch.sh: Remove include of symfile.h.
8842 * gdbarch.c: Regenerate.
8843 * solib-irix.c (enable_break): Use entry_point_address().
8844 Add comment about include file.
8845 * xcoffread.c: Add comment about include file.
8846 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8847 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8848 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8849 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8850 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8852 2004-02-13 Andrew Cagney <cagney@redhat.com>
8854 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8855 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8857 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8859 2004-02-12 Fred Fish <fnf@redhat.com>
8861 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8862 set_gdbarch_store_return_value.
8864 2004-02-12 Andrew Cagney <cagney@redhat.com>
8866 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
8867 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
8868 (interrupt_query): Ditto.
8869 (ofunc): Delete unused variable.
8870 * cris-tdep.c (cris_abi): Delete unused function.
8871 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
8872 (cris_get_wide_opcode, cris_get_short_size): Ditto.
8873 (cris_get_asr_quick_shift_steps): Ditto.
8874 (cris_skip_prologue_frameless_p): Ditto.
8875 * arm-tdep.c (arm_push_return_address): Delete unused function.
8876 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
8877 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
8878 * s390-tdep.c (s390_function_start): Delete unused function.
8880 2004-02-12 Andrew Cagney <cagney@redhat.com>
8882 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
8883 gdbarch.h, gdbarch.c: Re-generate.
8884 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
8885 to generic_prologue_frameless_p.
8886 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
8887 * arch-utils.c (generic_prologue_frameless_p): Delete function.
8889 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
8891 * mips-linux-tdep.c: Include "frame.h".
8892 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
8893 (mips_linux_skip_resolver): New functions.
8894 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
8895 and set_gdbarch_in_solib_call_trampoline.
8896 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
8897 to after set_gdbarch_in_solib_return_trampoline. Only set the
8898 solib hooks to mips16 functions if the OS ABI is unknown.
8899 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
8900 including "config/tm-linux.h".
8901 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
8902 * Makefile.in (mips-linux-tdep.o): Update.
8904 2004-02-11 David Carlton <carlton@kealia.com>
8906 * linespec.c (decode_compound): Only look for a class symbol when
8907 considering all but the rightmost component.
8909 2004-02-11 Andrew Cagney <cagney@redhat.com>
8911 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
8912 abi code are are separatly grouped.
8914 2004-02-11 Andrew Cagney <cagney@redhat.com>
8916 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
8917 * gdbarch.h, gdbarch.c: Re-generate.
8918 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8919 * v850-tdep.c (v850_gdbarch_init): Update.
8920 * sh64-tdep.c (sh64_gdbarch_init): Update.
8921 * sh-tdep.c (sh_gdbarch_init): Update.
8922 * s390-tdep.c (s390_gdbarch_init): Update.
8923 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8924 * mips-tdep.c (mips_gdbarch_init): Update.
8925 * mcore-tdep.c (mcore_gdbarch_init): Update.
8926 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8927 * m32r-tdep.c (m32r_gdbarch_init): Update.
8928 * ia64-tdep.c (ia64_gdbarch_init): Update.
8929 * hppa-tdep.c (hppa_gdbarch_init): Update.
8930 * h8300-tdep.c (h8300_gdbarch_init): Update.
8931 * frv-tdep.c (frv_gdbarch_init): Update.
8932 * d10v-tdep.c (d10v_gdbarch_init): Update.
8933 * cris-tdep.c (cris_gdbarch_init): Update.
8934 * avr-tdep.c (avr_gdbarch_init): Update.
8935 * arm-tdep.c (arm_gdbarch_init): Update.
8936 * alpha-tdep.c (alpha_gdbarch_init): Update.
8938 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
8940 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
8942 (sh_sh4al_dsp_register_name): Ditto.
8944 2004-02-10 Andrew Cagney <cagney@redhat.com>
8946 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
8947 (mips_init_frame_pc_first): Delete function.
8948 (mips_frame_saved_pc): Delete function.
8949 (mips_frame_chain): Delete function.
8950 (mips_init_extra_frame_info): Delete function.
8951 (mips_xfer_register): Delete unused variable "reg".
8952 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
8953 (mips_n32n64_return_value): Delete unused variable "reg".
8954 (mips_n32n64_return_value): Delete unused variable "pos".
8955 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
8956 (mips_o32_return_value): Delete unused variable "pos".
8957 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
8958 (mips_print_fp_register): Delete unused variable "namelen"
8959 (mips_print_fp_register): Delete unused variable "flt2"
8960 (get_frame_pointer): Delete function.
8961 (cached_proc_desc): Delete static variable.
8962 (mips_pop_frame): Delete function.
8963 (mips_find_saved_regs): Delete function.
8964 (mips_get_saved_register): Delete function.
8965 (mips_saved_pc_after_call): Delete function.
8966 (SIGFRAME_BASE): Delete macro.
8967 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
8968 (SIGFRAME_PC_OFF): Delete macro.
8969 (SIGFRAME_REGSAVE_OFF): Delete macro.
8970 (mips_dump_tdep): Do not print deleted macro definitions.
8972 2004-02-10 Andrew Cagney <cagney@redhat.com>
8974 * Makefile.in (SFILES): Remove explictly listed tui files.
8975 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
8977 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
8979 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
8980 to use paddr functions to format ia64 addresses and long values.
8981 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
8982 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
8983 (get_kernel_table, ia64_find_proc_info_x): Ditto.
8984 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
8985 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
8987 2004-02-10 Andrew Cagney <cagney@redhat.com>
8989 * defs.h: Do not include "tui.h".
8990 * gdb_curses.h: New file.
8991 * tui/tui-hooks.h: New file.
8992 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
8993 (tui_install_hooks, tui_remove_hooks): Delete declarations.
8994 (tui_initialize_io): Delete declaration.
8995 (tui_initialize_readline: Delete redundant declaration.
8996 (struct tui_point): Delete definition.
8997 * tui/tui-data.h (struct tui_point): Define.
8998 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
8999 * utils.c: Include "tui/tui.h".
9000 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9001 * printcmd.c [TUI]: Include "tui/tui.h".
9002 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9003 * tui/tui-command.c: Include "gdb_curses.h".
9004 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9005 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9006 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9007 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9008 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9009 * Makefile.in: Update all dependencies.
9010 (tui_hooks_h, gdb_curses_h): Define.
9011 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9013 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9015 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9016 auxf2. Add comments about some other rarely used fields.
9018 2004-02-10 Andrew Cagney <cagney@redhat.com>
9020 * Makefile.in (init.c): Fix script removing duplicates. Problem
9021 reported by Peter Schauer.
9023 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9025 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9026 obstack_specify_allocation.
9027 * objfiles.c (allocate_objfile): Ditto.
9028 * solib-sunos.c (solib_add_common_symbols)
9029 (allocate_rt_common_objfile): Ditto.
9030 * symfile.c (reread_symbols): Ditto.
9031 * gdb_obstack.h: Add comment.
9033 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9035 * linespec.c (decode_line_1, locate_first_half)
9036 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9039 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9041 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9044 2004-02-09 Andrew Cagney <cagney@redhat.com>
9046 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9047 fails, try find_pc_section. Fix PR c++/1267.
9048 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9049 instead of find_pc_mapped_section.
9050 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9051 not default to the section containing PC. Fix PR symtab/1519.
9053 2004-02-09 Andrew Cagney <cagney@redhat.com>
9055 * Makefile.in (mips-tdep.o): Update dependencies.
9056 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9058 (mips_unwind_pc): Return the pseudo PC register.
9059 (mips_unwind_dummy_id): New function.
9060 (mips16_fetch_instruction): New function.
9061 (mips32_fetch_instruction): New function.
9062 (struct mips_frame_cache): Define.
9063 (mips_mdebug_frame_cache): New function.
9064 (mips_mdebug_frame_this_id): New function.
9065 (mips_mdebug_frame_prev_register): New function.
9066 (mips_mdebug_frame_unwind): Define.
9067 (mips_mdebug_frame_sniffer): New function.
9068 (mips_mdebug_frame_base_address): New function.
9069 (mips_mdebug_frame_base): Define.
9070 (mips_mdebug_frame_base_sniffer): New function.
9071 (mips_gdbarch_init): Append unwind and base sniffers. Set
9074 2004-02-08 Andrew Cagney <cagney@redhat.com>
9076 * frame.c: Print both the register number and name.
9078 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9079 and a sed into a single sed. Make .c and .o patterns more robust.
9081 (INIT_FILES): Replace OBS with COMMON_OBS.
9082 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9084 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9086 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9087 the PT_WCOOKIE request.
9089 2004-02-08 Andrew Cagney <cagney@redhat.com>
9091 * mips-tdep.c (mips_unwind_pc): New function.
9092 (mips_gdbarch_init): Set mips_unwind_pc.
9094 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9095 (get_frame_id): Allow the UNKNOWN_FRAME.
9096 (frame_register_unwind, get_frame_type): Ditto.
9098 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9099 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9100 unwind_dummy_id indicates a legacy frame.
9102 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9103 * configure: Re-generate.
9105 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9108 2004-02-08 Andrew Cagney <cagney@redhat.com>
9110 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9112 * configure: Re-generate.
9113 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9114 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9115 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9116 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9117 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9118 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9119 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9120 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9121 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9122 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9124 2004-02-07 Andrew Cagney <cagney@redhat.com>
9126 * Makefile.in: Update all dependencies.
9128 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9129 * configure: Re-generate.
9130 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9131 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9132 (COMMON_OBS): Add "main.o" and "annotate.o".
9133 (ANNOTATE_OBS): Delete.
9134 (OBS): Remove ANNOTATE_OBS.
9135 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9137 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9138 against CONFIG_OBS and "main.o".
9139 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9140 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9142 * tui/tui-command.c: Include "gdb_string.h", delete register
9143 attribute, use ISO-C function signatures.
9144 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9145 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9146 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9149 * tui/tui-command.c: Change variable and function names to lower
9151 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9152 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9153 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9154 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9155 * tui/tui-winsource.c, tui/tui.c: Ditto.
9157 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9159 * buildsym.c (free_pending_blocks, finish_block)
9160 (record_pending_block, make_blockvector, end_symtab): Replace
9161 symbol_obstack with objfile_obstack.
9162 * coffread.c (process_coff_symbol, coff_read_struct_type)
9163 (coff_read_enum_type): Ditto.
9164 * cp-namespace.c (initialize_namespace_symtab)
9165 (check_one_possible_namespace_symbol): Ditto.
9166 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9167 (dwarf2_symbol_mark_computed): Ditto.
9168 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9169 * elfread.c (elf_symtab_read): Ditto.
9170 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9171 (hpread_read_enum_type, hpread_read_function_type)
9172 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9174 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9175 (java_link_class_type): Ditto.
9176 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9177 (new_symbol): Ditto.
9178 * minsyms.c (install_minimal_symbols): Ditto.
9179 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9180 (terminate_minimal_symbol_table): Replace symbol_obstack with
9182 (free_objfile): Remove freeing of symbol_obstack.
9183 * objfiles.h: Remove symbol_obstack field.
9184 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9186 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9188 (solib_add_common_symbols): Replace symbol_obstack with
9190 * somsolib.c (som_solib_add): Ditto.
9191 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9192 (common_block_start, common_block_end): Ditto.
9193 * symfile.c (reread_symbols): Remove freeing and init of
9195 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9196 * symfile.h: Update comment.
9197 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9199 * symtab.c (symbol_set_names): Replace symbol_obstack with
9201 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9203 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9204 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9207 2004-02-07 Andrew Cagney <cagney@redhat.com>
9209 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9210 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9211 fields and variables.
9212 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9213 (m_beInvisible): Delete macro.
9214 * tui/tui-data.h: Fix case case fields and variables.
9215 (m_genWinPtrIsNull): Delete macro.
9216 (tui_win_list): Rename winList.
9217 (TUI_SRC_WIN): Rename srcWin.
9218 (TUI_DISASM_WIN): Rename disassemWin.
9219 (TUI_DATA_WIN): Rename dataWin.
9220 (TUI_CMD_WIN): Rename cmdWin.
9221 (m_genWinPtrNotNull): Delete macro.
9222 (m_winPtrIsNull): Delete macro.
9223 (m_winPtrNotNull): Delete macro.
9224 (tui_win_is_source_type): Replace m_winIsSourceType
9225 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9226 (tui_win_has_locator): Replace m_hasLocator.
9227 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9228 m_setWinHighlightOff.
9229 * tui/tui-data.c: Update references.
9230 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9231 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9232 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9233 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9234 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9235 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9236 * tui/tui-winsource.c, tui/tui.c: Ditto.
9238 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9240 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9241 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9244 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9245 variable `i6' to `i7'.
9246 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9248 2004-02-07 Andrew Cagney <cagney@redhat.com>
9250 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9251 (TuiPoint, TuiPointPtr): Ditto.
9252 (TuiStatus, TuiStatusPtr): Ditto.
9253 (TuiWinType, TuiWinTypePtr): Ditto.
9254 (struct tui_point): Rename _TuiPoint.
9255 (tui_get_low_disassembly_address): Rename
9256 tuiGetLowDisassemblyAddress.
9257 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9258 (tuiFree): Delete declaration.
9259 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9260 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9261 * tui/tui.c (tuiFree): Delete function.
9262 * cli/cli-cmds.c (disassemble_command): Update references.
9263 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9264 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9265 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9266 * tui/tui-winsource.c: Ditto.
9268 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9270 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9271 coffstab_build_psymtabs, elfstab_build_psymtabs)
9272 (stabsect_build_psymtabs): Replace psymbol_obstack with
9274 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9275 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9277 * dwarfread.c (scan_compilation_units): Ditto.
9278 * elfread.c (elfstab_offset_sections): Ditto.
9279 * hppa-tdep.c (read_unwind_info): Ditto.
9280 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9281 (hpread_end_psymtab): Ditto.
9282 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9283 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9285 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9286 * objfiles.c (add_to_objfile_sections)
9287 (build_objfile_section_table): Ditto.
9288 (allocate_objfile): Remove init of psymbol_obstack.
9289 (free_objfile): Remove freeing of psymbol_obstack.
9290 * objfiles.h (struct objfile): Remove field
9291 psymbol_obstack. Update comments.
9292 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9293 psymbol_obstack with objfile_obstack.
9294 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9296 * somread.c (som_symfile_offsets, init_import_symbols)
9297 (init_export_symbols): Replace psymbol_obstack with
9299 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9300 * symfile.c (default_symfile_offsets, syms_from_objfile)
9301 (reread_symbols): Remove freeing and init of psymbol_obstack.
9302 (cashier_psymtab): Update comment.
9303 * symmisc.c (print_objfile_statistics): Don't report stats for
9305 * symtab.h (struct general_symbol_info, struct partial_symtab):
9307 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9308 (xcoff_symfile_offsets): Replace psymbol_obstack with
9311 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9313 * objfiles.h (struct objfile): Add objfile_obstack field.
9314 Remove type_obstack field.
9316 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9317 read_structure_scope read_enumeration, new_symbol): Replace
9318 type_obstack with objfile_obstack.
9319 * dwarfread.c (struct_type, enum_type): Ditto.
9320 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9321 (lookup_fundamental_type): Ditto.
9322 * gdbtypes.h (TYPE_ALLOC): Ditto.
9323 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9324 (hpread_read_doc_function_type, hpread_read_struct_type)
9325 (fix_static_member_physnames, hpread_read_array_type)
9326 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9327 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9328 (java_link_class_type): Ditto.
9329 * mdebugread.c (parse_type): Ditto.
9330 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9331 * solib-sunos.c (solib_add_common_symbols): Ditto.
9332 * stabsread.c (define_symbol, read_type, read_member_functions,
9333 read_cpp_abbrev, read_one_struct_field): Ditto.
9334 * symfile.c (reread_symbols): Ditto.
9335 * symmisc.c (print_objfile_statistics): Ditto.
9337 2004-02-07 Andrew Cagney <cagney@redhat.com>
9339 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9340 (tui_exec_info_content): Rename TuiExecInfoContent.
9341 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9342 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9343 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9344 (TuiList, TuiListPtr): Ditto.
9345 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9346 (TuiDataType, TuiDataTypePtr): Ditto.
9347 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9348 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9349 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9350 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9351 (TuiDataElement, TuiDataElementPtr): Ditto.
9352 (TuiWinElement, TuiWinElementPtr): Ditto.
9353 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9354 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9355 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9356 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9357 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9358 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9359 * tui/tui-command.c, tui/tui-data.c: Update references.
9360 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9361 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9362 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9363 * tui/tui-winsource.c, tui/tui.c: Ditto.
9365 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9367 * dwarf2-frame.h: Update copyright.
9368 (enum dwarf2_frame_reg_rule): New.
9369 (struct dwarf2_frame_state_reg): New.
9370 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9371 * dwarf2-frame.c: Update copyright.
9372 (enum dwarf2_reg_rule): Remove.
9373 (struct dwarf2_frame_state): Remove defenition of `struct
9374 dwarf2_frame_state_reg'.
9375 (read_reg): Call get_frame_arch to get the architecture instead of
9376 using CURRENT_GDBARCH.
9377 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9379 (dwarf2_frame_init_reg): New function.
9380 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9381 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9382 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9383 tags with DWARF2_FRAME_.
9384 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9385 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9386 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9388 2004-02-06 Andrew Cagney <cagney@redhat.com>
9390 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9391 (enum tui_data_type): Rename _TuiDataType.
9392 (struct tui_layout_def): Rename _TuiLayoutDef.
9393 (struct tui_source_element): Rename _TuiSourceElement.
9394 (struct tui_data_element): Rename _TuiDataElement.
9395 (struct tui_command_element): Rename _TuiCommandElement.
9396 (struct tui_locator_element): Rename _TuiLocatorElement.
9397 (union tui_which_element): Define.
9398 (struct tui_win_element): Rename _TuiWinElement.
9399 (struct tui_data_info): Rename _TuiDataInfo.
9400 (struct tui_source_info): Rename _TuiSourceInfo.
9401 (struct tui_command_info): Rename _TuiCommandInfo.
9402 (tui_initialize_static_data): Rename initializeStaticData.
9403 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9404 (tui_alloc_win_info): Rename allocWinInfo.
9405 (tui_init_generic_part): Rename initGenericPart.
9406 (tui_init_win_info): Rename initWinInfo.
9407 (tui_alloc_content): Rename allocContent.
9408 (tui_add_content_elements): Rename addContentElements.
9409 (tui_init_content_element): Rename initContentElement.
9410 (tui_free_window): Rename freeWindow.
9411 (tui_free_win_content): Rename freeWinContent.
9412 (tui_free_data_content): Rename freeDataContent.
9413 (tui_free_all_source_wins_content): Rename
9414 freeAllSourceWinsContent.
9415 (tui_del_window): Rename tuiDelWindow.
9416 (tui_del_data_windows): Rename tuiDelDataWindows.
9417 (tui_partial_win_by_name): Rename partialWinByName.
9418 (tui_win_name): Rename winName.
9419 (tui_current_layout): Rename currentLayout.
9420 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9421 (tui_term_height): Rename termHeight.
9422 (tui_set_term_height_to): Rename setTermHeightTo.
9423 (tui_term_width): Rename termWidth.
9424 (tui_set_term_width_to): Rename setTermWidthTo.
9425 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9426 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9427 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9428 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9429 (tui_source_windows): Rename sourceWindows.
9430 (tui_clear_source_windows): Rename clearSourceWindows.
9431 (tui_clear_source_windows_detail): Rename
9432 clearSourceWindowsDetail.
9433 (tui_clear_win_detail): Rename clearWinDetail.
9434 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9435 (tui_default_tab_len): Rename tuiDefaultTabLen.
9436 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9437 (tui_win_with_focus): Rename tuiWinWithFocus.
9438 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9439 (tui_layout_def): Rename tuiLayoutDef.
9440 (tui_win_resized): Rename tuiWinResized.
9441 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9442 (tui_next_win): Rename tuiNextWin.
9443 (tui_prev_win): Rename tuiPrevWin.
9444 (tui_add_to_source_windows): Rename addToSourceWindows.
9445 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9446 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9447 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9448 * tui/tui.c, tui/tui-data.c: Ditto.
9449 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9450 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9452 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9453 (struct symtab): Declare.
9454 (tui_set_source_content): Rename tuiSetSourceContent.
9455 (tui_show_symtab_source): Rename tuiShowSource.
9456 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9457 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9458 * tui/tui-source.c: Update copyright. Update references.
9459 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9460 * tui/tui-stack.c: Update references.
9462 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9463 (struct tui_win_info): Declare.
9464 (tui_scroll_forward): Rename tuiScrollForward.
9465 (tui_scroll_backward): Rename tuiScrollBackward.
9466 (tui_scroll_left): Rename tuiScrollLeft.
9467 (tui_scroll_right): Rename tuiScrollRight.
9468 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9469 (tui_resize_all): Rename tuiResizeAll.
9470 (tui_refresh_all_win): Rename tuiRefreshAll.
9471 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9472 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9473 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9474 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9476 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9477 (tui_erase_data_content): Rename tuiEraseDataContent.
9478 (tui_display_all_data): Rename tuiDisplayAllData.
9479 (tui_check_data_values): Rename tuiCheckDataValues.
9480 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9481 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9482 (tui_first_data_element_no_in_line): Rename
9483 tuiFirstDataElementNoInLine.
9484 (tui_delete_data_content_windows): Rename
9485 tuiDeleteDataContentWindows.
9486 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9487 (tui_display_data_from): Rename tuiDisplayDataFrom.
9488 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9489 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9490 * tui/tui-win.c, tui/tui-regs.c: Update references.
9491 * tui/tui-layout.c, tui/tui.c: Update references.
9493 * tui/tui-wingeneral.h: Update copyright.
9494 (m_allBeVisible): Delete macro.
9495 (m_allBeInvisible): Delete macro.
9496 (struct tui_gen_win_info): Declare.
9497 (struct tui_win_info): Declare.
9498 (tui_unhighlight_win): Rename unhighlightWin.
9499 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9500 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9501 (tui_make_window): Rename makeWindow.
9502 (tui_copy_win): Rename copyWin.
9503 (tui_box_win): Rename boxWin.
9504 (tui_highlight_win): Rename highlightWin.
9505 (tui_check_and_display_highlight_if_needed): Rename
9506 checkAndDisplayHighlightIfNeeded.
9507 (tui_refresh_all): Rename refreshAll.
9508 (tui_delete_win): Rename tuiDelwin.
9509 (tui_refresh_win): Rename tuiRefreshWin.
9510 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9511 (tui_make_visible, tui_make_invisible): New functions.
9512 (tui_make_all_visible, tui_make_all_invisible): New functions.
9513 (make_all_visible): Rename makeAllVisible.
9514 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9515 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9516 * tui/tui-windata.c, tui/tui-win.c: Update references.
9517 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9518 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9520 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9522 * proc-api.c (write_with_trace): Initialize local variable to
9523 silence compiler warning.
9525 2004-02-06 Andrew Cagney <cagney@redhat.com>
9527 * tui/tui-source.h: Do not include "defs.h".
9528 (struct tui_win_info): Declare.
9529 (tui_set_source_content_nil): Declare.
9530 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9531 (union tui_line_or_address): Rename _TuiLineOrAddress.
9532 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9533 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9534 (tui_update_source_window_as_is): Rename
9535 tuiUpdateSourceWindowAsIs.
9536 (tui_update_source_windows_with_addr): Rename
9537 tuiUpdateSourceWindowsWithAddr.
9538 (tui_update_source_windows_with_line): Rename
9539 tuiUpdateSourceWindowsWithLine.
9540 (tui_clear_source_content): Rename tuiClearSourceContent.
9541 (tui_erase_source_content): Rename tuiEraseSourceContent.
9542 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9543 (tui_show_source_content): Rename tuiShowSourceContent.
9544 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9545 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9546 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9547 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9548 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9549 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9550 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9551 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9552 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9553 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9554 (struct tui_win_info): Declare.
9555 * tui/tui-stack.c: Update references.
9556 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9557 * tui/tui-win.c, tui/tui-source.c: Ditto.
9558 * tui/tui.c, tui/tui-disasm.c: Ditto.
9560 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9562 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9563 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9565 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9567 * infrun.c (handle_inferior_event): Allow for breakpoint
9568 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9569 and SIGEMT. Update comments.
9570 * NEWS (Revised SPARC target): Mention support for non-executable
9573 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9575 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9576 * inftarg.c: Update copyright year.
9577 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9578 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9579 (sparc_xfer_wcookie): New function.
9580 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9581 * Makefile.in (sparc-nat.o): Update dependencies.
9582 * config/sparc/nm-nbsd.h: Include "target.h".
9583 (NATIVE_XFER_WCOOKIE): New define.
9584 (sparc_xfer_wcookie): New prototype.
9586 2004-02-04 Andrew Cagney <cagney@redhat.com>
9588 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9589 SYSCALL_TRAP function.
9590 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9592 2004-02-04 Andrew Cagney <cagney@redhat.com>
9593 Daniel Jacobowitz <drow@mvista.com>
9595 * objfiles.h: Delete comments refering to inside_entry_func and
9596 DEPRECATED_FRAME_CHAIN_VALID.
9597 * defs.h (inside_entry_func): Update prototype..
9598 * blockframe.c (inside_entry_func): Rename to
9599 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9600 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9602 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9604 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9605 outside of #ifdef SOLIB_ADD region.
9606 (do_restore_lang_radix_cleanup): Ditto.
9607 (resolve_pending_breakpoint): Ditto.
9609 2004-02-03 Andrew Cagney <cagney@redhat.com>
9611 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9612 (process_note_abi_tag_sections): Delete unused function.
9613 (ia64_read_fp): Delete unused function.
9614 (gdbarch_extract_struct_value_address): Delete declaration.
9616 2004-02-02 Andrew Cagney <cagney@redhat.com>
9618 * vax-tdep.c (vax_frame_chain): Delete call to
9619 deprecated_inside_entry_file.
9620 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9622 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9624 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9625 column that's "empty" or "same value" when eliminating REG_RA
9628 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9630 * NEWS: Add information about new pending breakpoint support.
9632 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9634 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9635 and pending fields for pending breakpoint support.
9636 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9637 (condition_command): Only parse condition if not a pending
9639 (print_one_breakpoint): Add support for pending breakpoints.
9640 (describe_other_breakpoints): Add checks to verify we are not
9641 dealing with pending breakpoints.
9642 (check_duplicates): Don't check pending breakpoints.
9643 (set_raw_breakpoint): Initialize pending flag.
9644 (do_restore_lang_radix_cleanup): New cleanup routine.
9645 (resolve_pending_breakpoint): New function.
9646 (re_enable_breakpoints_in_shlibs): Try and resolve any
9647 pending breakpoints via resolve_pending_breakpoint.
9648 (mention): Add pending breakpoint support.
9649 (parse_breakpoint_sals): Add new parameter to pass to
9650 decode_line_1 to indicate silent errors when files or functions
9651 are not found. Change all callers.
9652 (do_captured_parse_breakpoint): New function.
9653 (break_command_1): Change prototype to return an rc value and to
9654 take an optional pending breakpoint pointer. Support creating
9655 a pending breakpoint if a "not found" form of error occurs when
9656 parsing the breakpoint. Also support resolving an existing pending
9657 breakpoint and be silent if the resolution fails.
9658 (create_breakpoints): Change prototype to take pending breakpoint
9659 pointer. When resolving a pending breakpoint, use the new pointer
9660 to provide a conditional or commands added by the end-user.
9661 (delete_breakpoint): Add appropriate check for pending.
9662 (breakpoint_re_set_one): Ditto.
9663 (do_enable_breakpoint): Ditto.
9665 2004-02-02 David Carlton <carlton@kealia.com>
9667 * valops.c (enum oload_classification): New.
9668 (find_overload_match): Break implementation into separate
9669 functions; delete #if 0'd code; look for symbols within
9671 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9672 (find_oload_champ,oload_method_static,classify_oload_match): New.
9673 * cp-support.h: Add declaration for cp_func_name; update
9674 declaration for make_symbol_overload_list.
9675 * cp-support.c (cp_func_name): New.
9676 (overload_list_add_symbol): Fix comment, use
9677 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9678 (make_symbol_overload_list): Take a function name and a namespace
9679 instead of a symbol; change implementation.
9680 (make_symbol_overload_list_using): New.
9681 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9683 2004-02-02 Fred Fish <fnf@redhat.com>
9685 * main.c (gdb_stdtarg): Move definition to group with other
9686 gdb_stdtarg definitions and update copyright years.
9687 * remote-sim.c (gdb_os_write_stderr): Write output to
9688 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9689 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9690 gdb_stderr stream and update copyright years.
9692 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9694 * Makefile.in (mips-linux-nat.o): Update dependencies.
9695 * mips-linux-nat.c: Include mips-tdep.h.
9697 2004-02-01 Roland McGrath <roland@redhat.com>
9699 * sol-thread.c (sol_thread_xfer_partial): New function.
9700 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9701 (init_sol_core_ops): Likewise.
9703 * procfs.c (procfs_xfer_partial): New function.
9704 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9705 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9707 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9708 procfs_xfer_auxv function.
9710 * procfs.c (procfs_make_note_section): If we can read
9711 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9712 * linux-proc.c (linux_make_note_section): Likewise.
9716 * Makefile.in (auxv_h): New variable.
9717 (COMMON_OBS): Add auxv.o here.
9718 (auxv.o): New target.
9720 * corelow.c (core_xfer_partial): New function.
9721 (init_core_ops): Use it for core_ops.to_xfer_partial.
9723 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9724 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9725 macro if that is defined.
9727 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9729 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9730 and check the specified thread for each breakpoint.
9731 * breakpoint.h (bpstat_stop_status): Update prototype.
9732 * infrun.c (handle_inferior_event): Update calls to
9735 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9737 * Makefile.in (cli-cmds.o): Add $(readline_h).
9739 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9741 * cli/cli-cmds.c: Include readline.h.
9742 (complete_command): Pass the start of the last word to
9745 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9747 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9748 argument, and change first argument to a CORE_ADDR.
9749 * breakpoint.h (bpstat_stop_status): Update prototype.
9750 * infrun.c (adjust_pc_after_break): Add a new comment.
9751 (handle_inferior_event): Update calls to bpstat_stop_status.
9753 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9755 * breakpoint.h: Update copyright years.
9757 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9759 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9760 (bpstat_stop_status): Don't decrement PC.
9761 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9763 * infrun.c (adjust_pc_after_break): New function.
9764 (handle_inferior_event): Call it, early. Remove later references
9765 to DECR_PC_AFTER_BREAK.
9766 (normal_stop): Add commentary.
9768 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9770 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9771 2004-01-27 double-free fix.
9773 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9775 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9776 (sparc32_frame_prev_register): Handle StackGhost.
9777 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9779 2004-01-29 Roland McGrath <roland@redhat.com>
9781 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9782 * configure: Regenerated.
9784 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9785 * Makefile.in (procfs.o): Add dep.
9787 2004-01-28 Andrew Cagney <cagney@redhat.com>
9789 * tui/tui-stack.h: Update copyright.
9790 (struct frame_info): Add opaque declaration.
9791 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9792 (tui_show_locator_content): Rename tuiShowLocatorContent.
9793 (tui_show_frame_info): Rename tuiShowFrameInfo.
9794 * tui/tui-stack.c: Update copyright. Update references.
9795 * tui/tui-winsource.c: Update references.
9796 * tui/tui-win.c: Update references.
9797 * tui/tui-layout.c: Update references.
9798 * tui/tui-hooks.c: Update copyright, update references.
9799 * tui/tui.c: Update copyright, update references.
9800 * tui/tui-disasm.c: Update references.
9802 2004-01-28 David Carlton <carlton@kealia.com>
9804 * dwarf2read.c (add_partial_structure): Use demangled name if
9805 namespace equals "".
9807 2004-01-27 Jim Blandy <jimb@redhat.com>
9809 Clean up misapplied patch:
9810 * dwarf2read.c (determine_prefix): Change one of the two forward
9811 declarations for 'determine_prefix_aux' to a declaration for this.
9812 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9813 argument to 'die_specification'.
9815 * dwarf2read.c (read_func_scope): Re-indent comment.
9817 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9819 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9820 b->exp to NULL after freeing so that error during re-parsing or
9821 evaluation of expressions associated with breakpoint don't
9822 eventually lead to re-freeing of storage.
9823 Committed by Andrew Cagney.
9825 2004-01-27 Andrew Cagney <cagney@redhat.com>
9827 * source.c (ambiguous_line_spec): Delete undefined declaration.
9828 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9829 (m32r_set_server_address, m32r_set_download_path): Ditto.
9830 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9832 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9834 * dwarf2read.c: Update calls to changed and renamed functions, and
9835 references to moved variables.
9837 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9838 language, language_defn, list_in_scope, and ftypes members.
9839 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9840 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9841 (baseaddr): Remove globals.
9843 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9844 (set_cu_language, die_is_declaration, die_specification)
9845 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9846 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9847 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9848 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9850 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9851 cu.list_in_scope. Don't initialize cu_header_offset.
9852 (add_partial_symbol): Add local baseaddr.
9853 (psymtab_to_symtab_1): Add local baseaddr. Use
9854 objfile->section_offsets for consistency. Don't initialize
9855 cu_header_offset; do initialize cu.header.offset and
9857 (read_file_scope, read_func_scope, read_lexical_block_scope)
9858 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9860 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9862 * PROBLEMS: Add gdb/1516.
9864 2003-12-29 Robert Millan <robertmh@gnu.org>
9866 Patch committed by Andrw Cagney.
9867 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
9868 * configure.tgt: Match knetbsd*-gnu.
9870 2004-01-26 Andrew Cagney <cagney@redhat.com>
9872 * breakpoint.c (catch_command_1): Delete #ifdef code.
9873 (catch_fork_command_1): Delete #ifdef wrapper.
9874 (catch_exec_command_1): Ditto.
9875 (catch_load_command_1): Ditto.
9876 (catch_unload_command_1): Ditto.
9878 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
9879 (catch_breakpoint): Delete #if0ed function.
9880 (disable_catch_breakpoint): Ditto.
9881 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
9882 (disable_catch, enable_catch, delete_catch): Ditto.
9884 2004-01-26 Andrew Cagney <cagney@redhat.com>
9886 * remote.c (echo_check, quit_flag): Delete variables.
9887 (cisco_kernel_mode): Delete variable.
9888 (minitelnet_return, tty_input, escape_count): Delete variables.
9889 (remote_cisco_mode): Delete variable.
9890 (remote_cisco_open, remote_cisco_close): Delete function.
9891 (remote_cisco_mourn, remote_cisco_wait): Delete function.
9892 (init_remote_cisco_ops): Delete function.
9893 (_initialize_remote): Do not install "remote cisco" code.
9894 (read_frame): Delete cisco specific code.
9895 (remote_info_process): Delete function.
9896 (remote_wait): Delete cisco specific code.
9897 (remote_cisco_section_offsets): Delete function.
9898 (remote_cisco_objfile_relocate): Delete function.
9899 (remote_async_wait): Delete cisco specific code.
9900 (minitelnet, readtty, readsocket): Delete function.
9902 2004-01-26 Andrew Cagney <cagney@redhat.com>
9904 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
9905 comments mentioning extract_returned_value_address.
9906 * infcmd.c (print_return_value): Update. Add comments on
9907 extract_returned_value_address.
9908 * stack.c (return_command): Add comments on
9909 extract_returned_value_address.
9910 * values.c: Update comment.
9911 * m32r-tdep.c: Update comment.
9912 * sparc-tdep.c: Update comment.
9913 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
9914 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9915 * sh64-tdep.c (sh64_gdbarch_init): Update.
9916 * sh-tdep.c (sh_gdbarch_init): Update.
9917 * s390-tdep.c (s390_gdbarch_init): Update.
9918 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
9919 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
9920 * m68k-tdep.c (m68k_gdbarch_init): Update.
9921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9922 * m32r-tdep.c (m32r_gdbarch_init): Update.
9923 * ia64-tdep.c (ia64_gdbarch_init): Update.
9924 * h8300-tdep.c (h8300_gdbarch_init): Update.
9925 * frv-tdep.c (frv_gdbarch_init): Update.
9926 * arm-tdep.c (arm_gdbarch_init): Update.
9927 * alpha-tdep.c (alpha_gdbarch_init): Update.
9929 2004-01-26 Andrew Cagney <cagney@redhat.com>
9931 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
9932 SYMBOL_LOCATION_FUNCS
9933 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
9934 "struct symbol_ops".
9935 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
9936 type to "struct symbol_ops".
9937 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
9938 (struct symbol): Replace ".aux_value.loc.funcs" and
9939 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
9940 (SYMBOL_OBJFILE): Delete macro.
9941 (SYMBOL_LOCATION_FUNCS): Delete macro.
9942 (SYMBOL_LOCATION_BATON): Update.
9943 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
9944 intead of SYMBOL_LOCATION_FUNCS.
9945 * ax-gdb.c (gen_var_ref): Ditto.
9946 * printcmd.c (address_info): Ditto.
9947 * findvar.c (read_var_value): Ditto.
9948 (symbol_read_needs_frame): Ditto.
9950 2004-01-26 Andrew Cagney <cagney@redhat.com>
9952 * dwarf2read.c (read_func_scope): Document frame-base hack.
9954 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9956 * infcmd.c (print_return_value): Plug memory leak; delete
9957 ui_stream object. Rename argument `structure_return' to
9960 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9962 * infcmd.c (print_return_value): Wrap long lines.
9963 (finish_command_continuation, finish_command): Remove unused
9964 variable `funcaddr'. Fix some coding-standards problems.
9966 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
9967 SECT_SIZE is large enough, not whether it's exactly the right size.
9968 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
9969 TDEP->fpregset to zero.
9971 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
9972 floating-point registers for traditional NetBSD core files.
9973 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
9974 TDEP->sizeof_fpregset here.
9976 2004-01-25 Mark Kettenis <kettenis@gnu.org>
9978 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
9979 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
9980 function with code split out from
9981 sparc32nbsd_sigcontext_frame_cache.
9982 (sparc32nbsd_sigcontext_frame_cache): Use
9983 sparc32nbsd_sigcontext_saved_regs.
9984 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
9986 * sparcobsd-tdep.c: New file.
9987 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
9988 (sparcobsd-tdep.o): New dependency.
9989 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
9990 * config/sparc/obsd.mt: New file.
9992 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
9993 TDEP->fpregset to be initialized to enable core file register
9996 2004-01-24 Mark Kettenis <kettenis@gnu.org>
9998 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
9999 Add opaque declarations.
10000 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10001 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10002 function with code split out from
10003 sparc64nbsd_sigcontext_frame_cache.
10004 (sparc64nbsd_sigcontext_frame_cache): Use
10005 sparc64nbsd_sigcontext_saved_regs.
10006 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10008 * sparc64obsd-tdep.c: New file.
10009 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10010 (sparc64obsd-tdep.o): New dependency.
10011 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10012 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10013 * config/sparc/obsd64.mt: New file.
10015 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10016 read the instruction at PC.
10018 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10019 value of GDB_OSABI_DEFAULT.
10020 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10021 instead of GDB_OSABI_NETBSD_AOUT.
10023 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10025 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10028 2004-01-23 Andrew Cagney <cagney@redhat.com>
10030 * printcmd.c (display_command): Replace tui_set_display call with
10031 tui_set_layout_for_display_command.
10032 * tui/tui.h (enum tui_win_type): Define.
10033 (tui_set_layout): Delete declaration.
10034 (tui_set_layout_for_display_command): Rename set_tui_layout.
10035 * tui/tui-data.h (enum tui_layout_type): Define.
10036 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10038 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10039 (tui_default_win_height): Rename tuiDefaultWinHeight.
10040 (tui_default_win_viewport_height): Rename
10041 tuiDefaultWinViewportHeight.
10042 (tui_set_layout): RenametuiSetLayout.
10043 * tui/tui-layout.c: Update references.
10044 * tui/tui.c: Update references.
10045 * tui/tui-disasm.c: Update references.
10047 2004-01-23 David Carlton <carlton@kealia.com>
10049 Partial workaround for PR c++/1511:
10050 * cp-namespace.c: Include frame.h.
10051 (cp_lookup_transparent_type): New
10052 (cp_lookup_transparent_type_loop): New.
10053 * cp-support.h: Declare cp_lookup_transparent_type.
10054 * symtab.c (basic_lookup_transparent_type): Renamed from
10055 lookup_transparent_type.
10056 (lookup_transparent_type): Replace old body by a call to
10057 current_language->la_lookup_transparent_type.
10058 * symtab.h: Update copyright. Declare
10059 basic_lookup_transparent_type.
10060 * language.h: Update copyright.
10061 (struct language_defn): Add la_lookup_transparent_type.
10062 * language.c: Update copyright.
10063 (unknown_language_defn): Add basic_lookup_transparent_type.
10064 (auto_language_defn): Add basic_lookup_transparent_type.
10065 (local_language_defn): Add basic_lookup_transparent_type.
10066 * ada-lang.c: Update copyright.
10067 (ada_language_defn): Add basic_lookup_transparent_type.
10068 * c-lang.c: Update copyright.
10069 (c_language_defn): Add basic_lookup_transparent_type.
10070 (cplus_language_defn): Add basic_lookup_transparent_type.
10071 (asm_language_defn): Add basic_lookup_transparent_type.
10072 (minimal_language_defn): Add basic_lookup_transparent_type.
10073 * f-lang.c: Update copyright.
10074 (f_language_defn): Add basic_lookup_transparent_type.
10075 * jv-lang.c: Update copyright.
10076 (java_language_defn): Add basic_lookup_transparent_type.
10077 * m2-lang.c: Update copyright.
10078 (m2_language_defn): Add basic_lookup_transparent_type.
10079 * objc-lang.c: Update copyright.
10080 (objc_language_defn): Add basic_lookup_transparent_type.
10081 * p-lang.c: Update copyright.
10082 (p_language_defn): Add basic_lookup_transparent_type.
10083 * scm-lang.c: Update copyright.
10084 (scm_language_defn): Add basic_lookup_transparent_type.
10085 * Makefile.in (cp-namespace.o): Depend on frame.h.
10087 2004-01-23 David Carlton <carlton@kealia.com>
10089 Patch for PR c++/1520:
10090 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10091 properly if we have a specification die.
10092 (determine_prefix_aux): Rename from determine_prefix.
10093 (determine_prefix): Like the old determine_prefix, but never
10096 2004-01-23 Theodore A. Roth <troth@openavr.org>
10098 * avr-tdep.c: Update copyright.
10099 (avr_iaddr_p): Delete unused function.
10100 (avr_saddr_p): Delete unused function.
10102 2004-01-23 David Carlton <carlton@kealia.com>
10104 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10105 Fix for PR symtab/1534.
10107 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10109 * NEWS (New native configurations): Mention OpenBSD/sparc and
10111 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10112 * configure.host: Likewise.
10113 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10114 handler for OpenBSD.
10115 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10117 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10119 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10120 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10122 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10123 * cli/cli-cmds.c (shell_escape): Likewise.
10125 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10126 OpenBSD .note.openbsd.ident sections.
10128 2004-01-22 David Carlton <carlton@kealia.com>
10130 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10131 get_scope_pc_bounds.
10132 (read_file_scope): Ditto.
10133 (get_scope_pc_bounds): New function, produced by extracting code
10134 from the above two functions, consolidating it, and adding support
10135 for DW_TAG_namespace.
10137 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10139 * osabi.c (MAX_NOTESZ): New define.
10140 (check_note): New function.
10141 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10144 2004-01-21 Roland McGrath <roland@redhat.com>
10146 * MAINTAINERS (write after approval): Add myself.
10148 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10150 * utils.c (init_page_info): Move declarations of `rows' and
10151 `cols' before the __GO32__-specific code. Move the closing brace
10152 outside the #ifdef __GO32__..#endif block.
10153 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10155 2004-01-21 Paul Brook <paul@codesourcery.com>
10157 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10158 BPSTAT_WHAT_CHECK_SHLIBS.
10160 2004-01-21 Paul Brook <paul@codesourcery.com>
10162 * MAINTAINERS: Add myself to write-after-approval.
10164 2004-01-20 Andrew Cagney <cagney@redhat.com>
10166 * ax-gdb.c (print_axs_value): Delete unused function.
10167 * jv-lang.c (java_lookup_type): Delete unused function.
10168 * cli/cli-dump.c (dump_filetype): Delete unused function.
10169 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10170 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10171 (mips_getstring): Delete unused function.
10172 (pmon_insert_breakpoint): Delete #if0ed function.
10173 (PMON_MAX_BP): Delete #if0ed MACRO.
10174 (mips_pmon_bp_info): Delete #if0ed variable.
10175 (pmon_remove_breakpoint): Delete #if0ed function.
10176 * monitor.c (monitor_write_even_block): Delete unused function.
10177 (monitor_write_memory_block): Delete #if0ed code.
10178 * dink32-rom.c (dink32_load): Delete unused function.
10179 (_initialize_dink32_rom): Delete #if0ed code.
10180 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10182 * tui/tui-command.c: Update references.
10183 * tui/tui-io.c: Update references.
10184 * tui/tui-command.h: Update copyright.
10185 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10187 * source.c (ambiguous_line_spec): Delete never-defined function.
10188 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10189 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10190 * cli/cli-cmds.c (validate_comname): Ditto.
10192 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10194 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10195 (tui_show_disassem): Rename tuiShowDisassem.
10196 (tui_show_disassem_and_update_source): Rename
10197 tuiVerticalDisassemScroll.
10198 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10199 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10200 * tui/tui.h: Update copyright.
10201 (enum tui_status): Define.
10202 * tui/tui-data.h (enum tui_scroll_direction): Define.
10203 * tui/tui-disasm.c: Update copyright. Update references.
10204 * tui/tui-winsource.c: Update copyright. Update references.
10205 * tui/tui-win.c: Update references.
10206 * tui/tui-layout.c: Update references.
10208 2004-01-20 Andrew Cagney <cagney@redhat.com>
10210 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10211 sym2 to start of block.
10213 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10215 * MAINTAINERS: Delete mmalloc.
10216 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10217 * NEWS: Mention removal of --with-malloc.
10218 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10219 * config.in: Regenerate.
10220 * configure: Regenerate.
10221 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10222 USE_MMALLOC, MMCHECK_FORCE.
10223 * gdbinit.in: Remove mmalloc.
10224 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10225 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10226 * config/i386/go32.mh: Likewise.
10227 * config/i386/interix.mh: Likewise.
10228 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10230 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10232 * linespec.c (decode_variable, symtab_from_filename): Call
10233 error_silent with error message instead of throwing an exception
10235 * defs.h (error_silent, error_output_message): Add prototypes.
10236 (catch_exceptions_with_msg): Ditto.
10237 * utils.c (error_silent, error_output_message): New functions.
10238 * top.c (catch_exceptions_with_msg): New function.
10240 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10242 * mi/mi-cmds.h (enum print_values): Add definition.
10244 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10245 type and value for simple data types and just the name and type
10246 for complex ones, if required.
10248 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10249 children, if required.
10251 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10253 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10254 unused declarations.
10256 2004-01-19 Andrew Cagney <cagney@redhat.com>
10258 * top.h (mapped_symbol_files): Delete declaration.
10259 * main.c (captured_main): Delete option "m" and "mapped".
10260 * objfiles.c (mapped_symbol_files): Delete variable.
10261 * symfile.c (symbol_file_command): Delete mmap code.
10262 (symbol_file_add_with_addrs_or_offsets): Ditto.
10263 (add_symbol_file_command, reread_separate_symbols): Ditto.
10264 * objfiles.h (OBJF_MAPPED): Delete.
10265 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10266 (free_objfile) [USE_MMALLOC]: Ditto.
10267 (open_existing_mapped_file): Delete function.
10268 (open_mapped_file): Delete function.
10269 (map_to_file): Delete function.
10271 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10273 * infrun.c (step_into_function): Account for possible breakpoint
10274 adjustment when computing ``stop_func_start''.
10276 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10278 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10279 the region size against the size of a pointer, not the size of
10280 a register as given by DEPRECATED_REGISTER_SIZE.
10282 2004-01-19 Andrew Cagney <cagney@redhat.com>
10284 * tui/tui-regs.h: Include "tui-data.h".
10285 (tuiFirstRegElementNoInLine): Delete declaration.
10286 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10287 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10288 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10289 (tui_calculate_regs_column_count): Rename
10290 tuiCalculateRegsColumnCount.
10291 (tui_check_register_values): Rename tuiCheckRegisterValues.
10292 (tui_show_registers): Rename tuiShowRegisters.
10293 (tui_display_registers_from_line): Rename
10294 tuiDisplayRegistersFromLine.
10295 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10296 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10297 (tui_first_reg_element_no_inline): Rename
10298 tuiFirstRegElementNoInLine.
10299 * tui/tui-data.h: Update copyright.
10300 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10301 * tui/tui-windata.c: Update copyright, update references.
10302 * tui/tui-regs.c: Update copyright, update references.
10303 * tui/tui-win.c: Update copyright, update references.
10304 * tui/tui-layout.c: Update copyright, update references.
10306 2004-01-18 Andrew Cagney <cagney@redhat.com>
10308 * tui/tui-io.c: Update copyright.
10309 (key_is_end_sequence, key_is_backspace): New functions.
10310 (key_is_command_char, key_is_start_sequence): New function.
10311 (tui_getc): Update references.
10312 * tui/tui-io.h: Update copyright.
10313 (m_tuiStartNewLine): Delete macro.
10314 (m_isBackspace, m_isDeleteChar): Delete macros.
10315 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10316 (m_isNextPage, m_isPrevPage): Delete macros.
10317 (m_isLeftArrow, m_isRightArrow): Delete macros.
10318 (m_isXdbStyleCommandChar): Delete macro.
10319 (key_is_start_sequence): Declare, replace m_isStartSequence.
10320 (key_is_end_sequence): Declare, replace m_isEndSequence.
10321 (key_is_backspace): Declare ,replace m_isBackspace.
10322 (key_is_command_char): Declare, replace m_isCommandChar.
10323 * tui/tui-command.c: Update copyright.
10324 (tuiDispatchCtrlChar): Update references.
10326 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10329 * tui/tui-command.c: Rename tui/tuiCommand.c.
10330 * tui/tui-command.h: Rename tui/tuiCommand.h.
10331 * tui/tui-data.c: Rename tui/tuiData.c.
10332 * tui/tui-data.h: Rename tui/tuiData.h.
10333 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10334 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10335 * tui/tui-io.c: Rename tui/tuiIO.c.
10336 * tui/tui-io.h: Rename tui/tuiIO.h.
10337 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10338 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10339 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10340 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10341 * tui/tui-source.c: Rename tui/tuiSource.c.
10342 * tui/tui-source.h: Rename tui/tuiSource.h.
10343 * tui/tui-stack.c: Rename tui/tuiStack.c.
10344 * tui/tui-stack.h: Rename tui/tuiStack.h.
10345 * tui/tui-win.c: Rename tui/tuiWin.c.
10346 * tui/tui-win.h: Rename tui/tuiWin.h.
10347 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10348 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10349 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10350 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10351 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10352 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10353 * tui/tui-file.c: Update includes.
10354 * tui/tui-hooks.c: Update includes.
10355 * tui/tui-interp.c: Update includes.
10356 * tui/tui.c: Update includes.
10357 * Makefile.in: Update all tui/ dependencies.
10358 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10360 * Makefile.in: Update copyright. Update dependencies.
10362 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10365 2004-01-18 Andrew Cagney <cagney@redhat.com>
10367 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10368 instead of register_gdbarch_init.
10370 * remote-sds.c (tohex): Delete unused function. Update copyright.
10371 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10372 * v850-tdep.c (v850_register_virtual_size): Ditto.
10373 * target.c (normal_target_post_startup_inferior): Ditto.
10374 * source.c (ambiguous_line_spec): Ditto.
10375 * remote.c (adapt_remote_get_threadinfo): Ditto.
10376 * mi/mi-out.c (out_field_fmt): Ditto.
10377 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10378 (output_control_change_notification): Ditto.
10379 * m68k-tdep.c (m68k_register_byte): Ditto.
10380 (m68k_remote_breakpoint_from_pc): Ditto.
10381 * ui-out.c (init_ui_out_state): Delete unused declaration.
10382 * stabsread.c (search_value): Ditto.
10383 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10384 * maint.c (print_section_table): Ditto.
10385 * infrun.c (set_follow_fork_mode_command): Ditto.
10387 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10389 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10390 DW_CFA_def_cfa_exporession. Add support for
10391 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10392 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10394 2004-01-18 Andrew Cagney <cagney@redhat.com>
10396 * ocd.c: Update copyright.
10397 (bdm_read_register_command): Delete unused function.
10398 (_initialize_remote_ocd): Delete commented out reference.
10399 (get_quoted_char, reset_packet): Delete #if0ed function.
10400 (output_packet, put_quoted_char): Delete #if0ed function.
10401 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10402 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10403 (BDM_BREAKPOINT): Delete #if0ed macro.
10404 (remote_timeout): Delete #if0ed variable.
10406 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10408 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10409 (core-sol2.o): Remove dependency.
10410 * core-sol2.c: Remove file.
10412 2004-01-17 Andrew Cagney <cagney@redhat.com>
10414 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10415 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10418 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10420 * remote.c: Update copyright years.
10422 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10424 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10426 2004-01-17 Andrew Cagney <cagney@redhat.com>
10428 * mdebugread.c: Update copyright.
10429 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10430 (parse_type, parse_procedure): Ditto.
10431 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10433 * cris-tdep.c (cris_store_struct_return): Put back accidently
10436 * gdbarch.sh: Update copyright year.
10437 * gdbarch.h, gdbarch.c: Re-generate.
10439 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10441 Suggested by George Anzinger.
10442 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10443 correct stack offset. Include unknown opcode numbers in the error
10446 2004-01-17 Andrew Cagney <cagney@redhat.com>
10448 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10449 extract_struct_value_address, i386 does not set it.
10450 * sparc64-tdep.c (sparc64_init_abi): Do not set
10451 extract_struct_value_address, never called.
10452 (sparc64_extract_struct_value_address): Delete function.
10453 * m68hc11-tdep.c: Update copyright.
10454 (m68hc11_gdbarch_init): Delete redundant assignment of
10455 extract_struct_value_address.
10456 * i386-tdep.c: Update copyright.
10457 (i386_gdbarch_init): Do not set extract_struct_value_address,
10459 (i386_extract_struct_value_address): Delete function.
10460 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10461 extract_struct_value_address, never called.
10462 (sparc32_extract_struct_value_address): #if 0 function. Add
10463 comments explaining its future.
10465 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10467 * arm-tdep.c (arm_write_pc): New function.
10468 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10470 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10472 * breakpoint.c (must_shift_inst_regs): Delete.
10473 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10474 and SHIFT_INST_REGS.
10475 * infcmd.c (step_1, step_1_continuation): Delete references to
10477 * infrun.c (keep_going): Likewise.
10478 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10479 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10481 2004-01-17 Andrew Cagney <cagney@redhat.com>
10483 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10484 * gdbarch.h, gdbarch.c: Re-generate.
10485 * infcmd.c (print_return_value): Delete reference to
10486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10488 * cris-tdep.c (cris_gdbarch_init): Do not set
10489 deprecated_extract_struct_value_address.
10491 * xstormy16-tdep.c: Update copyright.
10492 (xstormy16_extract_struct_value_address): Update to current
10493 extract struct value address interface.
10494 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10495 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10496 current extract struct value address interface.
10497 (sh64_gdbarch_init): Set extract_struct_value_address.
10499 * cris-tdep.c: Update copyright.
10500 (cris_extract_struct_value_address): Delete function.
10501 (struct_return_address): Delete variable.
10502 (cris_store_struct_return): Do not set struct_return_address.
10504 * mcore-tdep.c: Update copyright.
10505 (mcore_extract_struct_value_address): Delete function. Update
10507 (mcore_gdbarch_init): Update.
10508 * mn10300-tdep.c: Update copyright.
10509 (mn10300_extract_struct_value_address): Delete function.
10510 (mn10300_gdbarch_init): Update.
10511 * v850-tdep.c: Update copyright.
10512 (v850_extract_struct_value_address): Delete.
10513 (v850_gdbarch_init): Update.
10514 * ns32k-tdep.c: Update copyright.
10515 (ns32k_extract_struct_value_address): Delete.
10516 (ns32k_gdbarch_init): Update.
10517 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10518 (hppa_gdbarch_init): Update.
10519 * vax-tdep.c: Update copyright.
10520 (vax_extract_struct_value_address): Delete.
10521 (vax_gdbarch_init): Update.
10523 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10524 * gdbarch.h, gdbarch.c: Re-generate.
10525 * procfs.c (procfs_fetch_registers): Delete reference to
10526 DEPRECATED_NPC_REGNUM.
10527 (procfs_store_registers): Ditto.
10528 * regcache.c (generic_target_write_pc): Simplify.
10529 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10531 * core-sol2.c (fetch_core_registers): Replace
10532 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10534 * hppa-tdep.c: Update copyright year.
10535 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10537 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10539 * mips-tdep.c (mips_write_pc): New function.
10540 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10541 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10542 (mips_find_saved_regs, mips_software_single_step: Ditto.
10543 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10544 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10546 2004-01-17 Andrew Cagney <cagney@redhat.com>
10548 * mips-tdep.c: Re-indent. Group functions by ABI.
10550 2004-01-17 Andrew Cagney <cagney@redhat.com>
10552 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10553 * gdbarch.c: Re-generate.
10554 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10555 DECR_PC_AFTER_BREAK to zero.
10556 * vax-tdep.c (vax_gdbarch_init): Ditto.
10557 * v850-tdep.c (v850_gdbarch_init): Ditto.
10558 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10559 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10560 * sh-tdep.c (sh_gdbarch_init): Ditto.
10561 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10562 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10564 * mips-tdep.c (mips_gdbarch_init): Ditto.
10565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10567 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10568 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10569 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10570 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10572 * frv-tdep.c (frv_gdbarch_init): Ditto.
10573 * cris-tdep.c (cris_gdbarch_init): Ditto.
10574 * avr-tdep.c (avr_gdbarch_init): Ditto.
10575 * arm-tdep.c (arm_gdbarch_init): Ditto.
10576 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10578 2004-01-17 J. Brobecker <brobecker@gnat.com>
10580 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10581 Delete, no longer used.
10582 (read_subrange_type): New function, mostly extracted from
10584 (read_array_type): Replace extracted code by call to
10585 read_subrange_type().
10586 (dwarf2_get_attr_constant_value): New function.
10587 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10588 (add_partial_symbol): Likewise.
10589 (process_die): Likewise.
10590 (new_symbol): Likewise.
10591 (read_type_die): Likewise.
10593 2004-01-16 Andrew Cagney <cagney@redhat.com>
10595 * symfile.c: Update copyright year.
10596 (compare_symbols): Delete unused function.
10597 * stabsread.c: Update copyright year.
10598 (lrs_general_complaint): Delete unused function.
10599 (ref_search_value): Ditto.
10600 (get_substring): Delete declaration.
10601 * sh64-tdep.c: Update copyright year.
10602 (sh64_get_gdb_regnum): Delete unused function.
10603 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10604 Delete unused function.
10606 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10608 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10609 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10611 2004-01-16 Andrew Cagney <cagney@redhat.com>
10613 Changes from Peter Schauer.
10614 * rs6000-tdep.c: Update copyright year.
10615 (rs6000_push_dummy_call): Update the stack pointer before
10616 accessing the corresponding stack region.
10617 * rs6000-nat.c: Update copyright year.
10618 (set_host_arch): Set "info.abfd" to "exec_bfd".
10620 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10622 * blockframe.c: Update copyright year.
10623 (inside_entry_func): Don't treat a zero PC specially.
10625 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10627 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10629 (gcore_create_callback): Ditto. Skip any memory segment that has
10630 no permissions set.
10632 2004-01-14 David Carlton <carlton@kealia.com>
10634 Change symbols for C++ nested types to contain the fully qualified
10635 name, if possible. (At least in the DWARF-2 case.) Partial fix
10636 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10638 * c-exp.y (qualified_type): Handle types nested within classes.
10639 * cp-namespace.c: Update comments.
10640 (cp_set_block_scope): Delete #if 0.
10641 (cp_lookup_nested_type): Handle types nested within classes.
10642 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10644 (add_partial_symbol): Add the name of the enclosing namespace to
10646 (pdi_needs_namespace): New.
10647 (add_partial_namespace): Tweak comment.
10648 (add_partial_structure): New.
10649 (psymtab_to_symtab_1): Initialize processing_current_prefix
10651 (process_die): instead of here.
10652 (read_structure_scope): Try to figure out the name of the class or
10653 namespace that the structure might be defined within.
10654 (read_enumeration): Generate fully-qualified names, if possible.
10655 (read_namespace): Don't set name to NULL.
10656 (die_specification): New.
10657 (new_symbol): Generate fully-qualified names for types.
10658 (read_type_die): Determine appropriate prefix.
10659 (determine_prefix): New.
10660 (typename_concat): New.
10662 * valops.c (value_aggregate_elt): Pass NOSIDE to
10663 value_struct_elt_for_reference.
10664 (value_struct_elt_for_reference): Make static, add NOSIDE
10665 parameter, call value_maybe_namespace_elt as a last resort.
10666 (value_namespace_elt): Break out code into
10667 value_maybe_namespace_elt.
10668 (value_maybe_namespace_elt): New.
10670 2004-01-12 Andrew Cagney <cagney@redhat.com>
10672 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10673 cooked floating-point registers.
10674 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10675 and value_to_register.
10677 2004-01-13 Andrew Cagney <cagney@redhat.com>
10679 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10680 * gdbarch.c: Re-generate.
10681 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10682 FUNCTION_START_OFFSET.
10683 * v850-tdep.c (v850_gdbarch_init): Ditto.
10684 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10685 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10686 * sh-tdep.c (sh_gdbarch_init): Ditto.
10687 * s390-tdep.c (s390_gdbarch_init): Ditto.
10688 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10689 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10690 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10691 * mips-tdep.c (mips_gdbarch_init): Ditto.
10692 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10693 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10694 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10695 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10696 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10697 * i386-tdep.c (i386_gdbarch_init): Ditto.
10698 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10699 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10700 * frv-tdep.c (frv_gdbarch_init): Ditto.
10701 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10702 * cris-tdep.c (cris_gdbarch_init): Ditto.
10703 * avr-tdep.c (avr_gdbarch_init): Ditto.
10704 * arm-tdep.c (arm_gdbarch_init): Ditto.
10705 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10707 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10709 * infrun.c (follow_fork_mode_ask): Remove.
10710 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10711 (follow_fork): Simplify and remove internal error for
10712 follow_fork_mode_ask.
10713 (_initialize_infrun): Update "set follow-fork-mode" help text.
10715 2004-01-13 Andrew Cagney <cagney@redhat.com>
10717 * configure.in: Update copyright year.
10718 (build_warnings): Add -Wunused-label.
10719 * configure: Re-generate.
10721 2004-01-12 Andrew Cagney <cagney@redhat.com>
10723 * exec.h (exec_ops): Make "extern".
10725 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10726 the function is void.
10727 (mips_pseudo_register_write): Ditto.
10729 2004-01-12 Andrew Cagney <cagney@redhat.com>
10731 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10732 call. Never defined.
10733 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10734 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10735 (struct sparc_gregset, struct regcache): Ditto.
10736 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10738 2004-01-12 Andrew Cagney <cagney@redhat.com>
10740 * mi/ChangeLog: Delete file. Renamed to ...
10741 * mi/ChangeLog-1999-2003: New file.
10742 * tui/ChangeLog: Delete file. Renamed to ...
10743 * tui/ChangeLog-1998-2003: New file.
10745 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10747 * sparc64nbsd-tdep.c: Include "regset.h".
10748 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10750 (fetch_core_registers): Remove function.
10751 (sparc64nbsd_core_fns): Remove variable.
10752 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10754 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10755 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10756 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10758 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10759 sparc_extract_struct_value_address.
10760 (sparc32_gdbarch_init): Set extract_struct_value_address.
10761 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10763 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10764 return_value_on_stack.
10766 * NEWS: Mention that %cs and %ss have been added to the AMD64
10769 * frame.c: Update copyright year.
10770 (get_prev_frame): Improve comment.
10772 * sparc64fbsd-tdep.c: Include "regset.h".
10773 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10775 (fetch_core_registers): Remove function.
10776 (sparc64fbsd_core_fns): Remove variable.
10777 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10779 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10780 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10781 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10783 * sparcnbsd-tdep.c: Include "regset.h".
10784 (fetch_core_registers): Remove function.
10785 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10786 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10788 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10790 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10792 * sparc-tdep.h (struct regset): Provide opaque declaration.
10793 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10794 fpregset and sizeof_fpregset members.
10795 * sparc-tdep.c (struct regset): Provide opaque declaration.
10796 (sparc_regset_from_core_section): New function.
10797 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10798 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10799 Set regset_from_core_section when appropriate.
10801 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10803 * x86-64-tdep.c (amd64_non_pod_p): New function.
10804 (amd64_classify_aggregate): Return class memory for non-POD
10805 C++ structure types.
10807 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10808 argument. Use it to reserve a register if necessary.
10809 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10810 amd64_push_arguments.
10812 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10814 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10815 register numbers in comments.
10816 * x86-64-tdep.h: Update copyright year.
10817 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10818 Adjust for addition of %cs and %ss.
10819 * amd64fbsd-nat.c: Update copyright year.
10820 (reg_offset): Add register offsets for %cs and %ss.
10821 * amd64fbsd-tdep.c: Update copyright year.
10822 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10823 (amd64fbsd_sc_reg_offset): Likewise.
10824 * x86-64-linux-nat.c: Update copyright year.
10825 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10827 * amd64nbsd-nat.c: Update copyright year.
10828 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10829 * amd64nbsd-tdep.c: Update copyright year.
10830 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10831 * x86-64-linux-tdep.c: Update copyright year.
10832 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10833 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10834 * regformats/reg-x86-64.dat: Add %cs and %ss.
10836 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10837 variables to prevent long lines. Update comments to reflect
10840 2004-01-09 David Carlton <carlton@kealia.com>
10842 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10843 * dwarf2read.c (read_namespace): Pull out name-generating code
10844 into namespace_name. Rename previous_namespace to previous_prefix
10845 and processing_current_namespace to processing_current_prefix..
10846 (namespace_name): New function.
10847 (add_partial_symbol): Substitute uses of pdi->name with
10849 * cp-support.h: Rename processing_current_namespace to
10850 processing_current_prefix.
10851 Update copyright year.
10852 * cp-namespace.c: Rename processing_current_namespace to
10853 processing_current_prefix.
10854 Update copyright year.
10856 2004-01-09 Andrew Cagney <cagney@redhat.com>
10858 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10860 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10862 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10864 (process_one_symbol): Deal with N_PATCH stabs.
10866 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
10868 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
10870 Update copyright year.
10872 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10874 * config/pa/tm-hppa.h: Update extern declarations for
10875 hppa32_hpux_frame_saved_pc_in_sigtramp,
10876 hppa32_hpux_frame_base_before_sigtramp, and
10877 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
10879 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
10881 * config/pa/tm-hppah.h: Update copyright years.
10883 2004-01-08 Andrew Cagney <cagney@redhat.com>
10885 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
10886 (mips_o32_reg_struct_has_addr): Delete function.
10887 (mips_gdbarch_init): Update.
10888 (mips_extract_struct_value_address): Delete function.
10890 2004-01-08 David Mosberger <davidm@hpl.hp.com>
10892 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
10895 2004-01-07 Andrew Cagney <cagney@redhat.com>
10897 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
10898 architecture's elf flags (when available).
10900 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
10901 FPU to the start, check the MIPS FPU when looking for an old
10903 (set_mipsfpu_single_command): Update the architecture.
10904 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
10906 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
10907 (mips_mask_address_p): Add "tdep" parameter.
10908 (show_mask_address, mips_addr_bits_remove): Update.
10909 (mips_dump_tdep): Update.
10910 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
10911 (MIPS_STACK_ARGSIZE): Delete macro.
10912 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
10913 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
10914 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
10915 (mips_dump_tdep): Update.
10916 (MIPS_SAVED_REGSIZE): Delete macro.
10917 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
10918 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
10919 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
10920 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
10921 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
10922 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
10923 (mips_pop_frame, return_value_location): Update.
10924 (mips_n32n64_return_value, mips_dump_tdep): Update.
10926 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
10929 * mips-tdep.c: Update copyright.
10930 (mips_gdbarch_init): Merge two code blocks handling the register
10931 name and number layout.
10933 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
10935 * tracepoint.c (validate_actionline): Fix segv at EOF
10937 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
10939 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
10940 properly for static fields.
10942 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
10943 Jason Molenda <jmolenda@apple.com>
10945 * disasm.c: Update copyright to include 2004.
10946 (do_mixed_source_and_assembly): For uiout asm list
10947 and tuple cleanups, initialize to null_cleanup instead of
10948 NULL and do so prior to loop. Only reset when we close off
10949 the tuple/list. Move check for whether to close off the
10950 asm tuple/list to after dump_insns call where it will be run
10951 on each loop iteration.
10953 2004-01-05 Andrew Cagney <cagney@redhat.com>
10955 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
10956 should be a switch case and not a label.
10957 * mips-tdep.c (mips32_next_pc): Delete unused labels
10958 "greater_equal_branch" and "less_zero_branch".
10959 * jv-valprint.c (java_print_value_fields): Delete unused label
10962 * target.c (unpush_target): Only close a target that is in the
10965 2004-01-05 Mark Kettenis <kettenis@gnu.org>
10967 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
10968 address from [sp + 64] instead of %o2.
10970 * frame.c (get_prev_frame): Don't try to unwind the PC. This
10971 fixes PR backtrace/1476.
10973 2004-01-05 Andrew Cagney <cagney@redhat.com>
10975 * libunwind-frame.h (struct frame_id): Add opaque declaration,
10976 move to start of file.
10977 * i386-tdep.h (struct regcache): Add opaque declaration.
10978 * config/ia64/nm-linux.h (struct target_ops): Add opaque
10980 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
10981 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
10982 * win32-nat.c (fake_create_process): Use ISO C style definition.
10983 * stabsread.c (define_symbol): Delete #ifndef
10984 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
10985 stabs_argument_has_addr call, macro never defined.
10987 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
10989 * op50-rom.c: Delete.
10990 * w89k-rom.c: Delete.
10991 * Makefile.in: Remove references.
10993 2004-01-04 Mark Kettenis <kettenis@gnu.org>
10995 * x86-64-tdep.c: Update copyright year.
10996 (struct amd64_register_info): Rename from x86_64_register_info.
10997 (amd64_register_info): Rename from x86_64_register_info.
10998 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
10999 (amd64_register_name): Rename from x86_64_register_name.
11000 (amd64_register_type): Rename from x86_64_register_type.
11001 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11002 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11003 (amd64_dwarf_reg_to_regnum): Rename from
11004 x86_64_dwarf_reg_to_regnum.
11005 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11006 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11007 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11008 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11009 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11010 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11011 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11012 (amd64_frame_cache): Rename from x86_64_frame_cache.
11013 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11014 (amd64_frame_prev_register): Rename from
11015 x86_64_frame_prev_register.
11016 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11017 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11018 (amd64_sigtramp_frame_cache): Rename from
11019 x86_64_sigtramp_frame_cache.
11020 (amd64_sigtramp_frame_prev_register): Rename from
11021 x86_64_sigtramp_frame_prev_register.
11022 (amd64_sigtramp_frame_unwind): Rename from
11023 x86_64_sigtramp_frame_unwind.
11024 (amd64_sigtramp_frame_sniffer): Rename from
11025 x86_64_sigtramp_frame_sniffer.
11026 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11027 (amd64_frame_base): Rename from x86_64_frame_base.
11028 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11029 (amd64_frame_align): Rename from x86_64_frame_align.
11030 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11031 (amd64_regset_from_core_section): Rename from
11032 x86_64_regset_from_core_section.
11033 (x86_64_init_abi): Update comments.
11035 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11037 * MAINTAINERS (write after approval): Add myself.
11039 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11041 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11044 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11046 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11047 such that it mentions a specific version of GCC that exhibits this
11050 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11052 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11053 structure that has a single `float' member, store it in %f1 in
11056 * sparc-sol2-nat.c: Add missing '\'.
11058 * sparc-tdep.c (sparc32_return_value): New function.
11059 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11061 (sparc32_gdbarch_init): Set return_value, don't set
11062 extract_return_value, store_return_value, use_struct_convention
11063 and return_value_on_stack.
11065 * sparc-sol2-nat.c: Add missing ')'.
11067 2004-01-03 J. Brobecker <brobecker@gnat.com>
11069 * infrun.c (handle_step_into_function): New function.
11070 (handle_inferior_event): Extract out some code into the new
11073 2004-01-03 J. Brobecker <brobecker@gnat.com>
11075 * infrun.c (handle_inferior_event): Move the declaration of
11076 real_stop_pc inside the if blocks where it is used.
11078 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11080 * sparc64-tdep.c (sparc64_16_byte_align_p)
11081 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11082 Use check_typedef to get subtypes of structures and unions.
11083 (sparc64_store_return_value): Fix calculation of the appropriate
11084 offset into VALBUF when storing a structure or union.
11085 (sparc64_return_value): New function.
11086 (sparc64_use_struct_convention): Remove function.
11087 (sparc64_init_abi): Set return_value, don't set
11088 extract_return_value, store_return_value and
11089 use_struct_convention.
11091 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11093 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11094 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11095 gdb/config/alpha/xm-alphaosf.h,
11096 gdb/config/powerpc/tm-ppcle-eabi.h,
11097 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11098 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11099 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11100 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11101 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11102 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11103 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11104 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11105 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11106 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11107 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11108 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11109 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11110 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11111 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11112 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11113 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11114 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11115 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11116 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11117 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11118 Remove lines for .cvsignore files.
11120 2004-01-03 J. Brobecker <brobecker@gnat.com>
11122 * infrun.c: Back out the previous change.
11124 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11126 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11127 sparc-*-sunos4* to the list of REMOVED configurations.
11129 * configure.tgt: Add back sparc-*-vxworks*.
11130 * remote-vxsparc.c: Remove all includes except for "defs.h",
11131 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11132 Include "sparc-tdep.h".
11133 (SPARC_R_G1): New define.
11134 (vxsparc_gregset): New variable.
11135 (ext_format_sparc): Remove extern declaration.
11136 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11137 sparc32_supply_fpregset.
11138 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11139 sparc_collect_rwindow and sparc32_collect_fpregset.
11140 * config/sparc/tm-vxworks.h: New file, based on recently removed
11142 * config/sparc/vxworks.mt: New file, based on recently removed
11145 2004-01-03 J. Brobecker <brobecker@gnat.com>
11147 * infrun.c (handle_step_into_function): New function.
11148 (handle_inferior_event): Extract out some code into the new
11151 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11153 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11154 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11155 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11156 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11157 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11158 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11159 (sparc_nat_h): New variable.
11160 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11161 (tm-sun4os4.h): Remove dependency.
11162 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11163 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11164 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11165 sparc-tdep.o): Update dependencies.
11166 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11167 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11168 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11170 * configure.host: Remove existing sparc-*-lynxos*,
11171 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11172 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11173 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11174 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11176 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11177 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11178 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11179 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11180 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11181 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11182 sparc64-*-solaris2* and sparc64-*-* triplets.
11183 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11184 "symtab.h" and "objfiles.h".
11185 (BIAS): Remove define.
11186 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11187 (X_DISP19): Remove macros.
11188 (sparc_fetch_instruction): Remove function.
11189 (struct gdbarch_tdep): Remove definition.
11190 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11191 (sparc_breakpoint_from_pc): Remove function.
11192 (struct sparc64_frame_cache): Remove definition.
11193 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11194 sparc64_unwind_pc): Remove functions.
11195 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11196 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11197 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11198 (sparc64_frame_cache): Change return type to `struct
11199 sparc_frame_cache *'. Simply call sparc_frame_cache.
11200 (sparc64_frame_this_id, sparc64_frame_prev_register,
11201 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11202 instead of `struct sparc64_frame_cache.
11203 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11204 sparc_analyze_control_transfer, sparc_software_single_step,
11205 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11206 _initialize_sparc64_tdep): Remove functions.
11207 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11208 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11210 (sparc64_supply_gregset, sparc64_collect_gregset,
11211 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11212 (sparc64_init_abi): New function.
11213 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11214 inclusion guard. Include "sparc-tdep.h".
11216 (r_tstate_offset, r_fprs_offset): New defines.
11217 (enum sparc_regnum): Remove defenition.
11218 (enum sparc64_regnum): Reformat.
11219 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11220 (sparc64_init_abi, sparc64_supply_gregset,
11221 sparc64_collect_gregset, sparc64_supply_fpregset,
11222 sparc64_collect_fpregset): New prototypes.
11223 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11224 Add extern declarations.
11225 (sparc64_sol2_init_abi): New prototype.
11226 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11227 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11229 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11231 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11233 (_initialize_sparc64fbsd_nat): Remove initialization of
11234 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11235 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11236 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11237 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11238 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11239 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11240 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11241 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11242 (sparc64fbsd_r_y_offset): Remove variables.
11243 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11244 Make static and const.
11245 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11246 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11248 (sparc64fbsd_gregset): New variable.
11249 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11250 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11251 and sparc64_supply_fpregset.
11252 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11253 (sparc64fbsd_sigtramp_frame_this_id)
11254 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11255 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11256 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11257 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11258 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11259 * sparcnbsd-tdep.c: Update copyright year. Include
11260 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11261 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11262 "value.h" and "sparcnbsd-tdep.h".
11263 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11264 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11265 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11266 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11268 (sparcnbsd_gregset): New variable.
11269 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11270 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11271 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11272 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11273 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11275 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11276 (sparc32nbsd_sigcontext_frame_this_id)
11277 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11278 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11279 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11280 (sparcnbsd_get_longjmp_target_32,
11281 sparcnbsd_get_longjmp_target_64): Remove functions.
11282 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11283 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11284 sparcnbsd_init_elf): Remove.
11285 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11286 (sparcnbsd_elf_init_abi): New functions.
11287 (_initialize_sparcnbsd_tdep): New prototype.
11288 (_initialize_sparnbsd_tdep): Update.
11289 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11290 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11291 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11292 * config/sparc/linux.mh: Update comment.
11293 (XM_FILE, HOST_IPC): Remove variables.
11294 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11296 * config/sparc/linux.mt: Update comment.
11297 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11298 * config/sparc/nbsd.mt: Reformat.
11299 * config/sparc/nbsd64.mh: Update comment.
11300 (NATDEPFILES): Add sparc-nat.o.
11301 * config/sparc/nbsd64.mt: Update comment.
11302 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11303 (TM_FILE): Set to tm-nbsd.h.
11304 * config/sparc/nbsdelf.mh: Update comment.
11305 (NATDEPFILES): Add sparc-nat.o.
11307 * config/sparc/nbsdaout.mh: Update comment.
11308 (NATDEPFILES): Add sparc-nat.o
11310 * config/sparc/nm-linux.h: Update copyright year. Don't include
11311 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11313 (KERNEL_U_SIZE): Remove define.
11314 (kernel_u_size): Remove prototype.
11315 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11316 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11318 (CHILD_PREPARE_TO_STORE): Remove define.
11319 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11320 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11321 sparcnbsd-nat.c: Rewrite files.
11322 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11323 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11324 sparcnbsd-tdep.h: Remove files.
11325 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11326 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11327 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11328 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11329 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11330 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11331 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11332 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11333 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11334 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11335 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11336 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11337 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11338 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11339 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11340 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11341 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11342 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11343 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11345 2004-01-02 Andrew Cagney <cagney@redhat.com>
11347 From 2003-12-18 Kazuhiro Inaoka:
11348 * configure.host: Add m32r-linux target.
11350 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11352 * top.c (print_gdb_version): Update year to 2004.
11354 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11356 * MAINTAINERS: Add myself to the write-after-approval category.
11358 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11360 From Bernardo Innocenti <bernie@develer.com>:
11361 * configure.tgt: Add uClinux target.
11363 2004-01-02 Andrew Cagney <cagney@redhat.com>
11365 * utils.c (do_my_cleanups): Make static, add forward declaration.
11366 * defs.h (do_my_cleanups): Delete declaration.
11368 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11370 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11371 bfd/ChangeLog-0203.
11373 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11375 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11376 in <machine/reg.h>.
11377 * configure, config.in: Regenerate.
11379 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11380 tui/ChangeLog-1998-2003.
11386 version-control: never