1 2004-09-02 Joel Brobecker <brobecker@gnat.com>
3 * mips-tdep.c (mips_insn32_frame_cache): Remove some dead code.
4 Minor reformatting. Some code factoring.
6 2004-09-02 Andrew Cagney <cagney@gnu.org>
8 * config/vax/nbsd.mt (TM_FILE): Set to solib.h.
9 * config/vax/tm-nbsd.h: Delete file.
10 * config/sparc/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
11 * config/sparc/tm-vxworks.h: Delete file.
12 * config/sparc/nbsd.mt (TM_FILE): Set to solib.h.
13 * config/sparc/tm-nbsd.h: Delete file.
14 * config/sparc/linux64.mt (TM_FILE): Set to solib.h.
15 * config/sparc/linux.mt (TM_FILE): Set to solib.h.
16 * config/sparc/tm-linux.h: Delete file.
17 * config/s390/s390.mt (TM_FILE): Set to config/tm-linux.h
18 * config/s390/tm-linux.h: Delete file.
19 * config/pa/obsd.mt (TM_FILE): Set to solib.h.
20 * config/pa/tm-bsd.h: Delete file.
21 * config/m68k/obsd.mt (TM_FILE): Set to solib.h.
22 * config/m68k/tm-obsd.h: Delete file.
23 * config/m68k/nbsd.mt (TM_FILE): Set to solib.h.
24 * config/m68k/tm-nbsd.h: Delete file.
25 * config/i386/vxworks.mt (TM_FILE): Set to config/tm-vxworks.h.
26 * config/i386/tm-vxworks.h: Delete file.
27 * config/i386/obsd64.mt (TM_FILE): Set to solib.h.
28 * config/i386/obsd.mt (TM_FILE): Set to solib.h.
29 * config/i386/nbsd64.mt (TM_FILE): Set to solib.h.
30 * config/i386/nbsd.mt (TM_FILE): Set to solib.h.
31 * config/i386/tm-nbsd.h: Delete file.
32 * config/i386/i386lynx.mt (TM_FILE): Set to config/tm-lynx.h.
33 * config/i386/tm-i386lynx.h: Delete file.
34 * config/cris/cris.mt (TM_FILE): Set to solib.h.
35 * config/cris/tm-cris.h: Delete file.
37 * configure.in: Let TM_FILE, XM_FILE and NAT_FILE specify a path.
38 * configure: Re-generate.
39 * config/arm/nbsd.mt (TM_FILE): Set to "solib.h".
40 * config/arm/tm-nbsd.h: Delete file.
42 * config/powerpc/tm-ppcle-sim.h: Delete.
43 * config/powerpc/tm-ppcle-eabi.h: Delete.
44 * config/powerpc/tm-nbsd.h: Delete.
45 * config/powerpc/nbsd.mt (TM_FILE): Set to tm-ppc-eabi.h.
46 * config/djgpp/fnchange.lst: Do not rename tm-ppcle-sim.h or
49 * config/i386/nto.mh (NAT_FILE): Delete.
50 * config/i386/nm-nto.h: Delete.
52 * config/m68k/tm-vx68.h: Do not include "tm-m68k.h".
53 * config/m68k/tm-os68k.h: Ditto.
54 * config/m68k/tm-monitor.h: Ditto.
55 * config/m68k/tm-cisco.h: Ditto.
56 * config/m68k/st2000.mt (TM_FILE): Delete.
57 * config/m68k/tm-vx68.h (GET_LONGJMP_TARGET): Delete.
58 * config/m68k/tm-cisco.h (GET_LONGJMP_TARGET): Delete.
59 * config/m68k/tm-m68k.h (m68k_get_longjmp_target): Delete file.
60 * m68k-tdep.c (m68k_get_longjmp_target): Make static.
62 * config/m68k/tm-st2000.h: Delete.
63 * config/m68k/st2000.mt (TM_FILE): Set to tm-m68k.h.
64 * config/sparc/fbsd.mt (TM_FILE): Delete.
65 * config/sparc/tm-fbsd.h: Delete.
67 * acconfig.h (GDB_MULTI_ARCH): Delete undef.
68 * defs.h (GDB_MULTI_ARCH_PARTIAL, GDB_MULTI_ARCH_TM)
69 (GDB_MULTI_ARCH_PURE, GDB_MULTI_ARCH): Delete macros.
71 * gdbarch.sh: Instead of GDB_MULTI_ARCH print GDB_NM_FILE,
72 GDB_TM_FILE and GDB_XM_FILE.
73 * gdbarch.c: Re-generate.
74 * configure.in (GDB_XM_FILE, GDB_NM_FILE, GDB_TM_FILE): Include
75 quotes in macro definition.
76 * configure.in: Re-generate.
78 * gdbarch.sh: Delete check for GDB_MULTI_ARCH_PARTIAL when
79 validating architecture methods.
80 * gdbarch.c: Re-generate.
82 * gdbarch.sh: Delete check for consistency between GDB_MULTI_ARCH
83 and GDB_TM_FILE. Check for GDB_TM_FILE instead of
84 GDB_MULTI_ARCH_PARTIAL.
85 * gdbarch.h: Re-generate.
87 * config/sparc/tm-vxworks.h (GDB_MULTI_ARCH): Delete.
88 * config/sparc/tm-sol2.h (GDB_MULTI_ARCH): Delete.
89 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete.
90 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete.
91 * config/sparc/tm-fbsd.h (GDB_MULTI_ARCH): Delete.
92 * config/sh/tm-sh.h (GDB_MULTI_ARCH): Delete.
93 * config/rs6000/tm-rs6000.h (GDB_MULTI_ARCH): Delete.
94 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Delete.
95 * config/mips/tm-mips.h (GDB_MULTI_ARCH): Delete.
96 * config/ia64/tm-ia64.h (GDB_MULTI_ARCH): Delete.
97 * config/cris/tm-cris.h (GDB_MULTI_ARCH): Delete.
98 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Delete.
100 2004-09-01 Andrew Cagney <cagney@gnu.org>
102 * objfiles.h (struct entry_info): Delete fields main_func_lowpc
103 and main_func_highpc.
104 (INVALID_ENTRY_LOWPC, INVALID_ENTRY_HIGHPC): Delete macros.
105 * objfiles.c (init_entry_point_info, objfile_relocate): Update
106 * nlmread.c (nlm_symfile_read): Update.
108 2004-09-01 Joel Brobecker <brobecker@gnat.com>
110 * mips-tdep.c (linked_proc_desc_table): Delete, not used.
111 (mips_insn32_frame_cache): Inline call to find_proc_desc.
112 (find_proc_desc): Remove dead code.
114 2004-09-01 Joel Brobecker <brobecker@gnat.com>
116 * mips-tdep.c (mips_mdebug_frame_cache): Minor reformatting.
118 2004-09-01 Jeff Johnston <jjohnstn@redhat.com>
120 * observer.sh: Add struct so_list declaration.
121 * Makefile.in: Add dependencies on observer.h for solib.c and
123 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): New
125 (_initialize_breakpoint): Register
126 disable_breakpoints_in_unloaded_shlib as an observer of the
127 "solib unloaded" observation event.
128 (re_enable_breakpoints_in_shlibs): For bp_shlib_disabled breakpoints,
129 call decode_line_1 so unfound breakpoint errors are silent.
130 * solib.c (update_solib_list): When a solib is discovered to have
131 been unloaded by the program, notify all observers of the
132 "solib unloaded" observation event.
134 2004-09-01 Andrew Cagney <cagney@gnu.org>
136 * frame.c: Include "objfiles.h".
137 (inside_main_func): New function.
138 (get_prev_frame): Use new inside_main_func.
139 * Makefile.in (frame.o): Update dependencies.
140 * defs.h (inside_main_func): Delete declaration.
141 * blockframe.c (inside_main_func): Delete function.
143 2004-08-31 Jim Blandy <jimb@redhat.com>
145 * dwarf2read.c (is_vtable_name): New function, based on logic from
146 read_structure_type, but passing the correct length to strncmp,
147 and using 'sizeof' instead of 'strlen'.
148 (read_structure_type): Call it.
150 2004-08-31 Joel Brobecker <brobecker@gnat.com>
152 * config/powerpc/aix.mh: Add comment.
154 2004-08-31 Paul GIlliam <pgilliam@us.ibm.com>
156 * MAINTAINERS: Add self to Write-After-Approval.
158 2004-08-30 Manoj Iyer <manjo@austin.ibm.com>
160 * MAINTAINERS: Add self to Write-After-Approval.
162 2004-08-30 Andrew Cagney <cagney@gnu.org>
164 Fix PR breakpoints/1757.
165 * infrun.c (struct execution_control_state): Replace
166 remove_breakpoints_on_following_step with
167 step_after_step_resume_breakpoint.
168 (init_execution_control_state): Update.
169 (handle_inferior_event): For signals, when stepping off a
170 breakpoint, set step_after_step_resume_breakpoint. When
171 BPSTAT_WHAT_STEP_RESUME, do a single-step off the breakpoint.
172 (keep_going): Delete code handling
173 remove_breakpoints_on_following_step.
175 2004-08-29 David Lecomber <david@streamline-computing.com>
178 * language.h (enum array_ordering): New enum.
179 * language.h (struct language_defn): New la_array_ordering
181 * language.c (unknown_language_defn, auto_language_defn)
182 (local_language_defn): Ditto.
183 * ada-lang.c (ada_language_defn): Ditto.
184 * c-lang.c (c_language_defn, cplus_language_defn)
185 (asm_language_defn, minimal_language_defn): Ditto.
186 * f-lang.c (f_language_defn): Ditto.
187 * jv-lang.c (java_language_defn): Ditto.
188 * m2-lang.c (f_language_defn): Ditto.
189 * objc-lang.c (objc_language_defn): Ditto.
190 * p-lang.c (pascal_language_defn): Ditto.
191 * scm-lang.c (scm_language_defn): Ditto.
192 * eval.c (evaluate_subexp_standard): Assume Fortran arrays are
193 oriented large to small in type structure.
194 * dwarf2read.c (read_array_order): New function.
195 (read_array_type): Use read_array_order to check row/column
198 2004-08-27 Nathan J. Williams <nathanw@wasabisystems.com>
200 * target.c (target_resize_to_sections): Check
201 current_target.to_sections for an old value when updating.
203 2004-08-27 Joel Brobecker <brobecker@gnat.com>
205 * procfs.c (dbx_link_bpt_addr): New static global variable.
206 (dbx_link_shadow_contents): New static global variable.
207 (procfs_wait, case <PR_SYSEXIT>): Handle syssgi events.
208 (procfs_wait, case <FLTBPT>): Remove the __dbx_link brekapoint
210 (procfs_init_inferior): Enable syssgi() syscall trace if appropriate.
211 Reset dbx_link_bpt_addr as the address of __dbx_link() may change
213 (procfs_create_inferior): Remove syssgi syscall-exit notifications
214 after the inferior has been forked.
215 (remove_dbx_link_breakpoint): New function.
216 (dbx_link_addr): New function.
217 (insert_dbx_link_bpt_in_file): New function.
218 (insert_dbx_link_bpt_in_region): New function.
219 (insert_dbx_link_breakpoint): New function.
220 (proc_trace_syscalls_1): New function, extracted from
222 (proc_trace_syscalls): Replace extract code by call to
223 proc_trace_syscalls_1.
224 * solib-irix.c (disable_break): Remove stop_pc assertion, as it
227 2004-08-25 Jim Blandy <jimb@redhat.com>
229 * gdbtypes.h (TYPE_CODE_ARRAY): Doc fix.
231 2004-08-25 Andrew Cagney <cagney@gnu.org>
233 * infrun.c (struct execution_control_state): Delete field
234 "stepping_through_sigtramp".
235 (init_execution_control_state): Do not set same.
236 (context_switch): Do not pass same to save_infrun_state and
238 * gdbthread.h (struct thread_info): Delete field
239 stepping_through_sigtramp.
240 (save_infrun_state, load_infrun_state): Delete parameter
241 stepping_through_sigtramp.
242 * thread.c (load_infrun_state, save_infrun_state): Update.
244 * infrun.c: Re-indent. Move expression operators to the beginning
245 of the line. Remove long disabled #if 0 code.
247 2004-08-24 Andrew Cagney <cagney@gnu.org>
249 * doublest.h (floatformat_ieee_quad): Rename
250 floatformat_ia64_quad.
251 * doublest.c (floatformat_ieee_quad): Rename
252 floatformat_ia64_quad.
253 (_initialize_doublest): Update.
255 2004-08-24 Jim Blandy <jimb@redhat.com>
257 * dwarf2expr.h (struct dwarf_expr_context): New members
258 'num_pieces' and 'pieces', for returning the result of an
259 expression that uses DW_OP_piece.
260 (struct dwarf_expr_piece): New struct type.
261 * dwarf2expr.c (new_dwarf_expr_context): Initialize num_pieces and
263 (free_dwarf_expr_context): Free pieces, if any.
264 (add_piece): New function.
265 (execute_stack_op): Implement DW_OP_piece.
266 * dwarf2loc.c (dwarf2_evaluate_loc_desc): If the result of the
267 expression is a list of pieces, print an error message.
268 (dwarf2_loc_desc_needs_frame): If the expression yields
269 pieces, and any piece is in a register, then we need a frame.
271 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Wait to fetch the top of
272 the stack until we've decided what sort of result the evaluation
273 has produced. Use separate variables, with more specific names.
275 2004-08-23 Richard Earnshaw <rearnsha@arm.com>
277 * armnbsd-tdep.c (arm_nbsd_arm_be_breakpoint): Define.
278 (arm_nbsd_thumb_[lb]e_breakpoint): Define.
279 (arm_netbsd_init_abi_common): Register them.
281 2004-08-22 Mark Kettenis <kettenis@gnu.org>
283 * config/vax/vax.mh (NATDEPFILES): Add vax-nat.c.
285 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Use
286 safe_frame_unwind_memory instead of target_read_memory.
288 * infptrace.c: Remove #ifdef'ed out inclusion of gdb_stat.h.
290 (fetch_register, store_register): Remove prototypes.
291 (child_resume): Reorganize code and comments such that it is
292 grouped a bit more logically.
293 (attach): Explicitly compare errno against 0.
294 (detach): Likewise. Use perror_with_name instead of
296 * Makefile.in (infptrace.o): Update dependencies.
298 * ia64-linux-nat.c: Update copyright year.
299 (fetch_debug_register, store_debug_register)
300 (ia64_linux_stopped_by_watchpoint): Replace PTRACE_ARG3_TYPE with
302 * config/ia64/nm-linux.h: Update copyright year.
303 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove defines.
305 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Change argument
306 from CORE_ADDR to struct frame_info *. Use
307 safe_frame_unwind_memory instead of deprecated_read_memory_nobpt.
308 (amd64_linux_sigtramp_p): Adjust for changed signature of
309 and64_linux_sigtramp_start
311 * gdb_ptrace.h: GNU/Linux.
313 * config/alpha/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
316 * infptrace.c: Include "gdb_assert.h".
317 (PTRACE_XFER_TYPE): Remove define.
318 (offsetof): Only define if U_REGS_OFFSET isn't defined.
319 (fetch_register, store_register): Rewrite to use PTRACE_TYPE_RET.
321 (fetch_inferior_registers, store_inferior_registers): Remove
322 redundant culry braces. Tweak comment. s/regno/regnum.
323 * Makefile.in (infptrace.o): Update dependencies.
325 * configure.in: Change test for return type of ptrace to default
326 to `long' instead of `int'.
327 * configure: Regenerate.
329 2004-08-21 Mark Kettenis <kettenis@gnu.org>
331 * config/alpha/alpha-linux.mh (LOADLIBES): New variable.
333 * configure.in: Check for ttrace function.
334 * configure, config.in: Regenerate.
336 * gdb_ptrace.h: New file.
337 * infptrace.c: Include "gdb_ptrace.h" instead of <ptrace.h> or
339 (PT_READ_I, PT_READ_D, PT_READ_U, PT_WRITE_I, PT_WRITE_D)
340 (PT_WRITE_U, PT_CONTINUE, PT_STEP, PT_KILL): Remove defines.
341 (attach): Don't define PT_ATTACH.
342 (detach): Don't define PT_DETACH.
343 * Makefile.in (gdb_ptrace_h): New variable.
344 (infptrace.o): Update dependencies.
346 2004-08-16 Mark Kettenis <kettenis@gnu.org>
348 * inferior.h (PTRACE_ARG3_TYPE): Define as PTRACE_TYPE_ARG3
349 instead of `int' if not already defined.
350 (call_ptrace): Revert change that replaced PTRACE_ARG3_TYPE with
352 * infptrace.c (call_ptrace): Revert change that replaced
353 PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
355 2004-08-15 Mark Kettenis <kettenis@gnu.org>
357 * config/i386/nm-linux64.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE):
360 * linux-nat.c (kill_inferior): Add missing third and fourth
361 arguments to ptrace call. Don't use PTRACE_ARG3_TYPE.
363 * infptrace.c (child_xfer_memory): Replace PTRACE_XFER_TYPE with
366 * proc-why.c (proc_prettyfprint_why): Fix format string.
368 * solib-osf.c (osf_current_sos): Remove unsused label.
370 * configure.in: Add <ncurses/ncurses.h> to the list of possible
372 * configure, config.in: Regenerate.
373 * gdb_curses.h [HAVE_NCURSES_NCURSES_H]: Include
376 * config/nm-bsd.h (PTRACE_ARG3_TYPE): Remove define.
377 * config/nm-nbsd.h: Update copyright year.
378 (PTRACE_ARG3_TYPE): Remove define.
380 * sparc-nat.c (fetch_inferior_registers)
381 (store_inferior_registers, sparc_xfer_wcookie):
382 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
384 * alphabsd-nat.c (fetch_inferior_registers):
385 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
387 * amd64bsd-nat.c (fetch_inferior_registers)
388 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
390 * armnbsd-nat.c: Update copyright year.
391 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs)
392 (store_register, store_regs, store_fp_register, store_fp_regs):
393 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
394 * hppabsd-nat.c (fetch_inferior_registers)
395 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
397 * i386bsd-nat.c (fetch_inferior_registers)
398 (store_inferior_registers, i386bsd_dr_set, i386bsd_dr_get_status):
399 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
400 * m68kbsd-nat.c (fetch_inferior_registers)
401 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
403 * m88kbsd-nat.c (fetch_inferior_registers)
404 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
406 * mipsnbsd-nat.c: Update copyright year.
407 (fetch_inferior_registers, store_inferior_registers):
408 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
409 * ns32knbsd-nat.c: Update copyright year.
410 (fetch_inferior_registers, store_inferior_registers):
411 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
412 * ppcnbsd-nat.c (fetch_inferior_registers):
413 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
415 * ppcobsd-nat.c (fetch_inferior_registers):
416 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
418 * shnbsd-nat.c: Update copyright year.
419 (fetch_inferior_registers, store_inferior_registers):
420 Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
421 * vaxbsd-nat.c (fetch_inferior_registers)
422 (store_inferior_registers): Replace PTRACE_ARG3_TYPE with
425 * inferior.h (call_ptrace): Replace PTRACE_ARG3_TYPE with
427 * infptrace.c (call_ptrace, child_resume, attach, detach)
428 (U_REGS_OFFSET, fetch_register, store_register, child_xfer_memory)
429 (udot_info): Replace PTRACE_ARG3_TYPE with PTRACE_TYPE_ARG3.
430 * inftarg.c (ptrace_me): Replace PTRACE_ARG3_TYPE with
433 2004-08-14 Mark Kettenis <kettenis@gnu.org>
435 * defs.h: Remove out-of-date comment.
436 [!FCLOSE_PROVIDED] (fclose): Remove prototype.
437 [!GETENV_PROVIDED] (getenv): Remove prototype.
439 * standalone.c: Remove file.
440 * Makefile.in (standalone.o): Remove dependency.
442 * i386-linux-nat.c (dummy_sse_values): Remove function and
444 (i386_linux_dr_get): Fix typo in comment.
445 (LINUX_SYSCALL_REGNUM): Define as I386_EAX_REGNUM.
447 * config/i386/obsd64.mt (TDEPFILES): Add i386obsd-tdep.o.
449 * defs.h (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
451 * top.c (deprecated_error_hook): Remove RETURN and ATTR_NORETURN
454 2004-08-13 Mark Kettenis <kettenis@gnu.org>
456 * configure.in (PTRACE_TYPE_ARG3, PTRACE_TYPE_ARG5): Don't use
457 parenthesis in definition.
458 * configure: Regenerated.
460 2004-08-12 Michael Chastain <mec.gnu@mindspring.com>
462 * PROBLEMS: Mention build/1411.
464 2004-08-09 Robert Millan <robertmh@gnu.org>
466 Committed by Nathanael Nerode.
467 * configure.host: Match kfreebsd*-gnu and knetbsd*-gnu.
468 * configure.tgt: Match kfreebsd*-gnu and knetbsd*-gnu.
470 2004-08-12 Andrew Cagney <cagney@gnu.org>
472 * NEWS: Mention fixes in GDB 6.2.1.
473 * PROBLEMS: Remove mention of mips-irix.
475 2004-08-11 Joel Brobecker <brobecker@gnat.com>
477 * config/powerpc/xm-aix.h: Delete.
478 * config/powerpc/aix.mh (MH_FILE): Remove.
479 * config/powerpc/aix432.mh (MH_FILE): Remove.
481 2004-08-11 Joel Brobecker <brobecker@gnat.com>
483 * config/powerpc/aix.mh: Remove obsolete comment.
484 * config/powerpc/aix432.mh: Likewise.
486 2004-08-11 Joel Brobecker <brobecker@gnat.com>
488 * config/powerpc/xm-aix.h (UINT_MAX): Remove undef.
490 2004-08-11 Joel Brobecker <brobecker@gnat.com>
492 * config/rs6000/xm-aix4.h: Remove "config/xm-aix4.h" include,
493 this file is now empty.
494 * config/xm-aix4.h: Remove, this file is no longer included
497 2004-08-11 Joel Brobecker <brobecker@gnat.com>
499 * config/powerpc/xm-aix.h: Remove "config/xm-aix4.h" include,
500 that file is now empty.
501 (termdef): Remove prototype, function no longer used.
503 2004-08-11 Joel Brobecker <brobecker@gnat.com>
505 * doc/gdbint.texinfo (Host Definition): Remove documentation
506 for USE_O_NOCTTY, no longer used.
507 * config/xm-aix4.h (USE_O_NOCTTY): Remove, no longer used.
508 * config/rs6000/xm-rs6000.h (USE_O_NOCTTY): Likewise.
510 2004-08-11 Joel Brobecker <brobecker@gnat.com>
512 * config/xm-aix4.h (FIVE_ARG_PTRACE): Remove, no longer used.
513 * config/pa/nm-hppah.h (FIVE_ARG_PTRACE): Likewise.
514 * config/rs6000/xm-rs6000.h (FIVE_ARG_PTRACE): Likewise.
516 2004-08-11 Mark Kettenis <kettenis@gnu.org>
518 * infptrace.c (call_ptrace): Select code based on PTRACE_TYPE_ARG5
519 instead of FIVE_ARG_PTRACE.
521 * inflow.c (O_NOCTTY): Define to zero if not already defined.
522 (new_tty): Use O_NOCTTY unconditionally.
524 2004-08-10 Mark Kettenis <kettenis@gnu.org>
526 * procfs.c (procfs_detach): Cleanup. Print process ID, not LWP
527 ID. Use comma in output. Use gdb_flush on gdb_stdout instead of
530 2004-08-10 Joel Brobecker <brobecker@gnat.com>
532 * xcoff_symfile_finish: Replace last call to xmfree by call
535 2004-08-10 Andrew Cagney <cagney@gnu.org>
537 * main.c (captured_main): Delete call to init_malloc.
538 * defs.h (init_malloc): Delete declaration.
539 * utils.c (mmalloc, mrealloc, mcalloc, mfree)
540 (init_malloc): Delete functions.
542 * defs.h (xmfree): Delete.
543 * utils.c (xmfree): Delete function.
544 (xfree): Inline calls to xmfree and mfree.
545 * symmisc.c (free_symtab_block, free_symtab): Use xfree.
546 * symfile.c (reread_symbols, init_psymbol_list): Ditto.
547 * source.c (forget_cached_source_info, find_and_open_source): Ditto.
548 * somread.c (som_symfile_finish): Ditto.
549 * objfiles.c (allocate_objfile, free_objfile):
550 * nlmread.c (nlm_symfile_finish): Ditto.
551 * hpread.c (hpread_symfile_finish): Ditto.
552 * elfread.c (free_elfinfo, elf_symfile_finish): Ditto.
553 * dbxread.c (dbx_symfile_finish, free_bincl_list): Ditto.
554 * coffread.c (coff_symfile_finish): Ditto.
556 * defs.h (xmcalloc): Delete declaration.
557 * utils.c (xmcalloc): Delete.
558 (xcalloc): Inline calls to xmcalloc and mcalloc.
559 * ada-lang.c (_initialize_ada_language): Use htab_create_alloc,
561 * symtab.c (create_demangled_names_hash): Ditto.
563 * defs.h (xmrealloc): Delete.
564 * utils.c (xmrealloc): Delete.
565 (xrealloc): Inline calls to xmrealloc, mmalloc and mrealloc.
566 * symmisc.c (extend_psymbol_list): Use xrealloc.
567 * source.c (find_source_lines): Ditto.
568 * hpread.c (hpread_lookup_type): Ditto.
569 * dbxread.c (add_bincl_to_list): Ditto.
571 * utils.c (xmmalloc): Delete.
572 (xmalloc): Inline xmmalloc and mmalloc calls.
573 (msavestring): Use xmalloc.
574 * defs.h (xmmalloc): Delete declaration.
575 * xcoffread.c (xcoff_symfile_init): Use xmalloc instead of
577 * symmisc.c (extend_psymbol_list): Ditto.
578 * symfile.c (init_psymbol_list): Ditto.
579 * source.c (find_source_lines): Ditto.
580 * hpread.c (hpread_symfile_init, hpread_lookup_type): Ditto.
581 * elfread.c (elf_symtab_read): Ditto.
582 * dbxread.c (dbx_symfile_init, init_bincl_list): Ditto.
583 * coffread.c (coff_symfile_init): Ditto.
585 2004-08-10 David Carlton <carlton@bactrian.org>
587 * MAINTAINERS: Remove David Carlton from c++ testsuite
590 2004-08-10 Jerome Guitton <guitton@gnat.com>
592 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure to
593 print a line feed before the prompt.
595 2004-08-10 Mark Kettenis <kettenis@gnu.org>
597 * procfs.c (procfs_pid_to_str): Use "%ld" to print LWP.
599 2004-08-09 Joel Brobecker <brobecker@gnat.com>
601 General cleanup of the AIX xm include file:
602 * config/xm-aix4.h (fd_set): Remove undefine.
603 Remove include of <sys/select.h>.
604 (HAVE_TERMIO): Remove define.
606 (NULL): Remove redefine.
607 (alloca): Remove #pragma.
608 (vfork): Remove define.
610 (SIGWINCH_HANDLER): Remove.
611 (SIGWINCH_HANDLER_BODY): Remove.
613 2004-08-09 Mark Kettenis <kettenis@gnu.org>
615 * configure.tgt (x86_64-*-openbsd*): Set gdb_osabi to
616 GDB_OSABI_OPENBSD_ELF.
618 2004-08-07 Robert Millan <robertmh@gnu.org>
620 * bsd-kvm.c: Check for nlist.h before including it.
622 2004-08-09 Mark Kettenis <kettenis@gnu.org>
624 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove `struct
625 sigcontext' offset consistency checks for ancient BSD.
627 * gdb_curses.h [HAVE_CURSESX_H]: Include <cursesX.h>
629 * configure.in: Check for <sys/types.h>. Check return and
630 argument types of ptrace.
631 * configure, config.in: Regenerate.
633 2004-08-09 Jim Blandy <jimb@redhat.com>
635 * rs6000-tdep.c (set_sim_regno, init_sim_regno_table,
636 rs6000_register_sim_regno): Doc fixes.
638 2004-08-08 Joel Brobecker <brobecker@gnat.com>
640 * mips-tdep.c: Include "floatformat.h".
641 (n32n64_floatformat_always_valid): New function.
642 (floatformat_n32n64_long_double_big): New constant.
643 (mips_gdbarch_init): Set size and format of long double
644 for N32 and N64 ABIs.
645 * Makefile.in (mips-tdep.o): Update dependencies.
647 2004-08-08 Andrew Cagney <cagney@gnu.org>
649 * gdbarch.sh: Delete "fmt" and "attrib" fields. Always use %s to
650 print. Improve script's error messages.
651 * gdbarch.h: Re-generate.
653 * gdbarch.sh (pformat): New function.
654 (float_format, double_format, long_double_format): List with bit
655 members. Use pformat when printing.
656 * gdbarch.c, gdbarch.h: Re-generate.
658 2004-08-08 Nathan J. Williams <nathanw@wasabisystems.com>
660 * ppcnbsd-nat.c: Include <machine/frame.h>, <machine/pcb.h>,
661 "gdbcore.h", "regcache.h", and "bsd-kvm.h".
662 (ppcnbsd_supply_pcb): New function.
663 (_initialize_ppcnbsd_nat): New prototype and function.
664 * config/powerpc/nbsd.mh (NATDEPFILES): Add bsd-kvm.o.
665 (LOADLIBES): New variable.
666 * Makefile.in (ppcnbsd-nat.o): Update dependencies.
668 2004-08-08 Andrew Cagney <cagney@gnu.org>
670 * gdbtypes.c (builtin_type_arm_ext, builtin_type_ieee_single)
671 (builtin_type_ieee_double, builtin_type_ia64_quad)
672 (builtin_type_ia64_spill, _initialize_gdbtypes): Add tables of
673 BE/LE floating-point types.
674 * gdbtypes.h (builtin_type_arm_ext, builtin_type_ieee_single)
675 (builtin_type_ieee_double, builtin_type_ia64_quad)
676 (builtin_type_ia64_spill): Declare.
677 * doublest.c (_initialize_doublest, floatformat_ieee_single)
678 (floatformat_ieee_double, floatformat_arm_ext)
679 (floatformat_ia64_spill, floatformat_ia64_quad): Add tables
680 of LE/BE floatformats.
681 * doublest.h: (struct floatformat, floatformat_ieee_single)
682 (floatformat_ieee_double, floatformat_arm_ext)
683 (floatformat_ia64_spill, floatformat_ia64_quad): Declare.
685 2004-08-08 Mark Kettenis <kettenis@gnu.org>
687 * i386gnu-nat.c (gnu_store_registers): Fix typo.
689 * i386gnu-nat.c (gnu_store_registers): Use regcache_raw_collect
690 instead of regcache_raw_supply when storing the registers.
692 * i386gnu-nat.c: Update copyright year.
693 (gnu_store_registers): Don't use deprecated_registers and
694 deprecated_registers_valid. Use regcache_valid_p and
695 regcache_raw_supply instead.
697 * vax-tdep.c (vax_frame_this_id): Use frame_func_unwind instead of
700 * procfs.c (procfs_pid_to_str): Remove redundant and unused
701 variables. Incapitalized "process".
703 * configure.in: Add cursesX to the list of possible curses libs.
704 Add cursesX.h to the list of possible curses headers.
705 * configure, config.in: Regenerate.
707 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
709 * configure.in: Test for struct lwp in <sys/lwp.h>.
710 * bsd-kvm.c (bsd_kvm_proc_cmd): If HAVE_STRUCT_LWP is defined, use
711 the offset of l_addr in struct lwp.
713 2004-08-07 Nathan J. Williams <nathanw@wasabisystems.com>
715 * bsd-kvm.c: Include "gdbcore.h"
716 (bsd_kvm_open): Use get_exec_file() to set 'execfile'.
718 2004-08-07 Andrew Cagney <cagney@gnu.org>
720 * gdbtypes.c (build_flt, build_complex): New functions.
721 (gdbtypes_post_init): Use.
723 * doublest.c (floatformat_from_length): Fix tipo, "*" not "&".
725 * gdbtypes.c (_initialize_gdbtypes): Do not swap builtin_type_int8
726 through to builtin_type_uint128.
728 * c-exp.y: Use builtin_type function to obtain builtin types.
730 * gdbtypes.h (struct builtin_type): Delete builtin_int0 through to
732 * gdbtypes.c (gdbtypes_post_init): Update.
733 (build_gdbtypes): Move initialization of builtin_type_int0
734 through to builtin_type_uint128 from here ...
735 (_initialize_gdbtypes): ... to here.
736 * d10v-tdep.c (d10v_register_type): Update.
738 * doublest.c: Update copyright.
739 (floatformat_from_length): Call error when floatformat is NULL.
740 (extract_floating_by_length): Remove NULL fmt check.
741 (store_floating_by_length): Ditto.
743 2004-08-07 Andrew Cagney <cagney@gnu.org>
745 * regcache.c (regcache_raw_read): For the moment, #ifdef assert
746 that the register is valid.
748 2004-08-05 Mark Kettenis <kettenis@chello.nl>
750 * i386-linux-tdep.c (i386_linux_sigtramp_start)
751 (i386_linux_rt_sigtramp_start): Change argument from CORE_ADDR to
752 struct frame_info *. Use safe_frame_unwind_memory instead of
753 deprecated_read_memory_nobpt.
754 (i386_linux_sigtramp_p, i386_linux_sigcontext_addr): Adjust for
755 changed signature of i386_linux_sigtramp_start and
756 i386_linux_rt_sigtramp_start.
758 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Change argument from
759 CORE_ADDR to struct frame_info *. Use safe_frame_unwind_memory
760 instead of deprecated_read_memory_nobpt.
761 (i386nbsd_sigtramp_p): Adjust for changed signature of
762 i386nbsd_sigtramp_offset.
764 * i386obsd-tdep.c (i386obsd_sigtramp_p): Use
765 safe_frame_unwind_memory instead of target_read_memory.
767 * infptrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
769 [KERNEL_U_ADDR_BSD]: Don't include <a.out.h>.
770 [KERNEL_U_ADDR_BSD] (kernel_u_addr): Remove variable.
771 (_initialize_kernel_u_addr): Remove prototype and function.
772 * infttrace.c: Include <sys/file.h> if HAVE_SYS_FILE_H instead of
774 * xcoffread.c: Likewise.
776 2004-08-06 Mark Kettenis <kettenis@gnu.org>
778 * vax-nat.c: New file.
779 * vaxbsd-nat.c: Tweak comment.
780 * Makefile.in (ALLDEPFILES): Add vax-nat.c, vaxbsd-nat.c and
782 (vax-nat.o): New dependency.
783 * configure.host (vax-*-bsd*, vax-*-ultrix*): Set gdb_host to vax.
784 (vax-*-ultrix2*): Remove.
785 * config/vax/vax.mh: New file.
786 * config/vax/nm-vax.h (vax_kernel_u_addr): New extern declaration.
787 (KERNEL_U_ADDR): Define as vax_kernel_u_addr.
788 (vax_register_u_addr): New prototype.
789 (REGISTER_U_ADDR): Define using vax_register_u_addr.
790 * config/vax/vaxult2.mh: Remove file.
791 * config/vax/vaxult.mh: Remove file.
792 * config/vax/vaxbsd.mh: Remove file.
793 * config/vax/vax.mt (TM_FILE): Remove.
794 * config/vax/tm-vaxbsd.h: Remove file.
796 2004-08-06 Joel Brobecker <brobecker@gnat.com>
798 * aix-thread.c (get_signaled_thread): New function.
799 (iter_trap): Delete, no longer used.
800 (iter_tid): New function.
801 (pd_update): Find the thread that received the SIGTRAP signal
802 by first locating the kernel thread, and then finding its
805 2004-08-06 Ulrich Weigand <uweigand@de.ibm.com>
807 * lin-lwp.c (child_wait): Continue inferior after processing
808 PTRACE_EVENT_CLONE event.
810 2004-08-05 Nathanael Nerode <neroden@gcc.gnu.org>
812 * MAINTAINERS: Add self to Write-After-Approval.
814 2004-08-05 Jeff Johnston <jjohnstn@redhat.com>
816 * libunwind-frame.c (LIBUNWIND_SO): Change to be of form:
817 libunwind-xxxx.so" where xxxx is UNW_TARGET.
819 2004-08-05 Andrew Cagney <cagney@gnu.org>
821 * config/xm-sysv4.h: Delete file.
822 * config/mips/xm-irix5.h: Delete file.
823 * config/mips/irix6.mh (XM_FILE, XM_CLIBS): Delete.
824 * config/mips/irix5.mh (XM_FILE, XM_CLIBS): Delete.
825 * config/ia64/xm-aix.h: Delete file.
826 * config/ia64/aix.mh (XM_FILE): Delete.
827 * config/pa/xm-hppah.h: Delete file.
828 * config/pa/hpux11w.mh (XM_FILE): Delete.
829 * config/pa/hpux11.mh (XM_FILE): Delete.
830 * config/pa/hpux1020.mh (XM_FILE): Delete.
831 * config/pa/hppahpux.mh (XM_FILE): Delete.
833 * config/alpha/xm-alphalinux.h: Delete file.
834 * config/djgpp/fnchange.lst: Do not fix xm-alphalinux.h.
835 * config/alpha/alpha-linux.mh (XM_FILE, LOADLIBES): Delete.
836 * config/alpha/xm-alphaosf.h: Delete file.
837 * config/djgpp/fnchange.lst: Do not fix xm-alphaosf.h.
838 * config/alpha/alpha-osf3.mh (XM_FILE): Delete.
839 * config/alpha/alpha-osf2.mh (XM_FILE): Delete.
840 * config/alpha/alpha-osf1.mh (XM_FILE): Delete.
842 * config/i386/xm-i386v.h: Delete file.
843 * config/i386/i386v.mh (XM_FILE, XM_CLIBS): Delete.
844 * config/i386/i386sco5.mh (XM_FILE, XM_CLIBS): Delete.
845 * config/i386/xm-i386sco.h: Delete file.
846 * config/i386/i386sco4.mh (XM_FILE, XM_CLIBS, MH_CFLAGS): Delete.
847 * config/i386/i386sco.mh (XM_FILE, XM_CLIBS, CC): Delete.
848 * config/i386/xm-i386v4.h: Delete file.
849 * config/djgpp/fnchange.lst: Do not fix xm-i386v4.h.
850 * config/i386/ncr3000.mh (CC, CFLAGS, XM_FILE): Delete.
851 * config/i386/i386v42mp.mh (XM_FILE, XM_CLIBS): Delete.
852 * config/i386/i386v4.mh (XM_FILE, XM_CLIBS): Delete.
854 * config/vax/xm-vax.h: Delete file.
855 * Makefile.in (xm-vaxult.h, xm-vaxbsd.h): Delete.
856 * config/vax/xm-vaxult2.h: Delete file.
857 * config/djgpp/fnchange.lst: Do not fix xm-vaxult2.h.
858 * config/vax/vaxult2.mh (XM_FILE): Delete.
859 * config/vax/xm-vaxult.h: Delete file.
860 * config/vax/vaxult.mh (XM_FILE): Delete.
861 * config/vax/xm-vaxbsd.h: Delete file.
862 * config/vax/vaxbsd.mh (XM_FILE): Delete.
864 * gdbarch.sh (deprecated_frame_saved_pc): Delete.
865 * gdbarch.h, gdbarch.c: Re-generate.
866 * regcache.c (deprecated_read_fp, deprecated_write_sp): Delete.
867 * inferior.h (deprecated_read_fp, deprecated_write_sp): Delete.
868 * frame.h: Delete deprecated_read_fp from comments.
869 * arch-utils.c (deprecated_init_frame_pc_default): Delete.
870 * arch-utils.h (deprecated_init_frame_pc_default): Delete.
872 2004-08-04 Mark Kettenis <kettenis@gnu.org>
874 * i386obsd-tdep.c (i386obsd_sigtramp_p): Adjust for changed signal
875 trampoline in OpenBSD 3.5-current.
877 * i387-tdep.c (i387_supply_fsave): Provide summy values for the
880 * Makefile.in: Remove embedded page breaks.
882 2004-08-04 Jim Blandy <jimb@redhat.com>
884 * regcache.c (regcache_raw_read): Assert that, after calling
885 target_fetch_registers, the register we're reading is cached.
887 * ppc-linux-nat.c (fetch_register): Replace 'gdb_assert (0)' with
888 a call to 'internal_error', with a more helpful error message.
889 * rs6000-tdep.c (e500_pseudo_register_read,
890 e500_pseudo_register_write, rs6000_store_return_value): Same.
892 2004-08-04 Andrew Cagney <cagney@gnu.org>
894 * Makefile.in: Update dependencies.
896 2004-08-04 Jim Blandy <jimb@redhat.com>
898 Change the layout of the PowerPC E500 raw register cache to allow
899 the lower 32-bit halves of the GPRS to be their own raw registers,
901 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_gprs_pseudo_p flag;
902 add ppc_ev0_upper_regnum flag.
903 * rs6000-tdep.c: #include "reggroups.h".
904 (spe_register_p): Recognize the ev upper half registers as SPE
906 (init_sim_regno_table): Build gdb->sim mappings for the upper-half
908 (e500_move_ev_register): New function.
909 (e500_pseudo_register_read, e500_pseudo_register_write): The 'ev'
910 vector registers are the pseudo-registers now, formed by splicing
911 together the gprs and the upper-half registers.
912 (e500_register_reggroup_p): New function.
915 (PPC_EV_REGS, PPC_GPRS_PSEUDO_REGS): Macros deleted.
916 (PPC_SPE_GP_REGS, PPC_SPE_UPPER_GP_REGS, PPC_EV_PSEUDO_REGS): New
918 (registers_e500): Rearrange register set so that the raw register
919 set contains 32-bit GPRs and upper-half registers, and the SPE
920 vector registers become pseudo-registers.
921 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gprs_pseudo_p;
922 it has been deleted. Initialize ppc_ev0_upper_regnum. Many other
923 register numbers are now the same for the E500 as they are for
924 other PowerPC variants. Register e500_register_reggroup_p as the
925 register group function for the E500.
926 * Makefile.in (rs6000-tdep.o): Update dependencies.
928 Adapt PPC E500 native support to the new raw regcache layout.
929 * ppc-linux-nat.c (struct gdb_evrregset_t): Doc fixes.
930 (read_spliced_spe_reg, write_spliced_spe_reg): Deleted.
931 (fetch_spe_register, store_spe_register): Handle fetching/storing
932 all the SPE registers at once, if regno == -1. These now take
933 over the job of fetch_spe_registers and store_spe_registers.
934 (fetch_spe_registers, store_spe_registers): Deleted.
935 (fetch_ppc_registers, store_ppc_registers): Fetch/store gprs
936 unconditionally; they're always raw. Fetch/store SPE upper half
937 registers, if present, instead of ev registers.
938 (fetch_register, store_register): Remove sanity checks: gprs are
939 never pseudo-registers now, so we never need to even mention any
940 registers that are ever pseudoregisters.
942 Use a fixed register numbering when communicating with the PowerPC
944 * ppc-tdep.h (struct gdbarch_tdep): New member: 'sim_regno'.
945 * rs6000-tdep.c: #include "sim-regno.h" and "gdb/sim-ppc.h".
946 (set_sim_regno, init_sim_regno_table, rs6000_register_sim_regno):
948 (rs6000_gdbarch_init): Register rs6000_register_sim_regno. Call
949 init_sim_regno_table.
950 * Makefile.in (gdb_sim_ppc_h): New variable.
951 (rs6000-tdep.o): Update dependencies.
953 2004-08-02 Andrew Cagney <cagney@gnu.org>
955 * cris-tdep.c (cris_register_size): Restore function, still used
958 * gdbarch.sh (deprecated_target_read_fp)
959 (deprecated_frame_locals_address, deprecated_frame_args_address)
960 (deprecated_frame_chain_valid, deprecated_frame_chain)
961 (deprecated_init_extra_frame_info, deprecated_pop_frame)
962 (deprecated_frame_init_saved_regs, deprecated_get_saved_register)
963 (deprecated_do_registers_info, deprecated_init_frame_pc): Delete.
964 * gdbarch.h, gdbarch.c: Re-generate.
965 * regcache.c (deprecated_read_fp): Do not call
966 DEPRECATED_TARGET_READ_FP_P.
967 * infcmd.c (default_print_registers_info): Do not call
968 DEPRECATED_DO_REGISTERS_INFO.
969 * frame-base.c (default_frame_locals_address): Do not call
970 DEPRECATED_FRAME_LOCALS_ADDRESS.
971 (default_frame_args_address): Do not call
972 DEPRECATED_FRAME_ARGS_ADDRESS.
974 * gdbarch.sh (deprecated_register_raw_size)
975 (deprecated_register_virtual_size:int): Delete.
976 * gdbarch.h, gdbarch.c: Re-generate.
977 * cris-tdep.c (cris_register_size): Delete.
978 (cris_gdbarch_init): Update.
979 * alpha-tdep.c (alpha_register_raw_size)
980 (alpha_register_virtual_size): Delete.
981 (alpha_gdbarch_init): Update.
983 * gdbarch.sh (deprecated_register_virtual_type)
984 (deprecated_save_dummy_frame_tos, deprecated_push_return_address)
985 (deprecated_dummy_write_sp): Delete.
986 * gdbarch.h, gdbarch.c: Re-generate.
988 * gdbarch.sh (deprecated_register_bytes): Delete.
989 * gdbarch.h, gdbarch.c: Re-generate.
990 * regcache.c (deprecated_register_bytes): New function.
991 * regcache.h (deprecated_register_bytes): Declare.
992 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
993 * v850-tdep.c (v850_gdbarch_init): Update.
994 * sh64-tdep.c (sh64_gdbarch_init): Update.
995 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
996 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
997 * mcore-tdep.c (mcore_gdbarch_init): Update.
998 * cris-tdep.c (cris_gdbarch_init): Update.
999 * arm-tdep.c (arm_gdbarch_init): Update.
1000 * remote.c (init_remote_state): Update.
1001 * remote-vx.c (vx_prepare_to_store): Update.
1002 * remote-sds.c (sds_fetch_registers, sds_prepare_to_store): Update.
1003 * irix5-nat.c (fetch_core_registers): Update.
1004 * cris-tdep.c (cris_register_bytes_ok): Update.
1005 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1007 * mips-tdep.c (mips_gdbarch_init, mips_insn16_frame_cache)
1008 (mips_insn16_frame_this_id, mips_insn16_frame_prev_register)
1009 (mips_insn16_frame_unwind, mips_insn16_frame_sniffer)
1010 (mips_insn16_frame_base_address, mips_insn16_frame_base)
1011 (mips_insn16_frame_base_sniffer, mips_insn32_frame_cache)
1012 (mips_insn32_frame_this_id, mips_insn32_frame_prev_register)
1013 (mips_insn32_frame_unwind, mips_insn32_frame_sniffer)
1014 (mips_insn32_frame_base_address, mips_insn32_frame_base)
1015 (mips_insn32_frame_base_sniffer): Replace mips16 / mips32 prefix
1016 with mips_insn16 and mips_insn32.
1018 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
1019 * rs6000-tdep.c (rs6000_push_dummy_call)
1020 (rs6000_extract_return_value): Use register_size.
1021 * xstormy16-tdep.c (xstormy16_get_saved_register)
1022 (xstormy16_extract_return_value): Ditto.
1023 * valops.c (value_assign): Ditto.
1024 * v850ice.c (v850ice_fetch_registers, v850ice_store_registers):
1025 * v850-tdep.c (v850_extract_return_value): Ditto.
1026 * tracepoint.c (collect_symbol): Ditto.
1027 * target.c (debug_print_register): Ditto.
1028 * stack.c (frame_info): Ditto.
1029 * rs6000-nat.c (ARCH64, fetch_register, store_register): Ditto.
1030 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1031 * remote.c (struct packet_reg, remote_wait, remote_async_wait)
1032 (store_register_using_P): Ditto.
1033 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
1034 * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Ditto.
1035 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1036 * remote-e7000.c (fetch_regs_from_dump, sub2_from_pc): Ditto.
1037 * regcache.c (deprecated_read_register_bytes)
1038 (deprecated_write_register_bytes, read_register)
1039 (write_register): Ditto.
1040 * ppc-linux-nat.c (fetch_altivec_register, fetch_register)
1041 (supply_vrregset, store_altivec_register, fill_vrregset): Ditto.
1042 * monitor.c (monitor_supply_register, monitor_fetch_register)
1043 (monitor_store_register): Ditto.
1044 * mn10300-tdep.c (mn10300_pop_frame_regular)
1045 (mn10300_print_register): Ditto.
1046 * mipsv4-nat.c (fill_fpregset): Ditto.
1047 * mips-linux-tdep.c (supply_32bit_reg, fill_fpregset)
1048 (mips64_fill_fpregset): Ditto.
1049 * mi/mi-main.c (register_changed_p, get_register)
1050 (mi_cmd_data_write_register_values): Ditto.
1051 * lynx-nat.c (fetch_inferior_registers, store_inferior_registers):
1052 * irix5-nat.c (fill_gregset, fetch_core_registers):
1053 * infrun.c (write_inferior_status_register): Ditto.
1054 * infptrace.c (fetch_register, store_register): Ditto.
1055 * infcmd.c (default_print_registers_info): Ditto.
1056 * ia64-linux-nat.c (COPY_REG, fill_fpregset): Ditto.
1057 * ia64-aix-nat.c (COPY_REG, fill_gregset): Ditto.
1058 * i386gnu-nat.c (gnu_store_registers, fill): Ditto.
1059 * hpux-thread.c (hpux_thread_fetch_registers)
1060 (hpux_thread_store_registers): Ditto.
1061 * hppah-nat.c (store_inferior_registers, fetch_register):
1062 * findvar.c (value_from_register): Ditto.
1063 * dve3900-rom.c (fetch_bitmapped_register):
1064 * cris-tdep.c (cris_gdbarch_init): Ditto.
1065 * alpha-tdep.h: Ditto.
1066 * aix-thread.c (pd_enable, fill_sprs64, fill_sprs32): Ditto.
1068 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_SIZE and
1069 DEPRECATED_REGISTER_RAW_SIZE from comments.
1070 * regcache.c (init_regcache_descr, regcache_dump): Do not check or
1071 use DEPRECATED_REGISTER_VIRTUAL_SIZE and
1072 DEPRECATED_REGISTER_RAW_SIZE.
1073 * findvar.c (value_of_register): Simplify by assuming that the
1074 registers raw and virtual sizes are identical.
1075 * regcache.h: Delete DEPRECATED_REGISTER_VIRTUAL_TYPE in
1077 * arch-utils.c (generic_register_size): Simplify by assuming
1080 * regcache.c (legacy_read_register_gen, real_register)
1081 (legacy_write_register_gen): Delete, not used.
1083 * regcache.c (struct regcache_descr): Delete legacy_p.
1084 (init_legacy_regcache_descr): Delete function.
1085 (init_regcache_descr): Delete call to init_legacy_regcache_descr.
1086 Do not use deprecated register functions.
1087 (regcache_raw_read, deprecated_write_register_gen):
1088 (deprecated_read_register_gen, regcache_raw_write): Delete code
1089 predicated on legacy_p.
1090 (register_size): Delete check against register raw size.
1092 * cris-tdep.c (cris_register_type): Replace
1093 cris_register_virtual_type.
1094 (cris_gdbarch_init): Update, set register_type.
1096 * gdbarch.sh (deprecated_frameless_function_invocation): Delete.
1097 * gdbarch.h, gdbarch.c: Re-generate.
1098 * arm-tdep.c (arm_frameless_function_invocation): Delete.
1099 (arm_gdbarch_init) Do not set frameless function invocation.
1100 * frame.h (legacy_frameless_look_for_prologue): Delete declaration.
1101 * blockframe.c (legacy_frameless_look_for_prologue): Delete function.
1102 * frv-tdep.c (frv_frameless_function_invocation): Delete.
1103 (frv_gdbarch_init): Do not set frameless function invocation.
1104 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1105 * sh-tdep.c (sh_gdbarch_init): Ditto.
1106 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
1107 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1108 * avr-tdep.c (avr_gdbarch_init): Ditto.
1110 * blockframe.c (legacy_frame_chain_valid): Delete function.
1112 * dummy-frame.c (struct dummy_frame): Delete call_lo, call_hi, top
1113 and pc. Update comments.
1114 (pc_in_dummy_frame): Delete function.
1115 (deprecated_pc_in_call_dummy): Inline old pc_in_dummy_frame code,
1117 (dummy_frame_push, dummy_frame_sniffer): Instead of call_lo,
1118 call_hi, top and pc, use the id.
1119 (fprint_dummy_frames): Do not print call_lo, call_hi, top and pc.
1121 * dummy-frame.c: Include "gdb_string.h".
1122 (generic_save_call_dummy_addr, generic_push_dummy_frame)
1123 (generic_save_dummy_frame_tos): Delete.
1124 (dummy_frame_push): New function, replaces above.
1125 * dummy-frame.h: Update copyright.
1126 (dummy_frame_push): Declare.
1127 * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame)
1128 (generic_save_call_dummy_addr): Delete declarations.
1129 * infcall.c: Include "dummy-frame.h".
1130 (call_function_by_hand): Add locals caller_regcache,
1131 caller_regcache_cleanup and dummy_id. Replace push_dummy_frame
1132 with call to frame_save_as_regcache plus cleanup. Delete calls to
1133 generic_save_call_dummy_addr and generic_save_dummy_frame_tos.
1134 Move clear_proceed_status to just before the resume, add call to
1135 dummy_frame_push (discard cleanup).
1136 * Makefile.in (infcall.o): Add $(dummy_frame_h).
1137 (dummy-frame.o): Add $(gdb_string_h).
1139 2004-08-01 Andrew Cagney <cagney@gnu.org>
1141 * dummy-frame.h (dummy_frame_unwind): Replace dummy_frame_sniffer.
1142 * frame-unwind.c (frame_unwind_init): Use dummy_frame_unwind.
1143 * dummy-frame.c (find_dummy_frame): Delete.
1144 (struct dummy_frame_cache, dummy_frame_sniffer)
1145 (dummy_frame_prev_register, dummy_frame_this_id)
1146 (dummy_frame_unwinder, dummy_frame_unwind): Re-implement dummy
1147 frame unwinder using a dummy_frame_cache.
1149 2004-08-01 Andrew Cagney <cagney@gnu.org>
1151 * frame.h (frame_save_as_regcache): Declare.
1152 * frame.c (frame_save_as_regcache): New function.
1153 (do_frame_read_register): Replace do_frame_unwind_register.
1154 (frame_pop): Use frame_save_as_regcache.
1155 * dummy-frame.c (generic_push_dummy_frame): Use
1156 frame_save_as_regcache.
1158 2004-08-01 Joel Brobecker <brobecker@gnat.com>
1160 * dwarf2read.c (dwarf_decode_lines): Do not consider the current
1161 file as included until we record the first line in the linetable.
1163 2004-08-01 Andrew Cagney <cagney@gnu.org>
1165 * frame.h (deprecated_pop_dummy_frame)
1166 (deprecated_read_register_dummy)
1167 (deprecated_generic_find_dummy_frame): Delete.
1168 * dummy-frame.c (deprecated_generic_find_dummy_frame)
1169 (deprecated_read_register_dummy)
1170 (deprecated_find_dummy_frame_regcache)
1171 (discard_innermost_dummy)
1172 (deprecated_pop_dummy_frame): Delete.
1173 (dummy_frame_this_id): Simplify.
1174 (struct dummy_frame): Delete "fp" and "sp".
1175 (find_dummy_frame): Simplify.
1176 (generic_push_dummy_frame): Do not set "fp" or "sp".
1177 (fprint_dummy_frames): Do not print "fp" and "sp"
1179 2004-08-01 Mark Kettenis <kettenis@gnu.org>
1181 * i386-tdep.c (I386_MAX_INSN_LEN): New define.
1182 (struct i386_insn): New structure.
1183 (i386_match_insn): New function.
1184 (i386_frame_setup_skip_insns): New variable.
1185 (i386_analyze_frame_setup): Change to use i386_match_insn and the
1186 array i386_frame_setup_insns of instructions that should be
1187 skipped inside the frame setup sequence.
1189 2004-08-01 Andrew Cagney <cagney@gnu.org>
1191 * frame.h (deprecated_frame_xmalloc_with_cleanup)
1192 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1193 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1194 * stack.c (frame_info): Delete references to
1195 DEPRECATED_FRAME_INIT_SAVED_REGS and
1196 deprecated_get_frame_saved_regs.
1197 * frame.c (struct frame_info): Delete saved_regs and extra_info.
1198 (frame_pc_unwind): Do not use DEPRECATED_FRAME_SAVED_PC.
1199 (frame_register): Do not use DEPRECATED_GET_SAVED_REGISTER.
1200 (frame_unwind_register_signed)
1201 (frame_unwind_register_unsigned)
1202 (frame_unwind_unsigned_register): Use register_size.
1203 (create_new_frame): Do not use DEPRECATED_INIT_EXTRA_FRAME_INFO.
1204 (deprecated_frame_xmalloc_with_cleanup)
1205 (frame_saved_regs_zalloc, frame_extra_info_zalloc)
1206 (get_frame_extra_info, deprecated_get_frame_saved_regs): Delete.
1208 * sh-tdep.c (sh_gdbarch_init): Disable call to sh64_gdbarch_init.
1209 * config/sh/nbsd.mt (TDEPFILES): Remove sh64-tdep.o.
1210 * config/sh/linux.mt (TDEPFILES): Remove sh64-tdep.o.
1211 * config/sh/embed.mt (TDEPFILES): Remove sh64-tdep.o.
1213 * infcall.c (call_function_by_hand): Do not use
1214 DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP,
1215 DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_TARGET_READ_FP,
1216 DEPRECATED_FP_REGNUM, DEPRECATED_STORE_STRUCT_RETURN, and
1217 DEPRECATED_STACK_ALIGN.
1219 2004-07-30 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
1221 Committed by Andrew Cagney.
1222 * arm-tdep.c: Remove references to add_setshow_cmd_full for apcs32 .
1224 2004-08-01 Andrew Cagney <cagney@gnu.org>
1226 * mips-tdep.c (mips16_frame_cache)
1227 (mips16_frame_this_id, mips16_frame_prev_register)
1228 (mips16_frame_unwind, mips16_frame_sniffer)
1229 (mips16_frame_base_address, mips16_frame_base)
1230 (mips16_frame_base_sniffer, mips32_frame_cache)
1231 (mips32_frame_this_id, mips32_frame_prev_register)
1232 (mips32_frame_unwind, mips32_frame_sniffer)
1233 (mips32_frame_base_address, mips32_frame_base)
1234 (mips32_frame_base_sniffer): Clone the mdebug unwinder into
1235 separate heuristic mips16 and mips32 unwinders.
1236 (mips_stub_frame_cache, mips_stub_frame_this_id)
1237 (mips_stub_frame_prev_register)
1238 (mips_stub_frame_unwind, mips_stub_frame_sniffer)
1239 (mips_stub_frame_base_address, mips_stub_frame_base)
1240 (mips_stub_frame_base_sniffer): Add a simple stub unwinder.
1241 (mips_mdebug_frame_base_sniffer, mips_mdebug_frame_sniffer): Only
1242 match true mdebug frames.
1243 (non_heuristic_proc_desc): Add forward declaration.
1245 2004-08-01 Andrew Cagney <cagney@gnu.org>
1247 * config/mips/tm-irix6.h: Delete file.
1248 * config/mips/tm-irix5.h: Delete file.
1249 * config/mips/irix5.mt (TM_FILE): Set to tm-mips.h
1250 * config/mips/irix6.mt (TM_FILE): Set to tm-mips.h
1252 * config/ia64/tm-linux.h (IA64_GNULINUX_TARGET): Delete.
1253 * config/alpha/nm-osf2.h (PROCFS_SIGPEND_OFFSET): Delete.
1254 * config/nm-gnu.h (NO_CORE_OPS): Delete.
1255 * config/pa/nm-hppah.h (MAY_SWITCH_FROM_INFERIOR_PID): Delete.
1256 * config/i386/nm-i386v4.h (LOSING_POLL): Delete.
1257 * config/alpha/nm-osf2.h (LOSING_POLL): Delete.
1258 * config/tm-nto.h (RAW_SIGNAL_LO, RAW_SIGNAL_HI): Delete.
1259 * config/m68k/tm-vx68.h (VX_SIZE_FPREGS): Delete.
1260 * config/nm-linux.h (USE_THREAD_STEP_NEEDED): Delete.
1261 * config/pa/nm-hppah.h (USE_THREAD_STEP_NEEDED): Delete.
1262 * config/tm-nto.h (TARGET_SIGNAL_RAW_TABLE) Delete.
1263 (TARGET_SIGNAL_RAW_VALUES): Delete.
1264 * config/pa/nm-hppah.h (TARGET_RANGE_PROFITABLE_FOR_HW_WATCHPOINT):
1266 * config/frv/tm-frv.h (TARGET_HW_BREAK_LIMIT)
1267 (TARGET_HW_WATCH_LIMIT): Delete.
1268 * Makefile.in (minimon_h, HFILES_NO_SRCDIR): Remove minimon.h.
1269 * minimon.h: Delete file.
1271 * trad-frame.c (trad_frame_get_this_base)
1272 (trad_frame_set_this_base, trad_frame_set_reg_realreg): New
1274 * trad-frame.h (trad_frame_set_this_base)
1275 (trad_frame_get_this_base, trad_frame_set_reg_realreg): Declare.
1277 2004-07-31 Andrew Cagney <cagney@gnu.org>
1279 * trad-frame.c (trad_frame_get_prev_register): Rename
1280 trad_frame_get_prev_register.
1281 * vax-tdep.c (vax_frame_prev_register): Update.
1282 * trad-frame.h: Update.
1283 * trad-frame.c (trad_frame_get_register): Update.
1284 * sparcobsd-tdep.c (sparc32obsd_frame_prev_register): Update.
1285 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_prev_register):
1287 * sparc64obsd-tdep.c (sparc64obsd_frame_prev_register): Update.
1288 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_prev_register):
1290 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_prev_register):
1292 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_prev_register):
1294 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_prev_register):
1296 * sparc-linux-tdep.c (sparc32_linux_sigtramp_frame_prev_register):
1298 * s390-tdep.c (s390_frame_prev_register)
1299 (s390_stub_frame_prev_register)
1300 (s390_sigtramp_frame_prev_register): Update.
1301 * rs6000-tdep.c (rs6000_frame_prev_register): Update.
1302 * ppc-linux-tdep.c (ppc_linux_sigtramp_prev_register): Update.
1303 * mips-tdep.c (mips_mdebug_frame_prev_register): Update.
1304 * m88k-tdep.c (m88k_frame_prev_register)
1305 * m68hc11-tdep.c (m68hc11_frame_prev_register)
1306 * m32r-tdep.c (m32r_frame_prev_register): Update.
1307 * hppa-tdep.c (hppa_frame_prev_register_helper)
1308 * frv-tdep.c (frv_frame_prev_register): Update.
1309 * d10v-tdep.c (d10v_frame_prev_register): Update.
1310 * cris-tdep.c (cris_frame_prev_register): Update.
1311 * avr-tdep.c (avr_frame_prev_register): Update.
1312 * arm-tdep.c (arm_prologue_prev_register)
1313 (arm_sigtramp_prev_register): Update.
1315 2004-07-31 Andrew Cagney <cagney@gnu.org>
1317 * frame.h (legacy_saved_regs_unwind)
1318 (legacy_frame_chain_valid, legacy_frame_p)
1319 (enum frame_type): Delete UNKNOWN_FRAME.
1320 * dummy-frame.c (dummy_frame_this_id): Simplify.
1321 * frame-unwind.c (frame_unwind_find_by_frame): Simplify.
1322 * frame.c (struct frame_info): Delete the field "type".
1323 (legacy_saved_regs_prev_register, legacy_get_prev_frame)
1324 (legacy_saved_regs_this_id, legacy_saved_regs_unwinder)
1325 (legacy_saved_regs_unwind, legacy_frame_p)
1326 (frame_type_from_pc): Delete.
1327 (get_frame_id, frame_pop, frame_register_unwind, get_prev_frame_1)
1328 (fprint_frame, create_new_frame, fprint_frame_type): Simplify.
1330 2004-07-31 Mark Kettenis <kettenis@gnu.org>
1332 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Fix
1335 * mips-nat.c: Remove file.
1336 * Makefile.in (ALLDEPFILES): Remove mips-nat.c
1337 (mips-nat.o): Remove dependency.
1339 * infptrace.c: Update copyright year.
1340 (fetch_register): Pass NULL in regcache_raw_supply call instead of
1341 explicitly setting the buffer to all zeroes.
1343 * sparc64obsd-tdep.c (sparc64obsd_sigreturn_offset): New variable.
1344 (sparc64obsd_pc_in_sigtramp): Reorganize to avoid goto.
1346 2004-07-30 Andrew Cagney <cagney@gnu.org>
1348 * GDB 6.2 released from gdb_6_2-branch.
1350 2004-07-30 Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr>
1352 * defs.h (OPF_TRY_CWD_FIRST, OPF_SEARCH_IN_PATH): New macros.
1354 * exec.c (exec_file_attach):
1355 * nto-tdep.c (nto_find_and_open_solib):
1356 * pa64solib.c (pa64_solib_sizeof_symbol_table):
1357 * solib.c (solib_open):
1358 * somsolib.c (som_solib_sizeof_symbol_table):
1359 * source.c (is_regular_file, openp, open_source_file):
1360 * symfile.c (symfile_bfd_open):
1361 * wince.c (upload_to_device): Differentiate between the search for
1362 binary and source files.
1364 2004-07-30 Andrew Cagney <cagney@gnu.org>
1366 * complaints.c (_initialize_complaints): Pass NULL to
1367 add_setshow_zinteger_cmd for help_doc.
1368 * cli/cli-decode.c (add_setshow_cmd_full): Handle a NULL help_doc.
1370 2004-07-30 Andrew Cagney <cagney@gnu.org>
1373 * Makefile.in (.SUFFIXES): Add po .gmo, and .pox.
1374 (.PHONY): Add all-po install-po, uninstall-po, clean-po,
1375 $(PACKAGE).pot and update-po.
1376 (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot)
1377 (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po)
1378 (update-po): New rules.
1379 (localedir): Define using autoconf.
1380 (diststuff): Add $(PACKAGE).pot and $(CATALOGS)
1381 (GDB_CFLAGS): Define LOCALEDIR using $(localedir).
1382 (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define.
1383 * configure.in: Generate CATALOGS and LINGUAS from contents of
1384 src/gdb/po/ directory. Set @localedir@ in Makefile.in.
1385 * configure: Re-generate.
1386 * po/gdbtext: New file
1388 2004-07-30 Jerome Guitton <guitton@gnat.com>
1390 * MAINTAINERS: Reorder Write After Approval list in alphabetical
1393 2004-07-30 David Lecomber <dsl@sources.redhat.com>
1395 * dwarf2read.c (read_file_scope): Set producer if attribute
1397 (struct dwarf2_cu): Added new member producer.
1399 2004-07-30 Jerome Guitton <guitton@gnat.com>
1401 * inflow.c (kill_command): release file handles in BFD.
1402 * exec.c (exec_file_attach): Ditto.
1403 * symfile.c (symbol_file_add_with_addrs_or_offsets): Ditto.
1405 2004-07-29 Andrew Cagney <cagney@gnu.org>
1407 * PROBLEMS (mips-irix): Note that it is broken.
1409 2004-07-29 Andrew Cagney <cagney@gnu.org>
1411 * config/mips/xm-irix5.h (REGISTER_U_ADDR): Move from here ...
1412 * config/mips/nm-irix5.h (REGISTER_U_ADDR): ... to here.
1414 * config/xm-nbsd.h: Delete file.
1415 * config/arm/xm-nbsd.h: Delete file.
1416 * config/i386/xm-nbsd.h: Delete file.
1417 * config/ns32k/xm-nbsd.h: Delete file.
1418 * config/ns32k/nbsdaout.mh (XM_FILE): Delete.
1419 * config/i386/nbsdelf.mh (XM_FILE): Delete.
1420 * config/i386/nbsdaout.mh (XM_FILE): Delete.
1421 * config/arm/nbsdelf.mh (XM_FILE): Delete.
1422 * config/arm/nbsdaout.mh (XM_FILE): Delete.
1424 * config/i386/xm-i386v.h (KERNEL_U_ADDR): Move from here ...
1425 * config/i386/nm-i386v42mp.h (KERNEL_U_ADDR): ... to here, ...
1426 * config/i386/nm-i386v4.h (KERNEL_U_ADDR): ... here, ...
1427 * config/i386/nm-i386v.h (KERNEL_U_ADDR): ... and here.
1428 * config/vax/xm-vax.h (KERNEL_U_ADDR): Move from here ...
1429 * config/vax/nm-vax.h (KERNEL_U_ADDR): ... to here.
1431 * config/powerpc/xm-linux.h: Delete empty file.
1432 * config/powerpc/ppc64-linux.mh (XM_FILE): Delete.
1433 * config/powerpc/linux.mh (XM_FILE): Delete.
1434 * config/m68k/xm-linux.h: Delete empty file.
1435 * config/m68k/linux.mh (XM_FILE): Delete.
1436 * config/ia64/xm-linux.h: Delete empty file.
1437 * config/ia64/linux.mh (XM_FILE): Delete.
1438 * config/arm/xm-linux.h: Delete empty file.
1439 * config/arm/linux.mh (XM_FILE): Delete.
1441 * config/powerpc/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1442 * config/powerpc/nm-linux.h (KERNEL_U_ADDR): ... to here.
1443 * config/m68k/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1444 * config/m68k/nm-linux.h (KERNEL_U_ADDR): ... to here.
1445 * config/ia64/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1446 * config/ia64/nm-linux.h (KERNEL_U_ADDR): ... to here.
1447 * config/arm/xm-linux.h (KERNEL_U_ADDR): Move from here ...
1448 * config/arm/nm-linux.h (KERNEL_U_ADDR): ... to here.
1450 * config/m68k/xm-m68k.h: Delete file.
1451 * config/m68k/xm-linux.h: Do not include "m68k/xm-m68k.h". Update
1453 (HOST_LONG_DOUBLE_FORMAT): Delete macro.
1454 * config/pa/xm-linux.h: Delete empty file.
1455 * config/pa/linux.mh (XM_FILE): Delete.
1456 * config/i386/xm-i386.h: Delete empty file.
1457 * config/i386/xm-nbsd.h, config/i386/xm-go32.h: Do not include
1459 * config/i386/obsdaout.mh (XM_FILE): Delete.
1460 * config/i386/obsd64.mh (XM_FILE): Delete.
1461 * config/i386/fbsd64.mh (XM_FILE): Delete.
1462 * config/i386/nto.mh (XM_FILE): Delete.
1463 * config/i386/obsd.mh (XM_FILE): Delete.
1464 * config/i386/linux64.mh (XM_FILE): Delete.
1465 * config/i386/linux.mh (XM_FILE): Delete.
1466 * config/i386/i386sol2.mh (XM_FILE): Delete.
1467 * config/i386/i386gnu.mh (XM_FILE): Delete.
1468 * config/i386/fbsd.mh (XM_FILE): Delete.
1469 * config/i386/nbsd64.mh (XM_FILE): Delete.
1471 2004-07-29 Andrew Cagney <cagney@gnu.org>
1473 * config/pa/xm-linux.h: Do not include "floatformat.h".
1474 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1475 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1476 * config/i386/xm-i386.h: Do not include "floatformat.h".
1477 (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1478 (HOST_LONG_DOUBLE_FORMAT): Delete macros.
1479 * doublest.c (HOST_FLOAT_FORMAT, HOST_DOUBLE_FORMAT)
1480 (HOST_LONG_DOUBLE_FORMAT): Delete macros. Use
1481 GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT and
1482 GDB_HOST_LONG_DOUBLE_FORMAT instead.
1483 * configure.in (GDB_HOST_FLOAT_FORMAT, GDB_HOST_DOUBLE_FORMAT)
1484 (GDB_HOST_LONG_DOUBLE_FORMAT): Define.
1485 * configure, config.in: Regenerate.
1486 * configure.host (gdb_host_float_format, gdb_host_double_format)
1487 (gdb_host_long_double_format): Set according to the host.
1489 2004-07-29 Andrew Cagney <cagney@gnu.org>
1491 * Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
1493 2004-07-28 Andrew Cagney <cagney@gnu.org>
1495 * PROBLEMS: Mention threads/1650.
1496 * NEWS: Mention the NPTL fix.
1498 2004-07-28 Andrew Cagney <cagney@gnu.org>
1500 * cli/cli-decode.c (add_setshow_cmd): Delete function.
1501 (add_setshow_cmd_full): Make static.
1502 * command.h (add_setshow_cmd, add_setshow_cmd_full): Delete.
1503 (add_setshow_filename_cmd, add_setshow_string_cmd): Declare.
1504 * cli/cli-decode.c (add_setshow_filename_cmd)
1505 (add_setshow_string_cmd): New functions.
1506 * nto-tdep.c (_initialize_nto_tdep): Update. Fix parameters.
1507 * mips-tdep.c (_initialize_mips_tdep): Update.
1508 * m32r-rom.c (_initialize_m32r_rom): Update. Update copyright.
1509 * cli/cli-logging.c (_initialize_cli_logging): Update.
1510 * complaints.c (_initialize_complaints): Update.
1511 * remote.c (_initialize_remote): Update.
1513 2004-07-28 Andrew Cagney <cagney@gnu.org>
1515 * cli/cli-decode.c (add_setshow_zinteger_cmd)
1516 (add_setshow_cmd, add_setshow_auto_boolean_cmd)
1517 (add_setshow_boolean_cmd, add_setshow_cmd_full): Add help_doc and
1518 print parameters. Make string parameters constant.
1519 * command.h: Update. Update copyright.
1520 * remote.c (add_packet_config_cmd, _initialize_remote): Ditto.
1521 * observer.c (_initialize_observer): Ditto.
1522 * frame.c (_initialize_frame): Ditto.
1523 * complaints.c (_initialize_complaints): Ditto.
1524 * maint.c (_initialize_maint_cmds): Ditto.
1525 * target.c (initialize_targets): Ditto.
1526 * cli/cli-logging.c (_initialize_cli_logging): Ditto.
1527 * infcall.c (_initialize_infcall): Ditto.
1528 * arm-tdep.c (_initialize_arm_tdep): Ditto.
1529 * m32r-rom.c (_initialize_m32r_rom): Ditto.
1530 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1531 * d10v-tdep.c (_initialize_d10v_tdep): Ditto.
1532 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1534 2004-07-28 Andrew Cagney <cagney@gnu.org>
1536 * gdbtypes.c (lookup_primitive_typename): Delete function.
1537 * gdbtypes.h (lookup_primitive_typename): Delete declaration.
1538 * ada-lex.l: Use language_lookup_primitive_type_by_name.
1539 * gdbtypes.c (lookup_typename): Ditto.
1540 * f-exp.y (yylex): Ditto.
1541 * c-exp.y (yylex): Ditto, eliminate assignment in "if".
1543 * scm-lang.c (c_builtin_types): Delete extern declaration.
1544 (scm_language_defn): Replace
1545 string_char_type and primitive_type_vector with
1546 la_language_arch_info.
1547 * jv-lang.c (java_language_defn): Replace
1548 string_char_type and primitive_type_vector with
1549 la_language_arch_info.
1550 * config/i386/i386sco4.mh (NATDEPFILES): Remove reference to
1551 c_builtin_types in comment.
1552 * c-lang.h (struct language_arch_info): Declare opaque.
1553 (c_language_arch_info): Declare.
1554 (c_builtin_types): Delete declaration.
1555 * c-lang.c (c_language_arch_info): Set string_char_type to
1556 builtin_char, not builtin_true_char. Make global.
1557 (c_builtin_types): Delete array.
1558 (asm_language_defn, minimal_language_defn): Replace
1559 string_char_type and primitive_type_vector with
1560 la_language_arch_info.
1562 2004-07-28 Andrew Cagney <cagney@gnu.org>
1564 * gdbtypes.h (struct builtin_type): Rename true_char to
1566 * gdbtypes.c (gdbtypes_post_init): Update.
1567 * c-lang.c (arch_info): New function.
1568 (enum c_primitive_types): New enum.
1569 (c_language_defn): Instead of string_char_type and
1570 primitive_type_vector set la_language_arch_info.
1572 2004-07-28 Andrew Cagney <cagney@gnu.org>
1574 * language.h (struct language_arch_info): Fix typo
1575 s/primative/primitive/.
1576 * gdbtypes.c (lookup_primitive_typename): Ditto.
1577 * language.c (language_lookup_primitive_type_by_name)
1578 (unknown_language_arch_info): Ditto.
1580 2004-07-27 Andrew Cagney <cagney@gnu.org>
1582 * defs.h (enum language): Add nr_languages.
1583 * language.h (struct language_arch_info): Define.
1584 (struct language_defn): Add la_language_arch_info.
1585 (language_lookup_primative_type_by_name): Declare.
1586 (language_string_char_type): Declare.
1587 * language.c (_initialize_language, language_gdbarch_post_init)
1588 (struct language_gdbarch, language_gdbarch_data): Implement
1589 per-architecture language information.
1590 (unknown_language_arch_info, language_string_char_type)
1591 (language_lookup_primative_type_by_name): New functions.
1592 (unknown_language_defn, auto_language_defn)
1593 (local_language_defn): Set la_language_arch_info to
1594 unknown_language_arch_info.
1595 (unknown_builtin_types): Delete.
1596 * gdbtypes.c (lookup_primitive_typename): Use
1597 language_lookup_primative_type_by_name.
1598 (create_string_type): Use language_string_char_type.
1599 * values.c (value_from_string): Use language_string_char_type.
1600 * scm-lang.c (scm_language_defn): Add NULL la_language_arch_info.
1601 * p-lang.c (pascal_language_defn): Ditto.
1602 * m2-lang.c (m2_language_defn): Ditto.
1603 * jv-lang.c (java_language_defn): Ditto.
1604 * objc-lang.c (objc_language_defn): Ditto.
1605 * f-lang.c (f_language_defn): Ditto.
1606 * c-lang.c (c_language_defn, cplus_language_defn)
1607 (asm_language_defn, minimal_language_defn): Ditto.
1609 2004-07-27 Andrew Cagney <cagney@gnu.org>
1611 * gdbtypes.h (struct builtin_type): Declare.
1612 (builtin_type): Declare.
1613 * d10v-tdep.c (d10v_register_type): Use builtin_type.
1614 * gdbtypes.c (_initialize_gdbtypes): Register gdbtypes_post_init.
1615 (gdbtypes_post_init): New function.
1616 (builtin_type): New function.
1618 2004-07-27 Kei Sakamoto <sakamoto.kei@renesas.com>
1620 * remote-m32r-sdi.c: Fix breakpoint bug.
1621 (send_cmd, send_one_arg_cmd, send_two_arg_cmd, send_three_arg_cmd,
1622 recv_char_data, recv_long_data): New functions to replace communication
1625 2004-07-26 Michael Chastain <mec.gnu@mindspring.com>
1627 Document PR threads/1650.
1628 * PROBLEMS (Threads): Document problem with many threads
1630 2004-07-26 Andrew Cagney <cagney@gnu.org>
1632 * gdb-mi.el: Move from here ...
1633 * mi/gdb-mi.el: ... to here.
1635 2004-07-26 Andrew Cagney <cagney@gnu.org>
1637 Problem reported by Ashley Pittman <ashley@quadrics.com>.
1638 * main.c (captured_main): When in batch mode always detach.
1640 2004-07-26 Andrew Cagney <cagney@gnu.org>
1642 * MAINTAINERS: Mark the xstormy16, sh64, ns32k, mn10300, mcore,
1643 and h8300 as broken.
1644 * NEWS: END-OF-LIFE frame compatibility module.
1645 * PROBLEMS: For "Stack backtraces", remove powerpc, hppa and mips
1648 2004-07-26 Andrew Cagney <cagney@gnu.org>
1650 * cli/cli-decode.c (deprecated_add_show_from_set): Deprecate.
1651 * xcoffsolib.c (_initialize_xcoffsolib): Update.
1652 * wince.c (_initialize_wince): Update.
1653 * win32-nat.c (_initialize_win32_nat): Update.
1654 * varobj.c (_initialize_varobj): Update.
1655 * valops.c (_initialize_valops): Update.
1656 * utils.c (initialize_utils, initialize_utils): Update.
1657 * tui/tui-win.c (_initialize_tui_win): Update.
1658 * top.c (init_main): Update.
1659 * symfile.c (_initialize_symfile): Update.
1660 * source.c (_initialize_source): Update.
1661 * somsolib.c (_initialize_som_solib): Update.
1662 * solib.c (_initialize_solib): Update.
1663 * solib-frv.c (_initialize_frv_solib): Update.
1664 * serial.c (_initialize_serial): Update.
1665 * ser-go32.c (_initialize_ser_dos, _initialize_ser_dos): Update.
1666 * remote.c (_initialize_remote, _initialize_remote): Update.
1667 * remote-vx.c (_initialize_vx): Update.
1668 * remote-utils.c (_initialize_sr_support): Update.
1669 * remote-sds.c (_initialize_remote_sds): Update.
1670 * remote-mips.c (_initialize_remote_mips): Update.
1671 * remote-e7000.c (_initialize_remote_e7000): Update.
1672 * proc-api.c (_initialize_proc_api): Update.
1673 * printcmd.c: Update.
1674 * parse.c (_initialize_parse): Update.
1675 * pa64solib.c (_initialize_pa64_solib): Update.
1676 * p-valprint.c (_initialize_pascal_valprint): Update.
1677 * monitor.c (_initialize_remote_monitors): Update.
1678 * mips-tdep.c (_initialize_mips_tdep): Update.
1679 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1680 * maint.c (_initialize_maint_cmds): Update.
1681 * lin-lwp.c (_initialize_lin_lwp): Update.
1682 * language.c (_initialize_language): Update.
1683 * kod.c (_initialize_kod): Update.
1684 * infrun.c (set_schedlock_func, _initialize_infrun): Update.
1685 * i386-tdep.c (_initialize_i386_tdep): Update.
1686 * gdbtypes.c (build_gdbtypes, _initialize_gdbtypes): Update.
1687 * gdbarch.sh: Update.
1688 * gdbarch.c: Re-generate.
1689 * gdb-events.sh: Update.
1690 * gdb-events.c: Re-generate.
1691 * frame.c (_initialize_frame): Update.
1693 * demangle.c (_initialize_demangler): Update.
1694 * dcache.c (_initialize_dcache): Update.
1695 * cris-tdep.c (_initialize_cris_tdep, cris_version_update): Update.
1696 * cp-valprint.c (_initialize_cp_valprint): Update.
1697 * corefile.c (_initialize_core): Update.
1698 * command.h: Update.
1699 * cli/cli-decode.h: Update.
1700 * cli/cli-cmds.c (init_cli_cmds): Update.
1701 * charset.c (_initialize_charset): Update.
1702 * breakpoint.c (_initialize_breakpoint): Update.
1703 * arm-tdep.c (_initialize_arm_tdep_initialize_arm_tdep): Update.
1704 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1705 * aix-thread.c (_initialize_aix_thread): Update.
1707 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1709 Partial fix for PR backtrace/1718.
1710 * i386-tdep.c (i386_analyze_frame_setup): Handle more instructions
1711 that GCC migrates into the prolugue. Don't handle any
1712 instructions that clobber %ebx.
1714 2004-07-23 Andrew Cagney <cagney@gnu.org>
1716 Use regcache_raw_collect instead of regcache_collect.
1717 * regcache.h (regcache_collect): Delete declaration.
1718 * regcache.c (regcache_colect): Delete function.
1719 * win32-nat.c (do_child_store_inferior_registers): Update.
1720 * sol-thread.c (sol_thread_store_registers): Update.
1721 * shnbsd-tdep.c (shnbsd_fill_reg): Update.
1722 * rs6000-nat.c (store_register): Update.
1723 * remote.c (store_register_using_P, remote_store_registers): Update.
1724 * ppcnbsd-tdep.c (ppcnbsd_fill_reg): Update.
1725 * ppc-linux-nat.c (store_altivec_register, store_spe_register)
1726 (fill_vrregset, store_spe_registers, fill_gregset)
1727 (fill_gregset): Update.
1728 * nto-procfs.c (procfs_store_registers): Update.
1729 * mipsnbsd-tdep.c (mipsnbsd_fill_reg): Update.
1730 * mips-linux-tdep.c (fill_gregset, mips64_fill_gregset): Update.
1731 * m68klinux-nat.c (store_register, fill_gregset): Update.
1732 * m68k-tdep.c (fill_gregset): Update.
1733 * infptrace.c (store_register): Update.
1734 * i386-nto-tdep.c (i386nto_regset_fill): Update.
1735 * i386-linux-nat.c (store_register, fill_gregset): Update.
1736 * hppa-linux-nat.c (fill_gregset): Update.
1737 * go32-nat.c (store_register): Update.
1738 * armnbsd-nat.c (store_register, store_regs, store_fp_register)
1739 (store_fp_regs): Update.
1740 * arm-linux-nat.c (store_nwfpe_single, store_nwfpe_double)
1741 (store_nwfpe_extended, store_fpregister, store_fpregs)
1742 (store_register, store_regs, fill_gregset, fill_fpregset): Update.
1743 * alpha-tdep.c (alpha_fill_int_regs, alpha_fill_fp_regs): Update.
1744 * aix-thread.c (fill_gprs64, fill_fprs, fill_sprs64, fill_sprs32)
1745 (store_regs_user_thread, store_regs_kernel_thread): Update.
1747 2004-07-24 Mark Kettenis <kettenis@gnu.org>
1749 * dwarf2-frame.c (struct dwarf2_cie): Delete `addr_size' member.
1750 (decode_frame_entry_1): Use DW_EH_PE_absptr as default for CIE
1752 (dwarf2_build_frame_info): Adjust for removal of `addr_size'
1753 member of `struct comp_unit'.
1755 2004-07-23 Andrew Cagney <cagney@gnu.org>
1757 * infrun.c (handle_inferior_event): Separate the STEP_OVER_ALL and
1758 DEPRECATED_IGNORE_HELPER_CALL cases, only #ifdef the latter.
1760 2004-07-23 Martin Hunt <hunt@redhat.com>
1761 Kevin Buettner <kevinb@redhat.com>
1763 * dwarf2-frame.c (execute_cfa_program): Fix typo in which the
1764 alignment was being added to the offset instead of multiplied.
1766 2004-07-23 Mark Kettenis <kettenis@gnu.org>
1768 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Adjust for
1769 changed signal trampoline in OpenBSD 3.5-current.
1771 * sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,
1772 <machine/pcb.h> and "bsd-kvm.h".
1773 (sparc64nbsd_supply_pcb): New function.
1774 (_initialize_sparc64nbsd_nat): Renamed from
1775 _initialize_sparcnbsd_nat. Enable libkvm interface.
1776 * Makefile.in (sparc64nbsd-nat.o): Update dependencies.
1777 * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o
1778 (LOADLIBES): New variable.
1780 * config/sparc/obsd64.mt (TDEPFILES): Add sparcobsd-tdep.o.
1782 * sparcnbsd-nat.c (sparc32nbsd_supply_pcb): Fix typo in comment.
1784 2004-07-21 Andrew Cagney <cagney@gnu.org>
1786 Use regcache_raw_supply instead of supply_register.
1787 * regcache.h (supply_register): Delete declaration.
1788 * regcache.c (supply_register): Delete function.
1789 * wince.c (do_child_fetch_inferior_registers): Update.
1790 * win32-nat.c (do_child_fetch_inferior_registers)
1791 (fetch_elf_core_registers): Update.
1792 * v850ice.c (v850ice_fetch_registers): Update.
1793 * thread-db.c (thread_db_store_registers): Update.
1794 * sol-thread.c (sol_thread_store_registers): Update.
1795 * shnbsd-tdep.c (shnbsd_supply_reg): Update.
1796 * rs6000-nat.c (fetch_register): Update.
1797 * rom68k-rom.c (rom68k_supply_one_register): Update.
1798 * remote.c (remote_wait, remote_async_wait): Update.
1799 * remote-st.c (get_hex_regs): Update.
1800 * remote-sim.c (gdbsim_fetch_register): Update.
1801 * remote-sds.c (sds_fetch_registers): Update.
1802 * remote-rdp.c (remote_rdp_fetch_register): Update.
1803 * remote-rdi.c (arm_rdi_fetch_registers): Update.
1804 * remote-mips.c (mips_wait, mips_fetch_registers): Update.
1805 * remote-m32r-sdi.c (m32r_fetch_register): Update.
1806 * remote-hms.c (init_hms_cmds): Update.
1807 * remote-est.c (init_est_cmds): Update.
1808 * remote-e7000.c (get_hex_regs, fetch_regs_from_dump)
1809 (e7000_fetch_registers, sub2_from_pc, e7000_wait): Update.
1810 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_supply_fpreg): Update.
1811 * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register)
1812 (fetch_register, supply_vrregset, supply_vrregset)
1813 (fetch_spe_registers): Update.
1814 * ppc-bdm.c (bdm_ppc_fetch_registers): Update.
1815 * monitor.c (monitor_supply_register): Update.
1816 * mipsv4-nat.c (supply_gregset, supply_fpregset): Update.
1817 * mipsnbsd-tdep.c (mipsnbsd_supply_reg)
1818 (mipsnbsd_supply_fpreg): Update.
1819 * mips-nat.c (fetch_inferior_registers)
1820 (fetch_core_registers): Update.
1821 * mips-linux-tdep.c (supply_32bit_reg, supply_gregset)
1822 (supply_fpregset, mips64_supply_gregset)
1823 (mips64_supply_fpregset): Update.
1824 * m68klinux-nat.c (fetch_register, supply_gregset)
1825 (supply_fpregset): Update.
1826 * m68k-tdep.c (supply_gregset, supply_fpregset): Update.
1827 * m32r-rom.c (init_m32r_cmds, init_mon2000_cmds): Update.
1828 * lynx-nat.c (fetch_inferior_registers, fetch_core_registers): Update.
1829 * irix5-nat.c (supply_gregset, supply_fpregset): Update.
1830 * infptrace.c (fetch_register): Update.
1831 * ia64-linux-nat.c (supply_gregset, supply_fpregset): Update.
1832 * ia64-aix-nat.c (supply_gregset, supply_fpregset): Update.
1833 * i386gnu-nat.c (fetch_fpregs, supply_gregset)
1834 (gnu_fetch_registers, gnu_store_registers): Update.
1835 * i386-nto-tdep.c (i386nto_supply_gregset): Update.
1836 * i386-linux-nat.c (fetch_register, supply_gregset)
1837 (dummy_sse_values): Update.
1838 * hpux-thread.c (hpux_thread_fetch_registers): Update.
1839 * hppah-nat.c (fetch_register): Update.
1840 * hppa-linux-nat.c (fetch_register, supply_gregset)
1841 (supply_fpregset): Update.
1842 * go32-nat.c (fetch_register): Update.
1843 * dve3900-rom.c (fetch_bitmapped_register)
1844 (_initialize_r3900_rom): Update.
1845 * cris-tdep.c (supply_gregset): Update.
1846 * abug-rom.c (init_abug_cmds): Update.
1847 * core-aout.c (fetch_core_registers): Update.
1848 * armnbsd-nat.c (supply_gregset, supply_fparegset)
1849 (fetch_register, fetch_fp_register): Update.
1850 * arm-linux-nat.c (fetch_nwfpe_single, fetch_nwfpe_none)
1851 (fetch_nwfpe_extended, fetch_fpregister, fetch_fpregs)
1852 (fetch_register, fetch_regs, supply_gregset, supply_fpregset): Update.
1853 * alphanbsd-tdep.c (fetch_core_registers): Update.
1854 * alpha-tdep.c (alpha_supply_int_regs, alpha_supply_fp_regs): Update.
1855 * alpha-nat.c (fetch_osf_core_registers)
1856 (fetch_osf_core_registers, fetch_osf_core_registers): Update.
1857 * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs)
1858 (supply_sprs64, supply_sprs32, fetch_regs_kernel_thread): Update.
1860 2004-07-21 Andrew Cagney <cagney@gnu.org>
1862 * PROBLEMS: Mention breakpoints/1702.
1863 * NEWS: For signal trampolines, cite s390 GNU/Linux as a system
1864 that is known to work.
1866 2004-07-21 Andrew Cagney <cagney@gnu.org>
1868 * config/mips/tm-mips.h (DEPRECATED_IGNORE_HELPER_CALL): Deprecate.
1869 * mips-tdep.c (mips_dump_tdep, mips_ignore_helper): Update.
1870 * infrun.c (DEPRECATED_IGNORE_HELPER_CALL): Delete macro.
1871 (handle_inferior_event): Wrap call to deprecated
1872 IGNORE_HELPER_CALL in #ifdef.
1873 * config/mips/tm-nbsd.h: Update.
1875 2004-07-20 Jim Blandy <jimb@redhat.com>
1877 * rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
1878 bfd_mach_ppc has no segment registers.
1880 Include PowerPC SPR numbers for special-purpose registers.
1881 * rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
1882 (R, R4, R8, R16, F, P, R32, R64, R0): Include value for
1883 new member in initializer.
1884 (S, S4, SN4, S64): New macros for defining special-purpose
1886 (PPC_UISA_SPRS, PPC_UISA_NOFP_SPRS, PPC_OEA_SPRS, registers_power,
1887 registers_403, registers_403GC, registers_505, registers_860,
1888 registers_601, registers_602, registers_603, registers_604,
1889 registers_750, registers_e500): Use them.
1891 * rs6000-tdep.c (rs6000_gdbarch_init): Delete variable 'power';
1892 replace references with expression used to initialize variable.
1894 2004-07-20 Andrew Cagney <cagney@gnu.org>
1896 * breakpoint.c (deprecated_read_memory_nobpt): Rename
1898 * sparc-linux-tdep.c (sparc_linux_sigtramp_start): Update.
1899 * s390-tdep.c (s390_readinstruction, s390_in_function_epilogue_p)
1900 (s390_sigtramp_frame_sniffer): Update.
1901 * mn10300-tdep.c (mn10300_analyze_prologue): Update.
1902 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Update.
1903 * mips-tdep.c (mips_fetch_instruction, mips16_fetch_instruction)
1904 (mips32_fetch_instruction): Update.
1905 * mcore-tdep.c (get_insn): Update.
1906 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Update.
1907 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): Update.
1908 * i386ly-tdep.c (i386lynx_saved_pc_after_call): Update.
1909 * i386-linux-tdep.c (i386_linux_sigtramp_start)
1910 (i386_linux_rt_sigtramp_start): Update.
1911 * i386-linux-nat.c (child_resume): Update.
1912 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Update.
1913 * hppa-linux-tdep.c (insns_match_pattern): Update.
1914 * gdbcore.h: Update.
1915 * frv-tdep.c (frv_gdbarch_adjust_breakpoint_address): Update.
1916 * frame.c (safe_frame_unwind_memory): Update.
1917 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Update.
1918 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Update.
1919 * alpha-tdep.c (alpha_read_insn): Update.
1921 2004-07-20 Andrew Cagney <cagney@gnu.org>
1923 * tramp-frame.h (struct tramp_frame): Change "insn" to a struct
1924 containing both bytes and mask. Add "frame_type".
1925 * tramp-frame.c (tramp_frame_start): Update.
1926 (tramp_frame_prepend_unwinder): Update.
1927 * mips-linux-tdep.c (mips_linux_o32_sigframe)
1928 (mips_linux_o32_rt_sigframe, mips_linux_n32_rt_sigframe)
1929 (mips_linux_n64_rt_sigframe): Update. Make "static const".
1930 * ppcnbsd-tdep.c (tramp_frame ppcnbsd_sigtramp): Update.
1932 2004-07-19 Eli Zaretskii <eliz@gnu.org>
1934 * config/djgpp/fnchange.lst: Add remapping for bfd/elf32-cr*.c,
1935 bfd/elf32-sh-symbian.c, bfd/elf32-sh64-com.c,
1936 sim/testsuite/sim/mips/hilo-hazard-[123].s, and
1937 sim/testsuite/sim/mips/fpu64-ps-sb1.s.
1939 2004-07-17 Andrew Cagney <cagney@gnu.org>
1941 * NEWS, PROBLEMS: Update for 6.2.
1943 * README: Update to 6.2.
1945 * utils.c (xvasprintf): Call xstrvprintf.
1947 * parse.c: Update copyright.
1948 (null_post_parser): Eliminate ARGSUSED.
1950 * ppc-linux-nat.c (store_spe_registers): Eliminate K&R C.
1951 * tui/tui-win.c (tui_get_cmd_list): Ditto.
1952 * symfile-mem.c (_initialize_symfile_mem): Ditto.
1954 * ppc-linux-tdep.c (ppc_linux_init_abi): Add [sic] to Linux.
1955 * ppc-linux-nat.c: Use "Linux kernel".
1956 * hppa-linux-tdep.c: Use GNU/Linux.
1957 * hppa-linux-nat.c: Use GNU/Linux.
1958 * dwarfread.c: Add [sic] to use of Linux.
1960 * hppa-linux-nat.c: Do not include <string.h>.
1961 (supply_fpregset): Remove "register" attribute.
1963 * solib-frv.c (fetch_loadmap): Use xfree, not free.
1965 2004-07-17 Mark Kettenis <kettenis@gnu.org>
1967 * configure.in: Define _MSE_INT_H on Solaris 9 too.
1968 * configure, config.in: Regenerated.
1970 * vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
1972 (vaxbsd_supply_pcb): New function.
1973 (_initialize_vaxbsd_nat): New prototype and function.
1974 * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and
1976 (LOADLIBES): New variable.
1977 * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
1978 (LOADLIBES): New variable.
1979 * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
1980 (LOADLIBES): New variable.
1981 * Makefile.in (vaxbsd-nat.o): Update dependencies.
1983 2004-07-16 Andrew Cagney <cagney@gnu.org>
1985 * defs.h (event_loop_p): Replace variable declaration with macro,
1987 * main.c (captured_main): Delete options "-async" and "-noasync".
1988 (event_loop_p): Delete variable.
1989 * NEWS: Mention that "-async" and "-noasync" were removed.
1991 2004-07-16 Andrew Cagney <cagney@gnu.org>
1993 * remote-m32r-sdi.c: Re-indent.
1995 2004-07-16 Jim Blandy <jimb@redhat.com>
1997 * ppc-tdep.h (ppc_spr_asr): Add missing OEA SPR.
1998 (ppc_spr_mi_dbcam, ppc_spr_mi_dbram0, ppc_spr_mi_dbram1)
1999 (ppc_spr_md_cam, ppc_spr_md_ram0, ppc_spr_md_ram1): Add
2000 missing MPC823 SPRs.
2001 (ppc_spr_m_twb): Renamed from ppc_spr_md_twb; the old name was
2002 incorrect. (This was corrected in GDB's register name tables on
2005 * rs6000-tdep.c (registers_602): Correct register name: "esassr"
2006 should be "esasrr" ("ESA Save and Restore Register").
2008 2004-07-16 Andrew Cagney <cagney@gnu.org>
2010 * infrun.c (insert_step_resume_breakpoint): Delete gdb_assert
2011 calls, no longer applicable. Update comments and rename parameter
2012 "step_frame" to "return_frame".
2014 2004-07-16 Andrew Cagney <cagney@gnu.org>
2016 * frame.c (fprint_field): New function.
2017 (fprint_frame_id): Use fprint_field.
2019 2004-07-15 Joel Brobecker <brobecker@gnat.com>
2021 * ada-lang.c (ada_language_defn): Remove commented out code.
2023 2004-07-15 Jim Blandy <jimb@redhat.com>
2025 * ppc-tdep.h (struct gdbarch_tdep): New member: ppc_sr0_regnum.
2026 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it.
2028 2004-07-14 Jim Blandy <jimb@redhat.com>
2030 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): Delete; unused.
2032 * ppc-tdep.h (ppc_num_vrs): New enum constant.
2034 * ppc-tdep.h (ppc_num_srs): New enum constant.
2036 * ppc-tdep.h (ppc_spr_mq, ppc_spr_xer, ppc_spr_rtcu, ppc_spr_rtcl)
2037 (ppc_spr_lr, ppc_spr_ctr, ppc_spr_cnt, ppc_spr_dsisr, ppc_spr_dar)
2038 (ppc_spr_dec, ppc_spr_sdr1, ppc_spr_srr0, ppc_spr_srr1)
2039 (ppc_spr_eie, ppc_spr_eid, ppc_spr_nri, ppc_spr_sp, ppc_spr_cmpa)
2040 (ppc_spr_cmpb, ppc_spr_cmpc, ppc_spr_cmpd, ppc_spr_icr)
2041 (ppc_spr_der, ppc_spr_counta, ppc_spr_countb, ppc_spr_cmpe)
2042 (ppc_spr_cmpf, ppc_spr_cmpg, ppc_spr_cmph, ppc_spr_lctrl1)
2043 (ppc_spr_lctrl2, ppc_spr_ictrl, ppc_spr_bar, ppc_spr_vrsave)
2044 (ppc_spr_sprg0, ppc_spr_sprg1, ppc_spr_sprg2, ppc_spr_sprg3)
2045 (ppc_spr_ear, ppc_spr_tbl, ppc_spr_tbu, ppc_spr_pvr)
2046 (ppc_spr_spefscr, ppc_spr_ibat0u, ppc_spr_ibat0l, ppc_spr_ibat1u)
2047 (ppc_spr_ibat1l, ppc_spr_ibat2u, ppc_spr_ibat2l, ppc_spr_ibat3u)
2048 (ppc_spr_ibat3l, ppc_spr_dbat0u, ppc_spr_dbat0l, ppc_spr_dbat1u)
2049 (ppc_spr_dbat1l, ppc_spr_dbat2u, ppc_spr_dbat2l, ppc_spr_dbat3u)
2050 (ppc_spr_dbat3l, ppc_spr_ic_cst, ppc_spr_ic_adr, ppc_spr_ic_dat)
2051 (ppc_spr_dc_cst, ppc_spr_dc_adr, ppc_spr_dc_dat, ppc_spr_dpdr)
2052 (ppc_spr_dpir, ppc_spr_immr, ppc_spr_mi_ctr, ppc_spr_mi_ap)
2053 (ppc_spr_mi_epn, ppc_spr_mi_twc, ppc_spr_mi_rpn, ppc_spr_mi_cam)
2054 (ppc_spr_mi_ram0, ppc_spr_mi_ram1, ppc_spr_md_ctr, ppc_spr_m_casid)
2055 (ppc_spr_md_ap, ppc_spr_md_epn, ppc_spr_md_twb, ppc_spr_md_twc)
2056 (ppc_spr_md_rpn, ppc_spr_m_tw, ppc_spr_md_dbcam, ppc_spr_md_dbram0)
2057 (ppc_spr_md_dbram1, ppc_spr_ummcr0, ppc_spr_upmc1, ppc_spr_upmc2)
2058 (ppc_spr_usia, ppc_spr_ummcr1, ppc_spr_upmc3, ppc_spr_upmc4)
2059 (ppc_spr_zpr, ppc_spr_pid, ppc_spr_mmcr0, ppc_spr_pmc1)
2060 (ppc_spr_sgr, ppc_spr_pmc2, ppc_spr_dcwr, ppc_spr_sia)
2061 (ppc_spr_mmcr1, ppc_spr_pmc3, ppc_spr_pmc4, ppc_spr_sda)
2062 (ppc_spr_tbhu, ppc_spr_tblu, ppc_spr_dmiss, ppc_spr_dcmp)
2063 (ppc_spr_hash1, ppc_spr_hash2, ppc_spr_icdbdr, ppc_spr_imiss)
2064 (ppc_spr_esr, ppc_spr_icmp, ppc_spr_dear, ppc_spr_rpa)
2065 (ppc_spr_evpr, ppc_spr_cdbcr, ppc_spr_tsr, ppc_spr_602_tcr)
2066 (ppc_spr_403_tcr, ppc_spr_ibr, ppc_spr_pit, ppc_spr_esasrr)
2067 (ppc_spr_tbhi, ppc_spr_tblo, ppc_spr_srr2, ppc_spr_sebr)
2068 (ppc_spr_srr3, ppc_spr_ser, ppc_spr_hid0, ppc_spr_dbsr)
2069 (ppc_spr_hid1, ppc_spr_iabr, ppc_spr_dbcr, ppc_spr_iac1)
2070 (ppc_spr_dabr, ppc_spr_iac2, ppc_spr_dac1, ppc_spr_dac2)
2071 (ppc_spr_l2cr, ppc_spr_dccr, ppc_spr_ictc, ppc_spr_iccr)
2072 (ppc_spr_thrm1, ppc_spr_pbl1, ppc_spr_thrm2, ppc_spr_pbu1)
2073 (ppc_spr_thrm3, ppc_spr_pbl2, ppc_spr_fpecr, ppc_spr_lt)
2074 (ppc_spr_pir, ppc_spr_pbu2): New enum constants for PowerPC
2075 special-purpose register numbers.
2077 * rs6000-tdep.c (registers_860): Correct register name. (No PPC
2078 manual mentions 'md_twb', but many mention 'm_twb', and at that
2079 point in the register list.)
2081 2004-07-14 Andrew Cagney <cagney@gnu.org>
2083 * utils.c (internal_warning_problem): Fix typo, "internal-warning"
2084 instead of "internal-error".
2086 2004-07-10 Joel Brobecker <brobecker@gnat.com>
2088 * hppa-hpux-tdep.c: Fix a compilation failure due to a comment
2089 that was inserted inside a comment.
2091 2004-07-10 Randolph Chung <tausq@debian.org>
2093 * hppa-hpux-tdep.c (hppa_hpux_som_find_global_pointer): New
2095 (hppa_hpux_push_dummy_code): New function.
2096 (hppa_hpux_init_abi): Set push_dummy_code and call_dummy_location.
2097 Set find_global_pointer method.
2099 2004-07-10 Mark Kettenis <kettenis@gnu.org>
2101 * NEWS: Mention BSD libkvm interface.
2103 2004-07-10 Michael Snyder <msnyder@redhat.com>
2105 * symfile.c (generic_load): Comment typo.
2106 * stack.c (get_selected_block): Ditto.
2107 * regcache.c (regcache_cooked_read): Ditto.
2108 * monitor.c (monitor_debug): Ditto.
2109 * mips-tdep.c (mips_read_pc): Ditto.
2110 * i386-linux-nat.c (ps_get_thread_area): Ditto.
2111 * gdb_mbuild.sh: Ditto.
2112 * gdbarch.sh: Ditto.
2115 2004-07-09 Paul N. Hilfinger <Hilfinger@gnat.com>
2117 * ada-tasks.c: Remove file.
2119 Remove ARI problems:
2121 * ada-exp.y (write_var_from_sym): Reformat to put operator at
2124 * ada-lang.c (MAX_OF_SIZE): Rename max_of_size.
2126 Add comment concerning MAX_OF_TYPE and MIN_OF_TYPE.
2127 (MIN_OF_SIZE): Rename min_of_size. Add comment.
2128 (UMAX_OF_SIZE): Renmae umax_of_size. Add comment.
2129 (UMIN_OF_SIZE): Remove.
2130 (max_of_type): New function to replace orphan macro in gdbtypes.h
2131 (min_of_type): Ditto.
2132 (discrete_type_high_bound): Use max_of_type.
2133 (discrete_type_low_bound): Use min_of_type.
2134 (possible_user_operator_p): Move operator to beginning of line.
2135 (ada_is_variant_part): Ditto.
2136 (ensure_lval): Rewrite to avoid deprecated operations.
2137 (ada_finish_decode_line_1): Use gdbarch_convert_from_func_ptr_addr
2138 rather than adding DEPRECATED_FUNCTION_START_OFFSET.
2139 (ada_enum_name): Remove assignments in 'if' statements.
2140 (build_ada_types): Add gdbarch parameter.
2141 (_initialize_ada_language): Replace deprecated_register_gdbarch_swap
2142 with gdbarch_data_register_post_init.
2143 Use add_setshow_uinteger_cmd rather than add_set_cmd and
2146 * ada-valprint.c (inspect_it): Remove declaration.
2147 (repeat_count_threshold): Remove declaration.
2148 (ada_print_floating): Remove assignments in 'if' statements.
2149 (print_str): Move operator to beginning of line.
2151 2004-07-08 Jim Blandy <jimb@redhat.com>
2153 * rs6000-tdep.c (registers_powerpc_nofp): Unused; deleted.
2155 2004-07-08 Bob Rossi <bob@brasko.net>
2157 * symtab.c (lookup_symtab): check return value of symtab_to_fullname
2159 2004-07-06 Jeff Johnston <jjohnstn@redhat.com>
2161 * language.h (struct_language_defn): Add new function pointer:
2162 la_class_name_from_physname. Also add new prototype for
2163 language_class_name_from_physname.
2164 * language.c (language_class_name_from_physname): New function.
2165 (unk_lang_class_name): Ditto.
2166 (unknown_language_defn, auto_language_defn): Change
2167 to add unk_lang_class_name function pointer for
2168 la_class_name_from_physname.
2169 (local_language_defn): Ditto.
2170 * dwarf2read.c (guess_structure_name): Change to call
2171 language_class_name_from_physname.
2172 (determine_class_name): Ditto.
2173 * cp-support.c (class_name_from_physname): Renamed.
2174 (cp_class_name_from_physname): New name of function.
2175 * cp-support.h: Ditto.
2176 * c-lang.c (c_language_defn): Change to add NULL
2177 for class_name_from_physname function pointer.
2178 (cplus_language_defn): Change to add cp_class_name_from_physname.
2179 * jv-lang.c (java_class_name_physname): New function.
2180 (java_find_last_component): New static routine.
2181 (java_language_defn): Add java_class_name_from_physname pointer.
2182 * ada-lang.c (ada_language_defn): Change to add NULL
2183 for class_name_from_physname function pointer.
2184 * f-lang.c (f_language_defn): Ditto.
2185 * m2-lang.c (m2_language_defn): Ditto.
2186 * objc-lang.c (objc_language_defn): Ditto.
2187 * p-lang.c (pascal_language_defn): Ditto.
2188 * scm-lang.c (scm_language_defn): Ditto.
2190 2004-07-06 Andrew Cagney <cagney@gnu.org>
2192 Patch from Bart Robinson.
2193 * corelow.c (core_open): Add variable "flags", or in O_LARGEFILE.
2194 (O_LARGEFILE): Define to 0, if not defined.
2196 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2198 * m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,
2199 <machine/pcb.h> and "bsd-kvm.h".
2200 (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined.
2201 (m68kbsd_supply_pcb): New function.
2202 (_initialize_m68kbsd_nat): New prototype and function.
2203 * Makefile.in (m68kbsd-nat.o): Update dependencies.
2204 * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
2205 (LOADLIBES): New variable.
2206 * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o.
2207 (LOADLIBES): New variable.
2209 * bsd-kvm.c (bsd_kvm_cmdlist): Remove unecessary initialization.
2211 2004-07-03 Mark Kettenis <kettenis@gnu.org>
2213 * bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" and
2215 (bsd_kvm_cmdlist): New variable.
2216 (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions.
2217 (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb"
2218 command and "kvm proc" command.
2219 * Makefile.in (bsd-kvm.o): Update dependencies.
2221 2004-07-02 Mark Kettenis <kettenis@gnu.org>
2223 * osabi.c: Update copyright year.
2224 (generic_elf_osabi_sniffer): Tweak comment. Look for OS-specific
2225 notes if EI_OSABI is set to ELFOSABI_HPUX.
2227 2004-07-01 Michael Snyder <msnyder@redhat.com>
2229 * win32-nat.c (core_dll_symbols_add): Re-indent a small section
2230 that seems to have gotten whacked out of line.
2232 2004-07-01 Mark Kettenis <kettenis@gnu.org>
2234 * dbxread.c (process_one_symbol) [PCC_SOL_BROKEN]: Remove dead
2237 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2239 * ada-lang.c (decode_packed_array): Minor change to comment.
2240 (ada_value_slice_ptr): New function.
2241 (ada_value_slice): New function.
2242 (ada_evaluate_subexp): Remove XVS-suffix code from subscripting
2243 test. Don't know why it is there.
2244 Change slice code to use ada_value_slice_ptr and ada_value_slice, and
2245 to avoid dereferencing huge arrays from which one is slicing.
2246 (empty_array): Correct to return an array rather than
2248 * ada-valprint.c (print_optional_low_bound): Don't print lower bound
2249 on empty arrays (let'em use 'FIRST instead).
2251 2004-07-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2253 Address complaints from gdb_ari.sh:
2255 * ada-exp.y: Include gdb_string.h rather than string.h.
2256 (convert_char_literal): Reformat declaration.
2257 * ada-lang.h: Include opaque struct declaration for struct frame_info.
2258 * ada-lex.l: Change use of free to xfree (the macro would do so
2259 anyway, but this is harmless).
2260 Include gdb_string.h rather than string.h.
2261 * ada-valprint.c (ada_val_print_stub): Change PTR => void*.
2263 * ada-lang.c (parse): Remove K&Rism in parameter list.
2264 (is_name_suffix): Correct Linux => GNU/Linux in comment.
2266 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2268 * dbxread.c (process_one_symbol) [SUN_FIXED_LBRAC_BUG]: Remove
2271 2004-06-30 Mark Kettenis <kettenis@gnu.org>
2273 * alphabsd-nat.c: Update copyright year.
2274 (getregs_supplies): Use ALPHA_PC_REGNUM instead of PC_REGNUM.
2276 2004-06-29 Joel Brobecker <brobecker@gnat.com>
2278 * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): New function.
2279 (i386_cygwin_in_solib_call_trampoline): New function.
2280 (i386_cygwin_init_abi): Initialize the in_solib_call_trampoline
2281 and skip_trampoline_code gdbarch methods.
2283 2004-06-29 Jim Blandy <jimb@redhat.com>
2285 * Makefile.in (gdb_callback_h): Renamed from callback_h to the
2286 name actually used in the dependency lists.
2288 2004-06-29 Randolph Chung <tausq@debian.org>
2290 * NEWS (New native configurations): Mention GNU/Linux/hppa.
2292 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2294 * win32-nat.c (child_pid_to_exec_file): New function.
2295 (init_child_ops): Add child_pid_to_exec_file as to_pid_to_exec_file
2298 2004-06-28 Andrew Cagney <cagney@gnu.org>
2300 * defs.h (xstrvprintf): Declare.
2301 * utils.c (xstrvprintf): New function.
2302 (internal_vproblem, xstrprintf, xasprintf)
2303 (vfprintf_maybe_filtered, vfprintf_unfiltered): Use xstrvprintf.
2304 * serial.c (serial_printf): Ditto.
2305 * complaints.c (vcomplaint): Ditto.
2307 2004-06-29 Corinna Vinschen <vinschen@redhat.com>
2309 * infcmd.c (attach_command): Move call to target_terminal_inferior
2310 behind loading symbol table.
2312 2004-06-28 Andrew Cagney <cagney@gnu.org>
2314 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Revert 2004-06-24
2315 change - add back extern deprecated_ui_loop_hook declaration.
2317 2004-06-28 Andrew Cagney <cagney@gnu.org>
2319 * xcoffsolib.c (xcoff_solib_address): Replace xasprintf with
2321 * varobj.c (varobj_gen_name, create_child, c_name_of_child)
2322 (c_value_of_variable): Ditto.
2323 * utils.c (internal_vproblem): Ditto.
2324 * solib-aix5.c (build_so_list_from_mapfile): Ditto.
2325 * remote.c (add_packet_config_cmd): Ditto.
2326 * remote-rdp.c (rdp_set_command_line): Ditto.
2327 * regcache.c (regcache_dump): Ditto.
2328 * frv-tdep.c (new_variant, new_variant): Ditto.
2329 * fbsd-proc.c (child_pid_to_exec_file): Ditto.
2330 (fbsd_find_memory_regions): Ditto.
2331 * breakpoint.c (create_thread_event_breakpoint)
2332 (create_breakpoints): Ditto.
2333 * aix-thread.c (aix_thread_pid_to_str): Ditto.
2334 * ada-lang.c (is_package_name): Ditto. Also delete xmalloc call.
2336 2004-06-28 Joel Brobecker <brobecker@gnat.com>
2338 * ada-lang.c: Re-indent file, with some massaging to help indent
2339 a bit when the result is otherwise really too ugly.
2341 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2343 * frame.h (struct frame_id): Change bit field type of stack_addr_p,
2344 code_addr_p and special_addr_p to 'unsigned int'.
2346 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2348 * i386v4-nat.c: Update copyright year and tweak comment.
2349 (regmap): Remove trailing comma.
2350 (supply_gregset): Rename local variable i to regnum. Call
2351 regcache_raw_supply instead of supply_register.
2352 (fill_gregset): Rename argument regno to regnum. Call
2353 regcache_raw_collect instead of regcache_collect.
2355 2004-06-27 Ulrich Weigand <uweigand@de.ibm.com>
2357 * frame.h (struct frame_id): New fields stack_addr_p, code_addr_p
2359 (frame_id_build, frame_id_build_special): Update comments.
2360 (frame_id_build_wild): New prototype.
2361 * frame.c (frame_id_build, frame_id_build_special): Fill in new
2362 struct frame_id fields.
2363 (frame_id_build_wild): New function.
2364 (frame_id_eq, frame_id_inner): Use new struct frame_id fields.
2366 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2368 * config/djgpp/fnchange.lst: Add entries for hppabsd-nat.c and
2371 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2373 * ada-lang.c: Minor reformatting to conform to GNU coding standards.
2375 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2377 * ada-lang.c: Re-indent file.
2379 2004-06-27 Joel Brobecker <brobecker@gnat.com>
2381 * ada-lang.c (symtab_symbol_info): Remove unused declaration.
2382 (no_symtab_msg): Likewise.
2384 2004-06-27 Andreas Schwab <schwab@suse.de>
2386 * source.c: Fix whitespace.
2388 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2390 * configure.in: Include <sys/param.h> for td_pcb test.
2391 * configure: Regenerated.
2393 * i386nbsd-nat.c: New file.
2394 * Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c,
2395 i386obsd-nat.c and i386obsd-tdep.c.
2396 (i386nbsd-nat.o): New dependency.
2397 * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and
2399 (LOADLIBES): New variable.
2400 * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and
2402 (LOADLIBES): New variable.
2404 * config/i386/fbsd64.mh (NATDEPFILES): Add bsd-kvm.o.
2405 (LOADLIBES): New variable.
2407 * bsd-kvm.c (bsd_kvm_fetch_registers): Directly return after
2408 fetching from BSD_KVM_PADDR. Correctly lookup address for
2411 * amd64fbsd-nat.c: Include <sys/types.h, <machine/pcb.h> and
2413 (amd64fbsd_supply_pcb): New funcion.
2414 (_initialize_amd64fbsd_nat): Enable libkvm interface.
2416 2004-06-27 <david@streamline-computing.com>
2418 Partial fix for PR cli/1056.
2419 * valarith.c: Check for zero in division and remainder
2422 2004-06-27 Mark Kettenis <kettenis@gnu.org>
2424 * i387-tdep.c: Remove excessive whitespace.
2426 2004-06-26 Andrew Cagney <cagney@gnu.org>
2428 * gdb-events.sh (deprecated_set_gdb_event_hooks): Deprecated.
2429 * gdb-events.h, gdb-events.c: Re-generate.
2430 * tui/tui-hooks.c (tui_install_hooks): Update.
2431 (tui_remove_hooks): Update.
2432 * mi/mi-cmd-break.c (mi_cmd_break_insert): Update.
2434 2004-06-26 Mark Kettenis <kettenis@gnu.org>
2436 * amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".
2437 (gregset_t, fpregset_t): Remove typedefs.
2438 (REG_OFFSET): Rename argument.
2439 (amd64bsd_r_reg_offset): Rename from reg_offset.
2440 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
2442 (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead
2444 * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2446 * amd64-nat.c (amd64_supply_native_gregset): Fix comment.
2448 * vax-tdep.c: Tweak comment.
2450 Add OpenBSD/hppa support.
2451 * NEWS (New native configurations): Mention OpenBSD/hppa.
2452 * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh,
2453 config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New
2455 * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2456 (hppabsd-nat.o, hppabsd-tdep.c): New dependencies.
2457 * configure.host: Add hppa*-*-openbsd*.
2458 * configure.tgt: Add hppa*-*-openbsd*.
2460 2004-06-25 Andrew Cagney <cagney@gnu.org>
2462 * defs.h (deprecated_ui_loop_hook): Deprecated.
2463 * wince.c (child_wait): Update.
2464 * win32-nat.c (child_wait): Update.
2465 * v850ice.c (v850ice_wait): Update.
2466 * top.c (deprecated_ui_loop_hook): Update.
2468 * ser-unix.c (do_hardwire_readchar, do_hardwire_readchar)
2469 (do_unix_readchar): Update.
2470 * ser-tcp.c (net_open): Update.
2471 * remote-sim.c (gdb_os_poll_quit): Update.
2472 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Update.
2474 2004-06-24 Andrew Cagney <cagney@gnu.org>
2476 * defs.h (deprecated_pre_add_symbol_hook)
2477 (deprecated_post_add_symbol_hook): Deprecated.
2478 * symfile.c (symbol_file_add_with_addrs_or_offsets)
2479 (symbol_file_add_with_addrs_or_offsets): Update references.
2481 2004-06-24 Andrew Cagney <cagney@gnu.org>
2483 * defs.h (post_add_symbol_hook, pre_add_symbol_hook)
2484 (ui_loop_hook, selected_frame_level_changed_hook): Declare.
2485 * wince.c (ui_loop_hook): Delete extern declaration.
2486 * win32-nat.c (ui_loop_hook): Delete extern declaration..
2487 * v850ice.c (ui_loop_hook): Delete extern declaration..
2488 * ser-unix.c (ui_loop_hook): Delete extern declaration..
2489 * ser-tcp.c (ui_loop_hook): Delete extern declaration..
2490 * remote-sim.c (ui_loop_hook): Delete extern declaration..
2491 * rdi-share/ardi.c (angel_RDI_ExecuteOrStep): Delete extern.
2492 ui_loop_hook declaration.
2494 2004-06-24 Andrew Cagney <cagney@gnu.org>
2496 * objfiles.h (struct entry_info): Delete entry_func_lowpc and
2497 entry_func_highpc fields.
2498 * objfiles.c (init_entry_point_info): Do not clear
2499 entry_func_lowpc and entry_func_highpc.
2500 (objfile_relocate): Do not relocate entry_func_lowpc and
2502 * dwarfread.c (read_func_scope): Do not set entry_func_lowpc and
2504 * dwarf2read.c (read_func_scope): Do not set entry_func_lowpc and
2506 * blockframe.c (legacy_frame_chain_valid): Replace tests against
2507 entry_func_lowpc and entry_func_highpc with call to
2510 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2512 * sparc64-tdep.c (sparc64_store_arguments): Fix passing
2513 quad-precision floating point arguments in registers.
2515 2004-06-24 Mark Kettenis <kettenis@gnu.org>
2517 From Michael Mueller <m.mueller99@kay-mueller.de>:
2518 * sparc64-tdep.c (sparc64_frame_base_address): Take BIAS into
2521 2004-06-22 Jeff Johnston <jjohnstn@redhat.com>
2523 * infrun.c (handle_inferior_event): Initialize stopped_by_watchpoint
2525 * breakpoint.c (bpstat_stop_status): Move check for ignoring
2526 untriggered watchpoints to a separate if clause. Update function
2527 comment regarding STOPPED_BY_WATCHPOINT argument.
2529 2004-06-22 Jim Blandy <jimb@redhat.com>
2531 * gdbarch.sh: Doc fix.
2533 2004-06-21 Martin Hunt <hunt@redhat.com>
2534 Kevin Buettner <kevinb@redhat.com>
2536 * config/mips/tm-mips.h (SP_REGNUM): Delete define.
2537 * mips-tdep.h (MIPS_SP_REGNUM): Define.
2538 * mips-tdep.c (mips_gdbarch_init): Set SP_REGNUM via call
2539 to set_gdbarch_sp_regnum(). Use cooked register number.
2540 (SP_REGNUM): Replace all occurrences with MIPS_SP_REGNUM.
2542 2004-06-21 Andrew Cagney <cagney@gnu.org>
2544 * gdbarch.sh: When the macro field is empty, do not generate a
2545 macro definition. When the macro field is "=", generate the macro
2546 name from the upper-case function name.
2547 (NUM_REGS, NUM_PSEUDO_REGS, SP_REGNUM, PC_REGNUM, PS_REGNUM)
2548 (FP0_REGNUM, STAB_REG_TO_REGNUM, ECOFF_REG_TO_REGNUM)
2549 (DWARF_REG_TO_REGNUM, SDB_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM)
2550 (REGISTER_NAME, DEPRECATED_REGISTER_VIRTUAL_TYPE)
2551 (DEPRECATED_REGISTER_BYTES, DEPRECATED_REGISTER_BYTE)
2552 (DEPRECATED_REGISTER_RAW_SIZE, DEPRECATED_REGISTER_VIRTUAL_SIZE)
2553 (DEPRECATED_SAVE_DUMMY_FRAME_TOS, DEPRECATED_FP_REGNUM)
2554 (DEPRECATED_TARGET_READ_FP, DEPRECATED_PUSH_ARGUMENTS)
2555 (DEPRECATED_PUSH_RETURN_ADDRESS, DEPRECATED_DUMMY_WRITE_SP)
2556 (DEPRECATED_REGISTER_SIZE, CALL_DUMMY_LOCATION)
2557 (DEPRECATED_DO_REGISTERS_INFO, REGISTER_SIM_REGNO)
2558 (REGISTER_BYTES_OK, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER)
2559 (GET_LONGJMP_TARGET, DEPRECATED_INIT_FRAME_PC)
2560 (BELIEVE_PCC_PROMOTION, DEPRECATED_GET_SAVED_REGISTER)
2561 (CONVERT_REGISTER_P, REGISTER_TO_VALUE, VALUE_TO_REGISTER)
2562 (POINTER_TO_ADDRESS, ADDRESS_TO_POINTER, INTEGER_TO_ADDRESS)
2563 (DEPRECATED_POP_FRAME, DEPRECATED_STORE_STRUCT_RETURN)
2564 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE)
2565 (DEPRECATED_EXTRACT_RETURN_VALUE, DEPRECATED_STORE_RETURN_VALUE)
2566 (DEPRECATED_USE_STRUCT_CONVENTION)
2567 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
2568 (DEPRECATED_FRAME_INIT_SAVED_REGS)
2569 (DEPRECATED_INIT_EXTRA_FRAME_INFO, SKIP_PROLOGUE, INNER_THAN)
2570 (BREAKPOINT_FROM_PC, MEMORY_INSERT_BREAKPOINT)
2571 (MEMORY_REMOVE_BREAKPOINT, DECR_PC_AFTER_BREAK)
2572 (DEPRECATED_FUNCTION_START_OFFSET, FRAME_ARGS_SKIP)
2573 (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION, DEPRECATED_FRAME_CHAIN)
2574 (DEPRECATED_FRAME_CHAIN_VALID, DEPRECATED_FRAME_SAVED_PC)
2575 (DEPRECATED_FRAME_ARGS_ADDRESS, DEPRECATED_FRAME_LOCALS_ADDRESS)
2576 (DEPRECATED_SAVED_PC_AFTER_CALL, FRAME_NUM_ARGS)
2577 (DEPRECATED_STACK_ALIGN, DEPRECATED_REG_STRUCT_HAS_ADDR)
2578 (FRAME_RED_ZONE_SIZE, ADDR_BITS_REMOVE, SMASH_TEXT_ADDRESS)
2579 (SOFTWARE_SINGLE_STEP, SKIP_TRAMPOLINE_CODE)
2580 (IN_SOLIB_CALL_TRAMPOLINE, IN_SOLIB_RETURN_TRAMPOLINE)
2581 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL)
2582 (NAME_OF_MALLOC, CANNOT_STEP_BREAKPOINT)
2583 (HAVE_NONSTEPPABLE_WATCHPOINT, ADDRESS_CLASS_TYPE_FLAGS)
2584 (FETCH_POINTER_ARGUMENT): Replace the macro name with "=".
2586 2004-06-21 Andrew Cagney <cagney@gnu.org>
2588 * gdbarch.sh: For gdbarch_dump, print the "function" rather than
2589 macro name, and the function rather than macro value. Only wrap
2590 macro print statements in #ifdef. Move format logic to where it
2592 * gdbarch.c: Re-generate.
2594 * gdbarch.sh (read): Delete "print_p" and "description", add
2595 "garbage_at_eol". Check for non-empty garbage at end-of-line.
2596 Delete references to print_p.
2597 (TARGET_ARCHITECTURE): Delete print predicate.
2598 * gdbarch.c: Re-generate.
2600 * gdbarch.sh: Check that multi-arch methods do not provide a
2602 (register_type, unwind_dummy_id, push_dummy_call, push_dummy_code)
2603 (print_registers_info, print_float_info, print_vector_info)
2604 (adjust_breakpoint_address, remote_translate_xfer_address)
2605 (construct_inferior_arguments, skip_solib_resolver, unwind_pc)
2606 (address_class_type_flags_to_name, unwind_sp): Remove the macro
2607 name from the multi-arch definition.
2609 2004-06-20 Andrew Cagney <cagney@gnu.org>
2611 * gdbarch.sh: Sort by the function, instead of macro name.
2612 * gdbarch.c: Re-generate.
2614 2004-06-20 Andrew Cagney <cagney@gnu.org>
2616 * gdbarch.sh: Use the function, instead of macro name in
2617 errors and the log file.
2618 (return_value): Remove stray ":" in spec.
2620 * gdbarch.sh (RETURN_VALUE): Default to legacy_return_value.
2621 * gdbarch.h, gdbarch.c: Re-generate.
2622 * Makefile.in (arch-utils.o): Update dependencies.
2623 * values.c (using_struct_return): Move code calling
2624 USE_STRUCT_CONVENTION to legacy_return_value, simplify.
2625 * stack.c (return_command): Move code calling STORE_RETURN_VALUE
2626 to legacy_return_value, simplify.
2627 * infcmd.c (print_return_value): Move code calling
2628 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE
2629 to legacy_return_value, simplify.
2630 * infcall.c (call_function_by_hand): Move code calling
2631 EXTRACT_RETURN_VALUE to legacy_return_value, simplify.
2632 * arch-utils.c: Update copyright. Include "gdbcore.h".
2633 (legacy_return_value): New function.
2634 * arch-utils.h: Update copyright.
2635 (legacy_return_value): Declare.
2637 2004-06-20 Andrew Cagney <cagney@gnu.org>
2639 * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Deprecated.
2640 * gdbarch.h, gdbarch.c: Re-generate.
2641 * values.c (using_struct_return): Update call.
2642 * mcore-tdep.c: Update comment.
2643 * infcall.c (call_function_by_hand): Update comment.
2644 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2645 * arch-utils.h (always_use_struct_convention): Update.
2646 * v850-tdep.c (v850_gdbarch_init): Update.
2647 * sh64-tdep.c (sh64_gdbarch_init): Update.
2648 * sh-tdep.c (sh_gdbarch_init): Update.
2649 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2650 * mips-tdep.c (mips_gdbarch_init): Update.
2651 * mcore-tdep.c (mcore_gdbarch_init): Update.
2652 * m32r-tdep.c (m32r_gdbarch_init): Update.
2653 * ia64-tdep.c (ia64_gdbarch_init): Update.
2654 * h8300-tdep.c (h8300_gdbarch_init): Update.
2655 * frv-tdep.c (frv_gdbarch_init): Update.
2656 * cris-tdep.c (cris_gdbarch_init): Update.
2657 * arm-tdep.c (arm_gdbarch_init): Update.
2658 * alpha-tdep.c (alpha_gdbarch_init): Update.
2660 2004-06-18 Michael Chastain <mec.gnu@mindspring.com>
2662 * PROBLEMS: Add more specific information, and a work-around,
2665 2004-06-18 Andrew Cagney <cagney@gnu.org>
2667 * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Deprecated.
2668 * gdbarch.h, gdbarch.c: Re-generate.
2669 * ada-lang.c (ada_finish_decode_line_1): Update.
2670 * infrun.c (handle_inferior_event): Update.
2671 * infcall.c (find_function_addr): Update.
2672 * linespec.c (minsym_found): Update.
2673 * symtab.c (find_function_start_sal, skip_prologue_using_sal):
2675 * blockframe.c (legacy_frameless_look_for_prologue): Update.
2676 * cli/cli-cmds.c (disassemble_command): Update.
2677 * vax-tdep.c (vax_gdbarch_init): Update.
2679 2004-06-18 Mark Kettenis <kettenis@gnu.org>
2681 * i386-tdep.c (i386_collect_fpregset): Fix comment.
2683 2004-06-17 Andrew Cagney <cagney@gnu.org>
2685 GDB 6.1.1 released from the GDB 6.1 branch.
2686 * NEWS: Merge in 6.1.1 NEWS from 6.1 branch.
2689 2004-06-16 Daniel Jacobowitz <dan@debian.org>
2692 * dwarf2read.c (dwarf_decode_lines): Read the length of the extended
2693 operation as a uleb128. Found by Michael Coulter.
2695 2004-06-16 Paul N. Hilfinger <Hilfinger@gnat.com>
2697 * ada-tasks.c: Rename build_task_list to ada_build_task_list, and
2699 * ada-lang.h (task_control_block): declaration moved from ada-task.c
2700 to ada-lang.h; this is needed to be able to implement the kill command
2703 (task_entry): Ditto.
2705 (ada_build_task_list): Ditto.
2707 * ada-lang.c: Conditionalize routines and data structures related
2708 to breakpoints, exceptions, completion, and symbol caching on
2709 GNAT_GDB, since these are not yet used in the submitted public sources.
2710 (ada_main_name): Editorial: Move definition out of exception-related
2713 2004-06-15 Andrew Cagney <cagney@gnu.org>
2715 * mips-tdep.c (non_heuristic_proc_desc): Delete call to
2716 deprecated_pc_in_call_dummy.
2718 2004-06-15 Alan Modra <amodra@bigpond.net.au>
2720 * dsrec.c (load_srec, make_srec): Use bfd_get_section_size instead of
2721 bfd_get_section_size_before_reloc or _raw_size.
2722 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2723 * dwarf2read.c (dwarf2_locate_sections): Likewise.
2724 (dwarf2_read_section): Likewise.
2725 * elfread.c (elf_locate_sections): Likewise.
2726 * gcore.c (derive_heap_segment): Likewise.
2727 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
2728 * remote-e7000.c (e7000_load): Likewise.
2729 * remote-m32r-sdi.c (m32r_load): Likewise.
2730 * remote-mips.c (mips_load_srec): Likewise.
2731 (pmon_load_fast): Likewise.
2732 * remote.c (compare_sections_command): Likewise.
2733 * symfile.c (add_section_size_callback): Likewise.
2734 (load_section_callback): Likewise.
2735 (pc_in_unmapped_range): Likewise.
2736 (pc_in_mapped_range): Likewise.
2737 (sections_overlap): Likewise.
2738 (list_overlays_command): Likewise.
2739 (simple_overlay_update_1): Likewise.
2740 (simple_overlay_update): Likewise.
2741 * tracepoint.c (remote_set_transparent_ranges): Likewise.
2742 * win32-nat.c (core_section_load_dll_symbols): Likewise.
2744 2004-06-14 Randolph Chung <tausq@debian.org>
2746 * Makefile.in (hppa-hpux-tdep.o): Update dependency.
2747 * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make
2749 (hppa_hpux_inferior_created): New function.
2750 (hppa_hpux_init_abi): Register observer.
2751 * symfile.c (hp_cxx_exception_support_initialized)
2752 (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks.
2753 (symbol_file_add_main_1, symbol_file_clear): Likewise.
2755 2004-06-14 Randolph Chung <tausq@debian.org>
2757 * MAINTAINERS (Write After Approval): Alphabetize my entry
2760 2004-06-14 Andrew Cagney <cagney@gnu.org>
2762 * MAINTAINERS (testsuite): List Michael Chastain as the lead
2763 testsuite maintainer.
2765 2004-06-13 Andrew Cagney <cagney@gnu.org>
2767 * infcmd.c (print_return_value): Fix logic, allow
2768 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS when struct_return.
2770 * gdbarch.sh: For predicates, do not check GDB_MULTI_ARCH when
2771 defining any macros.
2772 * gdbarch.h: Re-generate.
2774 * gdbarch.sh: Delete "level" attribute. Only check for a macro
2775 redefinition when multi-arch greater than GDB_MULTI_ARCH_PARTIAL.
2776 * gdbarch.h: Re-generate.
2778 * values.c (generic_use_struct_convention): Don't check gcc_p.
2780 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE)
2781 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Delete.
2782 * gdbarch.h, gdbarch.c: Regenerate.
2783 * ns32k-tdep.h (NS32K_MAX_REGISTER_RAW_SIZE)
2784 (NS32K_MAX_REGISTER_VIRTUAL_SIZE): Delete macros.
2785 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2786 deprecated_max_register_raw_size and
2787 deprecated_max_register_virtual_size.
2788 * v850-tdep.c (v850_gdbarch_init): Ditto.
2789 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2790 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2791 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2792 * cris-tdep.c (cris_gdbarch_init): Ditto.
2794 * gdbarch.sh (RETURN_VALUE_ON_STACK): Delete method.
2795 * gdbarch.h, gdbarch.c: Re-generate.
2796 * m68hc11-tdep.c (m68hc11_return_value_on_stack): Delete function.
2797 (m68hc11_use_struct_convention): Delete function.
2798 (m68hc11_extract_struct_value_address): Delete function.
2799 (m68hc11_return_value): New function.
2800 (m68hc11_gdbarch_init): Instead of store_return_value,
2801 extract_return_value, return_value_on_stack,
2802 deprecated_extract_struct_value_address and use_struct_convention,
2804 * values.c (using_struct_return): Do not call
2805 RETURN_VALUE_ON_STACK.
2806 * arch-utils.h (generic_return_value_on_stack_not): Delete
2808 * arch-utils.c (generic_return_value_on_stack_not): Delete
2811 2004-06-12 Andrew Cagney <cagney@gnu.org>
2813 * values.c (register_value_being_returned): Delete function.
2814 * infcmd.c (legacy_return_value): Delete function.
2815 * infcall.c (call_function_by_hand): Inline
2816 "register_value_being_returned", simplify.
2817 * values.c (using_struct_return): Update comment, refer to
2818 print_return_value instead of register_value_being_returned.
2819 * infcmd.c (print_return_value): Inline calls to
2820 register_value_being_returned and legacy_return_value. Simplify.
2822 2004-06-11 Randolph Chung <tausq@debian.org>
2824 * somread.c (som_symtab_read): Exclude gcc local symbols.
2826 2004-06-11 Randolph Chung <tausq@debian.org>
2828 * infrun.c (handle_inferior_event): Handle the case when a
2829 trampoline ends up in the runtime resolver, and if the trampoline
2830 has no name. Rearrange the code so that all the trampoline
2831 processing happens before other step-out-of-range handling.
2833 2004-06-11 Martin Hunt <hunt@redhat.com>
2835 * mips-tdep.c (mips_gdbarch_init): Recognize vr4120
2838 2004-06-10 Andrew Cagney <cagney@gnu.org>
2840 * blockframe.c (legacy_inside_entry_func): Delete.
2841 (legacy_frame_chain_valid): Inline call to
2842 legacy_inside_entry_func, simplify.
2844 2004-06-10 Bob Rossi <bob@brasko.net>
2846 * dbxread.c (read_dbx_symtab): Set pst->dirname when known.
2847 * dwarf2read.c (partial_die_info): Add dirname field.
2848 (dwarf2_build_psymtabs_hard): Set pst->dirname when known.
2849 (read_partial_die): Save away DW_AT_comp_dir.
2850 * defs.h (symtab_to_filename): Removed.
2851 * source.c (find_and_open_source): Added.
2852 (open_source_file): Just calls find_and_open_source.
2853 (symtab_to_filename): Removed.
2854 (symtab_to_fullname, psymtab_to_fullname): Added.
2855 * source.h (psymtab_to_fullname,symtab_to_fullname): Added.
2856 * symtab.c (lookup_symtab): Call symtab_to_fullname instead of
2858 * symtab.h (partial_symtab): Add dirname field.
2859 * mi/mi-cmd-file.c (FILENAME,FULLNAME): Added.
2860 (mi_cmd_file_list_exec_source_file): Call new function
2861 symtab_to_fullname to find fullname.
2862 (mi_cmd_file_list_exec_source_files): Added.
2863 * mi/mi-cmds.c (mi_cmd_mi_cmds): Add -file-list-exec-source-files.
2864 * mi/mi-cmds.h (mi_cmd_file_list_exec_source_files): Added.
2866 2004-06-10 Andrew Cagney <cagney@gnu.org>
2868 * avr-tdep.c (avr_gdbarch_init): Do not set use_struct_convention
2869 to generic_use_struct_convention, the default value.
2871 * mn10300-tdep.c (mn10300_type_align): Call internal_error instead
2874 * ns32k-tdep.c (ns32k_push_arguments): New function.
2875 (ns32k_gdbarch_init): Set deprecated_push_arguments.
2876 * infcall.c (call_function_by_hand): Call error instead of
2877 legacy_push_arguments.
2878 * value.h (legacy_push_arguments): Delete declaration.
2879 * valops.c (legacy_push_arguments): Delete function.
2880 (value_push): Delete function.
2882 2004-06-10 Brian Ford <ford@vss.fsi.com>
2884 * coffread.c (coff_symfile_read): Prevent mixed debugging formats
2885 from corrupting/reinitializing the psymtab. Support DWARF 2 frame
2887 * dbxread.c (elfstab_build_psymtabs): Remove bogus comment.
2889 2004-06-10 Andrew Cagney <cagney@gnu.org>
2891 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Delete.
2892 * gdbarch.h, gdbarch.c: Re-generate.
2893 * frame.h (deprecated_pc_in_call_dummy): Delete "sp" and "fp"
2895 * dummy-frame.c (deprecated_pc_in_call_dummy): Update.
2896 * arm-tdep.c (arm_pc_is_thumb_dummy): Call
2897 deprecated_pc_in_call_dummy instead of
2898 DEPRECATED_PC_IN_CALL_DUMMY.
2899 (arm_skip_prologue): Ditto.
2900 * xstormy16-tdep.c (xstormy16_pop_frame, xstormy16_scan_prologue)
2901 (xstormy16_frame_saved_pc, xstormy16_frame_chain): Ditto.
2902 * v850-tdep.c (v850_find_callers_reg, v850_frame_chain)
2903 (v850_pop_frame, v850_frame_saved_pc, v850_frame_init_saved_regs):
2905 * sh64-tdep.c (sh64_frame_chain, sh64_get_saved_pr)
2906 (sh64_init_extra_frame_info, sh64_get_saved_register)
2907 (sh64_pop_frame): Ditto.
2908 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
2909 * mcore-tdep.c (mcore_find_callers_reg, mcore_frame_saved_pc)
2910 (mcore_pop_frame, mcore_init_extra_frame_info): Ditto.
2911 * h8300-tdep.c (h8300_frame_chain, h8300_frame_saved_pc)
2912 (h8300_pop_frame): Ditto.
2913 * blockframe.c (legacy_inside_entry_func)
2914 (legacy_frame_chain_valid): Ditto.
2915 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update call
2916 to deprecated_pc_in_call_dummy.
2918 2004-06-09 Andrew Cagney <cagney@gnu.org>
2920 * gdbarch.sh (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Do not
2921 provide a default value.
2922 (CONVERT_REGISTER_P): Default to generic_convert_register_p.
2923 * gdbarch.h, gdbarch.c: Re-generate.
2924 * arch-utils.c (generic_convert_register_p): Rename
2925 legacy_convert_register_p
2926 (legacy_register_to_value, legacy_value_to_register): Delete
2928 * arch-utils.h (generic_convert_register_p): Rename
2929 legacy_convert_register_p.
2930 (legacy_register_to_value, legacy_value_to_register): Delete
2933 * gdbarch.sh (DEPRECATED_REGISTER_CONVERT_TO_RAW)
2934 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL)
2935 (DEPRECATED_REGISTER_CONVERTIBLE): Delete.
2936 * gdbarch.h, gdbarch.c: Re-generate.
2937 * infcmd.c (default_print_registers_info): Simplify.
2938 * findvar.c (value_of_register): Simplify.
2939 * mi/mi-main.c (get_register): Simplify.
2940 * arch-utils.c (legacy_convert_register_p): Always return 0.
2941 (legacy_register_to_value, legacy_value_to_register): Always call
2944 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
2945 #ifdef CLEAR_INSN_CACHE code.
2946 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
2947 Delete #ifdef CLEAR_DEFERRED_STORES code.
2949 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
2951 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
2953 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
2955 * config/mips/mipsv4.mh: Delete file.
2957 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
2959 (hpread_adjust_stack_address): Delete declaration.
2961 2004-06-08 Andrew Cagney <cagney@gnu.org>
2963 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2964 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
2965 PTRACE_ATTACH / PTRACE_DETACH available call error.
2966 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
2967 * infttrace.c (update_thread_state_after_attach, attach, detach):
2968 Remove #ifdef wrappers.
2969 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
2970 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
2971 * config/nm-bsd.h (ATTACH_DETACH): Delete.
2972 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
2973 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
2974 * config/nm-linux.h (ATTACH_DETACH): Delete.
2975 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
2976 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
2977 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
2978 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
2979 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
2981 2004-06-08 Corinna Vinschen <vinschen@redhat.com>
2983 * configure.in: Set $configdir to the right OS specific value.
2984 Use value when setting $tcldir and $tkdir.
2985 * configure: Regenerate.
2987 2004-06-06 Paul Brook <paul@codesourcery.com>
2989 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
2992 2004-06-08 Paul N. Hilfinger <Hilfinger@gnat.com>
2994 * ada-lang.c (lookup_symbol_in_language): New function to allow
2995 re-use of another language's symbol lookup code. (Placed here
2996 temporarily while Ada support is being integrated into the public
2998 (restore_language): New auxiliary function for
2999 lookup_symbol_in_language.
3000 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
3001 temporarily while Ada support is being integrated into the public
3004 2004-06-08 Alexandre Oliva <aoliva@redhat.com>
3006 * Makefile.in (check//%): New.
3008 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
3009 (mn10300_store_return_value): Rewrite.
3010 (mn10300_type_align): New.
3011 (mn10300_use_struct_convention): Rewrite.
3012 (mn10300_return_value): New, using all of the above.
3013 (mn10300_pop_frame_regular): Add saved_regs_size.
3014 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
3016 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
3017 regs if PC is on movm.
3019 2004-06-07 Jim Blandy <jimb@redhat.com>
3021 Add native Linux support for the PowerPC E500.
3022 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
3023 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
3024 all architectures except the E500.
3025 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
3027 (struct gdb_evrregset_t): New type.
3028 (have_ptrace_getsetevrregs): New variable.
3029 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
3030 fetch_spe_registers): New functions.
3031 (fetch_register): Call fetch_spe_register as appropriate.
3032 Assert that we're only passed raw register numbers.
3033 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
3034 Don't fetch gprs if they're pseudoregisters.
3035 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
3036 store_spe_registers): New functions.
3037 (store_register): Call store_spe_register as appropriate.
3038 Assert that we're only passed raw register numbers.
3039 (store_ppc_registers): Call store_spe_registers as appropriate.
3040 Don't store gprs if they're pseudoregisters.
3042 2004-06-07 Jeff Johnston <jjohnstn@redhat.com>
3044 * thread-db.c (thread_get_info_callback): Fill in the thread_info
3045 struct if one exists, even if we are dealing with a zombie thread.
3047 2004-06-07 Andrew Cagney <cagney@gnu.org>
3049 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
3050 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
3051 Rename PC_REQUIRES_RUN_BEFORE_USE.
3052 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
3055 2004-06-07 Randolph Chung <tausq@debian.org>
3057 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
3058 unwinding after sp has been saved to the stack but before the end
3059 of the prologue, and after the fp has been modified but before it has
3060 been saved to the stack.
3061 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
3062 Remove superfluous definitions.
3063 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
3065 2004-06-07 Guy Martin <gmsoft@gentoo.org>
3067 Committed by Randolph Chung.
3068 * hppa-linux-nat.c: Include the correct version of the header file
3069 depending on the kernel version.
3071 2004-06-06 Randolph Chung <tausq@debian.org>
3073 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
3074 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
3076 2004-06-06 Randolph Chung <tausq@debian.org>
3078 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
3079 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
3080 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
3081 * hppa-tdep.c (hppa_symbol_address): New function definition.
3082 * hppa-tdep.h (hppa_symbol_address): New function declaration.
3084 2004-06-06 Randolph Chung <tausq@debian.org>
3086 * hppa-tdep.h (struct value): Forward declaration.
3087 (gdbarch_tdep): Define tdep find_global_pointer method.
3088 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
3089 associated with the function we are trying to call, and write it
3091 (hppa32_convert_from_funct_ptr_addr): New function.
3092 (hppa_find_global_pointer): New function.
3093 (hppa_gdbarch_init): Set default find_global_pointer method; set
3094 convert_from_func_ptr_addr method.
3095 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
3096 (hppa_linux_init_abi): Set find_global_pointer method.
3097 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
3099 2004-06-06 Randolph Chung <tausq@debian.org>
3101 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
3102 to struct value *function.
3103 * gdbarch.c: Regenerate.
3104 * gdbarch.h: Likewise.
3105 * infcall.c (call_function_by_hand): Pass entire function value
3108 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
3109 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
3110 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
3111 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
3112 * arm-tdep.c (arm_push_dummy_call): Likewise.
3113 * avr-tdep.c (avr_push_dummy_call): Likewise.
3114 * cris-tdep.c (cris_push_dummy_call): Likewise.
3115 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
3116 * frv-tdep.c (frv_push_dummy_call): Likewise.
3117 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
3118 * hppa-tdep.c (hppa32_push_dummy_call)
3119 (hppa64_push_dummy_call): Likewise.
3120 * i386-tdep.c (i386_push_dummy_call): Likewise.
3121 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
3122 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
3123 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
3124 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
3125 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
3126 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
3127 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
3128 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
3129 (ppc64_sysv_abi_push_dummy_call): Likewise.
3130 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
3131 (ppc64_sysv_abi_push_dummy_call): Likewise.
3132 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
3133 * s390-tdep.c (s390_push_dummy_call): Likewise.
3134 * sh-tdep.c (sh_push_dummy_call_fpu)
3135 (sh_push_dummy_call_nofpu): Likewise.
3136 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
3137 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
3138 * vax-tdep.c (vax_push_dummy_call): Likewise.
3140 2004-06-04 Jim Blandy <jimb@redhat.com>
3142 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
3143 gdbarch argument to register_size.
3145 * rs6000-tdep.c (rs6000_store_return_value): Use
3146 regcache_cooked_write_part instead of
3147 deprecated_write_register_bytes.
3148 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
3149 not gdbarch_deprecated_store_return_value.
3151 * ppc-linux-nat.c (store_register, fetch_register): Remove
3152 incorrect assertions. Simplify and generalize handling of
3153 transfers whose sizes are not multiples of, or less than, sizeof
3156 2004-06-04 Jeff Johnston <jjohnstn@redhat.com>
3158 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
3159 as a new thread event.
3160 * thread-db.c (thread_get_info_callback): If the thread is a
3161 zombie, return TD_THR_ZOMBIE.
3162 (thread_from_lwp): If thread_get_info_callback returns
3163 TD_THR_ZOMBIE, check if the thread is still on the thread list
3164 and return a -1 ptid if not found.
3165 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
3166 change the status to TARGET_WAITKIND_SPURIOUS.
3168 2004-06-03 Corinna Vinschen <vinschen@redhat.com>
3170 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
3171 double values in little endian mode.
3173 2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
3175 Committed by Andrew Cagney.
3176 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
3177 after last enum constant to avoid error from IBM C
3180 2004-06-02 Jim Blandy <jimb@redhat.com>
3182 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
3183 to 'message', and make it local to the lone block that uses it.
3185 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
3187 2004-06-02 Paul N. Hilfinger <hilfinger@gnat.com>
3189 * ada-exp.y: Update copyright notice.
3192 Replace REGNAME, LAST, INTERNAL_VARIABLE with
3193 SPECIAL_VARIABLE and unify the treatment of these cases.
3195 (write_attribute_call0): Remove.
3196 (write_attribute_call1): Remove.
3197 (write_attribute_calln): Remove.
3198 (save_qualifier): Add missing semicolon.
3200 (simple_exp,exp): Decomment (i.e., reactivate) code that was
3201 temporarily disabled to allow compilation with FSF head version.
3203 (simple_exp syntax): Remove use of OP_ADA_ATTRIBUTE and
3204 use individual operators (OP_*) for all attributes.
3205 (exp syntax): Use write_int.
3206 Handle STRING literals with OP_STRING.
3207 (variable syntax): Add limit parameter to calls to
3208 write_object_renaming.
3210 (temp_parse_space): New definition to hold entities that need
3211 only live until the next call to ada_parse.
3212 (string_to_operator): Rename fields of ada_opname_table entries.
3214 (write_var_from_sym): Record block.
3215 (write_var_from_name): Minor reformatting.
3216 Make sure saved name is properly encoded in the case of multiple
3217 matches, and set its language to Ada.
3219 Modify to indicate unresolved name as symbol in the UNRESOLVED
3220 namespace, allocated in temp_parse_space.
3221 (write_int): New function.
3223 (write_object_renaming): Add max_depth parameter to limit
3224 chains of object renamings.
3225 Handle case where root of renaming expression is itself a renaming.
3226 Use temp_parse_space for temporary name buffer.
3227 Handle renamings to dereferenced pointers (___XEXA suffices).
3229 (ada_parse, yyerror, string_to_operator,
3230 write_var_from_sym, write_var_from_name, write_attribute_call0,
3231 write_attribute_call1, write_attribute_calln,
3232 write_object_renaming): Protoize.
3234 (_initialize_ada_exp): New function.
3236 * ada-lang.c: Update copyright notice.
3237 General terminology change to conform to GNAT compiler usage:
3238 mangle => encode, demangle => decode
3239 Include gdb_obstack.h.
3248 (ADA_RETAIN_DOTS): Make sure this is defined.
3249 (TRUNCATION_TOWARDS_ZERO): Define.
3250 (struct string_vector): Define.
3251 (unresolved_names): Remove definition.
3252 (xnew_string_vector): New function.
3253 (string_vector_append): New function.
3254 (extract_string): Make static.
3255 (ada_unqualified_name): New function.
3256 (add_angle_brackets): New function.
3257 (function_name_from_pc): New function.
3258 (place_on_stack): Rename to ensure_lval.
3260 (ensure_lval): Renamed from place_on_stack.
3261 Make identity on lvals.
3263 (is_nonfunction): New interface.
3264 Only symbols in LOC_CONST class can be enumerals.
3265 (fill_in_ada_prototype): Remove; now independent of language.
3266 (add_defn_to_vec): Add obstack and symtab arguments.
3267 Use obstack to hold collected definitions.
3268 (num_defns_collected): New function.
3269 (defns_collected): New function.
3270 (ada_resolve_subexp): Rename to resolve_subexp.
3271 (resolve_subexp): Renamed from ada_resolve_subexp.
3272 (ada_op_name): Return non-const result.
3273 (ada_decoded_op_name): Renamed from ada_op_name, now used for
3276 (to_fixed_array_type): Add declaration.
3277 (coerce_unspec_val_to_type): Remove offset parameter.
3278 (find_sal_from_funcs_and_line): New interface.
3279 (find_line_in_linetable): Ditto.
3281 (all_sals_for_line): Rename to ada_sals_for_line and make
3283 Add new parameter. When set, do not ask the user to choose the
3284 instance, but use the first one found instead.
3285 Use given line number in returned sals.
3287 Skip the prologue if funfirstline is set.
3288 Correct for memory leak when 0 lines found.
3290 (value_pos_atr): Use pos_atr.
3291 (pos_atr): New function.
3292 (standard_lookup): Add block parameter.
3294 (makeTimeStart): Remove declaration and uses.
3295 (makeTimeStop): Remove declaration and uses.
3297 (ada_completer_word_break_characters): Allow for VMS.
3298 (ADA_MAIN_PROGRAM_SYMBOL_NAME): Make into constant.
3299 (raise_sym_name): New constant.
3300 (raise_unhandled_sym_name): New constant.
3301 (raise_assert_sym_name): New constant.
3302 (process_raise_exception_name): New constant.
3303 (longest_exception_template): New constant.
3304 (warning_limit): New variable to limit warnings during expression
3306 (warnings_issued): New variable to keep track of warnings issued.
3307 (known_runtime_file_name_patterns): New constant.
3308 (known_auxiliary_function_name_patterns): New constant.
3309 (symbol_list_obstack): New variable.
3311 (field_name_match,is_suffix,is_suppressed_name,ada_encode,
3312 ada_decode,ada_match_name,encoded_ordered_before,equiv_types,
3313 lesseq_defined_than,is_nondebugging_type,is_name_suffix,wild_match,
3314 find_sal_from_funcs_and_line, ada_breakpoint_rewrite,
3315 ada_is_tagged_type, ada_is_parent_field, ada_is_wrapper_field,
3316 ada_variant_discrim_name, field_alignment, dynamic_template_type,
3317 ada_is_character_type, ada_is_aligner_type, ada_is_vax_floating_type):
3318 Replace use of deprecated STREQ and STREQN macros by calls to strncmp
3321 (ada_get_field_index): New function.
3322 (lim_warning): New function.
3323 (ada_translate_error_message): New function.
3324 (MAX_OF_SIZE): New function.
3325 (MIN_OF_SIZE): New function.
3326 (UMAX_OF_SIZE): New function.
3327 (UMIN_OF_SIZE): New function.
3328 (discrete_type_high_bound): New function.
3329 (discrete_type_low_bound): New function.
3330 (base_type): New function.
3331 (do_command): Remove.
3333 (ada_update_initial_language): Use language_ada, not language_unknown.
3334 (ada_encode): Renamed from ada_mangle.
3335 Obey ADA_RETAIN_DOTS.
3336 (ada_decode): Renamed from ada_demangle.
3337 Update coding conventions.
3338 (decoded_names_store): New hash table.
3339 (ada_decode_symbol): New function.
3340 (ada_la_decode): New function.
3342 (modify_general_field): Correct computations of offset and bit
3344 (desc_base_type): Handle ref types, too.
3345 (ada_is_direct_array_type): New function.
3347 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3348 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3349 (ada_is_bogus_array_descriptor,ada_type_of_array,
3350 ada_coerce_to_simple_array_ptr,ada_coerce_to_simple_array,
3351 ada_type_match,convert_actual,ada_evaluate_subexp): Use renamed
3352 ada_is_array_descriptor_type.
3354 (ada_coerce_to_simple_array_type): Fix incorrect value freeing.
3355 (ada_is_packed_array_type): Handle pointers or
3356 references to packed arrays as well.
3357 (packed_array_type): Uncomment use of TYPE_FLAG_FIXED_INSTANCE.
3358 (decode_packed_array_type): Search for the packed array type
3359 symbol in the currently selected block and associated
3361 Use lookup_symbol again.
3363 (decode_packed_array): Handle pointers and references.
3364 Update call to coerce_unspec_val_to_type.
3365 (decode_packed_array_type,value_subscript_packed): Limit warnings.
3366 (ada_value_primitive_packed_val): Improve comment.
3368 (ada_index_type): Substitute int type for "undefined".
3369 (ada_index_type,ada_array_bound_from_type,ada_array_bound,
3370 ada_array_langth, ada_is_string_type): Use renamed
3371 ada_is_simple_array_type.
3372 (empty_array): New function.
3374 (ada_resolve): Rename to resolve.
3375 (resolve): Make static.
3376 Call renamed resolve_subexp.
3378 (ada_resolve_subexp): Rename to resolve_subexp.
3379 (resolve_subexp): Update comment.
3380 Decomment disabled code.
3381 Add LOC_COMPUTED* cases.
3382 Modify to use temporary struct symbols (marked as being in
3383 UNDEF_NAMESPACE) to indicate unresolved names, instead of
3384 OP_UNRESOLVED_VALUE.
3385 Remove OP_ATTRIBUTE; use individual opcodes for attributes.
3388 Use SYMBOL_PRINT_NAME instead of ada_demangle.
3389 Use new ada_lookup_symbol_list interface.
3390 Use new ada_resolve_function interface.
3391 Remove OP_TYPE case.
3393 (ada_args_match): Idiot proof against null actuals.
3394 Use intermediate variables to clarify.
3395 (ada_resolve_function): Update comment and interface.
3396 (mangled_ordered_before): Rename to encoded_ordered_before and
3398 (sort_choices): Update comment and interface.
3399 Use SYMBOL_LINKAGE_NAME in place of SYMBOL_NAME.
3400 (user_select_syms): New interface.
3401 Use new sort_choices interface.
3402 Use SYMBOL_PRINT_NAME rather than SYMBOL_SOURCE_NAME.
3403 (possible_user_operator_p): Idiot-proof against null values.
3404 (ada_simple_renamed_entity): Don't make cleanup; rely on
3405 caller to free result string.
3406 Remove const from return type.
3407 (make_array_descriptor): Rename uses of place_on_stack to
3409 Make sure that arrays are on stack.
3411 (HASH_SIZE): Define.
3412 (struct cache_entry): Define.
3413 (cache_space): Define.
3415 (clear_ada_sym_cache): New function.
3416 (find_entry): New function.
3417 (lookup_cached_symbol): New function.
3418 (defn_vector_size): Define.
3419 (cache_symbol): New function.
3420 (defn_symbols): Remove.
3422 (standard_lookup): Use lookup_symbol_in_language to get effect of
3426 (symbol_completion_match): New function.
3427 (symbol_completion_add): New function.
3428 (ada_make_symbol_completion_list): New function.
3430 (ada_lookup_partial_symbol,ada_lookup_simple_minsym,
3431 add_symbols_from_enclosing_procs,remove_extra_symbols): Replace
3432 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3433 (symtab_for_sym): Handle LOC_COMPUTED, LOC_COMPUTED_ARG.
3435 (ada_lookup_simple_minsym): New function.
3436 (ada_lookup_minimal_symbol): Use ada_lookup_simple_minsym.
3438 (add_symbols_from_enclosing_procs): New interface.
3439 Conditionalize more helpfully.
3440 Don't bother if program isn't running.
3441 Use new interface to get_frame_block.
3442 Limit number of levels searched with MAX_LEXICAL_LEVELS, just in case.
3444 (remove_extra_symbols): New interface.
3445 (xget_renaming_scope): New function.
3446 (is_package_name): New function.
3447 (renaming_is_visible): New function.
3448 (remove_out_of_scope_renamings): New function.
3450 (ada_lookup_symbol_list): New interface.
3451 Properly reinitialize the symbol list obstack.
3452 Don't call add_symbols_from_enclosing_procs if we start from a
3453 static or global block.
3454 Use new interfaces to ada_add_block_symbols, add_defn_to_vec,
3455 add_symbols_from_enclosing_procs.
3456 Add symtab data to cached entries.
3457 Handle symbols prefixed with
3458 "standard__" specially; strip prefix and don't look in local symbols.
3459 Do not include out of scope renaming symbols in list of
3461 Add const to block parameter.
3462 Move check for non-local, non-global symbols earlier.
3463 Remove timing stuff.
3464 (ada_lookup_symbol): New interface.
3465 Find symtab as well.
3466 (ada_lookup_symbol_nonlocal): New function.
3468 (is_name_suffix): Enhance suffix detection to recognize
3469 an optional "__[:digit:]+" before any "\.[:digit:]+" suffix.
3470 (is_dot_digits_suffix): New function.
3471 (wild_match): Ignore ".[:digit:]*" suffixes during matches.
3473 (ada_add_block_symbols): New interface. Use obstack to return results
3474 in a vector of struct ada_symbol_infos. Add symtab argument.
3475 Use new interface to add_defn_to_vec.
3476 Remove calls to fill_in_ada_prototype.
3477 Use BLOCK_BUCKETS, BLOCK_BUCKET.
3479 (ada_finish_decode_line_1): Add const qualification to local to fix
3481 Start looking in static block for functions to avoid attempts
3482 to search frame chain for up-level variables.
3483 Adapt to new ada_sals_for_line interface.
3484 Use new interfaces to ada_lookup_symbol_list and user_select_syms.
3485 Handle quoting of the function name inside the spec string.
3486 Skip prologue when funfirstline is set and update the
3487 function documentation to that effect.
3489 (debug_print_lines, debug_print_block, debug_print_blocks,
3490 debug_print_symtab): Remove.
3492 (ada_main_name): New function.
3493 (ada_exception_breakpoint_type): New function.
3494 (is_known_support_routine): New function.
3495 (ada_find_printable_frame): Renamed from find_printable_frame and made
3497 Remove level parameter.
3498 Use new interface to select_frame.
3500 (begin_command): Remove.
3501 (ada_adjust_exception_stop): New function.
3502 (ada_print_exception_stop): New function.
3503 (exception_name_from_cond): New function.
3504 (ada_report_exception_break): Replace disabled code with
3505 conditionalization on GNAT_GDB.
3506 Get the exception name from the condition string.
3507 Remove and move functionality into new functions
3508 ada_print_exception_breakpoint_task and
3509 ada_print_exception_breakpoint_nontask.
3510 (error_breakpoint_runtime_sym_not_found): New function.
3511 (is_runtime_sym_defined): New function.
3512 (ada_breakpoint_rewrite): Uncomment suppressed code.
3513 Use symbolic error-message and runtime-symbol names.
3514 Surround runtime symbol names in quotes.
3515 Allow non-specific breakpoints on exceptions and assertions before
3518 (ada_is_tagged_type): Add parameter.
3519 (ada_is_tag_type): New function.
3520 (ada_tag_type): Use new ada_lookup_struct_elt_type interface.
3521 (ada_variant_discrim_type): Ditto.
3522 (value_tag_from_contents_and_address): New function.
3523 (type_from_tag): New function.
3524 (struct tag_args): New structure used to communicate with
3526 (ada_tag_name_1): New function.
3527 (ada_tag_name): New function.
3529 (ada_scan_number): Update comment.
3530 (find_struct_field): New function.
3531 (ada_search_struct_field): Make static.
3532 (ada_value_struct_elt): New version that returns references when
3533 given pointers or references to structs.
3534 (ada_lookup_struct_elt_type): Add 'refok' parameter.
3535 (ada_which_variant_applies): Use new ada_lookup_struct_elt_type
3537 (ada_value_ind): Use new ada_to_fixed_value interface.
3538 (ada_coerce_ref): Ditto.
3539 (field_offset): Remove.
3541 (ada_find_any_symbol): New function, extracted from ada_find_any_type.
3542 (ada_find_renaming_symbol): New function.
3543 (ada_prefer_type): Prefer named types over unnamed ones.
3544 (variant_field_index): New function.
3545 (contains_variant_part): Removed: subsumed by variant_field_index.
3546 (ada_template_to_fixed_record_type): New function, mostly from
3547 template_to_fixed_record_type.
3548 (template_to_fixed_record_type):
3549 Do not scan the type fields beyond the last one; prevents a
3551 Handle case where variant field is listed BEFORE discriminant it
3553 Fix calculation of record length when bit length is
3554 not evenly divisible by char length.
3555 Move code to ada_template_to_fixed_record_type and call it.
3557 (template_to_static_fixed_type): Revise comment.
3558 Modify to work on ordinary record types as well as templates,
3559 so as to handle fields that use ___XVE or ___XVU encodings.
3560 (to_record_with_fixed_variant_part): Fill out comment.
3561 Initialize C++ stuff in right type.
3562 Allow case where DVAL is null.
3563 Handle case where variant field is not last.
3564 Fix typo concerning record length.
3565 (to_fixed_record_type): Decomment disabled code.
3566 (to_fixed_record_type): Use variant_field_index instead of
3567 contains_variant_part.
3568 (to_fixed_variant_branch_type): Ditto.
3569 (to_fixed_array_type): Decomment disabled code.
3570 (ada_to_fixed_type): Convert tagged types to the specific type.
3571 Deactivate the size-check for array types in order to avoid
3572 some false size alarms.
3573 (to_static_fixed_type): Decomment disabled code.
3574 Modify to call template_to_static_fixed_type
3575 on ordinary structs, not just ___XVE- and ___XVU-encoded fields.
3576 (ada_to_fixed_value_create): Renamed version of old ada_to_fixed_value.
3577 Remove valaddr argument, as it is never really used.
3578 (ada_to_fixed_value): Change interface to act on single struct value*
3580 (adjust_pc_past_prologue): New function.
3581 (ada_attribute_name): Modify to take enum exp_opcode argument.
3583 (ada_enum_name): Recognize new homonym-distinguishing convention.
3584 Adjust local variable's type to remove compiler warning.
3585 Fix a small problem in the part that unqualifies the enumeration name.
3586 (ada_value_binop): New function.
3587 (ada_value_equal): New function.
3589 (ada_evaluate_subexp): Use new ada_lookup_struct_elt_type interface.
3590 Don't give error message when not doing normal evaluation
3591 and a tagged type doesn't seem to contain a structure member.
3592 Give error message for packed arrays.
3593 For indexing arrays, handle pointers to packed arrays correctly.
3594 Handle case of 'first and 'last attributes of bare integral type
3595 without encoded subtype info.
3596 Remove some unnecessary casts.
3597 Fix uninitialized value of type in computing 'first, 'last, or 'length
3599 Add BINOP_EQUAL and BINOP_NOTEQUAL cases.
3600 Remove binop_user_defined_p tests and value_x_binop and value_x_unop
3602 Attributes are now exp_opcode values.
3603 Correct treatment of 'modulus.
3604 Better error message for taking 'length of wrong kind of type;
3606 Change EVAL_NORMAL to noside for consistency.
3607 Use ada_value_binop for DIV, MOD, REM.
3608 Make special case out of array of length 0, since an argument
3609 of 0 upsets some platforms' malloc.
3610 Use OP_STRING instead of OP_ARRAY.
3611 For slice, add check that we have an array type before extracting
3612 a slice out of it. Avoids a SEGV.
3613 When evaluating an array slice, if the array type is a reference to
3614 an aligner type, then replace the aligner type by the actual type.
3615 Decomment disabled code.
3616 Remove some dead code.
3617 Use temporary struct symbols (marked as being in UNDEF_NAMESPACE)
3618 to indicate unresolved names, instead of OP_UNRESOLVED_VALUE.
3619 Rename BINOP_MBR to BINOP_IN_BOUNDS, TERNOP_MBR to TERNOP_IN_RANGE,
3620 and UNOP_MBR to UNOP_IN_RANGE.
3621 If an array type has a parallel ___XVE type, then use it.
3622 Turn arrays into pointers for lvalue arrays.
3623 Change TERNOP_SLICE code to work even when bounds are unknown, ignoring
3624 bounds error and handle 0-length slices.
3626 When selecting fields, apply ada_to_fixed_value (because the fields
3627 might have ___XVU or ___XVE encodings even if not dynamic.)
3628 Use ada_to_fixed_value_create and new ada_to_fixed_value interface.
3629 (ada_is_system_address_type): New function.
3631 (get_var_value): Use new interface to ada_lookup_symbol_list.
3632 (get_int_var_value): New interface.
3633 (to_fixed_range_type): Allow unknown bound, with warning.
3634 (ada_is_modular_type): Decomment disabled code.
3635 (ADA_OPERATORS): New definition.
3636 (ada_operator_length): New function.
3637 (ada_expr_op_name): New function.
3638 (ada_forward_operator_length): New function.
3639 (ada_dump_subexp_body): New function.
3640 (ada_print_subexp): New function.
3641 (ada_exp_descriptor): New constant.
3642 (ada_op_print_tab): Add 'size. Remove FIXMEs.
3643 (ada_language_defn): Add ada_exp_descriptor entry.
3644 Change ada_parse => parse.
3645 Add post-parser entry.
3646 Use ada-specific non-local symbol lookup.
3647 Don't use C-style arrays.
3648 String lower-bound is 1.
3649 Decomment disabled code.
3650 (parse): New function.
3651 New fields ada_translate_error_message, ada_lookup_symbol,
3652 ada_lookup_minimal_symbol.
3654 * ada-lang.h: Update copyright dates.
3655 Replace the mangle/demangle terminology throughout by the
3656 more appropriate encode/decode one.
3657 Include breakpoint.h.
3658 Forward declare struct partial_symbol, struct block.
3659 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Define.
3660 (EXTRACT_ADDRESS): Remove.
3661 (EXTRACT_INT): Remove.
3662 (ADA_KNOWN_AUXILIARY_FUNCTION_NAME_PATTERNS): Define.
3663 (MAX_ENCLOSING_FRAME_LEVELS): Define.
3664 (MAX_RENAMING_CHAIN_LENGTH): Define.
3665 (struct ada_opname_map): mangled => decoded, demangled=>encoded.
3667 (enum task_states): Remove.
3668 ada_task_states: Remove.
3669 (fat_string): Remove.
3670 (struct entry_call): Remove.
3671 (struct task_fields): Remove.
3672 (struct task_entry): Remove.
3674 (struct ada_symbol_info): Define.
3675 (enum ada_attribute): Remove.
3676 (enum ada_operator): Define.
3678 (ada_get_field_index): Declare.
3679 (ada_coerce_to_simple_array): Rename to ada_coerce_to_simple_array_ptr.
3680 (ada_is_simple_array): Rename to ada_is_simple_array_type.
3681 (ada_is_array_descriptor): Rename to ada_is_array_descriptor_type.
3682 (ada_lookup_symbol_list): New interface.
3683 (ada_decode_symbol): Declare.
3684 (ada_decode): Declare.
3685 (ada_lookup_symbol): New interface.
3686 (ada_update_initial_language): Declare.
3687 (ada_lookup_simple_minsym): Declare.
3688 (user_select_syms): New interface.
3689 (ada_sals_for_line): Declare.
3690 (ada_is_tagged_type): New interface.
3691 (ada_tag_name): Declare.
3692 (ada_lookup_struct_elt_type): Remove declaration.
3693 (ada_search_struct_field): Remove declaration.
3694 (ada_attribute_name): New interface.
3695 (ada_is_system_address_type): Declare.
3696 (ada_to_fixed_value): Remove declaration.
3697 (ada_template_to_fixed_record_type_1): Declare.
3698 (get_int_var_value): New interface.
3699 (ada_find_any_symbol): Declare.
3700 (ada_find_renaming_symbol): Declare.
3701 (ada_mangle): Rename to ada_encode.
3702 (ada_simple_renamed_entity): Remove const.
3703 (ada_main_name): Declare.
3704 (get_current_task): Rename to ada_get_current_task.
3705 (get_entry_number): Remove declaration.
3706 (ada_report_exception_break): Remove declaration.
3707 (ada_print_exception_breakpoint_nontask): Declare.
3708 (ada_print_exception_breakpoint_task): Declare.
3709 (ada_find_printable_frame): Declare.
3711 * ada-lex.l: Update copyright notices.
3712 Use xmalloc and xfree instead of malloc and free.
3713 Use new interface to name_lookup.
3714 Use new interface to
3715 ada_mangle=>ada_encode.
3716 Redo handling of '$...' variable to parallel current treatment
3718 (resize_tempbuf, canonicalizeNumeral, is_digit_in_base,
3719 digit_to_int, strtoulst, processInt, processReal, processId,
3720 block_lookup, name_lookup, find_dot_all, subseqMatch, processAttribute,
3723 (processInt): Use cast to remove harmless warning.
3724 (processReal): Modify to get rid of compiler warning on scan formats.
3726 (processId): Replace xmalloc with obstack_alloc for name and remove
3727 call to ada_name_string_cleanup.
3728 Remove obsolete disabled code.
3729 (name_lookup): Ditto.
3731 Use obsavestring on temp_parse_space instead of savestring
3732 on name, and remove call to ada_name_string_cleanup.
3733 Free string returned from ada_simple_renamed_entity.
3734 Use new interface to ada_lookup_symbol_list.
3735 Decomment disabled code.
3736 Treat LOC_COMPUTED and LOC_COMPUTED_ARG symbols as variables,
3738 When a type name lookup succeeds as a result of
3739 lookup_primitive_typename, check for regular type entry that has not
3741 Limit length of chain of renamed symbols we are willing to follow.
3742 Do not break names beginning with "standard__" into segments.
3743 (block_lookup): Use new interface to ada_lookup_symbol_list.
3745 * ada-typeprint.c: Update copyright notice.
3746 (demangled_type_name): Rename to decoded_type_name.
3747 (ada_typedef_print): Use SYMBOL_PRINT_NAME.
3748 (print_range_bound): Correct handling of negative
3749 bounds that make the index type looked unsigned under STABS.
3750 (print_dynamic_range_bound): Use new interface to get_int_var_value.
3751 (print_range_type_named): Use the builtin int type if no type
3752 corresponding to the given type name could be found.
3753 (print_array_type): ada_is_simple_array => ada_is_simple_array_type.
3754 Add some bullet-proofing.
3755 (print_variant_clauses): Allow for variant branches with ___XVU
3756 encodings that are not dynamic fields.
3757 Use new interface to ada_is_tagged_type.
3758 (print_record_type): Allow for fields with ___XVE encodings that
3759 are not dynamic fields.
3760 Use new interface to ada_is_tagged_type.
3761 (ada_print_type): ada_is_array_descriptor =>
3762 ada_is_array_descriptor_type.
3764 * ada-valprint.c: Update copyright notice.
3765 Include gdb_string.h
3767 (ui_memcpy): New function.
3768 (ada_print_floating): New function.
3769 (ada_print_str): Order arguments correctly.
3770 Correct handling of empty arrays and arrays of 0-length items.
3771 ada_is_array_descriptor => ada_is_array_descriptor_type
3772 Print values of type System.Address in hexadecimal format.
3773 Use ada_print_floating to print floating-point numbers in Ada format.
3774 Print class tag values with type names.
3775 No longer print the address of reference values. Avoids
3776 a potential confusion.
3777 (ada_value_print): Stop printing the object type for reference
3778 values, but preserve that behavior for access types. Avoids
3779 a potential confusion.
3780 Simplify one conditional expression, as the first part is now
3782 ada_is_array_descriptor => ada_is_array_descriptor_type
3783 Add check for arrays for null records, and print them by hand.
3785 2004-06-01 Jim Blandy <jimb@redhat.com>
3787 * ppc-tdep.h: Delete unused 'regoff' member.
3788 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
3790 2004-06-01 Michael Chastain <mec.gnu@mindspring.com>
3793 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
3794 (hpread_read_struct_type): Likewise.
3796 2004-06-01 Andrew Cagney <cagney@gnu.org>
3798 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
3799 instead of xasprintf.
3800 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
3801 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
3802 (mi_cmd_data_list_register_names)
3803 (mi_cmd_data_list_changed_registers)
3804 (mi_cmd_data_list_register_values)
3805 (get_register, mi_cmd_data_write_register_values)
3806 (mi_cmd_data_write_register_values)
3807 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
3808 (mi_cmd_target_download, mi_cmd_target_select)
3809 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
3810 (mi_execute_cli_command, mi_execute_async_cli_command)
3811 (mi_execute_async_cli_command): Ditto.
3812 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
3813 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
3815 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
3816 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
3817 error_last_message instead of mi_error_last_message.
3818 * mi/mi-main.c (mi_error_last_message): Delete function.
3820 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
3821 "invalid number of columns" error. Delete redundant "out of
3824 2004-05-31 Mark Kettenis <kettenis@gnu.org>
3826 * i386bsd-nat.c: Don't include <sys/procfs.h>.
3827 (gregset_t, fpregset_t): Remove typedefs.
3828 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
3829 (REG_OFFSET): Rename argument.
3830 (i386bsd_r_reg_offset): Rename from reg_offset.
3831 (REG_ADDR): Remove macro.
3832 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
3834 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
3835 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
3836 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
3837 instead of supply_gregset.
3838 (store_inferior_registers): Use `struct reg' and `struct fpreg'
3839 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
3840 instead of fill_gregset.
3841 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
3843 * i386bsd-nat.c: Don't include "gregset.h".
3844 (supply_gregset, fill_gregset): Make static.
3845 (supply_fpregset, fill_fpregset): Remove.
3846 * Makefile.in (i386bsd-nat.o): Update dependencies.
3848 2004-05-30 Mark Kettenis <kettenis@gnu.org>
3850 * fbsd-proc.c: Include "regcache.h", "regset.h" and
3851 "gdb_assert.h". Con't include "gregset.h".
3852 (fbsd_make_corefile_notes): Use regset-based core file support
3853 instead off fill_gregset and fill_fpregset.
3854 * Makefile.in (fbsd-proc.o): Update dependencies.
3856 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
3858 (m88k_frame_prev_register): Simplify code a bit.
3860 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
3861 (amd64_collect_fpregset): New function.
3862 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
3864 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
3866 * i386-tdep.c (i386_supply_gregset): Adjust comment.
3867 (i386_collect_gregset): New function.
3868 (i386_supply_fpregset): Adjust comment.
3869 (i386_collect_fpregset): New function.
3870 (i386_regset_from_core_section): Use i386_collect_gregset and
3871 i386_collect_fpregset.
3873 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
3874 handle VALUEP being null.
3876 * regset.h (collect_regset_ftype): Unconstify fourth argument.
3878 2004-05-29 Mark Kettenis <kettenis@gnu.org>
3880 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
3882 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
3883 assembler in OpenBSD 3.5-current.
3884 (amd64obsd_sigcontext_addr): Likewise.
3886 2004-05-28 Jim Blandy <jimb@redhat.com>
3888 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
3889 register set, so our regcache isn't declared "legacy" and our E500
3890 pseudoregister read and write functions aren't ignored.
3891 (rs6000_register_byte, rs6000_register_raw_size,
3892 rs6000_register_virtual_type, rs6000_register_convertible,
3893 rs6000_register_convert_to_virtual,
3894 rs6000_register_convert_to_raw): Deleted.
3895 (rs6000_register_type, rs6000_convert_register_p,
3896 rs6000_register_to_value, rs6000_value_to_register): New
3898 (rs6000_gdbarch_init): Don't register
3899 gdbarch_deprecated_register_size,
3900 gdbarch_deprecated_register_bytes,
3901 gdbarch_deprecated_register_byte,
3902 gdbarch_deprecated_register_raw_size,
3903 gdbarch_deprecated_register_virtual_type,
3904 gdbarch_deprecated_register_convertible,
3905 gdbarch_deprecated_register_convert_to_virtual, or
3906 gdbarch_deprecated_register_convert_to_raw methods. Instead,
3907 register gdbarch_register_type, gdbarch_convert_register_p,
3908 gdbarch_register_to_value, and gdbarch_value_to_register methods.
3910 2004-05-26 Jim Blandy <jimb@redhat.com>
3912 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
3913 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
3914 functions, updated to match the register numberings used in GCC.
3915 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
3916 rs6000_dwarf2_reg_to_regnum as register number conversions
3917 functions for STABS and Dwarf2.
3919 2004-05-26 Randolph Chung <tausq@debian.org>
3921 * infttrace.h (target_waitkind): Forward declare type instead of pulling
3924 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3926 * NEWS: Document new "start" command.
3928 2004-05-25 Randolph Chung <tausq@debian.org>
3930 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
3933 2004-05-25 Randolph Chung <tausq@debian.org>
3935 * hppa-hpux-tdep.c (offsetof): Define.
3936 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
3937 (hppa32_hpux_frame_base_before_sigtramp)
3938 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
3939 (hppa64_hpux_frame_saved_pc_in_sigtramp)
3940 (hppa64_hpux_frame_base_before_sigtramp)
3941 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
3943 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
3944 (hppa_hpux_sigtramp_frame_unwind_cache)
3945 (hppa_hpux_sigtramp_frame_this_id)
3946 (hppa_hpux_sigtramp_frame_prev_register)
3947 (hppa_hpux_sigtramp_frame_unwind)
3948 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
3949 (hppa_hpux_init_abi): Register sigtramp unwinder.
3950 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
3952 2004-05-25 Randolph Chung <tausq@debian.org>
3954 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
3955 and multiple stack unwinds.
3956 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
3958 2004-05-25 Andrew Cagney <cagney@gnu.org>
3960 * symfile.h (symbol_file_add_from_memory): Delete declaration.
3961 * symfile-mem.h: Delete file.
3962 * symfile-mem.c: Do not include "symfile-mem.h".
3963 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
3964 "struct bfd_section". When an error do not bother returning NULL.
3965 (add_symbol_file_from_memory_command): Use "struct bfd" and
3966 "struct bfd_section".
3967 * Makefile.in (symfile_mem_h): Delete.
3968 (symfile-mem.o): Update dependencies.
3970 2004-05-25 Nick Roberts <nickrob@gnu.org>
3972 * gdb-mi.el: New file.
3974 2004-05-25 Andrew Cagney <cagney@gnu.org>
3976 * inftarg.c: Include "observer.h".
3977 (child_attach, child_create_inferior): Notify inferior_created.
3978 * corelow.c: Include "observer.h".
3979 (core_open): Notify inferior_created.
3980 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
3982 2004-05-25 Andrew Cagney <cagney@gnu.org>
3984 * target.h (struct target_ops): Add from_tty to
3986 (target_create_inferior, find_default_create_inferior): Update.
3987 * infcmd.c (run_command): Update.
3988 * wince.c (child_create_inferior): Update.
3989 * win32-nat.c (child_create_inferior): Update.
3990 * uw-thread.c (uw_thread_create_inferior): Update.
3991 * thread-db.c (thread_db_create_inferior): Update.
3992 * target.c (debug_to_create_inferior)
3993 (find_default_create_inferior): Update.
3994 (maybe_kill_then_create_inferior): Update.
3995 * sol-thread.c (sol_thread_create_inferior): Update.
3996 * remote.c (extended_remote_async_create_inferior)
3997 (extended_remote_create_inferior): Update.
3998 * remote-vx.c (vx_create_inferior): Update.
3999 * remote-st.c (st2000_create_inferior): Update.
4000 * remote-sim.c (gdbsim_create_inferior): Update.
4001 * remote-sds.c (sds_create_inferior): Update.
4002 * remote-rdp.c (remote_rdp_create_inferior): Update.
4003 * remote-rdi.c (arm_rdi_create_inferior): Update.
4004 * remote-m32r-sdi.c (m32r_create_inferior): Update.
4005 * remote-e7000.c (e7000_create_inferior): Update.
4006 * procfs.c (procfs_create_inferior): Update.
4007 * ocd.c (ocd_create_inferior): Update.
4008 * ocd.h (ocd_create_inferior): Update.
4009 * nto-procfs.c (procfs_create_inferior): Update.
4010 * monitor.c (monitor_create_inferior): Update.
4011 * lin-lwp.c (lin_lwp_create_inferior): Update.
4012 * inftarg.c (child_create_inferior): Update.
4013 * hpux-thread.c (hpux_thread_create_inferior): Update.
4014 * gnu-nat.c (gnu_create_inferior): Update.
4016 2004-05-25 Andrew Cagney <cagney@gnu.com>
4018 * MAINTAINERS: Update e-mail address.
4020 2004-05-24 Randolph Chung <tausq@debian.org>
4022 * thread.c (info_threads_command, thread_apply_all_command)
4023 (thread_apply_command, thread_command, do_captured_thread_select):
4024 Remove HPUXHPPA-specific code.
4026 2004-05-24 Randolph Chung <tausq@debian.org>
4028 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
4030 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
4033 2004-05-24 Joel Brobecker <brobecker@gnat.com>
4035 * infcmd.c (kill_if_already_running): New function, extracted
4037 (run_command): Replace extracted code by call to
4038 kill_if_already_running().
4039 (start_command): New function.
4040 (_initialize_infcmd): Add "start" command.
4042 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4044 Add OpenBSD/m88k support.
4045 * NEWS (New native configurations): Mention OpenBSD/m88k.
4046 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
4047 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
4048 * Makefile.in (m88k_tdep_h): New variable.
4049 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
4050 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
4051 * configure.host: Add m88*-*-openbsd*.
4052 * configure.tgt: Add m88*-*-openbsd*.
4054 2004-05-24 Jim Blandy <jimb@redhat.com>
4056 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
4059 2004-05-24 Kevin Buettner <kevinb@redhat.com>
4061 * symtab.c (fixup_section): Search section table when lookup by
4064 2004-05-24 Randolph Chung <tausq@debian.org>
4066 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
4069 2004-05-24 Mark Kettenis <kettenis@gnu.org>
4071 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
4072 register number in regcache_raw_collect call.
4073 (m68kbsd_collect_fpregset): Likewise.
4074 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
4076 * regset.h (struct regset): Add back `regset' member.
4078 2004-05-23 Mark Kettenis <kettenis@gnu.org>
4080 * configure.in: Check for td_pcb in `struct thread'.
4081 * configure, config.in: Regenerated.
4083 * dpx2-nat.c: Remove file.
4084 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
4085 (dpx2-nat.o): Remove dependencies.
4087 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
4088 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
4089 (amd64obsd_supply_pcb): New function.
4090 (_initialize_amd64obsd_nat): Enable libkvm interface.
4091 * Makefile.in (amd64obsd-nat.o): Update dependencies.
4092 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
4093 (LOADLIBES): New variable.
4095 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
4096 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
4097 (sparc32nbsd_supply_pcb): New function.
4098 (_initialize_sparcnbsd_nat): Enable libkvm interface.
4099 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
4100 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
4101 (LOADLIBES): New variable.
4103 2004-05-22 Mark Kettenis <kettenis@gnu.org>
4105 * bsd-kvm.c, bsd-kvm.h: New files.
4106 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
4108 (i386fbsd_supply_pcb): New function.
4109 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
4110 (i386fbsd-nat.o): Update dependencies.
4111 (bsd_kvm_h): New variable.
4112 (bsd-kvm.o): New dependency.
4113 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
4114 (LOADLIBES): New variable.
4116 * regset.c: Tweak comment.
4117 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
4119 * regset.h: Update copyright year.
4120 (struct regset): Remove `descr' member, add `gdbarch' member.
4121 (regset_alloc): Adjust prototype and comment.
4122 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
4123 (i386_supply_fpregset): Likewise.
4124 (i386_regset_from_core_section): Update call to regset_alloc.
4125 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
4127 (i386obsd_aout_regset_from_core_section): Update call to
4129 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
4131 (i386nbsd_aout_regset_from_core_section): Update call to
4133 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
4135 (amd64_regset_from_core_section): Update call to regset_alloc.
4136 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
4138 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
4139 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
4140 &sparc32nbsd_gregset in sparc32_supply_gregset call.
4141 (sparc32nbsd_init_abi): Update call to regset_alloc.
4142 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
4143 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
4144 (sparc64obsd_init_abi): Update call to regset_alloc.
4145 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
4146 &sparc64nbsd_gregset in sparc64_supply_gregset call.
4147 (sparc64nbsd_init_abi): Update call to regset_alloc.
4148 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
4149 &sparc64fbsd_gregset in sparc64_supply_gregset call.
4150 (sparc64fbsd_init_abi): Update call to regset_alloc.
4152 2004-05-22 Jim Blandy <jimb@redhat.com>
4154 * ppc-tdep.h (spe_register_p): New declaration.
4155 (struct gdbarch_tdep): New members: ppc_acc_regnum and
4157 * rs6000-tdep.c (spe_register_p): New function.
4158 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
4160 (rs6000_gdbarch_init): Initialize the new members of the tdep
4163 2004-05-21 Jim Blandy <jimb@redhat.com>
4165 * ppc-linux-nat.c (fetch_register): Move code back to be next
4166 to the comment that describes it. (Moved code, instead of
4167 comment, for symmetry with store_register.)
4169 Allocate regset structures in the gdbarch's obstack, not using
4171 * regset.c (regset_alloc): Renamed from regset_xmalloc.
4172 Add 'arch' argument. Allocate the regset on arch's obstack, not
4174 * regset.h (regset_alloc): Update declaration.
4175 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
4177 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4178 * i386-tdep.c (i386_regset_from_core_section): Same.
4179 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4180 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4181 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4182 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4183 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4184 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4186 2004-05-21 Joel Brobecker <brobecker@gnat.com>
4188 * config/djgpp/fnchange.lst: Undo previous change, was useless.
4190 2004-05-21 Jim Blandy <jimb@redhat.com>
4192 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
4193 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
4195 2004-05-20 Jim Blandy <jimb@redhat.com>
4197 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
4199 2004-05-20 Mark Kettenis <kettenis@gnu.org>
4201 * regset.h: Make prototype const-correct.
4202 * regset.c (regset_xmalloc): Make const-correct.
4204 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
4206 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
4207 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
4208 (symbol_search_name): Declare.
4210 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
4211 (iter_name_next_hashed): Ditto.
4212 (iter_name_next_linear): Ditto.
4213 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
4215 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
4216 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
4217 (symbol_search_name): New function.
4219 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
4221 * minsyms.c (build_minimal_symbol_hash_tables): Change
4222 test for adding to demangled hash table to check for difference
4223 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
4225 2004-05-19 Jim Blandy <jimb@redhat.com>
4227 Use a constructor function to create regset structures.
4228 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
4229 (struct regset): Use supply_regset_ftype. Add new
4230 'collect_regset' member.
4231 (regset_xmalloc): New declaration.
4232 * regset.c: New file.
4233 * am64-tdep.c (amd64_regset_from_core_section): Use
4234 regset_xmalloc to construct regset structures.
4235 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
4236 * i386-tdep.c (i386_regset_from_core_section): Same.
4237 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
4238 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
4239 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
4240 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
4241 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
4242 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
4243 * Makefile.in (COMMON_OBS): Add regset.o.
4244 (regset.o): New rule.
4246 2004-05-19 Joel Brobecker <brobecker@gnat.com>
4248 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
4249 and pthread_cond_wait.c.
4251 2004-05-18 Jim Blandy <jimb@redhat.com>
4253 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
4254 before the mach-specific switch, and then let the individual cases
4255 override the defaults, rather than leaving them uninitialized
4256 until the switch and then setting them in each case.
4258 2004-05-18 Randolph Chung <tausq@debian.org>
4260 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
4261 millicode functions.
4263 2004-05-18 Randolph Chung <tausq@debian.org>
4265 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
4266 references to dld_flags_buffer consistent.
4268 2004-05-18 Randolph Chung <tausq@debian.org>
4270 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
4271 it for unwinding the stack.
4273 2004-05-18 Randolph Chung <tausq@debian.org>
4275 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
4276 Undefine these so we can overide them using gdbarch.
4278 2004-05-18 Randolph Chung <tausq@debian.org>
4280 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
4281 handling for 64-bit HPUX (elf).
4283 2004-05-18 Daniel Jacobowitz <dan@debian.org>
4285 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
4287 * amd64-tdep.c (amd64_skip_prologue): Likewise.
4288 * ia64-tdep.c (examine_prologue): Likewise.
4289 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
4290 * v850-tdep.c (v850_fix_call_dummy): Likewise.
4292 2004-05-18 Mark Kettenis <kettenis@gnu.org>
4294 * vax-tdep.c (vax_return_value): Implement
4295 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4297 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4299 * vax-tdep.c (vax_return_value): Fix typo.
4301 2004-05-17 Andrew Cagney <cagney@redhat.com>
4303 * MAINTAINERS: Mark Salter was also responsible for
4306 * NEWS: Mention signal fixes.
4308 2004-05-17 Randolph Chung <tausq@debian.org>
4310 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
4311 check to see if we are unwinding an export stub. Export stubs clobber
4312 the %rp in the call path and stores the original rp in a stack slot.
4314 2004-05-17 Jim Blandy <jimb@redhat.com>
4316 * MAINTAINERS: Update address for J.T. Conklin.
4318 2004-05-17 Randolph Chung <tausq@debian.org>
4320 * hppa-tdep.c: Remove superfluous #include's.
4321 * Makefile.in (hppa-tdep.o): Update dependencies.
4323 2004-05-17 Randolph Chung <tausq@debian.org>
4325 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
4326 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
4327 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
4328 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
4329 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
4330 Remove static function declarations.
4332 2004-05-17 Mark Kettenis <kettenis@gnu.org>
4334 * alphabsd-nat.c: Update copyright year.
4335 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
4337 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
4340 * m68k-tdep.c (m68k_svr4_return_value): Implement
4341 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4343 2004-05-16 Mark Kettenis <kettenis@gnu.org>
4345 * sol-thread.c Update copyright year. Fix various coding
4346 standards violations. Tweak a few comments.
4347 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
4350 2004-05-15 Randolph Chung <tausq@debian.org>
4352 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
4353 as pointer instead of array reference since HPUX compiler does
4354 not accept unsized array arguments.
4355 * somsolib.c (dld_flags_buffer): Use constant array size.
4357 2004-05-15 Mark Kettenis <kettenis@gnu.org>
4359 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
4360 offset with decimal offset.
4361 (amd64obsd_sigcontext_addr): Return correct address for entire
4364 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
4365 instead of get_frame_base.
4367 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
4368 (fill_gregset): Use regcache_raw_collect.
4370 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
4373 * config/sparc/tm-nbsd64.h: Remove file.
4374 * config/tm-sunos.h: Remove file.
4376 2004-05-15 Joel Brobecker <brobecker@gnat.com>
4378 * rs6000-tdep.c (store_param_on_stack_p): New function,
4379 an improved version of some code extracted from skip_prologue().
4380 (skip_prologue): Use store_param_on_stack_p() to detect
4381 instructions saving a parameter on the stack. Detect when r0
4382 is used to save a parameter.
4383 Do not mark "li rx, SIMM" instructions as part of the prologue,
4384 unless the following instruction is also part of the prologue.
4386 2004-05-14 Andrew Cagney <cagney@redhat.com>
4388 * infrun.c (handle_inferior_event): Simplify
4389 STEP_OVER_UNDEBUGGABLE.
4391 * infrun.c (handle_step_into_function): Delete function.
4392 (handle_inferior_event): Inline calls to
4393 handle_step_into_function.
4395 2004-05-14 Jerome Guitton <guitton@gnat.com>
4397 * rs6000-nat.c: Fix a comment.
4399 2004-05-12 David Anderson <davea@sgi.com>
4401 Committed by Jim Blandy <jimb@redhat.com>:
4402 * regcache.c (struct regcache_descr): fix comment spelling.
4404 2004-05-13 J. Brobecker <brobecker@gnat.com>
4406 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
4407 Fixes a link link failure.
4409 2004-05-13 J. Brobecker <brobecker@gnat.com>
4411 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
4412 error that was causing the build to fail.
4414 2004-05-13 J. Brobecker <brobecker@gnat.com>
4416 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
4417 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
4419 2004-05-13 Andrew Cagney <cagney@redhat.com>
4421 * infrun.c (handle_inferior_event): Check for
4422 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
4423 calls. Update comments.
4425 2004-05-13 Jim Blandy <jimb@redhat.com>
4427 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
4428 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4429 (store_regs_user_thread, store_regs_kernel_thread): Use
4430 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
4431 * ppc-linux-nat.c (fill_gregset): Same.
4432 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4433 (ppc_linux_sigtramp_cache): Same.
4434 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
4435 (ppcnbsd_sigtramp_cache_init): Same.
4436 * rs6000-nat.c (fetch_core_registers): Same.
4437 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
4438 (rs6000_frame_cache): Same.
4440 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
4441 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
4442 of assuming that the gprs are numbered starting with zero.
4443 * ppc-linux-nat.c (fill_gregset): Same.
4444 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
4445 * ppcnbsd-nat.c (getregs_supplies): Same.
4446 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
4447 * rs6000-nat.c (fetch_core_registers): Same.
4448 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
4450 2004-05-07 Michael Snyder <msnyder@redhat.com>
4452 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
4453 LOC_COMPUTED_ARG, and LOC_INDIRECT.
4455 2004-05-13 Andrew Cagney <cagney@redhat.com>
4457 * infrun.c (handle_inferior_event): Use frame_unwind_id.
4459 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4461 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
4462 base_address for shared libraries.
4464 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
4466 * MAINTAINERS (write after approval): Add myself.
4468 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
4470 * breakpoint.c (bpstat_stop_status): Add new argument
4471 STOPPED_BY_WATCHPOINT. Use it instead of testing
4472 target_stopped_data_address agaist 0 to check whether
4473 or not we stopped due to a hardware watchpoint.
4474 * breakpoint.h (bpstat_stop_status): Adapt prototype.
4475 * infrun.c (handle_inferior_event): Call bpstat_stop_status
4478 2004-05-12 Jim Blandy <jimb@redhat.com>
4480 * configure.in: When checking whether we should use the -bbigtoc
4481 option, don't forget to restore the original value of LDFLAGS.
4482 * configure: Regenerated.
4484 2004-05-12 Andrew Cagney <cagney@redhat.com>
4486 * thread.c (load_infrun_state): Delete step_sp.
4487 * infrun.c (context_switch): Ditto.
4488 * inferior.h (step_sp): Ditto.
4489 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
4490 * gdbthread.h (struct thread_info, save_infrun_state)
4491 (restore_infrun_state): Ditto.
4493 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
4495 * MAINTAINERS (write after approval): Add myself.
4497 2004-05-12 Andrew Cagney <cagney@redhat.com>
4499 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
4500 eliminate reference to step_sp.
4501 (struct execution_control_state, init_execution_control_state)
4502 (handle_inferior_event, keep_going): Delete update_step_sp and
4504 * infcmd.c (step_sp): Note that variable is unused.
4506 2004-05-11 Andrew Cagney <cagney@redhat.com>
4508 * infrun.c (step_over_function): Delete function.
4509 (handle_step_into_function): Use insert_step_resume_breakpoint.
4510 (insert_step_resume_breakpoint): Fix assertion.
4512 2004-05-11 Nick Roberts <nickrob@gnu.org>
4514 * utils.c (defaulted_query): Just use the normal query input type
4515 when printing the annotations.
4517 2004-05-11 Andrew Cagney <cagney@redhat.com>
4519 * infrun.c (handle_inferior_event): Simplify code handling
4520 step-into or return-from a signal trampoline.
4522 2004-05-11 Andrew Cagney <cagney@redhat.com>
4524 * ppcnbsd-tdep.c: Include "gdb_assert.h".
4525 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
4527 2004-05-10 Jim Blandy <jimb@redhat.com>
4529 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
4530 with a call to internal_error.
4532 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
4533 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
4534 processor variant lacks those registers.
4535 (ppc_floating_point_unit_p): Change description to make it clear
4536 that this returns info about the ISA, not the ABI.
4537 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
4538 return true or false by checking tdep->ppc_fp0_regnum and
4539 tdep->ppc_fpscr_regnum. The original code replicated the BFD
4540 arch/mach switching done in rs6000_gdbarch_init; it's better to
4541 keep that logic there, and just check the results here.
4542 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
4543 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
4544 floating-point registers.
4545 (ppc_supply_fpregset, ppc_collect_fpregset)
4546 (rs6000_push_dummy_call, rs6000_extract_return_value)
4547 (rs6000_store_return_value): Assert that we have floating-point
4549 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
4550 (rs6000_frame_cache): Don't note the locations at which
4551 floating-point registers were saved if we have no fprs.
4552 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
4554 (fetch_regs_user_thread, fetch_regs_kernel_thread)
4555 (store_regs_user_thread, store_regs_kernel_thread): Only call
4556 supply_fprs / fill_fprs if we actually have floating-point
4558 (special_register_p): Check ppc_fpscr_regnum before matching
4560 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
4561 supply / collect fpscr if we don't have it.
4562 * ppc-bdm.c: #include "gdb_assert.h".
4563 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
4564 have floating-point registers, since I can't test this code on
4565 FP-free systems to adapt it.
4566 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
4567 fpscr and floating point register numbers if they don't exist.
4568 (fetch_register): Assert that we have floating-point registers
4569 before we reach the code that handles them.
4570 (store_register): Same. And use tdep instead of calling
4572 (fill_fpregset): Don't try to collect FP registers and fpscr if we
4574 (ppc_linux_sigtramp_cache): Don't record the saved locations of
4575 fprs and fpscr if we don't have them.
4576 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
4578 * ppcnbsd-nat.c: #include "gdb_assert.h".
4579 (getfpregs_supplies): Assert that we have floating-point registers.
4580 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
4581 * ppcobsd-tdep.c: #include "gdb_assert.h".
4582 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
4583 have floating-point registers.
4584 * rs6000-nat.c (regmap): Don't match against the fpscr and
4585 floating point register numbers if they don't exist.
4586 (fetch_inferior_registers, store_inferior_registers,
4587 fetch_core_registers): Only fetch / store / supply the
4588 floating-point registers and the fpscr if we have them.
4589 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
4590 (ppcobsd-tdep.o): Update dependencies.
4592 2004-05-10 Andrew Cagney <cagney@redhat.com>
4594 * infrun.c (through_sigtramp_breakpoint): Delete variable.
4595 (context_switch): Do not switch through_sigtramp_breakpoint.
4596 * gdbthread.h (save_infrun_state, load_infrun_state)
4597 (struct thread_info): Delete through_sigtramp_breakpoint parameter
4598 and structure member.
4599 * thread.c (load_infrun_state, save_infrun_state): Update.
4601 2004-05-10 Mark Kettenis <kettenis@gnu.org>
4603 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
4605 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4607 * acinclude.m4: Quote macro names being defined by AC_DEFUN
4609 * aclocal.m4: Regenerate.
4611 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
4613 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
4615 2004-05-10 Andrew Cagney <cagney@redhat.com>
4617 * infrun.c (check_sigtramp2): Delete function.
4618 (handle_inferior_event): When single stepping, and taking a
4619 signal, set a breakpoint at the signal return address. Delete
4620 redundant calls to check_sigtramp2.
4621 (insert_step_resume_breakpoint): New function.
4622 (through_sigtramp_breakpoint, handle_inferior_event)
4623 (follow_exec, wait_for_inferior, fetch_inferior_event)
4624 (currently_stepping, keep_going): Delete most uses of
4625 through_sigtramp_breakpoint, not that it should be deleted.
4626 (delete_breakpoint_current_contents): Delete function.
4628 2004-05-10 Randolph Chung <tausq@debian.org>
4630 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
4632 * config/pa/tm-linux.h: New file.
4634 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
4636 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
4637 of prefixes. Don't print the prefix twice in the CLI.
4639 2004-05-10 Jim Blandy <jimb@redhat.com>
4641 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
4642 collect all the gprs.
4644 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
4645 loop collecting gprs.
4647 2004-05-09 Andrew Cagney <cagney@redhat.com>
4649 * remote-vx.c (net_step): Delete step-range code.
4650 * remote.c (remote_resume, init_all_packet_configs)
4651 (set_remote_protocol_E_packet_cmd)
4652 (show_remote_protocol_E_packet_cmd)
4653 (remote_protocol_E, show_remote_cmd, _initialize_remote)
4654 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
4655 (show_remote_protocol_e_packet_cmd): Ditto.
4657 2004-05-09 Mark Kettenis <kettenis@gnu.org>
4659 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
4661 * hppa-tdep.h: Update copyright year.
4662 (struct trad_frame_saved_reg): Add opaque declaration.
4664 * amd64-tdep.c (amd64_return_value): Implement
4665 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4667 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
4668 (m68k_value_to_register): New functions.
4669 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
4672 * defs.h (enum return_value_convention): Add
4673 RETURN_VALUE_ABI_RETURNS_ADDRESS and
4674 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4675 * infcmd.c (legacy_return_value): New function.
4676 (print_return_value): Rwerite to implement
4677 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4678 * values.c (using_struct_return): Check for inequality to
4679 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
4680 RETURN_VALUE_STRUCT_CONVENTION.
4681 * i386-tdep.c (i386_return_value): Implement
4682 RETURN_VALUE_ABI_RETURNS_ADDRESS.
4684 * vax-tdep.c: Tweak comments. Reorder include files. Don't
4685 include "symtab.h", "opcode/vax.h" and "inferior.h".
4686 (vax_skip_prologue): Replace calls to read_memory_integer by calls
4687 to read_memory_unsigned_integer.
4688 (vax_gdbarch_init): Reorder.
4689 (_initialize_vax_tdep): Spell out prototype.
4690 * Makefile.in (vax-tdep.o): Update dependencies.
4692 2004-05-08 Andrew Cagney <cagney@redhat.com>
4694 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
4695 * target.c (target_detach, target_disconnect): Ditto.
4697 * infcall.c (call_function_by_hand): When no
4698 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
4699 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
4700 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
4701 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4702 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4704 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
4705 * gdbarch.h, gdbarch.c: Re-generate.
4706 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4707 deprecated_fix_call_dummy.
4708 * v850-tdep.c (v850_gdbarch_init): Ditto.
4709 * infcall.c (call_function_by_hand): Do not call
4710 DEPRECATED_FIX_CALL_DUMMY.
4712 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
4713 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
4714 * gdbarch.h, gdbarch.c: Re-generate.
4715 * arm-linux-tdep.c (arm_linux_call_dummy_words)
4716 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
4717 deprecated_sizeof_call_dummy_words.
4718 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
4719 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
4720 * v850-tdep.c (v850_gdbarch_init): Ditto.
4721 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
4722 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
4723 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4724 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4725 * arch-utils.h (legacy_call_dummy_words)
4726 (legacy_sizeof_call_dummy_words): Delete declarations.
4727 * arch-utils.c (legacy_call_dummy_words)
4728 (legacy_sizeof_call_dummy_words): Delete variables.
4730 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
4731 * gdbarch.h, gdbarch.c: Re-generate.
4732 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
4733 * infcall.c (call_function_by_hand): Eliminate call to
4734 DEPRECATED_PUSH_DUMMY_FRAME.
4735 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4737 (ns32k_push_dummy_frame): Delete function.
4739 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4740 deprecated_call_dummy_breakpoint_offset or
4741 deprecated_call_dummy_start_offset.
4742 * dummy-frame.c, arm-tdep.c: Update comments.
4743 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
4744 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
4745 * gdbarch.h, gdbarch.c: Re-generate.
4747 * infcall.c (legacy_push_dummy_code): Delete function.
4748 (push_dummy_code): Delete call.
4750 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
4751 * gdbarch.h, gdbarch.c: Re-generate.
4752 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
4753 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
4754 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
4755 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
4757 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
4758 (struct frame_info): Delete opaque declaration.
4759 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
4760 * frame.c (get_frame_type): Delete call.
4762 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
4764 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
4765 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
4767 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4769 * alphanbsd-tdep.c: Include "gdb_string.h".
4770 * armnbsd-tdep.c: Update copyright year.
4771 Include "gdb_string.h".
4772 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
4775 * delta68-nat.c: Remove file.
4776 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
4777 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
4778 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
4779 (delta68-nat.o): Remove dependency.
4781 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
4783 (m68k_gdbarch_init): Don't set
4784 deprecated_frameless_function_invocation.
4786 2004-05-07 Randolph Chung <tausq@debian.org>
4788 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
4789 read_memory_nobpt for code reading when doing frame unwinding.
4790 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
4792 2004-05-07 Randolph Chung <tausq@debian.org>
4794 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
4795 instead of sp, handle sigaltstack case.
4796 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
4797 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
4798 signal handler and not that of the caller.
4799 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
4800 hppa_linux_sigtramp_find_sigcontext.
4802 2004-05-07 Randolph Chung <tausq@debian.org>
4804 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
4806 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
4807 * hppa-linux-nat.c (fetch_register, store_register): Define.
4808 (fetch_inferior_registers, store_inferior_registers): Define.
4809 (supply_gregset): Add comment and clean up some unneeded code.
4810 (fill_gregset): Add comment and fix so that it saves registers in
4811 the right place in the gregset.
4812 (fill_fpregset): Fix buffer overrun problem.
4813 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
4815 2004-05-07 Randolph Chung <tausq@debian.org>
4817 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
4818 do common handling of the pcoqt register.
4819 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
4820 to use helper function.
4821 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
4822 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
4823 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
4824 generic fallback unwinder when all else fails.
4825 (hppa_gdbarch_init): Add fallback sniffer.
4826 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
4827 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
4828 to use helper function.
4830 2004-05-08 Joel Brobecker <brobecker@gnat.com>
4832 * config/djgpp/fnchange.lst: Add translation rules for
4833 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
4835 2004-05-08 Mark Kettenis <kettenis@gnu.org>
4837 * frame.c (get_prev_frame_1): Work around GCC bug.
4838 * frame.h: Add comment about GCC bug.
4840 2004-05-07 Andrew Cagney <cagney@redhat.com>
4842 * observer.c: Include "commands.h" and "gdbcmd.h".
4843 (observer_debug, _initialize_observer): Add the
4844 command "set/show debug observer".
4845 * observer.sh: When observer debugging, log notify calls.
4846 * Makefile.in (observer.o): Update dependencies.
4848 2004-05-07 Jason Molenda (jmolenda@apple.com)
4850 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
4852 2004-05-07 Jim Blandy <jimb@redhat.com>
4854 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
4855 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
4856 to recognize gpr regnums, instead of assuming that
4857 tdep->ppc_fp0_regnum marks the end of the general-purpose
4860 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
4861 the given architecture has floating-point registers.
4863 2004-05-07 Andrew Cagney <cagney@redhat.com>
4865 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
4867 * gdbarch.h, gdbarch.c: Re-generate.
4868 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
4869 deprecated_use_generic_dummy_frames.
4871 2004-05-07 Brian Ford <ford@vss.fsi.com>
4873 * NEWS: Mention Cygwin DWARF 2 support.
4875 2004-05-07 Andrew Cagney <cagney@redhat.com>
4877 * objfiles.h (struct entry_info): Delete unused fields
4878 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
4879 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
4880 * mipsread.c (mipscoff_symfile_read): Update.
4881 * mdebugread.c (parse_partial_symbols): Update.
4882 * dwarfread.c (read_file_scope): Update.
4883 * dwarf2read.c (read_file_scope): Update.
4884 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
4885 * coffread.c (complete_symtab): Update.
4887 2004-05-07 Mark Kettenis <kettenis@gnu.org>
4889 * infcall.c (_initialize_infcall): Fix typo.
4891 2004-05-07 Andrew Cagney <cagney@redhat.com>
4893 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
4894 * command.h (add_setshow_zinteger_cmd): Declare.
4896 2004-05-06 Randolph Chung <tausq@debian.org>
4898 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
4899 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
4900 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
4901 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
4902 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
4903 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
4904 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
4906 * hppa-tdep.h: ... to here, with HPPA_ prefix.
4907 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
4908 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
4909 (hppa64_hpux_frame_find_saved_regs_in_sig)
4910 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
4911 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
4912 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
4913 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
4914 (hppa_linux_sigtramp_frame_prev_register): Likewise.
4915 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
4916 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
4917 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
4918 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
4919 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
4920 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
4921 (hppa32_register_type, hppa_cannot_store_register)
4922 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
4923 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
4924 * hpread.c (hpread_process_one_debug_symbol): Likewise.
4925 * pa64solib.c (pa64_solib_have_load_event)
4926 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
4927 (pa64_solib_unloaded_library_pathname): Likewise.
4928 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
4929 (som_solib_library_pathname): Likewise.
4931 2004-05-05 Jim Ingham <jingham@apple.com>
4933 * breakpoint.c (create_breakpoints): Copy the ignore count and
4934 thread id over from the pended breakpoint to the actual
4937 2004-05-05 Andrew Cagney <cagney@redhat.com>
4939 * gdbarch.sh (PARM_BOUNDARY): Delete.
4940 gdbarch.h, gdbarch.c: Re-generate.
4941 * valops.c (PARM_BOUNDARY): Delete macro.
4942 (value_push): Delete PARM_BOUNDARY code.
4943 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
4945 2004-05-04 Jim Blandy <jimb@redhat.com>
4947 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
4948 Don't assume that the gprs, fprs, and UISA sprs are
4949 contiguous, start at register number zero, and end with fpscr.
4950 Instead, use the numbers from the tdep structure.
4952 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
4953 should no longer be used in code specific to the RS6000 and its
4955 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
4956 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
4957 tdep->ppc_fp0_regnum.
4958 (ppc_supply_fpregset, ppc_collect_fpregset)
4959 (rs6000_push_dummy_call, rs6000_extract_return_value)
4960 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
4961 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
4963 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
4964 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
4966 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
4967 bdm_ppc_store_registers): Same.
4968 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
4969 (store_register, fill_fpregset): Same.
4970 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
4971 (ppc_linux_supply_fpregset): Same.
4972 * ppcnbsd-nat.c (getfpregs_supplies): Same.
4973 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
4975 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
4976 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
4977 ppc64_sysv_abi_return_value): Same.
4978 * rs6000-nat.c (regmap, fetch_inferior_registers)
4979 (store_inferior_registers, fetch_core_registers): Same.
4981 2004-05-01 Mark Kettenis <kettenis@gnu.org>
4983 * m68knbsd-nat.c: Remove file.
4984 * m68knbsd-tdep.c: Remove file.
4985 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
4987 * configure.host: Add m68k-*-netbsdelf*.
4988 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
4989 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
4990 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
4992 * config/m68k/nbsdelf.mh: New file.
4993 * config/m68k/nbsd.mt: New file.
4994 * config/m68k/nbsdaout.mt: Remove file.
4995 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
4996 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
4997 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
4998 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
4999 (use_struct_convention): Remove prototype.
5000 (USE_STRUCT_CONVENTION): Remove define.
5001 * config/m68k/xm-nbsd.h: Remove file.
5003 2004-05-04 Michael Snyder <msnyder@redhat.com>
5005 * m68k-tdep.c (m68k_gdbarch_init): Default to using
5006 reg_struct_return method (as gcc usually does for cross targets).
5008 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5010 Committed by Andrew Cagney.
5011 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
5012 alignment padding when accessing ucontext struct members.
5014 2004-05-04 Jim Blandy <jimb@redhat.com>
5016 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
5017 'ppc_gplast_regnum' member.
5018 (ppc_num_gprs): New enum constant.
5019 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
5020 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
5021 * rs6000-nat.c (regmap, fetch_inferior_registers,
5022 store_inferior_registers): Same.
5023 * rs6000-tdep.c (e500_pseudo_register_read)
5024 (e500_pseudo_register_write): Same.
5025 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
5027 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
5028 * ppc-tdep.h (ppc_num_fprs): New enum constant.
5029 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
5030 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
5032 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
5034 * ppc-linux-nat.c (ppc_register_u_addr): Same.
5035 * rs6000-nat.c (regmap, fetch_inferior_registers)
5036 (store_inferior_registers): Same.
5038 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
5041 2004-05-03 Joel Brobecker <brobecker@gnat.com>
5043 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
5044 failure detected by recent versions of GCC.
5045 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
5046 to be consistent with the usage in dwarf2_create_include_psymtab.
5048 2004-05-03 Michael Snyder <msnyder@redhat.com>
5050 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
5051 (heuristic_proc_start): Whitespace cleanup.
5053 2004-05-04 Mark Kettenis <kettenis@gnu.org>
5055 * sun3-nat.c: Remove file.
5056 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
5058 (ALLDEPFILES): Remove sun3-nat.c.
5059 (sun3-nat.o): Remove dependencies.
5061 * i386-interix-nat.c, i386-interix-tdep.c,
5062 config/i386/nm-interix.h, config/i386/interix.mh,
5063 config/i386/interix.mt: Remove files.
5064 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
5067 2004-05-03 Mark Kettenis <kettenis@gnu.org>
5069 * m68k-tdep.h (struct gdbarch_tdep): Add member
5070 struct_value_regnum.
5071 (m68k_svr4_init_abi): New prototype.
5072 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
5073 different calling conventions.
5074 (m68k_extract_return_value): Remove code dealing with single-field
5076 (m68k_store_return_value): Remove code dealing with single-field
5077 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
5078 (m68k_extract_struct_value_address): Remove function.
5079 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
5080 (m68k_reg_struct_return_p, m68k_return_value)
5081 (m68k_svr4_return_value): New functions.
5082 (m68k_use_struct_convention): Remove function.
5083 (m68k_push_dummy_call): Use new struct_value_regnum member of
5084 `struct gdbarch_tdep' instead of hardcoded register number to
5086 (m68k_svr4_init_abi): New function.
5087 (m68k_gdbarch_init): Don't set extract_return_value,
5088 store_return_values, deprecated_extract_struct_value_address and
5089 use_struct_convention. Set return_value instead. Initialize new
5090 struct_value_regnum member of `struct gdbarch_tdep'.
5091 * m68klinux-tdep.c: Update copyright year.
5092 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
5093 (m68k_linux_extract_struct_value_address): Remove function.
5094 (m68k_linux_init_abi): Don't set extract_return_value,
5095 store_return_values, deprecated_extract_struct_value_address and
5096 use_struct_convention. Call m68k_svr4_init_abi but override the
5097 new struct_value_regnum member of `struct gdbarch_tdep'.
5098 * Makefile.in (m68k-tdep.o): Update dependencies.
5100 2004-05-03 J. Brobecker <brobecker@gnat.com>
5102 * dwarf2read.c (line_header): Add new included_p field in
5104 (partial_die_info): New field has_stmt_list. New field line_offset.
5105 (dwarf2_create_include_psymtab): New function.
5106 (dwarf2_build_include_psymtabs): New function.
5107 (add_file_name): Add forward declaration. Initialize new field.
5108 (dwarf_decode_lines): Add new parameter. Enhance this procedure
5109 to be able to determine the list of files included by the
5110 given unit, and build their associated psymtabs.
5111 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
5113 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
5114 (read_file_scope): Update call to dwarf_decode_lines.
5115 (read_partial_die): Handle DW_AT_stmt_list attributes.
5117 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
5120 * configure.in: Revert special case for osf5.*.
5121 * configure: Regenerate.
5123 2004-05-02 Jim Blandy <jimb@redhat.com>
5125 Move the symbol-file-from-memory functions into their own file.
5126 * symfile-mem.c, symfile-mem.h: New files.
5127 * symfile.c (symbol_file_add_from_bfd): New function.
5128 (symbol_file_add): Call symbol_file_add_from_bfd.
5129 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
5130 Moved to symfile-mem.c.
5131 (_initialize_symfile): Move definition of
5132 add-symbol-file-from-memory command to symfile-mem.c.
5133 * symfile.h (symbol_file_add_from_bfd): New declaration.
5134 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
5135 * config/powerpc/linux.mt (TDEPFILES): Same.
5136 * Makefile.in (SFILES): Add symfile-mem.c.
5137 (symfile_mem_h): New variable.
5138 (HFILES_NO_SRCDIR): Add symfile-mem.h.
5139 (symfile-mem.o): New rule.
5141 2004-05-01 Andrew Cagney <cagney@redhat.com>
5143 * breakpoint.c (insert_bp_location): Use get_frame_id, and
5144 frame_find_by_id instead of frame_relative_level.
5145 (do_enable_breakpoint): Ditto.
5146 * thread.c: Update copyright.
5147 (info_threads_command): Ditto, simplify.
5149 * frame.c (deprecated_generic_get_saved_register): Delete
5150 function, moved to "xstormy16-tdep.c".
5151 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
5152 deprecated_generic_get_saved_register from "frame.c".
5153 (xstormy16_frame_saved_register): Call
5154 xstormy16_get_saved_register.
5155 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
5157 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
5158 * frame.h (deprecated_generic_get_saved_register): Delete.
5160 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
5162 * dwarfread.c: Update documentation on the state of dwarf-1.
5164 2004-05-01 Andrew Cagney <cagney@redhat.com>
5166 * stack.c (select_frame_command): Delete call to
5167 frame_relative_level.
5168 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
5170 (frame_info): Do not print FRAMELESS.
5171 (print_block_frame_labels): Replace DEPRECATED_STREQ.
5172 (catch_info): Delete #if0 code.
5174 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
5175 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
5176 of frame_relative_level.
5177 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
5179 * frame.h (enum frame_type): Add SENTINEL_FRAME.
5180 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
5181 frame_relative_level.
5183 * frame.h (deprecated_set_frame_type): Delete declaration.
5184 * frame.c (deprecated_set_frame_type): Delete function, update
5187 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
5188 * gdbarch.h, gdbarch.c: Re-generate.
5189 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
5190 (shnbsd_pc_in_sigtramp): Delete.
5191 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
5193 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
5195 * frame.h: Update comments.
5196 * ppc-linux-tdep.c: Update comments.
5197 * breakpoint.c (bpstat_what): Update comments.
5199 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
5200 m68klinux-tdep.o's dependencies, were previously added to
5203 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
5204 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
5205 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
5206 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
5207 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
5209 * Makefile.in (m68klinux-nat.o): Update dependencies.
5210 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5211 (m68k_linux_sigtramp_frame_cache)
5212 (m68k_linux_sigtramp_frame_this_id)
5213 (m68k_linux_sigtramp_frame_prev_register)
5214 (m68k_linux_sigtramp_frame_unwind)
5215 (m68k_linux_sigtramp_frame_sniffer)
5216 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
5217 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
5218 names, use trad-frame.h.
5219 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
5220 (struct m68k_sigtramp_info): Delete.
5221 * m68k-tdep.c (m68k_sigtramp_frame_cache)
5222 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
5223 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
5224 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
5227 * infrun.c (check_sigtramp2): Delete check for
5228 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
5230 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5232 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
5234 2004-05-01 Andrew Cagney <cagney@redhat.com>
5236 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
5237 (frv_linux_sigtramp_frame_cache)
5238 (frv_linux_sigtramp_frame_this_id)
5239 (frv_linux_sigtramp_frame_prev_register)
5240 (frv_linux_sigtramp_frame_unwind)
5241 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
5242 include "linux" in function and variable names, directly call
5243 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
5244 the latest trad-frame code.
5245 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
5246 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
5247 * Makefile.in (frv-linux-tdep.o): Update dependencies.
5248 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
5249 * frv-tdep.c (frv_sigtramp_frame_cache)
5250 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
5251 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
5253 (frv_gdbarch_init): Do not append a sigtramp sniffer.
5254 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
5255 (frv_set_sigcontext_reg_addr): Delete function.
5257 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
5258 (DEPRECATED_SIGTRAMP_END): Delete.
5259 * gdbarch.h, gdbarch.c: Re-generate.
5260 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
5261 * config/vax/tm-vaxbsd.h: Update copyright.
5262 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5263 (DEPRECATED_IN_SIGTRAMP): Define.
5264 * config/m68k/tm-nbsd.h: Update copyright.
5265 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
5266 (DEPRECATED_IN_SIGTRAMP): Define.
5268 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5270 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
5271 encondings. Fixes PR gdb/1628.
5273 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
5274 DW_CFA_restore state without a matching DW_CFA_remember_state
5275 instead of aborting. Fixes PR backtrace/1589.
5277 2004-04-30 Joel Brobecker <brobecker@gnat.com>
5279 * MAINTAINERS: Add self as AIX maintainer.
5280 Update my e-mail address in write-after-approval section.
5282 2004-04-30 Andrew Cagney <cagney@redhat.com>
5284 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
5285 (legacy_get_prev_frame): Ditto.
5287 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
5288 (mips_gdbarch_init): Do not set pc_in_sigtramp.
5289 * mipsread.c (sigtramp_address): Delete extern variable.
5290 (mipscoff_new_init): Delete reference.
5291 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
5292 (fixup_sigtramp): Delete function.
5293 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
5294 (fixup_sigtramp): Delete declarations.
5296 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
5297 deprecated_pc_in_sigtramp.
5298 (ppcnbsd_pc_in_sigtramp): Delete function.
5300 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5302 * config/m68k/nm-nbsd.h: Tweak comments.
5303 * config/m68k/nm-nbsdaout.h: Likewise.
5305 2004-04-30 Andrew Cagney <cagney@redhat.com>
5307 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
5308 legacy_pc_in_sigtramp.
5309 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
5311 2004-05-01 Mark Kettenis <kettenis@gnu.org>
5313 Add OpenBSD/m68k support.
5314 * NEWS (New native configurations): Mention OpenBSD/m68k.
5315 * m68kbsd-tdep.c: New file.
5316 * m68kbsd-nat.c: New file.
5317 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
5318 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
5319 * configure.host: Add m68k-*-openbsd.
5320 * configure.tgt: Add m68k-*-openbsd.
5321 * config/m68k/tm-obsd.h: New file.
5322 * config/m68k/obsd.mt: New file.
5323 * config/m68k/obsd.mh: New file.
5324 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
5327 2004-04-30 Andrew Cagney <cagney@redhat.com>
5329 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
5330 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
5332 2004-04-30 Mark Kettenis <kettenis@gnu.org>
5334 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
5335 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
5337 2004-04-30 Brian Ford <ford@vss.fsi.com>
5339 Revert 2004-04-16 change.
5340 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
5341 (i386_coff_init_abi): Remove.
5342 * i386-tdep.h (i386_coff_init_abi): Remove.
5343 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
5345 2004-04-30 Andrew Cagney <cagney@redhat.com>
5347 * blockframe.c (find_pc_partial_function): Delete use of
5348 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
5349 DEPRECATED_SIGTRAMP_END.
5351 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
5352 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
5353 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
5354 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
5355 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
5357 * defs.h (deprecated_inside_entry_file): Delete declaration.
5358 * blockframe.c (deprecated_inside_entry_file): Delete function.
5359 (legacy_frame_chain_valid): Delete call.
5360 * sh64-tdep.c (sh64_frame_chain): Delete call.
5361 * objfiles.h: Update comments.
5362 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
5364 * frame.c (get_prev_frame): Delete call, update comments.
5366 2004-04-30 Brian Ford <ford@vss.fsi.com>
5368 * MAINTAINERS (Write After Approval): Add myself.
5370 2004-04-30 Andrew Cagney <cagney@redhat.com>
5372 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
5373 * gdbarch.h, gdbarch.c: Re-generate.
5374 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
5377 2004-04-30 Andrew Cagney <cagney@redhat.com>
5379 * gdb-events.sh (selected_thread_changed)
5380 (selected_frame_level_changed, target_changed): Delete.
5381 * gdb-events.h, gdb-events.c: Re-generate.
5382 * valops.c (value_assign): Update.
5383 * stack.c (select_frame_command, up_silently_base)
5384 (down_silently_base): Update.
5386 2004-04-29 Andrew Cagney <cagney@redhat.com>
5388 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
5389 registers correctly.
5390 (print_gp_register_row, mips32_heuristic_proc_desc)
5391 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
5392 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
5393 references to mips_isa_regsize.
5395 2004-04-29 Andrew Cagney <cagney@redhat.com>
5397 * mips-tdep.c (struct gdbarch_tdep): Delete
5398 mips_fp_register_double.
5399 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
5401 (mips_gdbarch_init): Do not set mips_fp_register_double.
5402 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
5404 2004-04-29 Joel Brobecker <brobecker@gnat.com>
5406 Committed by Andrew Cagney.
5407 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
5410 2004-04-29 Andrew Cagney <cagney@redhat.com>
5412 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
5413 gdbarch, use mips_abi, update callers.
5414 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
5415 mips_abi_regsize, update callers.
5416 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
5417 mips_default_abi_regsize.
5418 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
5419 mips_default_abi_regsize.
5421 2004-04-29 Andrew Cagney <cagney@redhat.com>
5423 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
5424 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
5425 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
5426 mips_default_abi_regsize.
5427 (mips_isa_regsize): Rename mips_regisze.
5428 * mipsnbsd-tdep.c: Update.
5429 * mips-linux-tdep.c: Update.
5430 * irix5-nat.c: Update.
5431 * mips-tdep.h (mips_isa_regsize): Update.
5433 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
5434 Delete all disabled code.
5435 * gdb-events.h, gdb-events.c: Re-generate.
5437 2004-04-19 Jerome Guitton <guitton@gnat.com>
5438 Mark Kettenis <kettenis@gnu.org>
5440 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
5441 the function begins with a branch instruction.
5443 2004-04-29 Mark Kettenis <kettenis@gnu.org>
5445 * i386-tdep.c: Fix spelling mistakes.
5447 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5448 Andrew Cagney <cagney@redhat.com>
5450 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
5452 * acconfig.h: Provide default _KMEMUSER value.
5453 * config.in, configure: Re-generate.
5454 * NEWS: Mention fix.
5456 2004-04-24 Randolph Chung <tausq@debian.org>
5458 * configure.host (hppa*-*-linux*): New target.
5459 * configure.tgt (hppa*-*-linux*): Likewise.
5460 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
5461 gdbarch_init_osabi() call earlier so that osabi-specific frame
5462 unwinders can be registered first.
5463 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
5465 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
5466 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
5467 * config/pa/linux.mh: New file.
5468 * config/pa/linux.mt: New file.
5469 * config/pa/nm-linux.h: New file.
5470 * config/pa/xm-linux.h: New file.
5471 * hppa-linux-nat.c: New file.
5472 * hppa-linux-tdep.c: New file.
5474 2004-04-28 Randolph Chung <tausq@debian.org>
5476 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
5478 (hppa32_push_dummy_call): Fix small struct and floating point argument
5479 passing, and make sure the stack frame is properly aligned.
5481 2004-04-28 Andrew Cagney <cagney@redhat.com>
5483 * stack.c (print_stack_frame): Fix description.
5485 * NEWS: Mention gdb/gdbserver/configure execute permission
5486 changed. PR server/519.
5488 2004-04-28 Andrew Cagney <cagney@redhat.com>
5490 * stack.c (print_stack_frame_stub): Delete declaration.
5491 (struct print_stack_frame_args, print_stack_frame)
5492 (print_frame_info, print_frame): Replace "source" with print what.
5493 Replace "print" with "print_level". Replace "args" with
5495 * frame.h (show_and_print_stack_frame, print_stack_frame)
5496 (print_frame_info): Update declarations.
5497 * stack.c (select_and_print_frame, frame_command)
5498 (current_frame_command, up_command, down_command): Update calls -
5499 use get_selected_frame, pass "enum print_what" for source, do not
5500 call frame_relative_level.
5501 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
5502 * remote-rdp.c (remote_rdp_open): Ditto.
5503 * remote-mips.c (common_open): Ditto.
5504 * remote-e7000.c (e7000_start_remote): Ditto.
5505 * ocd.c (ocd_start_remote): Ditto.
5506 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
5507 * infrun.c (normal_stop): Ditto.
5508 * inflow.c (kill_command): Ditto.
5509 * infcmd.c (finish_command): Ditto.
5510 * corelow.c (core_open): Ditto.
5511 * tracepoint.c (finish_tfind_command): Ditto.
5512 * thread.c (info_threads_command, info_threads_command)
5513 (restore_current_thread, do_captured_thread_select): Ditto.
5514 * ada-tasks.c (task_command): Ditto.
5516 2004-04-26 Orjan Friberg <orjanf@axis.com>
5518 * frame.c: Include "observer.h".
5519 (frame_observer_target_changed): New function.
5520 (_initialize_frame): Attach target_changed observer.
5521 * regcache.c: Include "observer.h".
5522 (regcache_observer_target_changed): New function.
5523 (_initialize_regcache): Attach target_changed observer.
5524 * valops.c: Include "observer.h".
5525 (value_assign): Notify target_changed event when modifying register.
5526 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
5528 2004-04-26 Orjan Friberg <orjanf@axis.com>
5530 From Paul Koning <pkoning@equallogic.com>:
5531 * breakpoint.c (free_valchain): New function.
5532 (insert_bp_location, delete_breakpoint): Use free_valchain.
5533 (remove_breakpoint): Do not remove the valchain.
5534 (bpstat_stop_status): If not stopped by watchpoint, skip
5535 watchpoints when generating stop status list.
5536 * infrun.c (handle_inferior_event): Make
5537 stepped_after_stopped_by_watchpoint a global variable.
5538 * remote.c (remote_stopped_data_address): Return watch data
5539 address rather than zero if stepped_after_stopped_by_watchpoint is
5542 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
5545 * configure.in: Check for curses after termcap.
5546 On osf5.*, do not check for ncurses.
5547 * configure: Regenerate.
5549 2004-04-25 Mark Kettenis <kettenis@gnu.org>
5551 * ppcobsd-nat.c: Include "ppc-tdep.h".
5552 * Makefile.in (ppcobsd-nat.o): Update dependencies.
5554 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
5555 Fixes PR tdep/1623 and PR tdep/1624.
5557 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
5559 * xmodem.h, xmodem.c: Remove files.
5560 * Makefile.in: Remove references to xmodem.h, xmodem.c.
5562 2004-04-23 Randolph Chung <tausq@debian.org>
5564 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
5565 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
5566 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
5567 for handling stackless frames.
5568 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
5570 2004-04-23 Randolph Chung <tausq@debian.org>
5572 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
5573 starts at a pc before the frame is created.
5575 2004-04-23 Joel Brobecker <brobecker@gnat.com>
5577 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
5579 2004-04-23 Jerome Guitton <guitton@gnat.com>
5581 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
5582 use convert_typed_floating to get the appropriate format.
5584 2004-04-22 Randolph Chung <tausq@debian.org>
5586 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
5587 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
5588 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
5589 (hppa_sign_extend): Add prototype.
5590 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
5591 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
5592 (sign_extend): Rename with hppa_ prefix and make non-static. Other
5593 hppa targets will also use these functions.
5594 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
5595 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
5596 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
5597 (hppa_gdbarch_init): Remove gdbarch setting of
5598 skip_trampoline_code, in_solib_call_trampoline and
5599 in_solib_return_trampoline.
5600 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
5601 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
5602 hppa_in_solib_call_trampoline.
5603 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
5604 Moved from hppa-tdep.c.
5605 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
5606 in_solib_call_trampoline and in_solib_return_trampoline.
5608 2004-04-22 Randolph Chung <tausq@debian.org>
5610 * hppa-tdep.c (hppa_debug): New variable.
5611 (find_unwind_entry, hppa_frame_cache): Add debug output.
5612 (_initialize_hppa_tdep): Add command to set debug flag.
5614 2004-04-22 Andrew Cagney <cagney@redhat.com>
5616 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
5618 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
5619 signal trampoline unwinder.
5620 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
5622 2004-04-22 Mark Kettenis <kettenis@gnu.org>
5624 Add OpenBSD/powerpc support.
5625 * NEWS (New native configurations): Mention OpenBSD/powerpc.
5626 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
5627 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
5628 (ppc_collect_fpregset): New prototypes.
5629 * ppcobsd-nat.c: New file.
5630 * ppcobsd-tdep.c: New file.
5631 * ppcobsd-tdep.h: New file.
5632 * rs6000-tdep.c: Include "regset.h".
5633 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
5634 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
5636 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
5637 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
5638 (rs6000-tdep.o): Update dependencies.
5639 * configure.host: Add powerpc-*-openbsd.
5640 * configure.tgt: Add powerpc-*-openbsd.
5641 * config/powerpc/obsd.mh: New file.
5642 * config/powerpc/nm-obsd.h: New file.
5643 * config/powerpc/obsd.mt: New file.
5645 2004-04-22 Andrew Cagney <cagney@redhat.com>
5647 * frame.h (show_frame_info): Delete declaration.
5649 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
5650 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
5651 * m32r-tdep.c (m32r_frame_this_id): Ditto.
5652 * frv-tdep.c (frv_frame_this_id): Ditto.
5653 * avr-tdep.c (avr_frame_this_id): Ditto.
5655 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
5657 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
5659 2004-04-22 Jim Blandy <jimb@redhat.com>
5661 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
5662 register number zero.
5664 2004-04-21 Michael Snyder <msnyder@redhat.com>
5666 * mips-tdep.c (heuristic_proc_start):
5667 Warning() already prefixes "Warning: ".
5669 2004-04-21 Andrew Cagney <cagney@redhat.com>
5671 * annotate.h (deprecated_annotate_starting_hook)
5672 (deprecated_annotate_stopped_hook)
5673 (deprecated_annotate_exited_hook)
5674 (deprecated_annotate_signal_hook)
5675 (deprecated_annotate_signalled_hook): Deprecate.
5676 * tracepoint.h (deprecated_create_tracepoint_hook)
5677 (deprecated_delete_tracepoint_hook)
5678 (deprecated_modify_tracepoint_hook)
5679 (deprecated_trace_find_hook)
5680 (deprecated_trace_start_stop_hook): Deprecate.
5681 * target.h (deprecated_target_new_objfile_hook): Deprecate.
5682 * remote.h (deprecated_target_resume_hook)
5683 (deprecated_target_wait_loop_hook): Deprecate.
5684 * gdbcore.h (deprecated_exec_file_display_hook)
5685 (deprecated_file_changed_hook): Deprecate.
5686 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
5687 * defs.h (deprecated_modify_breakpoint_hook)
5688 (deprecated_command_loop_hook, deprecated_show_load_progress)
5689 (deprecated_print_frame_info_listing_hook)
5690 (deprecated_query_hook, deprecated_warning_hook)
5691 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
5692 (deprecated_delete_breakpoint_hook)
5693 (deprecated_interactive_hook, deprecated_registers_changed_hook)
5694 (deprecated_readline_begin_hook, deprecated_readline_hook)
5695 (deprecated_readline_end_hook, deprecated_register_changed_hook)
5696 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
5697 (deprecated_context_hook, deprecated_target_wait_hook)
5698 (deprecated_attach_hook, deprecated_detach_hook)
5699 (deprecated_call_command_hook, deprecated_set_hook)
5700 (deprecated_error_hook, deprecated_error_begin_hook)
5701 (deprecated_ui_load_progress_hook): Deprecate.
5702 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
5703 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
5704 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
5705 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
5706 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
5707 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
5708 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
5709 * annotate.c, aix-thread.c: Update.
5711 2004-04-21 Andrew Cagney <cagney@redhat.com>
5713 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
5714 * vaxnbsd-tdep.c: Include "gdb_string.h".
5716 * symfile.c (symbol_file_add_from_memory): #if 0 function.
5717 (add_symbol_file_from_memory_command): #if 0 function body, call
5720 2004-04-21 Andrew Cagney <cagney@redhat.com>
5722 * gdbcore.h: Update copyright.
5723 (deprecated_add_core_fns): Rename add_core_fns.
5724 * win32-nat.c (_initialize_core_win32): Update.
5725 * sun3-nat.c (_initialize_core_sun3): Update.
5726 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
5727 * rs6000-nat.c (_initialize_core_rs6000): Update.
5728 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
5729 * nto-tdep.c (_initialize_nto_tdep): Update.
5730 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
5731 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
5732 * mips-nat.c (_initialize_core_mips): Update.
5733 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
5734 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
5735 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
5736 * lynx-nat.c (_initialize_core_lynx): Update.
5737 * irix5-nat.c (_initialize_core_irix5): Update.
5738 * i386-interix-nat.c (_initialize_core_interix): Update.
5739 * cris-tdep.c (_initialize_cris_tdep): Update.
5740 * corelow.c (deprecated_add_core_fns): Update.
5741 * core-regset.c (_initialize_core_regset): Update.
5742 * core-aout.c (_initialize_core_aout): Update.
5743 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
5744 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
5745 * alpha-nat.c (_initialize_core_alpha): Update.
5747 2004-04-21 Jim Blandy <jimb@redhat.com>
5749 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
5751 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
5753 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
5755 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
5756 (read_attribute_value): Update calls to dwarf_alloc_block.
5757 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
5759 (psymtab_to_symtab_1): Likewise. Clean up using
5760 free_stack_comp_unit.
5761 (add_to_cu_func_list): Use the comp_unit_obstack.
5763 2004-04-19 Joel Brobecker <brobecker@gnat.com>
5765 * dwarf2read.c (dwarf2_flag_true_p): New function.
5766 (die_is_declaration): Use the function above. Add some comments.
5768 2004-04-19 Mark Kettenis <kettenis@gnu.org>
5770 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
5771 architecture when registering sparcnbsd_core_osabi_sniffer.
5774 2004-04-18 Mark Kettenis <kettenis@gnu.org>
5776 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
5779 Based on a patch from Brian Ford <ford@vss.fsi.com>:
5780 * i386-tdep.c: Correct register numbering scheme comments
5782 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
5783 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
5784 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
5785 (i386_gdb_arch_init): Likewise.
5787 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
5788 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
5791 * m68k-tdep.h: Tweak comments.
5792 * m68k-tdep.c: Tweak comment.
5794 2004-04-17 Randolph Chung <tausq@debian.org>
5796 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
5797 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
5798 (hppa_hpux_som_init_abi): Set is_elf to 0.
5799 (hppa_hpux_elf_init_abi): Set is_elf to 1.
5800 * hppa-tdep.c (low_text_segment_address): Remove global.
5801 (record_text_segment_lowaddr): Pass in low address as parameter. Use
5802 section offset to calculate segment address.
5803 (internalize_unwinds): Define low_text_segment_address as local and
5804 pass to record_text_segment_lowaddr for ELF targets.
5805 (hppa_gdbarch_init): Zero fill tdep structure.
5806 (hppa_dump_tdep): Print tdep structure.
5807 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
5809 2004-04-17 Randolph Chung <tausq@debian.org>
5811 * hppa-tdep.c (hppa_pseudo_register_read): Define.
5812 (hppa_gdbarch_init): Set pseudo_register_read.
5813 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
5814 * regcache.c (supply_register): Remove check for
5815 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
5817 2004-04-17 Randolph Chung <tausq@debian.org>
5819 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
5820 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
5821 (hpread_adjust_stack_address): Move to hpread.c.
5822 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5823 obj_private_struct): Move from tm-hppa.h.
5824 * hpread.c (hppa-tdep.h): Include.
5825 (hpread_adjust_stack_address): Move from hppa-tdep.c.
5826 (hpread_read_function_type, hpread_read_doc_function_type)
5827 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
5829 * pa64solib.c (hppa-tdep.h): Include.
5830 * somsolib.c (hppa-tdep.h): Include.
5831 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
5832 inferior_status): Remove unused forward declarations.
5833 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
5834 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
5835 obj_private_struct): Move to hppa-tdep.h.
5836 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
5838 2004-04-17 Randolph Chung <tausq@debian.org>
5840 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
5841 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
5842 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
5843 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
5844 Remove forward declaration and make static.
5845 (hppa_reg_struct_has_addr): Remove.
5847 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5849 * observer.sh: Move comments in sed command to first column.
5851 2004-04-16 Jason Molenda (jmolenda@apple.com)
5853 * frame.c: Minor typeo corrections in comments.
5855 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5857 * observer.c (observer_test_first_notification_function): Update
5859 (observer_test_second_notification_function): Likewise.
5860 (observer_test_third_notification_function): Likewise.
5862 2004-04-16 Mark Kettenis <kettenis@gnu.org>
5864 From Brian Ford <ford@vss.fsi.com>:
5865 * i386-tdep.c (i386_coff_init_abi): New function.
5866 * i386-tdep.h (i386_coff_init_abi): New prototype.
5867 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
5868 register number translation functions for DWARF and DWARF 2.
5870 2004-04-16 Joel Brobecker <brobecker@gnat.com>
5872 * dwarf2read.c: Back out my previous change, it was incorrect.
5874 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
5876 * dwarf2read.c: Include "hashtab.h".
5877 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
5879 (struct partial_die_info): Add comments. Use bitfields to reduce
5880 memory footprint. Add scope, scope_set, has_specification,
5881 spec_offset, die_parent, die_child, and die_sibling.
5882 (peek_die_abbrev): Add prototype.
5883 (partial_read_comp_unit_head): New function, broken out from
5884 dwarf2_build_psymtabs_hard.
5885 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
5886 Use partial_read_comp_unit_head. Initialize the CU and
5887 comp_unit_obstack. Update calls to read_partial_die and
5888 scan_partial_symbols. Use free_stack_comp_unit and
5890 (scan_partial_symbols): Change PDI to a pointer. Use the child and
5891 sibling pointers to walk partial DIEs. Call fixup_partial_die.
5892 Update calls to helper functions. Remove NAMESPACE argument.
5894 (partial_die_parent_scope, partial_die_full_name): New functions.
5895 (add_partial_symbol): Remove namespace argument. Update call to
5896 pdi_needs_namespace. Use partial_die_full_name. Handle
5897 DW_TAG_namespace. Check has_namespace_info flag.
5898 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
5899 tag. Handle namespaces.
5900 (add_partial_namespace, add_partial_enumeration): Simplify.
5901 (guess_structure_name): New function, derived from
5902 add_partial_structure.
5903 (add_partial_structure): Remove.
5904 (determine_class_name): Update comment.
5905 (dwarf2_read_abbrevs): Set has_namespace_info flag.
5906 (is_type_tag_for_partial, load_partial_dies): New functions.
5907 (read_partial_die): Pass abbrev and abbrev_len as arguments.
5908 Record specifications instead of following them immediately.
5909 (find_partial_die_in_comp_unit, find_partial_die)
5910 (fixup_partial_die, free_stack_comp_unit)
5911 (hashtab_obstack_allocate, dummy_obstack_deallocate)
5912 (partial_die_hash, partial_die_eq): New functions.
5913 * Makefile.in (hashtab_h): Define.
5914 (dwarf2read.o): Update dependencies.
5915 (observer_inc, observer_h): Move to the correct section.
5917 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5919 * dwarf2read.c (dwarf2_attribute_true_p): New function.
5920 (die_is_declaration): Use the function above. Add comment.
5922 2004-04-15 Joel Brobecker <brobecker@gnat.com>
5924 * dwarf2read.c (read_structure_scope): Identify stub types
5925 using die_is_declaration() only.
5927 2004-04-15 Roland McGrath <roland@redhat.com>
5929 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
5930 argument instead of NAME.
5931 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
5932 in call to symbol_file_add_with_addrs_or_offsets.
5933 (build_addr_info): New function, helper for ...
5934 (symbol_file_add_from_memory): New function.
5935 (add_symbol_file_from_memory_command): New function using that.
5936 (_initialize_symfile): Register it for add-symbol-file-from-memory.
5937 (pre_add_symbol_hook): Add const to argument type.
5938 * symfile.h (symbol_file_add_from_memory): Declare it.
5940 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5942 * NEWS (New native configurations): Mention OpenBSD/vax.
5943 * configure.host: Add vax-*-openbsd*.
5944 * config/vax/obsd.mh: New file.
5945 * config/vax/nm-obsd.h: New file.
5947 * vax-tdep.c: Include "regset.h".
5948 (vax_supply_gregset): New function.
5949 (vax_gregset): New variable.
5950 (vax_regset_from_core_section): New function.
5951 (vax_gdbarch_init): Set regset_from_core_section.
5952 * Makefile.in (vax-tdep.o): Update dependencies.
5954 2004-04-15 Andrew Cagney <cagney@redhat.com>
5956 * observer.c (normal_stop_subject, observer_notify_normal_stop)
5957 (observer_normal_stop_notification_stub)
5958 (observer_attach_normal_stop, observer_detach_normal_stop):
5959 Delete, replaced by #include "observer.inc".
5960 * infrun.c (normal_stop): Pass "stop_bpstat" to
5961 observer_notify_normal_stop.
5962 * Makefile.in (observer_inc): Define.
5963 (observer.o): Update dependencies.
5964 (observer.h, observer.inc): New rules.
5965 * observer.h: Delete file.
5966 * observer.sh: New file.
5968 2004-04-15 Mark Kettenis <kettenis@gnu.org>
5970 * vax-tdep.c (vax_frame_cache): Fix typo.
5972 2004-04-14 Mark Kettenis <kettenis@gnu.org>
5974 * NEWS (New native configurations): Mention NetBSD/vax.
5975 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
5976 * config/vax/nbsdelf.mh: New file.
5977 * config/vax/nbsdaout.mh: New file.
5978 * config/vax/nm-nbsd.h: New file.
5979 * config/vax/nm-nbsdaout.h: New file.
5981 * vaxnbsd-tdep.c: New file.
5982 * Makefile.in (vaxnbsd-tdep.o): New dependency.
5983 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
5984 * config/vax/nbsd.mt: New file.
5985 * config/vax/tm-nbsd.h: New file.
5987 * Makefile.in (vaxbsd-nat.o): New dependency.
5989 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
5990 * vax-tdep.c (vax_store_arguments): Remove struct_return and
5991 struct_addr arguments. Don't push return value address.
5992 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
5993 arguments to vax_store_arguments. Store return value address in
5995 (vax_store_struct_return, vax_extract_return_value)
5996 (vax_store_return_value): Remove functions.
5997 (vax_return_value): New function.
5998 (vax_gdbarch_init): Set return value. Don't set
5999 deprecated_store_struct_return, deprecated_extract_struct_return
6000 and deprecated_store_return_value.
6002 2004-04-14 Andreas Schwab <schwab@suse.de>
6004 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
6006 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
6008 2004-04-14 Mark Kettenis <kettenis@gnu.org>
6010 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
6011 (vax_unwind_dummy_id): New functions.
6012 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
6013 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
6015 (vax_fix_call_dummy): Remove function.
6016 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
6017 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
6018 call_dummy_location, deprecated_call_dummy_words,
6019 deprecated_sizeof_call_dummy_words,
6020 deprecated_call_dummy_breakpoint_offset,
6021 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
6022 and deprecated_dummy_write_sp.
6024 2004-04-13 David Carlton <carlton@kealia.com>
6026 * MAINTAINERS: Move myself to "paper trail" section.
6028 2004-04-12 Mark Kettenis <kettenis@gnu.org>
6030 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
6032 (vax_frame_init_saved_regs): Remove function.
6033 (vax_sigtramp_saved_pc): Remove function.
6034 (vax_frame_saved_pc): Remove function.
6035 (vax_frame_args_address): Remove function.
6036 (vax_frame_num_args): Rewrite.
6037 (vax_frame_chain): Remove function.
6038 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
6040 (vax_pop_frame): Likewise.
6041 (vax_saved_pc_after_call): Remove function.
6042 (struct vax_frame_cache): New structure.
6043 (vax_frame_cache): New function.
6044 (vax_frame_this_id): New function.
6045 (vax_frame_prev_register): New function.
6046 (vax_frame_unwind): New variable.
6047 (vax_frame_sniffer): New function.
6048 (vax_frame_base_address): New function.
6049 (vax_frame_args_address): New function.
6050 (vax_frame_base): New variable.
6051 (vax_unwind_pc): New function.
6052 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
6053 deprecated_fp_regnum, deprecated_saved_pc_after_call,
6054 deprecated_frame_chain, deprecated_frame_saved_pc,
6055 deprecated_frame_args_address and
6056 deprecated_frame_init_saved_regs.
6057 * Makefile.in (vax-tdep.o): Update dependencies.
6059 * vaxbsd-nat.c: New file.
6061 * vax-tdep.h: Update copyright year. Adjust comments.
6062 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
6063 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
6064 (vax_regnum): New enum. Replacing...
6065 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
6066 (VAX_PS_REGNUM): ... these removed macros.
6067 * vax-tdep.c (vax_register_name): Remove prototype.
6068 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
6069 (vax_register_byte, vax_register_raw_size,
6070 vax_register_virtual_size, vax_register_virtual_type): Remove
6072 (vax_register_type): New function.
6073 (vax_breakpoint_from_pc): Reorganize.
6074 (vax_gdbarch_init): Set register_type. Don't set
6075 deprecated_register_size, deprecated_register_bytes,
6076 deprecated_register_byte, deprecated_register_raw_size,
6077 deprecated_max_register_raw_size,
6078 deprecated_register_virtual_size,
6079 deprecated_max_register_virtual_size and
6080 deprecated_register_virtual_type. Add comment on stack direction.
6082 2004-04-11 Mark Kettenis <kettenis@gnu.org>
6084 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
6085 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
6086 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
6088 2004-04-10 Randolph Chung <tausq@debian.org>
6090 * MAINTAINERS (write after approval): Add myself.
6092 2004-04-07 Randolph Chung <tausq@debian.org>
6094 * hppa-tdep.c (hppa_inner_than): Remove.
6095 (is_pa_2): Remove unused static variable.
6096 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
6098 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
6100 * language.h (language_defn): Add new la_post_parser field.
6101 * parser-defs.h (null_post_parser): New declaration (default for
6104 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
6105 insert call to that function.
6106 (parse_exp_in_context): New function, including code formerly in
6107 parse_exp_1. Calls language-dependent post-parser after
6109 (parse_expression_in_context): New exported function.
6110 (null_post_parser): New definition.
6111 * expression.h (parse_expression_in_context): Add declaration.
6113 * p-lang.c (pascal_language_defn): Add trivial post-parser.
6114 * c-lang.c (c_language_defn): Ditto.
6115 (cplus_language_defn): Ditto.
6116 (asm_language_defn): Ditto.
6117 (minimal_language_defn): Ditto.
6118 * f-lang.c (f_language_defn): Ditto.
6119 * jv-lang.c (java_language_defn): Ditto.
6120 * language.c (unknown_language_defn): Ditto.
6121 (auto_language_defn): Ditto.
6122 (local_language_defn): Ditto.
6123 * m2-lang.c (m2_language_defn): Ditto.
6124 * scm-lang.c (scm_language_defn): Ditto.
6125 * obj-lang.c (objc_language_defn): Ditto.
6127 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6129 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
6130 (amd64nbsd_mcontext_addr): New function.
6131 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
6132 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
6133 with amd64nbsd_r_reg_offset, instead of building it on the fly.
6135 * corelow.c (core_xfer_partial): Fix coding standards violation.
6136 Add support for TARGET_OBJECT_WCOOKIE.
6138 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
6139 deprecated_pc_in_sigtramp.
6140 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
6141 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
6142 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
6143 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
6144 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
6145 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
6146 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
6148 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
6149 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
6152 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
6153 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
6154 (amd64_collect_fxsave): Likewise.
6156 * i386-sol2-tdep.c: Include "gdb_string.h".
6157 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
6159 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6161 2004-04-10 Mark Kettenis <kettenis@gnu.org>
6163 * i386-sol2-tdep.c: Include "solib-svr4.h".
6164 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6165 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
6166 * config/i386/tm-i386sol2.h: Include :solib.h".
6167 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
6168 solib-svr4.o and solib-legacy.o.
6169 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
6172 2004-04-09 Mark Kettenis <kettenis@gnu.org>
6174 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
6175 whether a register is supplied by PTRACE_GETFPREGS.
6176 (store_inferior_registers): Likewise.
6177 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
6178 whether a register is supplied by PT_GETFPREGS.
6179 (store_inferior_registers): Likewise.
6181 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
6182 * config/i386/linux64.mt (TDEPFILES): Likewise.
6184 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
6186 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
6187 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6188 the program counter is in the range specified by `struct
6190 * amd64-linux-tdep.c: Include "symtab.h".
6191 (amd64_linux_pc_in_sigtramp): Remove function.
6192 (amd64_linux_sigtramp_p): New function.
6193 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6194 deprecated_pc_in_sigtramp.
6195 * amd64nbsd-tdep.c: Include "symtab.h".
6196 (amd64nbsd_sigtramp_p): New function.
6197 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6198 deprecated_pc_in_sigtramp.
6199 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
6201 (amd64obsd_pc_in_sigtramp): Remove function.
6202 (amd64obsd_sigtramp_p): New function.
6203 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
6204 deprecated_pc_in_sigtramp.
6205 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
6206 (i386bsd_pc_ins_sigtramp): Remove prototype.
6207 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
6208 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
6209 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
6210 the program counter is in the range specified by `struct
6212 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
6213 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
6214 (i386_go32_pc_in_sigtramp): Remove function.
6215 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
6216 Initialize TDEP->sigtramp_p.
6217 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
6218 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
6219 deprecated_pc_in_sigtramp.
6220 * i386-linux-tdep.c: Adjust comments.
6221 (i386_linux_pc_in_sigtramp): Remove function.
6222 (i386_linux_sigtramp_p): New function.
6223 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
6224 deprecated_pc_in_sigtramp.
6225 * i386-nto-tdep.c: Update copyright year.
6226 (i386nto_pc_in_sigtramp): Remove function.
6227 (i386nto_sigtramp_p): New function.
6228 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
6230 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
6231 deprecated_pc_in_sigtramp.
6232 * i386-sol2-tdep.c: Update copyright year.
6233 (i386_sol2_pc_in_sigtramp): Remove function.
6234 (i386_sol2_sigtramp_p): New function.
6235 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
6236 deprecated_pc_in_sigtramp.
6237 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
6238 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
6239 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6240 deprecated_sigtramp_start and deprecated_sigtramp_end.
6241 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
6242 (i386nbsd_pc_in_sigtramp): Remove function.
6243 (i386nbsd_sigtramp_p): New function.
6244 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6245 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6246 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
6247 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
6248 (i386obsd_pc_in_sigtramp): Remove function.
6249 (i386obsd_sigtramp_p): New function.
6250 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
6252 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
6253 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
6255 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
6256 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
6259 * config/i386/i386aout.mt: Remove file.
6261 * configure.tgt: Remove i[34567]86-*-go32*,
6262 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
6263 and i[34567]86-*-isc*. Set gdb_target to i386 for
6264 i[34567]86-*-netware* and i[34567]86-*-*.
6265 * config/i386/i386.mt: New file.
6266 * config/i386/embed.mt: Remove file.
6267 * config/i386/go32.mt: Remove file.
6268 * config/i386/i386nw.mt: Remove file.
6269 * config/i386/i386v.mt: Remove file.
6270 * config/i386/tm-go32.h: Remove file.
6272 * tui/tui-hooks.c: Include "readline/readline.h" after
6273 "gdb_curses.h" instead of before.
6274 * tui/tui-io.c: Likewise.
6276 * tui/tui.c: Fix typo in comment.
6278 * sparc64-tdep.c (sparc_address_from_register): Remove function.
6280 2004-04-08 Andrew Cagney <cagney@redhat.com>
6282 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
6283 (deprecated_exception_support_initialized): Declare.
6284 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
6285 (initialize_hp_cxx_exception_support)
6286 (child_enable_exception_callback): Update.
6287 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
6288 (deprecated_exception_support_initialized): Rename
6289 deprecated_exception_catchpoints_are_fragile and
6290 deprecated_exception_support_initialized.
6291 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
6293 * symtab.c (deprecated_hp_som_som_object_present): Rename
6294 hp_som_som_object_present.
6295 * symtab.h (deprecated_hp_som_som_object_present): Declare.
6296 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
6297 Update. Delete extern declaration.
6298 * valops.c (hp_som_som_object_present): Ditto.
6299 * parse.c (deprecated_hp_som_som_object_present)
6300 (parse_nested_classes_for_hpacc): Ditto.
6301 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
6302 * hppa-hpux-tdep.c (hp_som_som_object_present)
6303 (initialize_hp_cxx_exception_support): Ditto.
6304 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
6305 * cp-valprint.c (hp_som_som_object_present)
6306 (cp_print_class_method): Ditto.
6307 * c-typeprint.c (hp_som_som_object_present):
6308 (c_type_print_base): Ditto.
6309 * c-exp.y (hp_som_som_object_present): Ditto.
6311 2004-04-08 Andrew Cagney <cagney@redhat.com>
6313 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
6314 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
6315 (frame_unwind_find_by_frame): Re-implement the unwind code so
6316 that it can both prepend and append sniffers. Replace
6317 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
6318 * tramp-frame.c (tramp_frame_append): Use
6319 frame_unwind_prepend_unwinder.
6320 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
6321 frame_unwind_register_unwinder.
6322 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
6324 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
6325 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
6326 (mips_linux_init_abi): Update.
6328 2004-04-08 Kevin Buettner <kevinb@redhat.com>
6330 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
6331 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
6334 2004-04-07 Kevin Buettner <kevinb@redhat.com>
6336 * ia64-tdep.c (elf.h): Don't include.
6337 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
6339 2004-04-07 Jason Molenda (jmolenda@apple.com)
6341 * frame.h: Typeo corrections in comments.
6343 2004-04-07 Jim Blandy <jimb@redhat.com>
6345 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
6348 2004-04-07 Mark Kettenis <kettenis@gnu.org>
6350 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
6351 * config/sparc/linux64.mt (TDEPFILES): Likewise.
6352 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
6353 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
6355 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
6357 * config/sparc/tm-sol2.h: Update copyright year. Include
6360 * sparc-sol2-tdep.c: Update copyright year. Include
6362 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6363 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
6364 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
6365 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
6368 2004-04-06 Andrew Cagney <cagney@redhat.com>
6370 * infttrace.c: Include "infttrace.h".
6371 * infttrace.h: Include "target.h".
6372 * Makefile.in (infttrace_h): Update.
6373 (infttrace.o): Update.
6375 2004-04-06 Andrew Cagney <cagney@redhat.com>
6377 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
6378 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
6379 move extern declarations from here ...
6380 * infttrace.h: ... to here.
6381 * Makefile.in (hppah-nat.o): Update dependencies.
6383 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
6384 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
6385 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
6386 (hppa_breakpoint_from_pc): Delete.
6388 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
6390 2004-04-05 Andrew Cagney <cagney@redhat.com>
6392 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
6393 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
6396 2004-04-06 Randolph Chung <tausq@debian.org>
6398 Committed by Andrew Cagney (mechanical change).
6399 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
6400 exception_catchpoints_are_fragile, find_stub_with_shl_get,
6401 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
6402 child_enable_exception_callback, current_ex_event,
6403 null_symtab_and_line, child_get_current_exception_event,
6404 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
6405 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
6406 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
6407 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
6408 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
6409 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
6410 Move hpux-specific definitions ...
6411 * hppa-hpux-tdep.c: ... to here.
6413 2004-04-05 Andrew Cagney <cagney@redhat.com>
6415 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
6416 skip_prologue_using_sal.
6418 2004-04-05 Andrew Cagney <cagney@redhat.com>
6420 * config/i386/tm-i386.h: Delete file.
6421 * config/i386/tm-vxworks.h: Update copyright, do not include
6423 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
6424 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
6425 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
6426 * config/i386/ncr3000.mt (TM_FILE): Delete.
6427 * config/i386/interix.mt (TM_FILE): Delete.
6428 * config/i386/i386v.mt (TM_FILE): Delete.
6429 * config/i386/i386nw.mt (TM_FILE): Delete.
6430 * config/i386/i386gnu.mt (TM_FILE): Delete.
6431 * config/i386/i386aout.mt (TM_FILE): Delete.
6432 * config/i386/embed.mt (TM_FILE): Delete.
6434 2004-04-05 Kevin Buettner <kevinb@redhat.com>
6436 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
6437 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
6438 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
6439 (accg7_regnum): New constants.
6440 (last_spr_regnum, last_pseudo_regnum): Update.
6441 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
6442 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
6443 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
6445 (frv_register_sim_regno): Update spr_map[].
6447 2004-04-04 Andrew Cagney <cagney@redhat.com>
6449 * config/mips/xm-riscos.h: Delete.
6450 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
6451 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
6452 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
6453 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
6454 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
6455 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
6456 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
6457 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
6458 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
6459 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
6460 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
6461 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
6462 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
6463 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
6464 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
6465 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
6466 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
6467 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
6468 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
6469 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
6470 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
6471 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
6472 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
6473 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
6474 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
6475 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
6477 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
6478 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
6479 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
6480 * configure.host: Remove m680[01]0-sun-sunos3*,
6481 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
6482 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
6483 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
6484 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
6486 * NEWS: Mention removed systems.
6488 2004-04-04 Andrew Cagney <cagney@redhat.com>
6490 GDB 6.1 release created from 6.1 branch.
6492 2004-04-04 Andrew Cagney <cagney@redhat.com>
6494 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
6495 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
6496 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
6498 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
6499 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
6500 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
6502 2004-04-03 Jim Blandy <jimb@redhat.com>
6504 * MAINTAINERS: Chris Faylor has changed employers; add him to
6505 "paper trail" section, and update his E-mail address.
6507 2004-04-03 Andrew Cagney <cagney@redhat.com>
6509 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
6510 generic dummy frames.
6511 * dummy-frame.c: Update copyright.
6512 (dummy_frame_sniffer): Delete check for generic dummy frames.
6514 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
6515 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
6516 (REG_PARM_STACK_SPACE): Delete.
6517 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
6518 Inline reference to REG_PARM_STACK_SPACE.
6520 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
6521 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6522 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
6523 (FRAME_BASE_BEFORE_SIGTRAMP)
6524 (hppa32_hpux_frame_base_before_sigtramp)
6525 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
6526 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
6527 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
6528 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
6529 (FRAME_BASE_BEFORE_SIGTRAMP)
6530 (hppa64_hpux_frame_base_before_sigtramp)
6531 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
6533 2004-04-03 Andrew Cagney <cagney@redhat.com>
6535 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
6537 2004-04-02 Andrew Cagney <cagney@redhat.com>
6539 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
6540 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
6541 * dummy-frame.h: Delete out-of-date comments.
6542 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
6543 * gdbarch.h, gdbarch.c: Re-generate.
6545 2004-04-02 Joel Brobecker <brobecker@gnat.com>
6547 Committed by Andrew Cagney <cagney@redhat.com>.
6548 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
6549 into account an instruction saving a register if we have already
6550 seen an earlier instruction saving that same register.
6552 2004-04-02 Andrew Cagney <cagney@redhat.com>
6554 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
6555 * gdbarch.h, gdbarch.c: Re-generate.
6556 * frame.c (legacy_get_prev_frame): Delete references to
6557 DEPRECATED_INIT_FRAME_PC_FIRST.
6559 * infrun.c (pc_in_sigtramp): Delete function.
6560 (check_sigtramp2): Inline call to pc_in_sigtramp, use
6563 2004-04-02 Andrew Cagney <cagney@redhat.com>
6565 * infrun.c (handle_step_into_function): Delete code conditional on
6567 (handle_inferior_event, step_over_function): Ditto.
6569 2004-04-02 Andrew Cagney <cagney@redhat.com>
6571 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
6572 "previous frame inner to this frame" test.
6574 2004-04-02 Andrew Cagney <cagney@redhat.com>
6576 * frame.c (safe_frame_unwind_memory): New function.
6577 * frame.h (safe_frame_unwind_memory): Declare. Update description
6579 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
6580 "next_frame". Use safe_frame_unwind_memory.
6581 (tramp_frame_sniffer): Update call to tramp_frame_start.
6583 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
6585 * dwarf2read.c (dwarf2_objfile_data_key): New.
6586 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
6587 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
6588 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
6589 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
6590 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
6591 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
6592 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
6594 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
6595 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
6596 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
6597 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
6598 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
6599 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
6601 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
6603 (dwarf2_locate_sections, dwarf2_build_psymtabs)
6604 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
6605 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
6606 (read_partial_die, read_full_die, read_indirect_string)
6607 (dwarf_decode_line_header, dwarf_decode_macros)
6608 (dwarf2_symbol_mark_computed): Remove use of removed macros.
6609 Update uses of removed variables.
6610 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
6612 (_initialize_dwarf2_read): New function.
6613 * symfile.h (dwarf2_has_info): Update prototype.
6614 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
6615 * elfread.c (elf_symfile_read): Likewise.
6617 2004-04-01 Jim Blandy <jimb@redhat.com>
6619 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
6620 function for register numbers on all the rs6000-derived targets.
6621 (rs6000_gdbarch_init): Don't register a separate
6622 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
6623 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
6626 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
6629 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
6631 * valarith.c: Update copyright notice.
6632 (value_add): Handle range types.
6634 (value_equal): Ditto.
6635 (value_less): Ditto.
6637 (value_complement): Ditto.
6638 (value_binop): Simplify slightly by using is_integral_type and
6639 eliminiating unnecessary COERCE_ENUMs.
6641 2004-03-31 Andrew Cagney <cagney@redhat.com>
6643 * frame.h (frame_unwind_id): Declare.
6644 * frame.c (frame_unwind_id): New function.
6645 (get_prev_frame_1): New function.
6646 (frame_debug_got_null_frame): New function.
6647 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
6648 code proper to prev_frame, update description.
6649 * infrun.c (step_over_function): Use frame_unwind_id.
6651 2004-04-31 J. Brobecker <brobecker@gnat.com>
6653 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
6654 (hppa64_push_dummy_call): Likewise.
6656 2004-03-30 Jim Blandy <jimb@redhat.com>
6658 From Ulrich Weigand:
6659 * utils.c (query): Do not use a va_list variable multiple times.
6661 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6663 * Makefile.in (linux_nat_h): Update dependencies.
6664 * configure.in: Check for <gnu/libc-version.h>.
6665 * configure: Regenerate.
6666 * config.in: Regenerate.
6667 * linux-nat.h: Include "target.h". Add waitstatus field to
6669 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
6670 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
6672 (lin_lwp_handle_extended): New function. Handle clone events.
6673 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
6675 (child_wait): Handle clone events.
6676 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
6677 * linux-nat.c (linux_enable_event_reporting): Turn on
6678 PTRACE_O_TRACECLONE.
6679 (linux_handle_extended_wait): Handle clone events.
6680 * thread-db.c: Include <gnu/libc-version.h>.
6681 (struct private_thread_info): Add dying flag.
6682 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
6684 (attach_thread): Update comments. Handle dying threads.
6685 (detach_thread): Set the dying flag.
6686 (check_event): Always call attach_thread.
6688 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
6690 * mips-tdep.c (mips_pdr_data): New.
6691 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
6692 (_initialize_mips_tdep): Initialize mips_pdr_data.
6694 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
6696 * minsyms.c (install_minimal_symbols): Move dropping leading
6697 char from linkage name from here...
6698 (prim_record_minimal_symbol_and_info): ...to here. Simplify
6699 test for "__gnu_compiled*" symbols.
6701 2004-03-28 Jim Blandy <jimb@redhat.com>
6703 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
6704 registers to temp register r0 and byte stores as prologue
6707 2004-03-28 Andrew Cagney <cagney@redhat.com>
6709 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
6712 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
6714 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
6715 and switch the layout to force a display of register window.
6717 2004-02-26 J. Brobecker <brobecker@gnat.com>
6719 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
6720 of the INTEGER class.
6722 2004-03-26 Jim Blandy <jimb@redhat.com>
6724 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
6725 bytes long on PPC GNU/Linux.
6727 2004-03-26 David Carlton <carlton@kealia.com>
6729 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
6731 2004-03-25 Andrew Cagney <cagney@redhat.com>
6733 * PROBLEMS: Add general section titles, remove references to
6736 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
6738 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
6740 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
6741 FP_REGISTER_VIRTUAL_SIZE.
6742 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
6743 of DEPRECATED_REGISTER_RAW_SIZE.
6744 (arm_register_type): Add gdbarch argument.
6745 (arm_register_raw_size, arm_register_virtual_size): Delete.
6746 (arm_register_byte, arm_extract_return_value)
6747 (arm_store_return_value, arm_get_longjmp_target): Update references
6748 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
6749 (arm_gdbarch_init): Likewise. Don't set
6750 deprecated_register_raw_size, deprecated_register_virtual_size,
6751 deprecated_max_register_raw_size,
6752 deprecated_max_register_virtual_size, or
6753 deprecated_max_register_virtual_type. Do set register_type.
6754 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
6755 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
6756 (FP_REGISTER_VIRTUAL_SIZE): Delete.
6757 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
6758 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
6759 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
6761 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
6762 (remote_rdp_store_register): Likewise.
6764 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
6766 * Makefile.in (mips-linux-tdep.o): Update dependencies.
6767 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
6768 to after osabi initialization.
6769 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
6770 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
6772 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
6773 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
6775 (mips_linux_init_abi): Append signal trampoline unwinders.
6777 2004-03-24 Andrew Cagney <cagney@redhat.com>
6779 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
6780 * tramp-frame.c: Include "gdb_assert.h".
6781 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
6783 (tramp_frame_append): Validate the tramp frame's instructions.
6784 * Makefile.in (tramp-frame.o): Update dependencies.
6786 2004-03-23 Andrew Cagney <cagney@redhat.com>
6788 * trad-frame.h (trad_frame_set_reg_addr): Declare.
6790 2004-03-23 Andrew Cagney <cagney@redhat.com>
6792 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
6793 Nasser as past testsuite/lib/ (and other) maintainers.
6795 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6797 * infcmd.c (attach_command): Reread symbols if we already have
6800 2004-03-23 Andrew Cagney <cagney@redhat.com>
6802 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
6804 2004-03-23 Andrew Cagney <cagney@redhat.com>
6806 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
6807 * gdbarch.h, gdbarch.c: Re-generate.
6808 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6809 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6810 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6811 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
6812 (DEPRECATED_SIGTRAMP_START): Update.
6813 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
6814 (DEPRECATED_SIGTRAMP_START): Update.
6815 * blockframe.c (find_pc_sect_partial_function): Update.
6816 * arch-utils.c (legacy_pc_in_sigtramp): Update.
6818 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
6820 * remote.c (remote_open_1): Reopen the exec file and reread symbols
6823 2004-03-23 Andrew Cagney <cagney@redhat.com>
6825 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
6826 predicate, deprecate.
6827 * gdbarch.h, gdbarch.c: Re-generate.
6828 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
6829 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
6830 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
6831 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
6832 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
6833 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
6834 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
6835 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
6836 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
6837 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
6838 * blockframe.c (find_pc_partial_function): Update.
6839 * breakpoint.c (bpstat_what): Update.
6840 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
6841 * frv-linux-tdep.c (frv_linux_init_abi): Update.
6842 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
6843 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
6844 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6845 * i386-linux-tdep.c (i386_linux_init_abi): Update.
6846 * i386-nto-tdep.c (i386nto_init_abi): Update.
6847 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
6848 * i386-tdep.c (i386_sigtramp_frame_sniffer)
6849 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
6850 * i386bsd-tdep.c (i386bsd_init_abi): Update.
6851 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
6852 * i386obsd-tdep.c (i386obsd_init_abi): Update.
6853 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
6854 * infrun.c (pc_in_sigtramp): Update.
6855 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
6856 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6857 * mips-tdep.c (mips_gdbarch_init): Update.
6858 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
6859 * ppc-linux-tdep.c: Update comment.
6860 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
6861 * shnbsd-tdep.c (shnbsd_init_abi): Update.
6862 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
6863 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
6864 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
6865 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
6866 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
6867 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
6868 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
6869 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
6871 2004-03-23 Andrew Cagney <cagney@redhat.com>
6873 * tramp-frame.h, tramp-frame.h: New files.
6874 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
6875 Update rules to include "tramp-frame.h" and "tramp-frame.c".
6877 * Makefile.in: Update all dependencies.
6879 2004-03-23 Andrew Cagney <cagney@redhat.com>
6881 * Makefile.in (trad_frame_h): Add $(frame_h).
6882 * trad-frame.h: Update copyright. Include "frame.h".
6883 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
6884 (trad_frame_set_id, trad_frame_get_id): Declare.
6885 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
6886 * trad-frame.c: Update copyright.
6887 (struct trad_frame_cache): Define.
6888 (trad_frame_cache_zalloc): New function.
6889 (trad_frame_set_id, trad_frame_get_id): New functions.
6890 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
6892 2004-03-22 Andrew Cagney <cagney@redhat.com>
6894 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
6895 s390_pltstub_unwind_cache.
6896 (s390_stub_frame_unwind_cache): Rename
6897 s390_pltstub_frame_unwind_cache.
6898 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
6899 (s390_stub_frame_prev_register): Rename
6900 s390_pltstub_frame_prev_register.
6901 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
6902 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
6904 From Ulrich Weigand:
6905 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
6906 pointer calls like PLT calls.
6908 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6910 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
6911 PC rather than the partial function start address. Use the start
6912 address to sanity check the found PDR.
6914 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
6916 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
6917 linux_handle_extended_wait.
6919 2004-03-22 Andrew Cagney <cagney@redhat.com>
6921 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
6924 * frame.h (generic_pop_current_frame): Delete declaration.
6925 (deprecate_pop_dummy_frame): Deprecate
6926 generic_pop_dummy_frame.
6927 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
6928 (generic_pop_current_frame): Delete function.
6929 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
6930 generic_pop_current_frame.
6931 * v850-tdep.c (v850_pop_frame): Update.
6932 * mcore-tdep.c (mcore_pop_frame): Update.
6933 * sh64-tdep.c (sh64_pop_frame): Update.
6934 * h8300-tdep.c (h8300_pop_frame): Update.
6936 2004-03-22 Andrew Cagney <cagney@redhat.com>
6938 * frame.h (deprecated_pc_in_call_dummy): Rename
6939 generic_pc_in_call_dummy.
6940 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
6941 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
6942 generic_pc_in_call_dummy.
6943 (pc_in_dummy_frame): Make static.
6944 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
6945 * gdbarch.h, gdbarch.c: Re-generate.
6946 * dummy-frame.c (dummy_frame_sniffer): Simplify.
6947 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
6948 (legacy_get_prev_frame): Ditto.
6949 * inferior.h: Delete reference to generic_pc_in_call_dummy in
6952 2004-03-21 Andrew Cagney <cagney@redhat.com>
6954 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
6955 declaration and out-of-date comment.
6956 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
6958 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
6959 deprecated_pc_in_call_dummy.
6961 * infrun.c (handle_inferior_event): For non legacy frames, use the
6962 frame ID and frame type to identify a signal trampoline. Update
6965 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
6967 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
6968 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
6970 2004-03-21 Andrew Cagney <cagney@redhat.com>
6972 * frame-unwind.h: Update copyright.
6973 (struct frame_data): Add opaque declaration.
6974 (frame_sniffer_ftype): Declare.
6975 (struct frame_unwind): Add "unwind_data" and "sniffer".
6976 (frame_unwind_register_unwinder): Declare.
6977 (frame_unwind_find_by_frame): Add parameter "this_cache".
6978 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
6979 (legacy_get_prev_frame, legacy_get_prev_frame)
6980 (get_frame_type): Pass the prologue_cache to
6981 frame_unwind_find_by_frame.
6982 * frame-unwind.c (struct frame_unwind_table_entry): Add field
6984 (frame_unwind_register_unwinder): New function.
6985 (frame_unwind_find_by_frame): Handle an unwind sniffer.
6987 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
6989 * bcache.c (print_percentage): Use floating point to avoid
6990 incorrect results when portion*100 overflows.
6992 2004-03-19 Kevin Buettner <kevinb@redhat.com>
6994 * ppc_tdep.h (ppc_linux_frame_saved_pc)
6995 (ppc_linux_init_extra_frame_info)
6996 (ppc_linux_frameless_function_invocation)
6997 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
6998 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
6999 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
7000 (rs6000_frame_chain): Delete declarations.
7001 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
7002 (ppc_linux_init_extra_frame_info)
7003 (ppc_linux_frameless_function_invocation)
7004 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
7005 (ppc_linux_init_abi): Remove registration of above deleted functions.
7006 * rs6000-tdep.c (rs6000_init_extra_frame_info)
7007 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
7008 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
7009 (rs6000_pop_frame, rs6000_frameless_function_invocation)
7010 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
7011 (rs6000_gdbarch_init): Remove registration of above deleted functions.
7012 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
7013 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
7014 frame management for all OSABIs.
7016 2004-03-19 Andrew Cagney <cagney@redhat.com>
7018 Committed by Kevin Buettner <kevinb@redhat.com>.
7020 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
7022 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
7023 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
7024 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
7025 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
7026 unwinders. #ifdef legacy frame code.
7027 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
7029 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
7030 (struct rs6000_frame_cache, rs6000_frame_cache)
7031 (rs6000_frame_this_id, rs6000_frame_prev_register)
7032 (rs6000_frame_sniffer, rs6000_frame_unwind)
7033 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
7034 (rs6000_frame_base): Implement a traditional frame unwinder.
7035 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
7038 2004-03-19 Kevin Buettner <kevinb@redhat.com>
7040 * breakpoint.c (adjust_breakpoint_address): Don't adjust
7041 breakpoint address for watchpoints or the catch eventpoints.
7042 Add new paramter ``bptype''. Adjust all callers.
7044 2004-03-19 Andrew Cagney <cagney@redhat.com>
7046 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
7048 * PROBLEMS: Delete note that ARM does not use frame code, problem
7051 2004-03-18 Andrew Cagney <cagney@redhat.com>
7053 * stack.c (return_command): Delete code wrapped in #ifdef
7054 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
7056 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
7058 2004-03-18 Andrew Cagney <cagney@redhat.com>
7060 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
7061 DEPRECATED_IN_SIGTRAMP.
7062 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7063 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
7064 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7065 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7066 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7067 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7068 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7069 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
7070 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
7071 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
7073 2004-03-18 Andrew Cagney <cagney@redhat.com>
7075 * frame-base.c: Update copyright. Include "gdb_obstack.h".
7076 (struct frame_base_table_entry): Define.
7077 (struct frame_base_table): Re-implement as a linked list.
7078 (frame_base_init): Re-implement.
7079 (frame_base_table): Delete function.
7080 (append_predicate): Delete function.
7081 (frame_base_append_sniffer): Update.
7082 (frame_base_set_default): Update.
7083 (frame_base_find_by_frame): Update.
7084 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
7085 * Makefile.in (frame-base.o): Update dependencies.
7087 2004-03-17 Andrew Cagney <cagney@redhat.com>
7089 * frame.c (legacy_get_prev_frame): Pass correct frame to
7090 frame_unwind_find_by_frame.
7092 2004-03-17 David Carlton <carlton@kealia.com>
7094 * NEWS: Mention C++ nested types and namespaces
7096 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
7098 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
7099 and "Regressions since gdb 5.3.". Add known regressions since
7102 2004-03-16 David Carlton <carlton@kealia.com>
7104 * dwarf2read.c (process_structure_scope): Process children even
7105 when we're a declaration.
7107 2004-03-16 Andrew Cagney <cagney@redhat.com>
7109 * symtab.h (find_pc_sect_partial_function): Delete declaration.
7110 * blockframe.c (find_pc_partial_function)
7111 (find_pc_sect_partial_function): Merge into a single
7112 find_pc_partial_function.
7114 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7116 * i386bsd-nat.c: s/regno/regnum/g.
7117 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
7119 (store_inferior_registers): Likewise.
7121 2004-03-16 Mark Kettenis <kettenis@gnu.org>
7123 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
7125 (store_inferior_registers): Call i387_collect_fsave and
7126 i387_collect_fxsave instead of i387_fill_fsave and
7129 2004-03-15 Andrew Cagney <cagney@redhat.com>
7131 * Makefile.in (frame-unwind.o): Update dependencies.
7132 * frame-unwind.c: Include "gdb_obstack.h".
7133 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
7135 (append_predicate): Delete function.
7136 (struct frame_unwind_table_entry): New structure.
7137 (struct frame_unwind_table): Replace "sniffer" with "head" and
7139 (frame_unwind_append_sniffer): Update.
7140 (frame_unwind_find_by_frame): Update.
7141 (_initialize_frame_unwind): Registe frame_unwind_init using
7142 gdbarch_data_register_pre_init.
7144 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7146 * i386bsd-nat.c: Update copyright year.
7147 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
7148 define unconditionally.
7150 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7152 * i387-tdep.h (i387_collect_fsave): New prototype.
7153 * i387-tdep.c (i387_collect_fsave): New function containing most
7154 of the code from i387_fill_fsave.
7155 (i387_fill_fsave): Call i387_collect_fsave.
7157 2004-03-15 Mark Kettenis <kettenis@gnu.org>
7159 * i386-linux-tdep.c: Update copyright year.
7160 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
7161 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
7162 svr4_ilp32_link_map_offsets instead of
7163 i386_linux_svr4_fetch_link_map_offsets.
7165 2004-03-15 David Carlton <carlton@kealia.com>
7167 Fix for PR c++/1553:
7168 * dwarf2read.c (read_structure_type): Determine type name by
7169 calling determine_class_name.
7170 (determine_class_name): New.
7171 (determine_prefix): Look at TYPE_TAG_NAME and call
7172 determine_class_name when appropriate.
7173 (determine_prefix_aux, class_name): Delete.
7174 (read_namespace): Set die->type.
7176 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7178 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
7179 unused macro definition. The definition in target.h (or perhaps
7180 elsewhere) takes precedence.
7182 2004-03-15 Andrew Cagney <cagney@redhat.com>
7184 * ppc-tdep.h: Update copyright.
7185 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
7186 function signatures to match "regsets.h".
7187 * ppc-linux-tdep.c: Include "regset.h".
7188 (ELF_GREGSET_SIZE): Delete.
7189 (right_supply_register): New function.
7190 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
7191 using right_supply_register.
7192 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
7194 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
7195 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
7196 (_initialize_ppc_linux_tdep): Do not register
7197 ppc_linux_regset_core_fns.
7198 (ppc_linux_regset_from_core_section): Replace
7199 fetch_core_registers.
7200 (ppc_linux_regset_core_fns): Delete.
7201 * ppc-linux-nat.c: (right_fill_reg): New function.
7202 (supply_gregset): Update call to ppc_linux_supply_gregset.
7203 (fill_gregset): Clear the register set, use right_fill_reg.
7204 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
7205 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
7207 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
7210 2004-03-15 Andrew Cagney <cagney@redhat.com>
7212 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
7213 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
7214 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
7215 and register_gdbarch_data.
7216 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
7217 (struct gdbarch_data): Replace "init" by "pre_init" and
7219 * gdbarch.h, gdbarch.c: Re-generate.
7220 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
7221 with"obstack", use OBSTACK_ZALLOC.
7222 (dwarf2_frame_ops): Delete.
7223 (dwarf2_frame_set_init_reg): Use gdbarch_data.
7224 (dwarf2_frame_init_reg): Use gdbarch_data.
7225 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
7226 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
7227 (_initialize_svr4_solib): Update.
7228 * user-regs.c (_initialize_user_regs): Update.
7229 * reggroups.c (_initialize_reggroup): Update.
7230 * regcache.c (_initialize_regcache): Update.
7231 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
7232 * libunwind-frame.c (_initialize_libunwind_frame): Update.
7233 * gnu-v3-abi.c (init_gnuv3_ops): Update.
7234 * frame-unwind.c (_initialize_frame_unwind): Update.
7235 * frame-base.c (_initialize_frame_base): Update.
7236 * user-regs.c (user_reg_add): Update.
7237 * reggroups.c (reggroup_add): Update.
7238 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
7239 * libunwind-frame.c (libunwind_frame_set_descr): Update.
7240 * frame-unwind.c (frame_unwind_append_sniffer): Update.
7241 * frame-base.c (frame_base_table): Update.
7242 * remote.c (_initialize_remote): Update.
7243 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
7245 2004-03-15 Andrew Cagney <cagney@redhat.com>
7247 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
7249 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7251 * Makefile.in (frv-linux-tdep.o): Add dependencies.
7252 * frv-linux-tdep.c: New file.
7253 * frv-tdep.c (struct gdbarch_tdep): Add new field
7254 ``sigcontext_reg_addr''.
7255 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
7256 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
7257 (frv_sigramp_frame_sniffer): New functions.
7258 (frv_sigtramp_frame_unwind): New static global.
7259 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
7261 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
7262 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
7264 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7266 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
7267 but not via a call to error(), when unable to read memory.
7269 2004-03-15 Kevin Buettner <kevinb@redhat.com>
7271 * frv-tdep.c (frv_call_dummy_words): Delete.
7272 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
7274 2004-03-15 Andrew Cagney <cagney@redhat.com>
7276 * infrun.c (handle_step_into_function, step_over_function): Only
7277 update and use STEP_FRAME_ID when the system is using legacy
7278 frames. Update comments.
7280 2004-03-14 Mark Kettenis <kettenis@gnu.org>
7282 * amd64-linux-tdep.h: Remove file.
7283 * amd64-linux-tdep.c: Don't include "inferior.h" and
7284 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
7285 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
7286 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
7287 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
7288 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
7290 (user_to_gdb_regmap): Remove variable.
7291 (amd64_linux_gregset_reg_offset): New variable.
7292 (amd64_core_fns): Remove variable.
7293 (fetch_core_registers): Remove function.
7294 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
7296 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
7297 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
7298 * Makefile.in (amd64_linux_tdep_h): Remove.
7299 (amd64-linux-nat.o): Update dependencies.
7300 (amd64-linux-tdep.o): Update dependencies.
7302 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
7303 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
7305 (fetch_inferior_registers, store_inferior_registers): Rewrite.
7307 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
7308 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
7310 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
7312 * dwarf2read.c (read_structure_type): Rename from
7313 read_structure_scope. Don't create a symbol or call process_die.
7314 Return immediately if die->type is set. Call read_type_die before
7315 dwarf2_add_member_fn.
7316 (process_structure_scope): New function.
7317 (read_enumeration_type, process_enumeration_scope): New functions,
7318 broken out from read_enumeration. Don't create the enumeration
7319 type if it has already been created.
7320 (read_enumeration): Removed.
7321 (process_die): Call read_structure_type, process_structure_scope,
7322 read_enumeration_type, and process_enumeration_scope. Just call
7323 new_symbol for base and subrange types. Add a comment about other
7325 (read_type_die): Call read_enumeration_type.
7326 (add_partial_structure, new_symbol): Update comments.
7328 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7330 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
7332 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
7334 * tui/tui-win.h (tui_get_cmd_list): Declare.
7335 * tui/tui-win.c (tui_command): New function.
7336 (tui_get_cmd_list): New function.
7337 (_initialize_tui_win): Moved initialization of tui command in
7340 * tui/tui-data.c (init_content_element): Setup new data members.
7341 (init_win_info): Likewise.
7342 (free_content_elements): Free it.
7343 * tui/tui-data.h (struct tui_data_element): Store the register
7345 (struct tui_data_info): Keep the current register group.
7347 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
7349 * tui/tui-regs.h (tui_show_registers): Update prototype.
7350 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
7351 (tui_resize_all): No need to calculate anything for register window.
7352 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
7353 (tui_set_register_element, tui_set_general_regs_content): Remove.
7354 (tui_set_special_regs_content): Remove.
7355 (tui_set_general_and_special_regs_content): Remove.
7356 (tui_set_float_regs_content): Remove.
7357 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
7358 (tui_set_regs_content): Remove.
7359 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
7360 (tui_v_show_registers_command_support): Remove.
7361 (tui_show_registers): Use a reggroup to specify the registers to show.
7362 (tui_show_register_group): New function.
7363 (tui_display_registers_from): Compute the layout of register window
7364 and refresh with new API; be sure to delete old register windows.
7365 (tui_check_register_values): Update to use tui_get_register and
7367 (tui_display_register): Just refresh the register window part.
7368 (tui_register_format): Format registers and save in tui_data_element.
7369 (tui_get_register): New to combine tui_reg_value_has_changed and
7370 tui_get_register_raw_value; fix to use the new gdb API.
7371 (tui_show_float_command): Renamed tui_reg_float_command.
7372 (tui_show_general_command): Renamed tui_reg_general_command.
7373 (tui_show_special_command): Renamed tui_reg_system_command.
7374 (_initialize_tui_regs): Remove unused commands.
7376 2004-03-13 Mark Kettenis <kettenis@gnu.org>
7378 * NEWS (New native configurations): Mention OpenBSD/amd64.
7380 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
7381 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
7383 * config/i386/nm-fbsd64.h: Likewise.
7384 * config/i386/nm-obsd.h: Likewise.
7385 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
7386 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
7388 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7390 * frv-tdep.c (set_variant_scratch_registers): New function.
7391 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
7394 From Richard Sandiford <rsandifo@redhat.com>:
7395 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
7397 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7399 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
7400 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
7401 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
7402 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
7403 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
7404 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
7405 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
7406 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
7407 definitions from frv-tdep.c to frv-tdep.h.
7409 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7411 Add shared library support for FR-V FDPIC ABI:
7412 * Makefile.in (solib-frv.o): Add dependencies.
7413 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
7415 (frv_push_dummy_call): Add support for FDPIC ABI.
7416 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
7418 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
7419 (frv_fdpic_find_canonical_descriptor): Declare.
7420 * solib-frv.c: New file.
7421 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
7422 * config/frv/tm-frv.h (solib.h): Include.
7424 2004-03-12 Kevin Buettner <kevinb@redhat.com>
7426 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
7427 (frv-tdep.o): Update dependencies.
7428 * frv-tdep.h: New file.
7429 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
7430 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
7432 (struct gdbarch_tdep): Add new member ``frv_abi''.
7433 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
7435 (new_variant): Set ``frv_abi'' field.
7436 (gdb_arch_init): Detect FDPIC executables.
7438 2004-03-12 Mark Kettenis <kettenis@gnu.org>
7440 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
7443 2004-03-11 Andrew Cagney <cagney@redhat.com>
7445 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
7447 2004-03-11 Kevin Buettner <kevinb@redhat.com>
7449 * solist.h (master_so_list): New function.
7450 * solib.c (master_so_list): Likewise.
7451 * solib-svr4.c (enable_break): Iterate over so_list entries
7452 obtained from master list instead of entries obtained directly
7453 via svr4_current_sos().
7455 2004-03-10 Ben Elliston <bje@gnu.org>
7457 * MAINTAINERS: Update my mail address.
7459 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
7461 * remote-m32r-sdi.c: Support hardware watchpoint.
7463 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7465 * user-regs.c: Update copyright years.
7466 (struct user_regs): Rename to gdb_user_regs.
7467 (append_user_reg, builtin_user_regs, user_regs_init)
7468 (user_reg_add, user_reg_map_name_to_regnum)
7469 (usernum_to_user_reg): Update.
7471 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7473 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
7474 (skip_children): New functions.
7475 (locate_pdi_sibling): Call skip_children.
7477 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7479 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
7480 * gdbtypes.c (check_typedef): Update comments.
7482 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7484 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
7485 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
7486 pointer. Update comment about comp_unit_head.
7487 (struct abbrev_info): Shorten two int flags.
7488 (dwarf_alloc_abbrev): Take a CU argument.
7489 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
7490 each time through the loop. Update cleanup argument.
7491 (psymtab_to_symtab_1): Update cleanup call.
7492 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
7494 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
7495 Just call obstack_free and clear the pointer.
7497 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7499 * infrun.c (handle_inferior_event): Remove short-circuit code for
7500 events in a different thread.
7502 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7504 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
7505 print the whole transfer.
7506 (initialize_targets): Update description of "set debug target".
7508 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
7510 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
7512 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
7514 * MAINTAINERS (write after approval): Add myself.
7516 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7518 * sh-tdep.c (sh_print_registers_info): Use for loop.
7519 Don't skip multiple registers when a float register is encountered.
7521 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
7524 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
7525 to official SH documentation.
7527 2004-03-07 Andrew Cagney <cagney@redhat.com>
7529 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
7532 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
7534 * arm-tdep.c (thumb_get_next_pc): Handle BX.
7535 (arm_get_next_pc): Handle BX and BLX.
7537 2004-03-07 Andrew Cagney <cagney@redhat.com>
7539 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
7540 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
7542 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
7543 (hppa_target_read_fp): Delete.
7544 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
7545 register_virtual_size, max_register_raw_size,
7546 max_register_virtual_size, register_byte, register_size,
7547 target_read_fp, fp_regnum, and register_bytes. Set register_type
7548 instead of register_virtual_type.
7549 (hppa32_register_type, hppa64_register_type): Replace
7550 hppa32_register_virtual_type and hppa64_register_virtual_type.
7551 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
7552 (HPPA_FP_REGNUM): Define.
7554 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
7556 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
7557 (pa_do_registers_info): Delete.
7558 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
7559 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
7560 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
7562 * infcall.c (legacy_push_dummy_code): Delete #ifdef
7563 GDB_TARGET_IS_HPPA code.
7564 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
7565 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
7566 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
7567 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
7568 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
7569 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
7570 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
7571 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
7572 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
7573 (hppa_frameless_function_invocation, hppa64_store_return_value)
7574 (hppa_store_struct_return, hppa64_extract_return_value)
7575 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
7576 (hppa32_call_dummy_length, hppa64_call_dummy_length)
7577 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
7578 (find_proc_framesize, deposit_21, restore_pc_queue)
7579 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
7580 (rp_saved, pc_in_linker_stub): Delete.
7582 Unconditionally enable 64-bit frame and ABI code.
7583 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
7584 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
7585 push_dummy_frame, fix_call_dummy, push_arguments,
7586 call_dummy_location, extract_return_value, use_struct_convention,
7587 store_return_value, store_struct_return, saved_pc_after_call,
7588 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
7589 frame_chain, frame_chain_valid, frameless_function_invocation,
7590 frame_saved_pc, and pop_frame.
7592 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
7593 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
7594 (hppa_gdbarch_init): Do not set PC_REGNUM.
7596 2004-03-06 Mark Kettenis <kettenis@gnu.org>
7598 * config/alpha/tm-fbsd.h: Remove file.
7599 * config/alpha/fbsd.mt: Tweak comment.
7600 (TM_FILE): Set to tm-alpha.h.
7602 2004-03-05 Andrew Cagney <cagney@redhat.com>
7604 * infrun.c (step_over_function): When non-legacy code, and no
7605 step_frame_id, use the unwinder to get the caller's frame ID.
7607 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7609 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
7610 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
7611 bfd_arch_unknown. Adjust comment.
7613 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
7614 * i386obsd-tdep.c: Correct spelling in comment.
7615 * i386nbsd-tdep.c: Correct spelling in comment.
7616 * sparc-tdep.c: Correct spelling in comments.
7618 2004-03-05 David Carlton <carlton@kealia.com>
7620 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
7623 2004-03-05 Mark Kettenis <kettenis@gnu.org>
7625 * sparc-tdep.c: Fix typo in comment.
7627 2004-03-04 J. Brobecker <brobecker@gnat.com>
7629 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
7631 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
7633 * dwarf2read.c: Add comment describing memory lifetimes.
7634 (struct dwarf2_pinfo): Update comment.
7635 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
7636 (read_enumeration, new_symbol): Don't use obsavestring.
7638 2004-03-04 Mark Kettenis <kettenis@gnu.org>
7640 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
7641 instead of amd64_fill_fxsave.
7642 * amd64bsd-nat.c (store_inferior_registers): Likewise.
7643 * amd64fbsd-nat.c (fill_fpregset): Likewise.
7645 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
7646 Reorganize code a bit.
7648 2004-03-04 Orjan Friberg <orjanf@axis.com>
7650 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
7651 when the frame pointer is pushed. Don't set the frame pointer's
7652 address on the stack unless it's actually located there.
7653 Set the SRP's address on the stack correctly when the PC is still in
7655 (cris_return_value): New function.
7656 (cris_gdbarch_init): Clear deprecated store_return_value,
7657 extract_return_value.
7659 2004-03-02 Jim Blandy <jimb@redhat.com>
7661 * stabsread.c (reg_value_complaint): The maximum register number
7662 is one less than the number of registers.
7664 2004-03-02 Andrew Cagney <cagney@redhat.com>
7666 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
7667 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
7668 trailing comma and redundant assignment of I386_ST0_REGNUM.
7669 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
7670 32-bit segment registers.
7672 2004-03-01 Andrew Cagney <cagney@redhat.com>
7674 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
7675 use frame_relative_level and get_next_frame.
7677 2004-02-29 Andrew Cagney <cagney@redhat.com>
7679 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
7680 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
7681 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
7684 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7686 * inflow.c (terminal_inferior): Don't give up the terminal if we
7687 previously couldn't get the inferior's terminal state.
7689 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
7691 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
7694 2004-02-28 Andrew Cagney <cagney@redhat.com>
7696 * NEWS: Refer to GDB 6.1.
7697 * README: Refer to GDB 6.1.
7698 * PROBLEMS: Refer to GDB 6.1.
7700 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
7702 * thread-db.c (disable_thread_signals): Remove unused function.
7704 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7706 * amd64-nat.c: Include "gdb_string.h".
7707 (amd64_collect_native_gregset): Zero-extend the 32-bit
7708 general-purpose registers and %eip.
7710 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
7711 * amd64-tdep.c (amd64_collect_fxsave): New function.
7712 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
7714 * i387-tdep.h: Update copyright year.
7715 (i387_collect_fxsave): New prototype.
7716 * i387-tdep.c: Update copyright year.
7717 (i387_collect_fxsave): New function containing most of the code
7718 from i387_fill_fxsave.
7719 (i387_fill_fxsave): Call i387_collect_fxsave.
7721 2004-02-28 Andrew Cagney <cagney@redhat.com>
7723 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
7724 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
7726 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7728 * amd64-tdep.c (amd64_frame_cache): Fix comment.
7730 2004-02-28 Andrew Cagney <cagney@redhat.com>
7732 * utils.c: Use "", instead of <>, to include readline.
7733 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
7734 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
7735 * source.c, solib.c, exec.c, event-top.c: Ditto.
7736 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
7737 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
7738 * Makefile.in: Update all dependencies.
7739 (readline_tilde_h, readline_history_h): Define.
7740 (readline_headers): Delete.
7742 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7744 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
7745 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
7746 "config/i386/tm-lx64.h".
7748 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
7749 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
7750 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
7752 2004-02-28 Andrew Cagney <cagney@redhat.com>
7754 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
7756 * breakpoint.c (_initialize_breakpoint): Use
7757 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
7758 Add help to show command.
7760 2004-02-28 Mark Kettenis <kettenis@gnu.org>
7762 * i386-nat.c: Reformat to be closer to coding standards.
7763 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
7764 `retval'. Make variables `align' and `size' local to while-loop.
7765 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
7766 (_initialize_i386_nat): New prototype.
7768 * tui/tui.c: Include <readline/readline.h> instead of
7769 "readline/readline.h". Include it after <term.h> and
7772 2004-02-27 Andrew Cagney <cagney@redhat.com>
7774 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
7775 the new frame unwind code.
7776 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
7777 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
7780 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
7781 "return_value" and "push_dummy_call".
7782 (hppa32_use_struct_convention): Delete unused function.
7783 (hppa32_store_return_value): Delete unused function.
7784 (hppa32_extract_return_value): Delete unused function.
7785 (hppa32_stack_align): Delete function.
7787 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
7789 * coffread.c (enter_linenos): Don't let rawptr reference memory
7790 outside linetab[]'s limits.
7792 2004-02-27 Andrew Cagney <cagney@redhat.com>
7794 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
7795 inferior stack space - the stack needs to grow upwards.
7796 (hppa32_frame_align): New function.
7797 (hppa64_frame_align): Replace hppa_frame_align.
7798 (hppa_gdbarch_init): Update.
7800 2004-02-26 Orjan Friberg <orjanf@axis.com>
7802 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
7803 (dwarf2-frame.h): Include.
7804 (enum cris_regnums): New enum CRIS_FP_REGNUM.
7805 Remove static variables related to ABI setting.
7806 (struct gdbarch_tdep): Remove cris_abi member.
7807 (struct frame_extra_info): Remove.
7808 (cris_unwind_cache, stack_item): New structs.
7809 (cris_frame_unwind, cris_frame_base): New variables.
7810 (push_stack_item, pop_stack_item)
7811 (cris_frame_unwind_cache, cris_frame_this_id)
7812 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
7813 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
7814 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
7815 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
7816 (cris_reg_struct_has_addr): New functions.
7817 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
7818 (cris_frame_saved_pc, cris_saved_pc_after_call,
7819 (cris_store_struct_return, cris_frameless_function_invocation)
7820 (cris_pop_frame, cris_skip_prologue_main)
7821 (cris_abi_original_store_return_value)
7822 (cris_abi_v2_store_return_value)
7823 (cris_abi_original_extract_return_value)
7824 (cris_abi_v2_extract_return_value)
7825 (cris_abi_original_reg_struct_has_addr)
7826 (cris_abi_v2_reg_struct_has_addr)
7827 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
7828 (cris_push_return_address, cris_abi_update): Remove.
7829 (_initialize_cris_tdep): Remove ABI command.
7830 (cris_dump_tdep): Ditto.
7831 (cris_gdbarch_init): Remove ABI command.
7832 Set store_return_value, extract_return_value, push_dummy_code,
7833 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
7834 frame_unwind_append_sniffer, frame_base_set_default.
7835 Clear deprecated init_frame_pc, push_arguments, store_return_value,
7836 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
7837 sizeof_call_dummy_words, get_saved_register, push_return_address,
7838 pop_frame, store_struct_return, frame_init_saved_regs,
7839 init_extra_frame_info, frameless_function_invocation, frame_chain,
7840 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
7843 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7845 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
7846 * valprint.c (print_hex_chars): Change from static to external.
7847 (print_char_chars): New function.
7848 * printcmd.c (print_scalar_formatted): For integer and enum types
7849 that are longer than LONGEST, perform processing via appropriate
7850 print_*_chars routines.
7852 2004-02-26 Andrew Cagney <cagney@redhat.com>
7854 * Makefile.in: Update dependencies.
7855 Changes from Ulrich Weigand,
7856 * s390-tdep.c: Include "dwarf2-frame.h".
7857 (s390_dwarf2_frame_init_reg): New function.
7858 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
7859 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
7861 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
7863 * breakpoint.c (pending_break_support): New setting variable.
7864 (break_command_1): Account for pending_break_support setting
7865 when creating pending breakpoints.
7866 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
7867 (_initialize_breakpoint): Add "set breakpoint pending" and
7868 "show breakpoint pending" commands.
7870 2004-02-26 Andrew Cagney <cagney@redhat.com>
7873 * charset.c (backslashable, backslashed, represented): Remove 'e'
7874 from list of escaped characters, not part of ISO-C.
7876 2004-02-25 J. Brobecker <brobecker@gnat.com>
7878 From Peter Schauer <schauer@pdf.de>:
7879 * tui/tui.c: Move system header includes after local includes.
7880 Fixes a build failure on solaris systems.
7882 2004-02-25 J. Brobecker <brobecker@gnat.com>
7884 * configure.in: Refine the previous change.
7885 * configure: Regenerate.
7887 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7889 * amd64-tdep.h: Renamed from x86-64-tdep.h.
7890 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
7891 "amd64-tdep.h" instead of "x86-64-tdep.h".
7892 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7893 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
7894 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
7895 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7896 and "x86-64-tdep.c".
7897 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
7898 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
7899 and "x86-64-tdep.c".
7900 * amd64bsd-nat.c: Update copyright year.
7901 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
7902 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
7904 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
7906 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
7908 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
7910 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
7912 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
7914 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
7915 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
7916 * Makefile.in (amd64_linux_tdep_h): Renamed from
7917 x86_64_linux_tdep_h.
7918 (amd64_tdep_h): Renamed from x86_64_tdep_h.
7919 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
7920 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
7921 (amd64obsd-tdep.o): Update dependencies.
7922 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
7924 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
7926 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
7927 amd64-linux-nat.c amd64-linux-tdep.c.
7928 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
7929 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
7930 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
7931 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
7932 amd64-tdep.o and amd64-linux-tdep.o.
7933 (TM_FILE): Set to tm-linux64.h.
7934 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
7935 (NAT_FILE): Set to nm-linux64.h.
7936 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
7937 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7939 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7941 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
7944 2004-02-25 Roland McGrath <roland@redhat.com>
7946 * remote.c (remote_protocol_qPart_auxv): New variable.
7947 (init_all_packet_configs): Initialize it.
7948 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
7949 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
7950 (show_remote_cmd): Call it.
7951 (_initialize_remote): Initialize commands.
7952 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
7953 service TARGET_OBJECT_AUXV requests.
7955 2004-02-25 J. Brobecker <brobecker@gnat.com>
7957 * configure.in: Make sure that the wborder function is available.
7958 Otherwise, search for it in the cur_colr library.
7959 * configure: Regenerate.
7961 2004-02-25 Andrew Cagney <cagney@redhat.com>
7963 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
7965 2004-02-25 Mark Kettenis <kettenis@gnu.org>
7967 * config/i386/tm-x86-64linux.h: Tweak comments.
7969 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
7971 * MAINTAINERS: Add self to write-after-approval list.
7973 2004-02-25 Andrew Cagney <cagney@redhat.com>
7975 PR cli/1566. Problem found, and fix suggested by David Allan.
7976 * cli/cli-script.c (execute_control_command): Unconditionally
7977 install a cleanup. Default "ret" to "invalid_control". Use
7978 "break" instead of "return" to escape from the switch.
7980 2004-02-24 J. Brobecker <brobecker@gnat.com>
7982 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
7983 with the lines macro defined in term.h on AiX.
7984 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
7985 a collision with the label_width macro defined in term.h on AiX.
7987 2004-02-23 David Mosberger <davidm@hpl.hp.com>
7989 Committed by Kevin Buettner <kevinb@redhat.com>.
7991 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
7992 * ia64-tdep.c (ia64_write_pc): Make it a global function.
7993 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
7994 instead of ia64_write_pc().
7995 * ia64-linux-tdep.c (regcache.h): Include.
7996 (ia64_linux_write_pc): New function.
7998 2004-02-23 Roland McGrath <roland@redhat.com>
8000 * auxv.c (info_auxv_command): Fix typos in error messages.
8002 2004-02-23 Mark Kettenis <kettenis@gnu.org>
8004 * x86-64-tdep.h: Tweak comment.
8005 (enum amd64_regnum): New.
8006 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
8007 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
8008 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
8009 (X86_64_XMM1_REGNUM): Removed.
8010 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
8011 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
8012 prototypes for renamed functions.
8013 * x86-64-tdep.c: Fix typo.
8014 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
8016 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
8017 Use constants from `enum amd64_regnum' for register numbers.
8018 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
8019 (amd64_analyze_prologue, amd64_frame_cache,
8020 amd64_sigtramp_frame_cache): Use constants from `enum
8021 amd64_regnum' for register numbers.
8022 (amd64_supply_fpregset): Adjust for renamed functions.
8023 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
8024 `enum amd64_regnum' for register numbers.
8025 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
8026 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
8027 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
8028 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
8029 (amd64_linux_fill_gregset): Adjust for renamed macros.
8030 (fetch_core_registers): Adjust for renamed functions.
8031 (amd64_linux_init_abi): Adjust for renamed functions.
8032 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
8034 * amd64-nat.c: Adjust for renamed macros.
8035 * amd64bsd-nat.c (fetch_inferior_registers)
8036 (store_inferior_registers): Use constants from `enum amd64_regnum'
8037 for register numbers. Adjust for renamed variables.
8038 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
8040 (_initialize_amd64fbsd_nat): Use constants from `enum
8041 amd64_regnum' for register numbers.
8042 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
8043 `enum amd64_regnum' for register numbers.
8044 (amd64fbsd_init_abi): Adjust for renamed functions.
8045 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
8046 `enum amd64_regnum' for register numbers.
8047 (amd64nbsd_init_abi): Adjust for renamed functions.
8048 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
8049 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
8050 `enum amd64_regnum' for register numbers.
8051 (amd64obsd_init_abi): Adjust for renamed functions.
8052 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
8054 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8056 * breakpoint.c (print_one_breakpoint): Do not output spaces
8057 after printing <PENDING> for a pending breakpoint.
8059 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8061 * printcmd.c (print_scalar_formatted): Initialize val_long
8062 to remove compiler warning message.
8064 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
8066 * defs.h (nquery, yquery): New prototypes.
8067 * breakpoint.c (break_command_1): Use new nquery interface.
8068 * utils.c (defaulted_query, nquery, yquery): New functions.
8070 2004-02-23 Andrew Cagney <cagney@redhat.com>
8072 * hppa-tdep.c (hppa_frame_align): New function.
8073 (hppa32_push_dummy_call): New function.
8074 (hppa64_push_dummy_call): New function.
8075 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
8078 * infcall.c (legacy_push_dummy_code): Don't call deprecated
8079 FIX_CALL_DUMMY when push_dummy_call is available.
8080 (call_function_by_hand, push_dummy_code): Ditto.
8082 2004-02-22 Andrew Cagney <cagney@redhat.com>
8084 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
8085 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
8086 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
8087 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
8088 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
8089 call_dummy_location to ON_STACK.
8091 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8093 * x86-64-linux-tdep.c: Tweak comment.
8094 (amd64_linux_supply_gregset): Renamed from
8095 x86_64_linux_supply_gresget.
8096 (amd64_linux_fill_gregset): Renamed from
8097 x86_64_linux_fill_gregset.
8098 (fetch_core_registers): Adjust for renamed functions.
8099 (amd64_core_fns): Renamed from x86_64_core_fns.
8100 (amd64_linux_sigtramp_start): Renamed from
8101 x86_64_linux_sigtramp_start.
8102 (amd64_linux_pc_in_sigtramp): Renamed from
8103 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
8104 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
8105 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
8106 (amd64_linux_sigcontext_addr): Renamed from
8107 x86_64_linux_sigcontext_addr.
8108 (amd64_linux_sc_reg_offset): Renamed from
8109 x86_64_linux_sc_reg_offset.
8110 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
8111 Adjust for renamed functions and variables.
8112 (_initialize_amd64_linux_tdep): Renamed from
8113 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
8115 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
8116 Adjust for renamed functions.
8118 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
8119 from x86_64_linux_gregset64_reg_offset.
8120 (amd64_linux_gregset32_reg_offset): Rename from
8121 x86_64_linux_gregset64_reg_offset.
8122 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
8123 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
8124 (amd64_linux_dr_set_control): Renamed from
8125 x86_64_linux_dr_set_control. Adjust for renamed functions.
8126 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
8127 Adjust for renamed functions.
8128 (amd64_linux_dr_reset_addr): Renamed from
8129 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
8130 (amd64_linux_dr_get_status): Renamed from
8131 x86_64_linux_dr_get_status. Adjust for renamed functions.
8132 (_initialize_amd64_linux_nat): Renamed from
8133 _initialize_x86_64_linux_nat. Adjust for renamed variables and
8135 * config/i386/nm-x86-64linux.h: Update copyright year.
8136 Adjust for renamed functions.
8138 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
8139 amd64fbsd_sigtramp_start.
8140 (amd64fbsd_sigtramp_end_addr): Renamed from
8141 amd64fbsd_sigtramp_end.
8142 (amd64fbsd_init_abi): Adjust for renamed variables.
8143 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
8145 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
8146 amd64fbsd_sigtramp_start.
8147 (amd64fbsd_sigtramp_end_addr): Renamed from
8148 amd64fbsd_sigtramp_end.
8150 2004-02-22 Andrew Cagney <cagney@redhat.com>
8152 * hppa-tdep.c (hppa32_return_value): New function.
8153 (hppa64_return_value): New function.
8154 (hppa_gdbarch_init): Set return_value; keep disabled.
8156 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
8157 struct-return and inferior function call methods.
8159 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
8161 (struct hppa_frame_cache): Define.
8162 (hppa_frame_cache, hppa_frame_this_id): New functions.
8163 (hppa_frame_prev_register): New function.
8164 (hppa_frame_unwind, hppa_frame_base): New variables.
8165 (hppa_frame_unwind_sniffer): New function.
8166 (hppa_frame_base_address, hppa_unwind_pc): New function.
8167 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
8168 sniffer, and frame base sniffer; keep disabled.
8169 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
8170 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
8172 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
8173 to predicates for "seriously old code".
8175 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
8178 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
8180 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
8182 * config/pa/tm-hppa.h: Update copyright.
8183 (DEPRECATED_INIT_FRAME_PC): Delete macro.
8184 (deprecated_init_frame_pc_default): Delete declaration.
8185 (hppa_frame_init_saved_regs): Delete declaration.
8186 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
8187 * hppa-tdep.c: Include "arch-utils.h".
8188 (hppa_gdbarch_init): Set deprecated init_frame_pc
8189 and deprecated frame_init_saved_regs.
8190 (hppa_frame_init_saved_regs): Make static.
8192 2004-02-22 Mark Kettenis <kettenis@gnu.org>
8194 Remove old 386BSD support.
8195 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
8196 * configure.host: Remove i[34567]86-*-bsd*.
8197 * configure.tgt: Remove i[34567]86-*-bsd*.
8198 * i386b-nat.c: Removed.
8199 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
8200 (i386b-nat.o): Remove dependencies.
8202 * config/i386/i386bsd.mh: Removed.
8203 * config/i386/i386bsd.mt: Removed.
8204 * config/i386/nm-i386bsd.h: Removed.
8205 * config/i386/tm-i386bsd.h: Removed.
8206 * config/i386/xm-i386bsd.h: Removed.
8208 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
8210 * amd64fbsd-tdep.c: Include "solib-svr4.h".
8211 (amd64fbsd_init_abi): Set link map offsets.
8212 * amd64nbsd-tdep.c: Include "slib-svr4.h".
8213 (amd64nbsd_init_abi): Set link map offsets.
8214 * amd64obsd-tdep.c: Include "solib-svr4.h".
8215 (amd64obsd_init_abi): Set link map offsets.
8216 * i386fbsd-tdep.c: Include "solib-svr4.h".
8217 (i386fbsd_init_abi): Set link map offsets.
8218 * i386nbsd-tdep.c: Include "solib-svr4.h".
8219 (i386nbsdelf_init_abi): Set link map offsets.
8220 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
8221 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
8222 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
8223 solib-legacy.o and core-aout.o. Reformat.
8224 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
8225 solib-svr4.o, solib-legacy.o. Reformat.
8226 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
8227 * config/i386/nbsdelf.mh: Reformat.
8228 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
8229 solib-svr4.o, solib-legacy.o and corelow.o.
8230 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
8231 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
8232 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
8233 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8234 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
8235 (TM_FILE): Set to tm-fbsd.h.
8236 * config/i386/nbsd.mt (TDEPFILES): Reformat.
8237 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
8239 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
8241 (TM_FILE): Set to nm-nbsd.h.
8242 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
8243 Simplify shared library support. Don't include "elf/common.h".
8244 (SVR4_SHARED_LIBS): Don't define.
8245 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
8247 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
8248 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
8249 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
8250 Don't include "i386/tm-i386.h". Include "solib.h".
8251 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
8252 Don't include "i386/tm-i386.h".
8253 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
8254 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
8255 Include "i386/xm-i386.h".
8256 (HOST_LONG_DOUBLE_FORMAT): Remove.
8258 Fix OpenBSD/i386 sigtramp recognition.
8259 * i386-tdep.h: Update copyright year.
8260 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
8261 (i386bsd_sigtramp_end): New prototypes.
8262 (i386fbsd_sigtramp_start_addr): Renamed from
8263 i386fbsd_sigtramp_start.
8264 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8265 (i386obsd_sigtramp_start_addr): Renamed from
8266 i386obsd_sigtramp_start.
8267 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8268 * i386bsd-tdep.c: Update copyright year.
8269 (i386bsd_pc_in_sigtramp): Make public.
8270 * i386fbsd-nat.c: Update copyright year.
8271 (_initialize_i386fbsd_nat): Adjust for renamed variables.
8272 * i386fbsd-tdep.c: Update copyright year.
8273 (i386fbsd_sigtramp_start_addr): Renamed from
8274 i386fbsd_sigtramp_start.
8275 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
8276 (i386fbsdaout_init_abi): Adjust for renamed variables.
8277 * i386obsd-nat.c: Update copyright year.
8278 (_initialize_i386obsd_nat): Adjust for renamed variables.
8279 * i386obsd-tdep.c: Include "target.h".
8280 (i386obsd_page_size): New variable.
8281 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
8282 (i386obsd_sigtramp_end): New functions.
8283 (i386obsd_sigtramp_start_addr): Renamed from
8284 i386obsd_sigtramp_start.
8285 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
8286 (i386obsd_init_abi): Adjust for renamed variables. Set
8287 pc_in_sigtramp, sigtramp_start and sigtramp_end.
8288 * Makefile.in (i386obsd-tdep.o): Update dependencies.
8290 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
8291 trampoline change in OpenBSD kernel.
8293 * amd64-nat.c: Update copyright year.
8294 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
8295 architecture from REGCACHE.
8297 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
8298 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
8300 2004-02-21 Mark Kettenis <kettenis@gnu.org>
8302 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
8303 i[34567]86-*-openbsd3.[0-3].
8304 * config/i386/obsdaout.mh: New file.
8306 * config/i386/obsd.mh (MH_FLAGS): Remove.
8309 * i386obsd-tdep.c: Update copyright years. Include
8311 (i386obsd_init_abi): Don't set regset_from_core_section here.
8312 (i386obsd_aout_init_abi): New function. Set
8313 regset_from_core_section here.
8314 (i386obsd_elf_init_abi): New function.
8315 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
8316 * Makefile.in (i386obsd-tdep.o): Update dependecies.
8317 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
8318 (TM_FILE): Set to tm-nbsd.h.
8320 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
8323 * solib-svr4.h: Update copyright year.
8324 (svr4_ilp32_fetch_link_map_offsets)
8325 (svr4_lp64_fetch_link_map_offsets): New prototype.
8326 * solib-svr4.c: Update copyright year.
8327 (svr4_ilp32_fetch_link_map_offsets)
8328 (svr4_lp64_fetch_link_map_offsets): New function.
8330 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
8332 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
8333 to the partial symbol table.
8335 2004-02-20 J. brobecker <brobecker@gnat.com>
8337 * PROBLEMS: Add description of problem documented under gdb/1560.
8339 2004-02-20 Mark Kettenis <kettenis@gnu.org>
8341 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
8343 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
8345 (amd64obsd_init_abi): Reorder initializations. Use
8346 amd64obsd_r_reg_offset to initialize the general-purpose register
8347 set details. Set regset_from_core_section.
8348 (_initialize_amd64obsd_tdep): Rename from
8349 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
8350 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
8351 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
8353 * NEWS (New native configurations): Mention OpenBSD/alpha.
8354 * configure.tgt: Add alpha*-*-openbsd*.
8355 * configure.host: Add alpha*-*-openbsd*.
8356 * alphanbsd-tdep.c: Update copyright year.
8357 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
8359 2004-02-20 Andrew Cagney <cagney@redhat.com>
8362 * configure.tgt: Delete target "none-*-*".
8363 * configure.host: Delete host "none-*-*".
8364 * config/none/none.mh: Delete file.
8365 * config/none/none.mt: Delete file.
8366 * config/none/xm-none.h: Delete file.
8367 * config/none/tm-none.h: Delete file.
8368 * config/none/nm-none.h: Delete file.
8370 2004-02-19 Fred Fish <fnf@redhat.com>
8372 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
8373 cache->uses_fp prior to setting it.
8375 2004-02-19 Fred Fish <fnf@redhat.com>
8377 Fix for PR breakpoint/1558.
8378 * sh-tdep.c (IS_JSR): New macro.
8379 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
8381 2004-02-19 Jim Blandy <jimb@redhat.com>
8383 * findvar.c (value_from_register): Doc fix.
8385 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
8387 * printcmd.c (print_scalar_formatted): Do not check for sizeof
8388 type being greater than sizeof of host's LONGEST. Always use
8389 unpack_long() unless format 'f' chosen.
8391 2004-02-19 Joel Brobecker <brobecker@gnat.com>
8393 Committed by Elena Zannoni <ezannoni@redhat.com>
8395 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
8396 contains a symbol wich is the best, non-exact match for the given
8397 pc. Update comments.
8399 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
8401 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
8402 macro, which was part of the now removed Mach 3 port.
8403 * utils.c (request_quit): Ditto.
8405 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8407 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
8408 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
8410 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8412 Committed by Mark Kettenis <kettenis@gnu.org>.
8414 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
8417 2004-02-18 Andrew Cagney <cagney@redhat.com>
8419 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
8420 CONFIG_INSTALL and CONFIG_UNINSTALL.
8421 * configure: Re-generate.
8422 * interps.h (INTERP_TUI): Define.
8423 * Makefile.in: Update dependencies.
8425 (tui-main.o): Specify dependencies.
8426 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
8427 * tui/tui-main.c: New file.
8429 2004-02-18 Mark Kettenis <kettenis@gnu.org>
8431 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
8432 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
8434 * configure.host: Add x86_64-*-openbsd*.
8435 * configure.tgt: Add x86_64-*-openbsd*.
8436 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
8438 * tui/tui.c: Don't include <malloc.h>.
8440 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
8441 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
8444 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
8445 static. Remove extraneous whitespace.
8446 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
8449 2004-02-17 Jim Blandy <jimb@redhat.com>
8451 * findvar.c (value_from_register): Doc fix.
8453 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8455 Committed by Jim Blandy <jimb@redhat.com>.
8457 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
8458 CORE_ADDR as type for selectors. Correct types for GNU run time
8459 message lookup function to use double indirection.
8460 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
8461 * objc-lang.h (lookup_child_selector): Adapt prototype.
8463 * s390-nat.c (SUBOFF): New macro.
8464 (supply_gregset, fill_gregset): Use it to handle debugging
8465 of 32-bit exectuables running under a 64-bit kernel.
8466 * s390-tdep.c: Include "solib-svr4.h".
8467 (s390_svr4_fetch_link_map_offset): New function.
8468 (s390x_svr_fetch_link_map_offset): Likewise.
8469 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
8470 * Makefile.in (s390-tdep.o): Update dependencies.
8472 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
8474 (s390_readinstruction): Reformat. Use read_memory_nobpt.
8475 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
8476 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
8477 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
8478 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
8479 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
8480 S390_SIGNAL_FRAMESIZE,
8481 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
8482 (struct frame_extra_info): Remove.
8483 (s390_memset_extra_info): Remove.
8484 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
8485 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
8486 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
8487 (is_rse): Renamed to ...
8488 (is_rsy): ... this. Support long displacements.
8489 (is_rxe): Renamed to ...
8490 (is_rxy): ... this. Support long displacements.
8491 (compute_x_addr): Support long displacements.
8492 (struct s390_prologue_data): New data type.
8493 (s390_on_stack): Change API to use struct s390_prologue_data.
8494 (s390_store): Reimplement.
8495 (s390_load): New function.
8496 (s390_get_signal_frame_info): Remove.
8497 (s390_get_frame_info): Remove, replace by ...
8498 (s390_analyze_prolog): ... this new function.
8499 (s390_check_function_end): Remove.
8500 (s390_function_start): Remove.
8501 (s390_frameless_function_invokation): Remove.
8502 (s390_is_sigreturn): Remove.
8503 (s390_init_frame_pc_first): Remove.
8504 (s390_init_frame_extra_info): Remove.
8505 (s390_frame_init_saved_regs): Remove.
8506 (s390_frame_saved_pc_nofix): Remove.
8507 (s390_frame_saved_pc): Remove.
8508 (s390_frame_chain): Remove.
8509 (s390_fp_regnum, s390_read_fp): Remove.
8510 (s390_pop_frame_regular, s390_pop_frame): Remove.
8511 (s390_saved_pc_after_call): Remove.
8512 (s390_skip_prologue): Reimplement.
8513 (s390_in_function_epilogue_p): Support long displacements.
8514 (struct s390_unwind_cache): New data structure.
8515 (s390_frame_unwind_cache): New function.
8516 (s390_prologue_frame_unwind_cache): Likewise.
8517 (s390_backchain_frame_unwind_cache): Likewise.
8518 (s390_frame_this_id, s390_frame_prev_register): Likewise.
8519 (s390_frame_unwind): Define.
8520 (s390_frame_sniffer): New function.
8521 (struct s390_pltstub_unwind_cache): New data structure.
8522 (s390_pltstub_frame_unwind_cache): New function.
8523 (s390_pltstub_frame_this_id): Likewise.
8524 (s390_pltstub_frame_prev_register): Likewise.
8525 (s390_pltstub_frame_unwind): Define.
8526 (s390_pltstub_frame_sniffer): New function.
8527 (struct s390_sigtramp_unwind_cache): New data structure.
8528 (s390_sigtramp_frame_unwind_cache): New function.
8529 (s390_sigtramp_frame_this_id): Likewise.
8530 (s390_sigtramp_frame_prev_register): Likewise.
8531 (s390_sigtramp_frame_unwind): Define.
8532 (s390_sigtramp_frame_sniffer): New function.
8533 (s390_frame_base_address, s390_local_base_address): New functions.
8534 (s390_frame_base): Define.
8535 (s390_unwind_pc, s390_unwind_sp): New function.
8536 (s390_push_dummy_call): Use new frame base location.
8537 (s390_unwind_dummy_id): Likewise.
8538 (s390_gdbarch_init): Remove calls to:
8539 set_gdbarch_frameless_function_invocation,
8540 set_gdbarch_deprecated_init_frame_pc,
8541 set_gdbarch_deprecated_frame_chain,
8542 set_gdbarch_deprecated_frame_init_saved_regs,
8543 set_gdbarch_deprecated_pop_frame,
8544 set_gdbarch_deprecated_init_extra_frame_info,
8545 set_gdbarch_deprecated_init_frame_pc_first,
8546 set_gdbarch_deprecated_target_read_fp,
8547 set_gdbarch_deprecated_frame_saved_pc,
8548 set_gdbarch_deprecated_saved_pc_after_call,
8549 set_gdbarch_deprecated_fp_regnum.
8551 set_gdbarch_in_solib_call_trampoline,
8552 frame_unwind_append_sniffer,
8553 frame_base_set_default,
8554 set_gdbarch_unwind_pc,
8555 set_gdbarch_unwind_sp.
8556 * Makefile.in (s390-tdep.o): Update dependencies.
8558 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
8559 (S390_STACK_FRAME_OVERHEAD): Remove.
8560 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
8561 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
8562 (s390_promote_integer_argument): Remove.
8563 (s390_cannot_extract_struct_value_address): Remove.
8564 (s390_use_struct_convention, s390_store_struct_return): Remove.
8565 (s390_extract_return_value, s390_store_return_value): Remove.
8566 (s390_return_value_convention, s390_return_value): New functions.
8567 (is_float_singleton): Handle typedefs.
8568 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
8569 Remove, replace by ...
8570 (s390_function_arg_pass_by_reference, s390_function_arg_float,
8571 s390_function_arg_integer): ... these new functions.
8572 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
8573 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
8574 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
8577 set_gdbarch_deprecated_store_struct_return,
8578 set_gdbarch_deprecated_extract_return_value,
8579 set_gdbarch_deprecated_store_return_value,
8580 set_gdbarch_use_struct_convention,
8581 set_gdbarch_extract_struct_value_address,
8582 set_gdbarch_deprecated_pc_in_call_dummy,
8583 set_gdbarch_deprecated_push_arguments,
8584 set_gdbarch_deprecated_save_dummy_frame_tos,
8585 set_gdbarch_deprecated_push_return_address,
8586 set_gdbarch_deprecated_sizeof_call_dummy_words,
8587 set_gdbarch_deprecated_call_dummy_words,
8588 set_gdbarch_deprecated_dummy_write_sp.
8590 set_gdbarch_push_dummy_call,
8591 set_gdbarch_unwind_dummy_id,
8592 set_gdbarch_return_value.
8594 * config/s390/nm-linux.h: Update comments.
8595 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
8596 (STOPPED_BY_WATCHPOINT): Redefine.
8597 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
8598 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
8599 (s390_stopped_by_watchpoint): Likewise.
8600 (watch_area_cnt): Remove.
8601 * s390-nat.c: Update comments.
8602 (watch_area): Remove typedef.
8603 Global replace watch_area by struct watch_area.
8604 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
8605 (s390_stopped_by_watchpoint): Remove pid argument,
8606 use s390_inferior_tid. Add short-cut for the no watchpoint case.
8607 (s390_fix_watch_points): Remove pid argument,
8608 use s390_inferior_tid. Recompute area spanned by watchpoints.
8609 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
8610 argument. Reimplement.
8612 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
8613 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
8614 (FETCH_INFERIOR_REGISTERS): Define.
8615 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
8617 * config/s390/s390x.mt: Remove.
8618 * config/s390/tm-s390.h: Remove.
8619 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
8620 (TARGET_ELF64): Remove.
8621 (SKIP_TRAMPOLINE_CODE): Do not undefine.
8622 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
8623 s390*-*-* case; always set gdb_target to s390.
8624 * regformats/reg-s390.dat: Remove control registers.
8625 * regformats/reg-s390x.dat: Likewise.
8626 * s390-tdep.h: New file.
8627 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
8628 Include "inferior.h" and "s390-tdep.h".
8629 Remove private definition of offsetof.
8630 (s390_register_u_addr): Remove.
8631 (regmap_gregset, regmap_fpregset): Define.
8632 (supply_gregset, fill_gregset): Reimplement.
8633 (supply_fpregset, fill_fpregset): Likewise.
8634 (s390_inferior_tid): New function.
8635 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
8636 (fetch_inferior_registers, store_inferior_registers): Likewise.
8637 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
8638 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
8639 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
8640 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
8641 (struct gdbarch_tdep): Define.
8642 (struct s390_register_info): Define.
8643 (s390_register_info): New variable.
8644 (s390_register_name): Reimplement.
8645 (s390_register_type): New function.
8646 (s390_register_raw_size, s390x_register_raw_size): Remove.
8647 (s390_cannot_fetch_register): Remove.
8648 (s390_register_byte): Remove.
8649 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
8650 (s390_dwarf_regmap): New variable.
8651 (s390_dwarf_reg_to_regnum): New function.
8652 (s390_stab_reg_to_regnum): Remove.
8653 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
8654 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
8655 (s390_convert_register_p): Likewise.
8656 (s390_register_to_value, s390_value_to_register): Likewise.
8657 (s390_register_reggroup_p): Likewise.
8658 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
8659 s390_gregset, s390x_gregset, s390_fpregset): New variables.
8660 (s390_supply_regset, s390_regset_from_core_section): New functions.
8661 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
8662 (S390_FPR_SIZE): Likewise.
8663 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
8664 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
8665 (S390_NUM_GPRS): Move here from tm-s390.h.
8666 (S390_NUM_FPRS): Likewise.
8667 (s390_in_function_epilogue_p): New function.
8668 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
8669 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
8670 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
8671 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
8672 Replace S390_FP_REGNUM by S390_SP_REGNUM.
8674 set_gdbarch_deprecated_max_register_raw_size,
8675 set_gdbarch_deprecated_max_register_virtual_size,
8676 set_gdbarch_deprecated_register_byte,
8677 set_gdbarch_cannot_fetch_register,
8678 set_gdbarch_cannot_store_register,
8679 set_gdbarch_deprecated_register_size,
8680 set_gdbarch_deprecated_register_raw_size,
8681 set_gdbarch_deprecated_register_virtual_size,
8682 set_gdbarch_deprecated_register_virtual_type,
8683 set_gdbarch_deprecated_register_bytes.
8685 set_gdbarch_num_pseudo_regs,
8686 set_gdbarch_register_type,
8687 set_gdbarch_convert_register_p,
8688 set_gdbarch_register_to_value,
8689 set_gdbarch_value_to_register,
8690 set_gdbarch_register_reggroup_p,
8691 set_gdbarch_regset_from_core_section,
8692 set_gdbarch_pseudo_register_read,
8693 set_gdbarch_pseudo_register_write,
8694 set_gdbarch_in_function_epilogue_p.
8695 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
8696 (s390_tdep_h): New variable.
8698 2004-02-17 Jim Blandy <jimb@redhat.com>
8700 * findvar.c (value_from_register): If the type has no length, just
8701 return an acceptable value --- don't report an internal error.
8703 * stabsread.c (read_type): If we find any type numbers that are
8704 forward references, complain if the references aren't resolved by
8705 the time we're finished reading.
8706 (cleanup_undefined_types): Make error message more appropriate for
8709 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8711 * Makefile.in (defs_h): Remove dependency on progress_h.
8712 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
8714 * main.c (captured_main): Delete use of START_PROGRESS and
8717 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
8719 * objfiles.c (terminate_minimal_symbol_table): Add back
8720 initialization of MSYMBOL_TYPE.
8722 2004-02-17 David Mosberger <davidm@hpl.hp.com>
8724 Committed by Andrew Cagney.
8725 * Makefile.in (ia64_tdep_h): New macro.
8726 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
8727 (ia64-tdep.o): Likewise.
8728 * ia64-tdep.h: New file.
8729 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
8730 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
8731 (ia64_aix_sigcontext_register_address): Likewise.
8732 (ia64_linux_getunwind_table): Delete declaration.
8733 * ia64-linux-tdep.c: Likewise.
8735 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
8737 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
8738 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
8739 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
8741 2004-02-17 Andrew Cagney <cagney@redhat.com>
8743 * symtab.c (skip_prologue_using_sal): New function.
8744 * symtab.h (skip_prologue_using_sal): Declare.
8745 * frv-tdep.c: Include "symtab.h".
8746 (skip_prologue_using_sal): Delete function.
8747 * mips-tdep.c (skip_prologue_using_sal): Delete function.
8748 * rs6000-tdep.c (refine_prologue_limit): Mention
8749 skip_prologue_using_sal.
8750 * ia64-tdep.c (refine_prologue_limit): Ditto.
8751 * Makefile.in: Update dependencies.
8753 2004-02-16 Andrew Cagney <cagney@redhat.com>
8755 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
8756 START_INFERIOR_TRAPS_EXPECTED.
8757 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
8758 START_INFERIOR_TRAPS_EXPECTED.
8759 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
8761 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
8762 macro, moved to "nm-osf.h". Update copyright.
8763 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
8766 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
8767 and function replacing FRAMELESS_FUNCTION_INVOCATION.
8768 * blockframe.c (legacy_frameless_look_for_prologue): Rename
8769 frameless_look_for_prologue.
8770 * frame.h (legacy_frameless_look_for_prologue): Rename
8771 frameless_look_for_prologue.
8772 * gdbarch.h, gdbarch.c: Re-generate.
8773 * sh64-tdep.c (sh64_gdbarch_init): Update.
8774 * sh-tdep.c (sh_gdbarch_init): Update.
8775 * s390-tdep.c (s390_gdbarch_init): Update.
8776 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8777 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
8778 * m68k-tdep.c (m68k_gdbarch_init): Update.
8779 (delta68_frame_args_address): Update.
8780 * m32r-tdep.c (m32r_gdbarch_init): Update.
8781 * hppa-tdep.c (hppa_gdbarch_init): Update.
8782 * h8300-tdep.c (h8300_gdbarch_init): Update.
8783 * frv-tdep.c (frv_gdbarch_init): Update.
8784 (frv_frameless_function_invocation): Update.
8785 * cris-tdep.c (cris_gdbarch_init): Update.
8786 (cris_frameless_function_invocation): Update.
8787 * avr-tdep.c (avr_gdbarch_init): Update.
8788 * arm-tdep.c (arm_gdbarch_init): Update.
8789 * stack.c (frame_info): Update, call predicate.
8790 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
8791 * frame.c (legacy_get_prev_frame): Update, call predicate..
8792 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
8793 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
8794 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
8796 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
8797 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
8798 * vax-tdep.c (vax_gdbarch_init): Ditto.
8800 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
8803 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8805 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
8808 2004-02-16 Andrew Cagney <cagney@redhat.com>
8810 * tui/tui-windata.c: Include "gdb_string.h".
8811 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
8812 * tui/tui-layout.c, tui/tui-command.c: Ditto.
8813 * Makefile.in: Update dependencies.
8815 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
8817 * Makefile.in (infrun.o): Add $(gdb_assert_h).
8818 * infrun.c: Include "gdb_assert.h".
8819 (singlestep_ptid, saved_singlestep_ptid)
8820 (stepping_past_singlestep_breakpoint): New variables.
8821 (resume): Set singlestep_ptid. Check for singlestep thread
8823 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
8824 (handle_inferior_event): Handle singlestep thread hop.
8826 2004-02-16 Andrew Cagney <cagney@redhat.com>
8828 * dwarf2-frame.c (dwarf2_frame_ops): New function.
8829 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
8830 (dwarf2_frame_init_reg): Ditto.
8832 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
8833 suggested by Joshua Neuheisel
8835 * configure.in: Always check for curses, including pdcurses.
8836 Warn, instead of error, when no curses are found. Enable TUI when
8837 curses is available.
8838 * configure: Re-generate.
8840 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8842 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
8843 sh_sh4_register_convert_to_virtual.
8844 (sh_register_convert_to_raw): Rename from
8845 sh_sh4_register_convert_to_raw.
8846 (sh_pseudo_register_read): Accomodate above name change.
8847 (sh_pseudo_register_write): Ditto.
8849 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
8851 * sh-tdep.c (sh_generic_register_name): Remove.
8852 (sh_gdbarch_init): Use sh_sh_register_name in default case.
8854 2004-02-15 Andrew Cagney <cagney@redhat.com>
8856 * configure.in (build_warnings): Add -Wunused-function.
8857 * configure: Re-generate.
8859 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
8860 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
8862 * procfs.c (procfs_init_inferior): Assume that
8863 START_INFERIOR_TRAPS_EXPECTED is defined.
8864 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
8865 * config/ns32k/tm-nbsd.h: Delete file,
8866 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
8868 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
8869 * config/vax/tm-vax.h: Delete file.
8871 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8872 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8873 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8874 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8875 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
8876 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
8877 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
8879 2004-02-15 Mark Kettenis <kettenis@gnu.org>
8881 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
8882 * dwarf2-frame.c (dwarf2_frame_data): New variable.
8883 (struct dwarf2_frame_ops): New.
8884 (dwarf2_frame_default_init_reg): New function, based on
8885 dwarf2_frame_init_reg.
8886 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
8887 (dwarf2_frame_init_reg): Call architecture-specific function.
8888 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
8889 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
8890 instead of dwarf2_frame_data.
8891 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
8892 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
8894 2004-02-15 Andrew Cagney <cagney@redhat.com>
8896 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
8897 register_gdbarch_swap.
8898 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
8899 * f-lang.c (_initialize_f_language): Update, use
8900 DEPRECATED_REGISTER_GDBARCH_SWAP.
8901 * remote.c (_initialize_remote): Ditto.
8902 * regcache.c (_initialize_regcache): Ditto.
8903 * parse.c (_initialize_parse): Ditto.
8904 * infrun.c (_initialize_infrun): Ditto.
8905 * mi/mi-main.c (_initialize_mi_main): Ditto.
8906 * gdbtypes.c (_initialize_gdbtypes): Ditto.
8908 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
8909 poking .cacheable directly.
8910 * symfile.c (symfile_bfd_open): Ditto.
8912 * Makefile.in: Update all dependencies.
8914 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
8915 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
8916 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
8917 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
8918 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
8920 2004-02-14 Andrew Cagney <cagney@redhat.com>
8922 * arch-utils.c (legacy_convert_register_p): Check
8923 DEPRECATED_REGISTER_CONVERTIBLE_P.
8924 * findvar.c (value_of_register): Ditto.
8926 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
8927 * gdbarch.h, gdbarch.c: Re-generate.
8928 * arch-utils.c (deprecated_register_convertible_not): Delete.
8929 * arch-utils.h (deprecated_register_convertible_not): Delete.
8930 * mi/mi-main.c (get_register): Update. Update copyright.
8931 * infcmd.c (default_print_registers_info): Update.
8933 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
8934 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
8935 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
8936 * gdbarch.h, gdbarch.c: Re-generate.
8937 * frame.c (deprecated_get_next_frame_hack): Delete function.
8938 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
8939 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
8941 * infcall.c (call_function_by_hand): Update.
8943 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
8945 * symfile.c (init_entry_point_info, entry_point_address): Move
8947 * objfiles.c (init_entry_point_info, entry_point_address):..to
8949 * symfile.h (init_entry_point_info, entry_point_address): Remove
8951 * objfiles.h (init_entry_point_info, entry_point_address):Add
8953 * cris-tdep.c: Remove include of symfile.h. Add include of
8956 * mcore-tdep.c: Ditto.
8957 * mn10300-tdep.c: Ditto.
8958 * sh64-tdep.c: Ditto.
8959 * v850-tdep.c: Ditto.
8960 * arm-tdep.c: Remove include of symfile.h.
8961 * blockframe.c: Ditto.
8962 * coffread.c: Ditto.
8964 * dwarf2read.c: Ditto.
8965 * dwarfread.c: Ditto.
8966 * frv-tdep.c: Ditto.
8967 * ia64-tdep.c: Ditto.
8968 * mdebugread.c: Ditto.
8969 * mipsread.c: Ditto.
8970 * rs6000-tdep.c: Ditto.
8971 * s390-tdep.c: Ditto.
8973 * xstormy16-tdep.c: Ditto.
8974 * gdbarch.sh: Remove include of symfile.h.
8975 * gdbarch.c: Regenerate.
8976 * solib-irix.c (enable_break): Use entry_point_address().
8977 Add comment about include file.
8978 * xcoffread.c: Add comment about include file.
8979 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
8980 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
8981 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
8982 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
8983 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
8985 2004-02-13 Andrew Cagney <cagney@redhat.com>
8987 * corelow.c (core_xfer_partial): Use "struct bfd_section".
8988 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
8990 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
8992 2004-02-12 Fred Fish <fnf@redhat.com>
8994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
8995 set_gdbarch_store_return_value.
8997 2004-02-12 Andrew Cagney <cagney@redhat.com>
8999 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
9000 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
9001 (interrupt_query): Ditto.
9002 (ofunc): Delete unused variable.
9003 * cris-tdep.c (cris_abi): Delete unused function.
9004 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
9005 (cris_get_wide_opcode, cris_get_short_size): Ditto.
9006 (cris_get_asr_quick_shift_steps): Ditto.
9007 (cris_skip_prologue_frameless_p): Ditto.
9008 * arm-tdep.c (arm_push_return_address): Delete unused function.
9009 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
9010 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
9011 * s390-tdep.c (s390_function_start): Delete unused function.
9013 2004-02-12 Andrew Cagney <cagney@redhat.com>
9015 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
9016 gdbarch.h, gdbarch.c: Re-generate.
9017 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
9018 to generic_prologue_frameless_p.
9019 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
9020 * arch-utils.c (generic_prologue_frameless_p): Delete function.
9022 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
9024 * mips-linux-tdep.c: Include "frame.h".
9025 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
9026 (mips_linux_skip_resolver): New functions.
9027 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
9028 and set_gdbarch_in_solib_call_trampoline.
9029 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
9030 to after set_gdbarch_in_solib_return_trampoline. Only set the
9031 solib hooks to mips16 functions if the OS ABI is unknown.
9032 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
9033 including "config/tm-linux.h".
9034 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
9035 * Makefile.in (mips-linux-tdep.o): Update.
9037 2004-02-11 David Carlton <carlton@kealia.com>
9039 * linespec.c (decode_compound): Only look for a class symbol when
9040 considering all but the rightmost component.
9042 2004-02-11 Andrew Cagney <cagney@redhat.com>
9044 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
9045 abi code are are separatly grouped.
9047 2004-02-11 Andrew Cagney <cagney@redhat.com>
9049 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
9050 * gdbarch.h, gdbarch.c: Re-generate.
9051 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
9052 * v850-tdep.c (v850_gdbarch_init): Update.
9053 * sh64-tdep.c (sh64_gdbarch_init): Update.
9054 * sh-tdep.c (sh_gdbarch_init): Update.
9055 * s390-tdep.c (s390_gdbarch_init): Update.
9056 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
9057 * mips-tdep.c (mips_gdbarch_init): Update.
9058 * mcore-tdep.c (mcore_gdbarch_init): Update.
9059 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
9060 * m32r-tdep.c (m32r_gdbarch_init): Update.
9061 * ia64-tdep.c (ia64_gdbarch_init): Update.
9062 * hppa-tdep.c (hppa_gdbarch_init): Update.
9063 * h8300-tdep.c (h8300_gdbarch_init): Update.
9064 * frv-tdep.c (frv_gdbarch_init): Update.
9065 * d10v-tdep.c (d10v_gdbarch_init): Update.
9066 * cris-tdep.c (cris_gdbarch_init): Update.
9067 * avr-tdep.c (avr_gdbarch_init): Update.
9068 * arm-tdep.c (arm_gdbarch_init): Update.
9069 * alpha-tdep.c (alpha_gdbarch_init): Update.
9071 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
9073 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
9075 (sh_sh4al_dsp_register_name): Ditto.
9077 2004-02-10 Andrew Cagney <cagney@redhat.com>
9079 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
9080 (mips_init_frame_pc_first): Delete function.
9081 (mips_frame_saved_pc): Delete function.
9082 (mips_frame_chain): Delete function.
9083 (mips_init_extra_frame_info): Delete function.
9084 (mips_xfer_register): Delete unused variable "reg".
9085 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
9086 (mips_n32n64_return_value): Delete unused variable "reg".
9087 (mips_n32n64_return_value): Delete unused variable "pos".
9088 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
9089 (mips_o32_return_value): Delete unused variable "pos".
9090 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
9091 (mips_print_fp_register): Delete unused variable "namelen"
9092 (mips_print_fp_register): Delete unused variable "flt2"
9093 (get_frame_pointer): Delete function.
9094 (cached_proc_desc): Delete static variable.
9095 (mips_pop_frame): Delete function.
9096 (mips_find_saved_regs): Delete function.
9097 (mips_get_saved_register): Delete function.
9098 (mips_saved_pc_after_call): Delete function.
9099 (SIGFRAME_BASE): Delete macro.
9100 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
9101 (SIGFRAME_PC_OFF): Delete macro.
9102 (SIGFRAME_REGSAVE_OFF): Delete macro.
9103 (mips_dump_tdep): Do not print deleted macro definitions.
9105 2004-02-10 Andrew Cagney <cagney@redhat.com>
9107 * Makefile.in (SFILES): Remove explictly listed tui files.
9108 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
9110 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
9112 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
9113 to use paddr functions to format ia64 addresses and long values.
9114 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
9115 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
9116 (get_kernel_table, ia64_find_proc_info_x): Ditto.
9117 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
9118 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
9120 2004-02-10 Andrew Cagney <cagney@redhat.com>
9122 * defs.h: Do not include "tui.h".
9123 * gdb_curses.h: New file.
9124 * tui/tui-hooks.h: New file.
9125 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
9126 (tui_install_hooks, tui_remove_hooks): Delete declarations.
9127 (tui_initialize_io): Delete declaration.
9128 (tui_initialize_readline: Delete redundant declaration.
9129 (struct tui_point): Delete definition.
9130 * tui/tui-data.h (struct tui_point): Define.
9131 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
9132 * utils.c: Include "tui/tui.h".
9133 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
9134 * printcmd.c [TUI]: Include "tui/tui.h".
9135 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
9136 * tui/tui-command.c: Include "gdb_curses.h".
9137 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
9138 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
9139 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
9140 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
9141 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
9142 * Makefile.in: Update all dependencies.
9143 (tui_hooks_h, gdb_curses_h): Define.
9144 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
9146 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
9148 * objfiles.h (struct objfile): Remove unused fields auxf1 and
9149 auxf2. Add comments about some other rarely used fields.
9151 2004-02-10 Andrew Cagney <cagney@redhat.com>
9153 * Makefile.in (init.c): Fix script removing duplicates. Problem
9154 reported by Peter Schauer.
9156 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9158 * bcache.c (bcache_xmalloc): Use obstack_init instead of
9159 obstack_specify_allocation.
9160 * objfiles.c (allocate_objfile): Ditto.
9161 * solib-sunos.c (solib_add_common_symbols)
9162 (allocate_rt_common_objfile): Ditto.
9163 * symfile.c (reread_symbols): Ditto.
9164 * gdb_obstack.h: Add comment.
9166 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
9168 * linespec.c (decode_line_1, locate_first_half)
9169 (decode_compound, lookup_prefix_sym): Update comments. Delete old
9172 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
9174 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
9177 2004-02-09 Andrew Cagney <cagney@redhat.com>
9179 * blockframe.c (find_pc_partial_function): If find_pc_overlay
9180 fails, try find_pc_section. Fix PR c++/1267.
9181 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
9182 instead of find_pc_mapped_section.
9183 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
9184 not default to the section containing PC. Fix PR symtab/1519.
9186 2004-02-09 Andrew Cagney <cagney@redhat.com>
9188 * Makefile.in (mips-tdep.o): Update dependencies.
9189 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
9191 (mips_unwind_pc): Return the pseudo PC register.
9192 (mips_unwind_dummy_id): New function.
9193 (mips16_fetch_instruction): New function.
9194 (mips32_fetch_instruction): New function.
9195 (struct mips_frame_cache): Define.
9196 (mips_mdebug_frame_cache): New function.
9197 (mips_mdebug_frame_this_id): New function.
9198 (mips_mdebug_frame_prev_register): New function.
9199 (mips_mdebug_frame_unwind): Define.
9200 (mips_mdebug_frame_sniffer): New function.
9201 (mips_mdebug_frame_base_address): New function.
9202 (mips_mdebug_frame_base): Define.
9203 (mips_mdebug_frame_base_sniffer): New function.
9204 (mips_gdbarch_init): Append unwind and base sniffers. Set
9207 2004-02-08 Andrew Cagney <cagney@redhat.com>
9209 * frame.c: Print both the register number and name.
9211 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
9212 and a sed into a single sed. Make .c and .o patterns more robust.
9214 (INIT_FILES): Replace OBS with COMMON_OBS.
9215 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
9217 2004-02-08 Mark Kettenis <kettenis@gnu.org>
9219 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
9220 the PT_WCOOKIE request.
9222 2004-02-08 Andrew Cagney <cagney@redhat.com>
9224 * mips-tdep.c (mips_unwind_pc): New function.
9225 (mips_gdbarch_init): Set mips_unwind_pc.
9227 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
9228 (get_frame_id): Allow the UNKNOWN_FRAME.
9229 (frame_register_unwind, get_frame_type): Ditto.
9231 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
9232 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
9233 unwind_dummy_id indicates a legacy frame.
9235 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
9236 * configure: Re-generate.
9238 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
9241 2004-02-08 Andrew Cagney <cagney@redhat.com>
9243 * configure.in (CONFIG_ALL): Set to Makefile target, and not
9245 * configure: Re-generate.
9246 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
9247 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
9248 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
9249 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
9250 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
9251 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
9252 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
9253 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
9254 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
9255 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
9257 2004-02-07 Andrew Cagney <cagney@redhat.com>
9259 * Makefile.in: Update all dependencies.
9261 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
9262 * configure: Re-generate.
9263 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
9264 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
9265 (COMMON_OBS): Add "main.o" and "annotate.o".
9266 (ANNOTATE_OBS): Delete.
9267 (OBS): Remove ANNOTATE_OBS.
9268 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
9270 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
9271 against CONFIG_OBS and "main.o".
9272 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
9273 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
9275 * tui/tui-command.c: Include "gdb_string.h", delete register
9276 attribute, use ISO-C function signatures.
9277 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
9278 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9279 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
9282 * tui/tui-command.c: Change variable and function names to lower
9284 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
9285 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
9286 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9287 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9288 * tui/tui-winsource.c, tui/tui.c: Ditto.
9290 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9292 * buildsym.c (free_pending_blocks, finish_block)
9293 (record_pending_block, make_blockvector, end_symtab): Replace
9294 symbol_obstack with objfile_obstack.
9295 * coffread.c (process_coff_symbol, coff_read_struct_type)
9296 (coff_read_enum_type): Ditto.
9297 * cp-namespace.c (initialize_namespace_symtab)
9298 (check_one_possible_namespace_symbol): Ditto.
9299 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
9300 (dwarf2_symbol_mark_computed): Ditto.
9301 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
9302 * elfread.c (elf_symtab_read): Ditto.
9303 * hpread.c (hpread_symfile_init, hpread_symfile_init)
9304 (hpread_read_enum_type, hpread_read_function_type)
9305 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
9307 * jv-lang.c (get_java_class_symtab, add_class_symbol)
9308 (java_link_class_type): Ditto.
9309 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
9310 (new_symbol): Ditto.
9311 * minsyms.c (install_minimal_symbols): Ditto.
9312 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
9313 (terminate_minimal_symbol_table): Replace symbol_obstack with
9315 (free_objfile): Remove freeing of symbol_obstack.
9316 * objfiles.h: Remove symbol_obstack field.
9317 * pa64solib.c (add_to_solist): Replace symbol_obstack with
9319 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9321 (solib_add_common_symbols): Replace symbol_obstack with
9323 * somsolib.c (som_solib_add): Ditto.
9324 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9325 (common_block_start, common_block_end): Ditto.
9326 * symfile.c (reread_symbols): Remove freeing and init of
9328 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
9329 * symfile.h: Update comment.
9330 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
9332 * symtab.c (symbol_set_names): Replace symbol_obstack with
9334 * symtab.h (struct general_symbol_info, struct minimal_symbol):
9336 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
9337 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
9340 2004-02-07 Andrew Cagney <cagney@redhat.com>
9342 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
9343 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
9344 fields and variables.
9345 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
9346 (m_beInvisible): Delete macro.
9347 * tui/tui-data.h: Fix case case fields and variables.
9348 (m_genWinPtrIsNull): Delete macro.
9349 (tui_win_list): Rename winList.
9350 (TUI_SRC_WIN): Rename srcWin.
9351 (TUI_DISASM_WIN): Rename disassemWin.
9352 (TUI_DATA_WIN): Rename dataWin.
9353 (TUI_CMD_WIN): Rename cmdWin.
9354 (m_genWinPtrNotNull): Delete macro.
9355 (m_winPtrIsNull): Delete macro.
9356 (m_winPtrNotNull): Delete macro.
9357 (tui_win_is_source_type): Replace m_winIsSourceType
9358 (tui_win_is_auxillary): Replace m_winIsAuzillary.
9359 (tui_win_has_locator): Replace m_hasLocator.
9360 (tui_set_win_highlight): Replace m_setWinHighlightOn and
9361 m_setWinHighlightOff.
9362 * tui/tui-data.c: Update references.
9363 (tui_win_is_source_type, tui_set_win_highlight): New functions.
9364 (tui_win_has_locator, tui_win_is_auxillary): New functions.
9365 * tui/tui-command.c, tui/tui-disasm.c: Update references.
9366 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
9367 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
9368 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9369 * tui/tui-winsource.c, tui/tui.c: Ditto.
9371 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9373 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
9374 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
9377 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
9378 variable `i6' to `i7'.
9379 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9381 2004-02-07 Andrew Cagney <cagney@redhat.com>
9383 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
9384 (TuiPoint, TuiPointPtr): Ditto.
9385 (TuiStatus, TuiStatusPtr): Ditto.
9386 (TuiWinType, TuiWinTypePtr): Ditto.
9387 (struct tui_point): Rename _TuiPoint.
9388 (tui_get_low_disassembly_address): Rename
9389 tuiGetLowDisassemblyAddress.
9390 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
9391 (tuiFree): Delete declaration.
9392 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
9393 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
9394 * tui/tui.c (tuiFree): Delete function.
9395 * cli/cli-cmds.c (disassemble_command): Update references.
9396 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
9397 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
9398 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
9399 * tui/tui-winsource.c: Ditto.
9401 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9403 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
9404 coffstab_build_psymtabs, elfstab_build_psymtabs)
9405 (stabsect_build_psymtabs): Replace psymbol_obstack with
9407 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
9408 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
9410 * dwarfread.c (scan_compilation_units): Ditto.
9411 * elfread.c (elfstab_offset_sections): Ditto.
9412 * hppa-tdep.c (read_unwind_info): Ditto.
9413 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
9414 (hpread_end_psymtab): Ditto.
9415 * mdebugread.c (mdebug_build_psymtabs, add_pending)
9416 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
9418 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
9419 * objfiles.c (add_to_objfile_sections)
9420 (build_objfile_section_table): Ditto.
9421 (allocate_objfile): Remove init of psymbol_obstack.
9422 (free_objfile): Remove freeing of psymbol_obstack.
9423 * objfiles.h (struct objfile): Remove field
9424 psymbol_obstack. Update comments.
9425 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
9426 psymbol_obstack with objfile_obstack.
9427 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
9429 * somread.c (som_symfile_offsets, init_import_symbols)
9430 (init_export_symbols): Replace psymbol_obstack with
9432 * somsolib.c (som_solib_add_solib_objfile): Ditto.
9433 * symfile.c (default_symfile_offsets, syms_from_objfile)
9434 (reread_symbols): Remove freeing and init of psymbol_obstack.
9435 (cashier_psymtab): Update comment.
9436 * symmisc.c (print_objfile_statistics): Don't report stats for
9438 * symtab.h (struct general_symbol_info, struct partial_symtab):
9440 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
9441 (xcoff_symfile_offsets): Replace psymbol_obstack with
9444 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
9446 * objfiles.h (struct objfile): Add objfile_obstack field.
9447 Remove type_obstack field.
9449 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
9450 read_structure_scope read_enumeration, new_symbol): Replace
9451 type_obstack with objfile_obstack.
9452 * dwarfread.c (struct_type, enum_type): Ditto.
9453 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
9454 (lookup_fundamental_type): Ditto.
9455 * gdbtypes.h (TYPE_ALLOC): Ditto.
9456 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
9457 (hpread_read_doc_function_type, hpread_read_struct_type)
9458 (fix_static_member_physnames, hpread_read_array_type)
9459 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
9460 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
9461 (java_link_class_type): Ditto.
9462 * mdebugread.c (parse_type): Ditto.
9463 * objfiles.c (allocate_objfile, free_objfile): Ditto.
9464 * solib-sunos.c (solib_add_common_symbols): Ditto.
9465 * stabsread.c (define_symbol, read_type, read_member_functions,
9466 read_cpp_abbrev, read_one_struct_field): Ditto.
9467 * symfile.c (reread_symbols): Ditto.
9468 * symmisc.c (print_objfile_statistics): Ditto.
9470 2004-02-07 Andrew Cagney <cagney@redhat.com>
9472 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
9473 (tui_exec_info_content): Rename TuiExecInfoContent.
9474 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
9475 (TuiWinInfo, TuiWinInfoPtr): Ditto.
9476 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
9477 (TuiList, TuiListPtr): Ditto.
9478 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
9479 (TuiDataType, TuiDataTypePtr): Ditto.
9480 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
9481 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
9482 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
9483 (TuiSourceElement, TuiSourceElementPtr): Ditto.
9484 (TuiDataElement, TuiDataElementPtr): Ditto.
9485 (TuiWinElement, TuiWinElementPtr): Ditto.
9486 (TuiDataInfo, TuiDataInfoPtr): Ditto.
9487 (TuiCommandElement, TuiCommandElementPtr): Ditto.
9488 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
9489 (TuiWhichElement, TuiWhichElementPtr): Ditto.
9490 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
9491 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
9492 * tui/tui-command.c, tui/tui-data.c: Update references.
9493 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
9494 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
9495 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
9496 * tui/tui-winsource.c, tui/tui.c: Ditto.
9498 2004-02-07 Mark Kettenis <kettenis@gnu.org>
9500 * dwarf2-frame.h: Update copyright.
9501 (enum dwarf2_frame_reg_rule): New.
9502 (struct dwarf2_frame_state_reg): New.
9503 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
9504 * dwarf2-frame.c: Update copyright.
9505 (enum dwarf2_reg_rule): Remove.
9506 (struct dwarf2_frame_state): Remove defenition of `struct
9507 dwarf2_frame_state_reg'.
9508 (read_reg): Call get_frame_arch to get the architecture instead of
9509 using CURRENT_GDBARCH.
9510 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
9512 (dwarf2_frame_init_reg): New function.
9513 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
9514 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
9515 initialize the register state. Prefix old `enum dwarf2_reg_rule'
9516 tags with DWARF2_FRAME_.
9517 (dwarf2_frame_prev_register): Call get_frame_arch to get the
9518 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
9519 dwarf2_reg_rule' tags with DWARF2_FRAME_.
9521 2004-02-06 Andrew Cagney <cagney@redhat.com>
9523 * tui/tui-data.h (struct tui_list): Rename _TuiList.
9524 (enum tui_data_type): Rename _TuiDataType.
9525 (struct tui_layout_def): Rename _TuiLayoutDef.
9526 (struct tui_source_element): Rename _TuiSourceElement.
9527 (struct tui_data_element): Rename _TuiDataElement.
9528 (struct tui_command_element): Rename _TuiCommandElement.
9529 (struct tui_locator_element): Rename _TuiLocatorElement.
9530 (union tui_which_element): Define.
9531 (struct tui_win_element): Rename _TuiWinElement.
9532 (struct tui_data_info): Rename _TuiDataInfo.
9533 (struct tui_source_info): Rename _TuiSourceInfo.
9534 (struct tui_command_info): Rename _TuiCommandInfo.
9535 (tui_initialize_static_data): Rename initializeStaticData.
9536 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
9537 (tui_alloc_win_info): Rename allocWinInfo.
9538 (tui_init_generic_part): Rename initGenericPart.
9539 (tui_init_win_info): Rename initWinInfo.
9540 (tui_alloc_content): Rename allocContent.
9541 (tui_add_content_elements): Rename addContentElements.
9542 (tui_init_content_element): Rename initContentElement.
9543 (tui_free_window): Rename freeWindow.
9544 (tui_free_win_content): Rename freeWinContent.
9545 (tui_free_data_content): Rename freeDataContent.
9546 (tui_free_all_source_wins_content): Rename
9547 freeAllSourceWinsContent.
9548 (tui_del_window): Rename tuiDelWindow.
9549 (tui_del_data_windows): Rename tuiDelDataWindows.
9550 (tui_partial_win_by_name): Rename partialWinByName.
9551 (tui_win_name): Rename winName.
9552 (tui_current_layout): Rename currentLayout.
9553 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
9554 (tui_term_height): Rename termHeight.
9555 (tui_set_term_height_to): Rename setTermHeightTo.
9556 (tui_term_width): Rename termWidth.
9557 (tui_set_term_width_to): Rename setTermWidthTo.
9558 (tui_set_gen_win_origin): Rename setGenWinOrigin.
9559 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
9560 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
9561 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
9562 (tui_source_windows): Rename sourceWindows.
9563 (tui_clear_source_windows): Rename clearSourceWindows.
9564 (tui_clear_source_windows_detail): Rename
9565 clearSourceWindowsDetail.
9566 (tui_clear_win_detail): Rename clearWinDetail.
9567 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
9568 (tui_default_tab_len): Rename tuiDefaultTabLen.
9569 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
9570 (tui_win_with_focus): Rename tuiWinWithFocus.
9571 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
9572 (tui_layout_def): Rename tuiLayoutDef.
9573 (tui_win_resized): Rename tuiWinResized.
9574 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
9575 (tui_next_win): Rename tuiNextWin.
9576 (tui_prev_win): Rename tuiPrevWin.
9577 (tui_add_to_source_windows): Rename addToSourceWindows.
9578 * tui/tui-winsource.c, tui/tui-win.c: Update references.
9579 * tui/tui-layout.c, tui/tui-source.c: Ditto.
9580 * tui/tui-stack.c, tui/tui-io.c: Ditto.
9581 * tui/tui.c, tui/tui-data.c: Ditto.
9582 * tui/tui-interp.c, tui/tui-data.c: Ditto.
9583 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
9585 * tui/tui-source.h: Update copyright. Include "tui-data.h".
9586 (struct symtab): Declare.
9587 (tui_set_source_content): Rename tuiSetSourceContent.
9588 (tui_show_symtab_source): Rename tuiShowSource.
9589 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
9590 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
9591 * tui/tui-source.c: Update copyright. Update references.
9592 * tui/tui-win.c, tui/tui-winsource.c: Update references.
9593 * tui/tui-stack.c: Update references.
9595 * tui/tui-win.h: Update copyright. Include "tui-data.h".
9596 (struct tui_win_info): Declare.
9597 (tui_scroll_forward): Rename tuiScrollForward.
9598 (tui_scroll_backward): Rename tuiScrollBackward.
9599 (tui_scroll_left): Rename tuiScrollLeft.
9600 (tui_scroll_right): Rename tuiScrollRight.
9601 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
9602 (tui_resize_all): Rename tuiResizeAll.
9603 (tui_refresh_all_win): Rename tuiRefreshAll.
9604 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
9605 * tui/tui-layout.c, * tui/tui-io.c: Update references.
9606 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
9607 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
9609 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
9610 (tui_erase_data_content): Rename tuiEraseDataContent.
9611 (tui_display_all_data): Rename tuiDisplayAllData.
9612 (tui_check_data_values): Rename tuiCheckDataValues.
9613 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
9614 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
9615 (tui_first_data_element_no_in_line): Rename
9616 tuiFirstDataElementNoInLine.
9617 (tui_delete_data_content_windows): Rename
9618 tuiDeleteDataContentWindows.
9619 (tui_refresh_data_win): Rename tuiRefreshDataWin.
9620 (tui_display_data_from): Rename tuiDisplayDataFrom.
9621 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
9622 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
9623 * tui/tui-win.c, tui/tui-regs.c: Update references.
9624 * tui/tui-layout.c, tui/tui.c: Update references.
9626 * tui/tui-wingeneral.h: Update copyright.
9627 (m_allBeVisible): Delete macro.
9628 (m_allBeInvisible): Delete macro.
9629 (struct tui_gen_win_info): Declare.
9630 (struct tui_win_info): Declare.
9631 (tui_unhighlight_win): Rename unhighlightWin.
9632 (tui_make_visible, tui_make_invisible): Replace makeVisible.
9633 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
9634 (tui_make_window): Rename makeWindow.
9635 (tui_copy_win): Rename copyWin.
9636 (tui_box_win): Rename boxWin.
9637 (tui_highlight_win): Rename highlightWin.
9638 (tui_check_and_display_highlight_if_needed): Rename
9639 checkAndDisplayHighlightIfNeeded.
9640 (tui_refresh_all): Rename refreshAll.
9641 (tui_delete_win): Rename tuiDelwin.
9642 (tui_refresh_win): Rename tuiRefreshWin.
9643 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
9644 (tui_make_visible, tui_make_invisible): New functions.
9645 (tui_make_all_visible, tui_make_all_invisible): New functions.
9646 (make_all_visible): Rename makeAllVisible.
9647 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
9648 * tui/tui-data.c, tui/tui-winsource.c: Update references.
9649 * tui/tui-windata.c, tui/tui-win.c: Update references.
9650 * tui/tui-regs.c, tui/tui-layout.c: Update references.
9651 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
9653 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9655 * proc-api.c (write_with_trace): Initialize local variable to
9656 silence compiler warning.
9658 2004-02-06 Andrew Cagney <cagney@redhat.com>
9660 * tui/tui-source.h: Do not include "defs.h".
9661 (struct tui_win_info): Declare.
9662 (tui_set_source_content_nil): Declare.
9663 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
9664 (union tui_line_or_address): Rename _TuiLineOrAddress.
9665 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
9666 (tui_update_source_window): Rename tuiUpdateSourceWindow.
9667 (tui_update_source_window_as_is): Rename
9668 tuiUpdateSourceWindowAsIs.
9669 (tui_update_source_windows_with_addr): Rename
9670 tuiUpdateSourceWindowsWithAddr.
9671 (tui_update_source_windows_with_line): Rename
9672 tuiUpdateSourceWindowsWithLine.
9673 (tui_clear_source_content): Rename tuiClearSourceContent.
9674 (tui_erase_source_content): Rename tuiEraseSourceContent.
9675 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
9676 (tui_show_source_content): Rename tuiShowSourceContent.
9677 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
9678 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
9679 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
9680 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
9681 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
9682 (tui_update_exec_info): Rename tuiUpdateExecInfo.
9683 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
9684 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
9685 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
9686 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
9687 (struct tui_win_info): Declare.
9688 * tui/tui-stack.c: Update references.
9689 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
9690 * tui/tui-win.c, tui/tui-source.c: Ditto.
9691 * tui/tui.c, tui/tui-disasm.c: Ditto.
9693 2004-02-06 Mark Kettenis <kettenis@gnu.org>
9695 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
9696 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
9698 2004-02-05 Mark Kettenis <kettenis@gnu.org>
9700 * infrun.c (handle_inferior_event): Allow for breakpoint
9701 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
9702 and SIGEMT. Update comments.
9703 * NEWS (Revised SPARC target): Mention support for non-executable
9706 2004-02-04 Mark Kettenis <kettenis@gnu.org>
9708 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
9709 * inftarg.c: Update copyright year.
9710 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
9711 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
9712 (sparc_xfer_wcookie): New function.
9713 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9714 * Makefile.in (sparc-nat.o): Update dependencies.
9715 * config/sparc/nm-nbsd.h: Include "target.h".
9716 (NATIVE_XFER_WCOOKIE): New define.
9717 (sparc_xfer_wcookie): New prototype.
9719 2004-02-04 Andrew Cagney <cagney@redhat.com>
9721 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
9722 SYSCALL_TRAP function.
9723 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
9725 2004-02-04 Andrew Cagney <cagney@redhat.com>
9726 Daniel Jacobowitz <drow@mvista.com>
9728 * objfiles.h: Delete comments refering to inside_entry_func and
9729 DEPRECATED_FRAME_CHAIN_VALID.
9730 * defs.h (inside_entry_func): Update prototype..
9731 * blockframe.c (inside_entry_func): Rename to
9732 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
9733 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
9735 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
9737 * breakpoint.c (struct captured_parse_breakpoint_args): Move
9738 outside of #ifdef SOLIB_ADD region.
9739 (do_restore_lang_radix_cleanup): Ditto.
9740 (resolve_pending_breakpoint): Ditto.
9742 2004-02-03 Andrew Cagney <cagney@redhat.com>
9744 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
9745 (process_note_abi_tag_sections): Delete unused function.
9746 (ia64_read_fp): Delete unused function.
9747 (gdbarch_extract_struct_value_address): Delete declaration.
9749 2004-02-02 Andrew Cagney <cagney@redhat.com>
9751 * vax-tdep.c (vax_frame_chain): Delete call to
9752 deprecated_inside_entry_file.
9753 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
9755 2004-02-02 Mark Kettenis <kettenis@gnu.org>
9757 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
9758 column that's "empty" or "same value" when eliminating REG_RA
9761 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9763 * NEWS: Add information about new pending breakpoint support.
9765 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
9767 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
9768 and pending fields for pending breakpoint support.
9769 * breakpoint.c (breakpoint_enabled): Add check for not pending.
9770 (condition_command): Only parse condition if not a pending
9772 (print_one_breakpoint): Add support for pending breakpoints.
9773 (describe_other_breakpoints): Add checks to verify we are not
9774 dealing with pending breakpoints.
9775 (check_duplicates): Don't check pending breakpoints.
9776 (set_raw_breakpoint): Initialize pending flag.
9777 (do_restore_lang_radix_cleanup): New cleanup routine.
9778 (resolve_pending_breakpoint): New function.
9779 (re_enable_breakpoints_in_shlibs): Try and resolve any
9780 pending breakpoints via resolve_pending_breakpoint.
9781 (mention): Add pending breakpoint support.
9782 (parse_breakpoint_sals): Add new parameter to pass to
9783 decode_line_1 to indicate silent errors when files or functions
9784 are not found. Change all callers.
9785 (do_captured_parse_breakpoint): New function.
9786 (break_command_1): Change prototype to return an rc value and to
9787 take an optional pending breakpoint pointer. Support creating
9788 a pending breakpoint if a "not found" form of error occurs when
9789 parsing the breakpoint. Also support resolving an existing pending
9790 breakpoint and be silent if the resolution fails.
9791 (create_breakpoints): Change prototype to take pending breakpoint
9792 pointer. When resolving a pending breakpoint, use the new pointer
9793 to provide a conditional or commands added by the end-user.
9794 (delete_breakpoint): Add appropriate check for pending.
9795 (breakpoint_re_set_one): Ditto.
9796 (do_enable_breakpoint): Ditto.
9798 2004-02-02 David Carlton <carlton@kealia.com>
9800 * valops.c (enum oload_classification): New.
9801 (find_overload_match): Break implementation into separate
9802 functions; delete #if 0'd code; look for symbols within
9804 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
9805 (find_oload_champ,oload_method_static,classify_oload_match): New.
9806 * cp-support.h: Add declaration for cp_func_name; update
9807 declaration for make_symbol_overload_list.
9808 * cp-support.c (cp_func_name): New.
9809 (overload_list_add_symbol): Fix comment, use
9810 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
9811 (make_symbol_overload_list): Take a function name and a namespace
9812 instead of a symbol; change implementation.
9813 (make_symbol_overload_list_using): New.
9814 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
9816 2004-02-02 Fred Fish <fnf@redhat.com>
9818 * main.c (gdb_stdtarg): Move definition to group with other
9819 gdb_stdtarg definitions and update copyright years.
9820 * remote-sim.c (gdb_os_write_stderr): Write output to
9821 gdb_stdtargerr stream instead of gdb_stdtarg stream.
9822 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
9823 gdb_stderr stream and update copyright years.
9825 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9827 * Makefile.in (mips-linux-nat.o): Update dependencies.
9828 * mips-linux-nat.c: Include mips-tdep.h.
9830 2004-02-01 Roland McGrath <roland@redhat.com>
9832 * sol-thread.c (sol_thread_xfer_partial): New function.
9833 (init_sol_thread_ops): Use that for to_xfer_partial hook.
9834 (init_sol_core_ops): Likewise.
9836 * procfs.c (procfs_xfer_partial): New function.
9837 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
9838 * Makefile.in (procfs.o): Add $(auxv_h) dep.
9840 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
9841 procfs_xfer_auxv function.
9843 * procfs.c (procfs_make_note_section): If we can read
9844 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
9845 * linux-proc.c (linux_make_note_section): Likewise.
9849 * Makefile.in (auxv_h): New variable.
9850 (COMMON_OBS): Add auxv.o here.
9851 (auxv.o): New target.
9853 * corelow.c (core_xfer_partial): New function.
9854 (init_core_ops): Use it for core_ops.to_xfer_partial.
9856 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
9857 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
9858 macro if that is defined.
9860 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9862 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
9863 and check the specified thread for each breakpoint.
9864 * breakpoint.h (bpstat_stop_status): Update prototype.
9865 * infrun.c (handle_inferior_event): Update calls to
9868 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9870 * Makefile.in (cli-cmds.o): Add $(readline_h).
9872 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
9874 * cli/cli-cmds.c: Include readline.h.
9875 (complete_command): Pass the start of the last word to
9878 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9880 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
9881 argument, and change first argument to a CORE_ADDR.
9882 * breakpoint.h (bpstat_stop_status): Update prototype.
9883 * infrun.c (adjust_pc_after_break): Add a new comment.
9884 (handle_inferior_event): Update calls to bpstat_stop_status.
9886 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9888 * breakpoint.h: Update copyright years.
9890 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9892 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
9893 (bpstat_stop_status): Don't decrement PC.
9894 * breakpoint.h (software_breakpoint_inserted_here_p): Add
9896 * infrun.c (adjust_pc_after_break): New function.
9897 (handle_inferior_event): Call it, early. Remove later references
9898 to DECR_PC_AFTER_BREAK.
9899 (normal_stop): Add commentary.
9901 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
9903 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
9904 2004-01-27 double-free fix.
9906 2004-01-31 Mark Kettenis <kettenis@gnu.org>
9908 * sparc-tdep.c (sparc_fetch_wcookie): New function.
9909 (sparc32_frame_prev_register): Handle StackGhost.
9910 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
9912 2004-01-29 Roland McGrath <roland@redhat.com>
9914 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
9915 * configure: Regenerated.
9917 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
9918 * Makefile.in (procfs.o): Add dep.
9920 2004-01-28 Andrew Cagney <cagney@redhat.com>
9922 * tui/tui-stack.h: Update copyright.
9923 (struct frame_info): Add opaque declaration.
9924 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
9925 (tui_show_locator_content): Rename tuiShowLocatorContent.
9926 (tui_show_frame_info): Rename tuiShowFrameInfo.
9927 * tui/tui-stack.c: Update copyright. Update references.
9928 * tui/tui-winsource.c: Update references.
9929 * tui/tui-win.c: Update references.
9930 * tui/tui-layout.c: Update references.
9931 * tui/tui-hooks.c: Update copyright, update references.
9932 * tui/tui.c: Update copyright, update references.
9933 * tui/tui-disasm.c: Update references.
9935 2004-01-28 David Carlton <carlton@kealia.com>
9937 * dwarf2read.c (add_partial_structure): Use demangled name if
9938 namespace equals "".
9940 2004-01-27 Jim Blandy <jimb@redhat.com>
9942 Clean up misapplied patch:
9943 * dwarf2read.c (determine_prefix): Change one of the two forward
9944 declarations for 'determine_prefix_aux' to a declaration for this.
9945 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
9946 argument to 'die_specification'.
9948 * dwarf2read.c (read_func_scope): Re-indent comment.
9950 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
9952 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
9953 b->exp to NULL after freeing so that error during re-parsing or
9954 evaluation of expressions associated with breakpoint don't
9955 eventually lead to re-freeing of storage.
9956 Committed by Andrew Cagney.
9958 2004-01-27 Andrew Cagney <cagney@redhat.com>
9960 * source.c (ambiguous_line_spec): Delete undefined declaration.
9961 * m32r-rom.c (m32r_set_board_address): Delete unused function.
9962 (m32r_set_server_address, m32r_set_download_path): Ditto.
9963 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
9965 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
9967 * dwarf2read.c: Update calls to changed and renamed functions, and
9968 references to moved variables.
9970 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
9971 language, language_defn, list_in_scope, and ftypes members.
9972 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
9973 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
9974 (baseaddr): Remove globals.
9976 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
9977 (set_cu_language, die_is_declaration, die_specification)
9978 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
9979 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
9980 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
9981 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
9983 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
9984 cu.list_in_scope. Don't initialize cu_header_offset.
9985 (add_partial_symbol): Add local baseaddr.
9986 (psymtab_to_symtab_1): Add local baseaddr. Use
9987 objfile->section_offsets for consistency. Don't initialize
9988 cu_header_offset; do initialize cu.header.offset and
9990 (read_file_scope, read_func_scope, read_lexical_block_scope)
9991 (dwarf_decode_lines, new_symbol): Add local baseaddr.
9993 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
9995 * PROBLEMS: Add gdb/1516.
9997 2003-12-29 Robert Millan <robertmh@gnu.org>
9999 Patch committed by Andrw Cagney.
10000 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
10001 * configure.tgt: Match knetbsd*-gnu.
10003 2004-01-26 Andrew Cagney <cagney@redhat.com>
10005 * breakpoint.c (catch_command_1): Delete #ifdef code.
10006 (catch_fork_command_1): Delete #ifdef wrapper.
10007 (catch_exec_command_1): Ditto.
10008 (catch_load_command_1): Ditto.
10009 (catch_unload_command_1): Ditto.
10011 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
10012 (catch_breakpoint): Delete #if0ed function.
10013 (disable_catch_breakpoint): Ditto.
10014 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
10015 (disable_catch, enable_catch, delete_catch): Ditto.
10017 2004-01-26 Andrew Cagney <cagney@redhat.com>
10019 * remote.c (echo_check, quit_flag): Delete variables.
10020 (cisco_kernel_mode): Delete variable.
10021 (minitelnet_return, tty_input, escape_count): Delete variables.
10022 (remote_cisco_mode): Delete variable.
10023 (remote_cisco_open, remote_cisco_close): Delete function.
10024 (remote_cisco_mourn, remote_cisco_wait): Delete function.
10025 (init_remote_cisco_ops): Delete function.
10026 (_initialize_remote): Do not install "remote cisco" code.
10027 (read_frame): Delete cisco specific code.
10028 (remote_info_process): Delete function.
10029 (remote_wait): Delete cisco specific code.
10030 (remote_cisco_section_offsets): Delete function.
10031 (remote_cisco_objfile_relocate): Delete function.
10032 (remote_async_wait): Delete cisco specific code.
10033 (minitelnet, readtty, readsocket): Delete function.
10035 2004-01-26 Andrew Cagney <cagney@redhat.com>
10037 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
10038 comments mentioning extract_returned_value_address.
10039 * infcmd.c (print_return_value): Update. Add comments on
10040 extract_returned_value_address.
10041 * stack.c (return_command): Add comments on
10042 extract_returned_value_address.
10043 * values.c: Update comment.
10044 * m32r-tdep.c: Update comment.
10045 * sparc-tdep.c: Update comment.
10046 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
10047 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10048 * sh64-tdep.c (sh64_gdbarch_init): Update.
10049 * sh-tdep.c (sh_gdbarch_init): Update.
10050 * s390-tdep.c (s390_gdbarch_init): Update.
10051 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10052 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
10053 * m68k-tdep.c (m68k_gdbarch_init): Update.
10054 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10055 * m32r-tdep.c (m32r_gdbarch_init): Update.
10056 * ia64-tdep.c (ia64_gdbarch_init): Update.
10057 * h8300-tdep.c (h8300_gdbarch_init): Update.
10058 * frv-tdep.c (frv_gdbarch_init): Update.
10059 * arm-tdep.c (arm_gdbarch_init): Update.
10060 * alpha-tdep.c (alpha_gdbarch_init): Update.
10062 2004-01-26 Andrew Cagney <cagney@redhat.com>
10064 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
10065 SYMBOL_LOCATION_FUNCS
10066 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
10067 "struct symbol_ops".
10068 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
10069 type to "struct symbol_ops".
10070 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
10071 (struct symbol): Replace ".aux_value.loc.funcs" and
10072 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
10073 (SYMBOL_OBJFILE): Delete macro.
10074 (SYMBOL_LOCATION_FUNCS): Delete macro.
10075 (SYMBOL_LOCATION_BATON): Update.
10076 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
10077 intead of SYMBOL_LOCATION_FUNCS.
10078 * ax-gdb.c (gen_var_ref): Ditto.
10079 * printcmd.c (address_info): Ditto.
10080 * findvar.c (read_var_value): Ditto.
10081 (symbol_read_needs_frame): Ditto.
10083 2004-01-26 Andrew Cagney <cagney@redhat.com>
10085 * dwarf2read.c (read_func_scope): Document frame-base hack.
10087 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10089 * infcmd.c (print_return_value): Plug memory leak; delete
10090 ui_stream object. Rename argument `structure_return' to
10093 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10095 * infcmd.c (print_return_value): Wrap long lines.
10096 (finish_command_continuation, finish_command): Remove unused
10097 variable `funcaddr'. Fix some coding-standards problems.
10099 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
10100 SECT_SIZE is large enough, not whether it's exactly the right size.
10101 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
10102 TDEP->fpregset to zero.
10104 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
10105 floating-point registers for traditional NetBSD core files.
10106 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
10107 TDEP->sizeof_fpregset here.
10109 2004-01-25 Mark Kettenis <kettenis@gnu.org>
10111 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
10112 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
10113 function with code split out from
10114 sparc32nbsd_sigcontext_frame_cache.
10115 (sparc32nbsd_sigcontext_frame_cache): Use
10116 sparc32nbsd_sigcontext_saved_regs.
10117 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
10119 * sparcobsd-tdep.c: New file.
10120 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
10121 (sparcobsd-tdep.o): New dependency.
10122 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
10123 * config/sparc/obsd.mt: New file.
10125 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
10126 TDEP->fpregset to be initialized to enable core file register
10129 2004-01-24 Mark Kettenis <kettenis@gnu.org>
10131 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
10132 Add opaque declarations.
10133 (sparc64nbsd_sigcontext_saved_regs): New prototype.
10134 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
10135 function with code split out from
10136 sparc64nbsd_sigcontext_frame_cache.
10137 (sparc64nbsd_sigcontext_frame_cache): Use
10138 sparc64nbsd_sigcontext_saved_regs.
10139 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
10141 * sparc64obsd-tdep.c: New file.
10142 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
10143 (sparc64obsd-tdep.o): New dependency.
10144 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
10145 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
10146 * config/sparc/obsd64.mt: New file.
10148 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
10149 read the instruction at PC.
10151 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
10152 value of GDB_OSABI_DEFAULT.
10153 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
10154 instead of GDB_OSABI_NETBSD_AOUT.
10156 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
10158 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
10161 2004-01-23 Andrew Cagney <cagney@redhat.com>
10163 * printcmd.c (display_command): Replace tui_set_display call with
10164 tui_set_layout_for_display_command.
10165 * tui/tui.h (enum tui_win_type): Define.
10166 (tui_set_layout): Delete declaration.
10167 (tui_set_layout_for_display_command): Rename set_tui_layout.
10168 * tui/tui-data.h (enum tui_layout_type): Define.
10169 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
10171 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
10172 (tui_default_win_height): Rename tuiDefaultWinHeight.
10173 (tui_default_win_viewport_height): Rename
10174 tuiDefaultWinViewportHeight.
10175 (tui_set_layout): RenametuiSetLayout.
10176 * tui/tui-layout.c: Update references.
10177 * tui/tui.c: Update references.
10178 * tui/tui-disasm.c: Update references.
10180 2004-01-23 David Carlton <carlton@kealia.com>
10182 Partial workaround for PR c++/1511:
10183 * cp-namespace.c: Include frame.h.
10184 (cp_lookup_transparent_type): New
10185 (cp_lookup_transparent_type_loop): New.
10186 * cp-support.h: Declare cp_lookup_transparent_type.
10187 * symtab.c (basic_lookup_transparent_type): Renamed from
10188 lookup_transparent_type.
10189 (lookup_transparent_type): Replace old body by a call to
10190 current_language->la_lookup_transparent_type.
10191 * symtab.h: Update copyright. Declare
10192 basic_lookup_transparent_type.
10193 * language.h: Update copyright.
10194 (struct language_defn): Add la_lookup_transparent_type.
10195 * language.c: Update copyright.
10196 (unknown_language_defn): Add basic_lookup_transparent_type.
10197 (auto_language_defn): Add basic_lookup_transparent_type.
10198 (local_language_defn): Add basic_lookup_transparent_type.
10199 * ada-lang.c: Update copyright.
10200 (ada_language_defn): Add basic_lookup_transparent_type.
10201 * c-lang.c: Update copyright.
10202 (c_language_defn): Add basic_lookup_transparent_type.
10203 (cplus_language_defn): Add basic_lookup_transparent_type.
10204 (asm_language_defn): Add basic_lookup_transparent_type.
10205 (minimal_language_defn): Add basic_lookup_transparent_type.
10206 * f-lang.c: Update copyright.
10207 (f_language_defn): Add basic_lookup_transparent_type.
10208 * jv-lang.c: Update copyright.
10209 (java_language_defn): Add basic_lookup_transparent_type.
10210 * m2-lang.c: Update copyright.
10211 (m2_language_defn): Add basic_lookup_transparent_type.
10212 * objc-lang.c: Update copyright.
10213 (objc_language_defn): Add basic_lookup_transparent_type.
10214 * p-lang.c: Update copyright.
10215 (p_language_defn): Add basic_lookup_transparent_type.
10216 * scm-lang.c: Update copyright.
10217 (scm_language_defn): Add basic_lookup_transparent_type.
10218 * Makefile.in (cp-namespace.o): Depend on frame.h.
10220 2004-01-23 David Carlton <carlton@kealia.com>
10222 Patch for PR c++/1520:
10223 * dwarf2read.c (read_func_scope): Set processing_current_prefix
10224 properly if we have a specification die.
10225 (determine_prefix_aux): Rename from determine_prefix.
10226 (determine_prefix): Like the old determine_prefix, but never
10229 2004-01-23 Theodore A. Roth <troth@openavr.org>
10231 * avr-tdep.c: Update copyright.
10232 (avr_iaddr_p): Delete unused function.
10233 (avr_saddr_p): Delete unused function.
10235 2004-01-23 David Carlton <carlton@kealia.com>
10237 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
10238 Fix for PR symtab/1534.
10240 2004-01-23 Mark Kettenis <kettenis@gnu.org>
10242 * NEWS (New native configurations): Mention OpenBSD/sparc and
10244 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
10245 * configure.host: Likewise.
10246 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
10247 handler for OpenBSD.
10248 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
10250 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10252 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
10253 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
10255 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
10256 * cli/cli-cmds.c (shell_escape): Likewise.
10258 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
10259 OpenBSD .note.openbsd.ident sections.
10261 2004-01-22 David Carlton <carlton@kealia.com>
10263 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
10264 get_scope_pc_bounds.
10265 (read_file_scope): Ditto.
10266 (get_scope_pc_bounds): New function, produced by extracting code
10267 from the above two functions, consolidating it, and adding support
10268 for DW_TAG_namespace.
10270 2004-01-22 Mark Kettenis <kettenis@gnu.org>
10272 * osabi.c (MAX_NOTESZ): New define.
10273 (check_note): New function.
10274 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
10277 2004-01-21 Roland McGrath <roland@redhat.com>
10279 * MAINTAINERS (write after approval): Add myself.
10281 2004-01-21 Eli Zaretskii <eliz@gnu.org>
10283 * utils.c (init_page_info): Move declarations of `rows' and
10284 `cols' before the __GO32__-specific code. Move the closing brace
10285 outside the #ifdef __GO32__..#endif block.
10286 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
10288 2004-01-21 Paul Brook <paul@codesourcery.com>
10290 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
10291 BPSTAT_WHAT_CHECK_SHLIBS.
10293 2004-01-21 Paul Brook <paul@codesourcery.com>
10295 * MAINTAINERS: Add myself to write-after-approval.
10297 2004-01-20 Andrew Cagney <cagney@redhat.com>
10299 * ax-gdb.c (print_axs_value): Delete unused function.
10300 * jv-lang.c (java_lookup_type): Delete unused function.
10301 * cli/cli-dump.c (dump_filetype): Delete unused function.
10302 * remote-mips.c (remote_mips_insert_hw_breakpoint)
10303 (remote_mips_remove_hw_breakpoint): Delete unused functions.
10304 (mips_getstring): Delete unused function.
10305 (pmon_insert_breakpoint): Delete #if0ed function.
10306 (PMON_MAX_BP): Delete #if0ed MACRO.
10307 (mips_pmon_bp_info): Delete #if0ed variable.
10308 (pmon_remove_breakpoint): Delete #if0ed function.
10309 * monitor.c (monitor_write_even_block): Delete unused function.
10310 (monitor_write_memory_block): Delete #if0ed code.
10311 * dink32-rom.c (dink32_load): Delete unused function.
10312 (_initialize_dink32_rom): Delete #if0ed code.
10313 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
10315 * tui/tui-command.c: Update references.
10316 * tui/tui-io.c: Update references.
10317 * tui/tui-command.h: Update copyright.
10318 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
10320 * source.c (ambiguous_line_spec): Delete never-defined function.
10321 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
10322 * gdbtypes.c (add_name, add_mangled_type): Ditto.
10323 * cli/cli-cmds.c (validate_comname): Ditto.
10325 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
10327 (tui_set_disassem_content): Rename tuiSetDisassemContent.
10328 (tui_show_disassem): Rename tuiShowDisassem.
10329 (tui_show_disassem_and_update_source): Rename
10330 tuiVerticalDisassemScroll.
10331 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
10332 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
10333 * tui/tui.h: Update copyright.
10334 (enum tui_status): Define.
10335 * tui/tui-data.h (enum tui_scroll_direction): Define.
10336 * tui/tui-disasm.c: Update copyright. Update references.
10337 * tui/tui-winsource.c: Update copyright. Update references.
10338 * tui/tui-win.c: Update references.
10339 * tui/tui-layout.c: Update references.
10341 2004-01-20 Andrew Cagney <cagney@redhat.com>
10343 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
10344 sym2 to start of block.
10346 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
10348 * MAINTAINERS: Delete mmalloc.
10349 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
10350 * NEWS: Mention removal of --with-malloc.
10351 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
10352 * config.in: Regenerate.
10353 * configure: Regenerate.
10354 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
10355 USE_MMALLOC, MMCHECK_FORCE.
10356 * gdbinit.in: Remove mmalloc.
10357 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
10358 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
10359 * config/i386/go32.mh: Likewise.
10360 * config/i386/interix.mh: Likewise.
10361 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
10363 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
10365 * linespec.c (decode_variable, symtab_from_filename): Call
10366 error_silent with error message instead of throwing an exception
10368 * defs.h (error_silent, error_output_message): Add prototypes.
10369 (catch_exceptions_with_msg): Ditto.
10370 * utils.c (error_silent, error_output_message): New functions.
10371 * top.c (catch_exceptions_with_msg): New function.
10373 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
10375 * mi/mi-cmds.h (enum print_values): Add definition.
10377 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
10378 type and value for simple data types and just the name and type
10379 for complex ones, if required.
10381 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
10382 children, if required.
10384 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10386 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
10387 unused declarations.
10389 2004-01-19 Andrew Cagney <cagney@redhat.com>
10391 * top.h (mapped_symbol_files): Delete declaration.
10392 * main.c (captured_main): Delete option "m" and "mapped".
10393 * objfiles.c (mapped_symbol_files): Delete variable.
10394 * symfile.c (symbol_file_command): Delete mmap code.
10395 (symbol_file_add_with_addrs_or_offsets): Ditto.
10396 (add_symbol_file_command, reread_separate_symbols): Ditto.
10397 * objfiles.h (OBJF_MAPPED): Delete.
10398 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
10399 (free_objfile) [USE_MMALLOC]: Ditto.
10400 (open_existing_mapped_file): Delete function.
10401 (open_mapped_file): Delete function.
10402 (map_to_file): Delete function.
10404 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10406 * infrun.c (step_into_function): Account for possible breakpoint
10407 adjustment when computing ``stop_func_start''.
10409 2004-01-19 Kevin Buettner <kevinb@redhat.com>
10411 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
10412 the region size against the size of a pointer, not the size of
10413 a register as given by DEPRECATED_REGISTER_SIZE.
10415 2004-01-19 Andrew Cagney <cagney@redhat.com>
10417 * tui/tui-regs.h: Include "tui-data.h".
10418 (tuiFirstRegElementNoInLine): Delete declaration.
10419 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
10420 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
10421 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
10422 (tui_calculate_regs_column_count): Rename
10423 tuiCalculateRegsColumnCount.
10424 (tui_check_register_values): Rename tuiCheckRegisterValues.
10425 (tui_show_registers): Rename tuiShowRegisters.
10426 (tui_display_registers_from_line): Rename
10427 tuiDisplayRegistersFromLine.
10428 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
10429 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
10430 (tui_first_reg_element_no_inline): Rename
10431 tuiFirstRegElementNoInLine.
10432 * tui/tui-data.h: Update copyright.
10433 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
10434 * tui/tui-windata.c: Update copyright, update references.
10435 * tui/tui-regs.c: Update copyright, update references.
10436 * tui/tui-win.c: Update copyright, update references.
10437 * tui/tui-layout.c: Update copyright, update references.
10439 2004-01-18 Andrew Cagney <cagney@redhat.com>
10441 * tui/tui-io.c: Update copyright.
10442 (key_is_end_sequence, key_is_backspace): New functions.
10443 (key_is_command_char, key_is_start_sequence): New function.
10444 (tui_getc): Update references.
10445 * tui/tui-io.h: Update copyright.
10446 (m_tuiStartNewLine): Delete macro.
10447 (m_isBackspace, m_isDeleteChar): Delete macros.
10448 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
10449 (m_isNextPage, m_isPrevPage): Delete macros.
10450 (m_isLeftArrow, m_isRightArrow): Delete macros.
10451 (m_isXdbStyleCommandChar): Delete macro.
10452 (key_is_start_sequence): Declare, replace m_isStartSequence.
10453 (key_is_end_sequence): Declare, replace m_isEndSequence.
10454 (key_is_backspace): Declare ,replace m_isBackspace.
10455 (key_is_command_char): Declare, replace m_isCommandChar.
10456 * tui/tui-command.c: Update copyright.
10457 (tuiDispatchCtrlChar): Update references.
10459 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
10462 * tui/tui-command.c: Rename tui/tuiCommand.c.
10463 * tui/tui-command.h: Rename tui/tuiCommand.h.
10464 * tui/tui-data.c: Rename tui/tuiData.c.
10465 * tui/tui-data.h: Rename tui/tuiData.h.
10466 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
10467 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
10468 * tui/tui-io.c: Rename tui/tuiIO.c.
10469 * tui/tui-io.h: Rename tui/tuiIO.h.
10470 * tui/tui-layout.c: Rename tui/tuiLayout.c.
10471 * tui/tui-layout.h: Rename tui/tuiLayout.h.
10472 * tui/tui-regs.c: Rename tui/tuiRegs.c.
10473 * tui/tui-regs.h: Rename tui/tuiRegs.h.
10474 * tui/tui-source.c: Rename tui/tuiSource.c.
10475 * tui/tui-source.h: Rename tui/tuiSource.h.
10476 * tui/tui-stack.c: Rename tui/tuiStack.c.
10477 * tui/tui-stack.h: Rename tui/tuiStack.h.
10478 * tui/tui-win.c: Rename tui/tuiWin.c.
10479 * tui/tui-win.h: Rename tui/tuiWin.h.
10480 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
10481 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
10482 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
10483 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
10484 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
10485 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
10486 * tui/tui-file.c: Update includes.
10487 * tui/tui-hooks.c: Update includes.
10488 * tui/tui-interp.c: Update includes.
10489 * tui/tui.c: Update includes.
10490 * Makefile.in: Update all tui/ dependencies.
10491 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
10493 * Makefile.in: Update copyright. Update dependencies.
10495 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
10498 2004-01-18 Andrew Cagney <cagney@redhat.com>
10500 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
10501 instead of register_gdbarch_init.
10503 * remote-sds.c (tohex): Delete unused function. Update copyright.
10504 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
10505 * v850-tdep.c (v850_register_virtual_size): Ditto.
10506 * target.c (normal_target_post_startup_inferior): Ditto.
10507 * source.c (ambiguous_line_spec): Ditto.
10508 * remote.c (adapt_remote_get_threadinfo): Ditto.
10509 * mi/mi-out.c (out_field_fmt): Ditto.
10510 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
10511 (output_control_change_notification): Ditto.
10512 * m68k-tdep.c (m68k_register_byte): Ditto.
10513 (m68k_remote_breakpoint_from_pc): Ditto.
10514 * ui-out.c (init_ui_out_state): Delete unused declaration.
10515 * stabsread.c (search_value): Ditto.
10516 * mi/mi-cmd-env.c (env_cli_command): Ditto.
10517 * maint.c (print_section_table): Ditto.
10518 * infrun.c (set_follow_fork_mode_command): Ditto.
10520 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10522 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
10523 DW_CFA_def_cfa_exporession. Add support for
10524 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
10525 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
10527 2004-01-18 Andrew Cagney <cagney@redhat.com>
10529 * ocd.c: Update copyright.
10530 (bdm_read_register_command): Delete unused function.
10531 (_initialize_remote_ocd): Delete commented out reference.
10532 (get_quoted_char, reset_packet): Delete #if0ed function.
10533 (output_packet, put_quoted_char): Delete #if0ed function.
10534 (stu_put_packet, stu_get_packet): Delete #if0ed function.
10535 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
10536 (BDM_BREAKPOINT): Delete #if0ed macro.
10537 (remote_timeout): Delete #if0ed variable.
10539 2004-01-18 Mark Kettenis <kettenis@gnu.org>
10541 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
10542 (core-sol2.o): Remove dependency.
10543 * core-sol2.c: Remove file.
10545 2004-01-17 Andrew Cagney <cagney@redhat.com>
10547 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
10548 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
10551 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10553 * remote.c: Update copyright years.
10555 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10557 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
10559 2004-01-17 Andrew Cagney <cagney@redhat.com>
10561 * mdebugread.c: Update copyright.
10562 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
10563 (parse_type, parse_procedure): Ditto.
10564 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
10566 * cris-tdep.c (cris_store_struct_return): Put back accidently
10569 * gdbarch.sh: Update copyright year.
10570 * gdbarch.h, gdbarch.c: Re-generate.
10572 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10574 Suggested by George Anzinger.
10575 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
10576 correct stack offset. Include unknown opcode numbers in the error
10579 2004-01-17 Andrew Cagney <cagney@redhat.com>
10581 * x86-64-tdep.c (x86_64_init_abi): No need to clear
10582 extract_struct_value_address, i386 does not set it.
10583 * sparc64-tdep.c (sparc64_init_abi): Do not set
10584 extract_struct_value_address, never called.
10585 (sparc64_extract_struct_value_address): Delete function.
10586 * m68hc11-tdep.c: Update copyright.
10587 (m68hc11_gdbarch_init): Delete redundant assignment of
10588 extract_struct_value_address.
10589 * i386-tdep.c: Update copyright.
10590 (i386_gdbarch_init): Do not set extract_struct_value_address,
10592 (i386_extract_struct_value_address): Delete function.
10593 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
10594 extract_struct_value_address, never called.
10595 (sparc32_extract_struct_value_address): #if 0 function. Add
10596 comments explaining its future.
10598 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10600 * arm-tdep.c (arm_write_pc): New function.
10601 (arm_gdbarch_init): Call set_gdbarch_write_pc.
10603 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10605 * breakpoint.c (must_shift_inst_regs): Delete.
10606 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
10607 and SHIFT_INST_REGS.
10608 * infcmd.c (step_1, step_1_continuation): Delete references to
10610 * infrun.c (keep_going): Likewise.
10611 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
10612 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
10614 2004-01-17 Andrew Cagney <cagney@redhat.com>
10616 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
10617 * gdbarch.h, gdbarch.c: Re-generate.
10618 * infcmd.c (print_return_value): Delete reference to
10619 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
10621 * cris-tdep.c (cris_gdbarch_init): Do not set
10622 deprecated_extract_struct_value_address.
10624 * xstormy16-tdep.c: Update copyright.
10625 (xstormy16_extract_struct_value_address): Update to current
10626 extract struct value address interface.
10627 (xstormy16_gdbarch_init): Set extract_struct_value_address.
10628 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
10629 current extract struct value address interface.
10630 (sh64_gdbarch_init): Set extract_struct_value_address.
10632 * cris-tdep.c: Update copyright.
10633 (cris_extract_struct_value_address): Delete function.
10634 (struct_return_address): Delete variable.
10635 (cris_store_struct_return): Do not set struct_return_address.
10637 * mcore-tdep.c: Update copyright.
10638 (mcore_extract_struct_value_address): Delete function. Update
10640 (mcore_gdbarch_init): Update.
10641 * mn10300-tdep.c: Update copyright.
10642 (mn10300_extract_struct_value_address): Delete function.
10643 (mn10300_gdbarch_init): Update.
10644 * v850-tdep.c: Update copyright.
10645 (v850_extract_struct_value_address): Delete.
10646 (v850_gdbarch_init): Update.
10647 * ns32k-tdep.c: Update copyright.
10648 (ns32k_extract_struct_value_address): Delete.
10649 (ns32k_gdbarch_init): Update.
10650 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
10651 (hppa_gdbarch_init): Update.
10652 * vax-tdep.c: Update copyright.
10653 (vax_extract_struct_value_address): Delete.
10654 (vax_gdbarch_init): Update.
10656 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
10657 * gdbarch.h, gdbarch.c: Re-generate.
10658 * procfs.c (procfs_fetch_registers): Delete reference to
10659 DEPRECATED_NPC_REGNUM.
10660 (procfs_store_registers): Ditto.
10661 * regcache.c (generic_target_write_pc): Simplify.
10662 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
10664 * core-sol2.c (fetch_core_registers): Replace
10665 DEPRECATED_NPC_REGNUM with equivalent tdep value.
10667 * hppa-tdep.c: Update copyright year.
10668 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
10670 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
10672 * mips-tdep.c (mips_write_pc): New function.
10673 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
10674 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
10675 (mips_find_saved_regs, mips_software_single_step: Ditto.
10676 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
10677 mips_init_extra_frame_info, mips_pop_frame): Ditto.
10679 2004-01-17 Andrew Cagney <cagney@redhat.com>
10681 * mips-tdep.c: Re-indent. Group functions by ABI.
10683 2004-01-17 Andrew Cagney <cagney@redhat.com>
10685 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
10686 * gdbarch.c: Re-generate.
10687 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10688 DECR_PC_AFTER_BREAK to zero.
10689 * vax-tdep.c (vax_gdbarch_init): Ditto.
10690 * v850-tdep.c (v850_gdbarch_init): Ditto.
10691 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10692 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10693 * sh-tdep.c (sh_gdbarch_init): Ditto.
10694 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10695 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10696 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10697 * mips-tdep.c (mips_gdbarch_init): Ditto.
10698 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10700 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10701 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10702 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
10703 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10704 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10705 * frv-tdep.c (frv_gdbarch_init): Ditto.
10706 * cris-tdep.c (cris_gdbarch_init): Ditto.
10707 * avr-tdep.c (avr_gdbarch_init): Ditto.
10708 * arm-tdep.c (arm_gdbarch_init): Ditto.
10709 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
10711 2004-01-17 J. Brobecker <brobecker@gnat.com>
10713 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
10714 Delete, no longer used.
10715 (read_subrange_type): New function, mostly extracted from
10717 (read_array_type): Replace extracted code by call to
10718 read_subrange_type().
10719 (dwarf2_get_attr_constant_value): New function.
10720 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
10721 (add_partial_symbol): Likewise.
10722 (process_die): Likewise.
10723 (new_symbol): Likewise.
10724 (read_type_die): Likewise.
10726 2004-01-16 Andrew Cagney <cagney@redhat.com>
10728 * symfile.c: Update copyright year.
10729 (compare_symbols): Delete unused function.
10730 * stabsread.c: Update copyright year.
10731 (lrs_general_complaint): Delete unused function.
10732 (ref_search_value): Ditto.
10733 (get_substring): Delete declaration.
10734 * sh64-tdep.c: Update copyright year.
10735 (sh64_get_gdb_regnum): Delete unused function.
10736 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
10737 Delete unused function.
10739 2004-01-17 Mark Kettenis <kettenis@gnu.org>
10741 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
10742 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
10744 2004-01-16 Andrew Cagney <cagney@redhat.com>
10746 Changes from Peter Schauer.
10747 * rs6000-tdep.c: Update copyright year.
10748 (rs6000_push_dummy_call): Update the stack pointer before
10749 accessing the corresponding stack region.
10750 * rs6000-nat.c: Update copyright year.
10751 (set_host_arch): Set "info.abfd" to "exec_bfd".
10753 2004-01-15 Mark Kettenis <kettenis@gnu.org>
10755 * blockframe.c: Update copyright year.
10756 (inside_entry_func): Don't treat a zero PC specially.
10758 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
10760 * gcore.c (gcore_copy_callback): Use paddr_d to print size
10762 (gcore_create_callback): Ditto. Skip any memory segment that has
10763 no permissions set.
10765 2004-01-14 David Carlton <carlton@kealia.com>
10767 Change symbols for C++ nested types to contain the fully qualified
10768 name, if possible. (At least in the DWARF-2 case.) Partial fix
10769 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
10771 * c-exp.y (qualified_type): Handle types nested within classes.
10772 * cp-namespace.c: Update comments.
10773 (cp_set_block_scope): Delete #if 0.
10774 (cp_lookup_nested_type): Handle types nested within classes.
10775 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
10777 (add_partial_symbol): Add the name of the enclosing namespace to
10779 (pdi_needs_namespace): New.
10780 (add_partial_namespace): Tweak comment.
10781 (add_partial_structure): New.
10782 (psymtab_to_symtab_1): Initialize processing_current_prefix
10784 (process_die): instead of here.
10785 (read_structure_scope): Try to figure out the name of the class or
10786 namespace that the structure might be defined within.
10787 (read_enumeration): Generate fully-qualified names, if possible.
10788 (read_namespace): Don't set name to NULL.
10789 (die_specification): New.
10790 (new_symbol): Generate fully-qualified names for types.
10791 (read_type_die): Determine appropriate prefix.
10792 (determine_prefix): New.
10793 (typename_concat): New.
10795 * valops.c (value_aggregate_elt): Pass NOSIDE to
10796 value_struct_elt_for_reference.
10797 (value_struct_elt_for_reference): Make static, add NOSIDE
10798 parameter, call value_maybe_namespace_elt as a last resort.
10799 (value_namespace_elt): Break out code into
10800 value_maybe_namespace_elt.
10801 (value_maybe_namespace_elt): New.
10803 2004-01-12 Andrew Cagney <cagney@redhat.com>
10805 * mips-tdep.c (mips_convert_register_p): Handle both raw and
10806 cooked floating-point registers.
10807 (mips_gdbarch_init): Set convert_register_p, register_to_value,
10808 and value_to_register.
10810 2004-01-13 Andrew Cagney <cagney@redhat.com>
10812 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
10813 * gdbarch.c: Re-generate.
10814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10815 FUNCTION_START_OFFSET.
10816 * v850-tdep.c (v850_gdbarch_init): Ditto.
10817 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
10818 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
10819 * sh-tdep.c (sh_gdbarch_init): Ditto.
10820 * s390-tdep.c (s390_gdbarch_init): Ditto.
10821 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10822 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10823 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10824 * mips-tdep.c (mips_gdbarch_init): Ditto.
10825 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10826 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10827 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10828 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
10829 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10830 * i386-tdep.c (i386_gdbarch_init): Ditto.
10831 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10832 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10833 * frv-tdep.c (frv_gdbarch_init): Ditto.
10834 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10835 * cris-tdep.c (cris_gdbarch_init): Ditto.
10836 * avr-tdep.c (avr_gdbarch_init): Ditto.
10837 * arm-tdep.c (arm_gdbarch_init): Ditto.
10838 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
10840 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
10842 * infrun.c (follow_fork_mode_ask): Remove.
10843 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
10844 (follow_fork): Simplify and remove internal error for
10845 follow_fork_mode_ask.
10846 (_initialize_infrun): Update "set follow-fork-mode" help text.
10848 2004-01-13 Andrew Cagney <cagney@redhat.com>
10850 * configure.in: Update copyright year.
10851 (build_warnings): Add -Wunused-label.
10852 * configure: Re-generate.
10854 2004-01-12 Andrew Cagney <cagney@redhat.com>
10856 * exec.h (exec_ops): Make "extern".
10858 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
10859 the function is void.
10860 (mips_pseudo_register_write): Ditto.
10862 2004-01-12 Andrew Cagney <cagney@redhat.com>
10864 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
10865 call. Never defined.
10866 * sparc-tdep.h (struct frame_info): Add opaque declaration.
10867 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
10868 (struct sparc_gregset, struct regcache): Ditto.
10869 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
10871 2004-01-12 Andrew Cagney <cagney@redhat.com>
10873 * mi/ChangeLog: Delete file. Renamed to ...
10874 * mi/ChangeLog-1999-2003: New file.
10875 * tui/ChangeLog: Delete file. Renamed to ...
10876 * tui/ChangeLog-1998-2003: New file.
10878 2004-01-11 Mark Kettenis <kettenis@gnu.org>
10880 * sparc64nbsd-tdep.c: Include "regset.h".
10881 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
10883 (fetch_core_registers): Remove function.
10884 (sparc64nbsd_core_fns): Remove variable.
10885 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
10887 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
10888 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10889 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
10891 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
10892 sparc_extract_struct_value_address.
10893 (sparc32_gdbarch_init): Set extract_struct_value_address.
10894 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
10896 (sparc64_init_abi): Set extract_struct_value_address. Don't set
10897 return_value_on_stack.
10899 * NEWS: Mention that %cs and %ss have been added to the AMD64
10902 * frame.c: Update copyright year.
10903 (get_prev_frame): Improve comment.
10905 * sparc64fbsd-tdep.c: Include "regset.h".
10906 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
10908 (fetch_core_registers): Remove function.
10909 (sparc64fbsd_core_fns): Remove variable.
10910 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
10912 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
10913 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
10914 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
10916 * sparcnbsd-tdep.c: Include "regset.h".
10917 (fetch_core_registers): Remove function.
10918 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
10919 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
10921 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
10923 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
10925 * sparc-tdep.h (struct regset): Provide opaque declaration.
10926 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
10927 fpregset and sizeof_fpregset members.
10928 * sparc-tdep.c (struct regset): Provide opaque declaration.
10929 (sparc_regset_from_core_section): New function.
10930 (sparc32_gdbarch_init): Initialize TDEP->gregset,
10931 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
10932 Set regset_from_core_section when appropriate.
10934 2004-01-10 Mark Kettenis <kettenis@gnu.org>
10936 * x86-64-tdep.c (amd64_non_pod_p): New function.
10937 (amd64_classify_aggregate): Return class memory for non-POD
10938 C++ structure types.
10940 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
10941 argument. Use it to reserve a register if necessary.
10942 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
10943 amd64_push_arguments.
10945 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
10947 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
10948 register numbers in comments.
10949 * x86-64-tdep.h: Update copyright year.
10950 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
10951 Adjust for addition of %cs and %ss.
10952 * amd64fbsd-nat.c: Update copyright year.
10953 (reg_offset): Add register offsets for %cs and %ss.
10954 * amd64fbsd-tdep.c: Update copyright year.
10955 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
10956 (amd64fbsd_sc_reg_offset): Likewise.
10957 * x86-64-linux-nat.c: Update copyright year.
10958 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
10960 * amd64nbsd-nat.c: Update copyright year.
10961 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
10962 * amd64nbsd-tdep.c: Update copyright year.
10963 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
10964 * x86-64-linux-tdep.c: Update copyright year.
10965 (user_to_gdb_regmap): Add mapping for %cs and %ss.
10966 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
10967 * regformats/reg-x86-64.dat: Add %cs and %ss.
10969 * blockframe.c (inside_entry_func): Reformat. Introduce new local
10970 variables to prevent long lines. Update comments to reflect
10973 2004-01-09 David Carlton <carlton@kealia.com>
10975 Checked in by Elena Zannoni <ezannoni@redhat.com>.
10976 * dwarf2read.c (read_namespace): Pull out name-generating code
10977 into namespace_name. Rename previous_namespace to previous_prefix
10978 and processing_current_namespace to processing_current_prefix..
10979 (namespace_name): New function.
10980 (add_partial_symbol): Substitute uses of pdi->name with
10982 * cp-support.h: Rename processing_current_namespace to
10983 processing_current_prefix.
10984 Update copyright year.
10985 * cp-namespace.c: Rename processing_current_namespace to
10986 processing_current_prefix.
10987 Update copyright year.
10989 2004-01-09 Andrew Cagney <cagney@redhat.com>
10991 * jv-valprint.c, ser-unix.c: Add missing copyright years.
10993 2004-01-09 Mark Kettenis <kettenis@gnu.org>
10995 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
10997 (process_one_symbol): Deal with N_PATCH stabs.
10999 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
11001 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
11003 Update copyright year.
11005 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11007 * config/pa/tm-hppa.h: Update extern declarations for
11008 hppa32_hpux_frame_saved_pc_in_sigtramp,
11009 hppa32_hpux_frame_base_before_sigtramp, and
11010 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
11012 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
11014 * config/pa/tm-hppah.h: Update copyright years.
11016 2004-01-08 Andrew Cagney <cagney@redhat.com>
11018 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
11019 (mips_o32_reg_struct_has_addr): Delete function.
11020 (mips_gdbarch_init): Update.
11021 (mips_extract_struct_value_address): Delete function.
11023 2004-01-08 David Mosberger <davidm@hpl.hp.com>
11025 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
11028 2004-01-07 Andrew Cagney <cagney@redhat.com>
11030 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
11031 architecture's elf flags (when available).
11033 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
11034 FPU to the start, check the MIPS FPU when looking for an old
11036 (set_mipsfpu_single_command): Update the architecture.
11037 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
11039 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
11040 (mips_mask_address_p): Add "tdep" parameter.
11041 (show_mask_address, mips_addr_bits_remove): Update.
11042 (mips_dump_tdep): Update.
11043 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
11044 (MIPS_STACK_ARGSIZE): Delete macro.
11045 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
11046 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
11047 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
11048 (mips_dump_tdep): Update.
11049 (MIPS_SAVED_REGSIZE): Delete macro.
11050 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
11051 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
11052 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
11053 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
11054 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
11055 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
11056 (mips_pop_frame, return_value_location): Update.
11057 (mips_n32n64_return_value, mips_dump_tdep): Update.
11059 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
11062 * mips-tdep.c: Update copyright.
11063 (mips_gdbarch_init): Merge two code blocks handling the register
11064 name and number layout.
11066 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
11068 * tracepoint.c (validate_actionline): Fix segv at EOF
11070 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
11072 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
11073 properly for static fields.
11075 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
11076 Jason Molenda <jmolenda@apple.com>
11078 * disasm.c: Update copyright to include 2004.
11079 (do_mixed_source_and_assembly): For uiout asm list
11080 and tuple cleanups, initialize to null_cleanup instead of
11081 NULL and do so prior to loop. Only reset when we close off
11082 the tuple/list. Move check for whether to close off the
11083 asm tuple/list to after dump_insns call where it will be run
11084 on each loop iteration.
11086 2004-01-05 Andrew Cagney <cagney@redhat.com>
11088 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
11089 should be a switch case and not a label.
11090 * mips-tdep.c (mips32_next_pc): Delete unused labels
11091 "greater_equal_branch" and "less_zero_branch".
11092 * jv-valprint.c (java_print_value_fields): Delete unused label
11095 * target.c (unpush_target): Only close a target that is in the
11098 2004-01-05 Mark Kettenis <kettenis@gnu.org>
11100 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
11101 address from [sp + 64] instead of %o2.
11103 * frame.c (get_prev_frame): Don't try to unwind the PC. This
11104 fixes PR backtrace/1476.
11106 2004-01-05 Andrew Cagney <cagney@redhat.com>
11108 * libunwind-frame.h (struct frame_id): Add opaque declaration,
11109 move to start of file.
11110 * i386-tdep.h (struct regcache): Add opaque declaration.
11111 * config/ia64/nm-linux.h (struct target_ops): Add opaque
11113 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
11114 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
11115 * win32-nat.c (fake_create_process): Use ISO C style definition.
11116 * stabsread.c (define_symbol): Delete #ifndef
11117 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
11118 stabs_argument_has_addr call, macro never defined.
11120 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
11122 * op50-rom.c: Delete.
11123 * w89k-rom.c: Delete.
11124 * Makefile.in: Remove references.
11126 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11128 * x86-64-tdep.c: Update copyright year.
11129 (struct amd64_register_info): Rename from x86_64_register_info.
11130 (amd64_register_info): Rename from x86_64_register_info.
11131 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
11132 (amd64_register_name): Rename from x86_64_register_name.
11133 (amd64_register_type): Rename from x86_64_register_type.
11134 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
11135 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
11136 (amd64_dwarf_reg_to_regnum): Rename from
11137 x86_64_dwarf_reg_to_regnum.
11138 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
11139 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
11140 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
11141 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
11142 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
11143 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
11144 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
11145 (amd64_frame_cache): Rename from x86_64_frame_cache.
11146 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
11147 (amd64_frame_prev_register): Rename from
11148 x86_64_frame_prev_register.
11149 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
11150 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
11151 (amd64_sigtramp_frame_cache): Rename from
11152 x86_64_sigtramp_frame_cache.
11153 (amd64_sigtramp_frame_prev_register): Rename from
11154 x86_64_sigtramp_frame_prev_register.
11155 (amd64_sigtramp_frame_unwind): Rename from
11156 x86_64_sigtramp_frame_unwind.
11157 (amd64_sigtramp_frame_sniffer): Rename from
11158 x86_64_sigtramp_frame_sniffer.
11159 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
11160 (amd64_frame_base): Rename from x86_64_frame_base.
11161 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
11162 (amd64_frame_align): Rename from x86_64_frame_align.
11163 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
11164 (amd64_regset_from_core_section): Rename from
11165 x86_64_regset_from_core_section.
11166 (x86_64_init_abi): Update comments.
11168 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
11170 * MAINTAINERS (write after approval): Add myself.
11172 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11174 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
11177 2004-01-04 Mark Kettenis <kettenis@gnu.org>
11179 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
11180 such that it mentions a specific version of GCC that exhibits this
11183 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11185 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
11186 structure that has a single `float' member, store it in %f1 in
11189 * sparc-sol2-nat.c: Add missing '\'.
11191 * sparc-tdep.c (sparc32_return_value): New function.
11192 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
11194 (sparc32_gdbarch_init): Set return_value, don't set
11195 extract_return_value, store_return_value, use_struct_convention
11196 and return_value_on_stack.
11198 * sparc-sol2-nat.c: Add missing ')'.
11200 2004-01-03 J. Brobecker <brobecker@gnat.com>
11202 * infrun.c (handle_step_into_function): New function.
11203 (handle_inferior_event): Extract out some code into the new
11206 2004-01-03 J. Brobecker <brobecker@gnat.com>
11208 * infrun.c (handle_inferior_event): Move the declaration of
11209 real_stop_pc inside the if blocks where it is used.
11211 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11213 * sparc64-tdep.c (sparc64_16_byte_align_p)
11214 (sparc64_store_floating_fields, sparc64_store_floating_fields):
11215 Use check_typedef to get subtypes of structures and unions.
11216 (sparc64_store_return_value): Fix calculation of the appropriate
11217 offset into VALBUF when storing a structure or union.
11218 (sparc64_return_value): New function.
11219 (sparc64_use_struct_convention): Remove function.
11220 (sparc64_init_abi): Set return_value, don't set
11221 extract_return_value, store_return_value and
11222 use_struct_convention.
11224 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
11226 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
11227 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
11228 gdb/config/alpha/xm-alphaosf.h,
11229 gdb/config/powerpc/tm-ppcle-eabi.h,
11230 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
11231 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
11232 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
11233 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
11234 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
11235 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
11236 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
11237 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
11238 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
11239 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
11240 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
11241 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
11242 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
11243 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
11244 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
11245 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
11246 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
11247 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
11248 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
11249 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
11250 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
11251 Remove lines for .cvsignore files.
11253 2004-01-03 J. Brobecker <brobecker@gnat.com>
11255 * infrun.c: Back out the previous change.
11257 2004-01-03 Mark Kettenis <kettenis@gnu.org>
11259 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
11260 sparc-*-sunos4* to the list of REMOVED configurations.
11262 * configure.tgt: Add back sparc-*-vxworks*.
11263 * remote-vxsparc.c: Remove all includes except for "defs.h",
11264 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
11265 Include "sparc-tdep.h".
11266 (SPARC_R_G1): New define.
11267 (vxsparc_gregset): New variable.
11268 (ext_format_sparc): Remove extern declaration.
11269 (vx_read_register): Rewrite to use sparc32_supply_gregset and
11270 sparc32_supply_fpregset.
11271 (vx_write_register): Rewrite to use sparc32_collect_gregset,
11272 sparc_collect_rwindow and sparc32_collect_fpregset.
11273 * config/sparc/tm-vxworks.h: New file, based on recently removed
11275 * config/sparc/vxworks.mt: New file, based on recently removed
11278 2004-01-03 J. Brobecker <brobecker@gnat.com>
11280 * infrun.c (handle_step_into_function): New function.
11281 (handle_inferior_event): Extract out some code into the new
11284 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11286 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
11287 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
11288 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
11289 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
11290 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
11291 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
11292 (sparc_nat_h): New variable.
11293 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
11294 (tm-sun4os4.h): Remove dependency.
11295 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
11296 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
11297 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
11298 sparc-tdep.o): Update dependencies.
11299 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
11300 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
11301 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
11303 * configure.host: Remove existing sparc-*-lynxos*,
11304 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
11305 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
11306 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
11307 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
11309 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
11310 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
11311 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
11312 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
11313 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
11314 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
11315 sparc64-*-solaris2* and sparc64-*-* triplets.
11316 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
11317 "symtab.h" and "objfiles.h".
11318 (BIAS): Remove define.
11319 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
11320 (X_DISP19): Remove macros.
11321 (sparc_fetch_instruction): Remove function.
11322 (struct gdbarch_tdep): Remove definition.
11323 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
11324 (sparc_breakpoint_from_pc): Remove function.
11325 (struct sparc64_frame_cache): Remove definition.
11326 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
11327 sparc64_unwind_pc): Remove functions.
11328 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
11329 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
11330 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
11331 (sparc64_frame_cache): Change return type to `struct
11332 sparc_frame_cache *'. Simply call sparc_frame_cache.
11333 (sparc64_frame_this_id, sparc64_frame_prev_register,
11334 sparc64_frame_base_address): Use `struct sparc_frame_cache'
11335 instead of `struct sparc64_frame_cache.
11336 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
11337 sparc_analyze_control_transfer, sparc_software_single_step,
11338 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
11339 _initialize_sparc64_tdep): Remove functions.
11340 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
11341 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
11343 (sparc64_supply_gregset, sparc64_collect_gregset,
11344 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
11345 (sparc64_init_abi): New function.
11346 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
11347 inclusion guard. Include "sparc-tdep.h".
11349 (r_tstate_offset, r_fprs_offset): New defines.
11350 (enum sparc_regnum): Remove defenition.
11351 (enum sparc64_regnum): Reformat.
11352 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
11353 (sparc64_init_abi, sparc64_supply_gregset,
11354 sparc64_collect_gregset, sparc64_supply_fpregset,
11355 sparc64_collect_fpregset): New prototypes.
11356 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
11357 Add extern declarations.
11358 (sparc64_sol2_init_abi): New prototype.
11359 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11360 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11362 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
11364 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
11366 (_initialize_sparc64fbsd_nat): Remove initialization of
11367 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
11368 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
11369 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
11370 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
11371 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
11372 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
11373 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
11374 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
11375 (sparc64fbsd_r_y_offset): Remove variables.
11376 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
11377 Make static and const.
11378 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
11379 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
11381 (sparc64fbsd_gregset): New variable.
11382 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
11383 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
11384 and sparc64_supply_fpregset.
11385 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
11386 (sparc64fbsd_sigtramp_frame_this_id)
11387 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
11388 (sparc64fbsd_sigtramp_frame_unwind): New variable.
11389 (sparc64fbsd_sigtramp_frame_sniffer): New function.
11390 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
11391 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
11392 * sparcnbsd-tdep.c: Update copyright year. Include
11393 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
11394 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
11395 "value.h" and "sparcnbsd-tdep.h".
11396 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
11397 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
11398 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
11399 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
11401 (sparcnbsd_gregset): New variable.
11402 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
11403 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
11404 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
11405 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
11406 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
11408 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
11409 (sparc32nbsd_sigcontext_frame_this_id)
11410 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
11411 (sparc32nbsd_sigcontext_frame_unwind): New variable.
11412 (sparc32nbsd_sigtramp_frame_sniffer): New function.
11413 (sparcnbsd_get_longjmp_target_32,
11414 sparcnbsd_get_longjmp_target_64): Remove functions.
11415 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
11416 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
11417 sparcnbsd_init_elf): Remove.
11418 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
11419 (sparcnbsd_elf_init_abi): New functions.
11420 (_initialize_sparcnbsd_tdep): New prototype.
11421 (_initialize_sparnbsd_tdep): Update.
11422 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
11423 corelow.o. Add sparc64-nat.o and sparc-nat.o.
11424 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
11425 * config/sparc/linux.mh: Update comment.
11426 (XM_FILE, HOST_IPC): Remove variables.
11427 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
11429 * config/sparc/linux.mt: Update comment.
11430 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
11431 * config/sparc/nbsd.mt: Reformat.
11432 * config/sparc/nbsd64.mh: Update comment.
11433 (NATDEPFILES): Add sparc-nat.o.
11434 * config/sparc/nbsd64.mt: Update comment.
11435 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
11436 (TM_FILE): Set to tm-nbsd.h.
11437 * config/sparc/nbsdelf.mh: Update comment.
11438 (NATDEPFILES): Add sparc-nat.o.
11440 * config/sparc/nbsdaout.mh: Update comment.
11441 (NATDEPFILES): Add sparc-nat.o
11443 * config/sparc/nm-linux.h: Update copyright year. Don't include
11444 "config/nm-svr4.h" and "solib.h". Add protection against multiple
11446 (KERNEL_U_SIZE): Remove define.
11447 (kernel_u_size): Remove prototype.
11448 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
11449 * config/sparc/nm-nbsd.h: Update copyright. Don't include
11451 (CHILD_PREPARE_TO_STORE): Remove define.
11452 * config/sparc/nm-nbsdaout.h: Tweak some comments.
11453 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
11454 sparcnbsd-nat.c: Rewrite files.
11455 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
11456 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
11457 sparcnbsd-tdep.h: Remove files.
11458 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
11459 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
11460 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
11461 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
11462 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
11463 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
11464 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
11465 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
11466 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
11467 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
11468 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
11469 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
11470 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
11471 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
11472 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
11473 * config/sparc/linux64.mh, config/sparc/linux64.mt,
11474 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
11475 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
11476 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
11478 2004-01-02 Andrew Cagney <cagney@redhat.com>
11480 From 2003-12-18 Kazuhiro Inaoka:
11481 * configure.host: Add m32r-linux target.
11483 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
11485 * top.c (print_gdb_version): Update year to 2004.
11487 2004-01-02 Mark Mitchell <mark@codesourcery.com>
11489 * MAINTAINERS: Add myself to the write-after-approval category.
11491 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
11493 From Bernardo Innocenti <bernie@develer.com>:
11494 * configure.tgt: Add uClinux target.
11496 2004-01-02 Andrew Cagney <cagney@redhat.com>
11498 * utils.c (do_my_cleanups): Make static, add forward declaration.
11499 * defs.h (do_my_cleanups): Delete declaration.
11501 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
11503 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
11504 bfd/ChangeLog-0203.
11506 2004-01-02 Mark Kettenis <kettenis@gnu.org>
11508 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
11509 in <machine/reg.h>.
11510 * configure, config.in: Regenerate.
11512 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
11513 tui/ChangeLog-1998-2003.
11519 version-control: never