1 2004-05-25 Joel Brobecker <brobecker@gnat.com>
3 * NEWS: Document new "start" command.
5 2004-05-25 Randolph Chung <tausq@debian.org>
7 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
10 2004-05-25 Randolph Chung <tausq@debian.org>
12 * hppa-hpux-tdep.c (offsetof): Define.
13 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
14 (hppa32_hpux_frame_base_before_sigtramp)
15 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
16 (hppa64_hpux_frame_saved_pc_in_sigtramp)
17 (hppa64_hpux_frame_base_before_sigtramp)
18 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
20 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
21 (hppa_hpux_sigtramp_frame_unwind_cache)
22 (hppa_hpux_sigtramp_frame_this_id)
23 (hppa_hpux_sigtramp_frame_prev_register)
24 (hppa_hpux_sigtramp_frame_unwind)
25 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
26 (hppa_hpux_init_abi): Register sigtramp unwinder.
27 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
29 2004-05-25 Randolph Chung <tausq@debian.org>
31 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
32 and multiple stack unwinds.
33 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
35 2004-05-25 Andrew Cagney <cagney@gnu.org>
37 * symfile.h (symbol_file_add_from_memory): Delete declaration.
38 * symfile-mem.h: Delete file.
39 * symfile-mem.c: Do not include "symfile-mem.h".
40 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
41 "struct bfd_section". When an error do not bother returning NULL.
42 (add_symbol_file_from_memory_command): Use "struct bfd" and
44 * Makefile.in (symfile_mem_h): Delete.
45 (symfile-mem.o): Update dependencies.
47 2004-05-25 Nick Roberts <nickrob@gnu.org>
49 * gdb-mi.el: New file.
51 2004-05-25 Andrew Cagney <cagney@gnu.org>
53 * inftarg.c: Include "observer.h".
54 (child_attach, child_create_inferior): Notify inferior_created.
55 * corelow.c: Include "observer.h".
56 (core_open): Notify inferior_created.
57 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
59 2004-05-25 Andrew Cagney <cagney@gnu.org>
61 * target.h (struct target_ops): Add from_tty to
63 (target_create_inferior, find_default_create_inferior): Update.
64 * infcmd.c (run_command): Update.
65 * wince.c (child_create_inferior): Update.
66 * win32-nat.c (child_create_inferior): Update.
67 * uw-thread.c (uw_thread_create_inferior): Update.
68 * thread-db.c (thread_db_create_inferior): Update.
69 * target.c (debug_to_create_inferior)
70 (find_default_create_inferior): Update.
71 (maybe_kill_then_create_inferior): Update.
72 * sol-thread.c (sol_thread_create_inferior): Update.
73 * remote.c (extended_remote_async_create_inferior)
74 (extended_remote_create_inferior): Update.
75 * remote-vx.c (vx_create_inferior): Update.
76 * remote-st.c (st2000_create_inferior): Update.
77 * remote-sim.c (gdbsim_create_inferior): Update.
78 * remote-sds.c (sds_create_inferior): Update.
79 * remote-rdp.c (remote_rdp_create_inferior): Update.
80 * remote-rdi.c (arm_rdi_create_inferior): Update.
81 * remote-m32r-sdi.c (m32r_create_inferior): Update.
82 * remote-e7000.c (e7000_create_inferior): Update.
83 * procfs.c (procfs_create_inferior): Update.
84 * ocd.c (ocd_create_inferior): Update.
85 * ocd.h (ocd_create_inferior): Update.
86 * nto-procfs.c (procfs_create_inferior): Update.
87 * monitor.c (monitor_create_inferior): Update.
88 * lin-lwp.c (lin_lwp_create_inferior): Update.
89 * inftarg.c (child_create_inferior): Update.
90 * hpux-thread.c (hpux_thread_create_inferior): Update.
91 * gnu-nat.c (gnu_create_inferior): Update.
93 2004-05-25 Andrew Cagney <cagney@gnu.com>
95 * MAINTAINERS: Update e-mail address.
97 2004-05-24 Randolph Chung <tausq@debian.org>
99 * thread.c (info_threads_command, thread_apply_all_command)
100 (thread_apply_command, thread_command, do_captured_thread_select):
101 Remove HPUXHPPA-specific code.
103 2004-05-24 Randolph Chung <tausq@debian.org>
105 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
107 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
110 2004-05-24 Joel Brobecker <brobecker@gnat.com>
112 * infcmd.c (kill_if_already_running): New function, extracted
114 (run_command): Replace extracted code by call to
115 kill_if_already_running().
116 (start_command): New function.
117 (_initialize_infcmd): Add "start" command.
119 2004-05-24 Mark Kettenis <kettenis@gnu.org>
121 Add OpenBSD/m88k support.
122 * NEWS (New native configurations): Mention OpenBSD/m88k.
123 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
124 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
125 * Makefile.in (m88k_tdep_h): New variable.
126 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
127 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
128 * configure.host: Add m88*-*-openbsd*.
129 * configure.tgt: Add m88*-*-openbsd*.
131 2004-05-24 Jim Blandy <jimb@redhat.com>
133 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
136 2004-05-24 Kevin Buettner <kevinb@redhat.com>
138 * symtab.c (fixup_section): Search section table when lookup by
141 2004-05-24 Randolph Chung <tausq@debian.org>
143 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
146 2004-05-24 Mark Kettenis <kettenis@gnu.org>
148 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
149 register number in regcache_raw_collect call.
150 (m68kbsd_collect_fpregset): Likewise.
151 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
153 * regset.h (struct regset): Add back `regset' member.
155 2004-05-23 Mark Kettenis <kettenis@gnu.org>
157 * configure.in: Check for td_pcb in `struct thread'.
158 * configure, config.in: Regenerated.
160 * dpx2-nat.c: Remove file.
161 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
162 (dpx2-nat.o): Remove dependencies.
164 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
165 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
166 (amd64obsd_supply_pcb): New function.
167 (_initialize_amd64obsd_nat): Enable libkvm interface.
168 * Makefile.in (amd64obsd-nat.o): Update dependencies.
169 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
170 (LOADLIBES): New variable.
172 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
173 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
174 (sparc32nbsd_supply_pcb): New function.
175 (_initialize_sparcnbsd_nat): Enable libkvm interface.
176 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
177 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
178 (LOADLIBES): New variable.
180 2004-05-22 Mark Kettenis <kettenis@gnu.org>
182 * bsd-kvm.c, bsd-kvm.h: New files.
183 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
185 (i386fbsd_supply_pcb): New function.
186 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
187 (i386fbsd-nat.o): Update dependencies.
188 (bsd_kvm_h): New variable.
189 (bsd-kvm.o): New dependency.
190 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
191 (LOADLIBES): New variable.
193 * regset.c: Tweak comment.
194 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
196 * regset.h: Update copyright year.
197 (struct regset): Remove `descr' member, add `gdbarch' member.
198 (regset_alloc): Adjust prototype and comment.
199 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
200 (i386_supply_fpregset): Likewise.
201 (i386_regset_from_core_section): Update call to regset_alloc.
202 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
204 (i386obsd_aout_regset_from_core_section): Update call to
206 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
208 (i386nbsd_aout_regset_from_core_section): Update call to
210 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
212 (amd64_regset_from_core_section): Update call to regset_alloc.
213 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
215 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
216 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
217 &sparc32nbsd_gregset in sparc32_supply_gregset call.
218 (sparc32nbsd_init_abi): Update call to regset_alloc.
219 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
220 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
221 (sparc64obsd_init_abi): Update call to regset_alloc.
222 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
223 &sparc64nbsd_gregset in sparc64_supply_gregset call.
224 (sparc64nbsd_init_abi): Update call to regset_alloc.
225 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
226 &sparc64fbsd_gregset in sparc64_supply_gregset call.
227 (sparc64fbsd_init_abi): Update call to regset_alloc.
229 2004-05-22 Jim Blandy <jimb@redhat.com>
231 * ppc-tdep.h (spe_register_p): New declaration.
232 (struct gdbarch_tdep): New members: ppc_acc_regnum and
234 * rs6000-tdep.c (spe_register_p): New function.
235 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
237 (rs6000_gdbarch_init): Initialize the new members of the tdep
240 2004-05-21 Jim Blandy <jimb@redhat.com>
242 * ppc-linux-nat.c (fetch_register): Move code back to be next
243 to the comment that describes it. (Moved code, instead of
244 comment, for symmetry with store_register.)
246 Allocate regset structures in the gdbarch's obstack, not using
248 * regset.c (regset_alloc): Renamed from regset_xmalloc.
249 Add 'arch' argument. Allocate the regset on arch's obstack, not
251 * regset.h (regset_alloc): Update declaration.
252 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
254 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
255 * i386-tdep.c (i386_regset_from_core_section): Same.
256 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
257 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
258 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
259 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
260 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
261 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
263 2004-05-21 Joel Brobecker <brobecker@gnat.com>
265 * config/djgpp/fnchange.lst: Undo previous change, was useless.
267 2004-05-21 Jim Blandy <jimb@redhat.com>
269 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
270 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
272 2004-05-20 Jim Blandy <jimb@redhat.com>
274 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
276 2004-05-20 Mark Kettenis <kettenis@gnu.org>
278 * regset.h: Make prototype const-correct.
279 * regset.c (regset_xmalloc): Make const-correct.
281 2004-05-20 Paul N. Hilfinger <hilfinger@gnat.com>
283 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
284 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
285 (symbol_search_name): Declare.
287 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
288 (iter_name_next_hashed): Ditto.
289 (iter_name_next_linear): Ditto.
290 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
292 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
293 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
294 (symbol_search_name): New function.
296 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
298 * minsyms.c (build_minimal_symbol_hash_tables): Change
299 test for adding to demangled hash table to check for difference
300 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
302 2004-05-19 Jim Blandy <jimb@redhat.com>
304 Use a constructor function to create regset structures.
305 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
306 (struct regset): Use supply_regset_ftype. Add new
307 'collect_regset' member.
308 (regset_xmalloc): New declaration.
309 * regset.c: New file.
310 * am64-tdep.c (amd64_regset_from_core_section): Use
311 regset_xmalloc to construct regset structures.
312 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
313 * i386-tdep.c (i386_regset_from_core_section): Same.
314 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
315 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
316 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
317 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
318 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
319 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
320 * Makefile.in (COMMON_OBS): Add regset.o.
321 (regset.o): New rule.
323 2004-05-19 Joel Brobecker <brobecker@gnat.com>
325 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
326 and pthread_cond_wait.c.
328 2004-05-18 Jim Blandy <jimb@redhat.com>
330 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
331 before the mach-specific switch, and then let the individual cases
332 override the defaults, rather than leaving them uninitialized
333 until the switch and then setting them in each case.
335 2004-05-18 Randolph Chung <tausq@debian.org>
337 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
340 2004-05-18 Randolph Chung <tausq@debian.org>
342 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
343 references to dld_flags_buffer consistent.
345 2004-05-18 Randolph Chung <tausq@debian.org>
347 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
348 it for unwinding the stack.
350 2004-05-18 Randolph Chung <tausq@debian.org>
352 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
353 Undefine these so we can overide them using gdbarch.
355 2004-05-18 Randolph Chung <tausq@debian.org>
357 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
358 handling for 64-bit HPUX (elf).
360 2004-05-18 Daniel Jacobowitz <dan@debian.org>
362 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
364 * amd64-tdep.c (amd64_skip_prologue): Likewise.
365 * ia64-tdep.c (examine_prologue): Likewise.
366 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
367 * v850-tdep.c (v850_fix_call_dummy): Likewise.
369 2004-05-18 Mark Kettenis <kettenis@gnu.org>
371 * vax-tdep.c (vax_return_value): Implement
372 RETURN_VALUE_ABI_RETURNS_ADDRESS.
374 2004-05-17 Mark Kettenis <kettenis@gnu.org>
376 * vax-tdep.c (vax_return_value): Fix typo.
378 2004-05-17 Andrew Cagney <cagney@redhat.com>
380 * MAINTAINERS: Mark Salter was also responsible for
383 * NEWS: Mention signal fixes.
385 2004-05-17 Randolph Chung <tausq@debian.org>
387 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
388 check to see if we are unwinding an export stub. Export stubs clobber
389 the %rp in the call path and stores the original rp in a stack slot.
391 2004-05-17 Jim Blandy <jimb@redhat.com>
393 * MAINTAINERS: Update address for J.T. Conklin.
395 2004-05-17 Randolph Chung <tausq@debian.org>
397 * hppa-tdep.c: Remove superfluous #include's.
398 * Makefile.in (hppa-tdep.o): Update dependencies.
400 2004-05-17 Randolph Chung <tausq@debian.org>
402 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
403 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
404 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
405 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
406 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
407 Remove static function declarations.
409 2004-05-17 Mark Kettenis <kettenis@gnu.org>
411 * alphabsd-nat.c: Update copyright year.
412 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
414 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
417 * m68k-tdep.c (m68k_svr4_return_value): Implement
418 RETURN_VALUE_ABI_RETURNS_ADDRESS.
420 2004-05-16 Mark Kettenis <kettenis@gnu.org>
422 * sol-thread.c Update copyright year. Fix various coding
423 standards violations. Tweak a few comments.
424 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
427 2004-05-15 Randolph Chung <tausq@debian.org>
429 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
430 as pointer instead of array reference since HPUX compiler does
431 not accept unsized array arguments.
432 * somsolib.c (dld_flags_buffer): Use constant array size.
434 2004-05-15 Mark Kettenis <kettenis@gnu.org>
436 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
437 offset with decimal offset.
438 (amd64obsd_sigcontext_addr): Return correct address for entire
441 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
442 instead of get_frame_base.
444 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
445 (fill_gregset): Use regcache_raw_collect.
447 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
450 * config/sparc/tm-nbsd64.h: Remove file.
451 * config/tm-sunos.h: Remove file.
453 2004-05-15 Joel Brobecker <brobecker@gnat.com>
455 * rs6000-tdep.c (store_param_on_stack_p): New function,
456 an improved version of some code extracted from skip_prologue().
457 (skip_prologue): Use store_param_on_stack_p() to detect
458 instructions saving a parameter on the stack. Detect when r0
459 is used to save a parameter.
460 Do not mark "li rx, SIMM" instructions as part of the prologue,
461 unless the following instruction is also part of the prologue.
463 2004-05-14 Andrew Cagney <cagney@redhat.com>
465 * infrun.c (handle_inferior_event): Simplify
466 STEP_OVER_UNDEBUGGABLE.
468 * infrun.c (handle_step_into_function): Delete function.
469 (handle_inferior_event): Inline calls to
470 handle_step_into_function.
472 2004-05-14 Jerome Guitton <guitton@rome.act-europe.fr>
474 * rs6000-nat.c: Fix a comment.
476 2004-05-12 David Anderson <davea@sgi.com>
478 Committed by Jim Blandy <jimb@redhat.com>:
479 * regcache.c (struct regcache_descr): fix comment spelling.
481 2004-05-13 J. Brobecker <brobecker@gnat.com>
483 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
484 Fixes a link link failure.
486 2004-05-13 J. Brobecker <brobecker@gnat.com>
488 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
489 error that was causing the build to fail.
491 2004-05-13 J. Brobecker <brobecker@gnat.com>
493 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
494 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
496 2004-05-13 Andrew Cagney <cagney@redhat.com>
498 * infrun.c (handle_inferior_event): Check for
499 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
500 calls. Update comments.
502 2004-05-13 Jim Blandy <jimb@redhat.com>
504 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
505 (fetch_regs_user_thread, fetch_regs_kernel_thread)
506 (store_regs_user_thread, store_regs_kernel_thread): Use
507 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
508 * ppc-linux-nat.c (fill_gregset): Same.
509 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
510 (ppc_linux_sigtramp_cache): Same.
511 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
512 (ppcnbsd_sigtramp_cache_init): Same.
513 * rs6000-nat.c (fetch_core_registers): Same.
514 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
515 (rs6000_frame_cache): Same.
517 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
518 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
519 of assuming that the gprs are numbered starting with zero.
520 * ppc-linux-nat.c (fill_gregset): Same.
521 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
522 * ppcnbsd-nat.c (getregs_supplies): Same.
523 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
524 * rs6000-nat.c (fetch_core_registers): Same.
525 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
527 2004-05-07 Michael Snyder <msnyder@redhat.com>
529 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
530 LOC_COMPUTED_ARG, and LOC_INDIRECT.
532 2004-05-13 Andrew Cagney <cagney@redhat.com>
534 * infrun.c (handle_inferior_event): Use frame_unwind_id.
536 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
538 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
539 base_address for shared libraries.
541 2004-05-13 Bryce McKinlay <mckinlay@redhat.com>
543 * MAINTAINERS (write after approval): Add myself.
545 2004-05-13 Ulrich Weigand <uweigand@de.ibm.com>
547 * breakpoint.c (bpstat_stop_status): Add new argument
548 STOPPED_BY_WATCHPOINT. Use it instead of testing
549 target_stopped_data_address agaist 0 to check whether
550 or not we stopped due to a hardware watchpoint.
551 * breakpoint.h (bpstat_stop_status): Adapt prototype.
552 * infrun.c (handle_inferior_event): Call bpstat_stop_status
555 2004-05-12 Jim Blandy <jimb@redhat.com>
557 * configure.in: When checking whether we should use the -bbigtoc
558 option, don't forget to restore the original value of LDFLAGS.
559 * configure: Regenerated.
561 2004-05-12 Andrew Cagney <cagney@redhat.com>
563 * thread.c (load_infrun_state): Delete step_sp.
564 * infrun.c (context_switch): Ditto.
565 * inferior.h (step_sp): Ditto.
566 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
567 * gdbthread.h (struct thread_info, save_infrun_state)
568 (restore_infrun_state): Ditto.
570 2004-05-12 Ulrich Weigand <uweigand@de.ibm.com>
572 * MAINTAINERS (write after approval): Add myself.
574 2004-05-12 Andrew Cagney <cagney@redhat.com>
576 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
577 eliminate reference to step_sp.
578 (struct execution_control_state, init_execution_control_state)
579 (handle_inferior_event, keep_going): Delete update_step_sp and
581 * infcmd.c (step_sp): Note that variable is unused.
583 2004-05-11 Andrew Cagney <cagney@redhat.com>
585 * infrun.c (step_over_function): Delete function.
586 (handle_step_into_function): Use insert_step_resume_breakpoint.
587 (insert_step_resume_breakpoint): Fix assertion.
589 2004-05-11 Nick Roberts <nickrob@gnu.org>
591 * utils.c (defaulted_query): Just use the normal query input type
592 when printing the annotations.
594 2004-05-11 Andrew Cagney <cagney@redhat.com>
596 * infrun.c (handle_inferior_event): Simplify code handling
597 step-into or return-from a signal trampoline.
599 2004-05-11 Andrew Cagney <cagney@redhat.com>
601 * ppcnbsd-tdep.c: Include "gdb_assert.h".
602 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
604 2004-05-10 Jim Blandy <jimb@redhat.com>
606 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
607 with a call to internal_error.
609 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
610 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
611 processor variant lacks those registers.
612 (ppc_floating_point_unit_p): Change description to make it clear
613 that this returns info about the ISA, not the ABI.
614 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
615 return true or false by checking tdep->ppc_fp0_regnum and
616 tdep->ppc_fpscr_regnum. The original code replicated the BFD
617 arch/mach switching done in rs6000_gdbarch_init; it's better to
618 keep that logic there, and just check the results here.
619 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
620 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
621 floating-point registers.
622 (ppc_supply_fpregset, ppc_collect_fpregset)
623 (rs6000_push_dummy_call, rs6000_extract_return_value)
624 (rs6000_store_return_value): Assert that we have floating-point
626 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
627 (rs6000_frame_cache): Don't note the locations at which
628 floating-point registers were saved if we have no fprs.
629 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
631 (fetch_regs_user_thread, fetch_regs_kernel_thread)
632 (store_regs_user_thread, store_regs_kernel_thread): Only call
633 supply_fprs / fill_fprs if we actually have floating-point
635 (special_register_p): Check ppc_fpscr_regnum before matching
637 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
638 supply / collect fpscr if we don't have it.
639 * ppc-bdm.c: #include "gdb_assert.h".
640 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
641 have floating-point registers, since I can't test this code on
642 FP-free systems to adapt it.
643 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
644 fpscr and floating point register numbers if they don't exist.
645 (fetch_register): Assert that we have floating-point registers
646 before we reach the code that handles them.
647 (store_register): Same. And use tdep instead of calling
649 (fill_fpregset): Don't try to collect FP registers and fpscr if we
651 (ppc_linux_sigtramp_cache): Don't record the saved locations of
652 fprs and fpscr if we don't have them.
653 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
655 * ppcnbsd-nat.c: #include "gdb_assert.h".
656 (getfpregs_supplies): Assert that we have floating-point registers.
657 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
658 * ppcobsd-tdep.c: #include "gdb_assert.h".
659 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
660 have floating-point registers.
661 * rs6000-nat.c (regmap): Don't match against the fpscr and
662 floating point register numbers if they don't exist.
663 (fetch_inferior_registers, store_inferior_registers,
664 fetch_core_registers): Only fetch / store / supply the
665 floating-point registers and the fpscr if we have them.
666 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
667 (ppcobsd-tdep.o): Update dependencies.
669 2004-05-10 Andrew Cagney <cagney@redhat.com>
671 * infrun.c (through_sigtramp_breakpoint): Delete variable.
672 (context_switch): Do not switch through_sigtramp_breakpoint.
673 * gdbthread.h (save_infrun_state, load_infrun_state)
674 (struct thread_info): Delete through_sigtramp_breakpoint parameter
675 and structure member.
676 * thread.c (load_infrun_state, save_infrun_state): Update.
678 2004-05-10 Mark Kettenis <kettenis@gnu.org>
680 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
682 2004-05-10 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
684 * acinclude.m4: Quote macro names being defined by AC_DEFUN
686 * aclocal.m4: Regenerate.
688 2004-05-10 Nathan J. Williams <nathanw@wasabisystems.com>
690 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
692 2004-05-10 Andrew Cagney <cagney@redhat.com>
694 * infrun.c (check_sigtramp2): Delete function.
695 (handle_inferior_event): When single stepping, and taking a
696 signal, set a breakpoint at the signal return address. Delete
697 redundant calls to check_sigtramp2.
698 (insert_step_resume_breakpoint): New function.
699 (through_sigtramp_breakpoint, handle_inferior_event)
700 (follow_exec, wait_for_inferior, fetch_inferior_event)
701 (currently_stepping, keep_going): Delete most uses of
702 through_sigtramp_breakpoint, not that it should be deleted.
703 (delete_breakpoint_current_contents): Delete function.
705 2004-05-10 Randolph Chung <tausq@debian.org>
707 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
709 * config/pa/tm-linux.h: New file.
711 2004-05-10 Daniel Jacobowitz <drow@mvista.com>
713 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
714 of prefixes. Don't print the prefix twice in the CLI.
716 2004-05-10 Jim Blandy <jimb@redhat.com>
718 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
719 collect all the gprs.
721 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
722 loop collecting gprs.
724 2004-05-09 Andrew Cagney <cagney@redhat.com>
726 * remote-vx.c (net_step): Delete step-range code.
727 * remote.c (remote_resume, init_all_packet_configs)
728 (set_remote_protocol_E_packet_cmd)
729 (show_remote_protocol_E_packet_cmd)
730 (remote_protocol_E, show_remote_cmd, _initialize_remote)
731 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
732 (show_remote_protocol_e_packet_cmd): Ditto.
734 2004-05-09 Mark Kettenis <kettenis@gnu.org>
736 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
738 * hppa-tdep.h: Update copyright year.
739 (struct trad_frame_saved_reg): Add opaque declaration.
741 * amd64-tdep.c (amd64_return_value): Implement
742 RETURN_VALUE_ABI_RETURNS_ADDRESS.
744 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
745 (m68k_value_to_register): New functions.
746 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
749 * defs.h (enum return_value_convention): Add
750 RETURN_VALUE_ABI_RETURNS_ADDRESS and
751 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
752 * infcmd.c (legacy_return_value): New function.
753 (print_return_value): Rwerite to implement
754 RETURN_VALUE_ABI_RETURNS_ADDRESS.
755 * values.c (using_struct_return): Check for inequality to
756 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
757 RETURN_VALUE_STRUCT_CONVENTION.
758 * i386-tdep.c (i386_return_value): Implement
759 RETURN_VALUE_ABI_RETURNS_ADDRESS.
761 * vax-tdep.c: Tweak comments. Reorder include files. Don't
762 include "symtab.h", "opcode/vax.h" and "inferior.h".
763 (vax_skip_prologue): Replace calls to read_memory_integer by calls
764 to read_memory_unsigned_integer.
765 (vax_gdbarch_init): Reorder.
766 (_initialize_vax_tdep): Spell out prototype.
767 * Makefile.in (vax-tdep.o): Update dependencies.
769 2004-05-08 Andrew Cagney <cagney@redhat.com>
771 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
772 * target.c (target_detach, target_disconnect): Ditto.
774 * infcall.c (call_function_by_hand): When no
775 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
776 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
777 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
778 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
779 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
781 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
782 * gdbarch.h, gdbarch.c: Re-generate.
783 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
784 deprecated_fix_call_dummy.
785 * v850-tdep.c (v850_gdbarch_init): Ditto.
786 * infcall.c (call_function_by_hand): Do not call
787 DEPRECATED_FIX_CALL_DUMMY.
789 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
790 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
791 * gdbarch.h, gdbarch.c: Re-generate.
792 * arm-linux-tdep.c (arm_linux_call_dummy_words)
793 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
794 deprecated_sizeof_call_dummy_words.
795 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
797 * v850-tdep.c (v850_gdbarch_init): Ditto.
798 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
799 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
800 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
801 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
802 * arch-utils.h (legacy_call_dummy_words)
803 (legacy_sizeof_call_dummy_words): Delete declarations.
804 * arch-utils.c (legacy_call_dummy_words)
805 (legacy_sizeof_call_dummy_words): Delete variables.
807 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
808 * gdbarch.h, gdbarch.c: Re-generate.
809 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
810 * infcall.c (call_function_by_hand): Eliminate call to
811 DEPRECATED_PUSH_DUMMY_FRAME.
812 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
814 (ns32k_push_dummy_frame): Delete function.
816 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
817 deprecated_call_dummy_breakpoint_offset or
818 deprecated_call_dummy_start_offset.
819 * dummy-frame.c, arm-tdep.c: Update comments.
820 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
821 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
822 * gdbarch.h, gdbarch.c: Re-generate.
824 * infcall.c (legacy_push_dummy_code): Delete function.
825 (push_dummy_code): Delete call.
827 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
828 * gdbarch.h, gdbarch.c: Re-generate.
829 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
830 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
831 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
832 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
834 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
835 (struct frame_info): Delete opaque declaration.
836 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
837 * frame.c (get_frame_type): Delete call.
839 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
841 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
842 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
844 2004-05-08 Mark Kettenis <kettenis@gnu.org>
846 * alphanbsd-tdep.c: Include "gdb_string.h".
847 * armnbsd-tdep.c: Update copyright year.
848 Include "gdb_string.h".
849 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
852 * delta68-nat.c: Remove file.
853 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
854 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
855 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
856 (delta68-nat.o): Remove dependency.
858 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
860 (m68k_gdbarch_init): Don't set
861 deprecated_frameless_function_invocation.
863 2004-05-07 Randolph Chung <tausq@debian.org>
865 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
866 read_memory_nobpt for code reading when doing frame unwinding.
867 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
869 2004-05-07 Randolph Chung <tausq@debian.org>
871 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
872 instead of sp, handle sigaltstack case.
873 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
874 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
875 signal handler and not that of the caller.
876 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
877 hppa_linux_sigtramp_find_sigcontext.
879 2004-05-07 Randolph Chung <tausq@debian.org>
881 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
883 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
884 * hppa-linux-nat.c (fetch_register, store_register): Define.
885 (fetch_inferior_registers, store_inferior_registers): Define.
886 (supply_gregset): Add comment and clean up some unneeded code.
887 (fill_gregset): Add comment and fix so that it saves registers in
888 the right place in the gregset.
889 (fill_fpregset): Fix buffer overrun problem.
890 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
892 2004-05-07 Randolph Chung <tausq@debian.org>
894 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
895 do common handling of the pcoqt register.
896 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
897 to use helper function.
898 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
899 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
900 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
901 generic fallback unwinder when all else fails.
902 (hppa_gdbarch_init): Add fallback sniffer.
903 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
904 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
905 to use helper function.
907 2004-05-08 Joel Brobecker <brobecker@gnat.com>
909 * config/djgpp/fnchange.lst: Add translation rules for
910 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
912 2004-05-08 Mark Kettenis <kettenis@gnu.org>
914 * frame.c (get_prev_frame_1): Work around GCC bug.
915 * frame.h: Add comment about GCC bug.
917 2004-05-07 Andrew Cagney <cagney@redhat.com>
919 * observer.c: Include "commands.h" and "gdbcmd.h".
920 (observer_debug, _initialize_observer): Add the
921 command "set/show debug observer".
922 * observer.sh: When observer debugging, log notify calls.
923 * Makefile.in (observer.o): Update dependencies.
925 2004-05-07 Jason Molenda (jmolenda@apple.com)
927 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
929 2004-05-07 Jim Blandy <jimb@redhat.com>
931 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
932 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
933 to recognize gpr regnums, instead of assuming that
934 tdep->ppc_fp0_regnum marks the end of the general-purpose
937 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
938 the given architecture has floating-point registers.
940 2004-05-07 Andrew Cagney <cagney@redhat.com>
942 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
944 * gdbarch.h, gdbarch.c: Re-generate.
945 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
946 deprecated_use_generic_dummy_frames.
948 2004-05-07 Brian Ford <ford@vss.fsi.com>
950 * NEWS: Mention Cygwin DWARF 2 support.
952 2004-05-07 Andrew Cagney <cagney@redhat.com>
954 * objfiles.h (struct entry_info): Delete unused fields
955 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
956 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
957 * mipsread.c (mipscoff_symfile_read): Update.
958 * mdebugread.c (parse_partial_symbols): Update.
959 * dwarfread.c (read_file_scope): Update.
960 * dwarf2read.c (read_file_scope): Update.
961 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
962 * coffread.c (complete_symtab): Update.
964 2004-05-07 Mark Kettenis <kettenis@gnu.org>
966 * infcall.c (_initialize_infcall): Fix typo.
968 2004-05-07 Andrew Cagney <cagney@redhat.com>
970 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
971 * command.h (add_setshow_zinteger_cmd): Declare.
973 2004-05-06 Randolph Chung <tausq@debian.org>
975 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
976 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
977 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
978 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
979 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
980 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
981 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
983 * hppa-tdep.h: ... to here, with HPPA_ prefix.
984 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
985 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
986 (hppa64_hpux_frame_find_saved_regs_in_sig)
987 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
988 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
989 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
990 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
991 (hppa_linux_sigtramp_frame_prev_register): Likewise.
992 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
993 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
994 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
995 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
996 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
997 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
998 (hppa32_register_type, hppa_cannot_store_register)
999 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1000 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1001 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1002 * pa64solib.c (pa64_solib_have_load_event)
1003 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1004 (pa64_solib_unloaded_library_pathname): Likewise.
1005 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1006 (som_solib_library_pathname): Likewise.
1008 2004-05-05 Jim Ingham <jingham@apple.com>
1010 * breakpoint.c (create_breakpoints): Copy the ignore count and
1011 thread id over from the pended breakpoint to the actual
1014 2004-05-05 Andrew Cagney <cagney@redhat.com>
1016 * gdbarch.sh (PARM_BOUNDARY): Delete.
1017 gdbarch.h, gdbarch.c: Re-generate.
1018 * valops.c (PARM_BOUNDARY): Delete macro.
1019 (value_push): Delete PARM_BOUNDARY code.
1020 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1022 2004-05-04 Jim Blandy <jimb@redhat.com>
1024 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1025 Don't assume that the gprs, fprs, and UISA sprs are
1026 contiguous, start at register number zero, and end with fpscr.
1027 Instead, use the numbers from the tdep structure.
1029 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1030 should no longer be used in code specific to the RS6000 and its
1032 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1033 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1034 tdep->ppc_fp0_regnum.
1035 (ppc_supply_fpregset, ppc_collect_fpregset)
1036 (rs6000_push_dummy_call, rs6000_extract_return_value)
1037 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1038 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1040 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1041 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1043 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1044 bdm_ppc_store_registers): Same.
1045 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1046 (store_register, fill_fpregset): Same.
1047 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1048 (ppc_linux_supply_fpregset): Same.
1049 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1050 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1052 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1053 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1054 ppc64_sysv_abi_return_value): Same.
1055 * rs6000-nat.c (regmap, fetch_inferior_registers)
1056 (store_inferior_registers, fetch_core_registers): Same.
1058 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1060 * m68knbsd-nat.c: Remove file.
1061 * m68knbsd-tdep.c: Remove file.
1062 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1064 * configure.host: Add m68k-*-netbsdelf*.
1065 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1066 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1067 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1069 * config/m68k/nbsdelf.mh: New file.
1070 * config/m68k/nbsd.mt: New file.
1071 * config/m68k/nbsdaout.mt: Remove file.
1072 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1073 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1074 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1075 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1076 (use_struct_convention): Remove prototype.
1077 (USE_STRUCT_CONVENTION): Remove define.
1078 * config/m68k/xm-nbsd.h: Remove file.
1080 2004-05-04 Michael Snyder <msnyder@redhat.com>
1082 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1083 reg_struct_return method (as gcc usually does for cross targets).
1085 2004-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1087 Committed by Andrew Cagney.
1088 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1089 alignment padding when accessing ucontext struct members.
1091 2004-05-04 Jim Blandy <jimb@redhat.com>
1093 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1094 'ppc_gplast_regnum' member.
1095 (ppc_num_gprs): New enum constant.
1096 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1097 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1098 * rs6000-nat.c (regmap, fetch_inferior_registers,
1099 store_inferior_registers): Same.
1100 * rs6000-tdep.c (e500_pseudo_register_read)
1101 (e500_pseudo_register_write): Same.
1102 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1104 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1105 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1106 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1107 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1109 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1111 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1112 * rs6000-nat.c (regmap, fetch_inferior_registers)
1113 (store_inferior_registers): Same.
1115 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1118 2004-05-03 Joel Brobecker <brobecker@gnat.com>
1120 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1121 failure detected by recent versions of GCC.
1122 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1123 to be consistent with the usage in dwarf2_create_include_psymtab.
1125 2004-05-03 Michael Snyder <msnyder@redhat.com>
1127 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1128 (heuristic_proc_start): Whitespace cleanup.
1130 2004-05-04 Mark Kettenis <kettenis@gnu.org>
1132 * sun3-nat.c: Remove file.
1133 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1135 (ALLDEPFILES): Remove sun3-nat.c.
1136 (sun3-nat.o): Remove dependencies.
1138 * i386-interix-nat.c, i386-interix-tdep.c,
1139 config/i386/nm-interix.h, config/i386/interix.mh,
1140 config/i386/interix.mt: Remove files.
1141 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1144 2004-05-03 Mark Kettenis <kettenis@gnu.org>
1146 * m68k-tdep.h (struct gdbarch_tdep): Add member
1147 struct_value_regnum.
1148 (m68k_svr4_init_abi): New prototype.
1149 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1150 different calling conventions.
1151 (m68k_extract_return_value): Remove code dealing with single-field
1153 (m68k_store_return_value): Remove code dealing with single-field
1154 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1155 (m68k_extract_struct_value_address): Remove function.
1156 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1157 (m68k_reg_struct_return_p, m68k_return_value)
1158 (m68k_svr4_return_value): New functions.
1159 (m68k_use_struct_convention): Remove function.
1160 (m68k_push_dummy_call): Use new struct_value_regnum member of
1161 `struct gdbarch_tdep' instead of hardcoded register number to
1163 (m68k_svr4_init_abi): New function.
1164 (m68k_gdbarch_init): Don't set extract_return_value,
1165 store_return_values, deprecated_extract_struct_value_address and
1166 use_struct_convention. Set return_value instead. Initialize new
1167 struct_value_regnum member of `struct gdbarch_tdep'.
1168 * m68klinux-tdep.c: Update copyright year.
1169 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1170 (m68k_linux_extract_struct_value_address): Remove function.
1171 (m68k_linux_init_abi): Don't set extract_return_value,
1172 store_return_values, deprecated_extract_struct_value_address and
1173 use_struct_convention. Call m68k_svr4_init_abi but override the
1174 new struct_value_regnum member of `struct gdbarch_tdep'.
1175 * Makefile.in (m68k-tdep.o): Update dependencies.
1177 2004-05-03 J. Brobecker <brobecker@gnat.com>
1179 * dwarf2read.c (line_header): Add new included_p field in
1181 (partial_die_info): New field has_stmt_list. New field line_offset.
1182 (dwarf2_create_include_psymtab): New function.
1183 (dwarf2_build_include_psymtabs): New function.
1184 (add_file_name): Add forward declaration. Initialize new field.
1185 (dwarf_decode_lines): Add new parameter. Enhance this procedure
1186 to be able to determine the list of files included by the
1187 given unit, and build their associated psymtabs.
1188 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
1190 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
1191 (read_file_scope): Update call to dwarf_decode_lines.
1192 (read_partial_die): Handle DW_AT_stmt_list attributes.
1194 2004-05-02 Michael Chastain <mec.gnu@mindspring.com>
1197 * configure.in: Revert special case for osf5.*.
1198 * configure: Regenerate.
1200 2004-05-02 Jim Blandy <jimb@redhat.com>
1202 Move the symbol-file-from-memory functions into their own file.
1203 * symfile-mem.c, symfile-mem.h: New files.
1204 * symfile.c (symbol_file_add_from_bfd): New function.
1205 (symbol_file_add): Call symbol_file_add_from_bfd.
1206 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
1207 Moved to symfile-mem.c.
1208 (_initialize_symfile): Move definition of
1209 add-symbol-file-from-memory command to symfile-mem.c.
1210 * symfile.h (symbol_file_add_from_bfd): New declaration.
1211 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
1212 * config/powerpc/linux.mt (TDEPFILES): Same.
1213 * Makefile.in (SFILES): Add symfile-mem.c.
1214 (symfile_mem_h): New variable.
1215 (HFILES_NO_SRCDIR): Add symfile-mem.h.
1216 (symfile-mem.o): New rule.
1218 2004-05-01 Andrew Cagney <cagney@redhat.com>
1220 * breakpoint.c (insert_bp_location): Use get_frame_id, and
1221 frame_find_by_id instead of frame_relative_level.
1222 (do_enable_breakpoint): Ditto.
1223 * thread.c: Update copyright.
1224 (info_threads_command): Ditto, simplify.
1226 * frame.c (deprecated_generic_get_saved_register): Delete
1227 function, moved to "xstormy16-tdep.c".
1228 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
1229 deprecated_generic_get_saved_register from "frame.c".
1230 (xstormy16_frame_saved_register): Call
1231 xstormy16_get_saved_register.
1232 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
1234 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
1235 * frame.h (deprecated_generic_get_saved_register): Delete.
1237 2004-05-01 Michael Chastain <mec.gnu@mindspring.com>
1239 * dwarfread.c: Update documentation on the state of dwarf-1.
1241 2004-05-01 Andrew Cagney <cagney@redhat.com>
1243 * stack.c (select_frame_command): Delete call to
1244 frame_relative_level.
1245 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
1247 (frame_info): Do not print FRAMELESS.
1248 (print_block_frame_labels): Replace DEPRECATED_STREQ.
1249 (catch_info): Delete #if0 code.
1251 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
1252 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
1253 of frame_relative_level.
1254 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
1256 * frame.h (enum frame_type): Add SENTINEL_FRAME.
1257 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
1258 frame_relative_level.
1260 * frame.h (deprecated_set_frame_type): Delete declaration.
1261 * frame.c (deprecated_set_frame_type): Delete function, update
1264 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
1265 * gdbarch.h, gdbarch.c: Re-generate.
1266 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
1267 (shnbsd_pc_in_sigtramp): Delete.
1268 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
1270 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
1272 * frame.h: Update comments.
1273 * ppc-linux-tdep.c: Update comments.
1274 * breakpoint.c (bpstat_what): Update comments.
1276 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1277 m68klinux-tdep.o's dependencies, were previously added to
1280 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1281 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1282 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1283 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1284 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1286 * Makefile.in (m68klinux-nat.o): Update dependencies.
1287 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1288 (m68k_linux_sigtramp_frame_cache)
1289 (m68k_linux_sigtramp_frame_this_id)
1290 (m68k_linux_sigtramp_frame_prev_register)
1291 (m68k_linux_sigtramp_frame_unwind)
1292 (m68k_linux_sigtramp_frame_sniffer)
1293 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1294 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1295 names, use trad-frame.h.
1296 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1297 (struct m68k_sigtramp_info): Delete.
1298 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1299 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1300 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1301 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1304 * infrun.c (check_sigtramp2): Delete check for
1305 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1307 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1309 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1311 2004-05-01 Andrew Cagney <cagney@redhat.com>
1313 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1314 (frv_linux_sigtramp_frame_cache)
1315 (frv_linux_sigtramp_frame_this_id)
1316 (frv_linux_sigtramp_frame_prev_register)
1317 (frv_linux_sigtramp_frame_unwind)
1318 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1319 include "linux" in function and variable names, directly call
1320 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1321 the latest trad-frame code.
1322 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1323 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1324 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1325 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1326 * frv-tdep.c (frv_sigtramp_frame_cache)
1327 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1328 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1330 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1331 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1332 (frv_set_sigcontext_reg_addr): Delete function.
1334 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1335 (DEPRECATED_SIGTRAMP_END): Delete.
1336 * gdbarch.h, gdbarch.c: Re-generate.
1337 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1338 * config/vax/tm-vaxbsd.h: Update copyright.
1339 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1340 (DEPRECATED_IN_SIGTRAMP): Define.
1341 * config/m68k/tm-nbsd.h: Update copyright.
1342 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1343 (DEPRECATED_IN_SIGTRAMP): Define.
1345 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1347 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1348 encondings. Fixes PR gdb/1628.
1350 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1351 DW_CFA_restore state without a matching DW_CFA_remember_state
1352 instead of aborting. Fixes PR backtrace/1589.
1354 2004-04-30 Joel Brobecker <brobecker@gnat.com>
1356 * MAINTAINERS: Add self as AIX maintainer.
1357 Update my e-mail address in write-after-approval section.
1359 2004-04-30 Andrew Cagney <cagney@redhat.com>
1361 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1362 (legacy_get_prev_frame): Ditto.
1364 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1365 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1366 * mipsread.c (sigtramp_address): Delete extern variable.
1367 (mipscoff_new_init): Delete reference.
1368 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1369 (fixup_sigtramp): Delete function.
1370 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1371 (fixup_sigtramp): Delete declarations.
1373 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1374 deprecated_pc_in_sigtramp.
1375 (ppcnbsd_pc_in_sigtramp): Delete function.
1377 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1379 * config/m68k/nm-nbsd.h: Tweak comments.
1380 * config/m68k/nm-nbsdaout.h: Likewise.
1382 2004-04-30 Andrew Cagney <cagney@redhat.com>
1384 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1385 legacy_pc_in_sigtramp.
1386 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1388 2004-05-01 Mark Kettenis <kettenis@gnu.org>
1390 Add OpenBSD/m68k support.
1391 * NEWS (New native configurations): Mention OpenBSD/m68k.
1392 * m68kbsd-tdep.c: New file.
1393 * m68kbsd-nat.c: New file.
1394 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1395 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1396 * configure.host: Add m68k-*-openbsd.
1397 * configure.tgt: Add m68k-*-openbsd.
1398 * config/m68k/tm-obsd.h: New file.
1399 * config/m68k/obsd.mt: New file.
1400 * config/m68k/obsd.mh: New file.
1401 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1404 2004-04-30 Andrew Cagney <cagney@redhat.com>
1406 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1407 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
1409 2004-04-30 Mark Kettenis <kettenis@gnu.org>
1411 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
1412 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
1414 2004-04-30 Brian Ford <ford@vss.fsi.com>
1416 Revert 2004-04-16 change.
1417 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
1418 (i386_coff_init_abi): Remove.
1419 * i386-tdep.h (i386_coff_init_abi): Remove.
1420 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
1422 2004-04-30 Andrew Cagney <cagney@redhat.com>
1424 * blockframe.c (find_pc_partial_function): Delete use of
1425 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
1426 DEPRECATED_SIGTRAMP_END.
1428 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
1429 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
1430 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
1431 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
1432 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
1434 * defs.h (deprecated_inside_entry_file): Delete declaration.
1435 * blockframe.c (deprecated_inside_entry_file): Delete function.
1436 (legacy_frame_chain_valid): Delete call.
1437 * sh64-tdep.c (sh64_frame_chain): Delete call.
1438 * objfiles.h: Update comments.
1439 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
1441 * frame.c (get_prev_frame): Delete call, update comments.
1443 2004-04-30 Brian Ford <ford@vss.fsi.com>
1445 * MAINTAINERS (Write After Approval): Add myself.
1447 2004-04-30 Andrew Cagney <cagney@redhat.com>
1449 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
1450 * gdbarch.h, gdbarch.c: Re-generate.
1451 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
1454 2004-04-30 Andrew Cagney <cagney@redhat.com>
1456 * gdb-events.sh (selected_thread_changed)
1457 (selected_frame_level_changed, target_changed): Delete.
1458 * gdb-events.h, gdb-events.c: Re-generate.
1459 * valops.c (value_assign): Update.
1460 * stack.c (select_frame_command, up_silently_base)
1461 (down_silently_base): Update.
1463 2004-04-29 Andrew Cagney <cagney@redhat.com>
1465 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
1466 registers correctly.
1467 (print_gp_register_row, mips32_heuristic_proc_desc)
1468 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1469 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
1470 references to mips_isa_regsize.
1472 2004-04-29 Andrew Cagney <cagney@redhat.com>
1474 * mips-tdep.c (struct gdbarch_tdep): Delete
1475 mips_fp_register_double.
1476 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
1478 (mips_gdbarch_init): Do not set mips_fp_register_double.
1479 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
1481 2004-04-29 Joel Brobecker <brobecker@gnat.com>
1483 Committed by Andrew Cagney.
1484 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
1487 2004-04-29 Andrew Cagney <cagney@redhat.com>
1489 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
1490 gdbarch, use mips_abi, update callers.
1491 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
1492 mips_abi_regsize, update callers.
1493 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
1494 mips_default_abi_regsize.
1495 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
1496 mips_default_abi_regsize.
1498 2004-04-29 Andrew Cagney <cagney@redhat.com>
1500 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
1501 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
1502 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
1503 mips_default_abi_regsize.
1504 (mips_isa_regsize): Rename mips_regisze.
1505 * mipsnbsd-tdep.c: Update.
1506 * mips-linux-tdep.c: Update.
1507 * irix5-nat.c: Update.
1508 * mips-tdep.h (mips_isa_regsize): Update.
1510 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
1511 Delete all disabled code.
1512 * gdb-events.h, gdb-events.c: Re-generate.
1514 2004-04-19 Jerome Guitton <guitton@gnat.com>
1515 Mark Kettenis <kettenis@gnu.org>
1517 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
1518 the function begins with a branch instruction.
1520 2004-04-29 Mark Kettenis <kettenis@gnu.org>
1522 * i386-tdep.c: Fix spelling mistakes.
1524 2004-04-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1525 Andrew Cagney <cagney@redhat.com>
1527 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
1529 * acconfig.h: Provide default _KMEMUSER value.
1530 * config.in, configure: Re-generate.
1531 * NEWS: Mention fix.
1533 2004-04-24 Randolph Chung <tausq@debian.org>
1535 * configure.host (hppa*-*-linux*): New target.
1536 * configure.tgt (hppa*-*-linux*): Likewise.
1537 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
1538 gdbarch_init_osabi() call earlier so that osabi-specific frame
1539 unwinders can be registered first.
1540 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
1542 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
1543 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
1544 * config/pa/linux.mh: New file.
1545 * config/pa/linux.mt: New file.
1546 * config/pa/nm-linux.h: New file.
1547 * config/pa/xm-linux.h: New file.
1548 * hppa-linux-nat.c: New file.
1549 * hppa-linux-tdep.c: New file.
1551 2004-04-28 Randolph Chung <tausq@debian.org>
1553 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
1555 (hppa32_push_dummy_call): Fix small struct and floating point argument
1556 passing, and make sure the stack frame is properly aligned.
1558 2004-04-28 Andrew Cagney <cagney@redhat.com>
1560 * stack.c (print_stack_frame): Fix description.
1562 * NEWS: Mention gdb/gdbserver/configure execute permission
1563 changed. PR server/519.
1565 2004-04-28 Andrew Cagney <cagney@redhat.com>
1567 * stack.c (print_stack_frame_stub): Delete declaration.
1568 (struct print_stack_frame_args, print_stack_frame)
1569 (print_frame_info, print_frame): Replace "source" with print what.
1570 Replace "print" with "print_level". Replace "args" with
1572 * frame.h (show_and_print_stack_frame, print_stack_frame)
1573 (print_frame_info): Update declarations.
1574 * stack.c (select_and_print_frame, frame_command)
1575 (current_frame_command, up_command, down_command): Update calls -
1576 use get_selected_frame, pass "enum print_what" for source, do not
1577 call frame_relative_level.
1578 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
1579 * remote-rdp.c (remote_rdp_open): Ditto.
1580 * remote-mips.c (common_open): Ditto.
1581 * remote-e7000.c (e7000_start_remote): Ditto.
1582 * ocd.c (ocd_start_remote): Ditto.
1583 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
1584 * infrun.c (normal_stop): Ditto.
1585 * inflow.c (kill_command): Ditto.
1586 * infcmd.c (finish_command): Ditto.
1587 * corelow.c (core_open): Ditto.
1588 * tracepoint.c (finish_tfind_command): Ditto.
1589 * thread.c (info_threads_command, info_threads_command)
1590 (restore_current_thread, do_captured_thread_select): Ditto.
1591 * ada-tasks.c (task_command): Ditto.
1593 2004-04-26 Orjan Friberg <orjanf@axis.com>
1595 * frame.c: Include "observer.h".
1596 (frame_observer_target_changed): New function.
1597 (_initialize_frame): Attach target_changed observer.
1598 * regcache.c: Include "observer.h".
1599 (regcache_observer_target_changed): New function.
1600 (_initialize_regcache): Attach target_changed observer.
1601 * valops.c: Include "observer.h".
1602 (value_assign): Notify target_changed event when modifying register.
1603 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
1605 2004-04-26 Orjan Friberg <orjanf@axis.com>
1607 From Paul Koning <pkoning@equallogic.com>:
1608 * breakpoint.c (free_valchain): New function.
1609 (insert_bp_location, delete_breakpoint): Use free_valchain.
1610 (remove_breakpoint): Do not remove the valchain.
1611 (bpstat_stop_status): If not stopped by watchpoint, skip
1612 watchpoints when generating stop status list.
1613 * infrun.c (handle_inferior_event): Make
1614 stepped_after_stopped_by_watchpoint a global variable.
1615 * remote.c (remote_stopped_data_address): Return watch data
1616 address rather than zero if stepped_after_stopped_by_watchpoint is
1619 2004-04-25 Michael Chastain <mec.gnu@mindspring.com>
1622 * configure.in: Check for curses after termcap.
1623 On osf5.*, do not check for ncurses.
1624 * configure: Regenerate.
1626 2004-04-25 Mark Kettenis <kettenis@gnu.org>
1628 * ppcobsd-nat.c: Include "ppc-tdep.h".
1629 * Makefile.in (ppcobsd-nat.o): Update dependencies.
1631 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
1632 Fixes PR tdep/1623 and PR tdep/1624.
1634 2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
1636 * xmodem.h, xmodem.c: Remove files.
1637 * Makefile.in: Remove references to xmodem.h, xmodem.c.
1639 2004-04-23 Randolph Chung <tausq@debian.org>
1641 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
1642 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
1643 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
1644 for handling stackless frames.
1645 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
1647 2004-04-23 Randolph Chung <tausq@debian.org>
1649 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
1650 starts at a pc before the frame is created.
1652 2004-04-23 Joel Brobecker <brobecker@gnat.com>
1654 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
1656 2004-04-23 Jerome Guitton <guitton@gnat.fr>
1658 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
1659 use convert_typed_floating to get the appropriate format.
1661 2004-04-22 Randolph Chung <tausq@debian.org>
1663 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
1664 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
1665 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
1666 (hppa_sign_extend): Add prototype.
1667 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
1668 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
1669 (sign_extend): Rename with hppa_ prefix and make non-static. Other
1670 hppa targets will also use these functions.
1671 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
1672 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
1673 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
1674 (hppa_gdbarch_init): Remove gdbarch setting of
1675 skip_trampoline_code, in_solib_call_trampoline and
1676 in_solib_return_trampoline.
1677 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
1678 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
1679 hppa_in_solib_call_trampoline.
1680 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
1681 Moved from hppa-tdep.c.
1682 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
1683 in_solib_call_trampoline and in_solib_return_trampoline.
1685 2004-04-22 Randolph Chung <tausq@debian.org>
1687 * hppa-tdep.c (hppa_debug): New variable.
1688 (find_unwind_entry, hppa_frame_cache): Add debug output.
1689 (_initialize_hppa_tdep): Add command to set debug flag.
1691 2004-04-22 Andrew Cagney <cagney@redhat.com>
1693 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
1695 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
1696 signal trampoline unwinder.
1697 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
1699 2004-04-22 Mark Kettenis <kettenis@gnu.org>
1701 Add OpenBSD/powerpc support.
1702 * NEWS (New native configurations): Mention OpenBSD/powerpc.
1703 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
1704 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
1705 (ppc_collect_fpregset): New prototypes.
1706 * ppcobsd-nat.c: New file.
1707 * ppcobsd-tdep.c: New file.
1708 * ppcobsd-tdep.h: New file.
1709 * rs6000-tdep.c: Include "regset.h".
1710 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
1711 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
1713 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
1714 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
1715 (rs6000-tdep.o): Update dependencies.
1716 * configure.host: Add powerpc-*-openbsd.
1717 * configure.tgt: Add powerpc-*-openbsd.
1718 * config/powerpc/obsd.mh: New file.
1719 * config/powerpc/nm-obsd.h: New file.
1720 * config/powerpc/obsd.mt: New file.
1722 2004-04-22 Andrew Cagney <cagney@redhat.com>
1724 * frame.h (show_frame_info): Delete declaration.
1726 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
1727 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1728 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1729 * frv-tdep.c (frv_frame_this_id): Ditto.
1730 * avr-tdep.c (avr_frame_this_id): Ditto.
1732 2004-04-22 Elena Zannoni <ezannoni@redhat.com>
1734 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
1736 2004-04-22 Jim Blandy <jimb@redhat.com>
1738 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
1739 register number zero.
1741 2004-04-21 Michael Snyder <msnyder@redhat.com>
1743 * mips-tdep.c (heuristic_proc_start):
1744 Warning() already prefixes "Warning: ".
1746 2004-04-21 Andrew Cagney <cagney@redhat.com>
1748 * annotate.h (deprecated_annotate_starting_hook)
1749 (deprecated_annotate_stopped_hook)
1750 (deprecated_annotate_exited_hook)
1751 (deprecated_annotate_signal_hook)
1752 (deprecated_annotate_signalled_hook): Deprecate.
1753 * tracepoint.h (deprecated_create_tracepoint_hook)
1754 (deprecated_delete_tracepoint_hook)
1755 (deprecated_modify_tracepoint_hook)
1756 (deprecated_trace_find_hook)
1757 (deprecated_trace_start_stop_hook): Deprecate.
1758 * target.h (deprecated_target_new_objfile_hook): Deprecate.
1759 * remote.h (deprecated_target_resume_hook)
1760 (deprecated_target_wait_loop_hook): Deprecate.
1761 * gdbcore.h (deprecated_exec_file_display_hook)
1762 (deprecated_file_changed_hook): Deprecate.
1763 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
1764 * defs.h (deprecated_modify_breakpoint_hook)
1765 (deprecated_command_loop_hook, deprecated_show_load_progress)
1766 (deprecated_print_frame_info_listing_hook)
1767 (deprecated_query_hook, deprecated_warning_hook)
1768 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
1769 (deprecated_delete_breakpoint_hook)
1770 (deprecated_interactive_hook, deprecated_registers_changed_hook)
1771 (deprecated_readline_begin_hook, deprecated_readline_hook)
1772 (deprecated_readline_end_hook, deprecated_register_changed_hook)
1773 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
1774 (deprecated_context_hook, deprecated_target_wait_hook)
1775 (deprecated_attach_hook, deprecated_detach_hook)
1776 (deprecated_call_command_hook, deprecated_set_hook)
1777 (deprecated_error_hook, deprecated_error_begin_hook)
1778 (deprecated_ui_load_progress_hook): Deprecate.
1779 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
1780 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
1781 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
1782 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
1783 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
1784 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
1785 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
1786 * annotate.c, aix-thread.c: Update.
1788 2004-04-21 Andrew Cagney <cagney@redhat.com>
1790 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
1791 * vaxnbsd-tdep.c: Include "gdb_string.h".
1793 * symfile.c (symbol_file_add_from_memory): #if 0 function.
1794 (add_symbol_file_from_memory_command): #if 0 function body, call
1797 2004-04-21 Andrew Cagney <cagney@redhat.com>
1799 * gdbcore.h: Update copyright.
1800 (deprecated_add_core_fns): Rename add_core_fns.
1801 * win32-nat.c (_initialize_core_win32): Update.
1802 * sun3-nat.c (_initialize_core_sun3): Update.
1803 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
1804 * rs6000-nat.c (_initialize_core_rs6000): Update.
1805 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
1806 * nto-tdep.c (_initialize_nto_tdep): Update.
1807 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
1808 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
1809 * mips-nat.c (_initialize_core_mips): Update.
1810 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
1811 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
1812 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
1813 * lynx-nat.c (_initialize_core_lynx): Update.
1814 * irix5-nat.c (_initialize_core_irix5): Update.
1815 * i386-interix-nat.c (_initialize_core_interix): Update.
1816 * cris-tdep.c (_initialize_cris_tdep): Update.
1817 * corelow.c (deprecated_add_core_fns): Update.
1818 * core-regset.c (_initialize_core_regset): Update.
1819 * core-aout.c (_initialize_core_aout): Update.
1820 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
1821 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
1822 * alpha-nat.c (_initialize_core_alpha): Update.
1824 2004-04-21 Jim Blandy <jimb@redhat.com>
1826 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
1828 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
1830 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
1832 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
1833 (read_attribute_value): Update calls to dwarf_alloc_block.
1834 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
1836 (psymtab_to_symtab_1): Likewise. Clean up using
1837 free_stack_comp_unit.
1838 (add_to_cu_func_list): Use the comp_unit_obstack.
1840 2004-04-19 Joel Brobecker <brobecker@gnat.com>
1842 * dwarf2read.c (dwarf2_flag_true_p): New function.
1843 (die_is_declaration): Use the function above. Add some comments.
1845 2004-04-19 Mark Kettenis <kettenis@gnu.org>
1847 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
1848 architecture when registering sparcnbsd_core_osabi_sniffer.
1851 2004-04-18 Mark Kettenis <kettenis@gnu.org>
1853 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
1856 Based on a patch from Brian Ford <ford@vss.fsi.com>:
1857 * i386-tdep.c: Correct register numbering scheme comments
1859 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
1860 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
1861 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
1862 (i386_gdb_arch_init): Likewise.
1864 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
1865 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
1868 * m68k-tdep.h: Tweak comments.
1869 * m68k-tdep.c: Tweak comment.
1871 2004-04-17 Randolph Chung <tausq@debian.org>
1873 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
1874 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
1875 (hppa_hpux_som_init_abi): Set is_elf to 0.
1876 (hppa_hpux_elf_init_abi): Set is_elf to 1.
1877 * hppa-tdep.c (low_text_segment_address): Remove global.
1878 (record_text_segment_lowaddr): Pass in low address as parameter. Use
1879 section offset to calculate segment address.
1880 (internalize_unwinds): Define low_text_segment_address as local and
1881 pass to record_text_segment_lowaddr for ELF targets.
1882 (hppa_gdbarch_init): Zero fill tdep structure.
1883 (hppa_dump_tdep): Print tdep structure.
1884 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
1886 2004-04-17 Randolph Chung <tausq@debian.org>
1888 * hppa-tdep.c (hppa_pseudo_register_read): Define.
1889 (hppa_gdbarch_init): Set pseudo_register_read.
1890 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
1891 * regcache.c (supply_register): Remove check for
1892 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
1894 2004-04-17 Randolph Chung <tausq@debian.org>
1896 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
1897 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
1898 (hpread_adjust_stack_address): Move to hpread.c.
1899 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1900 obj_private_struct): Move from tm-hppa.h.
1901 * hpread.c (hppa-tdep.h): Include.
1902 (hpread_adjust_stack_address): Move from hppa-tdep.c.
1903 (hpread_read_function_type, hpread_read_doc_function_type)
1904 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
1906 * pa64solib.c (hppa-tdep.h): Include.
1907 * somsolib.c (hppa-tdep.h): Include.
1908 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
1909 inferior_status): Remove unused forward declarations.
1910 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
1911 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
1912 obj_private_struct): Move to hppa-tdep.h.
1913 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
1915 2004-04-17 Randolph Chung <tausq@debian.org>
1917 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
1918 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
1919 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
1920 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
1921 Remove forward declaration and make static.
1922 (hppa_reg_struct_has_addr): Remove.
1924 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1926 * observer.sh: Move comments in sed command to first column.
1928 2004-04-16 Jason Molenda (jmolenda@apple.com)
1930 * frame.c: Minor typeo corrections in comments.
1932 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1934 * observer.c (observer_test_first_notification_function): Update
1936 (observer_test_second_notification_function): Likewise.
1937 (observer_test_third_notification_function): Likewise.
1939 2004-04-16 Mark Kettenis <kettenis@gnu.org>
1941 From Brian Ford <ford@vss.fsi.com>:
1942 * i386-tdep.c (i386_coff_init_abi): New function.
1943 * i386-tdep.h (i386_coff_init_abi): New prototype.
1944 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
1945 register number translation functions for DWARF and DWARF 2.
1947 2004-04-16 Joel Brobecker <brobecker@gnat.com>
1949 * dwarf2read.c: Back out my previous change, it was incorrect.
1951 2004-04-16 Daniel Jacobowitz <drow@mvista.com>
1953 * dwarf2read.c: Include "hashtab.h".
1954 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
1956 (struct partial_die_info): Add comments. Use bitfields to reduce
1957 memory footprint. Add scope, scope_set, has_specification,
1958 spec_offset, die_parent, die_child, and die_sibling.
1959 (peek_die_abbrev): Add prototype.
1960 (partial_read_comp_unit_head): New function, broken out from
1961 dwarf2_build_psymtabs_hard.
1962 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
1963 Use partial_read_comp_unit_head. Initialize the CU and
1964 comp_unit_obstack. Update calls to read_partial_die and
1965 scan_partial_symbols. Use free_stack_comp_unit and
1967 (scan_partial_symbols): Change PDI to a pointer. Use the child and
1968 sibling pointers to walk partial DIEs. Call fixup_partial_die.
1969 Update calls to helper functions. Remove NAMESPACE argument.
1971 (partial_die_parent_scope, partial_die_full_name): New functions.
1972 (add_partial_symbol): Remove namespace argument. Update call to
1973 pdi_needs_namespace. Use partial_die_full_name. Handle
1974 DW_TAG_namespace. Check has_namespace_info flag.
1975 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
1976 tag. Handle namespaces.
1977 (add_partial_namespace, add_partial_enumeration): Simplify.
1978 (guess_structure_name): New function, derived from
1979 add_partial_structure.
1980 (add_partial_structure): Remove.
1981 (determine_class_name): Update comment.
1982 (dwarf2_read_abbrevs): Set has_namespace_info flag.
1983 (is_type_tag_for_partial, load_partial_dies): New functions.
1984 (read_partial_die): Pass abbrev and abbrev_len as arguments.
1985 Record specifications instead of following them immediately.
1986 (find_partial_die_in_comp_unit, find_partial_die)
1987 (fixup_partial_die, free_stack_comp_unit)
1988 (hashtab_obstack_allocate, dummy_obstack_deallocate)
1989 (partial_die_hash, partial_die_eq): New functions.
1990 * Makefile.in (hashtab_h): Define.
1991 (dwarf2read.o): Update dependencies.
1992 (observer_inc, observer_h): Move to the correct section.
1994 2004-04-15 Joel Brobecker <brobecker@gnat.com>
1996 * dwarf2read.c (dwarf2_attribute_true_p): New function.
1997 (die_is_declaration): Use the function above. Add comment.
1999 2004-04-15 Joel Brobecker <brobecker@gnat.com>
2001 * dwarf2read.c (read_structure_scope): Identify stub types
2002 using die_is_declaration() only.
2004 2004-04-15 Roland McGrath <roland@redhat.com>
2006 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2007 argument instead of NAME.
2008 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2009 in call to symbol_file_add_with_addrs_or_offsets.
2010 (build_addr_info): New function, helper for ...
2011 (symbol_file_add_from_memory): New function.
2012 (add_symbol_file_from_memory_command): New function using that.
2013 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2014 (pre_add_symbol_hook): Add const to argument type.
2015 * symfile.h (symbol_file_add_from_memory): Declare it.
2017 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2019 * NEWS (New native configurations): Mention OpenBSD/vax.
2020 * configure.host: Add vax-*-openbsd*.
2021 * config/vax/obsd.mh: New file.
2022 * config/vax/nm-obsd.h: New file.
2024 * vax-tdep.c: Include "regset.h".
2025 (vax_supply_gregset): New function.
2026 (vax_gregset): New variable.
2027 (vax_regset_from_core_section): New function.
2028 (vax_gdbarch_init): Set regset_from_core_section.
2029 * Makefile.in (vax-tdep.o): Update dependencies.
2031 2004-04-15 Andrew Cagney <cagney@redhat.com>
2033 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2034 (observer_normal_stop_notification_stub)
2035 (observer_attach_normal_stop, observer_detach_normal_stop):
2036 Delete, replaced by #include "observer.inc".
2037 * infrun.c (normal_stop): Pass "stop_bpstat" to
2038 observer_notify_normal_stop.
2039 * Makefile.in (observer_inc): Define.
2040 (observer.o): Update dependencies.
2041 (observer.h, observer.inc): New rules.
2042 * observer.h: Delete file.
2043 * observer.sh: New file.
2045 2004-04-15 Mark Kettenis <kettenis@gnu.org>
2047 * vax-tdep.c (vax_frame_cache): Fix typo.
2049 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2051 * NEWS (New native configurations): Mention NetBSD/vax.
2052 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2053 * config/vax/nbsdelf.mh: New file.
2054 * config/vax/nbsdaout.mh: New file.
2055 * config/vax/nm-nbsd.h: New file.
2056 * config/vax/nm-nbsdaout.h: New file.
2058 * vaxnbsd-tdep.c: New file.
2059 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2060 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2061 * config/vax/nbsd.mt: New file.
2062 * config/vax/tm-nbsd.h: New file.
2064 * Makefile.in (vaxbsd-nat.o): New dependency.
2066 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2067 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2068 struct_addr arguments. Don't push return value address.
2069 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2070 arguments to vax_store_arguments. Store return value address in
2072 (vax_store_struct_return, vax_extract_return_value)
2073 (vax_store_return_value): Remove functions.
2074 (vax_return_value): New function.
2075 (vax_gdbarch_init): Set return value. Don't set
2076 deprecated_store_struct_return, deprecated_extract_struct_return
2077 and deprecated_store_return_value.
2079 2004-04-14 Andreas Schwab <schwab@suse.de>
2081 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2083 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2085 2004-04-14 Mark Kettenis <kettenis@gnu.org>
2087 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2088 (vax_unwind_dummy_id): New functions.
2089 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2090 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2092 (vax_fix_call_dummy): Remove function.
2093 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2094 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2095 call_dummy_location, deprecated_call_dummy_words,
2096 deprecated_sizeof_call_dummy_words,
2097 deprecated_call_dummy_breakpoint_offset,
2098 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2099 and deprecated_dummy_write_sp.
2101 2004-04-13 David Carlton <carlton@kealia.com>
2103 * MAINTAINERS: Move myself to "paper trail" section.
2105 2004-04-12 Mark Kettenis <kettenis@gnu.org>
2107 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2109 (vax_frame_init_saved_regs): Remove function.
2110 (vax_sigtramp_saved_pc): Remove function.
2111 (vax_frame_saved_pc): Remove function.
2112 (vax_frame_args_address): Remove function.
2113 (vax_frame_num_args): Rewrite.
2114 (vax_frame_chain): Remove function.
2115 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2117 (vax_pop_frame): Likewise.
2118 (vax_saved_pc_after_call): Remove function.
2119 (struct vax_frame_cache): New structure.
2120 (vax_frame_cache): New function.
2121 (vax_frame_this_id): New function.
2122 (vax_frame_prev_register): New function.
2123 (vax_frame_unwind): New variable.
2124 (vax_frame_sniffer): New function.
2125 (vax_frame_base_address): New function.
2126 (vax_frame_args_address): New function.
2127 (vax_frame_base): New variable.
2128 (vax_unwind_pc): New function.
2129 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2130 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2131 deprecated_frame_chain, deprecated_frame_saved_pc,
2132 deprecated_frame_args_address and
2133 deprecated_frame_init_saved_regs.
2134 * Makefile.in (vax-tdep.o): Update dependencies.
2136 * vaxbsd-nat.c: New file.
2138 * vax-tdep.h: Update copyright year. Adjust comments.
2139 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2140 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2141 (vax_regnum): New enum. Replacing...
2142 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2143 (VAX_PS_REGNUM): ... these removed macros.
2144 * vax-tdep.c (vax_register_name): Remove prototype.
2145 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2146 (vax_register_byte, vax_register_raw_size,
2147 vax_register_virtual_size, vax_register_virtual_type): Remove
2149 (vax_register_type): New function.
2150 (vax_breakpoint_from_pc): Reorganize.
2151 (vax_gdbarch_init): Set register_type. Don't set
2152 deprecated_register_size, deprecated_register_bytes,
2153 deprecated_register_byte, deprecated_register_raw_size,
2154 deprecated_max_register_raw_size,
2155 deprecated_register_virtual_size,
2156 deprecated_max_register_virtual_size and
2157 deprecated_register_virtual_type. Add comment on stack direction.
2159 2004-04-11 Mark Kettenis <kettenis@gnu.org>
2161 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2162 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
2163 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
2165 2004-04-10 Randolph Chung <tausq@debian.org>
2167 * MAINTAINERS (write after approval): Add myself.
2169 2004-04-07 Randolph Chung <tausq@debian.org>
2171 * hppa-tdep.c (hppa_inner_than): Remove.
2172 (is_pa_2): Remove unused static variable.
2173 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
2175 2004-03-10 Paul N. Hilfinger <Hilfinger@gnat.com>
2177 * language.h (language_defn): Add new la_post_parser field.
2178 * parser-defs.h (null_post_parser): New declaration (default for
2181 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2182 insert call to that function.
2183 (parse_exp_in_context): New function, including code formerly in
2184 parse_exp_1. Calls language-dependent post-parser after
2186 (parse_expression_in_context): New exported function.
2187 (null_post_parser): New definition.
2188 * expression.h (parse_expression_in_context): Add declaration.
2190 * p-lang.c (pascal_language_defn): Add trivial post-parser.
2191 * c-lang.c (c_language_defn): Ditto.
2192 (cplus_language_defn): Ditto.
2193 (asm_language_defn): Ditto.
2194 (minimal_language_defn): Ditto.
2195 * f-lang.c (f_language_defn): Ditto.
2196 * jv-lang.c (java_language_defn): Ditto.
2197 * language.c (unknown_language_defn): Ditto.
2198 (auto_language_defn): Ditto.
2199 (local_language_defn): Ditto.
2200 * m2-lang.c (m2_language_defn): Ditto.
2201 * scm-lang.c (scm_language_defn): Ditto.
2202 * obj-lang.c (objc_language_defn): Ditto.
2204 2004-04-10 Mark Kettenis <kettenis@gnu.org>
2206 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
2207 (amd64nbsd_mcontext_addr): New function.
2208 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
2209 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
2210 with amd64nbsd_r_reg_offset, instead of building it on the fly.
2212 * corelow.c (core_xfer_partial): Fix coding standards violation.
2213 Add support for TARGET_OBJECT_WCOOKIE.
2215 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
2216 deprecated_pc_in_sigtramp.
2217 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2218 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2219 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
2220 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2221 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
2222 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2223 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2225 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
2226 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
2229 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
2230 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
2231 (amd64_collect_fxsave): Likewise.
2233 * i386-sol2-tdep.c: Include "gdb_string.h".
2234 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
2236 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2238 2004-04-10 Mark Kettenis <kettenis@gnu.org>
2240 * i386-sol2-tdep.c: Include "solib-svr4.h".
2241 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2242 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2243 * config/i386/tm-i386sol2.h: Include :solib.h".
2244 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
2245 solib-svr4.o and solib-legacy.o.
2246 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
2249 2004-04-09 Mark Kettenis <kettenis@gnu.org>
2251 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
2252 whether a register is supplied by PTRACE_GETFPREGS.
2253 (store_inferior_registers): Likewise.
2254 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
2255 whether a register is supplied by PT_GETFPREGS.
2256 (store_inferior_registers): Likewise.
2258 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
2259 * config/i386/linux64.mt (TDEPFILES): Likewise.
2261 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
2263 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
2264 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2265 the program counter is in the range specified by `struct
2267 * amd64-linux-tdep.c: Include "symtab.h".
2268 (amd64_linux_pc_in_sigtramp): Remove function.
2269 (amd64_linux_sigtramp_p): New function.
2270 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2271 deprecated_pc_in_sigtramp.
2272 * amd64nbsd-tdep.c: Include "symtab.h".
2273 (amd64nbsd_sigtramp_p): New function.
2274 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2275 deprecated_pc_in_sigtramp.
2276 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2278 (amd64obsd_pc_in_sigtramp): Remove function.
2279 (amd64obsd_sigtramp_p): New function.
2280 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2281 deprecated_pc_in_sigtramp.
2282 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2283 (i386bsd_pc_ins_sigtramp): Remove prototype.
2284 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2285 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2286 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2287 the program counter is in the range specified by `struct
2289 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2290 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2291 (i386_go32_pc_in_sigtramp): Remove function.
2292 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2293 Initialize TDEP->sigtramp_p.
2294 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2295 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2296 deprecated_pc_in_sigtramp.
2297 * i386-linux-tdep.c: Adjust comments.
2298 (i386_linux_pc_in_sigtramp): Remove function.
2299 (i386_linux_sigtramp_p): New function.
2300 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2301 deprecated_pc_in_sigtramp.
2302 * i386-nto-tdep.c: Update copyright year.
2303 (i386nto_pc_in_sigtramp): Remove function.
2304 (i386nto_sigtramp_p): New function.
2305 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2307 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2308 deprecated_pc_in_sigtramp.
2309 * i386-sol2-tdep.c: Update copyright year.
2310 (i386_sol2_pc_in_sigtramp): Remove function.
2311 (i386_sol2_sigtramp_p): New function.
2312 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2313 deprecated_pc_in_sigtramp.
2314 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2315 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2316 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2317 deprecated_sigtramp_start and deprecated_sigtramp_end.
2318 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2319 (i386nbsd_pc_in_sigtramp): Remove function.
2320 (i386nbsd_sigtramp_p): New function.
2321 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2322 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2323 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2324 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2325 (i386obsd_pc_in_sigtramp): Remove function.
2326 (i386obsd_sigtramp_p): New function.
2327 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2329 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2330 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2332 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2333 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2336 * config/i386/i386aout.mt: Remove file.
2338 * configure.tgt: Remove i[34567]86-*-go32*,
2339 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2340 and i[34567]86-*-isc*. Set gdb_target to i386 for
2341 i[34567]86-*-netware* and i[34567]86-*-*.
2342 * config/i386/i386.mt: New file.
2343 * config/i386/embed.mt: Remove file.
2344 * config/i386/go32.mt: Remove file.
2345 * config/i386/i386nw.mt: Remove file.
2346 * config/i386/i386v.mt: Remove file.
2347 * config/i386/tm-go32.h: Remove file.
2349 * tui/tui-hooks.c: Include "readline/readline.h" after
2350 "gdb_curses.h" instead of before.
2351 * tui/tui-io.c: Likewise.
2353 * tui/tui.c: Fix typo in comment.
2355 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2357 2004-04-08 Andrew Cagney <cagney@redhat.com>
2359 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2360 (deprecated_exception_support_initialized): Declare.
2361 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
2362 (initialize_hp_cxx_exception_support)
2363 (child_enable_exception_callback): Update.
2364 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2365 (deprecated_exception_support_initialized): Rename
2366 deprecated_exception_catchpoints_are_fragile and
2367 deprecated_exception_support_initialized.
2368 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2370 * symtab.c (deprecated_hp_som_som_object_present): Rename
2371 hp_som_som_object_present.
2372 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2373 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2374 Update. Delete extern declaration.
2375 * valops.c (hp_som_som_object_present): Ditto.
2376 * parse.c (deprecated_hp_som_som_object_present)
2377 (parse_nested_classes_for_hpacc): Ditto.
2378 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
2379 * hppa-hpux-tdep.c (hp_som_som_object_present)
2380 (initialize_hp_cxx_exception_support): Ditto.
2381 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
2382 * cp-valprint.c (hp_som_som_object_present)
2383 (cp_print_class_method): Ditto.
2384 * c-typeprint.c (hp_som_som_object_present):
2385 (c_type_print_base): Ditto.
2386 * c-exp.y (hp_som_som_object_present): Ditto.
2388 2004-04-08 Andrew Cagney <cagney@redhat.com>
2390 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2391 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2392 (frame_unwind_find_by_frame): Re-implement the unwind code so
2393 that it can both prepend and append sniffers. Replace
2394 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2395 * tramp-frame.c (tramp_frame_append): Use
2396 frame_unwind_prepend_unwinder.
2397 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2398 frame_unwind_register_unwinder.
2399 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2401 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
2402 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
2403 (mips_linux_init_abi): Update.
2405 2004-04-08 Kevin Buettner <kevinb@redhat.com>
2407 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
2408 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
2411 2004-04-07 Kevin Buettner <kevinb@redhat.com>
2413 * ia64-tdep.c (elf.h): Don't include.
2414 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
2416 2004-04-07 Jason Molenda (jmolenda@apple.com)
2418 * frame.h: Typeo corrections in comments.
2420 2004-04-07 Jim Blandy <jimb@redhat.com>
2422 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
2425 2004-04-07 Mark Kettenis <kettenis@gnu.org>
2427 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
2428 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2429 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2430 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2432 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
2434 * config/sparc/tm-sol2.h: Update copyright year. Include
2437 * sparc-sol2-tdep.c: Update copyright year. Include
2439 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2440 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
2441 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2442 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
2445 2004-04-06 Andrew Cagney <cagney@redhat.com>
2447 * infttrace.c: Include "infttrace.h".
2448 * infttrace.h: Include "target.h".
2449 * Makefile.in (infttrace_h): Update.
2450 (infttrace.o): Update.
2452 2004-04-06 Andrew Cagney <cagney@redhat.com>
2454 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
2455 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
2456 move extern declarations from here ...
2457 * infttrace.h: ... to here.
2458 * Makefile.in (hppah-nat.o): Update dependencies.
2460 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
2461 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
2462 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
2463 (hppa_breakpoint_from_pc): Delete.
2465 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
2467 2004-04-05 Andrew Cagney <cagney@redhat.com>
2469 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
2470 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
2473 2004-04-06 Randolph Chung <tausq@debian.org>
2475 Committed by Andrew Cagney (mechanical change).
2476 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
2477 exception_catchpoints_are_fragile, find_stub_with_shl_get,
2478 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
2479 child_enable_exception_callback, current_ex_event,
2480 null_symtab_and_line, child_get_current_exception_event,
2481 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
2482 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
2483 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
2484 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
2485 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
2486 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
2487 Move hpux-specific definitions ...
2488 * hppa-hpux-tdep.c: ... to here.
2490 2004-04-05 Andrew Cagney <cagney@redhat.com>
2492 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
2493 skip_prologue_using_sal.
2495 2004-04-05 Andrew Cagney <cagney@redhat.com>
2497 * config/i386/tm-i386.h: Delete file.
2498 * config/i386/tm-vxworks.h: Update copyright, do not include
2500 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
2501 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
2502 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
2503 * config/i386/ncr3000.mt (TM_FILE): Delete.
2504 * config/i386/interix.mt (TM_FILE): Delete.
2505 * config/i386/i386v.mt (TM_FILE): Delete.
2506 * config/i386/i386nw.mt (TM_FILE): Delete.
2507 * config/i386/i386gnu.mt (TM_FILE): Delete.
2508 * config/i386/i386aout.mt (TM_FILE): Delete.
2509 * config/i386/embed.mt (TM_FILE): Delete.
2511 2004-04-05 Kevin Buettner <kevinb@redhat.com>
2513 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
2514 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
2515 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
2516 (accg7_regnum): New constants.
2517 (last_spr_regnum, last_pseudo_regnum): Update.
2518 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
2519 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
2520 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
2522 (frv_register_sim_regno): Update spr_map[].
2524 2004-04-04 Andrew Cagney <cagney@redhat.com>
2526 * config/mips/xm-riscos.h: Delete.
2527 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
2528 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
2529 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
2530 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
2531 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
2532 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
2533 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
2534 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
2535 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
2536 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
2537 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
2538 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
2539 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
2540 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
2541 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
2542 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
2543 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
2544 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
2545 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
2546 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
2547 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
2548 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
2549 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
2550 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
2551 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
2552 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
2554 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
2555 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
2556 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
2557 * configure.host: Remove m680[01]0-sun-sunos3*,
2558 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
2559 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
2560 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
2561 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
2563 * NEWS: Mention removed systems.
2565 2004-04-04 Andrew Cagney <cagney@redhat.com>
2567 GDB 6.1 release created from 6.1 branch.
2569 2004-04-04 Andrew Cagney <cagney@redhat.com>
2571 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
2572 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2573 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2575 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
2576 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
2577 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
2579 2004-04-03 Jim Blandy <jimb@redhat.com>
2581 * MAINTAINERS: Chris Faylor has changed employers; add him to
2582 "paper trail" section, and update his E-mail address.
2584 2004-04-03 Andrew Cagney <cagney@redhat.com>
2586 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
2587 generic dummy frames.
2588 * dummy-frame.c: Update copyright.
2589 (dummy_frame_sniffer): Delete check for generic dummy frames.
2591 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
2592 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
2593 (REG_PARM_STACK_SPACE): Delete.
2594 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2595 Inline reference to REG_PARM_STACK_SPACE.
2597 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2598 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2599 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2600 (FRAME_BASE_BEFORE_SIGTRAMP)
2601 (hppa32_hpux_frame_base_before_sigtramp)
2602 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2603 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2604 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2605 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2606 (FRAME_BASE_BEFORE_SIGTRAMP)
2607 (hppa64_hpux_frame_base_before_sigtramp)
2608 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
2610 2004-04-03 Andrew Cagney <cagney@redhat.com>
2612 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
2614 2004-04-02 Andrew Cagney <cagney@redhat.com>
2616 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
2617 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
2618 * dummy-frame.h: Delete out-of-date comments.
2619 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
2620 * gdbarch.h, gdbarch.c: Re-generate.
2622 2004-04-02 Joel Brobecker <brobecker@gnat.com>
2624 Committed by Andrew Cagney <cagney@redhat.com>.
2625 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
2626 into account an instruction saving a register if we have already
2627 seen an earlier instruction saving that same register.
2629 2004-04-02 Andrew Cagney <cagney@redhat.com>
2631 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
2632 * gdbarch.h, gdbarch.c: Re-generate.
2633 * frame.c (legacy_get_prev_frame): Delete references to
2634 DEPRECATED_INIT_FRAME_PC_FIRST.
2636 * infrun.c (pc_in_sigtramp): Delete function.
2637 (check_sigtramp2): Inline call to pc_in_sigtramp, use
2640 2004-04-02 Andrew Cagney <cagney@redhat.com>
2642 * infrun.c (handle_step_into_function): Delete code conditional on
2644 (handle_inferior_event, step_over_function): Ditto.
2646 2004-04-02 Andrew Cagney <cagney@redhat.com>
2648 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
2649 "previous frame inner to this frame" test.
2651 2004-04-02 Andrew Cagney <cagney@redhat.com>
2653 * frame.c (safe_frame_unwind_memory): New function.
2654 * frame.h (safe_frame_unwind_memory): Declare. Update description
2656 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
2657 "next_frame". Use safe_frame_unwind_memory.
2658 (tramp_frame_sniffer): Update call to tramp_frame_start.
2660 2004-04-01 Daniel Jacobowitz <drow@mvista.com>
2662 * dwarf2read.c (dwarf2_objfile_data_key): New.
2663 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
2664 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
2665 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
2666 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
2667 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
2668 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
2669 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
2671 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
2672 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
2673 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
2674 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
2675 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
2676 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
2678 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
2680 (dwarf2_locate_sections, dwarf2_build_psymtabs)
2681 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
2682 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
2683 (read_partial_die, read_full_die, read_indirect_string)
2684 (dwarf_decode_line_header, dwarf_decode_macros)
2685 (dwarf2_symbol_mark_computed): Remove use of removed macros.
2686 Update uses of removed variables.
2687 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
2689 (_initialize_dwarf2_read): New function.
2690 * symfile.h (dwarf2_has_info): Update prototype.
2691 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
2692 * elfread.c (elf_symfile_read): Likewise.
2694 2004-04-01 Jim Blandy <jimb@redhat.com>
2696 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
2697 function for register numbers on all the rs6000-derived targets.
2698 (rs6000_gdbarch_init): Don't register a separate
2699 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
2700 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
2703 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
2706 2004-04-01 Paul N. Hilfinger <Hilfinger@gnat.com>
2708 * valarith.c: Update copyright notice.
2709 (value_add): Handle range types.
2711 (value_equal): Ditto.
2712 (value_less): Ditto.
2714 (value_complement): Ditto.
2715 (value_binop): Simplify slightly by using is_integral_type and
2716 eliminiating unnecessary COERCE_ENUMs.
2718 2004-03-31 Andrew Cagney <cagney@redhat.com>
2720 * frame.h (frame_unwind_id): Declare.
2721 * frame.c (frame_unwind_id): New function.
2722 (get_prev_frame_1): New function.
2723 (frame_debug_got_null_frame): New function.
2724 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
2725 code proper to prev_frame, update description.
2726 * infrun.c (step_over_function): Use frame_unwind_id.
2728 2004-04-31 J. Brobecker <brobecker@gnat.com>
2730 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
2731 (hppa64_push_dummy_call): Likewise.
2733 2004-03-30 Jim Blandy <jimb@redhat.com>
2735 From Ulrich Weigand:
2736 * utils.c (query): Do not use a va_list variable multiple times.
2738 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
2740 * Makefile.in (linux_nat_h): Update dependencies.
2741 * configure.in: Check for <gnu/libc-version.h>.
2742 * configure: Regenerate.
2743 * config.in: Regenerate.
2744 * linux-nat.h: Include "target.h". Add waitstatus field to
2746 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
2747 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
2749 (lin_lwp_handle_extended): New function. Handle clone events.
2750 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
2752 (child_wait): Handle clone events.
2753 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
2754 * linux-nat.c (linux_enable_event_reporting): Turn on
2755 PTRACE_O_TRACECLONE.
2756 (linux_handle_extended_wait): Handle clone events.
2757 * thread-db.c: Include <gnu/libc-version.h>.
2758 (struct private_thread_info): Add dying flag.
2759 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
2761 (attach_thread): Update comments. Handle dying threads.
2762 (detach_thread): Set the dying flag.
2763 (check_event): Always call attach_thread.
2765 2004-03-29 Daniel Jacobowitz <drow@mvista.com>
2767 * mips-tdep.c (mips_pdr_data): New.
2768 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
2769 (_initialize_mips_tdep): Initialize mips_pdr_data.
2771 2004-03-29 Corinna Vinschen <vinschen@redhat.com>
2773 * minsyms.c (install_minimal_symbols): Move dropping leading
2774 char from linkage name from here...
2775 (prim_record_minimal_symbol_and_info): ...to here. Simplify
2776 test for "__gnu_compiled*" symbols.
2778 2004-03-28 Jim Blandy <jimb@redhat.com>
2780 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
2781 registers to temp register r0 and byte stores as prologue
2784 2004-03-28 Andrew Cagney <cagney@redhat.com>
2786 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
2789 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
2791 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
2792 and switch the layout to force a display of register window.
2794 2004-02-26 J. Brobecker <brobecker@gnat.com>
2796 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
2797 of the INTEGER class.
2799 2004-03-26 Jim Blandy <jimb@redhat.com>
2801 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
2802 bytes long on PPC GNU/Linux.
2804 2004-03-26 David Carlton <carlton@kealia.com>
2806 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
2808 2004-03-25 Andrew Cagney <cagney@redhat.com>
2810 * PROBLEMS: Add general section titles, remove references to
2813 2004-03-25 Daniel Jacobowitz <drow@mvista.com>
2815 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
2817 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
2818 FP_REGISTER_VIRTUAL_SIZE.
2819 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
2820 of DEPRECATED_REGISTER_RAW_SIZE.
2821 (arm_register_type): Add gdbarch argument.
2822 (arm_register_raw_size, arm_register_virtual_size): Delete.
2823 (arm_register_byte, arm_extract_return_value)
2824 (arm_store_return_value, arm_get_longjmp_target): Update references
2825 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
2826 (arm_gdbarch_init): Likewise. Don't set
2827 deprecated_register_raw_size, deprecated_register_virtual_size,
2828 deprecated_max_register_raw_size,
2829 deprecated_max_register_virtual_size, or
2830 deprecated_max_register_virtual_type. Do set register_type.
2831 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
2832 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
2833 (FP_REGISTER_VIRTUAL_SIZE): Delete.
2834 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
2835 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
2836 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
2838 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
2839 (remote_rdp_store_register): Likewise.
2841 2004-03-24 Daniel Jacobowitz <drow@mvista.com>
2843 * Makefile.in (mips-linux-tdep.o): Update dependencies.
2844 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
2845 to after osabi initialization.
2846 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
2847 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
2849 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
2850 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
2852 (mips_linux_init_abi): Append signal trampoline unwinders.
2854 2004-03-24 Andrew Cagney <cagney@redhat.com>
2856 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
2857 * tramp-frame.c: Include "gdb_assert.h".
2858 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
2860 (tramp_frame_append): Validate the tramp frame's instructions.
2861 * Makefile.in (tramp-frame.o): Update dependencies.
2863 2004-03-23 Andrew Cagney <cagney@redhat.com>
2865 * trad-frame.h (trad_frame_set_reg_addr): Declare.
2867 2004-03-23 Andrew Cagney <cagney@redhat.com>
2869 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
2870 Nasser as past testsuite/lib/ (and other) maintainers.
2872 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
2874 * infcmd.c (attach_command): Reread symbols if we already have
2877 2004-03-23 Andrew Cagney <cagney@redhat.com>
2879 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
2881 2004-03-23 Andrew Cagney <cagney@redhat.com>
2883 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
2884 * gdbarch.h, gdbarch.c: Re-generate.
2885 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2886 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2887 * i386bsd-tdep.c (i386bsd_init_abi): Update.
2888 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
2889 (DEPRECATED_SIGTRAMP_START): Update.
2890 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
2891 (DEPRECATED_SIGTRAMP_START): Update.
2892 * blockframe.c (find_pc_sect_partial_function): Update.
2893 * arch-utils.c (legacy_pc_in_sigtramp): Update.
2895 2004-03-23 Daniel Jacobowitz <drow@mvista.com>
2897 * remote.c (remote_open_1): Reopen the exec file and reread symbols
2900 2004-03-23 Andrew Cagney <cagney@redhat.com>
2902 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
2903 predicate, deprecate.
2904 * gdbarch.h, gdbarch.c: Re-generate.
2905 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
2906 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
2907 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
2908 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
2909 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
2910 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
2911 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
2912 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
2913 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
2914 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
2915 * blockframe.c (find_pc_partial_function): Update.
2916 * breakpoint.c (bpstat_what): Update.
2917 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
2918 * frv-linux-tdep.c (frv_linux_init_abi): Update.
2919 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
2920 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
2921 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2922 * i386-linux-tdep.c (i386_linux_init_abi): Update.
2923 * i386-nto-tdep.c (i386nto_init_abi): Update.
2924 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
2925 * i386-tdep.c (i386_sigtramp_frame_sniffer)
2926 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
2927 * i386bsd-tdep.c (i386bsd_init_abi): Update.
2928 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
2929 * i386obsd-tdep.c (i386obsd_init_abi): Update.
2930 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
2931 * infrun.c (pc_in_sigtramp): Update.
2932 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
2933 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
2934 * mips-tdep.c (mips_gdbarch_init): Update.
2935 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
2936 * ppc-linux-tdep.c: Update comment.
2937 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
2938 * shnbsd-tdep.c (shnbsd_init_abi): Update.
2939 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
2940 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
2941 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
2942 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
2943 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
2944 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
2945 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
2946 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
2948 2004-03-23 Andrew Cagney <cagney@redhat.com>
2950 * tramp-frame.h, tramp-frame.h: New files.
2951 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
2952 Update rules to include "tramp-frame.h" and "tramp-frame.c".
2954 * Makefile.in: Update all dependencies.
2956 2004-03-23 Andrew Cagney <cagney@redhat.com>
2958 * Makefile.in (trad_frame_h): Add $(frame_h).
2959 * trad-frame.h: Update copyright. Include "frame.h".
2960 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
2961 (trad_frame_set_id, trad_frame_get_id): Declare.
2962 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
2963 * trad-frame.c: Update copyright.
2964 (struct trad_frame_cache): Define.
2965 (trad_frame_cache_zalloc): New function.
2966 (trad_frame_set_id, trad_frame_get_id): New functions.
2967 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
2969 2004-03-22 Andrew Cagney <cagney@redhat.com>
2971 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
2972 s390_pltstub_unwind_cache.
2973 (s390_stub_frame_unwind_cache): Rename
2974 s390_pltstub_frame_unwind_cache.
2975 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
2976 (s390_stub_frame_prev_register): Rename
2977 s390_pltstub_frame_prev_register.
2978 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
2979 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
2981 From Ulrich Weigand:
2982 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
2983 pointer calls like PLT calls.
2985 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
2987 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
2988 PC rather than the partial function start address. Use the start
2989 address to sanity check the found PDR.
2991 2004-03-22 Daniel Jacobowitz <drow@mvista.com>
2993 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
2994 linux_handle_extended_wait.
2996 2004-03-22 Andrew Cagney <cagney@redhat.com>
2998 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3001 * frame.h (generic_pop_current_frame): Delete declaration.
3002 (deprecate_pop_dummy_frame): Deprecate
3003 generic_pop_dummy_frame.
3004 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3005 (generic_pop_current_frame): Delete function.
3006 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3007 generic_pop_current_frame.
3008 * v850-tdep.c (v850_pop_frame): Update.
3009 * mcore-tdep.c (mcore_pop_frame): Update.
3010 * sh64-tdep.c (sh64_pop_frame): Update.
3011 * h8300-tdep.c (h8300_pop_frame): Update.
3013 2004-03-22 Andrew Cagney <cagney@redhat.com>
3015 * frame.h (deprecated_pc_in_call_dummy): Rename
3016 generic_pc_in_call_dummy.
3017 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3018 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3019 generic_pc_in_call_dummy.
3020 (pc_in_dummy_frame): Make static.
3021 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3022 * gdbarch.h, gdbarch.c: Re-generate.
3023 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3024 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3025 (legacy_get_prev_frame): Ditto.
3026 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3029 2004-03-21 Andrew Cagney <cagney@redhat.com>
3031 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3032 declaration and out-of-date comment.
3033 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3035 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3036 deprecated_pc_in_call_dummy.
3038 * infrun.c (handle_inferior_event): For non legacy frames, use the
3039 frame ID and frame type to identify a signal trampoline. Update
3042 2004-03-21 Nathan J. Williams <nathanw@wasabisystems.com>
3044 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3045 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3047 2004-03-21 Andrew Cagney <cagney@redhat.com>
3049 * frame-unwind.h: Update copyright.
3050 (struct frame_data): Add opaque declaration.
3051 (frame_sniffer_ftype): Declare.
3052 (struct frame_unwind): Add "unwind_data" and "sniffer".
3053 (frame_unwind_register_unwinder): Declare.
3054 (frame_unwind_find_by_frame): Add parameter "this_cache".
3055 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3056 (legacy_get_prev_frame, legacy_get_prev_frame)
3057 (get_frame_type): Pass the prologue_cache to
3058 frame_unwind_find_by_frame.
3059 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3061 (frame_unwind_register_unwinder): New function.
3062 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3064 2004-03-20 Paul Hilfinger <hilfingr@nile.gnat.com>
3066 * bcache.c (print_percentage): Use floating point to avoid
3067 incorrect results when portion*100 overflows.
3069 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3071 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3072 (ppc_linux_init_extra_frame_info)
3073 (ppc_linux_frameless_function_invocation)
3074 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3075 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3076 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3077 (rs6000_frame_chain): Delete declarations.
3078 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3079 (ppc_linux_init_extra_frame_info)
3080 (ppc_linux_frameless_function_invocation)
3081 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3082 (ppc_linux_init_abi): Remove registration of above deleted functions.
3083 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3084 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3085 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3086 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3087 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3088 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3089 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3090 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3091 frame management for all OSABIs.
3093 2004-03-19 Andrew Cagney <cagney@redhat.com>
3095 Committed by Kevin Buettner <kevinb@redhat.com>.
3097 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3099 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3100 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3101 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3102 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3103 unwinders. #ifdef legacy frame code.
3104 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3106 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3107 (struct rs6000_frame_cache, rs6000_frame_cache)
3108 (rs6000_frame_this_id, rs6000_frame_prev_register)
3109 (rs6000_frame_sniffer, rs6000_frame_unwind)
3110 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3111 (rs6000_frame_base): Implement a traditional frame unwinder.
3112 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3115 2004-03-19 Kevin Buettner <kevinb@redhat.com>
3117 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3118 breakpoint address for watchpoints or the catch eventpoints.
3119 Add new paramter ``bptype''. Adjust all callers.
3121 2004-03-19 Andrew Cagney <cagney@redhat.com>
3123 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3125 * PROBLEMS: Delete note that ARM does not use frame code, problem
3128 2004-03-18 Andrew Cagney <cagney@redhat.com>
3130 * stack.c (return_command): Delete code wrapped in #ifdef
3131 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3133 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3135 2004-03-18 Andrew Cagney <cagney@redhat.com>
3137 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3138 DEPRECATED_IN_SIGTRAMP.
3139 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3140 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3141 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3142 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3143 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3144 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3145 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3146 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3147 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3148 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3150 2004-03-18 Andrew Cagney <cagney@redhat.com>
3152 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3153 (struct frame_base_table_entry): Define.
3154 (struct frame_base_table): Re-implement as a linked list.
3155 (frame_base_init): Re-implement.
3156 (frame_base_table): Delete function.
3157 (append_predicate): Delete function.
3158 (frame_base_append_sniffer): Update.
3159 (frame_base_set_default): Update.
3160 (frame_base_find_by_frame): Update.
3161 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3162 * Makefile.in (frame-base.o): Update dependencies.
3164 2004-03-17 Andrew Cagney <cagney@redhat.com>
3166 * frame.c (legacy_get_prev_frame): Pass correct frame to
3167 frame_unwind_find_by_frame.
3169 2004-03-17 David Carlton <carlton@kealia.com>
3171 * NEWS: Mention C++ nested types and namespaces
3173 2004-03-16 Michael Chastain <mec.gnu@mindspring.com>
3175 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3176 and "Regressions since gdb 5.3.". Add known regressions since
3179 2004-03-16 David Carlton <carlton@kealia.com>
3181 * dwarf2read.c (process_structure_scope): Process children even
3182 when we're a declaration.
3184 2004-03-16 Andrew Cagney <cagney@redhat.com>
3186 * symtab.h (find_pc_sect_partial_function): Delete declaration.
3187 * blockframe.c (find_pc_partial_function)
3188 (find_pc_sect_partial_function): Merge into a single
3189 find_pc_partial_function.
3191 2004-03-16 Mark Kettenis <kettenis@gnu.org>
3193 * i386bsd-nat.c: s/regno/regnum/g.
3194 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
3196 (store_inferior_registers): Likewise.
3198 2004-03-16 Mark Kettenis <kettenis@gnu.org>
3200 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
3202 (store_inferior_registers): Call i387_collect_fsave and
3203 i387_collect_fxsave instead of i387_fill_fsave and
3206 2004-03-15 Andrew Cagney <cagney@redhat.com>
3208 * Makefile.in (frame-unwind.o): Update dependencies.
3209 * frame-unwind.c: Include "gdb_obstack.h".
3210 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
3212 (append_predicate): Delete function.
3213 (struct frame_unwind_table_entry): New structure.
3214 (struct frame_unwind_table): Replace "sniffer" with "head" and
3216 (frame_unwind_append_sniffer): Update.
3217 (frame_unwind_find_by_frame): Update.
3218 (_initialize_frame_unwind): Registe frame_unwind_init using
3219 gdbarch_data_register_pre_init.
3221 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3223 * i386bsd-nat.c: Update copyright year.
3224 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
3225 define unconditionally.
3227 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3229 * i387-tdep.h (i387_collect_fsave): New prototype.
3230 * i387-tdep.c (i387_collect_fsave): New function containing most
3231 of the code from i387_fill_fsave.
3232 (i387_fill_fsave): Call i387_collect_fsave.
3234 2004-03-15 Mark Kettenis <kettenis@gnu.org>
3236 * i386-linux-tdep.c: Update copyright year.
3237 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
3238 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
3239 svr4_ilp32_link_map_offsets instead of
3240 i386_linux_svr4_fetch_link_map_offsets.
3242 2004-03-15 David Carlton <carlton@kealia.com>
3244 Fix for PR c++/1553:
3245 * dwarf2read.c (read_structure_type): Determine type name by
3246 calling determine_class_name.
3247 (determine_class_name): New.
3248 (determine_prefix): Look at TYPE_TAG_NAME and call
3249 determine_class_name when appropriate.
3250 (determine_prefix_aux, class_name): Delete.
3251 (read_namespace): Set die->type.
3253 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3255 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
3256 unused macro definition. The definition in target.h (or perhaps
3257 elsewhere) takes precedence.
3259 2004-03-15 Andrew Cagney <cagney@redhat.com>
3261 * ppc-tdep.h: Update copyright.
3262 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
3263 function signatures to match "regsets.h".
3264 * ppc-linux-tdep.c: Include "regset.h".
3265 (ELF_GREGSET_SIZE): Delete.
3266 (right_supply_register): New function.
3267 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
3268 using right_supply_register.
3269 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
3271 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
3272 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
3273 (_initialize_ppc_linux_tdep): Do not register
3274 ppc_linux_regset_core_fns.
3275 (ppc_linux_regset_from_core_section): Replace
3276 fetch_core_registers.
3277 (ppc_linux_regset_core_fns): Delete.
3278 * ppc-linux-nat.c: (right_fill_reg): New function.
3279 (supply_gregset): Update call to ppc_linux_supply_gregset.
3280 (fill_gregset): Clear the register set, use right_fill_reg.
3281 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3282 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3284 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3287 2004-03-15 Andrew Cagney <cagney@redhat.com>
3289 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3290 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3291 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3292 and register_gdbarch_data.
3293 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3294 (struct gdbarch_data): Replace "init" by "pre_init" and
3296 * gdbarch.h, gdbarch.c: Re-generate.
3297 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3298 with"obstack", use OBSTACK_ZALLOC.
3299 (dwarf2_frame_ops): Delete.
3300 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3301 (dwarf2_frame_init_reg): Use gdbarch_data.
3302 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
3303 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
3304 (_initialize_svr4_solib): Update.
3305 * user-regs.c (_initialize_user_regs): Update.
3306 * reggroups.c (_initialize_reggroup): Update.
3307 * regcache.c (_initialize_regcache): Update.
3308 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3309 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3310 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3311 * frame-unwind.c (_initialize_frame_unwind): Update.
3312 * frame-base.c (_initialize_frame_base): Update.
3313 * user-regs.c (user_reg_add): Update.
3314 * reggroups.c (reggroup_add): Update.
3315 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3316 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3317 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3318 * frame-base.c (frame_base_table): Update.
3319 * remote.c (_initialize_remote): Update.
3320 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
3322 2004-03-15 Andrew Cagney <cagney@redhat.com>
3324 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3326 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3328 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3329 * frv-linux-tdep.c: New file.
3330 * frv-tdep.c (struct gdbarch_tdep): Add new field
3331 ``sigcontext_reg_addr''.
3332 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3333 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3334 (frv_sigramp_frame_sniffer): New functions.
3335 (frv_sigtramp_frame_unwind): New static global.
3336 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3338 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3339 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3341 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3343 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3344 but not via a call to error(), when unable to read memory.
3346 2004-03-15 Kevin Buettner <kevinb@redhat.com>
3348 * frv-tdep.c (frv_call_dummy_words): Delete.
3349 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3351 2004-03-15 Andrew Cagney <cagney@redhat.com>
3353 * infrun.c (handle_step_into_function, step_over_function): Only
3354 update and use STEP_FRAME_ID when the system is using legacy
3355 frames. Update comments.
3357 2004-03-14 Mark Kettenis <kettenis@gnu.org>
3359 * amd64-linux-tdep.h: Remove file.
3360 * amd64-linux-tdep.c: Don't include "inferior.h" and
3361 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3362 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3363 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3364 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3365 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3367 (user_to_gdb_regmap): Remove variable.
3368 (amd64_linux_gregset_reg_offset): New variable.
3369 (amd64_core_fns): Remove variable.
3370 (fetch_core_registers): Remove function.
3371 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3373 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3374 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3375 * Makefile.in (amd64_linux_tdep_h): Remove.
3376 (amd64-linux-nat.o): Update dependencies.
3377 (amd64-linux-tdep.o): Update dependencies.
3379 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3380 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3382 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3384 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3385 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3387 2004-03-14 Daniel Jacobowitz <drow@mvista.com>
3389 * dwarf2read.c (read_structure_type): Rename from
3390 read_structure_scope. Don't create a symbol or call process_die.
3391 Return immediately if die->type is set. Call read_type_die before
3392 dwarf2_add_member_fn.
3393 (process_structure_scope): New function.
3394 (read_enumeration_type, process_enumeration_scope): New functions,
3395 broken out from read_enumeration. Don't create the enumeration
3396 type if it has already been created.
3397 (read_enumeration): Removed.
3398 (process_die): Call read_structure_type, process_structure_scope,
3399 read_enumeration_type, and process_enumeration_scope. Just call
3400 new_symbol for base and subrange types. Add a comment about other
3402 (read_type_die): Call read_enumeration_type.
3403 (add_partial_structure, new_symbol): Update comments.
3405 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3407 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
3409 2004-03-13 Stephane Carrez <stcarrez@nerim.fr>
3411 * tui/tui-win.h (tui_get_cmd_list): Declare.
3412 * tui/tui-win.c (tui_command): New function.
3413 (tui_get_cmd_list): New function.
3414 (_initialize_tui_win): Moved initialization of tui command in
3417 * tui/tui-data.c (init_content_element): Setup new data members.
3418 (init_win_info): Likewise.
3419 (free_content_elements): Free it.
3420 * tui/tui-data.h (struct tui_data_element): Store the register
3422 (struct tui_data_info): Keep the current register group.
3424 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
3426 * tui/tui-regs.h (tui_show_registers): Update prototype.
3427 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
3428 (tui_resize_all): No need to calculate anything for register window.
3429 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
3430 (tui_set_register_element, tui_set_general_regs_content): Remove.
3431 (tui_set_special_regs_content): Remove.
3432 (tui_set_general_and_special_regs_content): Remove.
3433 (tui_set_float_regs_content): Remove.
3434 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
3435 (tui_set_regs_content): Remove.
3436 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
3437 (tui_v_show_registers_command_support): Remove.
3438 (tui_show_registers): Use a reggroup to specify the registers to show.
3439 (tui_show_register_group): New function.
3440 (tui_display_registers_from): Compute the layout of register window
3441 and refresh with new API; be sure to delete old register windows.
3442 (tui_check_register_values): Update to use tui_get_register and
3444 (tui_display_register): Just refresh the register window part.
3445 (tui_register_format): Format registers and save in tui_data_element.
3446 (tui_get_register): New to combine tui_reg_value_has_changed and
3447 tui_get_register_raw_value; fix to use the new gdb API.
3448 (tui_show_float_command): Renamed tui_reg_float_command.
3449 (tui_show_general_command): Renamed tui_reg_general_command.
3450 (tui_show_special_command): Renamed tui_reg_system_command.
3451 (_initialize_tui_regs): Remove unused commands.
3453 2004-03-13 Mark Kettenis <kettenis@gnu.org>
3455 * NEWS (New native configurations): Mention OpenBSD/amd64.
3457 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
3458 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
3460 * config/i386/nm-fbsd64.h: Likewise.
3461 * config/i386/nm-obsd.h: Likewise.
3462 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
3463 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
3465 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3467 * frv-tdep.c (set_variant_scratch_registers): New function.
3468 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
3471 From Richard Sandiford <rsandifo@redhat.com>:
3472 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
3474 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3476 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
3477 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
3478 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
3479 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
3480 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
3481 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
3482 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
3483 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
3484 definitions from frv-tdep.c to frv-tdep.h.
3486 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3488 Add shared library support for FR-V FDPIC ABI:
3489 * Makefile.in (solib-frv.o): Add dependencies.
3490 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
3492 (frv_push_dummy_call): Add support for FDPIC ABI.
3493 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
3495 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
3496 (frv_fdpic_find_canonical_descriptor): Declare.
3497 * solib-frv.c: New file.
3498 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
3499 * config/frv/tm-frv.h (solib.h): Include.
3501 2004-03-12 Kevin Buettner <kevinb@redhat.com>
3503 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
3504 (frv-tdep.o): Update dependencies.
3505 * frv-tdep.h: New file.
3506 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
3507 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
3509 (struct gdbarch_tdep): Add new member ``frv_abi''.
3510 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
3512 (new_variant): Set ``frv_abi'' field.
3513 (gdb_arch_init): Detect FDPIC executables.
3515 2004-03-12 Mark Kettenis <kettenis@gnu.org>
3517 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
3520 2004-03-11 Andrew Cagney <cagney@redhat.com>
3522 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
3524 2004-03-11 Kevin Buettner <kevinb@redhat.com>
3526 * solist.h (master_so_list): New function.
3527 * solib.c (master_so_list): Likewise.
3528 * solib-svr4.c (enable_break): Iterate over so_list entries
3529 obtained from master list instead of entries obtained directly
3530 via svr4_current_sos().
3532 2004-03-10 Ben Elliston <bje@gnu.org>
3534 * MAINTAINERS: Update my mail address.
3536 2004-03-10 Kei Sakamoto <sakamoto.kei@renesas.com>
3538 * remote-m32r-sdi.c: Support hardware watchpoint.
3540 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3542 * user-regs.c: Update copyright years.
3543 (struct user_regs): Rename to gdb_user_regs.
3544 (append_user_reg, builtin_user_regs, user_regs_init)
3545 (user_reg_add, user_reg_map_name_to_regnum)
3546 (usernum_to_user_reg): Update.
3548 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3550 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
3551 (skip_children): New functions.
3552 (locate_pdi_sibling): Call skip_children.
3554 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3556 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
3557 * gdbtypes.c (check_typedef): Update comments.
3559 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3561 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
3562 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
3563 pointer. Update comment about comp_unit_head.
3564 (struct abbrev_info): Shorten two int flags.
3565 (dwarf_alloc_abbrev): Take a CU argument.
3566 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
3567 each time through the loop. Update cleanup argument.
3568 (psymtab_to_symtab_1): Update cleanup call.
3569 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
3571 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
3572 Just call obstack_free and clear the pointer.
3574 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3576 * infrun.c (handle_inferior_event): Remove short-circuit code for
3577 events in a different thread.
3579 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3581 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
3582 print the whole transfer.
3583 (initialize_targets): Update description of "set debug target".
3585 2004-03-09 Daniel Jacobowitz <drow@mvista.com>
3587 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3589 2004-03-08 Nathan J. Williams <nathanw@wasabisystems.com>
3591 * MAINTAINERS (write after approval): Add myself.
3593 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
3595 * sh-tdep.c (sh_print_registers_info): Use for loop.
3596 Don't skip multiple registers when a float register is encountered.
3598 2004-03-08 Corinna Vinschen <vinschen@redhat.com>
3601 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3602 to official SH documentation.
3604 2004-03-07 Andrew Cagney <cagney@redhat.com>
3606 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
3609 2004-03-07 Daniel Jacobowitz <drow@mvista.com>
3611 * arm-tdep.c (thumb_get_next_pc): Handle BX.
3612 (arm_get_next_pc): Handle BX and BLX.
3614 2004-03-07 Andrew Cagney <cagney@redhat.com>
3616 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
3617 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
3619 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
3620 (hppa_target_read_fp): Delete.
3621 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
3622 register_virtual_size, max_register_raw_size,
3623 max_register_virtual_size, register_byte, register_size,
3624 target_read_fp, fp_regnum, and register_bytes. Set register_type
3625 instead of register_virtual_type.
3626 (hppa32_register_type, hppa64_register_type): Replace
3627 hppa32_register_virtual_type and hppa64_register_virtual_type.
3628 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
3629 (HPPA_FP_REGNUM): Define.
3631 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
3633 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
3634 (pa_do_registers_info): Delete.
3635 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
3636 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
3637 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
3639 * infcall.c (legacy_push_dummy_code): Delete #ifdef
3640 GDB_TARGET_IS_HPPA code.
3641 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
3642 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
3643 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
3644 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
3645 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
3646 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
3647 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
3648 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
3649 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
3650 (hppa_frameless_function_invocation, hppa64_store_return_value)
3651 (hppa_store_struct_return, hppa64_extract_return_value)
3652 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
3653 (hppa32_call_dummy_length, hppa64_call_dummy_length)
3654 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
3655 (find_proc_framesize, deposit_21, restore_pc_queue)
3656 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
3657 (rp_saved, pc_in_linker_stub): Delete.
3659 Unconditionally enable 64-bit frame and ABI code.
3660 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
3661 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
3662 push_dummy_frame, fix_call_dummy, push_arguments,
3663 call_dummy_location, extract_return_value, use_struct_convention,
3664 store_return_value, store_struct_return, saved_pc_after_call,
3665 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
3666 frame_chain, frame_chain_valid, frameless_function_invocation,
3667 frame_saved_pc, and pop_frame.
3669 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
3670 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
3671 (hppa_gdbarch_init): Do not set PC_REGNUM.
3673 2004-03-06 Mark Kettenis <kettenis@gnu.org>
3675 * config/alpha/tm-fbsd.h: Remove file.
3676 * config/alpha/fbsd.mt: Tweak comment.
3677 (TM_FILE): Set to tm-alpha.h.
3679 2004-03-05 Andrew Cagney <cagney@redhat.com>
3681 * infrun.c (step_over_function): When non-legacy code, and no
3682 step_frame_id, use the unwinder to get the caller's frame ID.
3684 2004-03-05 Mark Kettenis <kettenis@gnu.org>
3686 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
3687 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
3688 bfd_arch_unknown. Adjust comment.
3690 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
3691 * i386obsd-tdep.c: Correct spelling in comment.
3692 * i386nbsd-tdep.c: Correct spelling in comment.
3693 * sparc-tdep.c: Correct spelling in comments.
3695 2004-03-05 David Carlton <carlton@kealia.com>
3697 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
3700 2004-03-05 Mark Kettenis <kettenis@gnu.org>
3702 * sparc-tdep.c: Fix typo in comment.
3704 2004-03-04 J. Brobecker <brobecker@gnat.com>
3706 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
3708 2004-03-04 Daniel Jacobowitz <drow@mvista.com>
3710 * dwarf2read.c: Add comment describing memory lifetimes.
3711 (struct dwarf2_pinfo): Update comment.
3712 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
3713 (read_enumeration, new_symbol): Don't use obsavestring.
3715 2004-03-04 Mark Kettenis <kettenis@gnu.org>
3717 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
3718 instead of amd64_fill_fxsave.
3719 * amd64bsd-nat.c (store_inferior_registers): Likewise.
3720 * amd64fbsd-nat.c (fill_fpregset): Likewise.
3722 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
3723 Reorganize code a bit.
3725 2004-03-04 Orjan Friberg <orjanf@axis.com>
3727 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
3728 when the frame pointer is pushed. Don't set the frame pointer's
3729 address on the stack unless it's actually located there.
3730 Set the SRP's address on the stack correctly when the PC is still in
3732 (cris_return_value): New function.
3733 (cris_gdbarch_init): Clear deprecated store_return_value,
3734 extract_return_value.
3736 2004-03-02 Jim Blandy <jimb@redhat.com>
3738 * stabsread.c (reg_value_complaint): The maximum register number
3739 is one less than the number of registers.
3741 2004-03-02 Andrew Cagney <cagney@redhat.com>
3743 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
3744 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
3745 trailing comma and redundant assignment of I386_ST0_REGNUM.
3746 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
3747 32-bit segment registers.
3749 2004-03-01 Andrew Cagney <cagney@redhat.com>
3751 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
3752 use frame_relative_level and get_next_frame.
3754 2004-02-29 Andrew Cagney <cagney@redhat.com>
3756 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
3757 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
3758 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
3761 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3763 * inflow.c (terminal_inferior): Don't give up the terminal if we
3764 previously couldn't get the inferior's terminal state.
3766 2004-02-29 Daniel Jacobowitz <drow@mvista.com>
3768 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
3771 2004-02-28 Andrew Cagney <cagney@redhat.com>
3773 * NEWS: Refer to GDB 6.1.
3774 * README: Refer to GDB 6.1.
3775 * PROBLEMS: Refer to GDB 6.1.
3777 2004-02-28 Daniel Jacobowitz <drow@mvista.com>
3779 * thread-db.c (disable_thread_signals): Remove unused function.
3781 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3783 * amd64-nat.c: Include "gdb_string.h".
3784 (amd64_collect_native_gregset): Zero-extend the 32-bit
3785 general-purpose registers and %eip.
3787 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
3788 * amd64-tdep.c (amd64_collect_fxsave): New function.
3789 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
3791 * i387-tdep.h: Update copyright year.
3792 (i387_collect_fxsave): New prototype.
3793 * i387-tdep.c: Update copyright year.
3794 (i387_collect_fxsave): New function containing most of the code
3795 from i387_fill_fxsave.
3796 (i387_fill_fxsave): Call i387_collect_fxsave.
3798 2004-02-28 Andrew Cagney <cagney@redhat.com>
3800 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
3801 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
3803 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3805 * amd64-tdep.c (amd64_frame_cache): Fix comment.
3807 2004-02-28 Andrew Cagney <cagney@redhat.com>
3809 * utils.c: Use "", instead of <>, to include readline.
3810 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
3811 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
3812 * source.c, solib.c, exec.c, event-top.c: Ditto.
3813 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
3814 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
3815 * Makefile.in: Update all dependencies.
3816 (readline_tilde_h, readline_history_h): Define.
3817 (readline_headers): Delete.
3819 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3821 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
3822 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
3823 "config/i386/tm-lx64.h".
3825 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
3826 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
3827 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
3829 2004-02-28 Andrew Cagney <cagney@redhat.com>
3831 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
3833 * breakpoint.c (_initialize_breakpoint): Use
3834 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
3835 Add help to show command.
3837 2004-02-28 Mark Kettenis <kettenis@gnu.org>
3839 * i386-nat.c: Reformat to be closer to coding standards.
3840 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
3841 `retval'. Make variables `align' and `size' local to while-loop.
3842 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
3843 (_initialize_i386_nat): New prototype.
3845 * tui/tui.c: Include <readline/readline.h> instead of
3846 "readline/readline.h". Include it after <term.h> and
3849 2004-02-27 Andrew Cagney <cagney@redhat.com>
3851 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
3852 the new frame unwind code.
3853 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
3854 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
3857 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
3858 "return_value" and "push_dummy_call".
3859 (hppa32_use_struct_convention): Delete unused function.
3860 (hppa32_store_return_value): Delete unused function.
3861 (hppa32_extract_return_value): Delete unused function.
3862 (hppa32_stack_align): Delete function.
3864 2004-02-27 Eli Zaretskii <eliz@elta.co.il>
3866 * coffread.c (enter_linenos): Don't let rawptr reference memory
3867 outside linetab[]'s limits.
3869 2004-02-27 Andrew Cagney <cagney@redhat.com>
3871 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
3872 inferior stack space - the stack needs to grow upwards.
3873 (hppa32_frame_align): New function.
3874 (hppa64_frame_align): Replace hppa_frame_align.
3875 (hppa_gdbarch_init): Update.
3877 2004-02-26 Orjan Friberg <orjanf@axis.com>
3879 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
3880 (dwarf2-frame.h): Include.
3881 (enum cris_regnums): New enum CRIS_FP_REGNUM.
3882 Remove static variables related to ABI setting.
3883 (struct gdbarch_tdep): Remove cris_abi member.
3884 (struct frame_extra_info): Remove.
3885 (cris_unwind_cache, stack_item): New structs.
3886 (cris_frame_unwind, cris_frame_base): New variables.
3887 (push_stack_item, pop_stack_item)
3888 (cris_frame_unwind_cache, cris_frame_this_id)
3889 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
3890 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
3891 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
3892 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
3893 (cris_reg_struct_has_addr): New functions.
3894 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
3895 (cris_frame_saved_pc, cris_saved_pc_after_call,
3896 (cris_store_struct_return, cris_frameless_function_invocation)
3897 (cris_pop_frame, cris_skip_prologue_main)
3898 (cris_abi_original_store_return_value)
3899 (cris_abi_v2_store_return_value)
3900 (cris_abi_original_extract_return_value)
3901 (cris_abi_v2_extract_return_value)
3902 (cris_abi_original_reg_struct_has_addr)
3903 (cris_abi_v2_reg_struct_has_addr)
3904 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
3905 (cris_push_return_address, cris_abi_update): Remove.
3906 (_initialize_cris_tdep): Remove ABI command.
3907 (cris_dump_tdep): Ditto.
3908 (cris_gdbarch_init): Remove ABI command.
3909 Set store_return_value, extract_return_value, push_dummy_code,
3910 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
3911 frame_unwind_append_sniffer, frame_base_set_default.
3912 Clear deprecated init_frame_pc, push_arguments, store_return_value,
3913 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
3914 sizeof_call_dummy_words, get_saved_register, push_return_address,
3915 pop_frame, store_struct_return, frame_init_saved_regs,
3916 init_extra_frame_info, frameless_function_invocation, frame_chain,
3917 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
3920 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3922 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
3923 * valprint.c (print_hex_chars): Change from static to external.
3924 (print_char_chars): New function.
3925 * printcmd.c (print_scalar_formatted): For integer and enum types
3926 that are longer than LONGEST, perform processing via appropriate
3927 print_*_chars routines.
3929 2004-02-26 Andrew Cagney <cagney@redhat.com>
3931 * Makefile.in: Update dependencies.
3932 Changes from Ulrich Weigand,
3933 * s390-tdep.c: Include "dwarf2-frame.h".
3934 (s390_dwarf2_frame_init_reg): New function.
3935 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
3936 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
3938 2004-02-26 Jeff Johnston <jjohnstn@redhat.com>
3940 * breakpoint.c (pending_break_support): New setting variable.
3941 (break_command_1): Account for pending_break_support setting
3942 when creating pending breakpoints.
3943 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
3944 (_initialize_breakpoint): Add "set breakpoint pending" and
3945 "show breakpoint pending" commands.
3947 2004-02-26 Andrew Cagney <cagney@redhat.com>
3950 * charset.c (backslashable, backslashed, represented): Remove 'e'
3951 from list of escaped characters, not part of ISO-C.
3953 2004-02-25 J. Brobecker <brobecker@gnat.com>
3955 From Peter Schauer <schauer@pdf.de>:
3956 * tui/tui.c: Move system header includes after local includes.
3957 Fixes a build failure on solaris systems.
3959 2004-02-25 J. Brobecker <brobecker@gnat.com>
3961 * configure.in: Refine the previous change.
3962 * configure: Regenerate.
3964 2004-02-25 Mark Kettenis <kettenis@gnu.org>
3966 * amd64-tdep.h: Renamed from x86-64-tdep.h.
3967 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
3968 "amd64-tdep.h" instead of "x86-64-tdep.h".
3969 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3970 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
3971 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
3972 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3973 and "x86-64-tdep.c".
3974 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
3975 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
3976 and "x86-64-tdep.c".
3977 * amd64bsd-nat.c: Update copyright year.
3978 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
3979 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
3981 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
3983 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
3985 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
3987 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
3989 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
3991 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
3992 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
3993 * Makefile.in (amd64_linux_tdep_h): Renamed from
3994 x86_64_linux_tdep_h.
3995 (amd64_tdep_h): Renamed from x86_64_tdep_h.
3996 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
3997 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
3998 (amd64obsd-tdep.o): Update dependencies.
3999 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4001 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4003 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4004 amd64-linux-nat.c amd64-linux-tdep.c.
4005 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4006 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4007 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4008 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4009 amd64-tdep.o and amd64-linux-tdep.o.
4010 (TM_FILE): Set to tm-linux64.h.
4011 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4012 (NAT_FILE): Set to nm-linux64.h.
4013 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4014 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4016 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4018 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4021 2004-02-25 Roland McGrath <roland@redhat.com>
4023 * remote.c (remote_protocol_qPart_auxv): New variable.
4024 (init_all_packet_configs): Initialize it.
4025 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4026 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4027 (show_remote_cmd): Call it.
4028 (_initialize_remote): Initialize commands.
4029 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4030 service TARGET_OBJECT_AUXV requests.
4032 2004-02-25 J. Brobecker <brobecker@gnat.com>
4034 * configure.in: Make sure that the wborder function is available.
4035 Otherwise, search for it in the cur_colr library.
4036 * configure: Regenerate.
4038 2004-02-25 Andrew Cagney <cagney@redhat.com>
4040 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4042 2004-02-25 Mark Kettenis <kettenis@gnu.org>
4044 * config/i386/tm-x86-64linux.h: Tweak comments.
4046 2004-02-25 Richard Sandiford <rsandifo@redhat.com>
4048 * MAINTAINERS: Add self to write-after-approval list.
4050 2004-02-25 Andrew Cagney <cagney@redhat.com>
4052 PR cli/1566. Problem found, and fix suggested by David Allan.
4053 * cli/cli-script.c (execute_control_command): Unconditionally
4054 install a cleanup. Default "ret" to "invalid_control". Use
4055 "break" instead of "return" to escape from the switch.
4057 2004-02-24 J. Brobecker <brobecker@gnat.com>
4059 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4060 with the lines macro defined in term.h on AiX.
4061 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4062 a collision with the label_width macro defined in term.h on AiX.
4064 2004-02-23 David Mosberger <davidm@hpl.hp.com>
4066 Committed by Kevin Buettner <kevinb@redhat.com>.
4068 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4069 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4070 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4071 instead of ia64_write_pc().
4072 * ia64-linux-tdep.c (regcache.h): Include.
4073 (ia64_linux_write_pc): New function.
4075 2004-02-23 Roland McGrath <roland@redhat.com>
4077 * auxv.c (info_auxv_command): Fix typos in error messages.
4079 2004-02-23 Mark Kettenis <kettenis@gnu.org>
4081 * x86-64-tdep.h: Tweak comment.
4082 (enum amd64_regnum): New.
4083 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4084 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4085 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4086 (X86_64_XMM1_REGNUM): Removed.
4087 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4088 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4089 prototypes for renamed functions.
4090 * x86-64-tdep.c: Fix typo.
4091 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4093 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4094 Use constants from `enum amd64_regnum' for register numbers.
4095 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4096 (amd64_analyze_prologue, amd64_frame_cache,
4097 amd64_sigtramp_frame_cache): Use constants from `enum
4098 amd64_regnum' for register numbers.
4099 (amd64_supply_fpregset): Adjust for renamed functions.
4100 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4101 `enum amd64_regnum' for register numbers.
4102 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4103 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4104 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4105 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4106 (amd64_linux_fill_gregset): Adjust for renamed macros.
4107 (fetch_core_registers): Adjust for renamed functions.
4108 (amd64_linux_init_abi): Adjust for renamed functions.
4109 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4111 * amd64-nat.c: Adjust for renamed macros.
4112 * amd64bsd-nat.c (fetch_inferior_registers)
4113 (store_inferior_registers): Use constants from `enum amd64_regnum'
4114 for register numbers. Adjust for renamed variables.
4115 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4117 (_initialize_amd64fbsd_nat): Use constants from `enum
4118 amd64_regnum' for register numbers.
4119 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4120 `enum amd64_regnum' for register numbers.
4121 (amd64fbsd_init_abi): Adjust for renamed functions.
4122 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4123 `enum amd64_regnum' for register numbers.
4124 (amd64nbsd_init_abi): Adjust for renamed functions.
4125 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4126 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4127 `enum amd64_regnum' for register numbers.
4128 (amd64obsd_init_abi): Adjust for renamed functions.
4129 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4131 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4133 * breakpoint.c (print_one_breakpoint): Do not output spaces
4134 after printing <PENDING> for a pending breakpoint.
4136 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4138 * printcmd.c (print_scalar_formatted): Initialize val_long
4139 to remove compiler warning message.
4141 2004-02-23 Jeff Johnston <jjohnstn@redhat.com>
4143 * defs.h (nquery, yquery): New prototypes.
4144 * breakpoint.c (break_command_1): Use new nquery interface.
4145 * utils.c (defaulted_query, nquery, yquery): New functions.
4147 2004-02-23 Andrew Cagney <cagney@redhat.com>
4149 * hppa-tdep.c (hppa_frame_align): New function.
4150 (hppa32_push_dummy_call): New function.
4151 (hppa64_push_dummy_call): New function.
4152 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4155 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4156 FIX_CALL_DUMMY when push_dummy_call is available.
4157 (call_function_by_hand, push_dummy_code): Ditto.
4159 2004-02-22 Andrew Cagney <cagney@redhat.com>
4161 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4162 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4163 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4164 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4165 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4166 call_dummy_location to ON_STACK.
4168 2004-02-22 Mark Kettenis <kettenis@gnu.org>
4170 * x86-64-linux-tdep.c: Tweak comment.
4171 (amd64_linux_supply_gregset): Renamed from
4172 x86_64_linux_supply_gresget.
4173 (amd64_linux_fill_gregset): Renamed from
4174 x86_64_linux_fill_gregset.
4175 (fetch_core_registers): Adjust for renamed functions.
4176 (amd64_core_fns): Renamed from x86_64_core_fns.
4177 (amd64_linux_sigtramp_start): Renamed from
4178 x86_64_linux_sigtramp_start.
4179 (amd64_linux_pc_in_sigtramp): Renamed from
4180 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4181 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4182 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4183 (amd64_linux_sigcontext_addr): Renamed from
4184 x86_64_linux_sigcontext_addr.
4185 (amd64_linux_sc_reg_offset): Renamed from
4186 x86_64_linux_sc_reg_offset.
4187 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
4188 Adjust for renamed functions and variables.
4189 (_initialize_amd64_linux_tdep): Renamed from
4190 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
4192 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
4193 Adjust for renamed functions.
4195 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
4196 from x86_64_linux_gregset64_reg_offset.
4197 (amd64_linux_gregset32_reg_offset): Rename from
4198 x86_64_linux_gregset64_reg_offset.
4199 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
4200 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
4201 (amd64_linux_dr_set_control): Renamed from
4202 x86_64_linux_dr_set_control. Adjust for renamed functions.
4203 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
4204 Adjust for renamed functions.
4205 (amd64_linux_dr_reset_addr): Renamed from
4206 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
4207 (amd64_linux_dr_get_status): Renamed from
4208 x86_64_linux_dr_get_status. Adjust for renamed functions.
4209 (_initialize_amd64_linux_nat): Renamed from
4210 _initialize_x86_64_linux_nat. Adjust for renamed variables and
4212 * config/i386/nm-x86-64linux.h: Update copyright year.
4213 Adjust for renamed functions.
4215 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
4216 amd64fbsd_sigtramp_start.
4217 (amd64fbsd_sigtramp_end_addr): Renamed from
4218 amd64fbsd_sigtramp_end.
4219 (amd64fbsd_init_abi): Adjust for renamed variables.
4220 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
4222 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
4223 amd64fbsd_sigtramp_start.
4224 (amd64fbsd_sigtramp_end_addr): Renamed from
4225 amd64fbsd_sigtramp_end.
4227 2004-02-22 Andrew Cagney <cagney@redhat.com>
4229 * hppa-tdep.c (hppa32_return_value): New function.
4230 (hppa64_return_value): New function.
4231 (hppa_gdbarch_init): Set return_value; keep disabled.
4233 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
4234 struct-return and inferior function call methods.
4236 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4238 (struct hppa_frame_cache): Define.
4239 (hppa_frame_cache, hppa_frame_this_id): New functions.
4240 (hppa_frame_prev_register): New function.
4241 (hppa_frame_unwind, hppa_frame_base): New variables.
4242 (hppa_frame_unwind_sniffer): New function.
4243 (hppa_frame_base_address, hppa_unwind_pc): New function.
4244 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
4245 sniffer, and frame base sniffer; keep disabled.
4246 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
4247 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
4249 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
4250 to predicates for "seriously old code".
4252 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
4255 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
4257 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
4259 * config/pa/tm-hppa.h: Update copyright.
4260 (DEPRECATED_INIT_FRAME_PC): Delete macro.
4261 (deprecated_init_frame_pc_default): Delete declaration.
4262 (hppa_frame_init_saved_regs): Delete declaration.
4263 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4264 * hppa-tdep.c: Include "arch-utils.h".
4265 (hppa_gdbarch_init): Set deprecated init_frame_pc
4266 and deprecated frame_init_saved_regs.
4267 (hppa_frame_init_saved_regs): Make static.
4269 2004-02-22 Mark Kettenis <kettenis@gnu.org>
4271 Remove old 386BSD support.
4272 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
4273 * configure.host: Remove i[34567]86-*-bsd*.
4274 * configure.tgt: Remove i[34567]86-*-bsd*.
4275 * i386b-nat.c: Removed.
4276 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
4277 (i386b-nat.o): Remove dependencies.
4279 * config/i386/i386bsd.mh: Removed.
4280 * config/i386/i386bsd.mt: Removed.
4281 * config/i386/nm-i386bsd.h: Removed.
4282 * config/i386/tm-i386bsd.h: Removed.
4283 * config/i386/xm-i386bsd.h: Removed.
4285 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4287 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4288 (amd64fbsd_init_abi): Set link map offsets.
4289 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4290 (amd64nbsd_init_abi): Set link map offsets.
4291 * amd64obsd-tdep.c: Include "solib-svr4.h".
4292 (amd64obsd_init_abi): Set link map offsets.
4293 * i386fbsd-tdep.c: Include "solib-svr4.h".
4294 (i386fbsd_init_abi): Set link map offsets.
4295 * i386nbsd-tdep.c: Include "solib-svr4.h".
4296 (i386nbsdelf_init_abi): Set link map offsets.
4297 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4298 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4299 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4300 solib-legacy.o and core-aout.o. Reformat.
4301 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4302 solib-svr4.o, solib-legacy.o. Reformat.
4303 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4304 * config/i386/nbsdelf.mh: Reformat.
4305 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4306 solib-svr4.o, solib-legacy.o and corelow.o.
4307 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4308 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4309 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4310 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4311 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4312 (TM_FILE): Set to tm-fbsd.h.
4313 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4314 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4316 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4318 (TM_FILE): Set to nm-nbsd.h.
4319 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4320 Simplify shared library support. Don't include "elf/common.h".
4321 (SVR4_SHARED_LIBS): Don't define.
4322 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4324 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4325 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4326 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4327 Don't include "i386/tm-i386.h". Include "solib.h".
4328 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4329 Don't include "i386/tm-i386.h".
4330 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4331 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4332 Include "i386/xm-i386.h".
4333 (HOST_LONG_DOUBLE_FORMAT): Remove.
4335 Fix OpenBSD/i386 sigtramp recognition.
4336 * i386-tdep.h: Update copyright year.
4337 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4338 (i386bsd_sigtramp_end): New prototypes.
4339 (i386fbsd_sigtramp_start_addr): Renamed from
4340 i386fbsd_sigtramp_start.
4341 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4342 (i386obsd_sigtramp_start_addr): Renamed from
4343 i386obsd_sigtramp_start.
4344 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4345 * i386bsd-tdep.c: Update copyright year.
4346 (i386bsd_pc_in_sigtramp): Make public.
4347 * i386fbsd-nat.c: Update copyright year.
4348 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4349 * i386fbsd-tdep.c: Update copyright year.
4350 (i386fbsd_sigtramp_start_addr): Renamed from
4351 i386fbsd_sigtramp_start.
4352 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4353 (i386fbsdaout_init_abi): Adjust for renamed variables.
4354 * i386obsd-nat.c: Update copyright year.
4355 (_initialize_i386obsd_nat): Adjust for renamed variables.
4356 * i386obsd-tdep.c: Include "target.h".
4357 (i386obsd_page_size): New variable.
4358 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4359 (i386obsd_sigtramp_end): New functions.
4360 (i386obsd_sigtramp_start_addr): Renamed from
4361 i386obsd_sigtramp_start.
4362 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4363 (i386obsd_init_abi): Adjust for renamed variables. Set
4364 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4365 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4367 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4368 trampoline change in OpenBSD kernel.
4370 * amd64-nat.c: Update copyright year.
4371 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4372 architecture from REGCACHE.
4374 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4375 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4377 2004-02-21 Mark Kettenis <kettenis@gnu.org>
4379 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4380 i[34567]86-*-openbsd3.[0-3].
4381 * config/i386/obsdaout.mh: New file.
4383 * config/i386/obsd.mh (MH_FLAGS): Remove.
4386 * i386obsd-tdep.c: Update copyright years. Include
4388 (i386obsd_init_abi): Don't set regset_from_core_section here.
4389 (i386obsd_aout_init_abi): New function. Set
4390 regset_from_core_section here.
4391 (i386obsd_elf_init_abi): New function.
4392 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4393 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4394 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4395 (TM_FILE): Set to tm-nbsd.h.
4397 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4400 * solib-svr4.h: Update copyright year.
4401 (svr4_ilp32_fetch_link_map_offsets)
4402 (svr4_lp64_fetch_link_map_offsets): New prototype.
4403 * solib-svr4.c: Update copyright year.
4404 (svr4_ilp32_fetch_link_map_offsets)
4405 (svr4_lp64_fetch_link_map_offsets): New function.
4407 2004-02-20 Daniel Jacobowitz <drow@mvista.com>
4409 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
4410 to the partial symbol table.
4412 2004-02-20 J. brobecker <brobecker@gnat.com>
4414 * PROBLEMS: Add description of problem documented under gdb/1560.
4416 2004-02-20 Mark Kettenis <kettenis@gnu.org>
4418 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
4420 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
4422 (amd64obsd_init_abi): Reorder initializations. Use
4423 amd64obsd_r_reg_offset to initialize the general-purpose register
4424 set details. Set regset_from_core_section.
4425 (_initialize_amd64obsd_tdep): Rename from
4426 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
4427 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
4428 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
4430 * NEWS (New native configurations): Mention OpenBSD/alpha.
4431 * configure.tgt: Add alpha*-*-openbsd*.
4432 * configure.host: Add alpha*-*-openbsd*.
4433 * alphanbsd-tdep.c: Update copyright year.
4434 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
4436 2004-02-20 Andrew Cagney <cagney@redhat.com>
4439 * configure.tgt: Delete target "none-*-*".
4440 * configure.host: Delete host "none-*-*".
4441 * config/none/none.mh: Delete file.
4442 * config/none/none.mt: Delete file.
4443 * config/none/xm-none.h: Delete file.
4444 * config/none/tm-none.h: Delete file.
4445 * config/none/nm-none.h: Delete file.
4447 2004-02-19 Fred Fish <fnf@redhat.com>
4449 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
4450 cache->uses_fp prior to setting it.
4452 2004-02-19 Fred Fish <fnf@redhat.com>
4454 Fix for PR breakpoint/1558.
4455 * sh-tdep.c (IS_JSR): New macro.
4456 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
4458 2004-02-19 Jim Blandy <jimb@redhat.com>
4460 * findvar.c (value_from_register): Doc fix.
4462 2004-02-19 Jeff Johnston <jjohnstn@redhat.com>
4464 * printcmd.c (print_scalar_formatted): Do not check for sizeof
4465 type being greater than sizeof of host's LONGEST. Always use
4466 unpack_long() unless format 'f' chosen.
4468 2004-02-19 Joel Brobecker <brobecker@gnat.com>
4470 Committed by Elena Zannoni <ezannoni@redhat.com>
4472 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
4473 contains a symbol wich is the best, non-exact match for the given
4474 pc. Update comments.
4476 2004-02-19 Elena Zannoni <ezannoni@redhat.com>
4478 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
4479 macro, which was part of the now removed Mach 3 port.
4480 * utils.c (request_quit): Ditto.
4482 2004-02-18 Mark Kettenis <kettenis@gnu.org>
4484 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
4485 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
4487 2004-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4489 Committed by Mark Kettenis <kettenis@gnu.org>.
4491 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4494 2004-02-18 Andrew Cagney <cagney@redhat.com>
4496 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
4497 CONFIG_INSTALL and CONFIG_UNINSTALL.
4498 * configure: Re-generate.
4499 * interps.h (INTERP_TUI): Define.
4500 * Makefile.in: Update dependencies.
4502 (tui-main.o): Specify dependencies.
4503 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
4504 * tui/tui-main.c: New file.
4506 2004-02-18 Mark Kettenis <kettenis@gnu.org>
4508 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
4509 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
4511 * configure.host: Add x86_64-*-openbsd*.
4512 * configure.tgt: Add x86_64-*-openbsd*.
4513 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
4515 * tui/tui.c: Don't include <malloc.h>.
4517 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
4518 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
4521 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
4522 static. Remove extraneous whitespace.
4523 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
4526 2004-02-17 Jim Blandy <jimb@redhat.com>
4528 * findvar.c (value_from_register): Doc fix.
4530 2004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4532 Committed by Jim Blandy <jimb@redhat.com>.
4534 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
4535 CORE_ADDR as type for selectors. Correct types for GNU run time
4536 message lookup function to use double indirection.
4537 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
4538 * objc-lang.h (lookup_child_selector): Adapt prototype.
4540 * s390-nat.c (SUBOFF): New macro.
4541 (supply_gregset, fill_gregset): Use it to handle debugging
4542 of 32-bit exectuables running under a 64-bit kernel.
4543 * s390-tdep.c: Include "solib-svr4.h".
4544 (s390_svr4_fetch_link_map_offset): New function.
4545 (s390x_svr_fetch_link_map_offset): Likewise.
4546 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
4547 * Makefile.in (s390-tdep.o): Update dependencies.
4549 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
4551 (s390_readinstruction): Reformat. Use read_memory_nobpt.
4552 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
4553 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
4554 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
4555 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
4556 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
4557 S390_SIGNAL_FRAMESIZE,
4558 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
4559 (struct frame_extra_info): Remove.
4560 (s390_memset_extra_info): Remove.
4561 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
4562 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
4563 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
4564 (is_rse): Renamed to ...
4565 (is_rsy): ... this. Support long displacements.
4566 (is_rxe): Renamed to ...
4567 (is_rxy): ... this. Support long displacements.
4568 (compute_x_addr): Support long displacements.
4569 (struct s390_prologue_data): New data type.
4570 (s390_on_stack): Change API to use struct s390_prologue_data.
4571 (s390_store): Reimplement.
4572 (s390_load): New function.
4573 (s390_get_signal_frame_info): Remove.
4574 (s390_get_frame_info): Remove, replace by ...
4575 (s390_analyze_prolog): ... this new function.
4576 (s390_check_function_end): Remove.
4577 (s390_function_start): Remove.
4578 (s390_frameless_function_invokation): Remove.
4579 (s390_is_sigreturn): Remove.
4580 (s390_init_frame_pc_first): Remove.
4581 (s390_init_frame_extra_info): Remove.
4582 (s390_frame_init_saved_regs): Remove.
4583 (s390_frame_saved_pc_nofix): Remove.
4584 (s390_frame_saved_pc): Remove.
4585 (s390_frame_chain): Remove.
4586 (s390_fp_regnum, s390_read_fp): Remove.
4587 (s390_pop_frame_regular, s390_pop_frame): Remove.
4588 (s390_saved_pc_after_call): Remove.
4589 (s390_skip_prologue): Reimplement.
4590 (s390_in_function_epilogue_p): Support long displacements.
4591 (struct s390_unwind_cache): New data structure.
4592 (s390_frame_unwind_cache): New function.
4593 (s390_prologue_frame_unwind_cache): Likewise.
4594 (s390_backchain_frame_unwind_cache): Likewise.
4595 (s390_frame_this_id, s390_frame_prev_register): Likewise.
4596 (s390_frame_unwind): Define.
4597 (s390_frame_sniffer): New function.
4598 (struct s390_pltstub_unwind_cache): New data structure.
4599 (s390_pltstub_frame_unwind_cache): New function.
4600 (s390_pltstub_frame_this_id): Likewise.
4601 (s390_pltstub_frame_prev_register): Likewise.
4602 (s390_pltstub_frame_unwind): Define.
4603 (s390_pltstub_frame_sniffer): New function.
4604 (struct s390_sigtramp_unwind_cache): New data structure.
4605 (s390_sigtramp_frame_unwind_cache): New function.
4606 (s390_sigtramp_frame_this_id): Likewise.
4607 (s390_sigtramp_frame_prev_register): Likewise.
4608 (s390_sigtramp_frame_unwind): Define.
4609 (s390_sigtramp_frame_sniffer): New function.
4610 (s390_frame_base_address, s390_local_base_address): New functions.
4611 (s390_frame_base): Define.
4612 (s390_unwind_pc, s390_unwind_sp): New function.
4613 (s390_push_dummy_call): Use new frame base location.
4614 (s390_unwind_dummy_id): Likewise.
4615 (s390_gdbarch_init): Remove calls to:
4616 set_gdbarch_frameless_function_invocation,
4617 set_gdbarch_deprecated_init_frame_pc,
4618 set_gdbarch_deprecated_frame_chain,
4619 set_gdbarch_deprecated_frame_init_saved_regs,
4620 set_gdbarch_deprecated_pop_frame,
4621 set_gdbarch_deprecated_init_extra_frame_info,
4622 set_gdbarch_deprecated_init_frame_pc_first,
4623 set_gdbarch_deprecated_target_read_fp,
4624 set_gdbarch_deprecated_frame_saved_pc,
4625 set_gdbarch_deprecated_saved_pc_after_call,
4626 set_gdbarch_deprecated_fp_regnum.
4628 set_gdbarch_in_solib_call_trampoline,
4629 frame_unwind_append_sniffer,
4630 frame_base_set_default,
4631 set_gdbarch_unwind_pc,
4632 set_gdbarch_unwind_sp.
4633 * Makefile.in (s390-tdep.o): Update dependencies.
4635 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
4636 (S390_STACK_FRAME_OVERHEAD): Remove.
4637 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
4638 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
4639 (s390_promote_integer_argument): Remove.
4640 (s390_cannot_extract_struct_value_address): Remove.
4641 (s390_use_struct_convention, s390_store_struct_return): Remove.
4642 (s390_extract_return_value, s390_store_return_value): Remove.
4643 (s390_return_value_convention, s390_return_value): New functions.
4644 (is_float_singleton): Handle typedefs.
4645 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
4646 Remove, replace by ...
4647 (s390_function_arg_pass_by_reference, s390_function_arg_float,
4648 s390_function_arg_integer): ... these new functions.
4649 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
4650 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
4651 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
4654 set_gdbarch_deprecated_store_struct_return,
4655 set_gdbarch_deprecated_extract_return_value,
4656 set_gdbarch_deprecated_store_return_value,
4657 set_gdbarch_use_struct_convention,
4658 set_gdbarch_extract_struct_value_address,
4659 set_gdbarch_deprecated_pc_in_call_dummy,
4660 set_gdbarch_deprecated_push_arguments,
4661 set_gdbarch_deprecated_save_dummy_frame_tos,
4662 set_gdbarch_deprecated_push_return_address,
4663 set_gdbarch_deprecated_sizeof_call_dummy_words,
4664 set_gdbarch_deprecated_call_dummy_words,
4665 set_gdbarch_deprecated_dummy_write_sp.
4667 set_gdbarch_push_dummy_call,
4668 set_gdbarch_unwind_dummy_id,
4669 set_gdbarch_return_value.
4671 * config/s390/nm-linux.h: Update comments.
4672 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
4673 (STOPPED_BY_WATCHPOINT): Redefine.
4674 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
4675 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
4676 (s390_stopped_by_watchpoint): Likewise.
4677 (watch_area_cnt): Remove.
4678 * s390-nat.c: Update comments.
4679 (watch_area): Remove typedef.
4680 Global replace watch_area by struct watch_area.
4681 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
4682 (s390_stopped_by_watchpoint): Remove pid argument,
4683 use s390_inferior_tid. Add short-cut for the no watchpoint case.
4684 (s390_fix_watch_points): Remove pid argument,
4685 use s390_inferior_tid. Recompute area spanned by watchpoints.
4686 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
4687 argument. Reimplement.
4689 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
4690 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
4691 (FETCH_INFERIOR_REGISTERS): Define.
4692 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
4694 * config/s390/s390x.mt: Remove.
4695 * config/s390/tm-s390.h: Remove.
4696 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
4697 (TARGET_ELF64): Remove.
4698 (SKIP_TRAMPOLINE_CODE): Do not undefine.
4699 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
4700 s390*-*-* case; always set gdb_target to s390.
4701 * regformats/reg-s390.dat: Remove control registers.
4702 * regformats/reg-s390x.dat: Likewise.
4703 * s390-tdep.h: New file.
4704 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
4705 Include "inferior.h" and "s390-tdep.h".
4706 Remove private definition of offsetof.
4707 (s390_register_u_addr): Remove.
4708 (regmap_gregset, regmap_fpregset): Define.
4709 (supply_gregset, fill_gregset): Reimplement.
4710 (supply_fpregset, fill_fpregset): Likewise.
4711 (s390_inferior_tid): New function.
4712 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
4713 (fetch_inferior_registers, store_inferior_registers): Likewise.
4714 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
4715 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
4716 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
4717 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
4718 (struct gdbarch_tdep): Define.
4719 (struct s390_register_info): Define.
4720 (s390_register_info): New variable.
4721 (s390_register_name): Reimplement.
4722 (s390_register_type): New function.
4723 (s390_register_raw_size, s390x_register_raw_size): Remove.
4724 (s390_cannot_fetch_register): Remove.
4725 (s390_register_byte): Remove.
4726 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
4727 (s390_dwarf_regmap): New variable.
4728 (s390_dwarf_reg_to_regnum): New function.
4729 (s390_stab_reg_to_regnum): Remove.
4730 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
4731 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
4732 (s390_convert_register_p): Likewise.
4733 (s390_register_to_value, s390_value_to_register): Likewise.
4734 (s390_register_reggroup_p): Likewise.
4735 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
4736 s390_gregset, s390x_gregset, s390_fpregset): New variables.
4737 (s390_supply_regset, s390_regset_from_core_section): New functions.
4738 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
4739 (S390_FPR_SIZE): Likewise.
4740 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
4741 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
4742 (S390_NUM_GPRS): Move here from tm-s390.h.
4743 (S390_NUM_FPRS): Likewise.
4744 (s390_in_function_epilogue_p): New function.
4745 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
4746 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
4747 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
4748 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
4749 Replace S390_FP_REGNUM by S390_SP_REGNUM.
4751 set_gdbarch_deprecated_max_register_raw_size,
4752 set_gdbarch_deprecated_max_register_virtual_size,
4753 set_gdbarch_deprecated_register_byte,
4754 set_gdbarch_cannot_fetch_register,
4755 set_gdbarch_cannot_store_register,
4756 set_gdbarch_deprecated_register_size,
4757 set_gdbarch_deprecated_register_raw_size,
4758 set_gdbarch_deprecated_register_virtual_size,
4759 set_gdbarch_deprecated_register_virtual_type,
4760 set_gdbarch_deprecated_register_bytes.
4762 set_gdbarch_num_pseudo_regs,
4763 set_gdbarch_register_type,
4764 set_gdbarch_convert_register_p,
4765 set_gdbarch_register_to_value,
4766 set_gdbarch_value_to_register,
4767 set_gdbarch_register_reggroup_p,
4768 set_gdbarch_regset_from_core_section,
4769 set_gdbarch_pseudo_register_read,
4770 set_gdbarch_pseudo_register_write,
4771 set_gdbarch_in_function_epilogue_p.
4772 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
4773 (s390_tdep_h): New variable.
4775 2004-02-17 Jim Blandy <jimb@redhat.com>
4777 * findvar.c (value_from_register): If the type has no length, just
4778 return an acceptable value --- don't report an internal error.
4780 * stabsread.c (read_type): If we find any type numbers that are
4781 forward references, complain if the references aren't resolved by
4782 the time we're finished reading.
4783 (cleanup_undefined_types): Make error message more appropriate for
4786 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
4788 * Makefile.in (defs_h): Remove dependency on progress_h.
4789 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
4791 * main.c (captured_main): Delete use of START_PROGRESS and
4794 2004-02-17 Elena Zannoni <ezannoni@redhat.com>
4796 * objfiles.c (terminate_minimal_symbol_table): Add back
4797 initialization of MSYMBOL_TYPE.
4799 2004-02-17 David Mosberger <davidm@hpl.hp.com>
4801 Committed by Andrew Cagney.
4802 * Makefile.in (ia64_tdep_h): New macro.
4803 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
4804 (ia64-tdep.o): Likewise.
4805 * ia64-tdep.h: New file.
4806 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
4807 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
4808 (ia64_aix_sigcontext_register_address): Likewise.
4809 (ia64_linux_getunwind_table): Delete declaration.
4810 * ia64-linux-tdep.c: Likewise.
4812 2004-02-17 Corinna Vinschen <vinschen@redhat.com>
4814 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
4815 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
4816 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
4818 2004-02-17 Andrew Cagney <cagney@redhat.com>
4820 * symtab.c (skip_prologue_using_sal): New function.
4821 * symtab.h (skip_prologue_using_sal): Declare.
4822 * frv-tdep.c: Include "symtab.h".
4823 (skip_prologue_using_sal): Delete function.
4824 * mips-tdep.c (skip_prologue_using_sal): Delete function.
4825 * rs6000-tdep.c (refine_prologue_limit): Mention
4826 skip_prologue_using_sal.
4827 * ia64-tdep.c (refine_prologue_limit): Ditto.
4828 * Makefile.in: Update dependencies.
4830 2004-02-16 Andrew Cagney <cagney@redhat.com>
4832 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
4833 START_INFERIOR_TRAPS_EXPECTED.
4834 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
4835 START_INFERIOR_TRAPS_EXPECTED.
4836 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
4838 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
4839 macro, moved to "nm-osf.h". Update copyright.
4840 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
4843 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
4844 and function replacing FRAMELESS_FUNCTION_INVOCATION.
4845 * blockframe.c (legacy_frameless_look_for_prologue): Rename
4846 frameless_look_for_prologue.
4847 * frame.h (legacy_frameless_look_for_prologue): Rename
4848 frameless_look_for_prologue.
4849 * gdbarch.h, gdbarch.c: Re-generate.
4850 * sh64-tdep.c (sh64_gdbarch_init): Update.
4851 * sh-tdep.c (sh_gdbarch_init): Update.
4852 * s390-tdep.c (s390_gdbarch_init): Update.
4853 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4854 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4855 * m68k-tdep.c (m68k_gdbarch_init): Update.
4856 (delta68_frame_args_address): Update.
4857 * m32r-tdep.c (m32r_gdbarch_init): Update.
4858 * hppa-tdep.c (hppa_gdbarch_init): Update.
4859 * h8300-tdep.c (h8300_gdbarch_init): Update.
4860 * frv-tdep.c (frv_gdbarch_init): Update.
4861 (frv_frameless_function_invocation): Update.
4862 * cris-tdep.c (cris_gdbarch_init): Update.
4863 (cris_frameless_function_invocation): Update.
4864 * avr-tdep.c (avr_gdbarch_init): Update.
4865 * arm-tdep.c (arm_gdbarch_init): Update.
4866 * stack.c (frame_info): Update, call predicate.
4867 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
4868 * frame.c (legacy_get_prev_frame): Update, call predicate..
4869 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
4870 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
4871 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
4873 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4874 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
4875 * vax-tdep.c (vax_gdbarch_init): Ditto.
4877 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
4880 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
4882 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
4885 2004-02-16 Andrew Cagney <cagney@redhat.com>
4887 * tui/tui-windata.c: Include "gdb_string.h".
4888 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
4889 * tui/tui-layout.c, tui/tui-command.c: Ditto.
4890 * Makefile.in: Update dependencies.
4892 2004-02-16 Daniel Jacobowitz <drow@mvista.com>
4894 * Makefile.in (infrun.o): Add $(gdb_assert_h).
4895 * infrun.c: Include "gdb_assert.h".
4896 (singlestep_ptid, saved_singlestep_ptid)
4897 (stepping_past_singlestep_breakpoint): New variables.
4898 (resume): Set singlestep_ptid. Check for singlestep thread
4900 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
4901 (handle_inferior_event): Handle singlestep thread hop.
4903 2004-02-16 Andrew Cagney <cagney@redhat.com>
4905 * dwarf2-frame.c (dwarf2_frame_ops): New function.
4906 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
4907 (dwarf2_frame_init_reg): Ditto.
4909 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
4910 suggested by Joshua Neuheisel
4912 * configure.in: Always check for curses, including pdcurses.
4913 Warn, instead of error, when no curses are found. Enable TUI when
4914 curses is available.
4915 * configure: Re-generate.
4917 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
4919 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
4920 sh_sh4_register_convert_to_virtual.
4921 (sh_register_convert_to_raw): Rename from
4922 sh_sh4_register_convert_to_raw.
4923 (sh_pseudo_register_read): Accomodate above name change.
4924 (sh_pseudo_register_write): Ditto.
4926 2004-02-16 Corinna Vinschen <vinschen@redhat.com>
4928 * sh-tdep.c (sh_generic_register_name): Remove.
4929 (sh_gdbarch_init): Use sh_sh_register_name in default case.
4931 2004-02-15 Andrew Cagney <cagney@redhat.com>
4933 * configure.in (build_warnings): Add -Wunused-function.
4934 * configure: Re-generate.
4936 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
4937 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
4939 * procfs.c (procfs_init_inferior): Assume that
4940 START_INFERIOR_TRAPS_EXPECTED is defined.
4941 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
4942 * config/ns32k/tm-nbsd.h: Delete file,
4943 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
4945 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
4946 * config/vax/tm-vax.h: Delete file.
4948 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4949 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4950 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4951 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4952 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
4953 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
4954 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
4956 2004-02-15 Mark Kettenis <kettenis@gnu.org>
4958 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
4959 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4960 (struct dwarf2_frame_ops): New.
4961 (dwarf2_frame_default_init_reg): New function, based on
4962 dwarf2_frame_init_reg.
4963 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
4964 (dwarf2_frame_init_reg): Call architecture-specific function.
4965 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
4966 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
4967 instead of dwarf2_frame_data.
4968 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
4969 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
4971 2004-02-15 Andrew Cagney <cagney@redhat.com>
4973 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
4974 register_gdbarch_swap.
4975 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
4976 * f-lang.c (_initialize_f_language): Update, use
4977 DEPRECATED_REGISTER_GDBARCH_SWAP.
4978 * remote.c (_initialize_remote): Ditto.
4979 * regcache.c (_initialize_regcache): Ditto.
4980 * parse.c (_initialize_parse): Ditto.
4981 * infrun.c (_initialize_infrun): Ditto.
4982 * mi/mi-main.c (_initialize_mi_main): Ditto.
4983 * gdbtypes.c (_initialize_gdbtypes): Ditto.
4985 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
4986 poking .cacheable directly.
4987 * symfile.c (symfile_bfd_open): Ditto.
4989 * Makefile.in: Update all dependencies.
4991 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
4992 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
4993 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
4994 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
4995 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
4997 2004-02-14 Andrew Cagney <cagney@redhat.com>
4999 * arch-utils.c (legacy_convert_register_p): Check
5000 DEPRECATED_REGISTER_CONVERTIBLE_P.
5001 * findvar.c (value_of_register): Ditto.
5003 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5004 * gdbarch.h, gdbarch.c: Re-generate.
5005 * arch-utils.c (deprecated_register_convertible_not): Delete.
5006 * arch-utils.h (deprecated_register_convertible_not): Delete.
5007 * mi/mi-main.c (get_register): Update. Update copyright.
5008 * infcmd.c (default_print_registers_info): Update.
5010 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5011 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5012 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
5013 * gdbarch.h, gdbarch.c: Re-generate.
5014 * frame.c (deprecated_get_next_frame_hack): Delete function.
5015 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5016 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5018 * infcall.c (call_function_by_hand): Update.
5020 2004-02-14 Elena Zannoni <ezannoni@redhat.com>
5022 * symfile.c (init_entry_point_info, entry_point_address): Move
5024 * objfiles.c (init_entry_point_info, entry_point_address):..to
5026 * symfile.h (init_entry_point_info, entry_point_address): Remove
5028 * objfiles.h (init_entry_point_info, entry_point_address):Add
5030 * cris-tdep.c: Remove include of symfile.h. Add include of
5033 * mcore-tdep.c: Ditto.
5034 * mn10300-tdep.c: Ditto.
5035 * sh64-tdep.c: Ditto.
5036 * v850-tdep.c: Ditto.
5037 * arm-tdep.c: Remove include of symfile.h.
5038 * blockframe.c: Ditto.
5039 * coffread.c: Ditto.
5041 * dwarf2read.c: Ditto.
5042 * dwarfread.c: Ditto.
5043 * frv-tdep.c: Ditto.
5044 * ia64-tdep.c: Ditto.
5045 * mdebugread.c: Ditto.
5046 * mipsread.c: Ditto.
5047 * rs6000-tdep.c: Ditto.
5048 * s390-tdep.c: Ditto.
5050 * xstormy16-tdep.c: Ditto.
5051 * gdbarch.sh: Remove include of symfile.h.
5052 * gdbarch.c: Regenerate.
5053 * solib-irix.c (enable_break): Use entry_point_address().
5054 Add comment about include file.
5055 * xcoffread.c: Add comment about include file.
5056 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5057 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5058 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5059 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
5060 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5062 2004-02-13 Andrew Cagney <cagney@redhat.com>
5064 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5065 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5067 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5069 2004-02-12 Fred Fish <fnf@redhat.com>
5071 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5072 set_gdbarch_store_return_value.
5074 2004-02-12 Andrew Cagney <cagney@redhat.com>
5076 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5077 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5078 (interrupt_query): Ditto.
5079 (ofunc): Delete unused variable.
5080 * cris-tdep.c (cris_abi): Delete unused function.
5081 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5082 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5083 (cris_get_asr_quick_shift_steps): Ditto.
5084 (cris_skip_prologue_frameless_p): Ditto.
5085 * arm-tdep.c (arm_push_return_address): Delete unused function.
5086 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5087 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5088 * s390-tdep.c (s390_function_start): Delete unused function.
5090 2004-02-12 Andrew Cagney <cagney@redhat.com>
5092 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5093 gdbarch.h, gdbarch.c: Re-generate.
5094 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5095 to generic_prologue_frameless_p.
5096 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5097 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5099 2004-02-11 Daniel Jacobowitz <drow@mvista.com>
5101 * mips-linux-tdep.c: Include "frame.h".
5102 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5103 (mips_linux_skip_resolver): New functions.
5104 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5105 and set_gdbarch_in_solib_call_trampoline.
5106 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5107 to after set_gdbarch_in_solib_return_trampoline. Only set the
5108 solib hooks to mips16 functions if the OS ABI is unknown.
5109 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5110 including "config/tm-linux.h".
5111 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5112 * Makefile.in (mips-linux-tdep.o): Update.
5114 2004-02-11 David Carlton <carlton@kealia.com>
5116 * linespec.c (decode_compound): Only look for a class symbol when
5117 considering all but the rightmost component.
5119 2004-02-11 Andrew Cagney <cagney@redhat.com>
5121 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5122 abi code are are separatly grouped.
5124 2004-02-11 Andrew Cagney <cagney@redhat.com>
5126 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5127 * gdbarch.h, gdbarch.c: Re-generate.
5128 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5129 * v850-tdep.c (v850_gdbarch_init): Update.
5130 * sh64-tdep.c (sh64_gdbarch_init): Update.
5131 * sh-tdep.c (sh_gdbarch_init): Update.
5132 * s390-tdep.c (s390_gdbarch_init): Update.
5133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5134 * mips-tdep.c (mips_gdbarch_init): Update.
5135 * mcore-tdep.c (mcore_gdbarch_init): Update.
5136 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5137 * m32r-tdep.c (m32r_gdbarch_init): Update.
5138 * ia64-tdep.c (ia64_gdbarch_init): Update.
5139 * hppa-tdep.c (hppa_gdbarch_init): Update.
5140 * h8300-tdep.c (h8300_gdbarch_init): Update.
5141 * frv-tdep.c (frv_gdbarch_init): Update.
5142 * d10v-tdep.c (d10v_gdbarch_init): Update.
5143 * cris-tdep.c (cris_gdbarch_init): Update.
5144 * avr-tdep.c (avr_gdbarch_init): Update.
5145 * arm-tdep.c (arm_gdbarch_init): Update.
5146 * alpha-tdep.c (alpha_gdbarch_init): Update.
5148 2004-02-11 Corinna Vinschen <vinschen@redhat.com>
5150 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5152 (sh_sh4al_dsp_register_name): Ditto.
5154 2004-02-10 Andrew Cagney <cagney@redhat.com>
5156 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5157 (mips_init_frame_pc_first): Delete function.
5158 (mips_frame_saved_pc): Delete function.
5159 (mips_frame_chain): Delete function.
5160 (mips_init_extra_frame_info): Delete function.
5161 (mips_xfer_register): Delete unused variable "reg".
5162 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5163 (mips_n32n64_return_value): Delete unused variable "reg".
5164 (mips_n32n64_return_value): Delete unused variable "pos".
5165 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5166 (mips_o32_return_value): Delete unused variable "pos".
5167 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5168 (mips_print_fp_register): Delete unused variable "namelen"
5169 (mips_print_fp_register): Delete unused variable "flt2"
5170 (get_frame_pointer): Delete function.
5171 (cached_proc_desc): Delete static variable.
5172 (mips_pop_frame): Delete function.
5173 (mips_find_saved_regs): Delete function.
5174 (mips_get_saved_register): Delete function.
5175 (mips_saved_pc_after_call): Delete function.
5176 (SIGFRAME_BASE): Delete macro.
5177 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5178 (SIGFRAME_PC_OFF): Delete macro.
5179 (SIGFRAME_REGSAVE_OFF): Delete macro.
5180 (mips_dump_tdep): Do not print deleted macro definitions.
5182 2004-02-10 Andrew Cagney <cagney@redhat.com>
5184 * Makefile.in (SFILES): Remove explictly listed tui files.
5185 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
5187 2004-02-10 Jeff Johnston <jjohnstn@redhat.com>
5189 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
5190 to use paddr functions to format ia64 addresses and long values.
5191 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
5192 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
5193 (get_kernel_table, ia64_find_proc_info_x): Ditto.
5194 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
5195 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
5197 2004-02-10 Andrew Cagney <cagney@redhat.com>
5199 * defs.h: Do not include "tui.h".
5200 * gdb_curses.h: New file.
5201 * tui/tui-hooks.h: New file.
5202 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
5203 (tui_install_hooks, tui_remove_hooks): Delete declarations.
5204 (tui_initialize_io): Delete declaration.
5205 (tui_initialize_readline: Delete redundant declaration.
5206 (struct tui_point): Delete definition.
5207 * tui/tui-data.h (struct tui_point): Define.
5208 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
5209 * utils.c: Include "tui/tui.h".
5210 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
5211 * printcmd.c [TUI]: Include "tui/tui.h".
5212 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
5213 * tui/tui-command.c: Include "gdb_curses.h".
5214 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
5215 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
5216 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
5217 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
5218 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
5219 * Makefile.in: Update all dependencies.
5220 (tui_hooks_h, gdb_curses_h): Define.
5221 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
5223 2004-02-10 Elena Zannoni <ezannoni@redhat.com>
5225 * objfiles.h (struct objfile): Remove unused fields auxf1 and
5226 auxf2. Add comments about some other rarely used fields.
5228 2004-02-10 Andrew Cagney <cagney@redhat.com>
5230 * Makefile.in (init.c): Fix script removing duplicates. Problem
5231 reported by Peter Schauer.
5233 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
5235 * bcache.c (bcache_xmalloc): Use obstack_init instead of
5236 obstack_specify_allocation.
5237 * objfiles.c (allocate_objfile): Ditto.
5238 * solib-sunos.c (solib_add_common_symbols)
5239 (allocate_rt_common_objfile): Ditto.
5240 * symfile.c (reread_symbols): Ditto.
5241 * gdb_obstack.h: Add comment.
5243 2004-02-09 Elena Zannoni <ezannoni@redhat.com>
5245 * linespec.c (decode_line_1, locate_first_half)
5246 (decode_compound, lookup_prefix_sym): Update comments. Delete old
5249 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
5251 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
5254 2004-02-09 Andrew Cagney <cagney@redhat.com>
5256 * blockframe.c (find_pc_partial_function): If find_pc_overlay
5257 fails, try find_pc_section. Fix PR c++/1267.
5258 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
5259 instead of find_pc_mapped_section.
5260 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
5261 not default to the section containing PC. Fix PR symtab/1519.
5263 2004-02-09 Andrew Cagney <cagney@redhat.com>
5265 * Makefile.in (mips-tdep.o): Update dependencies.
5266 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
5268 (mips_unwind_pc): Return the pseudo PC register.
5269 (mips_unwind_dummy_id): New function.
5270 (mips16_fetch_instruction): New function.
5271 (mips32_fetch_instruction): New function.
5272 (struct mips_frame_cache): Define.
5273 (mips_mdebug_frame_cache): New function.
5274 (mips_mdebug_frame_this_id): New function.
5275 (mips_mdebug_frame_prev_register): New function.
5276 (mips_mdebug_frame_unwind): Define.
5277 (mips_mdebug_frame_sniffer): New function.
5278 (mips_mdebug_frame_base_address): New function.
5279 (mips_mdebug_frame_base): Define.
5280 (mips_mdebug_frame_base_sniffer): New function.
5281 (mips_gdbarch_init): Append unwind and base sniffers. Set
5284 2004-02-08 Andrew Cagney <cagney@redhat.com>
5286 * frame.c: Print both the register number and name.
5288 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5289 and a sed into a single sed. Make .c and .o patterns more robust.
5291 (INIT_FILES): Replace OBS with COMMON_OBS.
5292 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5294 2004-02-08 Mark Kettenis <kettenis@gnu.org>
5296 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5297 the PT_WCOOKIE request.
5299 2004-02-08 Andrew Cagney <cagney@redhat.com>
5301 * mips-tdep.c (mips_unwind_pc): New function.
5302 (mips_gdbarch_init): Set mips_unwind_pc.
5304 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5305 (get_frame_id): Allow the UNKNOWN_FRAME.
5306 (frame_register_unwind, get_frame_type): Ditto.
5308 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5309 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5310 unwind_dummy_id indicates a legacy frame.
5312 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5313 * configure: Re-generate.
5315 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5318 2004-02-08 Andrew Cagney <cagney@redhat.com>
5320 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5322 * configure: Re-generate.
5323 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5324 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5325 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5326 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5327 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5328 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5329 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5330 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5331 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5332 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5334 2004-02-07 Andrew Cagney <cagney@redhat.com>
5336 * Makefile.in: Update all dependencies.
5338 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5339 * configure: Re-generate.
5340 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5341 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5342 (COMMON_OBS): Add "main.o" and "annotate.o".
5343 (ANNOTATE_OBS): Delete.
5344 (OBS): Remove ANNOTATE_OBS.
5345 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5347 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5348 against CONFIG_OBS and "main.o".
5349 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5350 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5352 * tui/tui-command.c: Include "gdb_string.h", delete register
5353 attribute, use ISO-C function signatures.
5354 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5355 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5356 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5359 * tui/tui-command.c: Change variable and function names to lower
5361 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5362 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5363 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5364 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5365 * tui/tui-winsource.c, tui/tui.c: Ditto.
5367 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5369 * buildsym.c (free_pending_blocks, finish_block)
5370 (record_pending_block, make_blockvector, end_symtab): Replace
5371 symbol_obstack with objfile_obstack.
5372 * coffread.c (process_coff_symbol, coff_read_struct_type)
5373 (coff_read_enum_type): Ditto.
5374 * cp-namespace.c (initialize_namespace_symtab)
5375 (check_one_possible_namespace_symbol): Ditto.
5376 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
5377 (dwarf2_symbol_mark_computed): Ditto.
5378 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5379 * elfread.c (elf_symtab_read): Ditto.
5380 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5381 (hpread_read_enum_type, hpread_read_function_type)
5382 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5384 * jv-lang.c (get_java_class_symtab, add_class_symbol)
5385 (java_link_class_type): Ditto.
5386 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
5387 (new_symbol): Ditto.
5388 * minsyms.c (install_minimal_symbols): Ditto.
5389 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5390 (terminate_minimal_symbol_table): Replace symbol_obstack with
5392 (free_objfile): Remove freeing of symbol_obstack.
5393 * objfiles.h: Remove symbol_obstack field.
5394 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5396 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5398 (solib_add_common_symbols): Replace symbol_obstack with
5400 * somsolib.c (som_solib_add): Ditto.
5401 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5402 (common_block_start, common_block_end): Ditto.
5403 * symfile.c (reread_symbols): Remove freeing and init of
5405 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5406 * symfile.h: Update comment.
5407 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
5409 * symtab.c (symbol_set_names): Replace symbol_obstack with
5411 * symtab.h (struct general_symbol_info, struct minimal_symbol):
5413 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
5414 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
5417 2004-02-07 Andrew Cagney <cagney@redhat.com>
5419 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
5420 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
5421 fields and variables.
5422 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
5423 (m_beInvisible): Delete macro.
5424 * tui/tui-data.h: Fix case case fields and variables.
5425 (m_genWinPtrIsNull): Delete macro.
5426 (tui_win_list): Rename winList.
5427 (TUI_SRC_WIN): Rename srcWin.
5428 (TUI_DISASM_WIN): Rename disassemWin.
5429 (TUI_DATA_WIN): Rename dataWin.
5430 (TUI_CMD_WIN): Rename cmdWin.
5431 (m_genWinPtrNotNull): Delete macro.
5432 (m_winPtrIsNull): Delete macro.
5433 (m_winPtrNotNull): Delete macro.
5434 (tui_win_is_source_type): Replace m_winIsSourceType
5435 (tui_win_is_auxillary): Replace m_winIsAuzillary.
5436 (tui_win_has_locator): Replace m_hasLocator.
5437 (tui_set_win_highlight): Replace m_setWinHighlightOn and
5438 m_setWinHighlightOff.
5439 * tui/tui-data.c: Update references.
5440 (tui_win_is_source_type, tui_set_win_highlight): New functions.
5441 (tui_win_has_locator, tui_win_is_auxillary): New functions.
5442 * tui/tui-command.c, tui/tui-disasm.c: Update references.
5443 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
5444 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
5445 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5446 * tui/tui-winsource.c, tui/tui.c: Ditto.
5448 2004-02-07 Mark Kettenis <kettenis@gnu.org>
5450 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
5451 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
5454 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
5455 variable `i6' to `i7'.
5456 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5458 2004-02-07 Andrew Cagney <cagney@redhat.com>
5460 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
5461 (TuiPoint, TuiPointPtr): Ditto.
5462 (TuiStatus, TuiStatusPtr): Ditto.
5463 (TuiWinType, TuiWinTypePtr): Ditto.
5464 (struct tui_point): Rename _TuiPoint.
5465 (tui_get_low_disassembly_address): Rename
5466 tuiGetLowDisassemblyAddress.
5467 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
5468 (tuiFree): Delete declaration.
5469 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
5470 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
5471 * tui/tui.c (tuiFree): Delete function.
5472 * cli/cli-cmds.c (disassemble_command): Update references.
5473 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
5474 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5475 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
5476 * tui/tui-winsource.c: Ditto.
5478 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5480 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
5481 coffstab_build_psymtabs, elfstab_build_psymtabs)
5482 (stabsect_build_psymtabs): Replace psymbol_obstack with
5484 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
5485 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
5487 * dwarfread.c (scan_compilation_units): Ditto.
5488 * elfread.c (elfstab_offset_sections): Ditto.
5489 * hppa-tdep.c (read_unwind_info): Ditto.
5490 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
5491 (hpread_end_psymtab): Ditto.
5492 * mdebugread.c (mdebug_build_psymtabs, add_pending)
5493 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
5495 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5496 * objfiles.c (add_to_objfile_sections)
5497 (build_objfile_section_table): Ditto.
5498 (allocate_objfile): Remove init of psymbol_obstack.
5499 (free_objfile): Remove freeing of psymbol_obstack.
5500 * objfiles.h (struct objfile): Remove field
5501 psymbol_obstack. Update comments.
5502 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
5503 psymbol_obstack with objfile_obstack.
5504 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5506 * somread.c (som_symfile_offsets, init_import_symbols)
5507 (init_export_symbols): Replace psymbol_obstack with
5509 * somsolib.c (som_solib_add_solib_objfile): Ditto.
5510 * symfile.c (default_symfile_offsets, syms_from_objfile)
5511 (reread_symbols): Remove freeing and init of psymbol_obstack.
5512 (cashier_psymtab): Update comment.
5513 * symmisc.c (print_objfile_statistics): Don't report stats for
5515 * symtab.h (struct general_symbol_info, struct partial_symtab):
5517 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
5518 (xcoff_symfile_offsets): Replace psymbol_obstack with
5521 2004-02-07 Elena Zannoni <ezannoni@redhat.com>
5523 * objfiles.h (struct objfile): Add objfile_obstack field.
5524 Remove type_obstack field.
5526 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
5527 read_structure_scope read_enumeration, new_symbol): Replace
5528 type_obstack with objfile_obstack.
5529 * dwarfread.c (struct_type, enum_type): Ditto.
5530 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
5531 (lookup_fundamental_type): Ditto.
5532 * gdbtypes.h (TYPE_ALLOC): Ditto.
5533 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
5534 (hpread_read_doc_function_type, hpread_read_struct_type)
5535 (fix_static_member_physnames, hpread_read_array_type)
5536 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
5537 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
5538 (java_link_class_type): Ditto.
5539 * mdebugread.c (parse_type): Ditto.
5540 * objfiles.c (allocate_objfile, free_objfile): Ditto.
5541 * solib-sunos.c (solib_add_common_symbols): Ditto.
5542 * stabsread.c (define_symbol, read_type, read_member_functions,
5543 read_cpp_abbrev, read_one_struct_field): Ditto.
5544 * symfile.c (reread_symbols): Ditto.
5545 * symmisc.c (print_objfile_statistics): Ditto.
5547 2004-02-07 Andrew Cagney <cagney@redhat.com>
5549 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
5550 (tui_exec_info_content): Rename TuiExecInfoContent.
5551 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
5552 (TuiWinInfo, TuiWinInfoPtr): Ditto.
5553 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
5554 (TuiList, TuiListPtr): Ditto.
5555 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
5556 (TuiDataType, TuiDataTypePtr): Ditto.
5557 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
5558 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
5559 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
5560 (TuiSourceElement, TuiSourceElementPtr): Ditto.
5561 (TuiDataElement, TuiDataElementPtr): Ditto.
5562 (TuiWinElement, TuiWinElementPtr): Ditto.
5563 (TuiDataInfo, TuiDataInfoPtr): Ditto.
5564 (TuiCommandElement, TuiCommandElementPtr): Ditto.
5565 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
5566 (TuiWhichElement, TuiWhichElementPtr): Ditto.
5567 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
5568 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
5569 * tui/tui-command.c, tui/tui-data.c: Update references.
5570 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
5571 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5572 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5573 * tui/tui-winsource.c, tui/tui.c: Ditto.
5575 2004-02-07 Mark Kettenis <kettenis@gnu.org>
5577 * dwarf2-frame.h: Update copyright.
5578 (enum dwarf2_frame_reg_rule): New.
5579 (struct dwarf2_frame_state_reg): New.
5580 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
5581 * dwarf2-frame.c: Update copyright.
5582 (enum dwarf2_reg_rule): Remove.
5583 (struct dwarf2_frame_state): Remove defenition of `struct
5584 dwarf2_frame_state_reg'.
5585 (read_reg): Call get_frame_arch to get the architecture instead of
5586 using CURRENT_GDBARCH.
5587 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5589 (dwarf2_frame_init_reg): New function.
5590 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5591 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
5592 initialize the register state. Prefix old `enum dwarf2_reg_rule'
5593 tags with DWARF2_FRAME_.
5594 (dwarf2_frame_prev_register): Call get_frame_arch to get the
5595 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
5596 dwarf2_reg_rule' tags with DWARF2_FRAME_.
5598 2004-02-06 Andrew Cagney <cagney@redhat.com>
5600 * tui/tui-data.h (struct tui_list): Rename _TuiList.
5601 (enum tui_data_type): Rename _TuiDataType.
5602 (struct tui_layout_def): Rename _TuiLayoutDef.
5603 (struct tui_source_element): Rename _TuiSourceElement.
5604 (struct tui_data_element): Rename _TuiDataElement.
5605 (struct tui_command_element): Rename _TuiCommandElement.
5606 (struct tui_locator_element): Rename _TuiLocatorElement.
5607 (union tui_which_element): Define.
5608 (struct tui_win_element): Rename _TuiWinElement.
5609 (struct tui_data_info): Rename _TuiDataInfo.
5610 (struct tui_source_info): Rename _TuiSourceInfo.
5611 (struct tui_command_info): Rename _TuiCommandInfo.
5612 (tui_initialize_static_data): Rename initializeStaticData.
5613 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
5614 (tui_alloc_win_info): Rename allocWinInfo.
5615 (tui_init_generic_part): Rename initGenericPart.
5616 (tui_init_win_info): Rename initWinInfo.
5617 (tui_alloc_content): Rename allocContent.
5618 (tui_add_content_elements): Rename addContentElements.
5619 (tui_init_content_element): Rename initContentElement.
5620 (tui_free_window): Rename freeWindow.
5621 (tui_free_win_content): Rename freeWinContent.
5622 (tui_free_data_content): Rename freeDataContent.
5623 (tui_free_all_source_wins_content): Rename
5624 freeAllSourceWinsContent.
5625 (tui_del_window): Rename tuiDelWindow.
5626 (tui_del_data_windows): Rename tuiDelDataWindows.
5627 (tui_partial_win_by_name): Rename partialWinByName.
5628 (tui_win_name): Rename winName.
5629 (tui_current_layout): Rename currentLayout.
5630 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
5631 (tui_term_height): Rename termHeight.
5632 (tui_set_term_height_to): Rename setTermHeightTo.
5633 (tui_term_width): Rename termWidth.
5634 (tui_set_term_width_to): Rename setTermWidthTo.
5635 (tui_set_gen_win_origin): Rename setGenWinOrigin.
5636 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
5637 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
5638 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
5639 (tui_source_windows): Rename sourceWindows.
5640 (tui_clear_source_windows): Rename clearSourceWindows.
5641 (tui_clear_source_windows_detail): Rename
5642 clearSourceWindowsDetail.
5643 (tui_clear_win_detail): Rename clearWinDetail.
5644 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
5645 (tui_default_tab_len): Rename tuiDefaultTabLen.
5646 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
5647 (tui_win_with_focus): Rename tuiWinWithFocus.
5648 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
5649 (tui_layout_def): Rename tuiLayoutDef.
5650 (tui_win_resized): Rename tuiWinResized.
5651 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
5652 (tui_next_win): Rename tuiNextWin.
5653 (tui_prev_win): Rename tuiPrevWin.
5654 (tui_add_to_source_windows): Rename addToSourceWindows.
5655 * tui/tui-winsource.c, tui/tui-win.c: Update references.
5656 * tui/tui-layout.c, tui/tui-source.c: Ditto.
5657 * tui/tui-stack.c, tui/tui-io.c: Ditto.
5658 * tui/tui.c, tui/tui-data.c: Ditto.
5659 * tui/tui-interp.c, tui/tui-data.c: Ditto.
5660 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
5662 * tui/tui-source.h: Update copyright. Include "tui-data.h".
5663 (struct symtab): Declare.
5664 (tui_set_source_content): Rename tuiSetSourceContent.
5665 (tui_show_symtab_source): Rename tuiShowSource.
5666 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
5667 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
5668 * tui/tui-source.c: Update copyright. Update references.
5669 * tui/tui-win.c, tui/tui-winsource.c: Update references.
5670 * tui/tui-stack.c: Update references.
5672 * tui/tui-win.h: Update copyright. Include "tui-data.h".
5673 (struct tui_win_info): Declare.
5674 (tui_scroll_forward): Rename tuiScrollForward.
5675 (tui_scroll_backward): Rename tuiScrollBackward.
5676 (tui_scroll_left): Rename tuiScrollLeft.
5677 (tui_scroll_right): Rename tuiScrollRight.
5678 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
5679 (tui_resize_all): Rename tuiResizeAll.
5680 (tui_refresh_all_win): Rename tuiRefreshAll.
5681 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
5682 * tui/tui-layout.c, * tui/tui-io.c: Update references.
5683 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
5684 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
5686 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
5687 (tui_erase_data_content): Rename tuiEraseDataContent.
5688 (tui_display_all_data): Rename tuiDisplayAllData.
5689 (tui_check_data_values): Rename tuiCheckDataValues.
5690 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
5691 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
5692 (tui_first_data_element_no_in_line): Rename
5693 tuiFirstDataElementNoInLine.
5694 (tui_delete_data_content_windows): Rename
5695 tuiDeleteDataContentWindows.
5696 (tui_refresh_data_win): Rename tuiRefreshDataWin.
5697 (tui_display_data_from): Rename tuiDisplayDataFrom.
5698 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
5699 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
5700 * tui/tui-win.c, tui/tui-regs.c: Update references.
5701 * tui/tui-layout.c, tui/tui.c: Update references.
5703 * tui/tui-wingeneral.h: Update copyright.
5704 (m_allBeVisible): Delete macro.
5705 (m_allBeInvisible): Delete macro.
5706 (struct tui_gen_win_info): Declare.
5707 (struct tui_win_info): Declare.
5708 (tui_unhighlight_win): Rename unhighlightWin.
5709 (tui_make_visible, tui_make_invisible): Replace makeVisible.
5710 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
5711 (tui_make_window): Rename makeWindow.
5712 (tui_copy_win): Rename copyWin.
5713 (tui_box_win): Rename boxWin.
5714 (tui_highlight_win): Rename highlightWin.
5715 (tui_check_and_display_highlight_if_needed): Rename
5716 checkAndDisplayHighlightIfNeeded.
5717 (tui_refresh_all): Rename refreshAll.
5718 (tui_delete_win): Rename tuiDelwin.
5719 (tui_refresh_win): Rename tuiRefreshWin.
5720 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
5721 (tui_make_visible, tui_make_invisible): New functions.
5722 (tui_make_all_visible, tui_make_all_invisible): New functions.
5723 (make_all_visible): Rename makeAllVisible.
5724 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
5725 * tui/tui-data.c, tui/tui-winsource.c: Update references.
5726 * tui/tui-windata.c, tui/tui-win.c: Update references.
5727 * tui/tui-regs.c, tui/tui-layout.c: Update references.
5728 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
5730 2004-02-06 Mark Kettenis <kettenis@gnu.org>
5732 * proc-api.c (write_with_trace): Initialize local variable to
5733 silence compiler warning.
5735 2004-02-06 Andrew Cagney <cagney@redhat.com>
5737 * tui/tui-source.h: Do not include "defs.h".
5738 (struct tui_win_info): Declare.
5739 (tui_set_source_content_nil): Declare.
5740 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
5741 (union tui_line_or_address): Rename _TuiLineOrAddress.
5742 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
5743 (tui_update_source_window): Rename tuiUpdateSourceWindow.
5744 (tui_update_source_window_as_is): Rename
5745 tuiUpdateSourceWindowAsIs.
5746 (tui_update_source_windows_with_addr): Rename
5747 tuiUpdateSourceWindowsWithAddr.
5748 (tui_update_source_windows_with_line): Rename
5749 tuiUpdateSourceWindowsWithLine.
5750 (tui_clear_source_content): Rename tuiClearSourceContent.
5751 (tui_erase_source_content): Rename tuiEraseSourceContent.
5752 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
5753 (tui_show_source_content): Rename tuiShowSourceContent.
5754 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
5755 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
5756 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
5757 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
5758 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
5759 (tui_update_exec_info): Rename tuiUpdateExecInfo.
5760 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
5761 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
5762 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
5763 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
5764 (struct tui_win_info): Declare.
5765 * tui/tui-stack.c: Update references.
5766 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
5767 * tui/tui-win.c, tui/tui-source.c: Ditto.
5768 * tui/tui.c, tui/tui-disasm.c: Ditto.
5770 2004-02-06 Mark Kettenis <kettenis@gnu.org>
5772 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
5773 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
5775 2004-02-05 Mark Kettenis <kettenis@gnu.org>
5777 * infrun.c (handle_inferior_event): Allow for breakpoint
5778 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
5779 and SIGEMT. Update comments.
5780 * NEWS (Revised SPARC target): Mention support for non-executable
5783 2004-02-04 Mark Kettenis <kettenis@gnu.org>
5785 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
5786 * inftarg.c: Update copyright year.
5787 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
5788 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
5789 (sparc_xfer_wcookie): New function.
5790 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5791 * Makefile.in (sparc-nat.o): Update dependencies.
5792 * config/sparc/nm-nbsd.h: Include "target.h".
5793 (NATIVE_XFER_WCOOKIE): New define.
5794 (sparc_xfer_wcookie): New prototype.
5796 2004-02-04 Andrew Cagney <cagney@redhat.com>
5798 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
5799 SYSCALL_TRAP function.
5800 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
5802 2004-02-04 Andrew Cagney <cagney@redhat.com>
5803 Daniel Jacobowitz <drow@mvista.com>
5805 * objfiles.h: Delete comments refering to inside_entry_func and
5806 DEPRECATED_FRAME_CHAIN_VALID.
5807 * defs.h (inside_entry_func): Update prototype..
5808 * blockframe.c (inside_entry_func): Rename to
5809 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
5810 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
5812 2004-02-03 Jeff Johnston <jjohnstn@redhat.com>
5814 * breakpoint.c (struct captured_parse_breakpoint_args): Move
5815 outside of #ifdef SOLIB_ADD region.
5816 (do_restore_lang_radix_cleanup): Ditto.
5817 (resolve_pending_breakpoint): Ditto.
5819 2004-02-03 Andrew Cagney <cagney@redhat.com>
5821 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
5822 (process_note_abi_tag_sections): Delete unused function.
5823 (ia64_read_fp): Delete unused function.
5824 (gdbarch_extract_struct_value_address): Delete declaration.
5826 2004-02-02 Andrew Cagney <cagney@redhat.com>
5828 * vax-tdep.c (vax_frame_chain): Delete call to
5829 deprecated_inside_entry_file.
5830 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
5832 2004-02-02 Mark Kettenis <kettenis@gnu.org>
5834 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
5835 column that's "empty" or "same value" when eliminating REG_RA
5838 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5840 * NEWS: Add information about new pending breakpoint support.
5842 2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
5844 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
5845 and pending fields for pending breakpoint support.
5846 * breakpoint.c (breakpoint_enabled): Add check for not pending.
5847 (condition_command): Only parse condition if not a pending
5849 (print_one_breakpoint): Add support for pending breakpoints.
5850 (describe_other_breakpoints): Add checks to verify we are not
5851 dealing with pending breakpoints.
5852 (check_duplicates): Don't check pending breakpoints.
5853 (set_raw_breakpoint): Initialize pending flag.
5854 (do_restore_lang_radix_cleanup): New cleanup routine.
5855 (resolve_pending_breakpoint): New function.
5856 (re_enable_breakpoints_in_shlibs): Try and resolve any
5857 pending breakpoints via resolve_pending_breakpoint.
5858 (mention): Add pending breakpoint support.
5859 (parse_breakpoint_sals): Add new parameter to pass to
5860 decode_line_1 to indicate silent errors when files or functions
5861 are not found. Change all callers.
5862 (do_captured_parse_breakpoint): New function.
5863 (break_command_1): Change prototype to return an rc value and to
5864 take an optional pending breakpoint pointer. Support creating
5865 a pending breakpoint if a "not found" form of error occurs when
5866 parsing the breakpoint. Also support resolving an existing pending
5867 breakpoint and be silent if the resolution fails.
5868 (create_breakpoints): Change prototype to take pending breakpoint
5869 pointer. When resolving a pending breakpoint, use the new pointer
5870 to provide a conditional or commands added by the end-user.
5871 (delete_breakpoint): Add appropriate check for pending.
5872 (breakpoint_re_set_one): Ditto.
5873 (do_enable_breakpoint): Ditto.
5875 2004-02-02 David Carlton <carlton@kealia.com>
5877 * valops.c (enum oload_classification): New.
5878 (find_overload_match): Break implementation into separate
5879 functions; delete #if 0'd code; look for symbols within
5881 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
5882 (find_oload_champ,oload_method_static,classify_oload_match): New.
5883 * cp-support.h: Add declaration for cp_func_name; update
5884 declaration for make_symbol_overload_list.
5885 * cp-support.c (cp_func_name): New.
5886 (overload_list_add_symbol): Fix comment, use
5887 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
5888 (make_symbol_overload_list): Take a function name and a namespace
5889 instead of a symbol; change implementation.
5890 (make_symbol_overload_list_using): New.
5891 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
5893 2004-02-02 Fred Fish <fnf@redhat.com>
5895 * main.c (gdb_stdtarg): Move definition to group with other
5896 gdb_stdtarg definitions and update copyright years.
5897 * remote-sim.c (gdb_os_write_stderr): Write output to
5898 gdb_stdtargerr stream instead of gdb_stdtarg stream.
5899 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
5900 gdb_stderr stream and update copyright years.
5902 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5904 * Makefile.in (mips-linux-nat.o): Update dependencies.
5905 * mips-linux-nat.c: Include mips-tdep.h.
5907 2004-02-01 Roland McGrath <roland@redhat.com>
5909 * sol-thread.c (sol_thread_xfer_partial): New function.
5910 (init_sol_thread_ops): Use that for to_xfer_partial hook.
5911 (init_sol_core_ops): Likewise.
5913 * procfs.c (procfs_xfer_partial): New function.
5914 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
5915 * Makefile.in (procfs.o): Add $(auxv_h) dep.
5917 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
5918 procfs_xfer_auxv function.
5920 * procfs.c (procfs_make_note_section): If we can read
5921 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
5922 * linux-proc.c (linux_make_note_section): Likewise.
5926 * Makefile.in (auxv_h): New variable.
5927 (COMMON_OBS): Add auxv.o here.
5928 (auxv.o): New target.
5930 * corelow.c (core_xfer_partial): New function.
5931 (init_core_ops): Use it for core_ops.to_xfer_partial.
5933 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
5934 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
5935 macro if that is defined.
5937 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5939 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
5940 and check the specified thread for each breakpoint.
5941 * breakpoint.h (bpstat_stop_status): Update prototype.
5942 * infrun.c (handle_inferior_event): Update calls to
5945 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5947 * Makefile.in (cli-cmds.o): Add $(readline_h).
5949 2004-02-01 Daniel Jacobowitz <drow@mvista.com>
5951 * cli/cli-cmds.c: Include readline.h.
5952 (complete_command): Pass the start of the last word to
5955 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5957 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
5958 argument, and change first argument to a CORE_ADDR.
5959 * breakpoint.h (bpstat_stop_status): Update prototype.
5960 * infrun.c (adjust_pc_after_break): Add a new comment.
5961 (handle_inferior_event): Update calls to bpstat_stop_status.
5963 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5965 * breakpoint.h: Update copyright years.
5967 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5969 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
5970 (bpstat_stop_status): Don't decrement PC.
5971 * breakpoint.h (software_breakpoint_inserted_here_p): Add
5973 * infrun.c (adjust_pc_after_break): New function.
5974 (handle_inferior_event): Call it, early. Remove later references
5975 to DECR_PC_AFTER_BREAK.
5976 (normal_stop): Add commentary.
5978 2004-01-31 Daniel Jacobowitz <drow@mvista.com>
5980 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
5981 2004-01-27 double-free fix.
5983 2004-01-31 Mark Kettenis <kettenis@gnu.org>
5985 * sparc-tdep.c (sparc_fetch_wcookie): New function.
5986 (sparc32_frame_prev_register): Handle StackGhost.
5987 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5989 2004-01-29 Roland McGrath <roland@redhat.com>
5991 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
5992 * configure: Regenerated.
5994 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
5995 * Makefile.in (procfs.o): Add dep.
5997 2004-01-28 Andrew Cagney <cagney@redhat.com>
5999 * tui/tui-stack.h: Update copyright.
6000 (struct frame_info): Add opaque declaration.
6001 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6002 (tui_show_locator_content): Rename tuiShowLocatorContent.
6003 (tui_show_frame_info): Rename tuiShowFrameInfo.
6004 * tui/tui-stack.c: Update copyright. Update references.
6005 * tui/tui-winsource.c: Update references.
6006 * tui/tui-win.c: Update references.
6007 * tui/tui-layout.c: Update references.
6008 * tui/tui-hooks.c: Update copyright, update references.
6009 * tui/tui.c: Update copyright, update references.
6010 * tui/tui-disasm.c: Update references.
6012 2004-01-28 David Carlton <carlton@kealia.com>
6014 * dwarf2read.c (add_partial_structure): Use demangled name if
6015 namespace equals "".
6017 2004-01-27 Jim Blandy <jimb@redhat.com>
6019 Clean up misapplied patch:
6020 * dwarf2read.c (determine_prefix): Change one of the two forward
6021 declarations for 'determine_prefix_aux' to a declaration for this.
6022 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6023 argument to 'die_specification'.
6025 * dwarf2read.c (read_func_scope): Re-indent comment.
6027 2004-01-27 Paul N. Hilfinger <hilfinger@gnat.com>
6029 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6030 b->exp to NULL after freeing so that error during re-parsing or
6031 evaluation of expressions associated with breakpoint don't
6032 eventually lead to re-freeing of storage.
6033 Committed by Andrew Cagney.
6035 2004-01-27 Andrew Cagney <cagney@redhat.com>
6037 * source.c (ambiguous_line_spec): Delete undefined declaration.
6038 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6039 (m32r_set_server_address, m32r_set_download_path): Ditto.
6040 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6042 2004-01-27 Daniel Jacobowitz <drow@mvista.com>
6044 * dwarf2read.c: Update calls to changed and renamed functions, and
6045 references to moved variables.
6047 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6048 language, language_defn, list_in_scope, and ftypes members.
6049 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6050 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6051 (baseaddr): Remove globals.
6053 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6054 (set_cu_language, die_is_declaration, die_specification)
6055 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6056 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6057 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6058 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6060 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6061 cu.list_in_scope. Don't initialize cu_header_offset.
6062 (add_partial_symbol): Add local baseaddr.
6063 (psymtab_to_symtab_1): Add local baseaddr. Use
6064 objfile->section_offsets for consistency. Don't initialize
6065 cu_header_offset; do initialize cu.header.offset and
6067 (read_file_scope, read_func_scope, read_lexical_block_scope)
6068 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6070 2004-01-27 Michael Chastain <mec.gnu@mindspring.com>
6072 * PROBLEMS: Add gdb/1516.
6074 2003-12-29 Robert Millan <robertmh@gnu.org>
6076 Patch committed by Andrw Cagney.
6077 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6078 * configure.tgt: Match knetbsd*-gnu.
6080 2004-01-26 Andrew Cagney <cagney@redhat.com>
6082 * breakpoint.c (catch_command_1): Delete #ifdef code.
6083 (catch_fork_command_1): Delete #ifdef wrapper.
6084 (catch_exec_command_1): Ditto.
6085 (catch_load_command_1): Ditto.
6086 (catch_unload_command_1): Ditto.
6088 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6089 (catch_breakpoint): Delete #if0ed function.
6090 (disable_catch_breakpoint): Ditto.
6091 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6092 (disable_catch, enable_catch, delete_catch): Ditto.
6094 2004-01-26 Andrew Cagney <cagney@redhat.com>
6096 * remote.c (echo_check, quit_flag): Delete variables.
6097 (cisco_kernel_mode): Delete variable.
6098 (minitelnet_return, tty_input, escape_count): Delete variables.
6099 (remote_cisco_mode): Delete variable.
6100 (remote_cisco_open, remote_cisco_close): Delete function.
6101 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6102 (init_remote_cisco_ops): Delete function.
6103 (_initialize_remote): Do not install "remote cisco" code.
6104 (read_frame): Delete cisco specific code.
6105 (remote_info_process): Delete function.
6106 (remote_wait): Delete cisco specific code.
6107 (remote_cisco_section_offsets): Delete function.
6108 (remote_cisco_objfile_relocate): Delete function.
6109 (remote_async_wait): Delete cisco specific code.
6110 (minitelnet, readtty, readsocket): Delete function.
6112 2004-01-26 Andrew Cagney <cagney@redhat.com>
6114 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6115 comments mentioning extract_returned_value_address.
6116 * infcmd.c (print_return_value): Update. Add comments on
6117 extract_returned_value_address.
6118 * stack.c (return_command): Add comments on
6119 extract_returned_value_address.
6120 * values.c: Update comment.
6121 * m32r-tdep.c: Update comment.
6122 * sparc-tdep.c: Update comment.
6123 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6125 * sh64-tdep.c (sh64_gdbarch_init): Update.
6126 * sh-tdep.c (sh_gdbarch_init): Update.
6127 * s390-tdep.c (s390_gdbarch_init): Update.
6128 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6129 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6130 * m68k-tdep.c (m68k_gdbarch_init): Update.
6131 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6132 * m32r-tdep.c (m32r_gdbarch_init): Update.
6133 * ia64-tdep.c (ia64_gdbarch_init): Update.
6134 * h8300-tdep.c (h8300_gdbarch_init): Update.
6135 * frv-tdep.c (frv_gdbarch_init): Update.
6136 * arm-tdep.c (arm_gdbarch_init): Update.
6137 * alpha-tdep.c (alpha_gdbarch_init): Update.
6139 2004-01-26 Andrew Cagney <cagney@redhat.com>
6141 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6142 SYMBOL_LOCATION_FUNCS
6143 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6144 "struct symbol_ops".
6145 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6146 type to "struct symbol_ops".
6147 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6148 (struct symbol): Replace ".aux_value.loc.funcs" and
6149 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6150 (SYMBOL_OBJFILE): Delete macro.
6151 (SYMBOL_LOCATION_FUNCS): Delete macro.
6152 (SYMBOL_LOCATION_BATON): Update.
6153 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6154 intead of SYMBOL_LOCATION_FUNCS.
6155 * ax-gdb.c (gen_var_ref): Ditto.
6156 * printcmd.c (address_info): Ditto.
6157 * findvar.c (read_var_value): Ditto.
6158 (symbol_read_needs_frame): Ditto.
6160 2004-01-26 Andrew Cagney <cagney@redhat.com>
6162 * dwarf2read.c (read_func_scope): Document frame-base hack.
6164 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6166 * infcmd.c (print_return_value): Plug memory leak; delete
6167 ui_stream object. Rename argument `structure_return' to
6170 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6172 * infcmd.c (print_return_value): Wrap long lines.
6173 (finish_command_continuation, finish_command): Remove unused
6174 variable `funcaddr'. Fix some coding-standards problems.
6176 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
6177 SECT_SIZE is large enough, not whether it's exactly the right size.
6178 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6179 TDEP->fpregset to zero.
6181 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
6182 floating-point registers for traditional NetBSD core files.
6183 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
6184 TDEP->sizeof_fpregset here.
6186 2004-01-25 Mark Kettenis <kettenis@gnu.org>
6188 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
6189 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
6190 function with code split out from
6191 sparc32nbsd_sigcontext_frame_cache.
6192 (sparc32nbsd_sigcontext_frame_cache): Use
6193 sparc32nbsd_sigcontext_saved_regs.
6194 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
6196 * sparcobsd-tdep.c: New file.
6197 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
6198 (sparcobsd-tdep.o): New dependency.
6199 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
6200 * config/sparc/obsd.mt: New file.
6202 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
6203 TDEP->fpregset to be initialized to enable core file register
6206 2004-01-24 Mark Kettenis <kettenis@gnu.org>
6208 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
6209 Add opaque declarations.
6210 (sparc64nbsd_sigcontext_saved_regs): New prototype.
6211 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
6212 function with code split out from
6213 sparc64nbsd_sigcontext_frame_cache.
6214 (sparc64nbsd_sigcontext_frame_cache): Use
6215 sparc64nbsd_sigcontext_saved_regs.
6216 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
6218 * sparc64obsd-tdep.c: New file.
6219 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
6220 (sparc64obsd-tdep.o): New dependency.
6221 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
6222 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
6223 * config/sparc/obsd64.mt: New file.
6225 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
6226 read the instruction at PC.
6228 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
6229 value of GDB_OSABI_DEFAULT.
6230 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
6231 instead of GDB_OSABI_NETBSD_AOUT.
6233 2004-01-24 Nick Roberts <nick@nick.uklinux.net>
6235 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
6238 2004-01-23 Andrew Cagney <cagney@redhat.com>
6240 * printcmd.c (display_command): Replace tui_set_display call with
6241 tui_set_layout_for_display_command.
6242 * tui/tui.h (enum tui_win_type): Define.
6243 (tui_set_layout): Delete declaration.
6244 (tui_set_layout_for_display_command): Rename set_tui_layout.
6245 * tui/tui-data.h (enum tui_layout_type): Define.
6246 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
6248 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
6249 (tui_default_win_height): Rename tuiDefaultWinHeight.
6250 (tui_default_win_viewport_height): Rename
6251 tuiDefaultWinViewportHeight.
6252 (tui_set_layout): RenametuiSetLayout.
6253 * tui/tui-layout.c: Update references.
6254 * tui/tui.c: Update references.
6255 * tui/tui-disasm.c: Update references.
6257 2004-01-23 David Carlton <carlton@kealia.com>
6259 Partial workaround for PR c++/1511:
6260 * cp-namespace.c: Include frame.h.
6261 (cp_lookup_transparent_type): New
6262 (cp_lookup_transparent_type_loop): New.
6263 * cp-support.h: Declare cp_lookup_transparent_type.
6264 * symtab.c (basic_lookup_transparent_type): Renamed from
6265 lookup_transparent_type.
6266 (lookup_transparent_type): Replace old body by a call to
6267 current_language->la_lookup_transparent_type.
6268 * symtab.h: Update copyright. Declare
6269 basic_lookup_transparent_type.
6270 * language.h: Update copyright.
6271 (struct language_defn): Add la_lookup_transparent_type.
6272 * language.c: Update copyright.
6273 (unknown_language_defn): Add basic_lookup_transparent_type.
6274 (auto_language_defn): Add basic_lookup_transparent_type.
6275 (local_language_defn): Add basic_lookup_transparent_type.
6276 * ada-lang.c: Update copyright.
6277 (ada_language_defn): Add basic_lookup_transparent_type.
6278 * c-lang.c: Update copyright.
6279 (c_language_defn): Add basic_lookup_transparent_type.
6280 (cplus_language_defn): Add basic_lookup_transparent_type.
6281 (asm_language_defn): Add basic_lookup_transparent_type.
6282 (minimal_language_defn): Add basic_lookup_transparent_type.
6283 * f-lang.c: Update copyright.
6284 (f_language_defn): Add basic_lookup_transparent_type.
6285 * jv-lang.c: Update copyright.
6286 (java_language_defn): Add basic_lookup_transparent_type.
6287 * m2-lang.c: Update copyright.
6288 (m2_language_defn): Add basic_lookup_transparent_type.
6289 * objc-lang.c: Update copyright.
6290 (objc_language_defn): Add basic_lookup_transparent_type.
6291 * p-lang.c: Update copyright.
6292 (p_language_defn): Add basic_lookup_transparent_type.
6293 * scm-lang.c: Update copyright.
6294 (scm_language_defn): Add basic_lookup_transparent_type.
6295 * Makefile.in (cp-namespace.o): Depend on frame.h.
6297 2004-01-23 David Carlton <carlton@kealia.com>
6299 Patch for PR c++/1520:
6300 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6301 properly if we have a specification die.
6302 (determine_prefix_aux): Rename from determine_prefix.
6303 (determine_prefix): Like the old determine_prefix, but never
6306 2004-01-23 Theodore A. Roth <troth@openavr.org>
6308 * avr-tdep.c: Update copyright.
6309 (avr_iaddr_p): Delete unused function.
6310 (avr_saddr_p): Delete unused function.
6312 2004-01-23 David Carlton <carlton@kealia.com>
6314 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6315 Fix for PR symtab/1534.
6317 2004-01-23 Mark Kettenis <kettenis@gnu.org>
6319 * NEWS (New native configurations): Mention OpenBSD/sparc and
6321 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6322 * configure.host: Likewise.
6323 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6324 handler for OpenBSD.
6325 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6327 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6329 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6330 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6332 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6333 * cli/cli-cmds.c (shell_escape): Likewise.
6335 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6336 OpenBSD .note.openbsd.ident sections.
6338 2004-01-22 David Carlton <carlton@kealia.com>
6340 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6341 get_scope_pc_bounds.
6342 (read_file_scope): Ditto.
6343 (get_scope_pc_bounds): New function, produced by extracting code
6344 from the above two functions, consolidating it, and adding support
6345 for DW_TAG_namespace.
6347 2004-01-22 Mark Kettenis <kettenis@gnu.org>
6349 * osabi.c (MAX_NOTESZ): New define.
6350 (check_note): New function.
6351 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6354 2004-01-21 Roland McGrath <roland@redhat.com>
6356 * MAINTAINERS (write after approval): Add myself.
6358 2004-01-21 Eli Zaretskii <eliz@gnu.org>
6360 * utils.c (init_page_info): Move declarations of `rows' and
6361 `cols' before the __GO32__-specific code. Move the closing brace
6362 outside the #ifdef __GO32__..#endif block.
6363 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6365 2004-01-21 Paul Brook <paul@codesourcery.com>
6367 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6368 BPSTAT_WHAT_CHECK_SHLIBS.
6370 2004-01-21 Paul Brook <paul@codesourcery.com>
6372 * MAINTAINERS: Add myself to write-after-approval.
6374 2004-01-20 Andrew Cagney <cagney@redhat.com>
6376 * ax-gdb.c (print_axs_value): Delete unused function.
6377 * jv-lang.c (java_lookup_type): Delete unused function.
6378 * cli/cli-dump.c (dump_filetype): Delete unused function.
6379 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6380 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6381 (mips_getstring): Delete unused function.
6382 (pmon_insert_breakpoint): Delete #if0ed function.
6383 (PMON_MAX_BP): Delete #if0ed MACRO.
6384 (mips_pmon_bp_info): Delete #if0ed variable.
6385 (pmon_remove_breakpoint): Delete #if0ed function.
6386 * monitor.c (monitor_write_even_block): Delete unused function.
6387 (monitor_write_memory_block): Delete #if0ed code.
6388 * dink32-rom.c (dink32_load): Delete unused function.
6389 (_initialize_dink32_rom): Delete #if0ed code.
6390 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6392 * tui/tui-command.c: Update references.
6393 * tui/tui-io.c: Update references.
6394 * tui/tui-command.h: Update copyright.
6395 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6397 * source.c (ambiguous_line_spec): Delete never-defined function.
6398 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6399 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6400 * cli/cli-cmds.c (validate_comname): Ditto.
6402 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6404 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6405 (tui_show_disassem): Rename tuiShowDisassem.
6406 (tui_show_disassem_and_update_source): Rename
6407 tuiVerticalDisassemScroll.
6408 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
6409 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
6410 * tui/tui.h: Update copyright.
6411 (enum tui_status): Define.
6412 * tui/tui-data.h (enum tui_scroll_direction): Define.
6413 * tui/tui-disasm.c: Update copyright. Update references.
6414 * tui/tui-winsource.c: Update copyright. Update references.
6415 * tui/tui-win.c: Update references.
6416 * tui/tui-layout.c: Update references.
6418 2004-01-20 Andrew Cagney <cagney@redhat.com>
6420 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
6421 sym2 to start of block.
6423 2004-01-19 Michael Chastain <mec.gnu@mindspring.com>
6425 * MAINTAINERS: Delete mmalloc.
6426 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
6427 * NEWS: Mention removal of --with-malloc.
6428 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
6429 * config.in: Regenerate.
6430 * configure: Regenerate.
6431 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
6432 USE_MMALLOC, MMCHECK_FORCE.
6433 * gdbinit.in: Remove mmalloc.
6434 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
6435 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
6436 * config/i386/go32.mh: Likewise.
6437 * config/i386/interix.mh: Likewise.
6438 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
6440 2004-01-19 Jeff Johnston <jjohnstn@redhat.com>
6442 * linespec.c (decode_variable, symtab_from_filename): Call
6443 error_silent with error message instead of throwing an exception
6445 * defs.h (error_silent, error_output_message): Add prototypes.
6446 (catch_exceptions_with_msg): Ditto.
6447 * utils.c (error_silent, error_output_message): New functions.
6448 * top.c (catch_exceptions_with_msg): New function.
6450 2004-01-20 Nick Roberts <nick@nick.uklinux.net>
6452 * mi/mi-cmds.h (enum print_values): Add definition.
6454 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
6455 type and value for simple data types and just the name and type
6456 for complex ones, if required.
6458 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
6459 children, if required.
6461 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6463 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
6464 unused declarations.
6466 2004-01-19 Andrew Cagney <cagney@redhat.com>
6468 * top.h (mapped_symbol_files): Delete declaration.
6469 * main.c (captured_main): Delete option "m" and "mapped".
6470 * objfiles.c (mapped_symbol_files): Delete variable.
6471 * symfile.c (symbol_file_command): Delete mmap code.
6472 (symbol_file_add_with_addrs_or_offsets): Ditto.
6473 (add_symbol_file_command, reread_separate_symbols): Ditto.
6474 * objfiles.h (OBJF_MAPPED): Delete.
6475 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
6476 (free_objfile) [USE_MMALLOC]: Ditto.
6477 (open_existing_mapped_file): Delete function.
6478 (open_mapped_file): Delete function.
6479 (map_to_file): Delete function.
6481 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6483 * infrun.c (step_into_function): Account for possible breakpoint
6484 adjustment when computing ``stop_func_start''.
6486 2004-01-19 Kevin Buettner <kevinb@redhat.com>
6488 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
6489 the region size against the size of a pointer, not the size of
6490 a register as given by DEPRECATED_REGISTER_SIZE.
6492 2004-01-19 Andrew Cagney <cagney@redhat.com>
6494 * tui/tui-regs.h: Include "tui-data.h".
6495 (tuiFirstRegElementNoInLine): Delete declaration.
6496 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
6497 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
6498 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
6499 (tui_calculate_regs_column_count): Rename
6500 tuiCalculateRegsColumnCount.
6501 (tui_check_register_values): Rename tuiCheckRegisterValues.
6502 (tui_show_registers): Rename tuiShowRegisters.
6503 (tui_display_registers_from_line): Rename
6504 tuiDisplayRegistersFromLine.
6505 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
6506 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
6507 (tui_first_reg_element_no_inline): Rename
6508 tuiFirstRegElementNoInLine.
6509 * tui/tui-data.h: Update copyright.
6510 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
6511 * tui/tui-windata.c: Update copyright, update references.
6512 * tui/tui-regs.c: Update copyright, update references.
6513 * tui/tui-win.c: Update copyright, update references.
6514 * tui/tui-layout.c: Update copyright, update references.
6516 2004-01-18 Andrew Cagney <cagney@redhat.com>
6518 * tui/tui-io.c: Update copyright.
6519 (key_is_end_sequence, key_is_backspace): New functions.
6520 (key_is_command_char, key_is_start_sequence): New function.
6521 (tui_getc): Update references.
6522 * tui/tui-io.h: Update copyright.
6523 (m_tuiStartNewLine): Delete macro.
6524 (m_isBackspace, m_isDeleteChar): Delete macros.
6525 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
6526 (m_isNextPage, m_isPrevPage): Delete macros.
6527 (m_isLeftArrow, m_isRightArrow): Delete macros.
6528 (m_isXdbStyleCommandChar): Delete macro.
6529 (key_is_start_sequence): Declare, replace m_isStartSequence.
6530 (key_is_end_sequence): Declare, replace m_isEndSequence.
6531 (key_is_backspace): Declare ,replace m_isBackspace.
6532 (key_is_command_char): Declare, replace m_isCommandChar.
6533 * tui/tui-command.c: Update copyright.
6534 (tuiDispatchCtrlChar): Update references.
6536 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
6539 * tui/tui-command.c: Rename tui/tuiCommand.c.
6540 * tui/tui-command.h: Rename tui/tuiCommand.h.
6541 * tui/tui-data.c: Rename tui/tuiData.c.
6542 * tui/tui-data.h: Rename tui/tuiData.h.
6543 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
6544 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
6545 * tui/tui-io.c: Rename tui/tuiIO.c.
6546 * tui/tui-io.h: Rename tui/tuiIO.h.
6547 * tui/tui-layout.c: Rename tui/tuiLayout.c.
6548 * tui/tui-layout.h: Rename tui/tuiLayout.h.
6549 * tui/tui-regs.c: Rename tui/tuiRegs.c.
6550 * tui/tui-regs.h: Rename tui/tuiRegs.h.
6551 * tui/tui-source.c: Rename tui/tuiSource.c.
6552 * tui/tui-source.h: Rename tui/tuiSource.h.
6553 * tui/tui-stack.c: Rename tui/tuiStack.c.
6554 * tui/tui-stack.h: Rename tui/tuiStack.h.
6555 * tui/tui-win.c: Rename tui/tuiWin.c.
6556 * tui/tui-win.h: Rename tui/tuiWin.h.
6557 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
6558 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
6559 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
6560 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
6561 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
6562 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
6563 * tui/tui-file.c: Update includes.
6564 * tui/tui-hooks.c: Update includes.
6565 * tui/tui-interp.c: Update includes.
6566 * tui/tui.c: Update includes.
6567 * Makefile.in: Update all tui/ dependencies.
6568 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
6570 * Makefile.in: Update copyright. Update dependencies.
6572 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
6575 2004-01-18 Andrew Cagney <cagney@redhat.com>
6577 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
6578 instead of register_gdbarch_init.
6580 * remote-sds.c (tohex): Delete unused function. Update copyright.
6581 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
6582 * v850-tdep.c (v850_register_virtual_size): Ditto.
6583 * target.c (normal_target_post_startup_inferior): Ditto.
6584 * source.c (ambiguous_line_spec): Ditto.
6585 * remote.c (adapt_remote_get_threadinfo): Ditto.
6586 * mi/mi-out.c (out_field_fmt): Ditto.
6587 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6588 (output_control_change_notification): Ditto.
6589 * m68k-tdep.c (m68k_register_byte): Ditto.
6590 (m68k_remote_breakpoint_from_pc): Ditto.
6591 * ui-out.c (init_ui_out_state): Delete unused declaration.
6592 * stabsread.c (search_value): Ditto.
6593 * mi/mi-cmd-env.c (env_cli_command): Ditto.
6594 * maint.c (print_section_table): Ditto.
6595 * infrun.c (set_follow_fork_mode_command): Ditto.
6597 2004-01-18 Mark Kettenis <kettenis@gnu.org>
6599 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6600 DW_CFA_def_cfa_exporession. Add support for
6601 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6602 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
6604 2004-01-18 Andrew Cagney <cagney@redhat.com>
6606 * ocd.c: Update copyright.
6607 (bdm_read_register_command): Delete unused function.
6608 (_initialize_remote_ocd): Delete commented out reference.
6609 (get_quoted_char, reset_packet): Delete #if0ed function.
6610 (output_packet, put_quoted_char): Delete #if0ed function.
6611 (stu_put_packet, stu_get_packet): Delete #if0ed function.
6612 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
6613 (BDM_BREAKPOINT): Delete #if0ed macro.
6614 (remote_timeout): Delete #if0ed variable.
6616 2004-01-18 Mark Kettenis <kettenis@gnu.org>
6618 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
6619 (core-sol2.o): Remove dependency.
6620 * core-sol2.c: Remove file.
6622 2004-01-17 Andrew Cagney <cagney@redhat.com>
6624 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
6625 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
6628 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6630 * remote.c: Update copyright years.
6632 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6634 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
6636 2004-01-17 Andrew Cagney <cagney@redhat.com>
6638 * mdebugread.c: Update copyright.
6639 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
6640 (parse_type, parse_procedure): Ditto.
6641 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
6643 * cris-tdep.c (cris_store_struct_return): Put back accidently
6646 * gdbarch.sh: Update copyright year.
6647 * gdbarch.h, gdbarch.c: Re-generate.
6649 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6651 Suggested by George Anzinger.
6652 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
6653 correct stack offset. Include unknown opcode numbers in the error
6656 2004-01-17 Andrew Cagney <cagney@redhat.com>
6658 * x86-64-tdep.c (x86_64_init_abi): No need to clear
6659 extract_struct_value_address, i386 does not set it.
6660 * sparc64-tdep.c (sparc64_init_abi): Do not set
6661 extract_struct_value_address, never called.
6662 (sparc64_extract_struct_value_address): Delete function.
6663 * m68hc11-tdep.c: Update copyright.
6664 (m68hc11_gdbarch_init): Delete redundant assignment of
6665 extract_struct_value_address.
6666 * i386-tdep.c: Update copyright.
6667 (i386_gdbarch_init): Do not set extract_struct_value_address,
6669 (i386_extract_struct_value_address): Delete function.
6670 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
6671 extract_struct_value_address, never called.
6672 (sparc32_extract_struct_value_address): #if 0 function. Add
6673 comments explaining its future.
6675 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6677 * arm-tdep.c (arm_write_pc): New function.
6678 (arm_gdbarch_init): Call set_gdbarch_write_pc.
6680 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
6682 * breakpoint.c (must_shift_inst_regs): Delete.
6683 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
6684 and SHIFT_INST_REGS.
6685 * infcmd.c (step_1, step_1_continuation): Delete references to
6687 * infrun.c (keep_going): Likewise.
6688 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
6689 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
6691 2004-01-17 Andrew Cagney <cagney@redhat.com>
6693 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
6694 * gdbarch.h, gdbarch.c: Re-generate.
6695 * infcmd.c (print_return_value): Delete reference to
6696 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6698 * cris-tdep.c (cris_gdbarch_init): Do not set
6699 deprecated_extract_struct_value_address.
6701 * xstormy16-tdep.c: Update copyright.
6702 (xstormy16_extract_struct_value_address): Update to current
6703 extract struct value address interface.
6704 (xstormy16_gdbarch_init): Set extract_struct_value_address.
6705 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
6706 current extract struct value address interface.
6707 (sh64_gdbarch_init): Set extract_struct_value_address.
6709 * cris-tdep.c: Update copyright.
6710 (cris_extract_struct_value_address): Delete function.
6711 (struct_return_address): Delete variable.
6712 (cris_store_struct_return): Do not set struct_return_address.
6714 * mcore-tdep.c: Update copyright.
6715 (mcore_extract_struct_value_address): Delete function. Update
6717 (mcore_gdbarch_init): Update.
6718 * mn10300-tdep.c: Update copyright.
6719 (mn10300_extract_struct_value_address): Delete function.
6720 (mn10300_gdbarch_init): Update.
6721 * v850-tdep.c: Update copyright.
6722 (v850_extract_struct_value_address): Delete.
6723 (v850_gdbarch_init): Update.
6724 * ns32k-tdep.c: Update copyright.
6725 (ns32k_extract_struct_value_address): Delete.
6726 (ns32k_gdbarch_init): Update.
6727 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
6728 (hppa_gdbarch_init): Update.
6729 * vax-tdep.c: Update copyright.
6730 (vax_extract_struct_value_address): Delete.
6731 (vax_gdbarch_init): Update.
6733 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
6734 * gdbarch.h, gdbarch.c: Re-generate.
6735 * procfs.c (procfs_fetch_registers): Delete reference to
6736 DEPRECATED_NPC_REGNUM.
6737 (procfs_store_registers): Ditto.
6738 * regcache.c (generic_target_write_pc): Simplify.
6739 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
6741 * core-sol2.c (fetch_core_registers): Replace
6742 DEPRECATED_NPC_REGNUM with equivalent tdep value.
6744 * hppa-tdep.c: Update copyright year.
6745 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
6747 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
6749 * mips-tdep.c (mips_write_pc): New function.
6750 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
6751 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
6752 (mips_find_saved_regs, mips_software_single_step: Ditto.
6753 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
6754 mips_init_extra_frame_info, mips_pop_frame): Ditto.
6756 2004-01-17 Andrew Cagney <cagney@redhat.com>
6758 * mips-tdep.c: Re-indent. Group functions by ABI.
6760 2004-01-17 Andrew Cagney <cagney@redhat.com>
6762 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
6763 * gdbarch.c: Re-generate.
6764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6765 DECR_PC_AFTER_BREAK to zero.
6766 * vax-tdep.c (vax_gdbarch_init): Ditto.
6767 * v850-tdep.c (v850_gdbarch_init): Ditto.
6768 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6769 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6770 * sh-tdep.c (sh_gdbarch_init): Ditto.
6771 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6772 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6773 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6774 * mips-tdep.c (mips_gdbarch_init): Ditto.
6775 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6776 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6777 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6778 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6779 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
6780 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6781 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6782 * frv-tdep.c (frv_gdbarch_init): Ditto.
6783 * cris-tdep.c (cris_gdbarch_init): Ditto.
6784 * avr-tdep.c (avr_gdbarch_init): Ditto.
6785 * arm-tdep.c (arm_gdbarch_init): Ditto.
6786 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
6788 2004-01-17 J. Brobecker <brobecker@gnat.com>
6790 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
6791 Delete, no longer used.
6792 (read_subrange_type): New function, mostly extracted from
6794 (read_array_type): Replace extracted code by call to
6795 read_subrange_type().
6796 (dwarf2_get_attr_constant_value): New function.
6797 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
6798 (add_partial_symbol): Likewise.
6799 (process_die): Likewise.
6800 (new_symbol): Likewise.
6801 (read_type_die): Likewise.
6803 2004-01-16 Andrew Cagney <cagney@redhat.com>
6805 * symfile.c: Update copyright year.
6806 (compare_symbols): Delete unused function.
6807 * stabsread.c: Update copyright year.
6808 (lrs_general_complaint): Delete unused function.
6809 (ref_search_value): Ditto.
6810 (get_substring): Delete declaration.
6811 * sh64-tdep.c: Update copyright year.
6812 (sh64_get_gdb_regnum): Delete unused function.
6813 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
6814 Delete unused function.
6816 2004-01-17 Mark Kettenis <kettenis@gnu.org>
6818 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
6819 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
6821 2004-01-16 Andrew Cagney <cagney@redhat.com>
6823 Changes from Peter Schauer.
6824 * rs6000-tdep.c: Update copyright year.
6825 (rs6000_push_dummy_call): Update the stack pointer before
6826 accessing the corresponding stack region.
6827 * rs6000-nat.c: Update copyright year.
6828 (set_host_arch): Set "info.abfd" to "exec_bfd".
6830 2004-01-15 Mark Kettenis <kettenis@gnu.org>
6832 * blockframe.c: Update copyright year.
6833 (inside_entry_func): Don't treat a zero PC specially.
6835 2004-01-14 Elena Zannoni <ezannoni@redhat.com>
6837 * gcore.c (gcore_copy_callback): Use paddr_d to print size
6839 (gcore_create_callback): Ditto. Skip any memory segment that has
6842 2004-01-14 David Carlton <carlton@kealia.com>
6844 Change symbols for C++ nested types to contain the fully qualified
6845 name, if possible. (At least in the DWARF-2 case.) Partial fix
6846 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
6848 * c-exp.y (qualified_type): Handle types nested within classes.
6849 * cp-namespace.c: Update comments.
6850 (cp_set_block_scope): Delete #if 0.
6851 (cp_lookup_nested_type): Handle types nested within classes.
6852 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
6854 (add_partial_symbol): Add the name of the enclosing namespace to
6856 (pdi_needs_namespace): New.
6857 (add_partial_namespace): Tweak comment.
6858 (add_partial_structure): New.
6859 (psymtab_to_symtab_1): Initialize processing_current_prefix
6861 (process_die): instead of here.
6862 (read_structure_scope): Try to figure out the name of the class or
6863 namespace that the structure might be defined within.
6864 (read_enumeration): Generate fully-qualified names, if possible.
6865 (read_namespace): Don't set name to NULL.
6866 (die_specification): New.
6867 (new_symbol): Generate fully-qualified names for types.
6868 (read_type_die): Determine appropriate prefix.
6869 (determine_prefix): New.
6870 (typename_concat): New.
6872 * valops.c (value_aggregate_elt): Pass NOSIDE to
6873 value_struct_elt_for_reference.
6874 (value_struct_elt_for_reference): Make static, add NOSIDE
6875 parameter, call value_maybe_namespace_elt as a last resort.
6876 (value_namespace_elt): Break out code into
6877 value_maybe_namespace_elt.
6878 (value_maybe_namespace_elt): New.
6880 2004-01-12 Andrew Cagney <cagney@redhat.com>
6882 * mips-tdep.c (mips_convert_register_p): Handle both raw and
6883 cooked floating-point registers.
6884 (mips_gdbarch_init): Set convert_register_p, register_to_value,
6885 and value_to_register.
6887 2004-01-13 Andrew Cagney <cagney@redhat.com>
6889 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
6890 * gdbarch.c: Re-generate.
6891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6892 FUNCTION_START_OFFSET.
6893 * v850-tdep.c (v850_gdbarch_init): Ditto.
6894 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
6895 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
6896 * sh-tdep.c (sh_gdbarch_init): Ditto.
6897 * s390-tdep.c (s390_gdbarch_init): Ditto.
6898 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6899 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6900 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6901 * mips-tdep.c (mips_gdbarch_init): Ditto.
6902 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6903 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6905 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
6906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6907 * i386-tdep.c (i386_gdbarch_init): Ditto.
6908 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6909 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6910 * frv-tdep.c (frv_gdbarch_init): Ditto.
6911 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6912 * cris-tdep.c (cris_gdbarch_init): Ditto.
6913 * avr-tdep.c (avr_gdbarch_init): Ditto.
6914 * arm-tdep.c (arm_gdbarch_init): Ditto.
6915 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6917 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
6919 * infrun.c (follow_fork_mode_ask): Remove.
6920 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
6921 (follow_fork): Simplify and remove internal error for
6922 follow_fork_mode_ask.
6923 (_initialize_infrun): Update "set follow-fork-mode" help text.
6925 2004-01-13 Andrew Cagney <cagney@redhat.com>
6927 * configure.in: Update copyright year.
6928 (build_warnings): Add -Wunused-label.
6929 * configure: Re-generate.
6931 2004-01-12 Andrew Cagney <cagney@redhat.com>
6933 * exec.h (exec_ops): Make "extern".
6935 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
6936 the function is void.
6937 (mips_pseudo_register_write): Ditto.
6939 2004-01-12 Andrew Cagney <cagney@redhat.com>
6941 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
6942 call. Never defined.
6943 * sparc-tdep.h (struct frame_info): Add opaque declaration.
6944 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
6945 (struct sparc_gregset, struct regcache): Ditto.
6946 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
6948 2004-01-12 Andrew Cagney <cagney@redhat.com>
6950 * mi/ChangeLog: Delete file. Renamed to ...
6951 * mi/ChangeLog-1999-2003: New file.
6952 * tui/ChangeLog: Delete file. Renamed to ...
6953 * tui/ChangeLog-1998-2003: New file.
6955 2004-01-11 Mark Kettenis <kettenis@gnu.org>
6957 * sparc64nbsd-tdep.c: Include "regset.h".
6958 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
6960 (fetch_core_registers): Remove function.
6961 (sparc64nbsd_core_fns): Remove variable.
6962 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
6964 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
6965 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6966 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
6968 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
6969 sparc_extract_struct_value_address.
6970 (sparc32_gdbarch_init): Set extract_struct_value_address.
6971 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
6973 (sparc64_init_abi): Set extract_struct_value_address. Don't set
6974 return_value_on_stack.
6976 * NEWS: Mention that %cs and %ss have been added to the AMD64
6979 * frame.c: Update copyright year.
6980 (get_prev_frame): Improve comment.
6982 * sparc64fbsd-tdep.c: Include "regset.h".
6983 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
6985 (fetch_core_registers): Remove function.
6986 (sparc64fbsd_core_fns): Remove variable.
6987 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
6989 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
6990 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
6991 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
6993 * sparcnbsd-tdep.c: Include "regset.h".
6994 (fetch_core_registers): Remove function.
6995 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
6996 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
6998 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7000 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
7002 * sparc-tdep.h (struct regset): Provide opaque declaration.
7003 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7004 fpregset and sizeof_fpregset members.
7005 * sparc-tdep.c (struct regset): Provide opaque declaration.
7006 (sparc_regset_from_core_section): New function.
7007 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7008 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7009 Set regset_from_core_section when appropriate.
7011 2004-01-10 Mark Kettenis <kettenis@gnu.org>
7013 * x86-64-tdep.c (amd64_non_pod_p): New function.
7014 (amd64_classify_aggregate): Return class memory for non-POD
7015 C++ structure types.
7017 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7018 argument. Use it to reserve a register if necessary.
7019 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7020 amd64_push_arguments.
7022 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7024 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7025 register numbers in comments.
7026 * x86-64-tdep.h: Update copyright year.
7027 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7028 Adjust for addition of %cs and %ss.
7029 * amd64fbsd-nat.c: Update copyright year.
7030 (reg_offset): Add register offsets for %cs and %ss.
7031 * amd64fbsd-tdep.c: Update copyright year.
7032 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7033 (amd64fbsd_sc_reg_offset): Likewise.
7034 * x86-64-linux-nat.c: Update copyright year.
7035 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7037 * amd64nbsd-nat.c: Update copyright year.
7038 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7039 * amd64nbsd-tdep.c: Update copyright year.
7040 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7041 * x86-64-linux-tdep.c: Update copyright year.
7042 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7043 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7044 * regformats/reg-x86-64.dat: Add %cs and %ss.
7046 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7047 variables to prevent long lines. Update comments to reflect
7050 2004-01-09 David Carlton <carlton@kealia.com>
7052 Checked in by Elena Zannoni <ezannoni@redhat.com>.
7053 * dwarf2read.c (read_namespace): Pull out name-generating code
7054 into namespace_name. Rename previous_namespace to previous_prefix
7055 and processing_current_namespace to processing_current_prefix..
7056 (namespace_name): New function.
7057 (add_partial_symbol): Substitute uses of pdi->name with
7059 * cp-support.h: Rename processing_current_namespace to
7060 processing_current_prefix.
7061 Update copyright year.
7062 * cp-namespace.c: Rename processing_current_namespace to
7063 processing_current_prefix.
7064 Update copyright year.
7066 2004-01-09 Andrew Cagney <cagney@redhat.com>
7068 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7070 2004-01-09 Mark Kettenis <kettenis@gnu.org>
7072 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7074 (process_one_symbol): Deal with N_PATCH stabs.
7076 2004-01-09 Elena Zannoni <ezannoni@redhat.com>
7078 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7080 Update copyright year.
7082 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7084 * config/pa/tm-hppa.h: Update extern declarations for
7085 hppa32_hpux_frame_saved_pc_in_sigtramp,
7086 hppa32_hpux_frame_base_before_sigtramp, and
7087 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7089 2004-01-08 Michael Chastain <mec.gnu@mindspring.com>
7091 * config/pa/tm-hppah.h: Update copyright years.
7093 2004-01-08 Andrew Cagney <cagney@redhat.com>
7095 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7096 (mips_o32_reg_struct_has_addr): Delete function.
7097 (mips_gdbarch_init): Update.
7098 (mips_extract_struct_value_address): Delete function.
7100 2004-01-08 David Mosberger <davidm@hpl.hp.com>
7102 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7105 2004-01-07 Andrew Cagney <cagney@redhat.com>
7107 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7108 architecture's elf flags (when available).
7110 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7111 FPU to the start, check the MIPS FPU when looking for an old
7113 (set_mipsfpu_single_command): Update the architecture.
7114 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7116 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7117 (mips_mask_address_p): Add "tdep" parameter.
7118 (show_mask_address, mips_addr_bits_remove): Update.
7119 (mips_dump_tdep): Update.
7120 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7121 (MIPS_STACK_ARGSIZE): Delete macro.
7122 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7123 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7124 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7125 (mips_dump_tdep): Update.
7126 (MIPS_SAVED_REGSIZE): Delete macro.
7127 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7128 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7129 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7130 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7131 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7132 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7133 (mips_pop_frame, return_value_location): Update.
7134 (mips_n32n64_return_value, mips_dump_tdep): Update.
7136 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7139 * mips-tdep.c: Update copyright.
7140 (mips_gdbarch_init): Merge two code blocks handling the register
7141 name and number layout.
7143 2004-01-02 Pawel Ostrowski <pasza@zodiac.mimuw.edu.pl>
7145 * tracepoint.c (validate_actionline): Fix segv at EOF
7147 2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
7149 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7150 properly for static fields.
7152 2004-01-06 Jeff Johnston <jjohnstn@redhat.com>
7153 Jason Molenda <jmolenda@apple.com>
7155 * disasm.c: Update copyright to include 2004.
7156 (do_mixed_source_and_assembly): For uiout asm list
7157 and tuple cleanups, initialize to null_cleanup instead of
7158 NULL and do so prior to loop. Only reset when we close off
7159 the tuple/list. Move check for whether to close off the
7160 asm tuple/list to after dump_insns call where it will be run
7161 on each loop iteration.
7163 2004-01-05 Andrew Cagney <cagney@redhat.com>
7165 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7166 should be a switch case and not a label.
7167 * mips-tdep.c (mips32_next_pc): Delete unused labels
7168 "greater_equal_branch" and "less_zero_branch".
7169 * jv-valprint.c (java_print_value_fields): Delete unused label
7172 * target.c (unpush_target): Only close a target that is in the
7175 2004-01-05 Mark Kettenis <kettenis@gnu.org>
7177 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7178 address from [sp + 64] instead of %o2.
7180 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7181 fixes PR backtrace/1476.
7183 2004-01-05 Andrew Cagney <cagney@redhat.com>
7185 * libunwind-frame.h (struct frame_id): Add opaque declaration,
7186 move to start of file.
7187 * i386-tdep.h (struct regcache): Add opaque declaration.
7188 * config/ia64/nm-linux.h (struct target_ops): Add opaque
7190 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
7191 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
7192 * win32-nat.c (fake_create_process): Use ISO C style definition.
7193 * stabsread.c (define_symbol): Delete #ifndef
7194 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
7195 stabs_argument_has_addr call, macro never defined.
7197 2004-01-04 Michael Chastain <mec.gnu@mindspring.com>
7199 * op50-rom.c: Delete.
7200 * w89k-rom.c: Delete.
7201 * Makefile.in: Remove references.
7203 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7205 * x86-64-tdep.c: Update copyright year.
7206 (struct amd64_register_info): Rename from x86_64_register_info.
7207 (amd64_register_info): Rename from x86_64_register_info.
7208 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
7209 (amd64_register_name): Rename from x86_64_register_name.
7210 (amd64_register_type): Rename from x86_64_register_type.
7211 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
7212 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
7213 (amd64_dwarf_reg_to_regnum): Rename from
7214 x86_64_dwarf_reg_to_regnum.
7215 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
7216 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
7217 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
7218 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
7219 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
7220 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
7221 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
7222 (amd64_frame_cache): Rename from x86_64_frame_cache.
7223 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
7224 (amd64_frame_prev_register): Rename from
7225 x86_64_frame_prev_register.
7226 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
7227 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
7228 (amd64_sigtramp_frame_cache): Rename from
7229 x86_64_sigtramp_frame_cache.
7230 (amd64_sigtramp_frame_prev_register): Rename from
7231 x86_64_sigtramp_frame_prev_register.
7232 (amd64_sigtramp_frame_unwind): Rename from
7233 x86_64_sigtramp_frame_unwind.
7234 (amd64_sigtramp_frame_sniffer): Rename from
7235 x86_64_sigtramp_frame_sniffer.
7236 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
7237 (amd64_frame_base): Rename from x86_64_frame_base.
7238 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
7239 (amd64_frame_align): Rename from x86_64_frame_align.
7240 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
7241 (amd64_regset_from_core_section): Rename from
7242 x86_64_regset_from_core_section.
7243 (x86_64_init_abi): Update comments.
7245 2004-01-04 Nick Roberts <nick@nick.uklinux.net>
7247 * MAINTAINERS (write after approval): Add myself.
7249 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7251 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7254 2004-01-04 Mark Kettenis <kettenis@gnu.org>
7256 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
7257 such that it mentions a specific version of GCC that exhibits this
7260 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7262 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
7263 structure that has a single `float' member, store it in %f1 in
7266 * sparc-sol2-nat.c: Add missing '\'.
7268 * sparc-tdep.c (sparc32_return_value): New function.
7269 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
7271 (sparc32_gdbarch_init): Set return_value, don't set
7272 extract_return_value, store_return_value, use_struct_convention
7273 and return_value_on_stack.
7275 * sparc-sol2-nat.c: Add missing ')'.
7277 2004-01-03 J. Brobecker <brobecker@gnat.com>
7279 * infrun.c (handle_step_into_function): New function.
7280 (handle_inferior_event): Extract out some code into the new
7283 2004-01-03 J. Brobecker <brobecker@gnat.com>
7285 * infrun.c (handle_inferior_event): Move the declaration of
7286 real_stop_pc inside the if blocks where it is used.
7288 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7290 * sparc64-tdep.c (sparc64_16_byte_align_p)
7291 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7292 Use check_typedef to get subtypes of structures and unions.
7293 (sparc64_store_return_value): Fix calculation of the appropriate
7294 offset into VALBUF when storing a structure or union.
7295 (sparc64_return_value): New function.
7296 (sparc64_use_struct_convention): Remove function.
7297 (sparc64_init_abi): Set return_value, don't set
7298 extract_return_value, store_return_value and
7299 use_struct_convention.
7301 2004-01-03 Eli Zaretskii <eliz@elta.co.il>
7303 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7304 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7305 gdb/config/alpha/xm-alphaosf.h,
7306 gdb/config/powerpc/tm-ppcle-eabi.h,
7307 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7308 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7309 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7310 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7311 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7312 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7313 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7314 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7315 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7316 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7317 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7318 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7319 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7320 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7321 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7322 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7323 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7324 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7325 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7326 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7327 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7328 Remove lines for .cvsignore files.
7330 2004-01-03 J. Brobecker <brobecker@gnat.com>
7332 * infrun.c: Back out the previous change.
7334 2004-01-03 Mark Kettenis <kettenis@gnu.org>
7336 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7337 sparc-*-sunos4* to the list of REMOVED configurations.
7339 * configure.tgt: Add back sparc-*-vxworks*.
7340 * remote-vxsparc.c: Remove all includes except for "defs.h",
7341 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7342 Include "sparc-tdep.h".
7343 (SPARC_R_G1): New define.
7344 (vxsparc_gregset): New variable.
7345 (ext_format_sparc): Remove extern declaration.
7346 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7347 sparc32_supply_fpregset.
7348 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7349 sparc_collect_rwindow and sparc32_collect_fpregset.
7350 * config/sparc/tm-vxworks.h: New file, based on recently removed
7352 * config/sparc/vxworks.mt: New file, based on recently removed
7355 2004-01-03 J. Brobecker <brobecker@gnat.com>
7357 * infrun.c (handle_step_into_function): New function.
7358 (handle_inferior_event): Extract out some code into the new
7361 2004-01-02 Mark Kettenis <kettenis@gnu.org>
7363 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7364 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7365 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7366 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7367 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7368 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7369 (sparc_nat_h): New variable.
7370 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7371 (tm-sun4os4.h): Remove dependency.
7372 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7373 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7374 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7375 sparc-tdep.o): Update dependencies.
7376 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7377 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7378 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7380 * configure.host: Remove existing sparc-*-lynxos*,
7381 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7382 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7383 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7384 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7386 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7387 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7388 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7389 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7390 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7391 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7392 sparc64-*-solaris2* and sparc64-*-* triplets.
7393 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7394 "symtab.h" and "objfiles.h".
7395 (BIAS): Remove define.
7396 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7397 (X_DISP19): Remove macros.
7398 (sparc_fetch_instruction): Remove function.
7399 (struct gdbarch_tdep): Remove definition.
7400 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7401 (sparc_breakpoint_from_pc): Remove function.
7402 (struct sparc64_frame_cache): Remove definition.
7403 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7404 sparc64_unwind_pc): Remove functions.
7405 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7406 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7407 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
7408 (sparc64_frame_cache): Change return type to `struct
7409 sparc_frame_cache *'. Simply call sparc_frame_cache.
7410 (sparc64_frame_this_id, sparc64_frame_prev_register,
7411 sparc64_frame_base_address): Use `struct sparc_frame_cache'
7412 instead of `struct sparc64_frame_cache.
7413 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
7414 sparc_analyze_control_transfer, sparc_software_single_step,
7415 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
7416 _initialize_sparc64_tdep): Remove functions.
7417 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
7418 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
7420 (sparc64_supply_gregset, sparc64_collect_gregset,
7421 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
7422 (sparc64_init_abi): New function.
7423 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
7424 inclusion guard. Include "sparc-tdep.h".
7426 (r_tstate_offset, r_fprs_offset): New defines.
7427 (enum sparc_regnum): Remove defenition.
7428 (enum sparc64_regnum): Reformat.
7429 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
7430 (sparc64_init_abi, sparc64_supply_gregset,
7431 sparc64_collect_gregset, sparc64_supply_fpregset,
7432 sparc64_collect_fpregset): New prototypes.
7433 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
7434 Add extern declarations.
7435 (sparc64_sol2_init_abi): New prototype.
7436 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7437 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7439 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
7441 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
7443 (_initialize_sparc64fbsd_nat): Remove initialization of
7444 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
7445 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
7446 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
7447 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
7448 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
7449 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
7450 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
7451 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
7452 (sparc64fbsd_r_y_offset): Remove variables.
7453 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7454 Make static and const.
7455 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7456 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7458 (sparc64fbsd_gregset): New variable.
7459 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
7460 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
7461 and sparc64_supply_fpregset.
7462 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
7463 (sparc64fbsd_sigtramp_frame_this_id)
7464 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
7465 (sparc64fbsd_sigtramp_frame_unwind): New variable.
7466 (sparc64fbsd_sigtramp_frame_sniffer): New function.
7467 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
7468 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
7469 * sparcnbsd-tdep.c: Update copyright year. Include
7470 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
7471 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
7472 "value.h" and "sparcnbsd-tdep.h".
7473 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
7474 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
7475 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
7476 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
7478 (sparcnbsd_gregset): New variable.
7479 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
7480 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
7481 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
7482 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
7483 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
7485 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
7486 (sparc32nbsd_sigcontext_frame_this_id)
7487 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
7488 (sparc32nbsd_sigcontext_frame_unwind): New variable.
7489 (sparc32nbsd_sigtramp_frame_sniffer): New function.
7490 (sparcnbsd_get_longjmp_target_32,
7491 sparcnbsd_get_longjmp_target_64): Remove functions.
7492 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
7493 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
7494 sparcnbsd_init_elf): Remove.
7495 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
7496 (sparcnbsd_elf_init_abi): New functions.
7497 (_initialize_sparcnbsd_tdep): New prototype.
7498 (_initialize_sparnbsd_tdep): Update.
7499 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
7500 corelow.o. Add sparc64-nat.o and sparc-nat.o.
7501 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
7502 * config/sparc/linux.mh: Update comment.
7503 (XM_FILE, HOST_IPC): Remove variables.
7504 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
7506 * config/sparc/linux.mt: Update comment.
7507 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
7508 * config/sparc/nbsd.mt: Reformat.
7509 * config/sparc/nbsd64.mh: Update comment.
7510 (NATDEPFILES): Add sparc-nat.o.
7511 * config/sparc/nbsd64.mt: Update comment.
7512 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
7513 (TM_FILE): Set to tm-nbsd.h.
7514 * config/sparc/nbsdelf.mh: Update comment.
7515 (NATDEPFILES): Add sparc-nat.o.
7517 * config/sparc/nbsdaout.mh: Update comment.
7518 (NATDEPFILES): Add sparc-nat.o
7520 * config/sparc/nm-linux.h: Update copyright year. Don't include
7521 "config/nm-svr4.h" and "solib.h". Add protection against multiple
7523 (KERNEL_U_SIZE): Remove define.
7524 (kernel_u_size): Remove prototype.
7525 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
7526 * config/sparc/nm-nbsd.h: Update copyright. Don't include
7528 (CHILD_PREPARE_TO_STORE): Remove define.
7529 * config/sparc/nm-nbsdaout.h: Tweak some comments.
7530 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
7531 sparcnbsd-nat.c: Rewrite files.
7532 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
7533 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
7534 sparcnbsd-tdep.h: Remove files.
7535 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
7536 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
7537 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
7538 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
7539 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
7540 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
7541 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
7542 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
7543 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7544 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7545 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
7546 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
7547 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
7548 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
7549 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
7550 * config/sparc/linux64.mh, config/sparc/linux64.mt,
7551 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
7552 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
7553 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
7555 2004-01-02 Andrew Cagney <cagney@redhat.com>
7557 From 2003-12-18 Kazuhiro Inaoka:
7558 * configure.host: Add m32r-linux target.
7560 2004-01-02 Michael Chastain <mec.gnu@mindspring.com>
7562 * top.c (print_gdb_version): Update year to 2004.
7564 2004-01-02 Mark Mitchell <mark@codesourcery.com>
7566 * MAINTAINERS: Add myself to the write-after-approval category.
7568 2004-01-02 Daniel Jacobowitz <drow@mvista.com>
7570 From Bernardo Innocenti <bernie@develer.com>:
7571 * configure.tgt: Add uClinux target.
7573 2004-01-02 Andrew Cagney <cagney@redhat.com>
7575 * utils.c (do_my_cleanups): Make static, add forward declaration.
7576 * defs.h (do_my_cleanups): Delete declaration.
7578 2004-01-02 Eli Zaretskii <eliz@elta.co.il>
7580 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
7583 2004-01-02 Mark Kettenis <kettenis@gnu.org>
7585 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
7587 * configure, config.in: Regenerate.
7589 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7590 tui/ChangeLog-1998-2003.
7596 version-control: never