3 * infptrace.c (child_xfer_memory) [CLEAR_INSN_CACHE]: Delete
4 #ifdef CLEAR_INSN_CACHE code.
5 * target.c (generic_mourn_inferior) [CLEAR_DEFERRED_STORES]:
6 Delete #ifdef CLEAR_DEFERRED_STORES code.
8 * solib-svr4.c [HANDLE_SVR4_EXEC_EMULATORS]: Delete #ifdef code.
10 * config/ia64/tm-linux.h (TARGET_ELF64): Delete macro, Update
12 * config/ia64/tm-aix.h (TARGET_ELF64): Ditto.
14 * config/mips/mipsv4.mh: Delete file.
16 * config/pa/tm-hppa64.h (HPREAD_ADJUST_STACK_ADDRESS): Delete
18 (hpread_adjust_stack_address): Delete declaration.
22 * infptrace.c [ATTACH_DETACH]: Remove #ifdef wrappers.
23 (attach, detach): When neither PT_ATTACH / PT_DETACH nor
24 PTRACE_ATTACH / PTRACE_DETACH available call error.
25 (PT_ATTACH, PT_DETACH): Move definition to attach / detach.
26 * infttrace.c (update_thread_state_after_attach, attach, detach):
27 Remove #ifdef wrappers.
28 * inftarg.c (child_attach, child_detach): Remove #ifdef wrappers.
29 * gnu-nat.c [ATTACH_DETACH]: Remove #ifdef wrappers.
30 * config/nm-bsd.h (ATTACH_DETACH): Delete.
31 * config/nm-sysv4.h (ATTACH_DETACH): Delete.
32 * config/nm-nbsd.h (ATTACH_DETACH): Delete.
33 * config/nm-linux.h (ATTACH_DETACH): Delete.
34 * config/rs6000/nm-rs6000.h (ATTACH_DETACH): Delete.
35 * config/pa/nm-hppah.h (ATTACH_DETACH): Delete.
36 * config/i386/nm-i386sco5.h (ATTACH_DETACH): Delete.
37 * config/i386/nm-i386sco4.h (ATTACH_DETACH): Delete.
38 * config/i386/nm-i386gnu.h (ATTACH_DETACH): Delete.
42 * configure.in: Set $configdir to the right OS specific value.
43 Use value when setting $tcldir and $tkdir.
44 * configure: Regenerate.
48 * gdb/dwarf2-frame.c (decode_frame_entry_1): Decode version 3 CIE
53 * ada-lang.c (lookup_symbol_in_language): New function to allow
54 re-use of another language's symbol lookup code. (Placed here
55 temporarily while Ada support is being integrated into the public
57 (restore_language): New auxiliary function for
58 lookup_symbol_in_language.
59 * ada-lang.h (lookup_symbol_in_language): Declare (Placed here
60 temporarily while Ada support is being integrated into the public
65 * Makefile.in (check//%): New.
67 * mn10300-tdep.c (mn10300_extract_return_value): Rewrite.
68 (mn10300_store_return_value): Rewrite.
69 (mn10300_type_align): New.
70 (mn10300_use_struct_convention): Rewrite.
71 (mn10300_return_value): New, using all of the above.
72 (mn10300_pop_frame_regular): Add saved_regs_size.
73 (mn10300_gdbarch_init): Remove deprecated rewritten entry points.
75 * mn10300-tdep.c (mn10300_analyze_prologue): Don't compute saved
76 regs if PC is on movm.
80 Add native Linux support for the PowerPC E500.
81 * ppc-tdep.h (struct gdbarch_tdep): New member: 'ppc_gprs_pseudo_p'.
82 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize it to false on
83 all architectures except the E500.
84 * ppc-linux-nat.c: (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): New
86 (struct gdb_evrregset_t): New type.
87 (have_ptrace_getsetevrregs): New variable.
88 (get_spe_registers, read_spliced_spe_reg, fetch_spe_register,
89 fetch_spe_registers): New functions.
90 (fetch_register): Call fetch_spe_register as appropriate.
91 Assert that we're only passed raw register numbers.
92 (fetch_ppc_registers): Call fetch_spe_registers as appropriate.
93 Don't fetch gprs if they're pseudoregisters.
94 (set_spe_registers, write_spliced_spe_reg, store_spe_register,
95 store_spe_registers): New functions.
96 (store_register): Call store_spe_register as appropriate.
97 Assert that we're only passed raw register numbers.
98 (store_ppc_registers): Call store_spe_registers as appropriate.
99 Don't store gprs if they're pseudoregisters.
103 * thread-db.c (thread_get_info_callback): Fill in the thread_info
104 struct if one exists, even if we are dealing with a zombie thread.
108 * target.h (PC_REQUIRES_RUN_BEFORE_USE): Delete definition.
109 * config/pa/tm-hppa.h (DEPRECATED_PC_REQUIRES_RUN_BEFORE_USE):
110 Rename PC_REQUIRES_RUN_BEFORE_USE.
111 * breakpoint.c (breakpoint_sals_to_pc): Update. Wrap reference in
116 * hppa-tdep.c (hppa_frame_cache): Handle the cases when we start
117 unwinding after sp has been saved to the stack but before the end
118 of the prologue, and after the fp has been modified but before it has
119 been saved to the stack.
120 (hppa_frame_base_address, hppa_frame_base, hppa_frame_base_sniffer):
121 Remove superfluous definitions.
122 (hppa_gdbarch_init): Remove superfluous frame base sniffer.
126 Committed by Randolph Chung.
127 * hppa-linux-nat.c: Include the correct version of the header file
128 depending on the kernel version.
132 * infrun.c (trap_expected_after_continue): Remove HP_OS_BUG workaround.
133 (proceed, init_wait_for_inferior, handle_inferior_event): Likewise.
137 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
138 (hppa_hpux_skip_trampoline_code): Don't cache symbol values.
139 * hppa-linux-tdep.c (hppa_linux_in_dyncall): Likewise.
140 * hppa-tdep.c (hppa_symbol_address): New function definition.
141 * hppa-tdep.h (hppa_symbol_address): New function declaration.
145 * hppa-tdep.h (struct value): Forward declaration.
146 (gdbarch_tdep): Define tdep find_global_pointer method.
147 * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer
148 associated with the function we are trying to call, and write it
150 (hppa32_convert_from_funct_ptr_addr): New function.
151 (hppa_find_global_pointer): New function.
152 (hppa_gdbarch_init): Set default find_global_pointer method; set
153 convert_from_func_ptr_addr method.
154 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function.
155 (hppa_linux_init_abi): Set find_global_pointer method.
156 * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
160 * gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument
161 to struct value *function.
162 * gdbarch.c: Regenerate.
163 * gdbarch.h: Likewise.
164 * infcall.c (call_function_by_hand): Pass entire function value
167 * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o)
168 (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies.
169 * alpha-tdep.c (alpha_push_dummy_call): Update call signature.
170 * amd64-tdep.c (amd64_push_dummy_call): Likewise.
171 * arm-tdep.c (arm_push_dummy_call): Likewise.
172 * avr-tdep.c (avr_push_dummy_call): Likewise.
173 * cris-tdep.c (cris_push_dummy_call): Likewise.
174 * d10v-tdep.c (d10v_push_dummy_call): Likewise.
175 * frv-tdep.c (frv_push_dummy_call): Likewise.
176 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
177 * hppa-tdep.c (hppa32_push_dummy_call)
178 (hppa64_push_dummy_call): Likewise.
179 * i386-tdep.c (i386_push_dummy_call): Likewise.
180 * ia64-tdep.c (ia64_push_dummy_call): Likewise.
181 * m32r-tdep.c (m32r_push_dummy_call): Likewise.
182 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
183 * m68k-tdep.c (m68k_push_dummy_call): Likewise.
184 * m88k-tdep.c (m88k_push_dummy_call): Likewise.
185 * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
186 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise.
187 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
188 (ppc64_sysv_abi_push_dummy_call): Likewise.
189 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call)
190 (ppc64_sysv_abi_push_dummy_call): Likewise.
191 * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
192 * s390-tdep.c (s390_push_dummy_call): Likewise.
193 * sh-tdep.c (sh_push_dummy_call_fpu)
194 (sh_push_dummy_call_nofpu): Likewise.
195 * sparc-tdep.c (sparc32_push_dummy_call): Likewise.
196 * sparc64-tdep.c (sparc64_push_dummy_call): Likewise.
197 * vax-tdep.c (vax_push_dummy_call): Likewise.
201 * ppc-linux-nat.c (fetch_register): Don't forget to pass the
202 gdbarch argument to register_size.
204 * rs6000-tdep.c (rs6000_store_return_value): Use
205 regcache_cooked_write_part instead of
206 deprecated_write_register_bytes.
207 (rs6000_gdbarch_init): Register it for gdbarch_store_return_value,
208 not gdbarch_deprecated_store_return_value.
210 * ppc-linux-nat.c (store_register, fetch_register): Remove
211 incorrect assertions. Simplify and generalize handling of
212 transfers whose sizes are not multiples of, or less than, sizeof
217 * infrun.c (handle_inferior_event): Don't treat an invalid ptid
218 as a new thread event.
219 * thread_db.c (thread_get_info_callback): If the thread is a
220 zombie, return TD_THR_ZOMBIE.
221 * (thread_from_lwp): If thread_get_info_callback returns
222 TD_THR_ZOMBIE, check if the thread is still on the thread list
223 and return a -1 ptid if not found.
224 (thread_db_wait): If thread_from_lwp returns a -1 ptid, then
225 change the status to TARGET_WAITKIND_SPURIOUS.
229 * sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
230 double values in little endian mode.
234 Committed by Andrew Cagney.
235 * gdb/dictionary.c, gdb/gdbtypes.h: Remove trailing comma
236 after last enum constant to avoid error from IBM C
241 * ppc-linux-nat.c (store_register, fetch_register): Rename 'mess'
242 to 'message', and make it local to the lone block that uses it.
244 * ppc-linux-nat.c (store_register): Remove unused local 'offset'.
248 * ada-exp.y: Synchronize with current ACT sources.
252 * ada-tasks.c: Ditto.
253 * ada-typeprint.c: Ditto.
254 * ada-valprint.c: Ditto.
258 * ppc-tdep.h: Delete unused 'regoff' member.
259 * rs6000-tdep.c (rs6000_gdbarch_init): Don't initialize it.
264 * hpread.c (hpread_pxdb_needed): Call memset after alloca.
265 (hpread_read_struct_type): Likewise.
269 * mi/mi-cmd-env.c (env_execute_cli_command): Use xstrprintf
270 instead of xasprintf.
271 * mi/mi-main.c (mi_error_last_message, mi_cmd_exec_interrupt)
272 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
273 (mi_cmd_data_list_register_names)
274 (mi_cmd_data_list_changed_registers)
275 (mi_cmd_data_list_register_values)
276 (get_register, mi_cmd_data_write_register_values)
277 (mi_cmd_data_write_register_values)
278 (mi_cmd_data_assign, mi_cmd_data_evaluate_expression)
279 (mi_cmd_target_download, mi_cmd_target_select)
280 (mi_cmd_data_read_memory, mi_cmd_data_write_memory)
281 (mi_execute_cli_command, mi_execute_async_cli_command)
282 (mi_execute_async_cli_command): Ditto.
283 * mi/mi-interp.c (mi_cmd_interpreter_exec) Ditto.
284 * mi/mi-cmd-var.c (mi_cmd_var_create): Ditto.
286 * mi/mi-cmds.h (mi_error_last_message): Delete declaration.
287 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call
288 error_last_message instead of mi_error_last_message.
289 * mi/mi-main.c (mi_error_last_message): Delete function.
291 * mi/mi-main.c (mi_cmd_data_read_memory): Add missing return for
292 "invalid number of columns" error. Delete redundant "out of
297 * i386bsd-nat.c: Don't include <sys/procfs.h>.
298 (gregset_t, fpregset_t): Remove typedefs.
299 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Remove macros.
300 (REG_OFFSET): Rename argument.
301 (i386bsd_r_reg_offset): Rename from reg_offset.
302 (REG_ADDR): Remove macro.
303 (cannot_fetch_register, supply_gregset, fill_gregset): Remove
305 (i386bsd_supply_gregset, i386bsd_collect_gregset): New functions.
306 (fetch_inferior_registers): Use `struct reg' and `struct fpreg'
307 instead of gregset_t and fpregset_t. Use i386bsd_supply_gregset
308 instead of supply_gregset.
309 (store_inferior_registers): Use `struct reg' and `struct fpreg'
310 instead of gregset_t and fpregset_t. Use i386bsd_collect_gregset
311 instead of fill_gregset.
312 (register_u_addr): Use i386_r_reg_offset instead of REG_ADDR.
314 * i386bsd-nat.c: Don't include "gregset.h".
315 (supply_gregset, fill_gregset): Make static.
316 (supply_fpregset, fill_fpregset): Remove.
317 * Makefile.in (i386bsd-nat.o): Update dependencies.
321 * fbsd-proc.c: Include "regcache.h", "regset.h" and
322 "gdb_assert.h". Con't include "gregset.h".
323 (fbsd_make_corefile_notes): Use regset-based core file support
324 instead off fill_gregset and fill_fpregset.
325 * Makefile.in (fbsd-proc.o): Update dependencies.
327 * m88k-tdep.c (m88k_analyze_prologue): Fix handling of branch
329 (m88k_frame_prev_register): Simplify code a bit.
331 * amd64-tdep.c (amd64_supply_fpregset): Adjust comment.
332 (amd64_collect_fpregset): New function.
333 (amd64_regset_from_core_section): Use amd64_collect_fpregset.
335 * hppa-tdep.h (hppa_regnum): Add HPPA_R31_REGNUM.
337 * i386-tdep.c (i386_supply_gregset): Adjust comment.
338 (i386_collect_gregset): New function.
339 (i386_supply_fpregset): Adjust comment.
340 (i386_collect_fpregset): New function.
341 (i386_regset_from_core_section): Use i386_collect_gregset and
342 i386_collect_fpregset.
344 * hppa-tdep.c (hppa_frame_prev_register_helper): Reimplement to
345 handle VALUEP being null.
347 * regset.h (collect_regset_ftype): Unconstify fourth argument.
351 * MAINTAINERS: Undelete m88k. Add myself as maintainer.
353 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Adjust for new
354 assembler in OpenBSD 3.5-current.
355 (amd64obsd_sigcontext_addr): Likewise.
359 * rs6000-tdep.c: Use the modern gdbarch methods for handling the
360 register set, so our regcache isn't declared "legacy" and our E500
361 pseudoregister read and write functions aren't ignored.
362 (rs6000_register_byte, rs6000_register_raw_size,
363 rs6000_register_virtual_type, rs6000_register_convertible,
364 rs6000_register_convert_to_virtual,
365 rs6000_register_convert_to_raw): Deleted.
366 (rs6000_register_type, rs6000_convert_register_p,
367 rs6000_register_to_value, rs6000_value_to_register): New
369 (rs6000_gdbarch_init): Don't register
370 gdbarch_deprecated_register_size,
371 gdbarch_deprecated_register_bytes,
372 gdbarch_deprecated_register_byte,
373 gdbarch_deprecated_register_raw_size,
374 gdbarch_deprecated_register_virtual_type,
375 gdbarch_deprecated_register_convertible,
376 gdbarch_deprecated_register_convert_to_virtual, or
377 gdbarch_deprecated_register_convert_to_raw methods. Instead,
378 register gdbarch_register_type, gdbarch_convert_register_p,
379 gdbarch_register_to_value, and gdbarch_value_to_register methods.
383 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): Deleted.
384 (rs6000_stab_reg_to_regnum, rs6000_dwarf2_reg_to_regnum): New
385 functions, updated to match the register numberings used in GCC.
386 (rs6000_gdbarch_init): Register rs6000_stab_reg_to_regnum and
387 rs6000_dwarf2_reg_to_regnum as register number conversions
388 functions for STABS and Dwarf2.
392 * infttrace.h (target_waitkind): Forward declare type instead of pulling
397 * NEWS: Document new "start" command.
401 * hppa-linux-tdep.c (hppa_linux_init_abi): sizeof(long double) == 8 on
406 * hppa-hpux-tdep.c (offsetof): Define.
407 (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp)
408 (hppa32_hpux_frame_base_before_sigtramp)
409 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
410 (hppa64_hpux_frame_saved_pc_in_sigtramp)
411 (hppa64_hpux_frame_base_before_sigtramp)
412 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused
414 (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg)
415 (hppa_hpux_sigtramp_frame_unwind_cache)
416 (hppa_hpux_sigtramp_frame_this_id)
417 (hppa_hpux_sigtramp_frame_prev_register)
418 (hppa_hpux_sigtramp_frame_unwind)
419 (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder.
420 (hppa_hpux_init_abi): Register sigtramp unwinder.
421 * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
425 * hppa-tdep.c (hppa_fallback_frame_cache): Handle stack adjustment,
426 and multiple stack unwinds.
427 (hppa_stub_unwind_sniffer): Handle unwind from pc == 0.
431 * symfile.h (symbol_file_add_from_memory): Delete declaration.
432 * symfile-mem.h: Delete file.
433 * symfile-mem.c: Do not include "symfile-mem.h".
434 (symbol_file_add_from_memory): Make static. Use "struct bfd" and
435 "struct bfd_section". When an error do not bother returning NULL.
436 (add_symbol_file_from_memory_command): Use "struct bfd" and
437 "struct bfd_section".
438 * Makefile.in (symfile_mem_h): Delete.
439 (symfile-mem.o): Update dependencies.
443 * gdb-mi.el: New file.
447 * inftarg.c: Include "observer.h".
448 (child_attach, child_create_inferior): Notify inferior_created.
449 * corelow.c: Include "observer.h".
450 (core_open): Notify inferior_created.
451 * Makefile.in (inftarg.o, corelow.o): Update dependencies.
455 * target.h (struct target_ops): Add from_tty to
457 (target_create_inferior, find_default_create_inferior): Update.
458 * infcmd.c (run_command): Update.
459 * wince.c (child_create_inferior): Update.
460 * win32-nat.c (child_create_inferior): Update.
461 * uw-thread.c (uw_thread_create_inferior): Update.
462 * thread-db.c (thread_db_create_inferior): Update.
463 * target.c (debug_to_create_inferior)
464 (find_default_create_inferior): Update.
465 (maybe_kill_then_create_inferior): Update.
466 * sol-thread.c (sol_thread_create_inferior): Update.
467 * remote.c (extended_remote_async_create_inferior)
468 (extended_remote_create_inferior): Update.
469 * remote-vx.c (vx_create_inferior): Update.
470 * remote-st.c (st2000_create_inferior): Update.
471 * remote-sim.c (gdbsim_create_inferior): Update.
472 * remote-sds.c (sds_create_inferior): Update.
473 * remote-rdp.c (remote_rdp_create_inferior): Update.
474 * remote-rdi.c (arm_rdi_create_inferior): Update.
475 * remote-m32r-sdi.c (m32r_create_inferior): Update.
476 * remote-e7000.c (e7000_create_inferior): Update.
477 * procfs.c (procfs_create_inferior): Update.
478 * ocd.c (ocd_create_inferior): Update.
479 * ocd.h (ocd_create_inferior): Update.
480 * nto-procfs.c (procfs_create_inferior): Update.
481 * monitor.c (monitor_create_inferior): Update.
482 * lin-lwp.c (lin_lwp_create_inferior): Update.
483 * inftarg.c (child_create_inferior): Update.
484 * hpux-thread.c (hpux_thread_create_inferior): Update.
485 * gnu-nat.c (gnu_create_inferior): Update.
489 * MAINTAINERS: Update e-mail address.
493 * thread.c (info_threads_command, thread_apply_all_command)
494 (thread_apply_command, thread_command, do_captured_thread_select):
495 Remove HPUXHPPA-specific code.
499 * hppa-tdep.c (SR4EXPORT_LDIL_OFFSET, SR4EXPORT_LDO_OFFSET): Remove
501 * hppa-tdep.h (HPPA_INSTRUCTION_SIZE): Remove, since there are no more
506 * infcmd.c (kill_if_already_running): New function, extracted
508 (run_command): Replace extracted code by call to
509 kill_if_already_running().
510 (start_command): New function.
511 (_initialize_infcmd): Add "start" command.
515 Add OpenBSD/m88k support.
516 * NEWS (New native configurations): Mention OpenBSD/m88k.
517 * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h,
518 config/m88k/obsd.mh, config/m88k/obsd.mt: New files.
519 * Makefile.in (m88k_tdep_h): New variable.
520 (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c.
521 (m88kbsd-nat.o, m88k-tdep.o): New dependencies.
522 * configure.host: Add m88*-*-openbsd*.
523 * configure.tgt: Add m88*-*-openbsd*.
527 * MAINTAINERS (tracing bytecode stuff): Allow global maintainers
532 * symtab.c (fixup_section): Search section table when lookup by
537 * hppa-tdep.c: Fix handling of 8-byte structures; they should not
542 * m68kbsd-nat.c (m68kbsd_collect_gregset): Specify correct
543 register number in regcache_raw_collect call.
544 (m68kbsd_collect_fpregset): Likewise.
545 * vaxbsd-nat.c (vaxbsd_collect_gregset): Likewise.
547 * regset.h (struct regset): Add back `regset' member.
551 * configure.in: Check for td_pcb in `struct thread'.
552 * configure, config.in: Regenerated.
554 * dpx2-nat.c: Remove file.
555 * Makefile.in (ALLDEPFILES): Remove dpx2-nat.c.
556 (dpx2-nat.o): Remove dependencies.
558 * amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",
559 <sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h".
560 (amd64obsd_supply_pcb): New function.
561 (_initialize_amd64obsd_nat): Enable libkvm interface.
562 * Makefile.in (amd64obsd-nat.o): Update dependencies.
563 * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o
564 (LOADLIBES): New variable.
566 * sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",
567 <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h".
568 (sparc32nbsd_supply_pcb): New function.
569 (_initialize_sparcnbsd_nat): Enable libkvm interface.
570 * Makefile.in (sparcnbsd-nat.o): Update dependencies.
571 * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o.
572 (LOADLIBES): New variable.
576 * bsd-kvm.c, bsd-kvm.h: New files.
577 * i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and
579 (i386fbsd_supply_pcb): New function.
580 * Makefile.in (ALLDEPFILES): Add bsd-kvm.c.
581 (i386fbsd-nat.o): Update dependencies.
582 (bsd_kvm_h): New variable.
583 (bsd-kvm.o): New dependency.
584 * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o.
585 (LOADLIBES): New variable.
587 * regset.c: Tweak comment.
588 (regset_alloc): Remove descr argument. Use GDBARCH_OBSTACK_ZALLOC
590 * regset.h: Update copyright year.
591 (struct regset): Remove `descr' member, add `gdbarch' member.
592 (regset_alloc): Adjust prototype and comment.
593 * i386-tdep.c (i386_supply_gregset): Get TDEP from REGSET->arch.
594 (i386_supply_fpregset): Likewise.
595 (i386_regset_from_core_section): Update call to regset_alloc.
596 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get TDEP from
598 (i386obsd_aout_regset_from_core_section): Update call to
600 * i386nbsd-tdep.c (i386nbsd_aout_supply_regset): Get TDEP from
602 (i386nbsd_aout_regset_from_core_section): Update call to
604 * amd64-tdep.c (amd64_supply_fpregset): Get TDEP from
606 (amd64_regset_from_core_section): Update call to regset_alloc.
607 * amd64obsd-tdep.c (amd64obsd_supply_regset): Get TDEP from
609 (amd64obsd_regset_from_core_section): Update call to regset_alloc.
610 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Directly pass
611 &sparc32nbsd_gregset in sparc32_supply_gregset call.
612 (sparc32nbsd_init_abi): Update call to regset_alloc.
613 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Directly pass
614 &sparc64obsd_core_gregset in sparc64_supply_gregset call.
615 (sparc64obsd_init_abi): Update call to regset_alloc.
616 * sparc64nbsd-tdep.c (sparc64nbsd_supply_gregset): Directly pass
617 &sparc64nbsd_gregset in sparc64_supply_gregset call.
618 (sparc64nbsd_init_abi): Update call to regset_alloc.
619 * sparc64fbsd-tdep.c (sparc64fbsd_supply_gregset): Directly pass
620 &sparc64fbsd_gregset in sparc64_supply_gregset call.
621 (sparc64fbsd_init_abi): Update call to regset_alloc.
625 * ppc-tdep.h (spe_register_p): New declaration.
626 (struct gdbarch_tdep): New members: ppc_acc_regnum and
628 * rs6000-tdep.c (spe_register_p): New function.
629 (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and
631 (rs6000_gdbarch_init): Initialize the new members of the tdep
636 * ppc-linux-nat.c (fetch_register): Move code back to be next
637 to the comment that describes it. (Moved code, instead of
638 comment, for symmetry with store_register.)
640 Allocate regset structures in the gdbarch's obstack, not using
642 * regset.c (regset_alloc): Renamed from regset_xmalloc.
643 Add 'arch' argument. Allocate the regset on arch's obstack, not
645 * regset.h (regset_alloc): Update declaration.
646 * am64-tdep.c (amd64_regset_from_core_section): Update call; pass
648 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
649 * i386-tdep.c (i386_regset_from_core_section): Same.
650 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
651 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
652 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
653 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
654 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
655 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
659 * config/djgpp/fnchange.lst: Undo previous change, was useless.
663 * dwarf2expr.c (execute_stack_op): Add 'break' statements after
664 cases for DW_OP_div and DW_OP_shr. (Thanks to Reva Cuthbertson.)
668 * rs6000-tdep.c (rs6000_push_dummy_call): Formatting fixes.
672 * regset.h: Make prototype const-correct.
673 * regset.c (regset_xmalloc): Make const-correct.
677 * symtab.h (SYMBOL_SEARCH_NAME): New definition.
678 (SYMBOL_MATCHES_SEARCH_NAME): New definition.
679 (symbol_search_name): Declare.
681 * dictionary.c (iter_name_first_hashed): Match on SYMBOL_SEARCH_NAME.
682 (iter_name_next_hashed): Ditto.
683 (iter_name_next_linear): Ditto.
684 (insert_symbol_hashed): Hash on SYMBOL_SEARCH_NAME.
686 * symtab.c (lookup_partial_symbol): Assume symbols ordered by
687 search name, using SYMBOL_SEARCH_NAME and SYMBOL_MATCHES_SEARCH_NAME.
688 (symbol_search_name): New function.
690 * symfile.c (compare_psymbols): Order by SYMBOL_SEARCH_NAME.
692 * minsyms.c (build_minimal_symbol_hash_tables): Change
693 test for adding to demangled hash table to check for difference
694 between SYMBOL_SEARCH_NAME and SYMBOL_LINKAGE_NAME.
698 Use a constructor function to create regset structures.
699 * regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs.
700 (struct regset): Use supply_regset_ftype. Add new
701 'collect_regset' member.
702 (regset_xmalloc): New declaration.
703 * regset.c: New file.
704 * am64-tdep.c (amd64_regset_from_core_section): Use
705 regset_xmalloc to construct regset structures.
706 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same.
707 * i386-tdep.c (i386_regset_from_core_section): Same.
708 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same.
709 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same.
710 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same.
711 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same.
712 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same.
713 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same.
714 * Makefile.in (COMMON_OBS): Add regset.o.
715 (regset.o): New rule.
719 * config/djgpp/fnchange.lst: Add entries for pthread_cond_wait.exp
720 and pthread_cond_wait.c.
724 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize tdep fields
725 before the mach-specific switch, and then let the individual cases
726 override the defaults, rather than leaving them uninitialized
727 until the switch and then setting them in each case.
731 * hppa-tdep.c (hppa_frame_cache): Check for validity of r31 for
736 * somsolib.c (som_solib_remove_inferior_hook): Make all the size
737 references to dld_flags_buffer consistent.
741 * hppa-tdep.c (hppa_frame_cache): If a frame pointer is available, use
742 it for unwinding the stack.
746 * config/pa/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE)
747 Undefine these so we can overide them using gdbarch.
751 * hppa-tdep.c (hppa_stub_frame_unwind_cache): Don't do export stub
752 handling for 64-bit HPUX (elf).
756 * alpha-tdep.c (alpha_gdbarch_init): Use LL suffix for large
758 * amd64-tdep.c (amd64_skip_prologue): Likewise.
759 * ia64-tdep.c (examine_prologue): Likewise.
760 * ns32k-tdep.c (ns32k_fix_call_dummy): Remove unused function.
761 * v850-tdep.c (v850_fix_call_dummy): Likewise.
765 * vax-tdep.c (vax_return_value): Implement
766 RETURN_VALUE_ABI_RETURNS_ADDRESS.
770 * vax-tdep.c (vax_return_value): Fix typo.
774 * MAINTAINERS: Mark Salter was also responsible for
777 * NEWS: Mention signal fixes.
781 * hppa-tdep.c (hppa_stub_frame_unwind_cache): For HPUX stub unwinding,
782 check to see if we are unwinding an export stub. Export stubs clobber
783 the %rp in the call path and stores the original rp in a stack slot.
787 * MAINTAINERS: Update address for J.T. Conklin.
791 * hppa-tdep.c: Remove superfluous #include's.
792 * Makefile.in (hppa-tdep.o): Update dependencies.
796 * hppa-tdep.c (THREAD_INITIAL_FRAME_SYMBOL): Delete unused symbol.
797 (THREAD_INITIAL_FRAME_SYM_LEN): Likewise.
798 (unwind_command, hppa_alignof, prologue_inst_adjust_sp)
799 (is_branch, inst_saves_gr, inst_saves_fr, compare_unwind_entries)
800 (read_unwind_info, internalize_unwinds, record_text_segment_lowaddr):
801 Remove static function declarations.
805 * alphabsd-nat.c: Update copyright year.
806 (getregs_supplies): Replace PC_REGNUM with ALPHA_PC_REGNUM.
808 * m68k-tdep.h (m68k_regnum): Add M68K_D2_REGNUM, M68K_D7_REGNUM
811 * m68k-tdep.c (m68k_svr4_return_value): Implement
812 RETURN_VALUE_ABI_RETURNS_ADDRESS.
816 * sol-thread.c Update copyright year. Fix various coding
817 standards violations. Tweak a few comments.
818 (td_err_string, td_state_string, thread_to_lwp, lwp_to_thread):
823 * hppa-tdep.h (hppa_frame_prev_register_helper): Pass save_regs
824 as pointer instead of array reference since HPUX compiler does
825 not accept unsized array arguments.
826 * somsolib.c (dld_flags_buffer): Use constant array size.
830 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Replace hexadecimal
831 offset with decimal offset.
832 (amd64obsd_sigcontext_addr): Return correct address for entire
835 * vax-tdep.c (vax_frame_num_args): Use get_frame_base_address
836 instead of get_frame_base.
838 * i386bsd-nat.c (supply_gregset): Use regcache_raw_supply.
839 (fill_gregset): Use regcache_raw_collect.
841 * config/djgpp/fnchange.lst: Add entries for ppcobsd-nat.c and
844 * config/sparc/tm-nbsd64.h: Remove file.
845 * config/tm-sunos.h: Remove file.
849 * rs6000-tdep.c (store_param_on_stack_p): New function,
850 an improved version of some code extracted from skip_prologue().
851 (skip_prologue): Use store_param_on_stack_p() to detect
852 instructions saving a parameter on the stack. Detect when r0
853 is used to save a parameter.
854 Do not mark "li rx, SIMM" instructions as part of the prologue,
855 unless the following instruction is also part of the prologue.
859 * infrun.c (handle_inferior_event): Simplify
860 STEP_OVER_UNDEBUGGABLE.
862 * infrun.c (handle_step_into_function): Delete function.
863 (handle_inferior_event): Inline calls to
864 handle_step_into_function.
868 * rs6000-nat.c: Fix a comment.
873 * regcache.c (struct regcache_descr): fix comment spelling.
877 * aix-thread.c: s/ppc_floating_point_p/ppc_floating_point_unit_p/.
878 Fixes a link link failure.
882 * aix-thread.c (store_regs_kernel_thread): Fix a little obvious
883 error that was causing the build to fail.
887 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.
888 * Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
892 * infrun.c (handle_inferior_event): Check for
893 STEP_OVER_UNDEBUGGABLE after signal trampolines and function
894 calls. Update comments.
898 * aix-thread.c (pdc_read_regs, supply_gprs64, supply_fprs)
899 (fetch_regs_user_thread, fetch_regs_kernel_thread)
900 (store_regs_user_thread, store_regs_kernel_thread): Use
901 ppc_num_gprs and ppc_num_fprs instead of '32' and '31'.
902 * ppc-linux-nat.c (fill_gregset): Same.
903 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
904 (ppc_linux_sigtramp_cache): Same.
905 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg)
906 (ppcnbsd_sigtramp_cache_init): Same.
907 * rs6000-nat.c (fetch_core_registers): Same.
908 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
909 (rs6000_frame_cache): Same.
911 * aix-thread.c (supply_gprs64, fetch_regs_user_thread)
912 (store_regs_user_thread): Use tdep->ppc_gp0_regnum, instead
913 of assuming that the gprs are numbered starting with zero.
914 * ppc-linux-nat.c (fill_gregset): Same.
915 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Same.
916 * ppcnbsd-nat.c (getregs_supplies): Same.
917 * ppcnbsd-tdep.c (ppcnbsd_supply_reg, ppcnbsd_fill_reg): Same.
918 * rs6000-nat.c (fetch_core_registers): Same.
919 * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset): Same.
923 * tracepoint.c (scope_info): Add handling for LOC_COMPUTED,
924 LOC_COMPUTED_ARG, and LOC_INDIRECT.
928 * infrun.c (handle_inferior_event): Use frame_unwind_id.
932 * dwarf2loc.c (find_location_expression): Use ANOFFSET to adjust
933 base_address for shared libraries.
937 * MAINTAINERS (write after approval): Add myself.
941 * breakpoint.c (bpstat_stop_status): Add new argument
942 STOPPED_BY_WATCHPOINT. Use it instead of testing
943 target_stopped_data_address agaist 0 to check whether
944 or not we stopped due to a hardware watchpoint.
945 * breakpoint.h (bpstat_stop_status): Adapt prototype.
946 * infrun.c (handle_inferior_event): Call bpstat_stop_status
951 * configure.in: When checking whether we should use the -bbigtoc
952 option, don't forget to restore the original value of LDFLAGS.
953 * configure: Regenerated.
957 * thread.c (load_infrun_state): Delete step_sp.
958 * infrun.c (context_switch): Ditto.
959 * inferior.h (step_sp): Ditto.
960 * infcmd.c (step_sp, step_1, step_once, until_next_command): Ditto.
961 * gdbthread.h (struct thread_info, save_infrun_state)
962 (restore_infrun_state): Ditto.
966 * MAINTAINERS (write after approval): Add myself.
970 * infrun.c (adjust_pc_after_break): Rewrite decr logic,
971 eliminate reference to step_sp.
972 (struct execution_control_state, init_execution_control_state)
973 (handle_inferior_event, keep_going): Delete update_step_sp and
975 * infcmd.c (step_sp): Note that variable is unused.
979 * infrun.c (step_over_function): Delete function.
980 (handle_step_into_function): Use insert_step_resume_breakpoint.
981 (insert_step_resume_breakpoint): Fix assertion.
985 * utils.c (defaulted_query): Just use the normal query input type
986 when printing the annotations.
990 * infrun.c (handle_inferior_event): Simplify code handling
991 step-into or return-from a signal trampoline.
995 * ppcnbsd-tdep.c: Include "gdb_assert.h".
996 * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
1000 * ppc-bdm.c (bdm_ppc_fetch_registers): Replace utterly broken code
1001 with a call to internal_error.
1003 * ppc-tdep.h (struct gdbarch_tdep): Change definition of
1004 ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this
1005 processor variant lacks those registers.
1006 (ppc_floating_point_unit_p): Change description to make it clear
1007 that this returns info about the ISA, not the ABI.
1008 * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to
1009 return true or false by checking tdep->ppc_fp0_regnum and
1010 tdep->ppc_fpscr_regnum. The original code replicated the BFD
1011 arch/mach switching done in rs6000_gdbarch_init; it's better to
1012 keep that logic there, and just check the results here.
1013 (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and
1014 tdep->ppc_fpscr_regnum to -1 to indicate that we have no
1015 floating-point registers.
1016 (ppc_supply_fpregset, ppc_collect_fpregset)
1017 (rs6000_push_dummy_call, rs6000_extract_return_value)
1018 (rs6000_store_return_value): Assert that we have floating-point
1020 (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME.
1021 (rs6000_frame_cache): Don't note the locations at which
1022 floating-point registers were saved if we have no fprs.
1023 * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP
1025 (fetch_regs_user_thread, fetch_regs_kernel_thread)
1026 (store_regs_user_thread, store_regs_kernel_thread): Only call
1027 supply_fprs / fill_fprs if we actually have floating-point
1029 (special_register_p): Check ppc_fpscr_regnum before matching
1031 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't
1032 supply / collect fpscr if we don't have it.
1033 * ppc-bdm.c: #include "gdb_assert.h".
1034 (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we
1035 have floating-point registers, since I can't test this code on
1036 FP-free systems to adapt it.
1037 * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the
1038 fpscr and floating point register numbers if they don't exist.
1039 (fetch_register): Assert that we have floating-point registers
1040 before we reach the code that handles them.
1041 (store_register): Same. And use tdep instead of calling
1043 (fill_fpregset): Don't try to collect FP registers and fpscr if we
1045 (ppc_linux_sigtramp_cache): Don't record the saved locations of
1046 fprs and fpscr if we don't have them.
1047 (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we
1049 * ppcnbsd-nat.c: #include "gdb_assert.h".
1050 (getfpregs_supplies): Assert that we have floating-point registers.
1051 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same.
1052 * ppcobsd-tdep.c: #include "gdb_assert.h".
1053 (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we
1054 have floating-point registers.
1055 * rs6000-nat.c (regmap): Don't match against the fpscr and
1056 floating point register numbers if they don't exist.
1057 (fetch_inferior_registers, store_inferior_registers,
1058 fetch_core_registers): Only fetch / store / supply the
1059 floating-point registers and the fpscr if we have them.
1060 * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o)
1061 (ppcobsd-tdep.o): Update dependencies.
1065 * infrun.c (through_sigtramp_breakpoint): Delete variable.
1066 (context_switch): Do not switch through_sigtramp_breakpoint.
1067 * gdbthread.h (save_infrun_state, load_infrun_state)
1068 (struct thread_info): Delete through_sigtramp_breakpoint parameter
1069 and structure member.
1070 * thread.c (load_infrun_state, save_infrun_state): Update.
1074 * m68kbsd-tdep.c (m68kbsd_elf_init_abi): Call m68k_svr4_init_abi.
1078 * acinclude.m4: Quote macro names being defined by AC_DEFUN
1080 * aclocal.m4: Regenerate.
1084 * alphanbsd-tdep.c: Fix include of "gdb_string.h".
1088 * infrun.c (check_sigtramp2): Delete function.
1089 (handle_inferior_event): When single stepping, and taking a
1090 signal, set a breakpoint at the signal return address. Delete
1091 redundant calls to check_sigtramp2.
1092 (insert_step_resume_breakpoint): New function.
1093 (through_sigtramp_breakpoint, handle_inferior_event)
1094 (follow_exec, wait_for_inferior, fetch_inferior_event)
1095 (currently_stepping, keep_going): Delete most uses of
1096 through_sigtramp_breakpoint, not that it should be deleted.
1097 (delete_breakpoint_current_contents): Delete function.
1101 * config/pa/linux.mt (TM_FILE): Use new tm-linux.h for hppa-linux
1103 * config/pa/tm-linux.h: New file.
1107 * cli/cli-setshow.c (cmd_show_list): Check for "show" in the middle
1108 of prefixes. Don't print the prefix twice in the CLI.
1112 * rs6000-tdep.c (ppc_collect_gregset): When regnum == -1, do
1113 collect all the gprs.
1115 * rs6000-tdep.c (ppc_collect_gregset): Correct off-by-one error in
1116 loop collecting gprs.
1120 * remote-vx.c (net_step): Delete step-range code.
1121 * remote.c (remote_resume, init_all_packet_configs)
1122 (set_remote_protocol_E_packet_cmd)
1123 (show_remote_protocol_E_packet_cmd)
1124 (remote_protocol_E, show_remote_cmd, _initialize_remote)
1125 (remote_protocol_e, set_remote_protocol_e_packet_cmd)
1126 (show_remote_protocol_e_packet_cmd): Ditto.
1130 * hppa-tdep.h (enum hppa_regnum): Name enum, add HPPA_R1_REGNUM.
1132 * hppa-tdep.h: Update copyright year.
1133 (struct trad_frame_saved_reg): Add opaque declaration.
1135 * amd64-tdep.c (amd64_return_value): Implement
1136 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1138 * m68k-tdep.c (m68k_convert_register_p, m68k_register_to_value)
1139 (m68k_value_to_register): New functions.
1140 (m68k_gdbarch_init): Set convert_register_p, register_to_value and
1143 * defs.h (enum return_value_convention): Add
1144 RETURN_VALUE_ABI_RETURNS_ADDRESS and
1145 RETURN_VALUE_ABI_PRESERVES_ADDRESS.
1146 * infcmd.c (legacy_return_value): New function.
1147 (print_return_value): Rwerite to implement
1148 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1149 * values.c (using_struct_return): Check for inequality to
1150 RETURN_VALUE_REGISTER_CONVENTION instead of equality to
1151 RETURN_VALUE_STRUCT_CONVENTION.
1152 * i386-tdep.c (i386_return_value): Implement
1153 RETURN_VALUE_ABI_RETURNS_ADDRESS.
1155 * vax-tdep.c: Tweak comments. Reorder include files. Don't
1156 include "symtab.h", "opcode/vax.h" and "inferior.h".
1157 (vax_skip_prologue): Replace calls to read_memory_integer by calls
1158 to read_memory_unsigned_integer.
1159 (vax_gdbarch_init): Reorder.
1160 (_initialize_vax_tdep): Spell out prototype.
1161 * Makefile.in (vax-tdep.o): Update dependencies.
1165 * infrun.c (resume): Delete call to DO_DEFERRED_STORES.
1166 * target.c (target_detach, target_disconnect): Ditto.
1168 * infcall.c (call_function_by_hand): When no
1169 DEPRECATED_SAVE_DUMMY_FRAME_TOS call generic_save_dummy_frame_tos.
1170 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set
1171 DEPRECATED_SAVE_DUMMY_FRAME_TOS.
1172 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1173 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1175 * gdbarch.sh (DEPRECATED_FIX_CALL_DUMMY): Delete.
1176 * gdbarch.h, gdbarch.c: Re-generate.
1177 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1178 deprecated_fix_call_dummy.
1179 * v850-tdep.c (v850_gdbarch_init): Ditto.
1180 * infcall.c (call_function_by_hand): Do not call
1181 DEPRECATED_FIX_CALL_DUMMY.
1183 * gdbarch.sh (DEPRECATED_CALL_DUMMY_WORDS)
1184 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Delete.
1185 * gdbarch.h, gdbarch.c: Re-generate.
1186 * arm-linux-tdep.c (arm_linux_call_dummy_words)
1187 (arm_linux_init_abi): Do not set deprecated_call_dummy_words or
1188 deprecated_sizeof_call_dummy_words.
1189 * arm-tdep.c (arm_call_dummy_words, arm_gdbarch_init): Ditto.
1190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1191 * v850-tdep.c (v850_gdbarch_init): Ditto.
1192 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
1193 * ns32k-tdep.c (ns32k_call_dummy_words, ns32k_gdbarch_init): Ditto.
1194 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1195 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1196 * arch-utils.h (legacy_call_dummy_words)
1197 (legacy_sizeof_call_dummy_words): Delete declarations.
1198 * arch-utils.c (legacy_call_dummy_words)
1199 (legacy_sizeof_call_dummy_words): Delete variables.
1201 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Delete.
1202 * gdbarch.h, gdbarch.c: Re-generate.
1203 * inferior.h (PUSH_DUMMY_FRAME): Delete macro.
1204 * infcall.c (call_function_by_hand): Eliminate call to
1205 DEPRECATED_PUSH_DUMMY_FRAME.
1206 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1208 (ns32k_push_dummy_frame): Delete function.
1210 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1211 deprecated_call_dummy_breakpoint_offset or
1212 deprecated_call_dummy_start_offset.
1213 * dummy-frame.c, arm-tdep.c: Update comments.
1214 * gdbarch.sh (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET)
1215 (DEPRECATED_CALL_DUMMY_START_OFFSET): Delete.
1216 * gdbarch.h, gdbarch.c: Re-generate.
1218 * infcall.c (legacy_push_dummy_code): Delete function.
1219 (push_dummy_code): Delete call.
1221 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete.
1222 * gdbarch.h, gdbarch.c: Re-generate.
1223 * blockframe.c (legacy_frame_chain_valid): Simplify by eliminating
1224 DEPRECATED_USE_GENERIC_DUMMY_FRAMES.
1225 * infcall.c (legacy_push_dummy_code, call_function_by_hand): Ditto.
1226 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Ditto.
1228 * breakpoint.h (deprecated_frame_in_dummy): Delete declaration.
1229 (struct frame_info): Delete opaque declaration.
1230 * breakpoint.c (deprecated_frame_in_dummy): Delete function.
1231 * frame.c (get_frame_type): Delete call.
1233 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set deprecated
1235 * inferior.h (deprecated_pc_in_call_dummy_on_stack): Delete.
1236 * blockframe.c (deprecated_pc_in_call_dummy_on_stack): Delete.
1240 * alphanbsd-tdep.c: Include "gdb_string.h".
1241 * armnbsd-tdep.c: Update copyright year.
1242 Include "gdb_string.h".
1243 * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update
1246 * delta68-nat.c: Remove file.
1247 * m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address)
1248 (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions.
1249 * Makefile.in (ALLDEPFILES): Remove delta68-nat.c.
1250 (delta68-nat.o): Remove dependency.
1252 * m68k-tdep.c (m68k_frameless_function_invocation): Remove
1254 (m68k_gdbarch_init): Don't set
1255 deprecated_frameless_function_invocation.
1259 * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Use
1260 read_memory_nobpt for code reading when doing frame unwinding.
1261 * hppa-linux-tdep.c (insns_match_pattern): Likewise.
1265 * hppa-linux-tdep.c (hppa_linux_sigtramp_find_sigcontext): Pass in pc
1266 instead of sp, handle sigaltstack case.
1267 (hppa_linux_sigtramp_frame_unwind_cache): Adjust calls to
1268 hppa_linux_sigtramp_find_sigcontext, and set base to the frame of the
1269 signal handler and not that of the caller.
1270 (hppa_linux_sigtramp_unwind_sniffer): Adjust calls to
1271 hppa_linux_sigtramp_find_sigcontext.
1275 * Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and
1277 (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules.
1278 * hppa-linux-nat.c (fetch_register, store_register): Define.
1279 (fetch_inferior_registers, store_inferior_registers): Define.
1280 (supply_gregset): Add comment and clean up some unneeded code.
1281 (fill_gregset): Add comment and fix so that it saves registers in
1282 the right place in the gregset.
1283 (fill_fpregset): Fix buffer overrun problem.
1284 * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
1288 * hppa-tdep.c (hppa_frame_prev_register_helper): New function to
1289 do common handling of the pcoqt register.
1290 (hppa_frame_prev_register, hppa_stub_frame_prev_register): Convert
1291 to use helper function.
1292 (hppa_frame_unwind_sniffer): Only use if unwind entry is present.
1293 (hppa_fallback_frame_cache, hppa_fallback_frame_this_id)
1294 (hppa_fallback_frame_prev_register, hppa_fallback_frame_unwind): New
1295 generic fallback unwinder when all else fails.
1296 (hppa_gdbarch_init): Add fallback sniffer.
1297 * hppa-tdep.h (hppa_frame_prev_register_helper): Prototype.
1298 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_prev_register): Convert
1299 to use helper function.
1303 * config/djgpp/fnchange.lst: Add translation rules for
1304 gdb.arch/powerpc-aix-prologue.c and gdb.arch/powerpc-aix-prologue.exp.
1308 * frame.c (get_prev_frame_1): Work around GCC bug.
1309 * frame.h: Add comment about GCC bug.
1313 * observer.c: Include "commands.h" and "gdbcmd.h".
1314 (observer_debug, _initialize_observer): Add the
1315 command "set/show debug observer".
1316 * observer.sh: When observer debugging, log notify calls.
1317 * Makefile.in (observer.o): Update dependencies.
1321 * cli/cli-decode.c: Fix "SHOW_DOR" comment typeos.
1325 * aix-thread.c (fetch_regs_kernel_thread, fill_gprs64,
1326 fill_gprs32, store_regs_kernel_thread): Use tdep->ppc_gp0_regnum
1327 to recognize gpr regnums, instead of assuming that
1328 tdep->ppc_fp0_regnum marks the end of the general-purpose
1331 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Assert that
1332 the given architecture has floating-point registers.
1336 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Replace with
1338 * gdbarch.h, gdbarch.c: Re-generate.
1339 * ns32k-tdep.c (ns32k_gdbarch_init): Do not set
1340 deprecated_use_generic_dummy_frames.
1344 * NEWS: Mention Cygwin DWARF 2 support.
1348 * objfiles.h (struct entry_info): Delete unused fields
1349 deprecated_entry_file_lowpc and deprecated_entry_file_highpc.
1350 * objfiles.c (init_entry_point_info, objfile_relocate): Update.
1351 * mipsread.c (mipscoff_symfile_read): Update.
1352 * mdebugread.c (parse_partial_symbols): Update.
1353 * dwarfread.c (read_file_scope): Update.
1354 * dwarf2read.c (read_file_scope): Update.
1355 * dbxread.c (read_dbx_symtab, read_dbx_symtab): Update.
1356 * coffread.c (complete_symtab): Update.
1360 * infcall.c (_initialize_infcall): Fix typo.
1364 * cli/cli-decode.c (add_setshow_zinteger_cmd): New function.
1365 * command.h (add_setshow_zinteger_cmd): Declare.
1369 * config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM)
1370 (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM)
1371 (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM)
1372 (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM)
1373 (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM)
1374 (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM)
1375 (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM
1377 * hppa-tdep.h: ... to here, with HPPA_ prefix.
1378 * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h)
1379 * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig)
1380 (hppa64_hpux_frame_find_saved_regs_in_sig)
1381 (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage.
1382 * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise.
1383 * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum)
1384 (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache)
1385 (hppa_linux_sigtramp_frame_prev_register): Likewise.
1386 * hppa-tdep.c (hppa32_return_value, hppa64_return_value)
1387 (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align)
1388 (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache)
1389 (hppa_frame_prev_register, hppa_stub_frame_unwind_cache)
1390 (hppa_stub_frame_prev_register, hppa_unwind_dummy_id)
1391 (hppa_skip_permanent_breakpoint, hppa_instruction_nullified)
1392 (hppa32_register_type, hppa_cannot_store_register)
1393 (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise.
1394 * hppah-nat.c (store_inferior_registers, fetch_register): Likewise.
1395 * hpread.c (hpread_process_one_debug_symbol): Likewise.
1396 * pa64solib.c (pa64_solib_have_load_event)
1397 (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname)
1398 (pa64_solib_unloaded_library_pathname): Likewise.
1399 * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event)
1400 (som_solib_library_pathname): Likewise.
1404 * breakpoint.c (create_breakpoints): Copy the ignore count and
1405 thread id over from the pended breakpoint to the actual
1410 * gdbarch.sh (PARM_BOUNDARY): Delete.
1411 gdbarch.h, gdbarch.c: Re-generate.
1412 * valops.c (PARM_BOUNDARY): Delete macro.
1413 (value_push): Delete PARM_BOUNDARY code.
1414 * m68k-tdep.c (m68k_gdbarch_init): Do not set parm_boundary.
1418 * ppc-linux-nat.c (fetch_ppc_registers, store_ppc_registers):
1419 Don't assume that the gprs, fprs, and UISA sprs are
1420 contiguous, start at register number zero, and end with fpscr.
1421 Instead, use the numbers from the tdep structure.
1423 * config/rs6000/tm-rs6000.h (FP0_REGNUM): Document that this
1424 should no longer be used in code specific to the RS6000 and its
1426 * ppc-tdep.h (struct gdbarch_tdep): Add 'ppc_fp0_regnum' member.
1427 * rs6000-tdep.c (rs6000_gdbarch_init): Initialize
1428 tdep->ppc_fp0_regnum.
1429 (ppc_supply_fpregset, ppc_collect_fpregset)
1430 (rs6000_push_dummy_call, rs6000_extract_return_value)
1431 (rs6000_dwarf2_stab_reg_to_regnum, rs6000_store_return_value)
1432 (rs6000_frame_cache): Use tdep->ppc_fp0_regnum instead of
1434 * aix-thread.c (supply_fprs, fetch_regs_kernel_thread)
1435 (fill_gprs64, fill_gprs32, fill_fprs, store_regs_kernel_thread):
1437 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_fetch_registers,
1438 bdm_ppc_store_registers): Same.
1439 * ppc-linux-nat.c (ppc_register_u_addr, fetch_register)
1440 (store_register, fill_fpregset): Same.
1441 * ppc-linux-tdep.c (ppc_linux_sigtramp_cache)
1442 (ppc_linux_supply_fpregset): Same.
1443 * ppcnbsd-nat.c (getfpregs_supplies): Same.
1444 * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg):
1446 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call,
1447 do_ppc_sysv_return_value, ppc64_sysv_abi_push_dummy_call,
1448 ppc64_sysv_abi_return_value): Same.
1449 * rs6000-nat.c (regmap, fetch_inferior_registers)
1450 (store_inferior_registers, fetch_core_registers): Same.
1454 * m68knbsd-nat.c: Remove file.
1455 * m68knbsd-tdep.c: Remove file.
1456 * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove
1458 * configure.host: Add m68k-*-netbsdelf*.
1459 * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd.
1460 * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o,
1461 solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o.
1463 * config/m68k/nbsdelf.mh: New file.
1464 * config/m68k/nbsd.mt: New file.
1465 * config/m68k/nbsdaout.mt: Remove file.
1466 * config/m68k/tm-nbsd.h: Don't include <sys/param.h>,
1467 <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h".
1468 (BPT_VECTOR, STACK_END_ADDR): Remove defines.
1469 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise.
1470 (use_struct_convention): Remove prototype.
1471 (USE_STRUCT_CONVENTION): Remove define.
1472 * config/m68k/xm-nbsd.h: Remove file.
1476 * m68k-tdep.c (m68k_gdbarch_init): Default to using
1477 reg_struct_return method (as gcc usually does for cross targets).
1481 Committed by Andrew Cagney.
1482 * s390-tdep.c (s390_sigtramp_frame_unwind_cache): Account for
1483 alignment padding when accessing ucontext struct members.
1487 * config/ppc-tdep.h (struct gdbarch_tdep): Delete
1488 'ppc_gplast_regnum' member.
1489 (ppc_num_gprs): New enum constant.
1490 * ppc-linux-nat.c (ppc_register_u_addr): Use tdep->ppc_gp0_regnum
1491 and ppc_num_gprs instead of tdep->ppc_gplast_regnum.
1492 * rs6000-nat.c (regmap, fetch_inferior_registers,
1493 store_inferior_registers): Same.
1494 * rs6000-tdep.c (e500_pseudo_register_read)
1495 (e500_pseudo_register_write): Same.
1496 (rs6000_gdbarch_init): Don't initialize tdep->ppc_gplast_regnum.
1498 * config/rs6000/tm-rs6000.h (FPLAST_REGNUM): Delete #definition.
1499 * ppc-tdep.h (ppc_num_fprs): New enum constant.
1500 * aix-thread.c (fetch_regs_kernel_thread, fill_fprs,
1501 store_regs_kernel_thread): Use FP0_REGNUM + ppc_num_fprs, not
1503 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
1505 * ppc-linux-nat.c (ppc_register_u_addr): Same.
1506 * rs6000-nat.c (regmap, fetch_inferior_registers)
1507 (store_inferior_registers): Same.
1509 * aix-thread.c (fill_fprs): Fix off-by-one error comparing regno
1514 * dwarf2read.c (dwarf2_create_include_psymtab): Fix build
1515 failure detected by recent versions of GCC.
1516 (psymtab_to_symtab_1): No longer use the PST_PRIVATE macro
1517 to be consistent with the usage in dwarf2_create_include_psymtab.
1521 * mips-tdep.c (mips_gdbarch_init): Fix typo in comment.
1522 (heuristic_proc_start): Whitespace cleanup.
1526 * sun3-nat.c: Remove file.
1527 * Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove
1529 (ALLDEPFILES): Remove sun3-nat.c.
1530 (sun3-nat.o): Remove dependencies.
1532 * i386-interix-nat.c, i386-interix-tdep.c,
1533 config/i386/nm-interix.h, config/i386/interix.mh,
1534 config/i386/interix.mt: Remove files.
1535 * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove
1540 * m68k-tdep.h (struct gdbarch_tdep): Add member
1541 struct_value_regnum.
1542 (m68k_svr4_init_abi): New prototype.
1543 * m68k-tdep.c: Include "floatformat.h". Add comment about all the
1544 different calling conventions.
1545 (m68k_extract_return_value): Remove code dealing with single-field
1547 (m68k_store_return_value): Remove code dealing with single-field
1548 structs. Correctly store return values of 5, 6, 7 or 8 bytes.
1549 (m68k_extract_struct_value_address): Remove function.
1550 (m68k_svr4_extract_return_value,m68k_svr4_store_return_value)
1551 (m68k_reg_struct_return_p, m68k_return_value)
1552 (m68k_svr4_return_value): New functions.
1553 (m68k_use_struct_convention): Remove function.
1554 (m68k_push_dummy_call): Use new struct_value_regnum member of
1555 `struct gdbarch_tdep' instead of hardcoded register number to
1557 (m68k_svr4_init_abi): New function.
1558 (m68k_gdbarch_init): Don't set extract_return_value,
1559 store_return_values, deprecated_extract_struct_value_address and
1560 use_struct_convention. Set return_value instead. Initialize new
1561 struct_value_regnum member of `struct gdbarch_tdep'.
1562 * m68klinux-tdep.c: Update copyright year.
1563 (m68k_linux_extract_return_value, m68k_linux_store_return_value)
1564 (m68k_linux_extract_struct_value_address): Remove function.
1565 (m68k_linux_init_abi): Don't set extract_return_value,
1566 store_return_values, deprecated_extract_struct_value_address and
1567 use_struct_convention. Call m68k_svr4_init_abi but override the
1568 new struct_value_regnum member of `struct gdbarch_tdep'.
1569 * Makefile.in (m68k-tdep.o): Update dependencies.
1573 * dwarf2read.c (line_header): Add new included_p field in
1575 (partial_die_info): New field has_stmt_list. New field line_offset.
1576 (dwarf2_create_include_psymtab): New function.
1577 (dwarf2_build_include_psymtabs): New function.
1578 (add_file_name): Add forward declaration. Initialize new field.
1579 (dwarf_decode_lines): Add new parameter. Enhance this procedure
1580 to be able to determine the list of files included by the
1581 given unit, and build their associated psymtabs.
1582 (dwarf2_build_psymtabs_hard): Build the psymtabs for the included
1584 (psymtab_to_symtab_1): Build the symtabs of all dependencies as well.
1585 (read_file_scope): Update call to dwarf_decode_lines.
1586 (read_partial_die): Handle DW_AT_stmt_list attributes.
1591 * configure.in: Revert special case for osf5.*.
1592 * configure: Regenerate.
1596 Move the symbol-file-from-memory functions into their own file.
1597 * symfile-mem.c, symfile-mem.h: New files.
1598 * symfile.c (symbol_file_add_from_bfd): New function.
1599 (symbol_file_add): Call symbol_file_add_from_bfd.
1600 (symbol_file_add_from_memory, add_symbol_file_from_memory_command):
1601 Moved to symfile-mem.c.
1602 (_initialize_symfile): Move definition of
1603 add-symbol-file-from-memory command to symfile-mem.c.
1604 * symfile.h (symbol_file_add_from_bfd): New declaration.
1605 * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o.
1606 * config/powerpc/linux.mt (TDEPFILES): Same.
1607 * Makefile.in (SFILES): Add symfile-mem.c.
1608 (symfile_mem_h): New variable.
1609 (HFILES_NO_SRCDIR): Add symfile-mem.h.
1610 (symfile-mem.o): New rule.
1614 * breakpoint.c (insert_bp_location): Use get_frame_id, and
1615 frame_find_by_id instead of frame_relative_level.
1616 (do_enable_breakpoint): Ditto.
1617 * thread.c: Update copyright.
1618 (info_threads_command): Ditto, simplify.
1620 * frame.c (deprecated_generic_get_saved_register): Delete
1621 function, moved to "xstormy16-tdep.c".
1622 * xstormy16-tdep.c (xstormy16_get_saved_register): Inline
1623 deprecated_generic_get_saved_register from "frame.c".
1624 (xstormy16_frame_saved_register): Call
1625 xstormy16_get_saved_register.
1626 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Make
1628 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Delete.
1629 * frame.h (deprecated_generic_get_saved_register): Delete.
1633 * dwarfread.c: Update documentation on the state of dwarf-1.
1637 * stack.c (select_frame_command): Delete call to
1638 frame_relative_level.
1639 (print_frame, set_backtrace_limit_command, backtrace_limit_info):
1641 (frame_info): Do not print FRAMELESS.
1642 (print_block_frame_labels): Replace DEPRECATED_STREQ.
1643 (catch_info): Delete #if0 code.
1645 * frame.c (create_sentinel_frame): Set type to SENTINEL_FRAME.
1646 * dummy-frame.c (dummy_frame_this_id): Use get_frame_type, instead
1647 of frame_relative_level.
1648 * sentinel-frame.c (sentinel_frame_unwinder): Set unwinder's type
1650 * frame.h (enum frame_type): Add SENTINEL_FRAME.
1651 * s390-tdep.c (s390_prologue_frame_unwind_cache): Delete calls to
1652 frame_relative_level.
1654 * frame.h (deprecated_set_frame_type): Delete declaration.
1655 * frame.c (deprecated_set_frame_type): Delete function, update
1658 * gdbarch.sh (DEPRECATED_PC_IN_SIGTRAMP): Delete.
1659 * gdbarch.h, gdbarch.c: Re-generate.
1660 * shnbsd-tdep.c (shnbsd_init_abi): Do not set pc_in_sigtramp.
1661 (shnbsd_pc_in_sigtramp): Delete.
1662 * i386-interix-tdep.c (i386_interix_init_abi): Do not set
1664 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Do not set
1666 * frame.h: Update comments.
1667 * ppc-linux-tdep.c: Update comments.
1668 * breakpoint.c (bpstat_what): Update comments.
1670 * Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix
1671 m68klinux-tdep.o's dependencies, were previously added to
1674 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Use pc_in_sigtramp.
1675 * alpha-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp.
1676 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
1677 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
1678 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
1680 * Makefile.in (m68klinux-nat.o): Update dependencies.
1681 * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1682 (m68k_linux_sigtramp_frame_cache)
1683 (m68k_linux_sigtramp_frame_this_id)
1684 (m68k_linux_sigtramp_frame_prev_register)
1685 (m68k_linux_sigtramp_frame_unwind)
1686 (m68k_linux_sigtramp_frame_sniffer)
1687 (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from
1688 m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable
1689 names, use trad-frame.h.
1690 * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info.
1691 (struct m68k_sigtramp_info): Delete.
1692 * m68k-tdep.c (m68k_sigtramp_frame_cache)
1693 (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register)
1694 (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer)
1695 (m68k_gdbarch_init): Delete all the sigtramp code, moved to
1698 * infrun.c (check_sigtramp2): Delete check for
1699 DEPRECATED_PC_IN_SIGTRAMP and INNER_THAN.
1703 * m68k-tdep.h (m68kbsd_fpreg_offset): New prototype.
1707 * frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h".
1708 (frv_linux_sigtramp_frame_cache)
1709 (frv_linux_sigtramp_frame_this_id)
1710 (frv_linux_sigtramp_frame_prev_register)
1711 (frv_linux_sigtramp_frame_unwind)
1712 (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c,
1713 include "linux" in function and variable names, directly call
1714 frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use
1715 the latest trad-frame code.
1716 (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do
1717 not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp
1718 * Makefile.in (frv-linux-tdep.o): Update dependencies.
1719 * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration.
1720 * frv-tdep.c (frv_sigtramp_frame_cache)
1721 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
1722 (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to
1724 (frv_gdbarch_init): Do not append a sigtramp sniffer.
1725 (struct gdbarch_tdep): Delete sigcontext_reg_addr.
1726 (frv_set_sigcontext_reg_addr): Delete function.
1728 * gdbarch.sh (DEPRECATED_SIGTRAMP_START)
1729 (DEPRECATED_SIGTRAMP_END): Delete.
1730 * gdbarch.h, gdbarch.c: Re-generate.
1731 * arch-utils.c (legacy_pc_in_sigtramp): Simplify.
1732 * config/vax/tm-vaxbsd.h: Update copyright.
1733 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1734 (DEPRECATED_IN_SIGTRAMP): Define.
1735 * config/m68k/tm-nbsd.h: Update copyright.
1736 (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Delete.
1737 (DEPRECATED_IN_SIGTRAMP): Define.
1741 * dwarf2-frame.c (read_encoded_value): Handle DW_EH_PE_funcrel
1742 encondings. Fixes PR gdb/1628.
1744 * dwarf2-frame.c (execute_cfa_program): Complain if we encounter a
1745 DW_CFA_restore state without a matching DW_CFA_remember_state
1746 instead of aborting. Fixes PR backtrace/1589.
1750 * MAINTAINERS: Add self as AIX maintainer.
1751 Update my e-mail address in write-after-approval section.
1755 * frame.c (frame_type_from_pc): Delete call to PC_IN_SIGTRAMP.
1756 (legacy_get_prev_frame): Ditto.
1758 * mips-tdep.c (mips_pc_in_sigtramp): Delete.
1759 (mips_gdbarch_init): Do not set pc_in_sigtramp.
1760 * mipsread.c (sigtramp_address): Delete extern variable.
1761 (mipscoff_new_init): Delete reference.
1762 * mdebugread.c (sigtramp_address, sigtramp_end): Delete variables.
1763 (fixup_sigtramp): Delete function.
1764 * config/mips/tm-mips.h (sigtramp_address, sigtramp_end)
1765 (fixup_sigtramp): Delete declarations.
1767 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Do not set
1768 deprecated_pc_in_sigtramp.
1769 (ppcnbsd_pc_in_sigtramp): Delete function.
1773 * config/m68k/nm-nbsd.h: Tweak comments.
1774 * config/m68k/nm-nbsdaout.h: Likewise.
1778 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Call
1779 legacy_pc_in_sigtramp.
1780 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Ditto.
1784 Add OpenBSD/m68k support.
1785 * NEWS (New native configurations): Mention OpenBSD/m68k.
1786 * m68kbsd-tdep.c: New file.
1787 * m68kbsd-nat.c: New file.
1788 * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c.
1789 (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies.
1790 * configure.host: Add m68k-*-openbsd.
1791 * configure.tgt: Add m68k-*-openbsd.
1792 * config/m68k/tm-obsd.h: New file.
1793 * config/m68k/obsd.mt: New file.
1794 * config/m68k/obsd.mh: New file.
1795 * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and
1800 * mipsnbsd-tdep.c (mipsnbsd_pc_in_sigtramp): Delete function.
1801 (mipsnbsd_init_abi): Do not set pc_in_sigtramp.
1805 * m68k-tdep.c (REMOTE_BPT_VECTOR): Remove define.
1806 * config/m68k/tm-nbsd.h (REMOTE_BPT_VECTOR): Remove define.
1810 Revert 2004-04-16 change.
1811 * i386-tdep.c (i386_gdbarch_init): Fix comment typos.
1812 (i386_coff_init_abi): Remove.
1813 * i386-tdep.h (i386_coff_init_abi): Remove.
1814 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Remove call to above.
1818 * blockframe.c (find_pc_partial_function): Delete use of
1819 DEPRECATED_PC_IN_SIGTRAMP, DEPRECATED_SIGTRAMP_START and
1820 DEPRECATED_SIGTRAMP_END.
1822 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Delete.
1823 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Delete.
1824 * config/mips/tm-nbsd.h: Delete undef DEPRECATED_IN_SIGTRAMP.
1825 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Delete.
1826 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Delete.
1828 * defs.h (deprecated_inside_entry_file): Delete declaration.
1829 * blockframe.c (deprecated_inside_entry_file): Delete function.
1830 (legacy_frame_chain_valid): Delete call.
1831 * sh64-tdep.c (sh64_frame_chain): Delete call.
1832 * objfiles.h: Update comments.
1833 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Delete
1835 * frame.c (get_prev_frame): Delete call, update comments.
1839 * MAINTAINERS (Write After Approval): Add myself.
1843 * gdbarch.sh (BELIEVE_PCC_PROMOTION_TYPE): Delete.
1844 * gdbarch.h, gdbarch.c: Re-generate.
1845 * stabsread.c (define_symbol): Delete BELIEVE_PCC_PROMOTION_TYPE
1850 * gdb-events.sh (selected_thread_changed)
1851 (selected_frame_level_changed, target_changed): Delete.
1852 * gdb-events.h, gdb-events.c: Re-generate.
1853 * valops.c (value_assign): Update.
1854 * stack.c (select_frame_command, up_silently_base)
1855 (down_silently_base): Update.
1859 * mips-tdep.c (mips_register_type): Re-write, handle 32-bit ABI
1860 registers correctly.
1861 (print_gp_register_row, mips32_heuristic_proc_desc)
1862 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call)
1863 (mips_o64_push_dummy_call, mips_eabi_push_dummy_call): Eliminate
1864 references to mips_isa_regsize.
1868 * mips-tdep.c (struct gdbarch_tdep): Delete
1869 mips_fp_register_double.
1870 (FP_REGISTER_DOUBLE): Delete macro, replace with test for
1872 (mips_gdbarch_init): Do not set mips_fp_register_double.
1873 (mips_dump_tdep): Do not print FP_REGISTER_DOUBLE.
1877 Committed by Andrew Cagney.
1878 * infrun.c (handle_inferior_event): Rely on frame IDs to detect
1883 * mips-tdep.c (mips_abi_regsize): Replace tdep parameter with
1884 gdbarch, use mips_abi, update callers.
1885 (mips_stack_argsize): Replace tdep parameter with gdbarch, use
1886 mips_abi_regsize, update callers.
1887 (struct gdbarch_tdep): Delete mips_default_stack_argsize and
1888 mips_default_abi_regsize.
1889 (mips_gdbarch_init): Do not set mips_default_stack_argsize and
1890 mips_default_abi_regsize.
1894 * mips-tdep.c (mips_abi_regsize): Rename mips_saved_regsize.
1895 (mips_abi_regsize_string): Rename mips_saved_regsize_string.
1896 (struct gdbarch_tdep): Rename mips_default_saved_regsize to
1897 mips_default_abi_regsize.
1898 (mips_isa_regsize): Rename mips_regisze.
1899 * mipsnbsd-tdep.c: Update.
1900 * mips-linux-tdep.c: Update.
1901 * irix5-nat.c: Update.
1902 * mips-tdep.h (mips_isa_regsize): Update.
1904 * gdb-events.sh (WITH_GDB_EVENTS): Delete macro and references.
1905 Delete all disabled code.
1906 * gdb-events.h, gdb-events.c: Re-generate.
1911 * i386-tdep.c (i386_skip_prologue): follow the last jump only if
1912 the function begins with a branch instruction.
1916 * i386-tdep.c: Fix spelling mistakes.
1921 * configure.in (mips-sgi-irix5*): Define _KMEMUSER for
1923 * acconfig.h: Provide default _KMEMUSER value.
1924 * config.in, configure: Re-generate.
1925 * NEWS: Mention fix.
1929 * configure.host (hppa*-*-linux*): New target.
1930 * configure.tgt (hppa*-*-linux*): Likewise.
1931 * hppa-tdep.c (hppa_gdbarch_init): Set cannot_fetch_register, move
1932 gdbarch_init_osabi() call earlier so that osabi-specific frame
1933 unwinders can be registered first.
1934 * config/djgpp/fnchange.lst: Add entries for hppa-linux-tdep.c and
1936 * config/pa/tm-hppa.h (ISR_REGNUM, PID0_REGNUM, PID1_REGNUM)
1937 (PID2_REGNUM, PID3_REGNUM): Add definitions of some register numbers.
1938 * config/pa/linux.mh: New file.
1939 * config/pa/linux.mt: New file.
1940 * config/pa/nm-linux.h: New file.
1941 * config/pa/xm-linux.h: New file.
1942 * hppa-linux-nat.c: New file.
1943 * hppa-linux-tdep.c: New file.
1947 * hppa-tdep.c (hppa32_return_value): Handle both 4- and 8-byte fp
1949 (hppa32_push_dummy_call): Fix small struct and floating point argument
1950 passing, and make sure the stack frame is properly aligned.
1954 * stack.c (print_stack_frame): Fix description.
1956 * NEWS: Mention gdb/gdbserver/configure execute permission
1957 changed. PR server/519.
1961 * stack.c (print_stack_frame_stub): Delete declaration.
1962 (struct print_stack_frame_args, print_stack_frame)
1963 (print_frame_info, print_frame): Replace "source" with print what.
1964 Replace "print" with "print_level". Replace "args" with
1966 * frame.h (show_and_print_stack_frame, print_stack_frame)
1967 (print_frame_info): Update declarations.
1968 * stack.c (select_and_print_frame, frame_command)
1969 (current_frame_command, up_command, down_command): Update calls -
1970 use get_selected_frame, pass "enum print_what" for source, do not
1971 call frame_relative_level.
1972 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Ditto.
1973 * remote-rdp.c (remote_rdp_open): Ditto.
1974 * remote-mips.c (common_open): Ditto.
1975 * remote-e7000.c (e7000_start_remote): Ditto.
1976 * ocd.c (ocd_start_remote): Ditto.
1977 * mi/mi-main.c (mi_cmd_exec_return): Ditto.
1978 * infrun.c (normal_stop): Ditto.
1979 * inflow.c (kill_command): Ditto.
1980 * infcmd.c (finish_command): Ditto.
1981 * corelow.c (core_open): Ditto.
1982 * tracepoint.c (finish_tfind_command): Ditto.
1983 * thread.c (info_threads_command, info_threads_command)
1984 (restore_current_thread, do_captured_thread_select): Ditto.
1985 * ada-tasks.c (task_command): Ditto.
1989 * frame.c: Include "observer.h".
1990 (frame_observer_target_changed): New function.
1991 (_initialize_frame): Attach target_changed observer.
1992 * regcache.c: Include "observer.h".
1993 (regcache_observer_target_changed): New function.
1994 (_initialize_regcache): Attach target_changed observer.
1995 * valops.c: Include "observer.h".
1996 (value_assign): Notify target_changed event when modifying register.
1997 * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).
2002 * breakpoint.c (free_valchain): New function.
2003 (insert_bp_location, delete_breakpoint): Use free_valchain.
2004 (remove_breakpoint): Do not remove the valchain.
2005 (bpstat_stop_status): If not stopped by watchpoint, skip
2006 watchpoints when generating stop status list.
2007 * infrun.c (handle_inferior_event): Make
2008 stepped_after_stopped_by_watchpoint a global variable.
2009 * remote.c (remote_stopped_data_address): Return watch data
2010 address rather than zero if stepped_after_stopped_by_watchpoint is
2016 * configure.in: Check for curses after termcap.
2017 On osf5.*, do not check for ncurses.
2018 * configure: Regenerate.
2022 * ppcobsd-nat.c: Include "ppc-tdep.h".
2023 * Makefile.in (ppcobsd-nat.o): Update dependencies.
2025 * stack.c (return_command): Use CHECK_TYPEDEF on the return type.
2026 Fixes PR tdep/1623 and PR tdep/1624.
2030 * xmodem.h, xmodem.c: Remove files.
2031 * Makefile.in: Remove references to xmodem.h, xmodem.c.
2035 * hppa-tdep.c (hppa_stub_unwind_cache, hppa_stub_frame_unwind_cache)
2036 (hppa_stub_frame_this_id, hppa_stub_frame_prev_register)
2037 (hppa_stub_frame_unwind, hppa_stub_unwind_sniffer): New stub unwinder
2038 for handling stackless frames.
2039 (hppa_gdbarch_init): Link in hppa_stub_unwind_sniffer.
2043 * hppa-tdep.c (hppa_frame_cache): Handle the case when frame unwind
2044 starts at a pc before the frame is created.
2048 * ChangeLog-2002: Fix year in one of the ChangeLog entries.
2052 * rs6000-tdep.c (rs6000_extract_return_value): When extracting a float,
2053 use convert_typed_floating to get the appropriate format.
2057 * hppa-tdep.h (find_unwind_entry, hppa_get_field, hppa_extract_5_load)
2058 (hppa_extract_5R_store, hppa_extract_5r_store, hppa_extract_17)
2059 (hppa_extract_21, hppa_extract_14, hppa_low_sign_extend)
2060 (hppa_sign_extend): Add prototype.
2061 * hppa-tdep.c (get_field, extract_5_load, extract_5R_store)
2062 (extract_5r_store, extract_17, extract_21, extract_14, low_sign_extend)
2063 (sign_extend): Rename with hppa_ prefix and make non-static. Other
2064 hppa targets will also use these functions.
2065 (find_unwind_entry): Remove prototype (moved to hppa-tdep.h).
2066 (hppa_in_solib_call_trampoline, hppa_in_solib_return_trampoline)
2067 (hppa_skip_trampoline_code): Move to hppa-hpux-tdep.c
2068 (hppa_gdbarch_init): Remove gdbarch setting of
2069 skip_trampoline_code, in_solib_call_trampoline and
2070 in_solib_return_trampoline.
2071 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline)
2072 (hppa64_hpux_in_solib_call_trampoline): New functions, split from
2073 hppa_in_solib_call_trampoline.
2074 (hppa_hpux_in_solib_return_trampoline, hppa_hpux_skip_trampoline_code):
2075 Moved from hppa-tdep.c.
2076 (hppa_hpux_init_abi): Set gdbarch for skip_trampoline_code,
2077 in_solib_call_trampoline and in_solib_return_trampoline.
2081 * hppa-tdep.c (hppa_debug): New variable.
2082 (find_unwind_entry, hppa_frame_cache): Add debug output.
2083 (_initialize_hppa_tdep): Add command to set debug flag.
2087 * ppcnbsd-tdep.c: Update copyright. Include "tramp-frame.h" and
2089 (ppcnbsd_sigtramp_cache_init, ppcnbsd_sigtramp): Implement a NetBSD
2090 signal trampoline unwinder.
2091 (ppcnbsd_init_abi): Register ppcnbsd_sigtramp.
2095 Add OpenBSD/powerpc support.
2096 * NEWS (New native configurations): Mention OpenBSD/powerpc.
2097 * ppc-tdep.h (struct ppc_reg_offsets): New structure.
2098 (ppc_supply_gregset, ppc_supply_fpregset, ppc_collect_gregset)
2099 (ppc_collect_fpregset): New prototypes.
2100 * ppcobsd-nat.c: New file.
2101 * ppcobsd-tdep.c: New file.
2102 * ppcobsd-tdep.h: New file.
2103 * rs6000-tdep.c: Include "regset.h".
2104 (ppc_supply_reg, ppc_collect_reg, ppc_supply_gregset)
2105 (ppc_supply_fpregset, ppc_collect_gregset, ppc_collect_fpregset):
2107 * Makefile.in (ALLDEPFILES): Add pccobsd-nat.c and ppcobsd-tdep.c.
2108 (ppcobsd-nat.o, ppcobsd-tdep.o): New dependencies.
2109 (rs6000-tdep.o): Update dependencies.
2110 * configure.host: Add powerpc-*-openbsd.
2111 * configure.tgt: Add powerpc-*-openbsd.
2112 * config/powerpc/obsd.mh: New file.
2113 * config/powerpc/nm-obsd.h: New file.
2114 * config/powerpc/obsd.mt: New file.
2118 * frame.h (show_frame_info): Delete declaration.
2120 * arm-tdep.c (arm_prologue_this_id): Delete redundant cycle test.
2121 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
2122 * m32r-tdep.c (m32r_frame_this_id): Ditto.
2123 * frv-tdep.c (frv_frame_this_id): Ditto.
2124 * avr-tdep.c (avr_frame_this_id): Ditto.
2128 * MAINTAINERS: Drop maintenance of gdb.stabs, and linespec.c.
2132 * ppc-linux-nat.c (ppc_register_u_addr): Don't assume that r0 is
2133 register number zero.
2137 * mips-tdep.c (heuristic_proc_start):
2138 Warning() already prefixes "Warning: ".
2142 * annotate.h (deprecated_annotate_starting_hook)
2143 (deprecated_annotate_stopped_hook)
2144 (deprecated_annotate_exited_hook)
2145 (deprecated_annotate_signal_hook)
2146 (deprecated_annotate_signalled_hook): Deprecate.
2147 * tracepoint.h (deprecated_create_tracepoint_hook)
2148 (deprecated_delete_tracepoint_hook)
2149 (deprecated_modify_tracepoint_hook)
2150 (deprecated_trace_find_hook)
2151 (deprecated_trace_start_stop_hook): Deprecate.
2152 * target.h (deprecated_target_new_objfile_hook): Deprecate.
2153 * remote.h (deprecated_target_resume_hook)
2154 (deprecated_target_wait_loop_hook): Deprecate.
2155 * gdbcore.h (deprecated_exec_file_display_hook)
2156 (deprecated_file_changed_hook): Deprecate.
2157 * frame.h (deprecated_selected_frame_level_changed_hook): Deprecate.
2158 * defs.h (deprecated_modify_breakpoint_hook)
2159 (deprecated_command_loop_hook, deprecated_show_load_progress)
2160 (deprecated_print_frame_info_listing_hook)
2161 (deprecated_query_hook, deprecated_warning_hook)
2162 (deprecated_flush_hook, deprecated_create_breakpoint_hook)
2163 (deprecated_delete_breakpoint_hook)
2164 (deprecated_interactive_hook, deprecated_registers_changed_hook)
2165 (deprecated_readline_begin_hook, deprecated_readline_hook)
2166 (deprecated_readline_end_hook, deprecated_register_changed_hook)
2167 (deprecated_memory_changed_hook, deprecated_init_ui_hook)
2168 (deprecated_context_hook, deprecated_target_wait_hook)
2169 (deprecated_attach_hook, deprecated_detach_hook)
2170 (deprecated_call_command_hook, deprecated_set_hook)
2171 (deprecated_error_hook, deprecated_error_begin_hook)
2172 (deprecated_ui_load_progress_hook): Deprecate.
2173 * valops.c, uw-thread.c, utils.c, tui/tui-io.c: Update.
2174 * tui/tui-hooks.c, tracepoint.c, top.c, thread-db.c: Update.
2175 * target.c, symfile.c, stack.c, sol-thread.c, rs6000-nat.c: Update.
2176 * remote.c, remote-mips.c, regcache.c, mi/mi-interp.c: Update.
2177 * main.c, interps.c, infcmd.c, hpux-thread.c, frame.c: Update.
2178 * exec.c, dsrec.c, d10v-tdep.c, corefile.c, complaints.c: Update.
2179 * cli/cli-script.c, cli/cli-setshow.c, breakpoint.c: Update.
2180 * annotate.c, aix-thread.c: Update.
2184 * Makefile.in (vaxnbsd-tdep.o): Update dependencies.
2185 * vaxnbsd-tdep.c: Include "gdb_string.h".
2187 * symfile.c (symbol_file_add_from_memory): #if 0 function.
2188 (add_symbol_file_from_memory_command): #if 0 function body, call
2193 * gdbcore.h: Update copyright.
2194 (deprecated_add_core_fns): Rename add_core_fns.
2195 * win32-nat.c (_initialize_core_win32): Update.
2196 * sun3-nat.c (_initialize_core_sun3): Update.
2197 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
2198 * rs6000-nat.c (_initialize_core_rs6000): Update.
2199 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
2200 * nto-tdep.c (_initialize_nto_tdep): Update.
2201 * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
2202 * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
2203 * mips-nat.c (_initialize_core_mips): Update.
2204 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
2205 * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
2206 * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
2207 * lynx-nat.c (_initialize_core_lynx): Update.
2208 * irix5-nat.c (_initialize_core_irix5): Update.
2209 * i386-interix-nat.c (_initialize_core_interix): Update.
2210 * cris-tdep.c (_initialize_cris_tdep): Update.
2211 * corelow.c (deprecated_add_core_fns): Update.
2212 * core-regset.c (_initialize_core_regset): Update.
2213 * core-aout.c (_initialize_core_aout): Update.
2214 * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
2215 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
2216 * alpha-nat.c (_initialize_core_alpha): Update.
2220 * rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
2224 * dwarf2read.c (dwarf2_tmp_obstack, dwarf2_free_tmp_obstack):
2226 (dwarf_alloc_block): Take a CU argument. Use the comp_unit_obstack.
2227 (read_attribute_value): Update calls to dwarf_alloc_block.
2228 (dwarf2_build_psymtabs_hard): Don't initialize or clean up
2230 (psymtab_to_symtab_1): Likewise. Clean up using
2231 free_stack_comp_unit.
2232 (add_to_cu_func_list): Use the comp_unit_obstack.
2236 * dwarf2read.c (dwarf2_flag_true_p): New function.
2237 (die_is_declaration): Use the function above. Add some comments.
2241 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Specify
2242 architecture when registering sparcnbsd_core_osabi_sniffer.
2247 * infcall.c (find_function_addr): Add FUNCTION_START_OFFSET to
2251 * i386-tdep.c: Correct register numbering scheme comments
2253 (i386_stab_reg_to_regnum): Rename to i386_dbx_reg_to_regnum.
2254 (i386_dwarf_reg_to_regnum): Rename to i386_svr4_reg_to_regnum.
2255 (i386_coff_init_abi, i386_elf_init_abi): Accomodate renames above.
2256 (i386_gdb_arch_init): Likewise.
2258 * Makefile.in (ALLDEPFILES): List ppc-sysv-tdep.c, ppcnbsd-nat.c
2259 and ppcnbsd-tdep.c instead of ppc-sysv-tdep.o, ppcnbsd-nat.o and
2262 * m68k-tdep.h: Tweak comments.
2263 * m68k-tdep.c: Tweak comment.
2267 * Makefile.in (hppa-hpux-tdep.o): Add $(hppa_tdep_h).
2268 * hppa-hpux-tdep.c (hppa-tdep.h): Include.
2269 (hppa_hpux_som_init_abi): Set is_elf to 0.
2270 (hppa_hpux_elf_init_abi): Set is_elf to 1.
2271 * hppa-tdep.c (low_text_segment_address): Remove global.
2272 (record_text_segment_lowaddr): Pass in low address as parameter. Use
2273 section offset to calculate segment address.
2274 (internalize_unwinds): Define low_text_segment_address as local and
2275 pass to record_text_segment_lowaddr for ELF targets.
2276 (hppa_gdbarch_init): Zero fill tdep structure.
2277 (hppa_dump_tdep): Print tdep structure.
2278 * hppa-tdep.h (gdbarch_tdep): Add is_elf member to tdep structure.
2282 * hppa-tdep.c (hppa_pseudo_register_read): Define.
2283 (hppa_gdbarch_init): Set pseudo_register_read.
2284 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Remove.
2285 * regcache.c (supply_register): Remove check for
2286 DEPRECATED_CLEAN_UP_REGISTER_VALUE since we've removed the last user.
2290 * Makefile.in (hpread.o, pa64solib.o, somsolib.o): Add $(hppa_tdep_h)
2291 * hppa-tdep.h (INSTRUCTION_SIZE): Move from tm-hppa.h.
2292 (hpread_adjust_stack_address): Move to hpread.c.
2293 * hppa-tdep.h (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2294 obj_private_struct): Move from tm-hppa.h.
2295 * hpread.c (hppa-tdep.h): Include.
2296 (hpread_adjust_stack_address): Move from hppa-tdep.c.
2297 (hpread_read_function_type, hpread_read_doc_function_type)
2298 (hpread_process_one_debug_symbol): Call hpread_adjust_stack_address
2300 * pa64solib.c (hppa-tdep.h): Include.
2301 * somsolib.c (hppa-tdep.h): Include.
2302 * config/pa/tm-hppa.h (frame_info, frame_saved_regs, value, type,
2303 inferior_status): Remove unused forward declarations.
2304 (INSTRUCTION_SIZE): Move to hppa-tdep.c.
2305 (unwind_table_entry, unwind_stub_types, obj_unwind_info,
2306 obj_private_struct): Move to hppa-tdep.h.
2307 (HPREAD_ADJUST_STACK_ADDRESS): Remove.
2311 * hppa-tdep.c (hppa_reg_struct_has_addr, hppa_skip_prologue)
2312 (hppa_skip_trampoline_code, hppa_in_solib_call_trampoline)
2313 (hppa_in_solib_return_trampoline, hppa_cannot_store_register)
2314 (hppa_smash_text_address, hppa_target_read_pc, hppa_target_write_pc):
2315 Remove forward declaration and make static.
2316 (hppa_reg_struct_has_addr): Remove.
2320 * observer.sh: Move comments in sed command to first column.
2324 * frame.c: Minor typeo corrections in comments.
2328 * observer.c (observer_test_first_notification_function): Update
2330 (observer_test_second_notification_function): Likewise.
2331 (observer_test_third_notification_function): Likewise.
2336 * i386-tdep.c (i386_coff_init_abi): New function.
2337 * i386-tdep.h (i386_coff_init_abi): New prototype.
2338 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Call it. Use correct
2339 register number translation functions for DWARF and DWARF 2.
2343 * dwarf2read.c: Back out my previous change, it was incorrect.
2347 * dwarf2read.c: Include "hashtab.h".
2348 (struct dwarf2_cu): Add partial_dies, comp_unit_obstack,
2350 (struct partial_die_info): Add comments. Use bitfields to reduce
2351 memory footprint. Add scope, scope_set, has_specification,
2352 spec_offset, die_parent, die_child, and die_sibling.
2353 (peek_die_abbrev): Add prototype.
2354 (partial_read_comp_unit_head): New function, broken out from
2355 dwarf2_build_psymtabs_hard.
2356 (dwarf2_build_psymtabs_hard): Remove unused variable abbrev_ptr.
2357 Use partial_read_comp_unit_head. Initialize the CU and
2358 comp_unit_obstack. Update calls to read_partial_die and
2359 scan_partial_symbols. Use free_stack_comp_unit and
2361 (scan_partial_symbols): Change PDI to a pointer. Use the child and
2362 sibling pointers to walk partial DIEs. Call fixup_partial_die.
2363 Update calls to helper functions. Remove NAMESPACE argument.
2365 (partial_die_parent_scope, partial_die_full_name): New functions.
2366 (add_partial_symbol): Remove namespace argument. Update call to
2367 pdi_needs_namespace. Use partial_die_full_name. Handle
2368 DW_TAG_namespace. Check has_namespace_info flag.
2369 (pdi_needs_namespace): Remove NAMESPACE argument. Just check the
2370 tag. Handle namespaces.
2371 (add_partial_namespace, add_partial_enumeration): Simplify.
2372 (guess_structure_name): New function, derived from
2373 add_partial_structure.
2374 (add_partial_structure): Remove.
2375 (determine_class_name): Update comment.
2376 (dwarf2_read_abbrevs): Set has_namespace_info flag.
2377 (is_type_tag_for_partial, load_partial_dies): New functions.
2378 (read_partial_die): Pass abbrev and abbrev_len as arguments.
2379 Record specifications instead of following them immediately.
2380 (find_partial_die_in_comp_unit, find_partial_die)
2381 (fixup_partial_die, free_stack_comp_unit)
2382 (hashtab_obstack_allocate, dummy_obstack_deallocate)
2383 (partial_die_hash, partial_die_eq): New functions.
2384 * Makefile.in (hashtab_h): Define.
2385 (dwarf2read.o): Update dependencies.
2386 (observer_inc, observer_h): Move to the correct section.
2390 * dwarf2read.c (dwarf2_attribute_true_p): New function.
2391 (die_is_declaration): Use the function above. Add comment.
2395 * dwarf2read.c (read_structure_scope): Identify stub types
2396 using die_is_declaration() only.
2400 * symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as
2401 argument instead of NAME.
2402 (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open
2403 in call to symbol_file_add_with_addrs_or_offsets.
2404 (build_addr_info): New function, helper for ...
2405 (symbol_file_add_from_memory): New function.
2406 (add_symbol_file_from_memory_command): New function using that.
2407 (_initialize_symfile): Register it for add-symbol-file-from-memory.
2408 (pre_add_symbol_hook): Add const to argument type.
2409 * symfile.h (symbol_file_add_from_memory): Declare it.
2413 * NEWS (New native configurations): Mention OpenBSD/vax.
2414 * configure.host: Add vax-*-openbsd*.
2415 * config/vax/obsd.mh: New file.
2416 * config/vax/nm-obsd.h: New file.
2418 * vax-tdep.c: Include "regset.h".
2419 (vax_supply_gregset): New function.
2420 (vax_gregset): New variable.
2421 (vax_regset_from_core_section): New function.
2422 (vax_gdbarch_init): Set regset_from_core_section.
2423 * Makefile.in (vax-tdep.o): Update dependencies.
2427 * observer.c (normal_stop_subject, observer_notify_normal_stop)
2428 (observer_normal_stop_notification_stub)
2429 (observer_attach_normal_stop, observer_detach_normal_stop):
2430 Delete, replaced by #include "observer.inc".
2431 * infrun.c (normal_stop): Pass "stop_bpstat" to
2432 observer_notify_normal_stop.
2433 * Makefile.in (observer_inc): Define.
2434 (observer.o): Update dependencies.
2435 (observer.h, observer.inc): New rules.
2436 * observer.h: Delete file.
2437 * observer.sh: New file.
2441 * vax-tdep.c (vax_frame_cache): Fix typo.
2445 * NEWS (New native configurations): Mention NetBSD/vax.
2446 * configure.host: Add vax-*-netbsdelf* and vax-*-netbsd*.
2447 * config/vax/nbsdelf.mh: New file.
2448 * config/vax/nbsdaout.mh: New file.
2449 * config/vax/nm-nbsd.h: New file.
2450 * config/vax/nm-nbsdaout.h: New file.
2452 * vaxnbsd-tdep.c: New file.
2453 * Makefile.in (vaxnbsd-tdep.o): New dependency.
2454 * configure.tgt: Add vax-*-netbsd* and vax-*-openbsd*.
2455 * config/vax/nbsd.mt: New file.
2456 * config/vax/tm-nbsd.h: New file.
2458 * Makefile.in (vaxbsd-nat.o): New dependency.
2460 * vax-tdep.h (vax_regnum): Add VAX_R0_REGNUM and VAX_R1_REGNUM.
2461 * vax-tdep.c (vax_store_arguments): Remove struct_return and
2462 struct_addr arguments. Don't push return value address.
2463 (vax_push_dummy_call): Don't pass STRUCT_RETURN and STRUCT_ADDR as
2464 arguments to vax_store_arguments. Store return value address in
2466 (vax_store_struct_return, vax_extract_return_value)
2467 (vax_store_return_value): Remove functions.
2468 (vax_return_value): New function.
2469 (vax_gdbarch_init): Set return value. Don't set
2470 deprecated_store_struct_return, deprecated_extract_struct_return
2471 and deprecated_store_return_value.
2475 * ia64-tdep.c (ia64_libunwind_frame_prev_register): Handle null
2477 * libunwind-frame.c (libunwind_frame_prev_register): Likewise.
2481 * vax-tdep.c (vax_store_arguments, vax_push_dummy_call)
2482 (vax_unwind_dummy_id): New functions.
2483 (vax_push_dummy_frame, vax_pop_frame): Remove functions.
2484 (vax_call_dummy_words, sizeof_vax_call_dummy_words): Remove
2486 (vax_fix_call_dummy): Remove function.
2487 (vax_gdbarch_init): Set push_dummy_call and unwind_dummy_id.
2488 Don't set deprecated_push_dummy_frame, deprecated_pop_frame,
2489 call_dummy_location, deprecated_call_dummy_words,
2490 deprecated_sizeof_call_dummy_words,
2491 deprecated_call_dummy_breakpoint_offset,
2492 deprecated_use_generic_dummy_frames, deprecated_pc_in_call_dummy,
2493 and deprecated_dummy_write_sp.
2497 * MAINTAINERS: Move myself to "paper trail" section.
2501 * vax-tdep.c: Include "frame-base.h", "frame-unwind.h" and
2503 (vax_frame_init_saved_regs): Remove function.
2504 (vax_sigtramp_saved_pc): Remove function.
2505 (vax_frame_saved_pc): Remove function.
2506 (vax_frame_args_address): Remove function.
2507 (vax_frame_num_args): Rewrite.
2508 (vax_frame_chain): Remove function.
2509 (vax_push_dummy_frame): Replace DEPRECATED_FP_REGNUM with
2511 (vax_pop_frame): Likewise.
2512 (vax_saved_pc_after_call): Remove function.
2513 (struct vax_frame_cache): New structure.
2514 (vax_frame_cache): New function.
2515 (vax_frame_this_id): New function.
2516 (vax_frame_prev_register): New function.
2517 (vax_frame_unwind): New variable.
2518 (vax_frame_sniffer): New function.
2519 (vax_frame_base_address): New function.
2520 (vax_frame_args_address): New function.
2521 (vax_frame_base): New variable.
2522 (vax_unwind_pc): New function.
2523 (vax_gdbarch_init): Don't set deprecated_init_frame_pc,
2524 deprecated_fp_regnum, deprecated_saved_pc_after_call,
2525 deprecated_frame_chain, deprecated_frame_saved_pc,
2526 deprecated_frame_args_address and
2527 deprecated_frame_init_saved_regs.
2528 * Makefile.in (vax-tdep.o): Update dependencies.
2530 * vaxbsd-nat.c: New file.
2532 * vax-tdep.h: Update copyright year. Adjust comments.
2533 (VAX_REGISTER_SIZE, VAX_REGISTER_BYTES, VAX_MAX_REGISTER_RAW_SIZE,
2534 VAX_MAX_REGISTER_VIRTUAL_SIZE): Remove macros.
2535 (vax_regnum): New enum. Replacing...
2536 (VAX_AP_REGNUM, VAX_FP_REGNUM, VAX_SP_REGNUM, VAX_PC_REGNUM)
2537 (VAX_PS_REGNUM): ... these removed macros.
2538 * vax-tdep.c (vax_register_name): Remove prototype.
2539 (vax_register_name): Reorganize somewhat. Use ARRAY_SIZE.
2540 (vax_register_byte, vax_register_raw_size,
2541 vax_register_virtual_size, vax_register_virtual_type): Remove
2543 (vax_register_type): New function.
2544 (vax_breakpoint_from_pc): Reorganize.
2545 (vax_gdbarch_init): Set register_type. Don't set
2546 deprecated_register_size, deprecated_register_bytes,
2547 deprecated_register_byte, deprecated_register_raw_size,
2548 deprecated_max_register_raw_size,
2549 deprecated_register_virtual_size,
2550 deprecated_max_register_virtual_size and
2551 deprecated_register_virtual_type. Add comment on stack direction.
2555 * amd64-tdep.h (amd64_regnum): Add AMD64_CS_REGNUM,
2556 AMD64_SS_REGNUM, AMD64_DS_REGNUM, AMD64_ES_REGNUM,
2557 AMD64_FS_REGNUM and AMD64_GS_REGNUM.
2561 * MAINTAINERS (write after approval): Add myself.
2565 * hppa-tdep.c (hppa_inner_than): Remove.
2566 (is_pa_2): Remove unused static variable.
2567 (hppa_gdbarch_init): Use core_addr_greaterthan instead of own version.
2571 * language.h (language_defn): Add new la_post_parser field.
2572 * parser-defs.h (null_post_parser): New declaration (default for
2575 * parse.c (parse_exp_1): Move code to parse_exp_in_context and
2576 insert call to that function.
2577 (parse_exp_in_context): New function, including code formerly in
2578 parse_exp_1. Calls language-dependent post-parser after
2580 (parse_expression_in_context): New exported function.
2581 (null_post_parser): New definition.
2582 * expression.h (parse_expression_in_context): Add declaration.
2584 * p-lang.c (pascal_language_defn): Add trivial post-parser.
2585 * c-lang.c (c_language_defn): Ditto.
2586 (cplus_language_defn): Ditto.
2587 (asm_language_defn): Ditto.
2588 (minimal_language_defn): Ditto.
2589 * f-lang.c (f_language_defn): Ditto.
2590 * jv-lang.c (java_language_defn): Ditto.
2591 * language.c (unknown_language_defn): Ditto.
2592 (auto_language_defn): Ditto.
2593 (local_language_defn): Ditto.
2594 * m2-lang.c (m2_language_defn): Ditto.
2595 * scm-lang.c (scm_language_defn): Ditto.
2596 * obj-lang.c (objc_language_defn): Ditto.
2600 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Remove function.
2601 (amd64nbsd_mcontext_addr): New function.
2602 (amd64nbsd_init_abi): Initialize TDEP->sigcontext_addr as
2603 amd64nbsd_mcontext_addr. Directly initialize TDEP->sc_reg_offset
2604 with amd64nbsd_r_reg_offset, instead of building it on the fly.
2606 * corelow.c (core_xfer_partial): Fix coding standards violation.
2607 Add support for TARGET_OBJECT_WCOOKIE.
2609 * sparc-linux-tdep.c (sparc32_linux_init_abi): Don't set
2610 deprecated_pc_in_sigtramp.
2611 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Likewise.
2612 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Likewise.
2613 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Likewise.
2614 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
2615 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Likewise.
2616 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
2617 * sparcobsd-tdep.c (sparc32obsd_init_abi): Likewise.
2619 * amd64-linux-tdep.c, amd64nbsd-tdep.c, amd64obsd-tdep.c,
2620 i386-linux-tdep.c, i386-tdep.c, i386nbsd-tdep.c, i386obsd-tdep.c:
2623 * amd64-tdep.c (amd64_supply_fxsave): Only fiddle with
2624 I387_FISEG_REGNUM and I387_FOSEG_REGNUM in 64-bit mode.
2625 (amd64_collect_fxsave): Likewise.
2627 * i386-sol2-tdep.c: Include "gdb_string.h".
2628 (i386_sol2_sigtramp_p): Recognize signal trampoline based on its
2630 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2634 * i386-sol2-tdep.c: Include "solib-svr4.h".
2635 (i386_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2636 * Makefile.in (i386-sol2-tdep.o): Update dependencies.
2637 * config/i386/tm-i386sol2.h: Include :solib.h".
2638 * config/i386/i386sol2.mh (NATDEPFILES): Remove solib.o,
2639 solib-svr4.o and solib-legacy.o.
2640 * config/i386/i386sol2.mt (TDEPFILES): Add solib.o and
2645 * amd64-linux-nat.c (fetch_inferior_registers): Correctly check
2646 whether a register is supplied by PTRACE_GETFPREGS.
2647 (store_inferior_registers): Likewise.
2648 * amd64bsd-nat.c (fetch_inferior_registers): Correctly check
2649 whether a register is supplied by PT_GETFPREGS.
2650 (store_inferior_registers): Likewise.
2652 * config/i386/linux.mt (TDEPFILES): Remove solib-legacy.o.
2653 * config/i386/linux64.mt (TDEPFILES): Likewise.
2655 * i386-linux-nat.c: Update copyrigth year. Tweak comment.
2657 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Rewrite to use new
2658 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2659 the program counter is in the range specified by `struct
2661 * amd64-linux-tdep.c: Include "symtab.h".
2662 (amd64_linux_pc_in_sigtramp): Remove function.
2663 (amd64_linux_sigtramp_p): New function.
2664 (amd64_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2665 deprecated_pc_in_sigtramp.
2666 * amd64nbsd-tdep.c: Include "symtab.h".
2667 (amd64nbsd_sigtramp_p): New function.
2668 (amd64nbsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2669 deprecated_pc_in_sigtramp.
2670 * amd64obsd-tdep.c: Include "symtab.h" and "objfiles.h". Add a
2672 (amd64obsd_pc_in_sigtramp): Remove function.
2673 (amd64obsd_sigtramp_p): New function.
2674 (amd64obsd_init_abi): Initialize TDEP->sigtramp_p. Don't set
2675 deprecated_pc_in_sigtramp.
2676 * i386-tdep.h (struct gdbarch_tdep): Add sigtramp_p member.
2677 (i386bsd_pc_ins_sigtramp): Remove prototype.
2678 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove prototypes.
2679 * i386-tdep.c (i386_sigtramp_frame_sniffer): Rewrite to use new
2680 sigtramp_p member of `struct gdbarch_tdep'. Also check whether
2681 the program counter is in the range specified by `struct
2683 (i386_pc_in_sigtramp, i386_svr4_pc_in_sigtramp): Remove functions.
2684 (i386_sigtramp_p, i386_svr4_sigtramp_p): New functions.
2685 (i386_go32_pc_in_sigtramp): Remove function.
2686 (i386_svr4_init_abi): Don't set deprecated_pc_in_sigtramp.
2687 Initialize TDEP->sigtramp_p.
2688 (i386_go32_init_abi): Initialize TDEP->sigtramp_p to NULL.
2689 (i386_gdbarch_init): Initialize TDEP->sigtramp_p. Don't set
2690 deprecated_pc_in_sigtramp.
2691 * i386-linux-tdep.c: Adjust comments.
2692 (i386_linux_pc_in_sigtramp): Remove function.
2693 (i386_linux_sigtramp_p): New function.
2694 (i386_linux_init_abi): Initialize TDEP->sigtramp_p. Don't set
2695 deprecated_pc_in_sigtramp.
2696 * i386-nto-tdep.c: Update copyright year.
2697 (i386nto_pc_in_sigtramp): Remove function.
2698 (i386nto_sigtramp_p): New function.
2699 (i386nto_sigcontext_addr): Use I386_ESP_REGNUM instead of
2701 (i386nto_init_abi): Initialize TDEP->sigtramp_p. Don't set
2702 deprecated_pc_in_sigtramp.
2703 * i386-sol2-tdep.c: Update copyright year.
2704 (i386_sol2_pc_in_sigtramp): Remove function.
2705 (i386_sol2_sigtramp_p): New function.
2706 (i386_sol2_init_abi): Initialize TDEP->sigtramp_p. Don't set
2707 deprecated_pc_in_sigtramp.
2708 * i386bsd-tdep.c (i386bsd_pc_in_sigtramp): Remove function.
2709 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove functions.
2710 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2711 deprecated_sigtramp_start and deprecated_sigtramp_end.
2712 * i386nbsd-tdep.c: Include "frame.h" and "symtab.h".
2713 (i386nbsd_pc_in_sigtramp): Remove function.
2714 (i386nbsd_sigtramp_p): New function.
2715 (i386nbsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2716 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2717 TDEP->sigtramp_start, TDEP->sigtramp_end and TDEP->sigtramp_p.
2718 * i386obsd-tdep.c: Include "frame.h", "symtab.h" and "objfiles.h".
2719 (i386obsd_pc_in_sigtramp): Remove function.
2720 (i386obsd_sigtramp_p): New function.
2721 (i386obsd_sigtramp_start, i386obsd_sigtramp_end): Remove
2723 (i386bsd_init_abi): Don't set deprecated_pc_in_sigtramp,
2724 deprecated_sigtramp_start, deprecated_sigtramp_end. Initialize
2726 * Makefile.in (amd64-linux-tdep.o, amd64nbsd-tdep.o,
2727 amd64obsd-tdep.o, i386nbsd-tdep.o, i386obsd-tdep.o): Update
2730 * config/i386/i386aout.mt: Remove file.
2732 * configure.tgt: Remove i[34567]86-*-go32*,
2733 i[34567]86-*-msdosdjgpp*, i[34567]86-*-sco*, i[34567]86-*-sysv*
2734 and i[34567]86-*-isc*. Set gdb_target to i386 for
2735 i[34567]86-*-netware* and i[34567]86-*-*.
2736 * config/i386/i386.mt: New file.
2737 * config/i386/embed.mt: Remove file.
2738 * config/i386/go32.mt: Remove file.
2739 * config/i386/i386nw.mt: Remove file.
2740 * config/i386/i386v.mt: Remove file.
2741 * config/i386/tm-go32.h: Remove file.
2743 * tui/tui-hooks.c: Include "readline/readline.h" after
2744 "gdb_curses.h" instead of before.
2745 * tui/tui-io.c: Likewise.
2747 * tui/tui.c: Fix typo in comment.
2749 * sparc64-tdep.c (sparc_address_from_register): Remove function.
2753 * breakpoint.h (deprecated_exception_catchpoints_are_fragile)
2754 (deprecated_exception_support_initialized): Declare.
2755 * hppa-hpux-tdep.c (initialize_hp_cxx_exception_support)
2756 (initialize_hp_cxx_exception_support)
2757 (child_enable_exception_callback): Update.
2758 * breakpoint.c (deprecated_exception_catchpoints_are_fragile)
2759 (deprecated_exception_support_initialized): Rename
2760 deprecated_exception_catchpoints_are_fragile and
2761 deprecated_exception_support_initialized.
2762 (breakpoint_init_inferior, breakpoint_init_inferior): Update.
2764 * symtab.c (deprecated_hp_som_som_object_present): Rename
2765 hp_som_som_object_present.
2766 * symtab.h (deprecated_hp_som_som_object_present): Declare.
2767 * symfile.c (hp_som_som_object_present, RESET_HP_UX_GLOBALS):
2768 Update. Delete extern declaration.
2769 * valops.c (hp_som_som_object_present): Ditto.
2770 * parse.c (deprecated_hp_som_som_object_present)
2771 (parse_nested_classes_for_hpacc): Ditto.
2772 * hpread.c (hp_som_som_object_present, hpread_expand_symtab): Ditto.
2773 * hppa-hpux-tdep.c (hp_som_som_object_present)
2774 (initialize_hp_cxx_exception_support): Ditto.
2775 * eval.c (hp_som_som_object_present, evaluate_subexp_standard): Ditto.
2776 * cp-valprint.c (hp_som_som_object_present)
2777 (cp_print_class_method): Ditto.
2778 * c-typeprint.c (hp_som_som_object_present):
2779 (c_type_print_base): Ditto.
2780 * c-exp.y (hp_som_som_object_present): Ditto.
2784 * frame-unwind.c (struct frame_unwind_table, frame_unwind_init)
2785 (frame_unwind_prepend_unwinder, frame_unwind_append_sniffer)
2786 (frame_unwind_find_by_frame): Re-implement the unwind code so
2787 that it can both prepend and append sniffers. Replace
2788 frame_unwind_register_unwinder with frame_unwind_prepend_unwinder.
2789 * tramp-frame.c (tramp_frame_append): Use
2790 frame_unwind_prepend_unwinder.
2791 * frame-unwind.h (frame_unwind_prepend_unwinder): Replace
2792 frame_unwind_register_unwinder.
2793 * tramp-frame.h (tramp_frame_prepend_unwinder): Rename
2795 * tramp-frame.c (tramp_frame_prepend_unwinder): Update.
2796 * mips-linux-tdep.c (mips_linux_init_abi, mips_linux_init_abi)
2797 (mips_linux_init_abi): Update.
2801 * ppc-linux-tdep.c (ELF_NREG, ELF_NFPREG, ELF_NVRREG)
2802 (ELF_FPREGSET_SIZE): Delete constants formerly used in core
2807 * ia64-tdep.c (elf.h): Don't include.
2808 (elf/ia64.h) [HAVE_LIBUNWIND_IA64_H]: Include.
2812 * frame.h: Typeo corrections in comments.
2816 * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
2821 * config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
2822 * config/sparc/linux64.mt (TDEPFILES): Likewise.
2823 * config/sparc/sol2.mt (TDEPFILES): Add solib.o and solib-svr4.o.
2824 * config/sparc/sol2.mh (NATDEPFILES): Remove solib.o, solib-svr4.o
2826 * config/sparc/sol2-64.mt (TDEPFILES): Add solib.o and
2828 * config/sparc/tm-sol2.h: Update copyright year. Include
2831 * sparc-sol2-tdep.c: Update copyright year. Include
2833 (sparc32_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2834 * sparc64-sol2-tdep.c: Include "solib-svr4.h".
2835 (sparc64_sol2_init_abi): Set solib_svr4_fetch_link_map_offsets.
2836 * Makefile.in (sparc-sol2-tdep.o, sparc64-sol2-tdep.o): Update
2841 * infttrace.c: Include "infttrace.h".
2842 * infttrace.h: Include "target.h".
2843 * Makefile.in (infttrace_h): Update.
2844 (infttrace.o): Update.
2848 * hppah-nat.c (hpux_has_forked, hpux_has_vforked)
2849 (hpux_has_execd, hpux_has_syscall_event): Include "infttrace.h",
2850 move extern declarations from here ...
2851 * infttrace.h: ... to here.
2852 * Makefile.in (hppah-nat.o): Update dependencies.
2854 * hppa-tdep.c (hppa_breakpoint_from_pc): Make static.
2855 (hppa_gdbarch_init): Set gdbarch_breakpoint_from_pc
2856 * config/pa/tm-hppa.h (BREAKPOINT_FROM_PC, BREAKPOINT32):
2857 (hppa_breakpoint_from_pc): Delete.
2859 * MAINTAINERS: Mark hppa-elf as buildable with -Werror.
2863 * hppa-tdep.c: Do not include <sys/types.h>, <sys/param.h>,
2864 <signal.h>, <sys/ptrace.h>, #include "a.out.encap.h",
2869 Committed by Andrew Cagney (mechanical change).
2870 * hppa-tdep.c: (args_for_find_stub, hp_som_som_object_present,
2871 exception_catchpoints_are_fragile, find_stub_with_shl_get,
2872 cover_find_stub_with_shl_get, initialize_hp_cxx_exception_support,
2873 child_enable_exception_callback, current_ex_event,
2874 null_symtab_and_line, child_get_current_exception_event,
2875 HP_ACC_EH_notify_hook, HP_ACC_EH_set_hook_value,
2876 HP_ACC_EH_notify_callback, HP_ACC_EH_break, HP_ACC_EH_catch_throw,
2877 HP_ACC_EH_catch_catch, __eh_notification, hp_cxx_exception_support,
2878 hp_cxx_exception_support_initialized, eh_notify_hook_addr,
2879 eh_notify_callback_addr, eh_break_addr, eh_catch_catch_addr,
2880 eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior):
2881 Move hpux-specific definitions ...
2882 * hppa-hpux-tdep.c: ... to here.
2886 * hppa-tdep.c (hppa_frame_cache): Pass the frame's func to
2887 skip_prologue_using_sal.
2891 * config/i386/tm-i386.h: Delete file.
2892 * config/i386/tm-vxworks.h: Update copyright, do not include
2894 * config/i386/tm-nto.h, config/i386/tm-linux.h: Ditto.
2895 * config/i386/tm-i386sol2.h, config/i386/tm-i386lynx.h: Ditto.
2896 * config/i386/tm-go32.h, config/i386/tm-cygwin.h: Ditto.
2897 * config/i386/ncr3000.mt (TM_FILE): Delete.
2898 * config/i386/interix.mt (TM_FILE): Delete.
2899 * config/i386/i386v.mt (TM_FILE): Delete.
2900 * config/i386/i386nw.mt (TM_FILE): Delete.
2901 * config/i386/i386gnu.mt (TM_FILE): Delete.
2902 * config/i386/i386aout.mt (TM_FILE): Delete.
2903 * config/i386/embed.mt (TM_FILE): Delete.
2907 * frv-tdep.h (fsr0_regnum, acc0_regnum, acc7_regnum, accg0123_regnum)
2908 (accg4567_regnum, msr0_regnum, msr1_regnum, gner0_regnum)
2909 (gner1_regnum, fner0_regnum, fner1_regnum, accg0_regnum)
2910 (accg7_regnum): New constants.
2911 (last_spr_regnum, last_pseudo_regnum): Update.
2912 * frv-tdep.c (new_variant): Initialize names for fsr0, acc0-acc7,
2913 accg0-accg7, msr0, msr1, gner0, gner1, fner0, and fner1.
2914 (frv_pseudo_register_read, frv_pseudo_register_write): Add support
2916 (frv_register_sim_regno): Update spr_map[].
2920 * config/mips/xm-riscos.h: Delete.
2921 * config/mips/xm-mipsv4.h, config/mips/xm-mips.h: Delete.
2922 * config/mips/tm-mipsv4.h, config/mips/riscos.mh: Delete.
2923 * config/mips/nm-riscos.h, config/mips/nm-news-mips.h: Delete.
2924 * config/mips/nm-mips.h, config/mips/news-mips.mh: Delete.
2925 * config/mips/news-mips.mh, config/m68k/tm-m68kv4.h: Delete.
2926 * config/mips/decstation.mh, config/mips/littlemips.mh: Delete.
2927 * config/mips/mipsv4.mt, config/m68k/tm-sun3.h: Delete.
2928 * config/m68k/xm-sun3os4.h, config/m68k/xm-sun3.h: Delete.
2929 * config/m68k/xm-sun2.h, config/m68k/xm-m68kv4.h: Delete.
2930 * config/m68k/xm-dpx2.h, config/m68k/xm-delta68.h: Delete.
2931 * config/m68k/xm-3b1.h, config/m68k/tm-sun3os4.h: Delete.
2932 * config/m68k/tm-m68klynx.h, config/m68k/tm-dpx2.h: Delete.
2933 * config/m68k/tm-delta68.h, config/m68k/tm-3b1.h: Delete.
2934 * config/m68k/sun3os4.mt, config/m68k/nm-sysv4.h: Delete.
2935 * config/m68k/nm-sun3.h, config/m68k/sun3os4.mh: Delete.
2936 * config/m68k/sun2os3.mh, config/m68k/nm-sun2.h: Delete.
2937 * config/m68k/nm-m68klynx.h, config/m68k/sun3os3.mt: Delete.
2938 * config/m68k/nm-dpx2.h, config/m68k/sun2os3.mt: Delete.
2939 * config/m68k/dpx2.mh, config/m68k/sun3os3.mh: Delete.
2940 * config/m68k/sun2os4.mh, config/m68k/nm-delta68.h: Delete.
2941 * config/m68k/m68kv4.mt, config/m68k/m68klynx.mt: Delete.
2942 * config/m68k/3b1.mt, config/m68k/m68klynx.mh: Delete.
2943 * config/m68k/m68kv4.mh, config/m68k/sun2os4.mt: Delete.
2944 * config/m68k/tm-sun2os4.h, config/m68k/3b1.mh: Delete.
2945 * config/m68k/dpx2.mt, config/m68k/delta68.mt: Delete.
2946 * config/m68k/tm-sun2.h, config/m68k/delta68.mh: Delete.
2948 * configure.tgt: Remove m68000-*-sunos3*, m68000-*-sunos4*,
2949 m68*-bull-sysv*, m68*-att-*, m68*-motorola-*, m68*-*-lynxos*,
2950 m68*-*-sunos3*, m68*-*-sunos4*, m68*-*-sysv4*, mips*-*-sysv4*.
2951 * configure.host: Remove m680[01]0-sun-sunos3*,
2952 m680[01]0-sun-sunos4*, m68*-att-*, m68*-bull*-sysv*,
2953 m68*-*-lynxos*, m68*-*-sysv4*, m68*-motorola-*, m68*-sun-sunos3*,
2954 m68*-sun-sunos4*, m68*-sun-*, mips-dec-*, mips-little-*,
2955 mips-sony-*, mips-*-mach3*, mips-*-sysv4*, mips-*-sysv*,
2957 * NEWS: Mention removed systems.
2961 GDB 6.1 release created from 6.1 branch.
2965 * gnu-nat.c (gnu_wait): Use memcpy instead of bcopy.
2966 * remote-vxmips.c (vx_read_register, vx_write_register): Ditto.
2967 * remote-vx68.c (vx_read_register, vx_write_register): Ditto.
2969 * config/vax/xm-vax.h (FAULT_CODE_ORIGIN, INIT_STACK): Delete.
2970 * config/alpha/xm-alphaosf.h (NO_SIGINTERRUPT): Delete.
2971 * config/alpha/xm-alphalinux.h (NO_SIGINTERRUPT): Delete.
2975 * MAINTAINERS: Chris Faylor has changed employers; add him to
2976 "paper trail" section, and update his E-mail address.
2980 * frame-unwind.c (frame_unwind_find_by_frame): Delete check for
2981 generic dummy frames.
2982 * dummy-frame.c: Update copyright.
2983 (dummy_frame_sniffer): Delete check for generic dummy frames.
2985 * config/pa/tm-hppa.h (REG_PARM_STACK_SPACE): Delete.
2986 * config/pa/tm-hppa64.h (PA20W_CALLING_CONVENTIONS)
2987 (REG_PARM_STACK_SPACE): Delete.
2988 * hppa-tdep.c (hppa64_push_dummy_call, hppa32_push_dummy_call):
2989 Inline reference to REG_PARM_STACK_SPACE.
2991 * config/pa/tm-hppah.h (FRAME_SAVED_PC_IN_SIGTRAMP)
2992 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
2993 (hppa32_hpux_frame_find_saved_regs_in_sigtramp)
2994 (FRAME_BASE_BEFORE_SIGTRAMP)
2995 (hppa32_hpux_frame_base_before_sigtramp)
2996 (hppa32_hpux_frame_saved_pc_in_sigtramp): Delete.
2997 * config/pa/tm-hppa64.h (hppa64_hpux_frame_saved_pc_in_sigtramp)
2998 (hppa64_hpux_frame_find_saved_regs_in_sigtramp)
2999 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP)
3000 (FRAME_BASE_BEFORE_SIGTRAMP)
3001 (hppa64_hpux_frame_base_before_sigtramp)
3002 (FRAME_SAVED_PC_IN_SIGTRAMP): Delete.
3006 * PROBLEMS: Mention that GDB doesn't build on HP/UX 11.00.
3010 * sh64-tdep.c (sh64_init_extra_frame_info): Replace
3011 DEPRECATED_CALL_DUMMY_LENGTH with 0, simplify.
3012 * dummy-frame.h: Delete out-of-date comments.
3013 * gdbarch.sh (DEPRECATED_CALL_DUMMY_LENGTH): Delete.
3014 * gdbarch.h, gdbarch.c: Re-generate.
3019 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Do not take
3020 into account an instruction saving a register if we have already
3021 seen an earlier instruction saving that same register.
3025 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Delete.
3026 * gdbarch.h, gdbarch.c: Re-generate.
3027 * frame.c (legacy_get_prev_frame): Delete references to
3028 DEPRECATED_INIT_FRAME_PC_FIRST.
3030 * infrun.c (pc_in_sigtramp): Delete function.
3031 (check_sigtramp2): Inline call to pc_in_sigtramp, use
3036 * infrun.c (handle_step_into_function): Delete code conditional on
3038 (handle_inferior_event, step_over_function): Ditto.
3042 * frame.c (get_prev_frame_1): Exclude signal trampolines from the
3043 "previous frame inner to this frame" test.
3047 * frame.c (safe_frame_unwind_memory): New function.
3048 * frame.h (safe_frame_unwind_memory): Declare. Update description
3050 * tramp-frame.c (tramp_frame_start): Re-order parmeters, add
3051 "next_frame". Use safe_frame_unwind_memory.
3052 (tramp_frame_sniffer): Update call to tramp_frame_start.
3056 * dwarf2read.c (dwarf2_objfile_data_key): New.
3057 (struct dwarf2_per_objfile, dwarf2_per_objfile): New.
3058 (dwarf_info_size, dwarf_abbrev_size, dwarf_line_size)
3059 (dwarf_pubnames_size, dwarf_aranges_size, dwarf_loc_size)
3060 (dwarf_macinfo_size, dwarf_str_size, dwarf_ranges_size)
3061 (dwarf_frame_size, dwarf_eh_frame_size, dwarf_info_buffer)
3062 (dwarf_abbrev_buffer, dwarf_line_buffer, dwarf_str_buffer)
3063 (dwarf_macinfo_buffer, dwarf_ranges_buffer, dwarf_loc_buffer):
3065 (struct dwarf2_pinfo): Remove per-objfile members. Update comments.
3066 (DWARF_ABBREV_SIZE, DWARF_LINE_SIZE)
3067 (DWARF_LOC_SIZE, DWARF_MACINFO_SIZE, DWARF_STR_SIZE)
3068 (DWARF_RANGES_SIZE, DWARF_INFO_BUFFER)
3069 (DWARF_ABBREV_BUFFER, DWARF_LINE_BUFFER, DWARF_STR_BUFFER)
3070 (DWARF_MACINFO_BUFFER, DWARF_RANGES_BUFFER, DWARF_LOC_BUFFER):
3072 (dwarf2_has_info): Take an objfile argument. Allocate per-objfile
3074 (dwarf2_locate_sections, dwarf2_build_psymtabs)
3075 (dwarf2_build_psymtabs_easy, dwarf2_build_psymtabs_hard)
3076 (skip_one_die, dwarf2_get_pc_bounds, dwarf2_read_abbrevs)
3077 (read_partial_die, read_full_die, read_indirect_string)
3078 (dwarf_decode_line_header, dwarf_decode_macros)
3079 (dwarf2_symbol_mark_computed): Remove use of removed macros.
3080 Update uses of removed variables.
3081 (psymtab_to_symtab_1): Restore per-objfile data pointer. Remove use
3083 (_initialize_dwarf2_read): New function.
3084 * symfile.h (dwarf2_has_info): Update prototype.
3085 * coffread.c (coff_symfile_read): Update call to dwarf2_has_info.
3086 * elfread.c (elf_symfile_read): Likewise.
3090 * rs6000-tdep.c (rs6000_dwarf2_stab_reg_to_regnum): New, unified
3091 function for register numbers on all the rs6000-derived targets.
3092 (rs6000_gdbarch_init): Don't register a separate
3093 gdbarch_dwarf2_reg_to_regnum function for the E500. Use
3094 rs6000_dwarf2_stab_reg_to_regnum for both Dwarf 2 and stabs on all
3097 * i386-tdep.c: Add FIXME regarding STABS vs. Dwarf 2 register
3102 * valarith.c: Update copyright notice.
3103 (value_add): Handle range types.
3105 (value_equal): Ditto.
3106 (value_less): Ditto.
3108 (value_complement): Ditto.
3109 (value_binop): Simplify slightly by using is_integral_type and
3110 eliminiating unnecessary COERCE_ENUMs.
3114 * frame.h (frame_unwind_id): Declare.
3115 * frame.c (frame_unwind_id): New function.
3116 (get_prev_frame_1): New function.
3117 (frame_debug_got_null_frame): New function.
3118 (get_prev_frame): Use frame_debug_got_null_frame. Move unwind
3119 code proper to prev_frame, update description.
3120 * infrun.c (step_over_function): Use frame_unwind_id.
3124 * hppa-tdep.c (hppa32_push_dummy_call): Set the Stack Pointer.
3125 (hppa64_push_dummy_call): Likewise.
3129 From Ulrich Weigand:
3130 * utils.c (query): Do not use a va_list variable multiple times.
3134 * Makefile.in (linux_nat_h): Update dependencies.
3135 * configure.in: Check for <gnu/libc-version.h>.
3136 * configure: Regenerate.
3137 * config.in: Regenerate.
3138 * linux-nat.h: Include "target.h". Add waitstatus field to
3140 * lin-lwp.c (add_lwp): Initialize waitstatus.kind.
3141 (lin_lwp_attach_lwp): Don't attach to LWPs we have already attached
3143 (lin_lwp_handle_extended): New function. Handle clone events.
3144 (wait_lwp): Use lin_lwp_handle_extended. Update comment about
3146 (child_wait): Handle clone events.
3147 (lin_lwp_wait: Use lin_lwp_handle_extended and handle clone events.
3148 * linux-nat.c (linux_enable_event_reporting): Turn on
3149 PTRACE_O_TRACECLONE.
3150 (linux_handle_extended_wait): Handle clone events.
3151 * thread-db.c: Include <gnu/libc-version.h>.
3152 (struct private_thread_info): Add dying flag.
3153 (enable_thread_event_reporting): Enable TD_DEATH for glibc 2.2 and
3155 (attach_thread): Update comments. Handle dying threads.
3156 (detach_thread): Set the dying flag.
3157 (check_event): Always call attach_thread.
3161 * mips-tdep.c (mips_pdr_data): New.
3162 (non_heuristic_proc_desc): Use objfile_data and set_objfile_data.
3163 (_initialize_mips_tdep): Initialize mips_pdr_data.
3167 * minsyms.c (install_minimal_symbols): Move dropping leading
3168 char from linkage name from here...
3169 (prim_record_minimal_symbol_and_info): ...to here. Simplify
3170 test for "__gnu_compiled*" symbols.
3174 * rs6000-tdep.c (skip_prologue): Recognize moves from argument
3175 registers to temp register r0 and byte stores as prologue
3180 * PROBLEMS (Stack backtraces): Rewrite. Remove reference to
3185 * tui/tui-regs.c (tui_show_registers): Make sure the TUI is active
3186 and switch the layout to force a display of register window.
3190 * amd64-tdep.c (amd64_classify): make RANGE_TYPE objects be part
3191 of the INTEGER class.
3195 * ppc-linux-tdep.c (ppc_linux_init_abi): Long doubles are eight
3196 bytes long on PPC GNU/Linux.
3200 * PROBLEMS: Refer to gdb/1588 instead of gdb/826.
3204 * PROBLEMS: Add general section titles, remove references to
3209 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE): Define to
3211 (arm_linux_push_arguments): Use TARGET_DOUBLE_BIT instead of
3212 FP_REGISTER_VIRTUAL_SIZE.
3213 * arm-tdep.c (arm_make_sigtramp_cache): Use register_size instead
3214 of DEPRECATED_REGISTER_RAW_SIZE.
3215 (arm_register_type): Add gdbarch argument.
3216 (arm_register_raw_size, arm_register_virtual_size): Delete.
3217 (arm_register_byte, arm_extract_return_value)
3218 (arm_store_return_value, arm_get_longjmp_target): Update references
3219 to INT_REGISTER_RAW_SIZE and FP_REGISTER_RAW_SIZE.
3220 (arm_gdbarch_init): Likewise. Don't set
3221 deprecated_register_raw_size, deprecated_register_virtual_size,
3222 deprecated_max_register_raw_size,
3223 deprecated_max_register_virtual_size, or
3224 deprecated_max_register_virtual_type. Do set register_type.
3225 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE)
3226 (ARM_MAX_REGISTER_VIRTUAL_SIZE, INT_REGISTER_VIRTUAL_SIZE)
3227 (FP_REGISTER_VIRTUAL_SIZE): Delete.
3228 (INT_REGISTER_RAW_SIZE): Rename to INT_REGISTER_SIZE.
3229 (FP_REGISTER_RAW_SIZE): Rename to FP_REGISTER_SIZE.
3230 * arm-linux-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Define to
3232 * remote-rdp.c (remote_rdp_fetch_register): Use MAX_REGISTER_SIZE.
3233 (remote_rdp_store_register): Likewise.
3237 * Makefile.in (mips-linux-tdep.o): Update dependencies.
3238 * mips-tdep.c (mips_gdbarch_init): Move frame predicates
3239 to after osabi initialization.
3240 * mips-linux-tdep.c: Include "trad-frame.h" and "tramp-frame.h".
3241 (mips_linux_o32_sigframe_init, mips_linux_n32n64_sigframe_init): New
3243 (mips_linux_o32_sigframe, mips_linux_o32_rt_sigframe)
3244 (mips_linux_n32_rt_sigframe, mips_linux_n64_rt_sigframe): New
3246 (mips_linux_init_abi): Append signal trampoline unwinders.
3250 * tramp-frame.h (TRAMP_SENTINEL_INSN): Define, document.
3251 * tramp-frame.c: Include "gdb_assert.h".
3252 (tramp_frame_start): Use TRAMP_SENTINEL_INSN. Use ULONGEST and
3254 (tramp_frame_append): Validate the tramp frame's instructions.
3255 * Makefile.in (tramp-frame.o): Update dependencies.
3259 * trad-frame.h (trad_frame_set_reg_addr): Declare.
3263 * MAINTAINERS (Past Maintainers): Add Mark Salter and Fernando
3264 Nasser as past testsuite/lib/ (and other) maintainers.
3268 * infcmd.c (attach_command): Reread symbols if we already have
3273 * rs6000-tdep.c (frame_get_saved_regs): Delete unused function.
3277 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): Deprecate.
3278 * gdbarch.h, gdbarch.c: Re-generate.
3279 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3280 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3281 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3282 * config/vax/tm-vaxbsd.h (DEPRECATED_SIGTRAMP_END)
3283 (DEPRECATED_SIGTRAMP_START): Update.
3284 * config/m68k/tm-nbsd.h (DEPRECATED_SIGTRAMP_END)
3285 (DEPRECATED_SIGTRAMP_START): Update.
3286 * blockframe.c (find_pc_sect_partial_function): Update.
3287 * arch-utils.c (legacy_pc_in_sigtramp): Update.
3291 * remote.c (remote_open_1): Reopen the exec file and reread symbols
3296 * gdbarch.sh (PC_IN_SIGTRAMP): Change to a function with
3297 predicate, deprecate.
3298 * gdbarch.h, gdbarch.c: Re-generate.
3299 * alpha-linux-tdep.c (alpha_linux_init_abi): Update.
3300 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Update.
3301 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Update.
3302 * alphafbsd-tdep.c (alphafbsd_init_abi): Update.
3303 * alphanbsd-tdep.c (alphanbsd_init_abi): Update.
3304 * amd64-linux-tdep.c (amd64_linux_init_abi): Update.
3305 * amd64-tdep.c (amd64_sigtramp_frame_sniffer): Update.
3306 * amd64nbsd-tdep.c (amd64nbsd_init_abi): Update.
3307 * amd64obsd-tdep.c (amd64obsd_init_abi): Update.
3308 * arm-tdep.c (arm_sigtramp_unwind_sniffer): Update.
3309 * blockframe.c (find_pc_partial_function): Update.
3310 * breakpoint.c (bpstat_what): Update.
3311 * frame.c (frame_type_from_pc, legacy_get_prev_frame): Update.
3312 * frv-linux-tdep.c (frv_linux_init_abi): Update.
3313 * frv-tdep.c (frv_sigtramp_frame_sniffer): Update.
3314 * hppa-hpux-tdep.c (hppa_hpux_init_abi): Update.
3315 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3316 * i386-linux-tdep.c (i386_linux_init_abi): Update.
3317 * i386-nto-tdep.c (i386nto_init_abi): Update.
3318 * i386-sol2-tdep.c (i386_sol2_init_abi): Update.
3319 * i386-tdep.c (i386_sigtramp_frame_sniffer)
3320 (i386_svr4_init_abi, i386_go32_init_abi, i386_gdbarch_init): Update.
3321 * i386bsd-tdep.c (i386bsd_init_abi): Update.
3322 * i386nbsd-tdep.c (i386nbsd_init_abi): Update.
3323 * i386obsd-tdep.c (i386obsd_init_abi): Update.
3324 * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Update.
3325 * infrun.c (pc_in_sigtramp): Update.
3326 * m68k-tdep.c (m68k_sigtramp_frame_sniffer): Update.
3327 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
3328 * mips-tdep.c (mips_gdbarch_init): Update.
3329 * mipsnbsd-tdep.c (mipsnbsd_init_abi): Update.
3330 * ppc-linux-tdep.c: Update comment.
3331 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Update.
3332 * shnbsd-tdep.c (shnbsd_init_abi): Update.
3333 * sparc-linux-tdep.c (sparc32_linux_init_abi): Update.
3334 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Update.
3335 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Update.
3336 * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Update.
3337 * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Update.
3338 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Update.
3339 * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Update.
3340 * sparcobsd-tdep.c (sparc32obsd_init_abi): Update.
3344 * tramp-frame.h, tramp-frame.h: New files.
3345 * Makefile.in (SFILES, tramp_frame_h, COMMON_OBS, tramp-frame.o):
3346 Update rules to include "tramp-frame.h" and "tramp-frame.c".
3348 * Makefile.in: Update all dependencies.
3352 * Makefile.in (trad_frame_h): Add $(frame_h).
3353 * trad-frame.h: Update copyright. Include "frame.h".
3354 (struct trad_frame_cache, trad_frame_cache_zalloc): Declare.
3355 (trad_frame_set_id, trad_frame_get_id): Declare.
3356 (trad_frame_set_reg_addr, trad_frame_get_register): Declare.
3357 * trad-frame.c: Update copyright.
3358 (struct trad_frame_cache): Define.
3359 (trad_frame_cache_zalloc): New function.
3360 (trad_frame_set_id, trad_frame_get_id): New functions.
3361 (trad_frame_set_reg_addr, trad_frame_get_register): New functions.
3365 * s390-tdep.c (struct s390_stub_unwind_cache): Rename
3366 s390_pltstub_unwind_cache.
3367 (s390_stub_frame_unwind_cache): Rename
3368 s390_pltstub_frame_unwind_cache.
3369 (s390_stub_frame_this_id): Rename s390_pltstub_frame_this_id.
3370 (s390_stub_frame_prev_register): Rename
3371 s390_pltstub_frame_prev_register.
3372 (s390_stub_frame_unwind): Rename s390_pltstub_frame_unwind.
3373 (s390_stub_frame_sniffer): Rename s390_stub_frame_sniffer.
3375 From Ulrich Weigand:
3376 * s390-tdep.c (s390_pltstub_frame_sniffer): Handle invalid function
3377 pointer calls like PLT calls.
3381 * mips-tdep.c (non_heuristic_proc_desc): Search using the specified
3382 PC rather than the partial function start address. Use the start
3383 address to sanity check the found PDR.
3387 * lin-lwp.c (lin_lwp_wait): Pass the LWP ID to
3388 linux_handle_extended_wait.
3392 * rs6000-tdep.c (frame_initial_stack_address): Delete unused
3395 * frame.h (generic_pop_current_frame): Delete declaration.
3396 (deprecate_pop_dummy_frame): Deprecate
3397 generic_pop_dummy_frame.
3398 * dummy-frame.c (deprecated_pop_dummy_frame): Update.
3399 (generic_pop_current_frame): Delete function.
3400 * mn10300-tdep.c (mn10300_pop_frame): Eliminate call to
3401 generic_pop_current_frame.
3402 * v850-tdep.c (v850_pop_frame): Update.
3403 * mcore-tdep.c (mcore_pop_frame): Update.
3404 * sh64-tdep.c (sh64_pop_frame): Update.
3405 * h8300-tdep.c (h8300_pop_frame): Update.
3409 * frame.h (deprecated_pc_in_call_dummy): Rename
3410 generic_pc_in_call_dummy.
3411 * dummy-frame.h (pc_in_dummy_frame): Delete declaration.
3412 * dummy-frame.c (deprecated_pc_in_call_dummy): Rename
3413 generic_pc_in_call_dummy.
3414 (pc_in_dummy_frame): Make static.
3415 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Update.
3416 * gdbarch.h, gdbarch.c: Re-generate.
3417 * dummy-frame.c (dummy_frame_sniffer): Simplify.
3418 * frame.c (frame_type_from_pc): Call deprecated_pc_in_call_dummy.
3419 (legacy_get_prev_frame): Ditto.
3420 * inferior.h: Delete reference to generic_pc_in_call_dummy in
3425 * inferior.h (deprecated_pc_in_call_dummy_at_entry_point): Delete
3426 declaration and out-of-date comment.
3427 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3429 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
3430 deprecated_pc_in_call_dummy.
3432 * infrun.c (handle_inferior_event): For non legacy frames, use the
3433 frame ID and frame type to identify a signal trampoline. Update
3438 * mipsnbsd-tdep.c: Update copyright. Include "mips-tdep.h".
3439 * Makefile.in (mipsnbsd-tdep.o): Update dependencies.
3443 * frame-unwind.h: Update copyright.
3444 (struct frame_data): Add opaque declaration.
3445 (frame_sniffer_ftype): Declare.
3446 (struct frame_unwind): Add "unwind_data" and "sniffer".
3447 (frame_unwind_register_unwinder): Declare.
3448 (frame_unwind_find_by_frame): Add parameter "this_cache".
3449 * frame.c (get_frame_id, create_new_frame, legacy_get_prev_frame)
3450 (legacy_get_prev_frame, legacy_get_prev_frame)
3451 (get_frame_type): Pass the prologue_cache to
3452 frame_unwind_find_by_frame.
3453 * frame-unwind.c (struct frame_unwind_table_entry): Add field
3455 (frame_unwind_register_unwinder): New function.
3456 (frame_unwind_find_by_frame): Handle an unwind sniffer.
3460 * bcache.c (print_percentage): Use floating point to avoid
3461 incorrect results when portion*100 overflows.
3465 * ppc_tdep.h (ppc_linux_frame_saved_pc)
3466 (ppc_linux_init_extra_frame_info)
3467 (ppc_linux_frameless_function_invocation)
3468 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain)
3469 (rs6000_frame_saved_pc, rs6000_init_extra_frame_info)
3470 (rs6000_frameless_function_invocation, rs6000_frame_init_saved_regs)
3471 (rs6000_frame_chain): Delete declarations.
3472 * ppc-linux-tdep.c (ppc_linux_frame_saved_pc)
3473 (ppc_linux_init_extra_frame_info)
3474 (ppc_linux_frameless_function_invocation)
3475 (ppc_linux_frame_init_saved_regs, ppc_linux_frame_chain): Delete.
3476 (ppc_linux_init_abi): Remove registration of above deleted functions.
3477 * rs6000-tdep.c (rs6000_init_extra_frame_info)
3478 (rs6000_frame_init_saved_regs, rs6000_init_frame_pc_first)
3479 (rs6000_frame_args_address, rs6000_saved_pc_after_call)
3480 (rs6000_pop_frame, rs6000_frameless_function_invocation)
3481 (rs6000_frame_saved_pc, rs6000_frame_chain): Delete.
3482 (rs6000_gdbarch_init): Remove registration of above deleted functions.
3483 Use rs6000_unwind_pc(), rs6000_frame_sniffer(),
3484 rs6000_unwind_dummy_id(), and rs6000_frame_base_sniffer() for
3485 frame management for all OSABIs.
3491 * ppc-linux-tdep.c: Include "trad-frame.h", and "frame-unwind.h".
3493 (struct ppc_linux_sigtramp_cache, ppc_linux_sigtramp_cache)
3494 (ppc_linux_sigtramp_this_id, ppc_linux_sigtramp_prev_register)
3495 (ppc_linux_sigtramp_unwind, ppc_linux_sigtramp_sniffer)
3496 (ppc_linux_init_abi): Add both 32- and 64-bit signal trampoline
3497 unwinders. #ifdef legacy frame code.
3498 * rs6000-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
3500 (rs6000_unwind_pc, rs6000_unwind_dummy_id)
3501 (struct rs6000_frame_cache, rs6000_frame_cache)
3502 (rs6000_frame_this_id, rs6000_frame_prev_register)
3503 (rs6000_frame_sniffer, rs6000_frame_unwind)
3504 (rs6000_frame_base_address, rs6000_frame_base_sniffer)
3505 (rs6000_frame_base): Implement a traditional frame unwinder.
3506 (rs6000_gdbarch_init): When unknown, NetBSD, or GNU/Linux use the
3511 * breakpoint.c (adjust_breakpoint_address): Don't adjust
3512 breakpoint address for watchpoints or the catch eventpoints.
3513 Add new paramter ``bptype''. Adjust all callers.
3517 * config/pa/tm-hppa.h (GDB_TARGET_IS_HPPA): Delete unused macro.
3519 * PROBLEMS: Delete note that ARM does not use frame code, problem
3524 * stack.c (return_command): Delete code wrapped in #ifdef
3525 DEPRECATED_CALL_DUMMY_HAS_COMPLETED, macro no longer defined.
3527 * rs6000-tdep.c (skip_prologue): Record only the first LR save.
3531 * config/mips/tm-nbsd.h: Replace IN_SIGTRAMP with
3532 DEPRECATED_IN_SIGTRAMP.
3533 * config/powerpc/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3534 * config/mips/tm-linux.h (DEPRECATED_IN_SIGTRAMP) Ditto.
3535 * config/mips/tm-irix6.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3536 * config/mips/tm-irix5.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3537 * config/ia64/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3538 * config/ia64/tm-aix.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3539 * config/arm/tm-linux.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3540 * config/arm/tm-embed.h (DEPRECATED_IN_SIGTRAMP): Ditto.
3541 * arch-utils.c (legacy_pc_in_sigtramp): Ditto.
3542 * arch-utils.h: Remove reference to IN_SIGTRAMP in comment.
3546 * frame-base.c: Update copyright. Include "gdb_obstack.h".
3547 (struct frame_base_table_entry): Define.
3548 (struct frame_base_table): Re-implement as a linked list.
3549 (frame_base_init): Re-implement.
3550 (frame_base_table): Delete function.
3551 (append_predicate): Delete function.
3552 (frame_base_append_sniffer): Update.
3553 (frame_base_set_default): Update.
3554 (frame_base_find_by_frame): Update.
3555 (_initialize_frame_base): Use gdbarch_data_register_pre_init.
3556 * Makefile.in (frame-base.o): Update dependencies.
3560 * frame.c (legacy_get_prev_frame): Pass correct frame to
3561 frame_unwind_find_by_frame.
3565 * NEWS: Mention C++ nested types and namespaces
3569 * PROBLEMS: Add section headers, "Regressions since gdb 6.0"
3570 and "Regressions since gdb 5.3.". Add known regressions since
3575 * dwarf2read.c (process_structure_scope): Process children even
3576 when we're a declaration.
3580 * symtab.h (find_pc_sect_partial_function): Delete declaration.
3581 * blockframe.c (find_pc_partial_function)
3582 (find_pc_sect_partial_function): Merge into a single
3583 find_pc_partial_function.
3587 * i386bsd-nat.c: s/regno/regnum/g.
3588 (fetch_inferior_registers): Use I386_ST0_REGNUM instead of
3590 (store_inferior_registers): Likewise.
3594 * i386bsd-nat.c (fill_fpregset): Call i387_collect_fsave instead
3596 (store_inferior_registers): Call i387_collect_fsave and
3597 i387_collect_fxsave instead of i387_fill_fsave and
3602 * Makefile.in (frame-unwind.o): Update dependencies.
3603 * frame-unwind.c: Include "gdb_obstack.h".
3604 (frame_unwind_init): Replace "gdbarch" parameter with an "obstack"
3606 (append_predicate): Delete function.
3607 (struct frame_unwind_table_entry): New structure.
3608 (struct frame_unwind_table): Replace "sniffer" with "head" and
3610 (frame_unwind_append_sniffer): Update.
3611 (frame_unwind_find_by_frame): Update.
3612 (_initialize_frame_unwind): Registe frame_unwind_init using
3613 gdbarch_data_register_pre_init.
3617 * i386bsd-nat.c: Update copyright year.
3618 (CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER): Undefine and then
3619 define unconditionally.
3623 * i387-tdep.h (i387_collect_fsave): New prototype.
3624 * i387-tdep.c (i387_collect_fsave): New function containing most
3625 of the code from i387_fill_fsave.
3626 (i387_fill_fsave): Call i387_collect_fsave.
3630 * i386-linux-tdep.c: Update copyright year.
3631 (i386_linux_svr4_fetch_link_map_offsets): Remove function.
3632 (i386_linux_init_abi): Set solib_svr4_fetch_link_maop_offsets to
3633 svr4_ilp32_link_map_offsets instead of
3634 i386_linux_svr4_fetch_link_map_offsets.
3638 Fix for PR c++/1553:
3639 * dwarf2read.c (read_structure_type): Determine type name by
3640 calling determine_class_name.
3641 (determine_class_name): New.
3642 (determine_prefix): Look at TYPE_TAG_NAME and call
3643 determine_class_name when appropriate.
3644 (determine_prefix_aux, class_name): Delete.
3645 (read_namespace): Set die->type.
3649 * breakpoint.c (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Delete
3650 unused macro definition. The definition in target.h (or perhaps
3651 elsewhere) takes precedence.
3655 * ppc-tdep.h: Update copyright.
3656 (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Change
3657 function signatures to match "regsets.h".
3658 * ppc-linux-tdep.c: Include "regset.h".
3659 (ELF_GREGSET_SIZE): Delete.
3660 (right_supply_register): New function.
3661 (ppc_linux_supply_fpregset, ppc_linux_supply_gregset): Rewrite
3662 using right_supply_register.
3663 (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): New
3665 (ppc64_linux_gregset, ppc32_linux_gregset): Define.
3666 (ppc_linux_init_abi): Register ppc_linux_regset_from_core_section.
3667 (_initialize_ppc_linux_tdep): Do not register
3668 ppc_linux_regset_core_fns.
3669 (ppc_linux_regset_from_core_section): Replace
3670 fetch_core_registers.
3671 (ppc_linux_regset_core_fns): Delete.
3672 * ppc-linux-nat.c: (right_fill_reg): New function.
3673 (supply_gregset): Update call to ppc_linux_supply_gregset.
3674 (fill_gregset): Clear the register set, use right_fill_reg.
3675 (supply_fpregset): Update call to ppc_linux_supply_fpregset.
3676 (fill_fpregset): Use right_fill_reg, correctly compute FP offsets.
3678 * rs6000-tdep.c (rs6000_register_virtual_type): Make registers
3683 * gdbarch.sh (gdbarch_data_pre_init_fytpe)
3684 (gdbarch_data_register_pre_init, gdbarch_data_post_init_fytpe)
3685 (gdbarch_data_register_post_init): Replace gdbarch_data_init_ftype
3686 and register_gdbarch_data.
3687 (deprecated_set_gdbarch_data): Rename set_gdbarch_data.
3688 (struct gdbarch_data): Replace "init" by "pre_init" and
3690 * gdbarch.h, gdbarch.c: Re-generate.
3691 * dwarf2-frame.c (dwarf2_frame_init): Replace "gdbarch" paramter
3692 with"obstack", use OBSTACK_ZALLOC.
3693 (dwarf2_frame_ops): Delete.
3694 (dwarf2_frame_set_init_reg): Use gdbarch_data.
3695 (dwarf2_frame_init_reg): Use gdbarch_data.
3696 (_initialize_dwarf2_frame): Use gdbarch_data_register_pre_init.
3697 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets)
3698 (_initialize_svr4_solib): Update.
3699 * user-regs.c (_initialize_user_regs): Update.
3700 * reggroups.c (_initialize_reggroup): Update.
3701 * regcache.c (_initialize_regcache): Update.
3702 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
3703 * libunwind-frame.c (_initialize_libunwind_frame): Update.
3704 * gnu-v3-abi.c (init_gnuv3_ops): Update.
3705 * frame-unwind.c (_initialize_frame_unwind): Update.
3706 * frame-base.c (_initialize_frame_base): Update.
3707 * user-regs.c (user_reg_add): Update.
3708 * reggroups.c (reggroup_add): Update.
3709 * mips-linux-tdep.c (set_mips_linux_register_addr): Update.
3710 * libunwind-frame.c (libunwind_frame_set_descr): Update.
3711 * frame-unwind.c (frame_unwind_append_sniffer): Update.
3712 * frame-base.c (frame_base_table): Update.
3713 * remote.c (_initialize_remote): Update.
3714 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Define.
3718 * cris-tdep.c (bfd_lookup_symbol): Delete unused function.
3722 * Makefile.in (frv-linux-tdep.o): Add dependencies.
3723 * frv-linux-tdep.c: New file.
3724 * frv-tdep.c (struct gdbarch_tdep): Add new field
3725 ``sigcontext_reg_addr''.
3726 (frv_set_sigcontext_reg_addr, frv_sigtramp,frame_cache)
3727 (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register)
3728 (frv_sigramp_frame_sniffer): New functions.
3729 (frv_sigtramp_frame_unwind): New static global.
3730 (frv_gdbarch_init): Hook in ABI-specific overrides. Hook up frame
3732 * frv-tdep.h (frv_set_sigcontext_reg_addr): New function.
3733 * config/frv/frv.mt (TDEPFILES): Add frv-linux-tdep.o.
3737 * frv-tdep.c (frv_analyze_prologue): Terminate prologue scan,
3738 but not via a call to error(), when unable to read memory.
3742 * frv-tdep.c (frv_call_dummy_words): Delete.
3743 (frv_frame_unwind_cache): Delete unused variable, ``prev_sp''.
3747 * infrun.c (handle_step_into_function, step_over_function): Only
3748 update and use STEP_FRAME_ID when the system is using legacy
3749 frames. Update comments.
3753 * amd64-linux-tdep.h: Remove file.
3754 * amd64-linux-tdep.c: Don't include "inferior.h" and
3755 "amd64-linux-tdep.h". Include "frame.h" and "solib-svr4.h".
3756 (USER_R15, USER_R14, USER_R13, USER_R12, USER_RBP, USER_RBX)
3757 (USER_R11, USER_R10, USER_R9, USER_R8, USER_RAX, USER_RCX)
3758 (USER_RDX, USER_RSI, USER_RDI, USER_RIP, USER_CS, USER_EFLAGS)
3759 (USER_RSP, USER_SS, USER_DS, USER_ES, USER_FS, USER_GS): Remove
3761 (user_to_gdb_regmap): Remove variable.
3762 (amd64_linux_gregset_reg_offset): New variable.
3763 (amd64_core_fns): Remove variable.
3764 (fetch_core_registers): Remove function.
3765 (amd64_linux_supply_gregset, amd64_linux_fill_gregset): Remove
3767 (_initialize_amd64_linux_tdep): Don't set add_core_fns.
3768 * amd64-linux-nat.c: Don't include "amd64-linux-tdep.h".
3769 * Makefile.in (amd64_linux_tdep_h): Remove.
3770 (amd64-linux-nat.o): Update dependencies.
3771 (amd64-linux-tdep.o): Update dependencies.
3773 * amd64-linux-nat.c (GETFPREGS_SUPPLIES): Remove macro.
3774 (fetch_regs, fetch_fpregs, store_regs, store_fpregs): Remove
3776 (fetch_inferior_registers, store_inferior_registers): Rewrite.
3778 * amd64-tdep.h (amd64_fill_fxsave): Remove prototype.
3779 * amd64-tdep.c (amd64_fill_fxsave): Remove function.
3783 * dwarf2read.c (read_structure_type): Rename from
3784 read_structure_scope. Don't create a symbol or call process_die.
3785 Return immediately if die->type is set. Call read_type_die before
3786 dwarf2_add_member_fn.
3787 (process_structure_scope): New function.
3788 (read_enumeration_type, process_enumeration_scope): New functions,
3789 broken out from read_enumeration. Don't create the enumeration
3790 type if it has already been created.
3791 (read_enumeration): Removed.
3792 (process_die): Call read_structure_type, process_structure_scope,
3793 read_enumeration_type, and process_enumeration_scope. Just call
3794 new_symbol for base and subrange types. Add a comment about other
3796 (read_type_die): Call read_enumeration_type.
3797 (add_partial_structure, new_symbol): Update comments.
3801 * m68hc11-tdep.c (m68hc11_register_name): Get soft reg information.
3805 * tui/tui-win.h (tui_get_cmd_list): Declare.
3806 * tui/tui-win.c (tui_command): New function.
3807 (tui_get_cmd_list): New function.
3808 (_initialize_tui_win): Moved initialization of tui command in
3811 * tui/tui-data.c (init_content_element): Setup new data members.
3812 (init_win_info): Likewise.
3813 (free_content_elements): Free it.
3814 * tui/tui-data.h (struct tui_data_element): Store the register
3816 (struct tui_data_info): Keep the current register group.
3818 * tui/tui-layout.c (tui_set_layout): Update call to tui_show_registers.
3820 * tui/tui-regs.h (tui_show_registers): Update prototype.
3821 (tui_toggle_float_regs, tui_calculate_regs_column_count): Remove.
3822 (tui_resize_all): No need to calculate anything for register window.
3823 * tui/tui-regs.c (tui_calculate_regs_column_count): Remove.
3824 (tui_set_register_element, tui_set_general_regs_content): Remove.
3825 (tui_set_special_regs_content): Remove.
3826 (tui_set_general_and_special_regs_content): Remove.
3827 (tui_set_float_regs_content): Remove.
3828 (tui_reg_value_has_changed, tui_get_register_raw_value): Remove.
3829 (tui_set_regs_content): Remove.
3830 (tui_toggle_float_regs, _tui_toggle_float_regs_command): Remove.
3831 (tui_v_show_registers_command_support): Remove.
3832 (tui_show_registers): Use a reggroup to specify the registers to show.
3833 (tui_show_register_group): New function.
3834 (tui_display_registers_from): Compute the layout of register window
3835 and refresh with new API; be sure to delete old register windows.
3836 (tui_check_register_values): Update to use tui_get_register and
3838 (tui_display_register): Just refresh the register window part.
3839 (tui_register_format): Format registers and save in tui_data_element.
3840 (tui_get_register): New to combine tui_reg_value_has_changed and
3841 tui_get_register_raw_value; fix to use the new gdb API.
3842 (tui_show_float_command): Renamed tui_reg_float_command.
3843 (tui_show_general_command): Renamed tui_reg_general_command.
3844 (tui_show_special_command): Renamed tui_reg_system_command.
3845 (_initialize_tui_regs): Remove unused commands.
3849 * NEWS (New native configurations): Mention OpenBSD/amd64.
3851 * config/i386/nm-fbsd.h: Include "config/nm-bsd.h".
3852 (PTRACE_ARG3_TYPE, FETCH_INFERIOR_REGISTERS, ATTACH_DETACH):
3854 * config/i386/nm-fbsd64.h: Likewise.
3855 * config/i386/nm-obsd.h: Likewise.
3856 * config/sparc/nm-fbsd.h: Likewise. Update copyright year.
3857 * config/alpha/nm-fbsd.h: Likewise. Update copyright year.
3861 * frv-tdep.c (set_variant_scratch_registers): New function.
3862 * frv-tdep.h (scr0_regnum, scr1_regnum, scr2_regnum, scr3_regnum):
3866 * frv-tdep.c (frv_gdbarch_init): Add FR450 support.
3870 * frv-tdep.c, frv-tdep.h (first_gpr_regnum, sp_regnum, fp_regnum)
3871 (struct_return_regnum, last_gpr_regnum, first_fpr_regnum)
3872 (last_fpr_regnum, pc_regnum, first_spr_regnum, psr_regnum, ccr_regnum)
3873 (cccr_regnum, fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum)
3874 (tbr_regnum, brr_regnum, dbar0_regnum, dbar1_regnum, dbar2_regnum)
3875 (dbar3_regnum, lr_regnum, lcr_regnum, iacc0h_regnum, iacc0l_regnum)
3876 (last_spr_regnum, frv_num_regs, first_pseudo_regnum, iacc0_regnum)
3877 (last_pseudo_regnum, frv_num_pseudo_regs): Move constant (enum)
3878 definitions from frv-tdep.c to frv-tdep.h.
3882 Add shared library support for FR-V FDPIC ABI:
3883 * Makefile.in (solib-frv.o): Add dependencies.
3884 * frv-tdep.c (find_func_descr, frv_convert_from_func_ptr_addr):
3886 (frv_push_dummy_call): Add support for FDPIC ABI.
3887 (frv_gdbarch_init): Call set_gdbarch_convert_from_func_ptr_addr()
3889 * frv-tdep.h (frv_fdpic_find_global_pointer): Declare.
3890 (frv_fdpic_find_canonical_descriptor): Declare.
3891 * solib-frv.c: New file.
3892 * config/frv/frv.mt (TDEPFILES): Add solib.o and solib-frv.o.
3893 * config/frv/tm-frv.h (solib.h): Include.
3897 * Makefile.in (elf_frv_h, frv_tdep_h): Define.
3898 (frv-tdep.o): Update dependencies.
3899 * frv-tdep.h: New file.
3900 * frv-tdep.c (elf-bfd.h, elf/frv.h, osabi.h, frv-tdep.h): Include.
3901 (fdpic_loadmap_exec_regnum, fdpic_loadmap_interp_regnum): New
3903 (struct gdbarch_tdep): Add new member ``frv_abi''.
3904 (frv_abi, frv_fdpic_loadmap_addresses, set_variant_abi_fdpic): New
3906 (new_variant): Set ``frv_abi'' field.
3907 (gdb_arch_init): Detect FDPIC executables.
3911 * solib-svr4.h: Change SOLIB_SVR4 wrapper into SOLIB_SVR4_H
3916 * solib-svr4.h: Add #ifndef SOLIB_SVR4 wrapper.
3920 * solist.h (master_so_list): New function.
3921 * solib.c (master_so_list): Likewise.
3922 * solib-svr4.c (enable_break): Iterate over so_list entries
3923 obtained from master list instead of entries obtained directly
3924 via svr4_current_sos().
3928 * MAINTAINERS: Update my mail address.
3932 * remote-m32r-sdi.c: Support hardware watchpoint.
3936 * user-regs.c: Update copyright years.
3937 (struct user_regs): Rename to gdb_user_regs.
3938 (append_user_reg, builtin_user_regs, user_regs_init)
3939 (user_reg_add, user_reg_map_name_to_regnum)
3940 (usernum_to_user_reg): Update.
3944 * dwarf2read.c (skip_leb128, peek_die_abbrev, skip_one_die)
3945 (skip_children): New functions.
3946 (locate_pdi_sibling): Call skip_children.
3950 * arm-tdep.c (arm_use_struct_convention): Look through typedefs.
3951 * gdbtypes.c (check_typedef): Update comments.
3955 * dwarf2read.c (struct comp_unit_head): Remove dwarf2_abbrevs array.
3956 (struct dwarf2_cu): Add abbrev_obstack and dwarf2_abbrevs
3957 pointer. Update comment about comp_unit_head.
3958 (struct abbrev_info): Shorten two int flags.
3959 (dwarf_alloc_abbrev): Take a CU argument.
3960 (dwarf2_build_psymtabs_hard): Call dwarf2_free_abbrev_table
3961 each time through the loop. Update cleanup argument.
3962 (psymtab_to_symtab_1): Update cleanup call.
3963 (dwarf2_read_abbrevs, dwarf2_alloc_abbrev): Allocate on the
3965 (dwarf2_free_abbrev_table): Renamed from dwarf2_empty_abbrev_table.
3966 Just call obstack_free and clear the pointer.
3970 * infrun.c (handle_inferior_event): Remove short-circuit code for
3971 events in a different thread.
3975 * target.c (debug_to_xfer_memory): If targetdebug is 1, don't
3976 print the whole transfer.
3977 (initialize_targets): Update description of "set debug target".
3981 * arm-tdep.c (thumb_get_next_pc): Handle Thumb BLX.
3985 * MAINTAINERS (write after approval): Add myself.
3989 * sh-tdep.c (sh_print_registers_info): Use for loop.
3990 Don't skip multiple registers when a float register is encountered.
3995 * sh-tdep.c (sh_analyze_prologue): Align PC relative addressing
3996 to official SH documentation.
4000 * ppc-linux-nat.c (ppc_ptrace_cannot_fetch_store_register): Delete
4005 * arm-tdep.c (thumb_get_next_pc): Handle BX.
4006 (arm_get_next_pc): Handle BX and BLX.
4010 * hppa-tdep.c: Replace DEPRECATED_FP_REGNUM with HPPA_FP_REGNUM,
4011 FP0_REGNUM with HPPA_FP0_REGNUM, and SP_REGNUM with
4013 (hppa_register_raw_size, hppa_register_byte, hppa_read_fp)
4014 (hppa_target_read_fp): Delete.
4015 (hppa_gdbarch_init): Do not set deprecated register_raw_size,
4016 register_virtual_size, max_register_raw_size,
4017 max_register_virtual_size, register_byte, register_size,
4018 target_read_fp, fp_regnum, and register_bytes. Set register_type
4019 instead of register_virtual_type.
4020 (hppa32_register_type, hppa64_register_type): Replace
4021 hppa32_register_virtual_type and hppa64_register_virtual_type.
4022 * config/pa/tm-hppa.h (HPPA_FP0_REGNUM, HPPA_SP_REGNUM)
4023 (HPPA_FP_REGNUM): Define.
4025 * hppa-tdep.c (hppa_gdbarch_init): Add missing "break".
4027 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO)
4028 (pa_do_registers_info): Delete.
4029 * hppa-tdep.c (pa_do_registers_info, pa_do_strcat_registers_info)
4030 (pa_print_registers, pa_print_fp_reg, pa_strcat_registers)
4031 (pa_strcat_fp_reg, pa_register_look_aside): Delete.
4033 * infcall.c (legacy_push_dummy_code): Delete #ifdef
4034 GDB_TARGET_IS_HPPA code.
4035 * config/pa/tm-hppa.h (DEPRECATED_FIX_CALL_DUMMY)
4036 (hppa_fix_call_dummy, DEPRECATED_CALL_DUMMY_HAS_COMPLETED)
4037 (DEPRECATED_DUMMY_WRITE_SP, CALL_DUMMY): Delete.
4038 * config/pa/tm-hppa64.h (CALL_DUMMY): Delete.
4039 * hppa-tdep.c (hppa_frame_chain, hppa_frame_chain_valid)
4040 (hppa_push_dummy_frame, hppa_pop_frame, hppa_push_arguments)
4041 (hppa_fix_call_dummy, hppa64_stack_align, hppa_frame_saved_pc)
4042 (hppa_init_extra_frame_info, hppa_saved_pc_after_call)
4043 (hppa64_call_dummy_breakpoint_offset, hppa_frame_init_saved_regs)
4044 (hppa_frameless_function_invocation, hppa64_store_return_value)
4045 (hppa_store_struct_return, hppa64_extract_return_value)
4046 (hppa64_use_struct_convention, hppa_frame_find_saved_regs)
4047 (hppa32_call_dummy_length, hppa64_call_dummy_length)
4048 (find_dummy_frame_regs, FUNC_LDIL_OFFSET, FUNC_LDO_OFFSET)
4049 (find_proc_framesize, deposit_21, restore_pc_queue)
4050 (find_return_regnum, pc_in_interrupt_handler, deposit_14)
4051 (rp_saved, pc_in_linker_stub): Delete.
4053 Unconditionally enable 64-bit frame and ABI code.
4054 * hppa-tdep.c (hppa_gdbarch_init): Do not set deprecated
4055 call_dummy_breakpoint_offset, call_dummy_length, stack_align,
4056 push_dummy_frame, fix_call_dummy, push_arguments,
4057 call_dummy_location, extract_return_value, use_struct_convention,
4058 store_return_value, store_struct_return, saved_pc_after_call,
4059 init_frame_pc, frame_init_saved_regs, init_extra_frame_info,
4060 frame_chain, frame_chain_valid, frameless_function_invocation,
4061 frame_saved_pc, and pop_frame.
4063 * hppa-tdep.c: Replace PC_REGNUM with PCOQ_HEAD_REGNUM.
4064 (hppa64_return_value, hppa64_push_dummy_call): Rewrite.
4065 (hppa_gdbarch_init): Do not set PC_REGNUM.
4069 * config/alpha/tm-fbsd.h: Remove file.
4070 * config/alpha/fbsd.mt: Tweak comment.
4071 (TM_FILE): Set to tm-alpha.h.
4075 * infrun.c (step_over_function): When non-legacy code, and no
4076 step_frame_id, use the unwinder to get the caller's frame ID.
4080 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Register
4081 i386bsd_core_osabi_sniffer for bfd_arch_i386 instead of
4082 bfd_arch_unknown. Adjust comment.
4084 * i386-nat.c: Fix typo in comment. Re-introduce paranoiac.
4085 * i386obsd-tdep.c: Correct spelling in comment.
4086 * i386nbsd-tdep.c: Correct spelling in comment.
4087 * sparc-tdep.c: Correct spelling in comments.
4091 * cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion
4096 * sparc-tdep.c: Fix typo in comment.
4100 * hppa-tdep.c (hppa_frame_cache): Avoid undefined return value.
4104 * dwarf2read.c: Add comment describing memory lifetimes.
4105 (struct dwarf2_pinfo): Update comment.
4106 (dwarf2_add_field, dwarf2_add_member_fn, read_structure_scope)
4107 (read_enumeration, new_symbol): Don't use obsavestring.
4111 * amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
4112 instead of amd64_fill_fxsave.
4113 * amd64bsd-nat.c (store_inferior_registers): Likewise.
4114 * amd64fbsd-nat.c (fill_fpregset): Likewise.
4116 * sparc-tdep.c (sparc_frame_cache): Don't bail out if %fp is zero.
4117 Reorganize code a bit.
4121 * cris-tdep.c (cris_scan_prologue): Save the frame pointer's offset
4122 when the frame pointer is pushed. Don't set the frame pointer's
4123 address on the stack unless it's actually located there.
4124 Set the SRP's address on the stack correctly when the PC is still in
4126 (cris_return_value): New function.
4127 (cris_gdbarch_init): Clear deprecated store_return_value,
4128 extract_return_value.
4132 * stabsread.c (reg_value_complaint): The maximum register number
4133 is one less than the number of registers.
4137 * i386-tdep.h (enum i386_regnum): Add I386_DS_REGNUM,
4138 I386_ES_REGNUM, I386_FS_REGNUM, and I386_GS_REGNUM. Remove
4139 trailing comma and redundant assignment of I386_ST0_REGNUM.
4140 * amd64-nat.c (amd64_collect_native_gregset): Zero-extend the
4141 32-bit segment registers.
4145 * rs6000-tdep.c (rs6000_init_frame_pc_first): Fix compiler error,
4146 use frame_relative_level and get_next_frame.
4150 * rs6000-tdep.c (rs6000_init_frame_pc_first): New function.
4151 (rs6000_gdbarch_init): Set deprecated_init_frame_pc_first.
4152 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST):
4157 * inflow.c (terminal_inferior): Don't give up the terminal if we
4158 previously couldn't get the inferior's terminal state.
4162 * regcache.c (read_pc_pid): Restore inferior_ptid after reading
4167 * NEWS: Refer to GDB 6.1.
4168 * README: Refer to GDB 6.1.
4169 * PROBLEMS: Refer to GDB 6.1.
4173 * thread-db.c (disable_thread_signals): Remove unused function.
4177 * amd64-nat.c: Include "gdb_string.h".
4178 (amd64_collect_native_gregset): Zero-extend the 32-bit
4179 general-purpose registers and %eip.
4181 * amd64-tdep.h: (amd64_collect_fxsave): New prototype.
4182 * amd64-tdep.c (amd64_collect_fxsave): New function.
4183 (amd64_fill_fxsave): Simply call amd64_collect_fxsave.
4185 * i387-tdep.h: Update copyright year.
4186 (i387_collect_fxsave): New prototype.
4187 * i387-tdep.c: Update copyright year.
4188 (i387_collect_fxsave): New function containing most of the code
4189 from i387_fill_fxsave.
4190 (i387_fill_fxsave): Call i387_collect_fxsave.
4194 * amd64-linux-nat.c (ps_get_thread_area): When architecture is
4195 i386 use PTRACE_GET_THREAD_AREA. Suggested by Roland McGrath.
4199 * amd64-tdep.c (amd64_frame_cache): Fix comment.
4203 * utils.c: Use "", instead of <>, to include readline.
4204 tui/tui-win.c, tui/tui.c, tui/tui-hooks.c: Ditto.
4205 * tracepoint.c, top.c, symmisc.c, symfile.c: Ditto.
4206 * source.c, solib.c, exec.c, event-top.c: Ditto.
4207 * corelow.c, completer.c, cli/cli-setshow.c: Ditto.
4208 * cli/cli-dump.c, cli/cli-cmds.c: Ditto.
4209 * Makefile.in: Update all dependencies.
4210 (readline_tilde_h, readline_history_h): Define.
4211 (readline_headers): Delete.
4215 * config/djgpp/fnchange.lst: Rename "config/i386/nm-linux64.h" to
4216 "config/i386/nm-lx64.h" and "config/i386/tm-linux64.h" to
4217 "config/i386/tm-lx64.h".
4219 * config/djgpp/fnchange.lst: Rename "amd64-linux-tdep.c" to
4220 "amd64-ltdep.c" and "amd64-linux-nat.c" to "amd64-lnat.c". Remove
4221 rules for "x86-64-linux-tdep.c" and "x86-64-linux-nat.c".
4225 * dwarf2-frame.h (struct gdbarch): Add opaque declaration.
4227 * breakpoint.c (_initialize_breakpoint): Use
4228 "add_setshow_auto_boolean_cmd. Better word-wrap help messages.
4229 Add help to show command.
4233 * i386-nat.c: Reformat to be closer to coding standards.
4234 (i386_handle_nonaligned_watchpoint): Rename local variable `rv' to
4235 `retval'. Make variables `align' and `size' local to while-loop.
4236 (i386_stopped_data_address): Rename local variable `ret' to `addr'.
4237 (_initialize_i386_nat): New prototype.
4239 * tui/tui.c: Include <readline/readline.h> instead of
4240 "readline/readline.h". Include it after <term.h> and
4245 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always use
4246 the new frame unwind code.
4247 (hppa_frame_cache): Use PCOQ_HEAD_REGNUM instead of PC_REGNUM.
4248 (hppa_frame_prev_register): Compute PCOQ_TAIL_REGNUM from
4251 * hppa-tdep.c (hppa_gdbarch_init): On 32-bit systems always
4252 "return_value" and "push_dummy_call".
4253 (hppa32_use_struct_convention): Delete unused function.
4254 (hppa32_store_return_value): Delete unused function.
4255 (hppa32_extract_return_value): Delete unused function.
4256 (hppa32_stack_align): Delete function.
4260 * coffread.c (enter_linenos): Don't let rawptr reference memory
4261 outside linetab[]'s limits.
4265 * hppa-tdep.c (hppa32_push_dummy_call): Fix code reserving
4266 inferior stack space - the stack needs to grow upwards.
4267 (hppa32_frame_align): New function.
4268 (hppa64_frame_align): Replace hppa_frame_align.
4269 (hppa_gdbarch_init): Update.
4273 * cris-tdep.c (frame_unwind.h, frame-base.h, trad-frame.h)
4274 (dwarf2-frame.h): Include.
4275 (enum cris_regnums): New enum CRIS_FP_REGNUM.
4276 Remove static variables related to ABI setting.
4277 (struct gdbarch_tdep): Remove cris_abi member.
4278 (struct frame_extra_info): Remove.
4279 (cris_unwind_cache, stack_item): New structs.
4280 (cris_frame_unwind, cris_frame_base): New variables.
4281 (push_stack_item, pop_stack_item)
4282 (cris_frame_unwind_cache, cris_frame_this_id)
4283 (cris_frame_prev_register, cris_unwind_dummy_id, cris_frame_align)
4284 (cris_push_dummy_code, cris_push_dummy_call, cris_frame_sniffer)
4285 (cris_frame_base_address, cris_scan_prologue, cris_unwind_pc)
4286 (cris_unwind_sp, cris_store_return_value, cris_extract_return_value)
4287 (cris_reg_struct_has_addr): New functions.
4288 (cris_examine, cris_frame_init_saved_regs, cris_frame_chain)
4289 (cris_frame_saved_pc, cris_saved_pc_after_call,
4290 (cris_store_struct_return, cris_frameless_function_invocation)
4291 (cris_pop_frame, cris_skip_prologue_main)
4292 (cris_abi_original_store_return_value)
4293 (cris_abi_v2_store_return_value)
4294 (cris_abi_original_extract_return_value)
4295 (cris_abi_v2_extract_return_value)
4296 (cris_abi_original_reg_struct_has_addr)
4297 (cris_abi_v2_reg_struct_has_addr)
4298 (cris_abi_original_push_arguments, cris_abi_v2_push_arguments)
4299 (cris_push_return_address, cris_abi_update): Remove.
4300 (_initialize_cris_tdep): Remove ABI command.
4301 (cris_dump_tdep): Ditto.
4302 (cris_gdbarch_init): Remove ABI command.
4303 Set store_return_value, extract_return_value, push_dummy_code,
4304 push_dummy_call, frame_align, unwind_pc, unwind_sp, unwind_dummy_id,
4305 frame_unwind_append_sniffer, frame_base_set_default.
4306 Clear deprecated init_frame_pc, push_arguments, store_return_value,
4307 extract_return_value, fp_regnum, pc_in_call_dummy, call_dummy_words,
4308 sizeof_call_dummy_words, get_saved_register, push_return_address,
4309 pop_frame, store_struct_return, frame_init_saved_regs,
4310 init_extra_frame_info, frameless_function_invocation, frame_chain,
4311 frame_saved_pc, saved_pc_after_call, save_dummy_frame_tos,
4316 * valprint.h (print_hex_chars, print_char_chars): New prototypes.
4317 * valprint.c (print_hex_chars): Change from static to external.
4318 (print_char_chars): New function.
4319 * printcmd.c (print_scalar_formatted): For integer and enum types
4320 that are longer than LONGEST, perform processing via appropriate
4321 print_*_chars routines.
4325 * Makefile.in: Update dependencies.
4326 Changes from Ulrich Weigand,
4327 * s390-tdep.c: Include "dwarf2-frame.h".
4328 (s390_dwarf2_frame_init_reg): New function.
4329 (s390_gdbarch_init): Install dwarf2_frame_sniffer and
4330 dwarf2_frame_base_sniffer. Call dwarf2_frame_set_init_reg.
4334 * breakpoint.c (pending_break_support): New setting variable.
4335 (break_command_1): Account for pending_break_support setting
4336 when creating pending breakpoints.
4337 (set_breakpoint_cmd, show_breakpoint_cmd): New functions.
4338 (_initialize_breakpoint): Add "set breakpoint pending" and
4339 "show breakpoint pending" commands.
4344 * charset.c (backslashable, backslashed, represented): Remove 'e'
4345 from list of escaped characters, not part of ISO-C.
4350 * tui/tui.c: Move system header includes after local includes.
4351 Fixes a build failure on solaris systems.
4355 * configure.in: Refine the previous change.
4356 * configure: Regenerate.
4360 * amd64-tdep.h: Renamed from x86-64-tdep.h.
4361 * amd64-tdep.c: Renamed from x86-64-tdep.c. Include
4362 "amd64-tdep.h" instead of "x86-64-tdep.h".
4363 * amd64-nat.c: Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4364 * amd64-linux-tdep.h: Renamed from x86-64-linux.h.
4365 * amd64-linux-tdep.c: Renamed from x86-64-linux-tdep.c. Include
4366 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4367 and "x86-64-tdep.c".
4368 * amd64-linux-nat.c: Renamed from x86-64-linux-nat.c. Include
4369 "amd64-tdep.h" and "amd64-linux-tdep.h" instead of "x86-64-tdep.h"
4370 and "x86-64-tdep.c".
4371 * amd64bsd-nat.c: Update copyright year.
4372 Include "amd64-tdep.h" instead of "x86-64-tdep.h".
4373 * amd64fbsd-tdep.c: Include "amd64-tdep.h" instead of
4375 * amd64fbsd-nat.c: Include "amd64-tdep.h" instead of
4377 * amd64nbsd-tdep.c: Include "amd64-tdep.h" instead of
4379 * amd64nbsd-nat.c: Include "amd64-tdep.h" instead of
4381 * amd64obsd-tdep.c: Include "amd64-tdep.h" instead of
4383 * amd64obsd-nat.c: Include "amd64-tdep.h" instead of
4385 * configure.host: (x86_64-*-linux*): Set gdb_target to linux64.
4386 * configure.tgt (x86_64-*-linux*): Set gdb_target to linux64.
4387 * Makefile.in (amd64_linux_tdep_h): Renamed from
4388 x86_64_linux_tdep_h.
4389 (amd64_tdep_h): Renamed from x86_64_tdep_h.
4390 (amd64bsd-nat.o, amd64fbsd-nat.o, amd64fbsd-tdep.o, amd64-nat.o)
4391 (amd64nbsd-nat.o, amd64nbsd-tdep.o, amd64obsd-nat.o)
4392 (amd64obsd-tdep.o): Update dependencies.
4393 (amd64-tdep.o, amd64-linux-nat.o, amd64-linux-tdep.o): New
4395 (x86-64-linux-nat.o, x86-64-linux-tdep.o, x86-64-tdep.o): Remove
4397 (ALLDEPFILES): Add amd64-tdep.c, amd64obsd-nat.c, amd64obsd-nat.c,
4398 amd64-linux-nat.c amd64-linux-tdep.c.
4399 * config/i386/tm-linux64.h: Renamed from tm-x86-64linux.h
4400 * config/i386/nm-linux64.h: Renamed from nm-x86-64linux.h.
4401 * config/i386/linux64.mt: Renamed from x86-64linux.mt.
4402 (TDEPFILES): Replace x86-64-tdep.o and x86-64-linux-tdep.o with
4403 amd64-tdep.o and amd64-linux-tdep.o.
4404 (TM_FILE): Set to tm-linux64.h.
4405 * config/i386/linux64.mh: Renamed from x86-64linux.mh.
4406 (NAT_FILE): Set to nm-linux64.h.
4407 (NATDEPFILES): Replace x86-64-linux-nat.o with amd64-linux-nat.o.
4408 * config/i386/fbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4410 * config/i386/nbsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4412 * config/i386/obsd64.mt (TDEPFILES): Replace x86-64-tdep.o with
4417 * remote.c (remote_protocol_qPart_auxv): New variable.
4418 (init_all_packet_configs): Initialize it.
4419 (set_remote_protocol_qPart_auxv_packet_cmd): New function.
4420 (show_remote_protocol_qPart_auxv_packet_cmd): New function.
4421 (show_remote_cmd): Call it.
4422 (_initialize_remote): Initialize commands.
4423 (remote_xfer_partial): If enabled, use qPart:auxv:read:... query to
4424 service TARGET_OBJECT_AUXV requests.
4428 * configure.in: Make sure that the wborder function is available.
4429 Otherwise, search for it in the cur_colr library.
4430 * configure: Regenerate.
4434 * hppa-tdep.c (hppa32_push_dummy_call): Rewrite.
4438 * config/i386/tm-x86-64linux.h: Tweak comments.
4442 * MAINTAINERS: Add self to write-after-approval list.
4446 PR cli/1566. Problem found, and fix suggested by David Allan.
4447 * cli/cli-script.c (execute_control_command): Unconditionally
4448 install a cleanup. Default "ret" to "invalid_control". Use
4449 "break" instead of "return" to escape from the switch.
4453 * tui/tui-disasm.c: %s/lines/asm_lines/g to avoid a collision
4454 with the lines macro defined in term.h on AiX.
4455 * tui/tui-regs.c: %s/label_width/tui_label_width/g, to avoid
4456 a collision with the label_width macro defined in term.h on AiX.
4462 * ia64-tdep.h (ia64_write_pc, ia64_linux_write_pc): Declare.
4463 * ia64-tdep.c (ia64_write_pc): Make it a global function.
4464 (ia64_gdbarch_init): For Linux targets, use ia64_linux_write_pc()
4465 instead of ia64_write_pc().
4466 * ia64-linux-tdep.c (regcache.h): Include.
4467 (ia64_linux_write_pc): New function.
4471 * auxv.c (info_auxv_command): Fix typos in error messages.
4475 * x86-64-tdep.h: Tweak comment.
4476 (enum amd64_regnum): New.
4477 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM)
4478 (X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM)
4479 (X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM)
4480 (X86_64_XMM1_REGNUM): Removed.
4481 (AMD64_NUM_GREGS): Renamed from X86_64_NUM_GREGS.
4482 (amd64_init_abi, amd64_supply_fxsave, amd64_fill_fxsave): Adjust
4483 prototypes for renamed functions.
4484 * x86-64-tdep.c: Fix typo.
4485 (amd64_dwarf_regmap): Use constants from `enum amd64_regnum' for
4487 (amd64_return_value, amd64_push_arguments, amd64_push_dummy_call):
4488 Use constants from `enum amd64_regnum' for register numbers.
4489 (AMD64_NUM_SAVED_REGS): Adjust for renamed macros.
4490 (amd64_analyze_prologue, amd64_frame_cache,
4491 amd64_sigtramp_frame_cache): Use constants from `enum
4492 amd64_regnum' for register numbers.
4493 (amd64_supply_fpregset): Adjust for renamed functions.
4494 (amd64_init_abi): Rename from x86_64_init_abi. Use constants from
4495 `enum amd64_regnum' for register numbers.
4496 (I387_ST0_REGNUM): Use constant from `enum amd64_regnum'.
4497 (amd64_supply_fxsave): Rename from x86_64_supply_fxsave.
4498 (amd64_fill_fxsave): Rename fro x86_64_fill_fxsave.
4499 * x86-64-linux-tdep.c (amd64_linux_supply_gregset)
4500 (amd64_linux_fill_gregset): Adjust for renamed macros.
4501 (fetch_core_registers): Adjust for renamed functions.
4502 (amd64_linux_init_abi): Adjust for renamed functions.
4503 * x86-64-linux-nat.c (supply_gregset, fill_gregset): Adjust for
4505 * amd64-nat.c: Adjust for renamed macros.
4506 * amd64bsd-nat.c (fetch_inferior_registers)
4507 (store_inferior_registers): Use constants from `enum amd64_regnum'
4508 for register numbers. Adjust for renamed variables.
4509 * amd64fbsd-nat.c (supply_gregset, fill_gregset): Adjust for
4511 (_initialize_amd64fbsd_nat): Use constants from `enum
4512 amd64_regnum' for register numbers.
4513 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use constants from
4514 `enum amd64_regnum' for register numbers.
4515 (amd64fbsd_init_abi): Adjust for renamed functions.
4516 * amd64nbsd-tdep.c (amd64nbsd_sigcontext_addr): Use constants from
4517 `enum amd64_regnum' for register numbers.
4518 (amd64nbsd_init_abi): Adjust for renamed functions.
4519 (_initialize_amd64nbsd_ndep): Adjust for renamed macros.
4520 * amd64obsd-tdep.c (amd64obsd_sigcontext_addr): Use constants from
4521 `enum amd64_regnum' for register numbers.
4522 (amd64obsd_init_abi): Adjust for renamed functions.
4523 (_initialize_amd64obsd_ndep): Adjust for renamed macros.
4527 * breakpoint.c (print_one_breakpoint): Do not output spaces
4528 after printing <PENDING> for a pending breakpoint.
4532 * printcmd.c (print_scalar_formatted): Initialize val_long
4533 to remove compiler warning message.
4537 * defs.h (nquery, yquery): New prototypes.
4538 * breakpoint.c (break_command_1): Use new nquery interface.
4539 * utils.c (defaulted_query, nquery, yquery): New functions.
4543 * hppa-tdep.c (hppa_frame_align): New function.
4544 (hppa32_push_dummy_call): New function.
4545 (hppa64_push_dummy_call): New function.
4546 (hppa_gdbarch_init): Set frame_align and push_dummy_call; keep
4549 * infcall.c (legacy_push_dummy_code): Don't call deprecated
4550 FIX_CALL_DUMMY when push_dummy_call is available.
4551 (call_function_by_hand, push_dummy_code): Ditto.
4555 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Delete macro.
4556 (DEPRECATED_PC_IN_CALL_DUMMY): Delete macro.
4557 (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Delete macro.
4558 * hppa-tdep.c (hppa_gdbarch_init): Clear deprecated
4559 use_generic_dummy_frames, set deprecated pc_in_call_dummy, set
4560 call_dummy_location to ON_STACK.
4564 * x86-64-linux-tdep.c: Tweak comment.
4565 (amd64_linux_supply_gregset): Renamed from
4566 x86_64_linux_supply_gresget.
4567 (amd64_linux_fill_gregset): Renamed from
4568 x86_64_linux_fill_gregset.
4569 (fetch_core_registers): Adjust for renamed functions.
4570 (amd64_core_fns): Renamed from x86_64_core_fns.
4571 (amd64_linux_sigtramp_start): Renamed from
4572 x86_64_linux_sigtramp_start.
4573 (amd64_linux_pc_in_sigtramp): Renamed from
4574 x86_64_linux_pc_in_sigtramp. Adjust for renamed functions.
4575 (AMD64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Renamed from
4576 X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET.
4577 (amd64_linux_sigcontext_addr): Renamed from
4578 x86_64_linux_sigcontext_addr.
4579 (amd64_linux_sc_reg_offset): Renamed from
4580 x86_64_linux_sc_reg_offset.
4581 (amd64_linux_init_abi): Renamed from x86_64_linux_init_abi.
4582 Adjust for renamed functions and variables.
4583 (_initialize_amd64_linux_tdep): Renamed from
4584 _initialize_x86_64_linux_tdep. Adjust for renamed functions and
4586 * x86-64-linux-tdep.h: Update copyright year. Tweak comment.
4587 Adjust for renamed functions.
4589 * x86-64-linux-nat.c (amd64_linux_gregset64_reg_offset): Rename
4590 from x86_64_linux_gregset64_reg_offset.
4591 (amd64_linux_gregset32_reg_offset): Rename from
4592 x86_64_linux_gregset64_reg_offset.
4593 (amd64_linux_dr_get): Renamed from x86_64_linux_dr_get.
4594 (amd64_linux_dr_set): Renamed from x86_64_linux_dr_set.
4595 (amd64_linux_dr_set_control): Renamed from
4596 x86_64_linux_dr_set_control. Adjust for renamed functions.
4597 (amd64_linux_dr_set_addr): Renamed from x86_64_linux_dr_set_addr.
4598 Adjust for renamed functions.
4599 (amd64_linux_dr_reset_addr): Renamed from
4600 x86_64_linux_dr_reset_addr. Adjust for renamed functions.
4601 (amd64_linux_dr_get_status): Renamed from
4602 x86_64_linux_dr_get_status. Adjust for renamed functions.
4603 (_initialize_amd64_linux_nat): Renamed from
4604 _initialize_x86_64_linux_nat. Adjust for renamed variables and
4606 * config/i386/nm-x86-64linux.h: Update copyright year.
4607 Adjust for renamed functions.
4609 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_start_addr): Renamed from
4610 amd64fbsd_sigtramp_start.
4611 (amd64fbsd_sigtramp_end_addr): Renamed from
4612 amd64fbsd_sigtramp_end.
4613 (amd64fbsd_init_abi): Adjust for renamed variables.
4614 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Adjust for renamed
4616 * x86-64-tdep.h (amd64fbsd_sigtramp_start_addr): Renamed from
4617 amd64fbsd_sigtramp_start.
4618 (amd64fbsd_sigtramp_end_addr): Renamed from
4619 amd64fbsd_sigtramp_end.
4623 * hppa-tdep.c (hppa32_return_value): New function.
4624 (hppa64_return_value): New function.
4625 (hppa_gdbarch_init): Set return_value; keep disabled.
4627 * hppa-tdep.c (hppa_gdbarch_init): Re-order separating
4628 struct-return and inferior function call methods.
4630 * hppa-tdep.c: Include "trad-frame.h", "frame-unwind.h", and
4632 (struct hppa_frame_cache): Define.
4633 (hppa_frame_cache, hppa_frame_this_id): New functions.
4634 (hppa_frame_prev_register): New function.
4635 (hppa_frame_unwind, hppa_frame_base): New variables.
4636 (hppa_frame_unwind_sniffer): New function.
4637 (hppa_frame_base_address, hppa_unwind_pc): New function.
4638 (hppa_gdbarch_init): Set unwind_dummy_id, unwind_pc, frame unwind
4639 sniffer, and frame base sniffer; keep disabled.
4640 (hppa_frame_base_sniffer, hppa_unwind_dummy_id): New functions.
4641 * Makefile.in: Update dependencies, fix s/nbsd/obsd/ typo.
4643 * frame-unwind.c (frame_unwind_find_by_frame): Add legacy_frame_p
4644 to predicates for "seriously old code".
4646 * hppa-tdep.c (hppa_gdbarch_init): Convert compile time #if0s into
4649 * hppa-tdep.c (hppa_breakpoint_from_pc): Make "breakpoint"
4651 (hppa_frame_find_saved_regs): Fix "std" instruction pattern
4653 * config/pa/tm-hppa.h: Update copyright.
4654 (DEPRECATED_INIT_FRAME_PC): Delete macro.
4655 (deprecated_init_frame_pc_default): Delete declaration.
4656 (hppa_frame_init_saved_regs): Delete declaration.
4657 (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
4658 * hppa-tdep.c: Include "arch-utils.h".
4659 (hppa_gdbarch_init): Set deprecated init_frame_pc
4660 and deprecated frame_init_saved_regs.
4661 (hppa_frame_init_saved_regs): Make static.
4665 Remove old 386BSD support.
4666 * NEWS (REMOVED configurations and files): Add i[3456]86-*-bsd*.
4667 * configure.host: Remove i[34567]86-*-bsd*.
4668 * configure.tgt: Remove i[34567]86-*-bsd*.
4669 * i386b-nat.c: Removed.
4670 * Makefile.in (ALLDEPFILES): Remove i386b-nat.c.
4671 (i386b-nat.o): Remove dependencies.
4673 * config/i386/i386bsd.mh: Removed.
4674 * config/i386/i386bsd.mt: Removed.
4675 * config/i386/nm-i386bsd.h: Removed.
4676 * config/i386/tm-i386bsd.h: Removed.
4677 * config/i386/xm-i386bsd.h: Removed.
4679 * x86-64-tdep.h (amd64obsd_r_reg_offset): New extern declaration.
4681 * amd64fbsd-tdep.c: Include "solib-svr4.h".
4682 (amd64fbsd_init_abi): Set link map offsets.
4683 * amd64nbsd-tdep.c: Include "slib-svr4.h".
4684 (amd64nbsd_init_abi): Set link map offsets.
4685 * amd64obsd-tdep.c: Include "solib-svr4.h".
4686 (amd64obsd_init_abi): Set link map offsets.
4687 * i386fbsd-tdep.c: Include "solib-svr4.h".
4688 (i386fbsd_init_abi): Set link map offsets.
4689 * i386nbsd-tdep.c: Include "solib-svr4.h".
4690 (i386nbsdelf_init_abi): Set link map offsets.
4691 * Makefile.in (amd64fbsd-tdep.o, amd64nbsd-tdep.o)
4692 (amd64obsd-tdep.o, i386fbsd-tdep.o): Update dependencies.
4693 * config/i386/fbsd.mh (NATDEPFILES): Remove solib.o, solib-svr4.o,
4694 solib-legacy.o and core-aout.o. Reformat.
4695 * config/i386/fbsd64.mh (NATDEPFILES): Remove solib.o,
4696 solib-svr4.o, solib-legacy.o. Reformat.
4697 * config/i386/nbsdaout.mh (NATDEPFILES): Add solib.o. Reformat.
4698 * config/i386/nbsdelf.mh: Reformat.
4699 * config/i386/nbsd64.mh (NATDEPFILES): Remove solib.o,
4700 solib-svr4.o, solib-legacy.o and corelow.o.
4701 * config/i386/obsd.mh, config/i386/obsdaout.mh: Reformat.
4702 * config/i386/obsd64.mh (NATDEPFILES): Remove solib.o,
4703 solib-svr4.o, solib-legacy.o and corelow.o. Reformat.
4704 * config/i386/fbsd.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4705 * config/i386/fbsd64.mt (TDEPFILES): Add solib.o, solib-svr4.o.
4706 (TM_FILE): Set to tm-fbsd.h.
4707 * config/i386/nbsd.mt (TDEPFILES): Reformat.
4708 * config/i386/nbsd64.mt (TDEPFILES): Add corelow.o, solib.o and
4710 * config/i386/obsd.mt (TDEPFILES): Add corelow.o, solib.o and
4712 (TM_FILE): Set to nm-nbsd.h.
4713 * config/i386/nm-fbsd.h: Update copyright year. Tweak comments.
4714 Simplify shared library support. Don't include "elf/common.h".
4715 (SVR4_SHARED_LIBS): Don't define.
4716 * config/i386/nm-fbsd64.h: Update copyright year. Don't include
4718 * config/i386/nm-nbsd.h, config/i386/nm-nbsdaout.h,
4719 config/i386/nm-obsd.h: Update copyright year. Tweak comments.
4720 * config/i386/tm-fbsd.h: Update copyright tear. Tweak comments.
4721 Don't include "i386/tm-i386.h". Include "solib.h".
4722 * config/i386/tm-nbsd.h: Update copyright year. Tweak comments.
4723 Don't include "i386/tm-i386.h".
4724 * config/i386/xm-i386.h: Update copyright year. Tweak comments.
4725 * config/i386/xm-nbsd.h: Update copyright year. Tweak comments.
4726 Include "i386/xm-i386.h".
4727 (HOST_LONG_DOUBLE_FORMAT): Remove.
4729 Fix OpenBSD/i386 sigtramp recognition.
4730 * i386-tdep.h: Update copyright year.
4731 (i386bsd_pc_in_sigtramp, i386bsd_sigtramp_start)
4732 (i386bsd_sigtramp_end): New prototypes.
4733 (i386fbsd_sigtramp_start_addr): Renamed from
4734 i386fbsd_sigtramp_start.
4735 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4736 (i386obsd_sigtramp_start_addr): Renamed from
4737 i386obsd_sigtramp_start.
4738 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4739 * i386bsd-tdep.c: Update copyright year.
4740 (i386bsd_pc_in_sigtramp): Make public.
4741 * i386fbsd-nat.c: Update copyright year.
4742 (_initialize_i386fbsd_nat): Adjust for renamed variables.
4743 * i386fbsd-tdep.c: Update copyright year.
4744 (i386fbsd_sigtramp_start_addr): Renamed from
4745 i386fbsd_sigtramp_start.
4746 (i386fbsd_sigtramp_end_addr): Renamed from i386fbsd_sigtramp_end.
4747 (i386fbsdaout_init_abi): Adjust for renamed variables.
4748 * i386obsd-nat.c: Update copyright year.
4749 (_initialize_i386obsd_nat): Adjust for renamed variables.
4750 * i386obsd-tdep.c: Include "target.h".
4751 (i386obsd_page_size): New variable.
4752 (i386obsd_pc_in_sigtramp, i386obsd_sigtramp_start)
4753 (i386obsd_sigtramp_end): New functions.
4754 (i386obsd_sigtramp_start_addr): Renamed from
4755 i386obsd_sigtramp_start.
4756 (i386obsd_sigtramp_end_addr): Renamed from i386obsd_sigtramp_end.
4757 (i386obsd_init_abi): Adjust for renamed variables. Set
4758 pc_in_sigtramp, sigtramp_start and sigtramp_end.
4759 * Makefile.in (i386obsd-tdep.o): Update dependencies.
4761 * amd64obsd-tdep.c (amd64obsd_pc_in_sigtramp): Adjust for signal
4762 trampoline change in OpenBSD kernel.
4764 * amd64-nat.c: Update copyright year.
4765 (amd64_supply_native_gregset, amd64_collect_native_gregset): Use
4766 architecture from REGCACHE.
4768 * x86-64-linux-nat.c (x86_64_linux_gregset32_reg_offset): Use
4769 symbolic constants from <sys/reg.h> instead of hard-coded numbers.
4773 * configure.host: Add i[34567]86-*-openbsd[0-2].* and
4774 i[34567]86-*-openbsd3.[0-3].
4775 * config/i386/obsdaout.mh: New file.
4777 * config/i386/obsd.mh (MH_FLAGS): Remove.
4780 * i386obsd-tdep.c: Update copyright years. Include
4782 (i386obsd_init_abi): Don't set regset_from_core_section here.
4783 (i386obsd_aout_init_abi): New function. Set
4784 regset_from_core_section here.
4785 (i386obsd_elf_init_abi): New function.
4786 (_initialize_i386obsd_tdep): Register OS/ABI for OpenBSD ELF.
4787 * Makefile.in (i386obsd-tdep.o): Update dependecies.
4788 * config/i386/obsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4789 (TM_FILE): Set to tm-nbsd.h.
4791 * config/i386/obsd.mh (NATDEPFILES): Remove solib.o and
4794 * solib-svr4.h: Update copyright year.
4795 (svr4_ilp32_fetch_link_map_offsets)
4796 (svr4_lp64_fetch_link_map_offsets): New prototype.
4797 * solib-svr4.c: Update copyright year.
4798 (svr4_ilp32_fetch_link_map_offsets)
4799 (svr4_lp64_fetch_link_map_offsets): New function.
4803 * dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
4804 to the partial symbol table.
4808 * PROBLEMS: Add description of problem documented under gdb/1560.
4812 * amd64obsd-tdep.c: Include "regset.h" and "i387-tdep.h". Fix
4814 (amd64obsd_supply_regset, amd64obsd_regset_from_core_section): New
4816 (amd64obsd_init_abi): Reorder initializations. Use
4817 amd64obsd_r_reg_offset to initialize the general-purpose register
4818 set details. Set regset_from_core_section.
4819 (_initialize_amd64obsd_tdep): Rename from
4820 _initialize_amd64obsd_ndep. Add OS ABI handler for core dumps.
4821 * Makefile.in (amd64obsd-tdep.o): Update dependencies.
4822 * config/i386/obsd64.mt (TDEPFILES): Add i386-tdep.o.
4824 * NEWS (New native configurations): Mention OpenBSD/alpha.
4825 * configure.tgt: Add alpha*-*-openbsd*.
4826 * configure.host: Add alpha*-*-openbsd*.
4827 * alphanbsd-tdep.c: Update copyright year.
4828 (_initialize_alphanbsd_tdep): Register OS ABI for OpenBSD ELF.
4833 * configure.tgt: Delete target "none-*-*".
4834 * configure.host: Delete host "none-*-*".
4835 * config/none/none.mh: Delete file.
4836 * config/none/none.mt: Delete file.
4837 * config/none/xm-none.h: Delete file.
4838 * config/none/tm-none.h: Delete file.
4839 * config/none/nm-none.h: Delete file.
4843 * sh-tdep.c (sh_analyze_prologue): Eliminate useless test of
4844 cache->uses_fp prior to setting it.
4848 Fix for PR breakpoint/1558.
4849 * sh-tdep.c (IS_JSR): New macro.
4850 (sh_analyze_prologue): Use IS_JSR to terminate prologue scan.
4854 * findvar.c (value_from_register): Doc fix.
4858 * printcmd.c (print_scalar_formatted): Do not check for sizeof
4859 type being greater than sizeof of host's LONGEST. Always use
4860 unpack_long() unless format 'f' chosen.
4866 * symtab.c (find_pc_sect_psymtab): Return the psymtab that
4867 contains a symbol wich is the best, non-exact match for the given
4868 pc. Update comments.
4872 * event-top.c (async_request_quit): Remove uses of REQUEST_QUIT
4873 macro, which was part of the now removed Mach 3 port.
4874 * utils.c (request_quit): Ditto.
4878 * config/djgpp/fnchange.lst: Rename "amd64obsd-tdep.c" and
4879 "amd64obsd-nat.c" to "a64ob-tdep.c" and "a64ob-nat.c".
4885 * config/s390/nm-linux.h (TARGET_REGION_OK_FOR_HW_WATCHPOINT):
4890 * configure.in: Add a TUI target to CONFIG_ALL, CONFIG_CLEAN,
4891 CONFIG_INSTALL and CONFIG_UNINSTALL.
4892 * configure: Re-generate.
4893 * interps.h (INTERP_TUI): Define.
4894 * Makefile.in: Update dependencies.
4896 (tui-main.o): Specify dependencies.
4897 (install-tui, uninstall-tui, clean-tui, all-tui): New rules.
4898 * tui/tui-main.c: New file.
4902 * amd64obsd-tdep.c, amd64obsd-nat.c: New files.
4903 * Makefile.in (amd64obsd-nat.o, amd64obsd-tdep.o): New
4905 * configure.host: Add x86_64-*-openbsd*.
4906 * configure.tgt: Add x86_64-*-openbsd*.
4907 * config/i386/obsd64.mt, config/i386/obsd64.mh: New files.
4909 * tui/tui.c: Don't include <malloc.h>.
4911 * Makefile.in (ALLDEPFILES): Add amd64-nat.c, amd64bsd-nat.c,
4912 amdfbsd-nat.c, amd64-fbsd-tdep.c, amd64nbsd-nat.c and
4915 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Make
4916 static. Remove extraneous whitespace.
4917 * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Make
4922 * findvar.c (value_from_register): Doc fix.
4928 * eval.c (evaluate_subexp_standard, case OP_OBJC_MSGCALL): Use
4929 CORE_ADDR as type for selectors. Correct types for GNU run time
4930 message lookup function to use double indirection.
4931 * objc-lang.c (lookup_child_selector): Use CORE_ADDR as return type.
4932 * objc-lang.h (lookup_child_selector): Adapt prototype.
4934 * s390-nat.c (SUBOFF): New macro.
4935 (supply_gregset, fill_gregset): Use it to handle debugging
4936 of 32-bit exectuables running under a 64-bit kernel.
4937 * s390-tdep.c: Include "solib-svr4.h".
4938 (s390_svr4_fetch_link_map_offset): New function.
4939 (s390x_svr_fetch_link_map_offset): Likewise.
4940 (s390_gdbarch_init): Call set_solib_svr4_fetch_link_map_offsets.
4941 * Makefile.in (s390-tdep.o): Update dependencies.
4943 * s390-tdep.c: Include "trad-frame.h", "frame-base.h", and
4945 (s390_readinstruction): Reformat. Use read_memory_nobpt.
4946 (GDB_TARGET_IS_ESAME, S390_GPR_SIZE, S390_FPR_SIZE): Remove.
4947 (S390_SYSCALL_OPCODE, S390_SYSCALL_SIZE): Remove.
4948 (S390_SIGCONTEXT_SREGS_OFFSET, S390X_SIGCONTEXT_SREGS_OFFSET,
4949 S390_SIGREGS_FP0_OFFSET, S390X_SIGREGS_FP0_OFFSET,
4950 S390_UC_MCONTEXT_OFFSET, S390X_UC_MCONTEXT_OFFSET,
4951 S390_SIGNAL_FRAMESIZE,
4952 s390_NR_sigreturn, s390_NR_rt_sigreturn): Remove.
4953 (struct frame_extra_info): Remove.
4954 (s390_memset_extra_info): Remove.
4955 (op1_ag, op1_ay, op1_brasl, op1_brc, op1_brcl, op1_lay, op1_lg)
4956 (op1_lmy, op1_ly, op1_sg, op1_stmy, op1_sty, op1_sy, op_a)
4957 (op_agr, op_bas, op_bc, op_bcr, op_sgr, op_sr): New opcodes.
4958 (is_rse): Renamed to ...
4959 (is_rsy): ... this. Support long displacements.
4960 (is_rxe): Renamed to ...
4961 (is_rxy): ... this. Support long displacements.
4962 (compute_x_addr): Support long displacements.
4963 (struct s390_prologue_data): New data type.
4964 (s390_on_stack): Change API to use struct s390_prologue_data.
4965 (s390_store): Reimplement.
4966 (s390_load): New function.
4967 (s390_get_signal_frame_info): Remove.
4968 (s390_get_frame_info): Remove, replace by ...
4969 (s390_analyze_prolog): ... this new function.
4970 (s390_check_function_end): Remove.
4971 (s390_function_start): Remove.
4972 (s390_frameless_function_invokation): Remove.
4973 (s390_is_sigreturn): Remove.
4974 (s390_init_frame_pc_first): Remove.
4975 (s390_init_frame_extra_info): Remove.
4976 (s390_frame_init_saved_regs): Remove.
4977 (s390_frame_saved_pc_nofix): Remove.
4978 (s390_frame_saved_pc): Remove.
4979 (s390_frame_chain): Remove.
4980 (s390_fp_regnum, s390_read_fp): Remove.
4981 (s390_pop_frame_regular, s390_pop_frame): Remove.
4982 (s390_saved_pc_after_call): Remove.
4983 (s390_skip_prologue): Reimplement.
4984 (s390_in_function_epilogue_p): Support long displacements.
4985 (struct s390_unwind_cache): New data structure.
4986 (s390_frame_unwind_cache): New function.
4987 (s390_prologue_frame_unwind_cache): Likewise.
4988 (s390_backchain_frame_unwind_cache): Likewise.
4989 (s390_frame_this_id, s390_frame_prev_register): Likewise.
4990 (s390_frame_unwind): Define.
4991 (s390_frame_sniffer): New function.
4992 (struct s390_pltstub_unwind_cache): New data structure.
4993 (s390_pltstub_frame_unwind_cache): New function.
4994 (s390_pltstub_frame_this_id): Likewise.
4995 (s390_pltstub_frame_prev_register): Likewise.
4996 (s390_pltstub_frame_unwind): Define.
4997 (s390_pltstub_frame_sniffer): New function.
4998 (struct s390_sigtramp_unwind_cache): New data structure.
4999 (s390_sigtramp_frame_unwind_cache): New function.
5000 (s390_sigtramp_frame_this_id): Likewise.
5001 (s390_sigtramp_frame_prev_register): Likewise.
5002 (s390_sigtramp_frame_unwind): Define.
5003 (s390_sigtramp_frame_sniffer): New function.
5004 (s390_frame_base_address, s390_local_base_address): New functions.
5005 (s390_frame_base): Define.
5006 (s390_unwind_pc, s390_unwind_sp): New function.
5007 (s390_push_dummy_call): Use new frame base location.
5008 (s390_unwind_dummy_id): Likewise.
5009 (s390_gdbarch_init): Remove calls to:
5010 set_gdbarch_frameless_function_invocation,
5011 set_gdbarch_deprecated_init_frame_pc,
5012 set_gdbarch_deprecated_frame_chain,
5013 set_gdbarch_deprecated_frame_init_saved_regs,
5014 set_gdbarch_deprecated_pop_frame,
5015 set_gdbarch_deprecated_init_extra_frame_info,
5016 set_gdbarch_deprecated_init_frame_pc_first,
5017 set_gdbarch_deprecated_target_read_fp,
5018 set_gdbarch_deprecated_frame_saved_pc,
5019 set_gdbarch_deprecated_saved_pc_after_call,
5020 set_gdbarch_deprecated_fp_regnum.
5022 set_gdbarch_in_solib_call_trampoline,
5023 frame_unwind_append_sniffer,
5024 frame_base_set_default,
5025 set_gdbarch_unwind_pc,
5026 set_gdbarch_unwind_sp.
5027 * Makefile.in (s390-tdep.o): Update dependencies.
5029 * s390-tdep.c (struct gdbarch_tdep): Add 'abi' member.
5030 (S390_STACK_FRAME_OVERHEAD): Remove.
5031 (S390_STACK_PARAMETER_ALIGNMENT): Remove.
5032 (S390_NUM_FP_PARAMETER_REGISTERS): Remove.
5033 (s390_promote_integer_argument): Remove.
5034 (s390_cannot_extract_struct_value_address): Remove.
5035 (s390_use_struct_convention, s390_store_struct_return): Remove.
5036 (s390_extract_return_value, s390_store_return_value): Remove.
5037 (s390_return_value_convention, s390_return_value): New functions.
5038 (is_float_singleton): Handle typedefs.
5039 (is_double_or_float, is_double_arg, is_simple_arg, pass_by_copy_ref):
5040 Remove, replace by ...
5041 (s390_function_arg_pass_by_reference, s390_function_arg_float,
5042 s390_function_arg_integer): ... these new functions.
5043 (s390_push_arguments, s390_push_return_address): Remove, replace by ...
5044 (s390_push_dummy_call, s390_unwind_dummy_id): ... these new functions.
5045 (s390_gdbarch_init): Remove s390_call_dummy_words and elf_flags.
5048 set_gdbarch_deprecated_store_struct_return,
5049 set_gdbarch_deprecated_extract_return_value,
5050 set_gdbarch_deprecated_store_return_value,
5051 set_gdbarch_use_struct_convention,
5052 set_gdbarch_extract_struct_value_address,
5053 set_gdbarch_deprecated_pc_in_call_dummy,
5054 set_gdbarch_deprecated_push_arguments,
5055 set_gdbarch_deprecated_save_dummy_frame_tos,
5056 set_gdbarch_deprecated_push_return_address,
5057 set_gdbarch_deprecated_sizeof_call_dummy_words,
5058 set_gdbarch_deprecated_call_dummy_words,
5059 set_gdbarch_deprecated_dummy_write_sp.
5061 set_gdbarch_push_dummy_call,
5062 set_gdbarch_unwind_dummy_id,
5063 set_gdbarch_return_value.
5065 * config/s390/nm-linux.h: Update comments.
5066 (target_insert_watchpoint, target_remove_watchpoint): Redefine.
5067 (STOPPED_BY_WATCHPOINT): Redefine.
5068 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Redefine to 1.
5069 (s390_insert_watchpoint, s390_remove_watchpoint): Update prototype.
5070 (s390_stopped_by_watchpoint): Likewise.
5071 (watch_area_cnt): Remove.
5072 * s390-nat.c: Update comments.
5073 (watch_area): Remove typedef.
5074 Global replace watch_area by struct watch_area.
5075 (watch_area_cnt, watch_lo_addr, watch_hi_addr): Remove.
5076 (s390_stopped_by_watchpoint): Remove pid argument,
5077 use s390_inferior_tid. Add short-cut for the no watchpoint case.
5078 (s390_fix_watch_points): Remove pid argument,
5079 use s390_inferior_tid. Recompute area spanned by watchpoints.
5080 (s390_insert_watchpoint, s390_remove_watchpoint): Remove pid
5081 argument. Reimplement.
5083 * config/s390/nm-linux.h: Update comments. Do not include "solib.h".
5084 (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove.
5085 (FETCH_INFERIOR_REGISTERS): Define.
5086 * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and
5088 * config/s390/s390x.mt: Remove.
5089 * config/s390/tm-s390.h: Remove.
5090 * config/s390/tm-linux.h: Do not include "s390/tm-s390.h".
5091 (TARGET_ELF64): Remove.
5092 (SKIP_TRAMPOLINE_CODE): Do not undefine.
5093 * configure.tgt [s390-*-*, s390x-*-*]: Merge into single
5094 s390*-*-* case; always set gdb_target to s390.
5095 * regformats/reg-s390.dat: Remove control registers.
5096 * regformats/reg-s390x.dat: Likewise.
5097 * s390-tdep.h: New file.
5098 * s390-nat.c: Do not include <asm/processor.h> or <value.h>.
5099 Include "inferior.h" and "s390-tdep.h".
5100 Remove private definition of offsetof.
5101 (s390_register_u_addr): Remove.
5102 (regmap_gregset, regmap_fpregset): Define.
5103 (supply_gregset, fill_gregset): Reimplement.
5104 (supply_fpregset, fill_fpregset): Likewise.
5105 (s390_inferior_tid): New function.
5106 (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise.
5107 (fetch_inferior_registers, store_inferior_registers): Likewise.
5108 * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead
5109 of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h".
5110 Global replace of S390_GP0_REGNUM by S390_R0_REGNUM.
5111 Global replace of S390_FP0_REGNUM by S390_F0_REGNUM.
5112 (struct gdbarch_tdep): Define.
5113 (struct s390_register_info): Define.
5114 (s390_register_info): New variable.
5115 (s390_register_name): Reimplement.
5116 (s390_register_type): New function.
5117 (s390_register_raw_size, s390x_register_raw_size): Remove.
5118 (s390_cannot_fetch_register): Remove.
5119 (s390_register_byte): Remove.
5120 (s390_register_virtual_type, s390x_register_virtual_type): Remove.
5121 (s390_dwarf_regmap): New variable.
5122 (s390_dwarf_reg_to_regnum): New function.
5123 (s390_stab_reg_to_regnum): Remove.
5124 (s390_pseudo_register_read, s390_pseudo_register_write): New functions.
5125 (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise.
5126 (s390_convert_register_p): Likewise.
5127 (s390_register_to_value, s390_value_to_register): Likewise.
5128 (s390_register_reggroup_p): Likewise.
5129 (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset,
5130 s390_gregset, s390x_gregset, s390_fpregset): New variables.
5131 (s390_supply_regset, s390_regset_from_core_section): New functions.
5132 (GDB_TARGET_IS_ESAME): Move here from tm-s390.h.
5133 (S390_FPR_SIZE): Likewise.
5134 (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME.
5135 Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE.
5136 (S390_NUM_GPRS): Move here from tm-s390.h.
5137 (S390_NUM_FPRS): Likewise.
5138 (s390_in_function_epilogue_p): New function.
5139 (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE.
5140 Replace S390_PC_REGNUM by S390_PSWA_REGNUM.
5141 (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure.
5142 Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum.
5143 Replace S390_FP_REGNUM by S390_SP_REGNUM.
5145 set_gdbarch_deprecated_max_register_raw_size,
5146 set_gdbarch_deprecated_max_register_virtual_size,
5147 set_gdbarch_deprecated_register_byte,
5148 set_gdbarch_cannot_fetch_register,
5149 set_gdbarch_cannot_store_register,
5150 set_gdbarch_deprecated_register_size,
5151 set_gdbarch_deprecated_register_raw_size,
5152 set_gdbarch_deprecated_register_virtual_size,
5153 set_gdbarch_deprecated_register_virtual_type,
5154 set_gdbarch_deprecated_register_bytes.
5156 set_gdbarch_num_pseudo_regs,
5157 set_gdbarch_register_type,
5158 set_gdbarch_convert_register_p,
5159 set_gdbarch_register_to_value,
5160 set_gdbarch_value_to_register,
5161 set_gdbarch_register_reggroup_p,
5162 set_gdbarch_regset_from_core_section,
5163 set_gdbarch_pseudo_register_read,
5164 set_gdbarch_pseudo_register_write,
5165 set_gdbarch_in_function_epilogue_p.
5166 * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies.
5167 (s390_tdep_h): New variable.
5171 * findvar.c (value_from_register): If the type has no length, just
5172 return an acceptable value --- don't report an internal error.
5174 * stabsread.c (read_type): If we find any type numbers that are
5175 forward references, complain if the references aren't resolved by
5176 the time we're finished reading.
5177 (cleanup_undefined_types): Make error message more appropriate for
5182 * Makefile.in (defs_h): Remove dependency on progress_h.
5183 * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of
5185 * main.c (captured_main): Delete use of START_PROGRESS and
5190 * objfiles.c (terminate_minimal_symbol_table): Add back
5191 initialization of MSYMBOL_TYPE.
5195 Committed by Andrew Cagney.
5196 * Makefile.in (ia64_tdep_h): New macro.
5197 (ia64-linux-tdep.o): Mention $(ia64_tdep_h).
5198 (ia64-tdep.o): Likewise.
5199 * ia64-tdep.h: New file.
5200 * ia64-tdep.c: Update copyright notice. Include "ia64-tdep.h".
5201 (ia64_linux_sigcontext_register_address): Move decl to ia64-tdep.h.
5202 (ia64_aix_sigcontext_register_address): Likewise.
5203 (ia64_linux_getunwind_table): Delete declaration.
5204 * ia64-linux-tdep.c: Likewise.
5208 * sh-tdep.c (sh_dsp_register_sim_regno): Use DSP_Rx_BANK_REGNUM.
5209 * sh-tdep.h: Rename R0_BANK_REGNUM and R7_BANK_REGNUM to
5210 DSP_R0_BANK_REGNUM and DSP_R7_BANK_REGNUM.
5214 * symtab.c (skip_prologue_using_sal): New function.
5215 * symtab.h (skip_prologue_using_sal): Declare.
5216 * frv-tdep.c: Include "symtab.h".
5217 (skip_prologue_using_sal): Delete function.
5218 * mips-tdep.c (skip_prologue_using_sal): Delete function.
5219 * rs6000-tdep.c (refine_prologue_limit): Mention
5220 skip_prologue_using_sal.
5221 * ia64-tdep.c (refine_prologue_limit): Ditto.
5222 * Makefile.in: Update dependencies.
5226 * config/alpha/tm-nbsd.h: Update copyright, delete #undef
5227 START_INFERIOR_TRAPS_EXPECTED.
5228 * config/alpha/tm-fbsd.h: Update copyright, delete #undef
5229 START_INFERIOR_TRAPS_EXPECTED.
5230 * config/alpha/tm-alphalinux.h (START_INFERIOR_TRAPS_EXPECTED):
5232 * config/alpha/tm-alpha.h (START_INFERIOR_TRAPS_EXPECTED): Delete
5233 macro, moved to "nm-osf.h". Update copyright.
5234 * config/alpha/nm-osf.h (START_INFERIOR_TRAPS_EXPECTED): Define,
5237 * gdbarch.sh (DEPRECATED_FRAMELESS_FUNCTION_INVOCATION): Predicate
5238 and function replacing FRAMELESS_FUNCTION_INVOCATION.
5239 * blockframe.c (legacy_frameless_look_for_prologue): Rename
5240 frameless_look_for_prologue.
5241 * frame.h (legacy_frameless_look_for_prologue): Rename
5242 frameless_look_for_prologue.
5243 * gdbarch.h, gdbarch.c: Re-generate.
5244 * sh64-tdep.c (sh64_gdbarch_init): Update.
5245 * sh-tdep.c (sh_gdbarch_init): Update.
5246 * s390-tdep.c (s390_gdbarch_init): Update.
5247 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5248 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
5249 * m68k-tdep.c (m68k_gdbarch_init): Update.
5250 (delta68_frame_args_address): Update.
5251 * m32r-tdep.c (m32r_gdbarch_init): Update.
5252 * hppa-tdep.c (hppa_gdbarch_init): Update.
5253 * h8300-tdep.c (h8300_gdbarch_init): Update.
5254 * frv-tdep.c (frv_gdbarch_init): Update.
5255 (frv_frameless_function_invocation): Update.
5256 * cris-tdep.c (cris_gdbarch_init): Update.
5257 (cris_frameless_function_invocation): Update.
5258 * avr-tdep.c (avr_gdbarch_init): Update.
5259 * arm-tdep.c (arm_gdbarch_init): Update.
5260 * stack.c (frame_info): Update, call predicate.
5261 * rs6000-tdep.c (rs6000_frame_chain): Update, call predicate..
5262 * frame.c (legacy_get_prev_frame): Update, call predicate..
5263 * arch-utils.c (generic_frameless_function_invocation_not): Delete.
5264 * arch-utils.h (generic_frameless_function_invocation_not): Delete.
5265 * alpha-tdep.c (alpha_gdbarch_init): Do not set frameless function
5267 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5268 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
5269 * vax-tdep.c (vax_gdbarch_init): Ditto.
5271 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): Delete unused
5276 * objfiles.c (terminate_minimal_symbol_table): Remove unnecessary
5281 * tui/tui-windata.c: Include "gdb_string.h".
5282 * tui/tui-source.c, tui/tui-winsource.c: Ditto.
5283 * tui/tui-layout.c, tui/tui-command.c: Ditto.
5284 * Makefile.in: Update dependencies.
5288 * Makefile.in (infrun.o): Add $(gdb_assert_h).
5289 * infrun.c: Include "gdb_assert.h".
5290 (singlestep_ptid, saved_singlestep_ptid)
5291 (stepping_past_singlestep_breakpoint): New variables.
5292 (resume): Set singlestep_ptid. Check for singlestep thread
5294 (init_wait_for_inferior): Clear stepping_past_singlestep_breakpoint.
5295 (handle_inferior_event): Handle singlestep thread hop.
5299 * dwarf2-frame.c (dwarf2_frame_ops): New function.
5300 (dwarf2_frame_set_init_reg): Use, instead of gdbarch_data.
5301 (dwarf2_frame_init_reg): Ditto.
5303 * printcmd.c (display_command): Check that EXP isn't NULL. Fix
5304 suggested by Joshua Neuheisel
5306 * configure.in: Always check for curses, including pdcurses.
5307 Warn, instead of error, when no curses are found. Enable TUI when
5308 curses is available.
5309 * configure: Re-generate.
5313 * sh-tdep.c (sh_register_convert_to_virtual): Rename from
5314 sh_sh4_register_convert_to_virtual.
5315 (sh_register_convert_to_raw): Rename from
5316 sh_sh4_register_convert_to_raw.
5317 (sh_pseudo_register_read): Accomodate above name change.
5318 (sh_pseudo_register_write): Ditto.
5322 * sh-tdep.c (sh_generic_register_name): Remove.
5323 (sh_gdbarch_init): Use sh_sh_register_name in default case.
5327 * configure.in (build_warnings): Add -Wunused-function.
5328 * configure: Re-generate.
5330 * config/tm-lynx.h (START_INFERIOR_TRAPS_EXPECTED): Delete macro.
5331 * config/rs6000/tm-rs6000.h (START_INFERIOR_TRAPS_EXPECTED): Ditto.
5333 * procfs.c (procfs_init_inferior): Assume that
5334 START_INFERIOR_TRAPS_EXPECTED is defined.
5335 * config/ns32k/nbsdaout.mt (TM_FILE): Set to tm-ns32k.h.
5336 * config/ns32k/tm-nbsd.h: Delete file,
5337 START_INFERIOR_TRAPS_EXPECTED already defined as 2.
5339 * config/vax/tm-vaxbsd.h: Do not include "tm-vax.h".
5340 * config/vax/tm-vax.h: Delete file.
5342 * config/mips/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5343 * config/i386/tm-i386bsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5344 * config/arm/tm-linux.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5345 * config/vax/tm-vaxbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5346 * vax-tdep.c (vax_sigtramp_saved_pc): Inline only reference.
5347 * config/ns32k/tm-nbsd.h (SIGCONTEXT_PC_OFFSET): Delete macro.
5348 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Inline only reference.
5352 * dwarf2-frame.h (dwarf2_frame_set_init_reg): New prototype.
5353 * dwarf2-frame.c (dwarf2_frame_data): New variable.
5354 (struct dwarf2_frame_ops): New.
5355 (dwarf2_frame_default_init_reg): New function, based on
5356 dwarf2_frame_init_reg.
5357 (dwarf2_frame_init, dwarf2_frame_set_init_reg): New function.
5358 (dwarf2_frame_init_reg): Call architecture-specific function.
5359 (dwarf2_frame_objfile_data): Renamed from dwarf2_frame_data.
5360 (dwarf2_frame_find_fde, add_fde): Use dwarf2_frame_objfile_data
5361 instead of dwarf2_frame_data.
5362 (_initialize_dwarf2_frame): Initailize new dwarf2_frame_data.
5363 Initialize dwarf2_frame_objfile instead of old dwarf2_frame_data.
5367 * gdbarch.sh (deprecated_register_gdbarch_swap): Rename
5368 register_gdbarch_swap.
5369 (DEPRECATED_REGISTER_GDBARCH_SWAP): Rename REGISTER_GDBARCH_SWAP.
5370 * f-lang.c (_initialize_f_language): Update, use
5371 DEPRECATED_REGISTER_GDBARCH_SWAP.
5372 * remote.c (_initialize_remote): Ditto.
5373 * regcache.c (_initialize_regcache): Ditto.
5374 * parse.c (_initialize_parse): Ditto.
5375 * infrun.c (_initialize_infrun): Ditto.
5376 * mi/mi-main.c (_initialize_mi_main): Ditto.
5377 * gdbtypes.c (_initialize_gdbtypes): Ditto.
5379 * solib.c (solib_map_sections): Use bfd_set_cacheable instead of
5380 poking .cacheable directly.
5381 * symfile.c (symfile_bfd_open): Ditto.
5383 * Makefile.in: Update all dependencies.
5385 * Makefile.in: (.SUFFIXES): Add ".l" and ".y".
5386 (.y.c, .l.c): Specify implicit rule. Instead of .tab.c, generate
5387 .c. Update references. Delete unnecessary .tab.c and -lex.c rules.
5388 (ada-exp.o, c-exp.o, f-exp.o): Replace ada-exp.tab.o et.al. rule.
5389 (jv-exp.o, m2-exp.o, objc-exp.o, p-exp.o): Similar.
5393 * arch-utils.c (legacy_convert_register_p): Check
5394 DEPRECATED_REGISTER_CONVERTIBLE_P.
5395 * findvar.c (value_of_register): Ditto.
5397 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Add predicate.
5398 * gdbarch.h, gdbarch.c: Re-generate.
5399 * arch-utils.c (deprecated_register_convertible_not): Delete.
5400 * arch-utils.h (deprecated_register_convertible_not): Delete.
5401 * mi/mi-main.c (get_register): Update. Update copyright.
5402 * infcmd.c (default_print_registers_info): Update.
5404 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
5405 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Delete.
5406 (DEPRECATED_CALL_DUMMY_ADDRESS): Delete.
5407 * gdbarch.h, gdbarch.c: Re-generate.
5408 * frame.c (deprecated_get_next_frame_hack): Delete function.
5409 * frame.h (deprecated_get_next_frame_hack): Delete declaration.
5410 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
5412 * infcall.c (call_function_by_hand): Update.
5416 * symfile.c (init_entry_point_info, entry_point_address): Move
5418 * objfiles.c (init_entry_point_info, entry_point_address):..to
5420 * symfile.h (init_entry_point_info, entry_point_address): Remove
5422 * objfiles.h (init_entry_point_info, entry_point_address):Add
5424 * cris-tdep.c: Remove include of symfile.h. Add include of
5427 * mcore-tdep.c: Ditto.
5428 * mn10300-tdep.c: Ditto.
5429 * sh64-tdep.c: Ditto.
5430 * v850-tdep.c: Ditto.
5431 * arm-tdep.c: Remove include of symfile.h.
5432 * blockframe.c: Ditto.
5433 * coffread.c: Ditto.
5435 * dwarf2read.c: Ditto.
5436 * dwarfread.c: Ditto.
5437 * frv-tdep.c: Ditto.
5438 * ia64-tdep.c: Ditto.
5439 * mdebugread.c: Ditto.
5440 * mipsread.c: Ditto.
5441 * rs6000-tdep.c: Ditto.
5442 * s390-tdep.c: Ditto.
5444 * xstormy16-tdep.c: Ditto.
5445 * gdbarch.sh: Remove include of symfile.h.
5446 * gdbarch.c: Regenerate.
5447 * solib-irix.c (enable_break): Use entry_point_address().
5448 Add comment about include file.
5449 * xcoffread.c: Add comment about include file.
5450 * Makefile.in (arm-tdep.o, blockframe.o, coffread.o, cris-tdep.o)
5451 (dbxread.o, dwarf2read.o, dwarfread.o, frv-tdep.o, gdbarch.o)
5452 (ia64-tdep.o, infcall.o, mcore-tdep.o, mdebugread.o, mipsread.o)
5453 (mn10300-tdep.o, rs6000-nat.o, s390-tdep.o, sh64-tdep.o)
5454 (sh-tdep.o, v850-tdep.o, xstormy16-tdep.o): Update dependencies.
5458 * corelow.c (core_xfer_partial): Use "struct bfd_section".
5459 * config/sparc/nm-nbsd.h (struct target_ops): Declare, update
5461 * mips-linux-tdep.c: Use "GNU/Linux", update copyright.
5465 * m68hc11-tdep.c (m68hc11_gdbarch_init): Remove duplicate call to
5466 set_gdbarch_store_return_value.
5470 * remote-rdi.c (arm_rdi_start_remote): Delete unused function.
5471 (arm_rdi_interrupt, arm_rdi_interrupt_twice): Ditto.
5472 (interrupt_query): Ditto.
5473 (ofunc): Delete unused variable.
5474 * cris-tdep.c (cris_abi): Delete unused function.
5475 (reg_pop_op, move_reg_to_mem_index_inc_op): Ditto.
5476 (cris_get_wide_opcode, cris_get_short_size): Ditto.
5477 (cris_get_asr_quick_shift_steps): Ditto.
5478 (cris_skip_prologue_frameless_p): Ditto.
5479 * arm-tdep.c (arm_push_return_address): Delete unused function.
5480 (arm_push_dummy_frame, arm_fix_call_dummy): Ditto.
5481 * rs6000-tdep.c (rs6000_pc_in_call_dummy): Delete unused function.
5482 * s390-tdep.c (s390_function_start): Delete unused function.
5486 * gdbarch.sh (PROLOGUE_FRAMELESS_P): Delete.
5487 gdbarch.h, gdbarch.c: Re-generate.
5488 * cris-tdep.c (cris_gdbarch_init): Do not set prologue_frameless_p
5489 to generic_prologue_frameless_p.
5490 * arch-utils.h (generic_prologue_frameless_p): Delete declaration.
5491 * arch-utils.c (generic_prologue_frameless_p): Delete function.
5495 * mips-linux-tdep.c: Include "frame.h".
5496 (mips_linux_in_dynsym_stub, mips_linux_in_dynsym_resolve_code)
5497 (mips_linux_skip_resolver): New functions.
5498 (mips_linux_init_abi): Call set_gdbarch_skip_solib_resolver
5499 and set_gdbarch_in_solib_call_trampoline.
5500 * mips-tdep.c (mips_gdbarch_init): Move gdbarch_init_osabi call
5501 to after set_gdbarch_in_solib_return_trampoline. Only set the
5502 solib hooks to mips16 functions if the OS ABI is unknown.
5503 * config/mips/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Undefine after
5504 including "config/tm-linux.h".
5505 (IN_SOLIB_DYNSYM_RESOLVE_CODE): Define.
5506 * Makefile.in (mips-linux-tdep.o): Update.
5510 * linespec.c (decode_compound): Only look for a class symbol when
5511 considering all but the rightmost component.
5515 * hppa-tdep.c (hppa_gdbarch_init): Re-order so that the frame and
5516 abi code are are separatly grouped.
5520 * gdbarch.sh (FRAME_ARGS_SKIP): Default to 0.
5521 * gdbarch.h, gdbarch.c: Re-generate.
5522 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5523 * v850-tdep.c (v850_gdbarch_init): Update.
5524 * sh64-tdep.c (sh64_gdbarch_init): Update.
5525 * sh-tdep.c (sh_gdbarch_init): Update.
5526 * s390-tdep.c (s390_gdbarch_init): Update.
5527 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5528 * mips-tdep.c (mips_gdbarch_init): Update.
5529 * mcore-tdep.c (mcore_gdbarch_init): Update.
5530 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5531 * m32r-tdep.c (m32r_gdbarch_init): Update.
5532 * ia64-tdep.c (ia64_gdbarch_init): Update.
5533 * hppa-tdep.c (hppa_gdbarch_init): Update.
5534 * h8300-tdep.c (h8300_gdbarch_init): Update.
5535 * frv-tdep.c (frv_gdbarch_init): Update.
5536 * d10v-tdep.c (d10v_gdbarch_init): Update.
5537 * cris-tdep.c (cris_gdbarch_init): Update.
5538 * avr-tdep.c (avr_gdbarch_init): Update.
5539 * arm-tdep.c (arm_gdbarch_init): Update.
5540 * alpha-tdep.c (alpha_gdbarch_init): Update.
5544 * sh-tdep.c (sh_sh3_dsp_register_name): Fix formatting. Add missing
5546 (sh_sh4al_dsp_register_name): Ditto.
5550 * mips-tdep.c (mips_gdbarch_init): Delete deprecated frame code.
5551 (mips_init_frame_pc_first): Delete function.
5552 (mips_frame_saved_pc): Delete function.
5553 (mips_frame_chain): Delete function.
5554 (mips_init_extra_frame_info): Delete function.
5555 (mips_xfer_register): Delete unused variable "reg".
5556 (mips_n32n64_push_dummy_call): Delete unused variable "valbuf".
5557 (mips_n32n64_return_value): Delete unused variable "reg".
5558 (mips_n32n64_return_value): Delete unused variable "pos".
5559 (mips_o32_push_dummy_call): Delete unused variable "valbuf".
5560 (mips_o32_return_value): Delete unused variable "pos".
5561 (mips_o64_push_dummy_call): Delete unused variable "valbuf".
5562 (mips_print_fp_register): Delete unused variable "namelen"
5563 (mips_print_fp_register): Delete unused variable "flt2"
5564 (get_frame_pointer): Delete function.
5565 (cached_proc_desc): Delete static variable.
5566 (mips_pop_frame): Delete function.
5567 (mips_find_saved_regs): Delete function.
5568 (mips_get_saved_register): Delete function.
5569 (mips_saved_pc_after_call): Delete function.
5570 (SIGFRAME_BASE): Delete macro.
5571 (SIGFRAME_FPREGSAVE_OFF): Delete macro.
5572 (SIGFRAME_PC_OFF): Delete macro.
5573 (SIGFRAME_REGSAVE_OFF): Delete macro.
5574 (mips_dump_tdep): Do not print deleted macro definitions.
5578 * Makefile.in (SFILES): Remove explictly listed tui files.
5579 (SUBDIR_GDBTK_SRCS): Fix path to gdbtk-interp.c.
5583 * ia64-tdep.c (ia64_frame_this_id): Fix tracing print statement
5584 to use paddr functions to format ia64 addresses and long values.
5585 (ia64_frame_prev_register, ia64_sigtramp_frame_this_id): Ditto.
5586 (ia64_sigtramp_frame_prev_register, ia64_access_reg): Ditto.
5587 (get_kernel_table, ia64_find_proc_info_x): Ditto.
5588 (ia64_get_dyn_info_list, ia64_libunwind_this_frame_id): Ditto.
5589 (ia64_libunwind_frame_prev_register, ia64_unwind_dummy_id): Ditto.
5593 * defs.h: Do not include "tui.h".
5594 * gdb_curses.h: New file.
5595 * tui/tui-hooks.h: New file.
5596 * tui/tui.h (tui_update_all_exec_infos): Delete declaration.
5597 (tui_install_hooks, tui_remove_hooks): Delete declarations.
5598 (tui_initialize_io): Delete declaration.
5599 (tui_initialize_readline: Delete redundant declaration.
5600 (struct tui_point): Delete definition.
5601 * tui/tui-data.h (struct tui_point): Define.
5602 * cli/cli-decode.c [TUI]: Include "tui/tui.h".
5603 * utils.c: Include "tui/tui.h".
5604 * tui/tui-data.h: Include "tui/tui.h" and "gdb_curses.h".
5605 * printcmd.c [TUI]: Include "tui/tui.h".
5606 * cli/cli-cmds.c [TUI]: Include "tui/tui.h".
5607 * tui/tui-command.c: Include "gdb_curses.h".
5608 * tui/tui.c, tui/tui-winsource.c, tui/tui-wingeneral.c: Ditto.
5609 * tui/tui-windata.c, tui/tui-win.c, tui/tui-stack.c: Ditto.
5610 * tui/tui-source.c, tui/tui-regs.c, tui/tui-layout.c: Ditto.
5611 * tui/tui-io.c, tui/tui-disasm.c, tui/tui-data.c: : Ditto.
5612 * tui/tui-hooks.c: Include "tui-hooks.h" and "gdb_curses.h".
5613 * Makefile.in: Update all dependencies.
5614 (tui_hooks_h, gdb_curses_h): Define.
5615 (SUBDIR_TUI_CFLAGS): Remove -I${srcdir}/tui.
5619 * objfiles.h (struct objfile): Remove unused fields auxf1 and
5620 auxf2. Add comments about some other rarely used fields.
5624 * Makefile.in (init.c): Fix script removing duplicates. Problem
5625 reported by Peter Schauer.
5629 * bcache.c (bcache_xmalloc): Use obstack_init instead of
5630 obstack_specify_allocation.
5631 * objfiles.c (allocate_objfile): Ditto.
5632 * solib-sunos.c (solib_add_common_symbols)
5633 (allocate_rt_common_objfile): Ditto.
5634 * symfile.c (reread_symbols): Ditto.
5635 * gdb_obstack.h: Add comment.
5639 * linespec.c (decode_line_1, locate_first_half)
5640 (decode_compound, lookup_prefix_sym): Update comments. Delete old
5645 * cp-namespace.c (check_one_possible_namespace_symbol): Don't use
5650 * blockframe.c (find_pc_partial_function): If find_pc_overlay
5651 fails, try find_pc_section. Fix PR c++/1267.
5652 * minsyms.c (lookup_minimal_symbol_by_pc): Use find_pc_section
5653 instead of find_pc_mapped_section.
5654 (lookup_minimal_symbol_by_pc_section): If the SECTION is NULL, do
5655 not default to the section containing PC. Fix PR symtab/1519.
5659 * Makefile.in (mips-tdep.o): Update dependencies.
5660 * mips-tdep.c: Include "frame-unwind.h", "frame-base.h" and
5662 (mips_unwind_pc): Return the pseudo PC register.
5663 (mips_unwind_dummy_id): New function.
5664 (mips16_fetch_instruction): New function.
5665 (mips32_fetch_instruction): New function.
5666 (struct mips_frame_cache): Define.
5667 (mips_mdebug_frame_cache): New function.
5668 (mips_mdebug_frame_this_id): New function.
5669 (mips_mdebug_frame_prev_register): New function.
5670 (mips_mdebug_frame_unwind): Define.
5671 (mips_mdebug_frame_sniffer): New function.
5672 (mips_mdebug_frame_base_address): New function.
5673 (mips_mdebug_frame_base): Define.
5674 (mips_mdebug_frame_base_sniffer): New function.
5675 (mips_gdbarch_init): Append unwind and base sniffers. Set
5680 * frame.c: Print both the register number and name.
5682 * Makefile.in (init.c): Eliminate duplicates. Combine two greps
5683 and a sed into a single sed. Make .c and .o patterns more robust.
5685 (INIT_FILES): Replace OBS with COMMON_OBS.
5686 (COMMON_OBS): Move DEPFILES and YYOBJ to start of definition.
5690 * sparc-nat.c (sparc_xfer_wcookie): Try to fetch the cookie using
5691 the PT_WCOOKIE request.
5695 * mips-tdep.c (mips_unwind_pc): New function.
5696 (mips_gdbarch_init): Set mips_unwind_pc.
5698 * frame.c (legacy_saved_regs_this_id): Return a null frame ID.
5699 (get_frame_id): Allow the UNKNOWN_FRAME.
5700 (frame_register_unwind, get_frame_type): Ditto.
5702 * frame.c (legacy_frame_p): Check for DEPRECATED_TARGET_READ_FP_P
5703 and DEPRECATED_FP_REGNUM. Don't assume that the lack of
5704 unwind_dummy_id indicates a legacy frame.
5706 * configure.in (CONFIG_LIB_OBS): Replace with CONFIG_OBS.
5707 * configure: Re-generate.
5709 * mips-tdep.c (mips_gdbarch_init): Group deprecated frame unwind
5714 * configure.in (CONFIG_ALL): Set to Makefile target, and not
5716 * configure: Re-generate.
5717 (CONFIG_CLEAN, CONFIG_INSTALL, CONFIG_UNINSTALL): Ditto.
5718 * Makefile.in (SUBDIR_CLI_CLEAN): Delete.
5719 (SUBDIR_CLI_INSTALL, SUBDIR_CLI_UNINSTALL): Delete.
5720 (SUBDIR_CLI_ALL, SUBDIR_GDBTK_ALL): Delete.
5721 (SUBDIR_GDBTK_CLEAN, SUBDIR_GDBTK_INSTALL): Delete.
5722 (SUBDIR_GDBTK_UNINSTALL, SUBDIR_MI_ALL): Delete.
5723 (SUBDIR_MI_CLEAN, SUBDIR_MI_INSTALL): Delete.
5724 (SUBDIR_MI_UNINSTALL, SUBDIR_TUI_ALL): Delete.
5725 (SUBDIR_TUI_CLEAN, SUBDIR_TUI_INSTALL): Delete.
5726 (SUBDIR_TUI_UNINSTALL, SUBDIR_CLI_CLEAN): Delete.
5730 * Makefile.in: Update all dependencies.
5732 * configure.in (CONFIG_INITS, CONFIG_LIB_OBS): Delete.
5733 * configure: Re-generate.
5734 * Makefile.in (INIT_FILES): Replace CONFIG_INITS with CONFIG_SRCS.
5735 (CONFIG_LIB_OBS, CONFIG_INITS): Delete.
5736 (COMMON_OBS): Add "main.o" and "annotate.o".
5737 (ANNOTATE_OBS): Delete.
5738 (OBS): Remove ANNOTATE_OBS.
5739 (DEPFILES): Replace CONFIG_LIB_OBS with CONFIG_LIB_OBS, remove
5741 (gdb$(EXEEXT), insight$(EXEEXT)): Do not depend on, or link
5742 against CONFIG_OBS and "main.o".
5743 (SUBDIR_CLI_INITS, SUBDIR_MI_INITS): Delete.
5744 (SUBDIR_TUI_INITS, SUBDIR_GDBTK_INITS): Delete.
5746 * tui/tui-command.c: Include "gdb_string.h", delete register
5747 attribute, use ISO-C function signatures.
5748 * tui/tui-disasm.c, tui/tui-file.c, tui/tui-io.c: Ditto.
5749 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5750 * tui/tui-stack.c, tui/tui-win.c, tui/tui-winsource.c: Ditto.
5753 * tui/tui-command.c: Change variable and function names to lower
5755 * tui/tui-data.c, tui/tui-disasm.c: Ditto.
5756 * tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
5757 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5758 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5759 * tui/tui-winsource.c, tui/tui.c: Ditto.
5763 * buildsym.c (free_pending_blocks, finish_block)
5764 (record_pending_block, make_blockvector, end_symtab): Replace
5765 symbol_obstack with objfile_obstack.
5766 * coffread.c (process_coff_symbol, coff_read_struct_type)
5767 (coff_read_enum_type): Ditto.
5768 * cp-namespace.c (initialize_namespace_symtab)
5769 (check_one_possible_namespace_symbol): Ditto.
5770 * dwarf2read.c (new_symbol, dwarf2_const_value, macro_start_file)
5771 (dwarf2_symbol_mark_computed): Ditto.
5772 * dwarfread.c (enum_type, new_symbol, synthesize_typedef): Ditto.
5773 * elfread.c (elf_symtab_read): Ditto.
5774 * hpread.c (hpread_symfile_init, hpread_symfile_init)
5775 (hpread_read_enum_type, hpread_read_function_type)
5776 (hpread_read_doc_function_type, hpread_process_one_debug_symbol):
5778 * jv-lang.c (get_java_class_symtab, add_class_symbol)
5779 (java_link_class_type): Ditto.
5780 * mdebugread.c (parse_symbol, psymtab_to_symtab_1, new_symtab)
5781 (new_symbol): Ditto.
5782 * minsyms.c (install_minimal_symbols): Ditto.
5783 * objfiles.c (allocate_objfile): Remove init of symbol_obstack.
5784 (terminate_minimal_symbol_table): Replace symbol_obstack with
5786 (free_objfile): Remove freeing of symbol_obstack.
5787 * objfiles.h: Remove symbol_obstack field.
5788 * pa64solib.c (add_to_solist): Replace symbol_obstack with
5790 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5792 (solib_add_common_symbols): Replace symbol_obstack with
5794 * somsolib.c (som_solib_add): Ditto.
5795 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
5796 (common_block_start, common_block_end): Ditto.
5797 * symfile.c (reread_symbols): Remove freeing and init of
5799 (allocate_symtab): Rename symbol_obstack to objfile_obstack.
5800 * symfile.h: Update comment.
5801 * symmisc.c (print_objfile_statistics): Remove symbol_obstack
5803 * symtab.c (symbol_set_names): Replace symbol_obstack with
5805 * symtab.h (struct general_symbol_info, struct minimal_symbol):
5807 * xcoffread.c (read_xcoff_symtab, SYMBOL_DUP, SYMNAME_ALLOC)
5808 (init_stringtab, xcoff_initial_scan): Replace symbol_obstack with
5813 * tui/tui.h: Do not include <stdarg.h>, <string.h>, and
5814 "ansidecl.h". Do not undef "reg" and "chtype". Fix case of
5815 fields and variables.
5816 * tui/tui-wingeneral.h (m_beVisible): Delete macro.
5817 (m_beInvisible): Delete macro.
5818 * tui/tui-data.h: Fix case case fields and variables.
5819 (m_genWinPtrIsNull): Delete macro.
5820 (tui_win_list): Rename winList.
5821 (TUI_SRC_WIN): Rename srcWin.
5822 (TUI_DISASM_WIN): Rename disassemWin.
5823 (TUI_DATA_WIN): Rename dataWin.
5824 (TUI_CMD_WIN): Rename cmdWin.
5825 (m_genWinPtrNotNull): Delete macro.
5826 (m_winPtrIsNull): Delete macro.
5827 (m_winPtrNotNull): Delete macro.
5828 (tui_win_is_source_type): Replace m_winIsSourceType
5829 (tui_win_is_auxillary): Replace m_winIsAuzillary.
5830 (tui_win_has_locator): Replace m_hasLocator.
5831 (tui_set_win_highlight): Replace m_setWinHighlightOn and
5832 m_setWinHighlightOff.
5833 * tui/tui-data.c: Update references.
5834 (tui_win_is_source_type, tui_set_win_highlight): New functions.
5835 (tui_win_has_locator, tui_win_is_auxillary): New functions.
5836 * tui/tui-command.c, tui/tui-disasm.c: Update references.
5837 * tui/tui-io.c, tui/tui-layout.c, tui/tui-regs.c: Ditto.
5838 * tui/tui-regs.h, tui/tui-source.c, tui/tui-stack.c: Ditto.
5839 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5840 * tui/tui-winsource.c, tui/tui.c: Ditto.
5844 * sparc-tdep.h (sparc_fetch_wcookie): New prototype.
5845 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Handle
5848 * sparc-tdep.c (sparc32_frame_prev_register): Rename local
5849 variable `i6' to `i7'.
5850 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
5854 * tui/tui.h (Opaque, OpaquePtr OpaqueList): Delete definition.
5855 (TuiPoint, TuiPointPtr): Ditto.
5856 (TuiStatus, TuiStatusPtr): Ditto.
5857 (TuiWinType, TuiWinTypePtr): Ditto.
5858 (struct tui_point): Rename _TuiPoint.
5859 (tui_get_low_disassembly_address): Rename
5860 tuiGetLowDisassemblyAddress.
5861 (tui_update_all_exec_infos): Rename tuiUpdateAllExecInfos.
5862 (tuiFree): Delete declaration.
5863 (OpaqueFuncPtr, TuiOpaqueFuncPtr): Delete definitions.
5864 (TuiVoidFuncPtr, TuiIntFuncPtr): Delete definitions.
5865 * tui/tui.c (tuiFree): Delete function.
5866 * cli/cli-cmds.c (disassemble_command): Update references.
5867 * tui/tui-data.c, tui/tui-data.h, tui/tui-disasm.c: Ditto.
5868 * tui/tui-layout.c, tui/tui-regs.c, tui/tui-source.c: Ditto.
5869 * tui/tui-stack.c, tui/tui-win.c, tui/tui-wingeneral.c: Ditto.
5870 * tui/tui-winsource.c: Ditto.
5874 * dbxread.c (dbx_symfile_init, start_psymtab, end_psymtab,
5875 coffstab_build_psymtabs, elfstab_build_psymtabs)
5876 (stabsect_build_psymtabs): Replace psymbol_obstack with
5878 * dwarf2-frame.c (decode_frame_entry_1): Ditto.
5879 * dwarf2read.c (dwarf2_build_psymtabs_hard, dwarf2_read_section):
5881 * dwarfread.c (scan_compilation_units): Ditto.
5882 * elfread.c (elfstab_offset_sections): Ditto.
5883 * hppa-tdep.c (read_unwind_info): Ditto.
5884 * hpread.c (hpread_build_psymtabs, hpread_start_psymtab)
5885 (hpread_end_psymtab): Ditto.
5886 * mdebugread.c (mdebug_build_psymtabs, add_pending)
5887 (parse_partial_symbols, new_psymtab, elfmdebug_build_psymtabs):
5889 * mips-tdep.c (non_heuristic_proc_desc): Ditto.
5890 * objfiles.c (add_to_objfile_sections)
5891 (build_objfile_section_table): Ditto.
5892 (allocate_objfile): Remove init of psymbol_obstack.
5893 (free_objfile): Remove freeing of psymbol_obstack.
5894 * objfiles.h (struct objfile): Remove field
5895 psymbol_obstack. Update comments.
5896 * pa64solib.c (pa64_solib_add_solib_objfile): Replace
5897 psymbol_obstack with objfile_obstack.
5898 * solib-sunos.c (allocate_rt_common_objfile): Remove init of
5900 * somread.c (som_symfile_offsets, init_import_symbols)
5901 (init_export_symbols): Replace psymbol_obstack with
5903 * somsolib.c (som_solib_add_solib_objfile): Ditto.
5904 * symfile.c (default_symfile_offsets, syms_from_objfile)
5905 (reread_symbols): Remove freeing and init of psymbol_obstack.
5906 (cashier_psymtab): Update comment.
5907 * symmisc.c (print_objfile_statistics): Don't report stats for
5909 * symtab.h (struct general_symbol_info, struct partial_symtab):
5911 * xcoffread.c (xcoff_start_psymtab, xcoff_end_psymtab, swap_sym)
5912 (xcoff_symfile_offsets): Replace psymbol_obstack with
5917 * objfiles.h (struct objfile): Add objfile_obstack field.
5918 Remove type_obstack field.
5920 * dwarf2read.c (dwarf2_add_field,dwarf2_add_member_fn,
5921 read_structure_scope read_enumeration, new_symbol): Replace
5922 type_obstack with objfile_obstack.
5923 * dwarfread.c (struct_type, enum_type): Ditto.
5924 * gdbtypes.c (alloc_type, alloc_type_instance, init_type)
5925 (lookup_fundamental_type): Ditto.
5926 * gdbtypes.h (TYPE_ALLOC): Ditto.
5927 * hpread.c (hpread_read_enum_type, hpread_read_function_type)
5928 (hpread_read_doc_function_type, hpread_read_struct_type)
5929 (fix_static_member_physnames, hpread_read_array_type)
5930 (hpread_read_subrange_type, hpread_type_lookup): Ditto.
5931 * jv-lang.c (java_lookup_class, type_from_class, type_from_class)
5932 (java_link_class_type): Ditto.
5933 * mdebugread.c (parse_type): Ditto.
5934 * objfiles.c (allocate_objfile, free_objfile): Ditto.
5935 * solib-sunos.c (solib_add_common_symbols): Ditto.
5936 * stabsread.c (define_symbol, read_type, read_member_functions,
5937 read_cpp_abbrev, read_one_struct_field): Ditto.
5938 * symfile.c (reread_symbols): Ditto.
5939 * symmisc.c (print_objfile_statistics): Ditto.
5943 * tui/tui-data.h (tui_win_element): Rename TuiWinElement.
5944 (tui_exec_info_content): Rename TuiExecInfoContent.
5945 (TuiGenWinInfo, TuiGenWinInfoPtr): Delete definitions.
5946 (TuiWinInfo, TuiWinInfoPtr): Ditto.
5947 (TuiScrollDirection, TuiScrollDirectionPtr): Ditto.
5948 (TuiList, TuiListPtr): Ditto.
5949 (TuiLayoutType, TuiLayoutTypePtr): Ditto.
5950 (TuiDataType, TuiDataTypePtr): Ditto.
5951 (TuiRegisterDisplayType, TuiRegisterDisplayTypePtr): Ditto.
5952 (TuiLineOrAddress, TuiLineOrAddressPtr): Ditto.
5953 (TuiLayoutDef, TuiLayoutDefPtr): Ditto.
5954 (TuiSourceElement, TuiSourceElementPtr): Ditto.
5955 (TuiDataElement, TuiDataElementPtr): Ditto.
5956 (TuiWinElement, TuiWinElementPtr): Ditto.
5957 (TuiDataInfo, TuiDataInfoPtr): Ditto.
5958 (TuiCommandElement, TuiCommandElementPtr): Ditto.
5959 (TuiLocatorElement, TuiLocatorElementPtr): Ditto.
5960 (TuiWhichElement, TuiWhichElementPtr): Ditto.
5961 (TuiSourceInfo, TuiSourceInfoPtr): Ditto.
5962 (TuiCommandInfo, TuiCommandInfoPtr): Ditto.
5963 * tui/tui-command.c, tui/tui-data.c: Update references.
5964 * tui/tui-data.h, tui/tui-disasm.c, tui/tui-layout.c: Ditto.
5965 * tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
5966 * tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
5967 * tui/tui-winsource.c, tui/tui.c: Ditto.
5971 * dwarf2-frame.h: Update copyright.
5972 (enum dwarf2_frame_reg_rule): New.
5973 (struct dwarf2_frame_state_reg): New.
5974 (dwarf2_frame_sniffer, dwarf2_frame_base_sniffer): Make extern.
5975 * dwarf2-frame.c: Update copyright.
5976 (enum dwarf2_reg_rule): Remove.
5977 (struct dwarf2_frame_state): Remove defenition of `struct
5978 dwarf2_frame_state_reg'.
5979 (read_reg): Call get_frame_arch to get the architecture instead of
5980 using CURRENT_GDBARCH.
5981 (execute_cfa_program): Prefix old `enum dwarf2_reg_rule' tags with
5983 (dwarf2_frame_init_reg): New function.
5984 (dwarf2_frame_cache): Call get_frame_arch to get the architecture
5985 instead of using CURRENT_GDBARCH. Call dwarf2_frame_init_reg to
5986 initialize the register state. Prefix old `enum dwarf2_reg_rule'
5987 tags with DWARF2_FRAME_.
5988 (dwarf2_frame_prev_register): Call get_frame_arch to get the
5989 architecture instead of using CURRENT_GDBARCH. Prefix old `enum
5990 dwarf2_reg_rule' tags with DWARF2_FRAME_.
5994 * tui/tui-data.h (struct tui_list): Rename _TuiList.
5995 (enum tui_data_type): Rename _TuiDataType.
5996 (struct tui_layout_def): Rename _TuiLayoutDef.
5997 (struct tui_source_element): Rename _TuiSourceElement.
5998 (struct tui_data_element): Rename _TuiDataElement.
5999 (struct tui_command_element): Rename _TuiCommandElement.
6000 (struct tui_locator_element): Rename _TuiLocatorElement.
6001 (union tui_which_element): Define.
6002 (struct tui_win_element): Rename _TuiWinElement.
6003 (struct tui_data_info): Rename _TuiDataInfo.
6004 (struct tui_source_info): Rename _TuiSourceInfo.
6005 (struct tui_command_info): Rename _TuiCommandInfo.
6006 (tui_initialize_static_data): Rename initializeStaticData.
6007 (tui_alloc_generic_win_info): Rename allocGenericWinInfo.
6008 (tui_alloc_win_info): Rename allocWinInfo.
6009 (tui_init_generic_part): Rename initGenericPart.
6010 (tui_init_win_info): Rename initWinInfo.
6011 (tui_alloc_content): Rename allocContent.
6012 (tui_add_content_elements): Rename addContentElements.
6013 (tui_init_content_element): Rename initContentElement.
6014 (tui_free_window): Rename freeWindow.
6015 (tui_free_win_content): Rename freeWinContent.
6016 (tui_free_data_content): Rename freeDataContent.
6017 (tui_free_all_source_wins_content): Rename
6018 freeAllSourceWinsContent.
6019 (tui_del_window): Rename tuiDelWindow.
6020 (tui_del_data_windows): Rename tuiDelDataWindows.
6021 (tui_partial_win_by_name): Rename partialWinByName.
6022 (tui_win_name): Rename winName.
6023 (tui_current_layout): Rename currentLayout.
6024 (tui_set_current_layout_to): Rename setCurrentLayoutTo.
6025 (tui_term_height): Rename termHeight.
6026 (tui_set_term_height_to): Rename setTermHeightTo.
6027 (tui_term_width): Rename termWidth.
6028 (tui_set_term_width_to): Rename setTermWidthTo.
6029 (tui_set_gen_win_origin): Rename setGenWinOrigin.
6030 (tui_locator_win_info_ptr): Rename locatorWinInfoPtr.
6031 (tui_source_exec_info_win_ptr): Rename tui_gen_win_info.
6032 (tui_disassem_exec_info_win_ptr): Rename disassemExecInfoWinPtr.
6033 (tui_source_windows): Rename sourceWindows.
6034 (tui_clear_source_windows): Rename clearSourceWindows.
6035 (tui_clear_source_windows_detail): Rename
6036 clearSourceWindowsDetail.
6037 (tui_clear_win_detail): Rename clearWinDetail.
6038 (tui_add_to_source_windows): Rename tuiAddToSourceWindows.
6039 (tui_default_tab_len): Rename tuiDefaultTabLen.
6040 (tui_set_default_tab_len): Rename tuiSetDefaultTabLen.
6041 (tui_win_with_focus): Rename tuiWinWithFocus.
6042 (tui_set_win_with_focus): Rename tuiSetWinWithFocus.
6043 (tui_layout_def): Rename tuiLayoutDef.
6044 (tui_win_resized): Rename tuiWinResized.
6045 (tui_set_win_resized_to): Rename tuiSetWinResizedTo.
6046 (tui_next_win): Rename tuiNextWin.
6047 (tui_prev_win): Rename tuiPrevWin.
6048 (tui_add_to_source_windows): Rename addToSourceWindows.
6049 * tui/tui-winsource.c, tui/tui-win.c: Update references.
6050 * tui/tui-layout.c, tui/tui-source.c: Ditto.
6051 * tui/tui-stack.c, tui/tui-io.c: Ditto.
6052 * tui/tui.c, tui/tui-data.c: Ditto.
6053 * tui/tui-interp.c, tui/tui-data.c: Ditto.
6054 * tui/tui-disasm.c, tui/tui-command.c: Ditto.
6056 * tui/tui-source.h: Update copyright. Include "tui-data.h".
6057 (struct symtab): Declare.
6058 (tui_set_source_content): Rename tuiSetSourceContent.
6059 (tui_show_symtab_source): Rename tuiShowSource.
6060 (tui_source_is_displayed): Rename tuiSourceIsDisplayed.
6061 (tui_vertical_source_scroll): Rename tuiVerticalSourceScroll.
6062 * tui/tui-source.c: Update copyright. Update references.
6063 * tui/tui-win.c, tui/tui-winsource.c: Update references.
6064 * tui/tui-stack.c: Update references.
6066 * tui/tui-win.h: Update copyright. Include "tui-data.h".
6067 (struct tui_win_info): Declare.
6068 (tui_scroll_forward): Rename tuiScrollForward.
6069 (tui_scroll_backward): Rename tuiScrollBackward.
6070 (tui_scroll_left): Rename tuiScrollLeft.
6071 (tui_scroll_right): Rename tuiScrollRight.
6072 (tui_set_win_focus_to): Rename tuiSetWinFocusTo.
6073 (tui_resize_all): Rename tuiResizeAll.
6074 (tui_refresh_all_win): Rename tuiRefreshAll.
6075 (tui_sigwinch_handler): Rename tuiSigwinchHandler.
6076 * tui/tui-layout.c, * tui/tui-io.c: Update references.
6077 * tui/tui-wingeneral.h, * tui/tui.c: Update references.
6078 * tui/tui-disasm.c, * tui/tui-command.c: Update references.
6080 * tui/tui-windata.h: Update copyright. Include "tui-data.h".
6081 (tui_erase_data_content): Rename tuiEraseDataContent.
6082 (tui_display_all_data): Rename tuiDisplayAllData.
6083 (tui_check_data_values): Rename tuiCheckDataValues.
6084 (tui_display_data_from_line): Rename tuiDisplayDataFromLine.
6085 (tui_first_data_item_displayed): Rename tuiFirstDataItemDisplayed.
6086 (tui_first_data_element_no_in_line): Rename
6087 tuiFirstDataElementNoInLine.
6088 (tui_delete_data_content_windows): Rename
6089 tuiDeleteDataContentWindows.
6090 (tui_refresh_data_win): Rename tuiRefreshDataWin.
6091 (tui_display_data_from): Rename tuiDisplayDataFrom.
6092 (tui_vertical_data_scroll): Rename tuiVerticalDataScroll.
6093 * tui/tui-windata.c, tui/tui-hooks.c: Update references.
6094 * tui/tui-win.c, tui/tui-regs.c: Update references.
6095 * tui/tui-layout.c, tui/tui.c: Update references.
6097 * tui/tui-wingeneral.h: Update copyright.
6098 (m_allBeVisible): Delete macro.
6099 (m_allBeInvisible): Delete macro.
6100 (struct tui_gen_win_info): Declare.
6101 (struct tui_win_info): Declare.
6102 (tui_unhighlight_win): Rename unhighlightWin.
6103 (tui_make_visible, tui_make_invisible): Replace makeVisible.
6104 (tui_make_all_visible, tui_make_all_invisible): Replace makeAllVisible.
6105 (tui_make_window): Rename makeWindow.
6106 (tui_copy_win): Rename copyWin.
6107 (tui_box_win): Rename boxWin.
6108 (tui_highlight_win): Rename highlightWin.
6109 (tui_check_and_display_highlight_if_needed): Rename
6110 checkAndDisplayHighlightIfNeeded.
6111 (tui_refresh_all): Rename refreshAll.
6112 (tui_delete_win): Rename tuiDelwin.
6113 (tui_refresh_win): Rename tuiRefreshWin.
6114 * tui/tui-wingeneral.c (make_visible): Rename makeVisible.
6115 (tui_make_visible, tui_make_invisible): New functions.
6116 (tui_make_all_visible, tui_make_all_invisible): New functions.
6117 (make_all_visible): Rename makeAllVisible.
6118 * tui/tui-winsource.c, tui/tui-windata.c: Update references.
6119 * tui/tui-data.c, tui/tui-winsource.c: Update references.
6120 * tui/tui-windata.c, tui/tui-win.c: Update references.
6121 * tui/tui-regs.c, tui/tui-layout.c: Update references.
6122 * tui/tui-data.h (struct tui_gen_win_info): Rename _TuiGenWinInfo.
6126 * proc-api.c (write_with_trace): Initialize local variable to
6127 silence compiler warning.
6131 * tui/tui-source.h: Do not include "defs.h".
6132 (struct tui_win_info): Declare.
6133 (tui_set_source_content_nil): Declare.
6134 * tui/tui-data.h (struct tui_win_info): Rename _TuiWinInfo.
6135 (union tui_line_or_address): Rename _TuiLineOrAddress.
6136 * tui/tui-winsource.h: Update copyright. Include "tui-data.h".
6137 (tui_update_source_window): Rename tuiUpdateSourceWindow.
6138 (tui_update_source_window_as_is): Rename
6139 tuiUpdateSourceWindowAsIs.
6140 (tui_update_source_windows_with_addr): Rename
6141 tuiUpdateSourceWindowsWithAddr.
6142 (tui_update_source_windows_with_line): Rename
6143 tuiUpdateSourceWindowsWithLine.
6144 (tui_clear_source_content): Rename tuiClearSourceContent.
6145 (tui_erase_source_content): Rename tuiEraseSourceContent.
6146 (tui_set_source_content_nil): Rename tuiSetSourceContentNil.
6147 (tui_show_source_content): Rename tuiShowSourceContent.
6148 (tui_horizontal_source_scroll): Rename tuiHorizontalSourceScroll.
6149 (tui_set_exec_info_content): Rename tuiSetExecInfoContent.
6150 (tui_show_exec_info_content): Rename tuiShowExecInfoContent.
6151 (tui_erase_exec_info_content): Rename tuiEraseExecInfoContent.
6152 (tui_clear_exec_info_content): Rename tuiClearExecInfoContent.
6153 (tui_update_exec_info): Rename tuiUpdateExecInfo.
6154 (tui_set_is_exec_point_at): Rename tuiSetIsExecPointAt.
6155 (tui_alloc_source_buffer): Rename tuiAllocSourceBuffer.
6156 (tui_line_is_displayed): Rename tuiLineIsDisplayed.
6157 (tui_addr_is_displayed): Rename tuiAddrIsDisplayed.
6158 (struct tui_win_info): Declare.
6159 * tui/tui-stack.c: Update references.
6160 * tui/tui-layout.c, tui/tui-winsource.c: Ditto.
6161 * tui/tui-win.c, tui/tui-source.c: Ditto.
6162 * tui/tui.c, tui/tui-disasm.c: Ditto.
6166 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Fix calculation
6167 of UCONTEXT_ADDR. Fixes PR backtrace/1545.
6171 * infrun.c (handle_inferior_event): Allow for breakpoint
6172 instructions to generate a SIGSEGV in addition to SIGTRAP, SIGILL
6173 and SIGEMT. Update comments.
6174 * NEWS (Revised SPARC target): Mention support for non-executable
6179 * target.h (target_object): Add TARGET_OBJECT_WCOOKIE.
6180 * inftarg.c: Update copyright year.
6181 (child_xfer_partial): Add support for TARGET_OBJECT_WCOOKIE.
6182 * sparc-nat.c: Include "target.h" and "gdb_assert.h".
6183 (sparc_xfer_wcookie): New function.
6184 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6185 * Makefile.in (sparc-nat.o): Update dependencies.
6186 * config/sparc/nm-nbsd.h: Include "target.h".
6187 (NATIVE_XFER_WCOOKIE): New define.
6188 (sparc_xfer_wcookie): New prototype.
6192 * m68k-tdep.c (m68k_saved_pc_after_call): Delete #ifdef
6193 SYSCALL_TRAP function.
6194 (m68k_gdbarch_init): Delete #ifdef SYSCALL_TRAP code.
6199 * objfiles.h: Delete comments refering to inside_entry_func and
6200 DEPRECATED_FRAME_CHAIN_VALID.
6201 * defs.h (inside_entry_func): Update prototype..
6202 * blockframe.c (inside_entry_func): Rename to
6203 legacy_inside_entry_func. Add new inside_entry_func taking a frame.
6204 * frame.c (get_prev_frame): Pass the frame to inside_entry_func.
6208 * breakpoint.c (struct captured_parse_breakpoint_args): Move
6209 outside of #ifdef SOLIB_ADD region.
6210 (do_restore_lang_radix_cleanup): Ditto.
6211 (resolve_pending_breakpoint): Ditto.
6215 * ia64-tdep.c (read_sigcontext_register): Delete unused function.
6216 (process_note_abi_tag_sections): Delete unused function.
6217 (ia64_read_fp): Delete unused function.
6218 (gdbarch_extract_struct_value_address): Delete declaration.
6222 * vax-tdep.c (vax_frame_chain): Delete call to
6223 deprecated_inside_entry_file.
6224 * ns32k-tdep.c (ns32k_frame_chain): Ditto.
6228 * dwarf2-frame.c (dwarf2_frame_cache): Deal with a return address
6229 column that's "empty" or "same value" when eliminating REG_RA
6234 * NEWS: Add information about new pending breakpoint support.
6238 * breakpoint.h (struct breakpoint): Add new flag, from_tty,
6239 and pending fields for pending breakpoint support.
6240 * breakpoint.c (breakpoint_enabled): Add check for not pending.
6241 (condition_command): Only parse condition if not a pending
6243 (print_one_breakpoint): Add support for pending breakpoints.
6244 (describe_other_breakpoints): Add checks to verify we are not
6245 dealing with pending breakpoints.
6246 (check_duplicates): Don't check pending breakpoints.
6247 (set_raw_breakpoint): Initialize pending flag.
6248 (do_restore_lang_radix_cleanup): New cleanup routine.
6249 (resolve_pending_breakpoint): New function.
6250 (re_enable_breakpoints_in_shlibs): Try and resolve any
6251 pending breakpoints via resolve_pending_breakpoint.
6252 (mention): Add pending breakpoint support.
6253 (parse_breakpoint_sals): Add new parameter to pass to
6254 decode_line_1 to indicate silent errors when files or functions
6255 are not found. Change all callers.
6256 (do_captured_parse_breakpoint): New function.
6257 (break_command_1): Change prototype to return an rc value and to
6258 take an optional pending breakpoint pointer. Support creating
6259 a pending breakpoint if a "not found" form of error occurs when
6260 parsing the breakpoint. Also support resolving an existing pending
6261 breakpoint and be silent if the resolution fails.
6262 (create_breakpoints): Change prototype to take pending breakpoint
6263 pointer. When resolving a pending breakpoint, use the new pointer
6264 to provide a conditional or commands added by the end-user.
6265 (delete_breakpoint): Add appropriate check for pending.
6266 (breakpoint_re_set_one): Ditto.
6267 (do_enable_breakpoint): Ditto.
6271 * valops.c (enum oload_classification): New.
6272 (find_overload_match): Break implementation into separate
6273 functions; delete #if 0'd code; look for symbols within
6275 (find_oload_champ_namespace,find_oload_champ_namespace_loop)
6276 (find_oload_champ,oload_method_static,classify_oload_match): New.
6277 * cp-support.h: Add declaration for cp_func_name; update
6278 declaration for make_symbol_overload_list.
6279 * cp-support.c (cp_func_name): New.
6280 (overload_list_add_symbol): Fix comment, use
6281 SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME.
6282 (make_symbol_overload_list): Take a function name and a namespace
6283 instead of a symbol; change implementation.
6284 (make_symbol_overload_list_using): New.
6285 (make_symbol_overload_list_qualified, read_in_psymtabs): New.
6289 * main.c (gdb_stdtarg): Move definition to group with other
6290 gdb_stdtarg definitions and update copyright years.
6291 * remote-sim.c (gdb_os_write_stderr): Write output to
6292 gdb_stdtargerr stream instead of gdb_stdtarg stream.
6293 (gdb_os_flush_stderr): Flush gdb_stdtargerr steam instead of
6294 gdb_stderr stream and update copyright years.
6298 * Makefile.in (mips-linux-nat.o): Update dependencies.
6299 * mips-linux-nat.c: Include mips-tdep.h.
6303 * sol-thread.c (sol_thread_xfer_partial): New function.
6304 (init_sol_thread_ops): Use that for to_xfer_partial hook.
6305 (init_sol_core_ops): Likewise.
6307 * procfs.c (procfs_xfer_partial): New function.
6308 (init_procfs_ops): Use that for procfs_ops.to_xfer_partial.
6309 * Makefile.in (procfs.o): Add $(auxv_h) dep.
6311 * config/nm-linux.h (NATIVE_XFER_AUXV): New macro, uses auxv.c's
6312 procfs_xfer_auxv function.
6314 * procfs.c (procfs_make_note_section): If we can read
6315 TARGET_OBJECT_AUXV data, add an NT_AUXV note containing it.
6316 * linux-proc.c (linux_make_note_section): Likewise.
6320 * Makefile.in (auxv_h): New variable.
6321 (COMMON_OBS): Add auxv.o here.
6322 (auxv.o): New target.
6324 * corelow.c (core_xfer_partial): New function.
6325 (init_core_ops): Use it for core_ops.to_xfer_partial.
6327 * target.h (enum target_object): Add TARGET_OBJECT_AUXV.
6328 * inftarg.c (child_xfer_partial): Support it using NATIVE_XFER_AUXV
6329 macro if that is defined.
6333 * breakpoint.c (bpstat_stop_status): Take a ptid_t argument,
6334 and check the specified thread for each breakpoint.
6335 * breakpoint.h (bpstat_stop_status): Update prototype.
6336 * infrun.c (handle_inferior_event): Update calls to
6341 * Makefile.in (cli-cmds.o): Add $(readline_h).
6345 * cli/cli-cmds.c: Include readline.h.
6346 (complete_command): Pass the start of the last word to
6351 * breakpoint.c (bpstat_stop_status): Remove not_a_sw_breakpoint
6352 argument, and change first argument to a CORE_ADDR.
6353 * breakpoint.h (bpstat_stop_status): Update prototype.
6354 * infrun.c (adjust_pc_after_break): Add a new comment.
6355 (handle_inferior_event): Update calls to bpstat_stop_status.
6359 * breakpoint.h: Update copyright years.
6363 * breakpoint.c (software_breakpoint_inserted_here_p): New function.
6364 (bpstat_stop_status): Don't decrement PC.
6365 * breakpoint.h (software_breakpoint_inserted_here_p): Add
6367 * infrun.c (adjust_pc_after_break): New function.
6368 (handle_inferior_event): Call it, early. Remove later references
6369 to DECR_PC_AFTER_BREAK.
6370 (normal_stop): Add commentary.
6374 * breakpoint.c (breakpoint_re_set_one): Add missing chunk of
6375 2004-01-27 double-free fix.
6379 * sparc-tdep.c (sparc_fetch_wcookie): New function.
6380 (sparc32_frame_prev_register): Handle StackGhost.
6381 (sparc_supply_rwindow, sparc_collect_rwindow): Likewise.
6385 * configure.in (NEW_PROC_API): Also match solaris2.9 for this test.
6386 * configure: Regenerated.
6388 * procfs.c: Include gdb_string.h for str* decls, otherwise warnings.
6389 * Makefile.in (procfs.o): Add dep.
6393 * tui/tui-stack.h: Update copyright.
6394 (struct frame_info): Add opaque declaration.
6395 (tui_update_locator_filename): Rename tuiUpdateLocatorFilename.
6396 (tui_show_locator_content): Rename tuiShowLocatorContent.
6397 (tui_show_frame_info): Rename tuiShowFrameInfo.
6398 * tui/tui-stack.c: Update copyright. Update references.
6399 * tui/tui-winsource.c: Update references.
6400 * tui/tui-win.c: Update references.
6401 * tui/tui-layout.c: Update references.
6402 * tui/tui-hooks.c: Update copyright, update references.
6403 * tui/tui.c: Update copyright, update references.
6404 * tui/tui-disasm.c: Update references.
6408 * dwarf2read.c (add_partial_structure): Use demangled name if
6409 namespace equals "".
6413 Clean up misapplied patch:
6414 * dwarf2read.c (determine_prefix): Change one of the two forward
6415 declarations for 'determine_prefix_aux' to a declaration for this.
6416 (read_func_scope): Use cu->language, not cu_language. Pass 'cu'
6417 argument to 'die_specification'.
6419 * dwarf2read.c (read_func_scope): Re-indent comment.
6423 * breakpoint.c (breakpoint_re_set_one): Set b->cond, b->val, and
6424 b->exp to NULL after freeing so that error during re-parsing or
6425 evaluation of expressions associated with breakpoint don't
6426 eventually lead to re-freeing of storage.
6427 Committed by Andrew Cagney.
6431 * source.c (ambiguous_line_spec): Delete undefined declaration.
6432 * m32r-rom.c (m32r_set_board_address): Delete unused function.
6433 (m32r_set_server_address, m32r_set_download_path): Ditto.
6434 * remote-fileio.c (remote_fileio_to_fio_int): Ditto.
6438 * dwarf2read.c: Update calls to changed and renamed functions, and
6439 references to moved variables.
6441 (struct dwarf2_cu): Add first_fn, last_fn, cached_fn,
6442 language, language_defn, list_in_scope, and ftypes members.
6443 (cu_first_fn, cu_last_fn, cu_cached_fn, cu_language)
6444 (cu_language_defn, list_in_scope, ftypes, cu_header_offset)
6445 (baseaddr): Remove globals.
6447 (dwarf_attr): Renamed to dwarf2_attr. Add CU argument.
6448 (set_cu_language, die_is_declaration, die_specification)
6449 (determine_prefix, determin_prefix_aux, class_name, namespace_name)
6450 (dwarf2_linkage_name, dwarf2_name, dwarf2_extension)
6451 (dwarf2_get_ref_die_offset, dwarf2_fundamental_type)
6452 (initialize_cu_func_list, add_to_cu_func_list): Add CU argument.
6454 (dwarf2_build_psymtabs_hard): Add local baseaddr. Initialize
6455 cu.list_in_scope. Don't initialize cu_header_offset.
6456 (add_partial_symbol): Add local baseaddr.
6457 (psymtab_to_symtab_1): Add local baseaddr. Use
6458 objfile->section_offsets for consistency. Don't initialize
6459 cu_header_offset; do initialize cu.header.offset and
6461 (read_file_scope, read_func_scope, read_lexical_block_scope)
6462 (dwarf_decode_lines, new_symbol): Add local baseaddr.
6466 * PROBLEMS: Add gdb/1516.
6470 Patch committed by Andrw Cagney.
6471 * configure.host: Match knetbsd*-gnu and kfreebsd*-gnu.
6472 * configure.tgt: Match knetbsd*-gnu.
6476 * breakpoint.c (catch_command_1): Delete #ifdef code.
6477 (catch_fork_command_1): Delete #ifdef wrapper.
6478 (catch_exec_command_1): Ditto.
6479 (catch_load_command_1): Ditto.
6480 (catch_unload_command_1): Ditto.
6482 * breakpoint.c (watchpoint_check): Delete #if0ed variable.
6483 (catch_breakpoint): Delete #if0ed function.
6484 (disable_catch_breakpoint): Ditto.
6485 (delete_catch_breakpoint, enable_catch_breakpoint): Ditto.
6486 (disable_catch, enable_catch, delete_catch): Ditto.
6490 * remote.c (echo_check, quit_flag): Delete variables.
6491 (cisco_kernel_mode): Delete variable.
6492 (minitelnet_return, tty_input, escape_count): Delete variables.
6493 (remote_cisco_mode): Delete variable.
6494 (remote_cisco_open, remote_cisco_close): Delete function.
6495 (remote_cisco_mourn, remote_cisco_wait): Delete function.
6496 (init_remote_cisco_ops): Delete function.
6497 (_initialize_remote): Do not install "remote cisco" code.
6498 (read_frame): Delete cisco specific code.
6499 (remote_info_process): Delete function.
6500 (remote_wait): Delete cisco specific code.
6501 (remote_cisco_section_offsets): Delete function.
6502 (remote_cisco_objfile_relocate): Delete function.
6503 (remote_async_wait): Delete cisco specific code.
6504 (minitelnet, readtty, readsocket): Delete function.
6508 * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS): Deprecate. Add
6509 comments mentioning extract_returned_value_address.
6510 * infcmd.c (print_return_value): Update. Add comments on
6511 extract_returned_value_address.
6512 * stack.c (return_command): Add comments on
6513 extract_returned_value_address.
6514 * values.c: Update comment.
6515 * m32r-tdep.c: Update comment.
6516 * sparc-tdep.c: Update comment.
6517 * ia64-tdep.c (ia64_use_struct_convention): Update comment.
6518 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6519 * sh64-tdep.c (sh64_gdbarch_init): Update.
6520 * sh-tdep.c (sh_gdbarch_init): Update.
6521 * s390-tdep.c (s390_gdbarch_init): Update.
6522 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6523 * m68klinux-tdep.c (m68k_linux_init_abi): Update.
6524 * m68k-tdep.c (m68k_gdbarch_init): Update.
6525 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6526 * m32r-tdep.c (m32r_gdbarch_init): Update.
6527 * ia64-tdep.c (ia64_gdbarch_init): Update.
6528 * h8300-tdep.c (h8300_gdbarch_init): Update.
6529 * frv-tdep.c (frv_gdbarch_init): Update.
6530 * arm-tdep.c (arm_gdbarch_init): Update.
6531 * alpha-tdep.c (alpha_gdbarch_init): Update.
6535 * dwarf2loc.c (dwarf_expr_frame_base): Use SYMBOL_OPS instead of
6536 SYMBOL_LOCATION_FUNCS
6537 (dwarf2_loclist_funcs, dwarf2_locexpr_funcs): Change type to
6538 "struct symbol_ops".
6539 * dwarf2loc.h (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Change
6540 type to "struct symbol_ops".
6541 * symtab.h (struct symbol_ops): Rename "struct location_funcs".
6542 (struct symbol): Replace ".aux_value.loc.funcs" and
6543 ".aux_value.loc.baton" with ".ops" and ".aux_value.ptr".
6544 (SYMBOL_OBJFILE): Delete macro.
6545 (SYMBOL_LOCATION_FUNCS): Delete macro.
6546 (SYMBOL_LOCATION_BATON): Update.
6547 * dwarf2read.c (dwarf2_symbol_mark_computed): Set SYMBOL_OPS
6548 intead of SYMBOL_LOCATION_FUNCS.
6549 * ax-gdb.c (gen_var_ref): Ditto.
6550 * printcmd.c (address_info): Ditto.
6551 * findvar.c (read_var_value): Ditto.
6552 (symbol_read_needs_frame): Ditto.
6556 * dwarf2read.c (read_func_scope): Document frame-base hack.
6560 * infcmd.c (print_return_value): Plug memory leak; delete
6561 ui_stream object. Rename argument `structure_return' to
6566 * infcmd.c (print_return_value): Wrap long lines.
6567 (finish_command_continuation, finish_command): Remove unused
6568 variable `funcaddr'. Fix some coding-standards problems.
6570 * sparc-tdep.c (sparc_regset_from_core_section): Check whether
6571 SECT_SIZE is large enough, not whether it's exactly the right size.
6572 (sparc32_gdbarch_init): Initialize TDEP->sizeof_gregset and
6573 TDEP->fpregset to zero.
6575 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Also supply the
6576 floating-point registers for traditional NetBSD core files.
6577 (sparc32nbsd_init_abi): Initialize TDEP->sizeof_gregset and
6578 TDEP->sizeof_fpregset here.
6582 * sparc-tdep.h (sparc32nbsd_sigcontext_saved_regs): New prototype.
6583 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): New
6584 function with code split out from
6585 sparc32nbsd_sigcontext_frame_cache.
6586 (sparc32nbsd_sigcontext_frame_cache): Use
6587 sparc32nbsd_sigcontext_saved_regs.
6588 (_initialize_sparc32nbsd_tdep): Don't register OS ABI handler for
6590 * sparcobsd-tdep.c: New file.
6591 * Makefile.in (ALLDEPFILES): Add sparcobsd-tdep.c.
6592 (sparcobsd-tdep.o): New dependency.
6593 * configure.tgt (sparc-*-openbsd*): Set gdb_target to obsd.
6594 * config/sparc/obsd.mt: New file.
6596 * sparc-tdep.c (sparc32_gdbarch_init): Don't require
6597 TDEP->fpregset to be initialized to enable core file register
6602 * sparc64-tdep.h (struct frame_info, struct trad_frame_saved_reg):
6603 Add opaque declarations.
6604 (sparc64nbsd_sigcontext_saved_regs): New prototype.
6605 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): New
6606 function with code split out from
6607 sparc64nbsd_sigcontext_frame_cache.
6608 (sparc64nbsd_sigcontext_frame_cache): Use
6609 sparc64nbsd_sigcontext_saved_regs.
6610 (_initialize_sparc64nbsd_tdep): Don't register OS ABI handler for
6612 * sparc64obsd-tdep.c: New file.
6613 * Makefile.in (ALLDEPFILES): Add sparc64obsd-tdep.c.
6614 (sparc64obsd-tdep.o): New dependency.
6615 * configure.tgt (sparc64-*-openbsd*): Set gdb_target to obsd64 and
6616 gdb_osabi to GDB_OSABI_OPENBSD_ELF.
6617 * config/sparc/obsd64.mt: New file.
6619 * sparc-tdep.c (sparc_fetch_instruction): Return zero if we can't
6620 read the instruction at PC.
6622 * sparcnbsd-tdep.c (GDB_OSABI_NETBSD_CORE): Define, based on the
6623 value of GDB_OSABI_DEFAULT.
6624 (sparcnbsd_core_osabi_sniffer): Return GDB_OSABI_NETBSD_CORE
6625 instead of GDB_OSABI_NETBSD_AOUT.
6629 * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-cmds.h: Update
6634 * printcmd.c (display_command): Replace tui_set_display call with
6635 tui_set_layout_for_display_command.
6636 * tui/tui.h (enum tui_win_type): Define.
6637 (tui_set_layout): Delete declaration.
6638 (tui_set_layout_for_display_command): Rename set_tui_layout.
6639 * tui/tui-data.h (enum tui_layout_type): Define.
6640 * tui/tui-layout.h: Update copyright. Include "tui-data.h" and
6642 (tui_add_win_to_layout): Rename tuiAddWinToLayout.
6643 (tui_default_win_height): Rename tuiDefaultWinHeight.
6644 (tui_default_win_viewport_height): Rename
6645 tuiDefaultWinViewportHeight.
6646 (tui_set_layout): RenametuiSetLayout.
6647 * tui/tui-layout.c: Update references.
6648 * tui/tui.c: Update references.
6649 * tui/tui-disasm.c: Update references.
6653 Partial workaround for PR c++/1511:
6654 * cp-namespace.c: Include frame.h.
6655 (cp_lookup_transparent_type): New
6656 (cp_lookup_transparent_type_loop): New.
6657 * cp-support.h: Declare cp_lookup_transparent_type.
6658 * symtab.c (basic_lookup_transparent_type): Renamed from
6659 lookup_transparent_type.
6660 (lookup_transparent_type): Replace old body by a call to
6661 current_language->la_lookup_transparent_type.
6662 * symtab.h: Update copyright. Declare
6663 basic_lookup_transparent_type.
6664 * language.h: Update copyright.
6665 (struct language_defn): Add la_lookup_transparent_type.
6666 * language.c: Update copyright.
6667 (unknown_language_defn): Add basic_lookup_transparent_type.
6668 (auto_language_defn): Add basic_lookup_transparent_type.
6669 (local_language_defn): Add basic_lookup_transparent_type.
6670 * ada-lang.c: Update copyright.
6671 (ada_language_defn): Add basic_lookup_transparent_type.
6672 * c-lang.c: Update copyright.
6673 (c_language_defn): Add basic_lookup_transparent_type.
6674 (cplus_language_defn): Add basic_lookup_transparent_type.
6675 (asm_language_defn): Add basic_lookup_transparent_type.
6676 (minimal_language_defn): Add basic_lookup_transparent_type.
6677 * f-lang.c: Update copyright.
6678 (f_language_defn): Add basic_lookup_transparent_type.
6679 * jv-lang.c: Update copyright.
6680 (java_language_defn): Add basic_lookup_transparent_type.
6681 * m2-lang.c: Update copyright.
6682 (m2_language_defn): Add basic_lookup_transparent_type.
6683 * objc-lang.c: Update copyright.
6684 (objc_language_defn): Add basic_lookup_transparent_type.
6685 * p-lang.c: Update copyright.
6686 (p_language_defn): Add basic_lookup_transparent_type.
6687 * scm-lang.c: Update copyright.
6688 (scm_language_defn): Add basic_lookup_transparent_type.
6689 * Makefile.in (cp-namespace.o): Depend on frame.h.
6693 Patch for PR c++/1520:
6694 * dwarf2read.c (read_func_scope): Set processing_current_prefix
6695 properly if we have a specification die.
6696 (determine_prefix_aux): Rename from determine_prefix.
6697 (determine_prefix): Like the old determine_prefix, but never
6702 * avr-tdep.c: Update copyright.
6703 (avr_iaddr_p): Delete unused function.
6704 (avr_saddr_p): Delete unused function.
6708 * symfile.c (reread_symbols): Clear objfile->cp_namespace_symtab.
6709 Fix for PR symtab/1534.
6713 * NEWS (New native configurations): Mention OpenBSD/sparc and
6715 * configure.tgt: Add sparc-*-openbsd* and sparc64-*-openbsd*.
6716 * configure.host: Likewise.
6717 * sparcnbsd-tdep.c (_initialize_sparnbsd_tdep): Register OS ABI
6718 handler for OpenBSD.
6719 * sparc64nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Likewise.
6723 * sparcnbsd-tdep.c (sparcnbsd_core_osabi_sniffer): New function.
6724 (_initialize_sparnbsd_tdep): Register sparcnbsd_core_osabi_sniffer.
6726 * ser-pipe.c (pipe_open): Use proper null pointer in execl call.
6727 * cli/cli-cmds.c (shell_escape): Likewise.
6729 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Recognize
6730 OpenBSD .note.openbsd.ident sections.
6734 * dwarf2read.c (psymtab_to_symtab_1): Calculate lowpc, highpc via
6735 get_scope_pc_bounds.
6736 (read_file_scope): Ditto.
6737 (get_scope_pc_bounds): New function, produced by extracting code
6738 from the above two functions, consolidating it, and adding support
6739 for DW_TAG_namespace.
6743 * osabi.c (MAX_NOTESZ): New define.
6744 (check_note): New function.
6745 (generic_elf_osabi_sniff_abi_tag_sections): Reorganize code using
6750 * MAINTAINERS (write after approval): Add myself.
6754 * utils.c (init_page_info): Move declarations of `rows' and
6755 `cols' before the __GO32__-specific code. Move the closing brace
6756 outside the #ifdef __GO32__..#endif block.
6757 [__GO32__]: Use `rows' and `cols' to avoid compiler warnings.
6761 * infrun.c (handle_inferior_event): Check stop_stack_dummy if handling
6762 BPSTAT_WHAT_CHECK_SHLIBS.
6766 * MAINTAINERS: Add myself to write-after-approval.
6770 * ax-gdb.c (print_axs_value): Delete unused function.
6771 * jv-lang.c (java_lookup_type): Delete unused function.
6772 * cli/cli-dump.c (dump_filetype): Delete unused function.
6773 * remote-mips.c (remote_mips_insert_hw_breakpoint)
6774 (remote_mips_remove_hw_breakpoint): Delete unused functions.
6775 (mips_getstring): Delete unused function.
6776 (pmon_insert_breakpoint): Delete #if0ed function.
6777 (PMON_MAX_BP): Delete #if0ed MACRO.
6778 (mips_pmon_bp_info): Delete #if0ed variable.
6779 (pmon_remove_breakpoint): Delete #if0ed function.
6780 * monitor.c (monitor_write_even_block): Delete unused function.
6781 (monitor_write_memory_block): Delete #if0ed code.
6782 * dink32-rom.c (dink32_load): Delete unused function.
6783 (_initialize_dink32_rom): Delete #if0ed code.
6784 * d10v-tdep.c (d10v_daddr_p): Delete unused function.
6786 * tui/tui-command.c: Update references.
6787 * tui/tui-io.c: Update references.
6788 * tui/tui-command.h: Update copyright.
6789 (tui_dispatch_ctrl_char): Rename tuiDispatchCtrlChar.
6791 * source.c (ambiguous_line_spec): Delete never-defined function.
6792 * remote-rdi.c (arm_rdi_mourn, arm_rdi_send): Ditto.
6793 * gdbtypes.c (add_name, add_mangled_type): Ditto.
6794 * cli/cli-cmds.c (validate_comname): Ditto.
6796 * tui/tui-disasm.h: Update copyright. Include "tui.h" and
6798 (tui_set_disassem_content): Rename tuiSetDisassemContent.
6799 (tui_show_disassem): Rename tuiShowDisassem.
6800 (tui_show_disassem_and_update_source): Rename
6801 tuiVerticalDisassemScroll.
6802 (tui_vertical_disassem_scroll): Rename tuiVerticalDisassemScroll.
6803 (tui_get_begin_asm_address): Rename tuiGetBeginAsmAddress.
6804 * tui/tui.h: Update copyright.
6805 (enum tui_status): Define.
6806 * tui/tui-data.h (enum tui_scroll_direction): Define.
6807 * tui/tui-disasm.c: Update copyright. Update references.
6808 * tui/tui-winsource.c: Update copyright. Update references.
6809 * tui/tui-win.c: Update references.
6810 * tui/tui-layout.c: Update references.
6814 * mi/mi-cmd-stack.c (list_args_or_locals): Move declaration of
6815 sym2 to start of block.
6819 * MAINTAINERS: Delete mmalloc.
6820 * Makefile.in: Delete MMALLOC, MMALLOC_CFLAGS, -lmmalloc, mmalloc_h.
6821 * NEWS: Mention removal of --with-malloc.
6822 * acconfig.h: Delete USE_MMALLOC, MMCHECK_FORCE.
6823 * config.in: Regenerate.
6824 * configure: Regenerate.
6825 * configure.in: Delete MMALLOC_CFLAGS, MMALLOC, --with-mmalloc,
6826 USE_MMALLOC, MMCHECK_FORCE.
6827 * gdbinit.in: Remove mmalloc.
6828 * utils.c: Delete USE_MMALLOC, NO_MMCHECK, MMCHECK_FORCE, malloc_botch.
6829 * config/alpha/alpha-linux.mh: Delete MMALLOC, MMALLOC_CFLAGS.
6830 * config/i386/go32.mh: Likewise.
6831 * config/i386/interix.mh: Likewise.
6832 * config/powerpc/xm-linux.h: Delete MMAP_BASE_ADDRESS, MMAP_INCREMENT.
6836 * linespec.c (decode_variable, symtab_from_filename): Call
6837 error_silent with error message instead of throwing an exception
6839 * defs.h (error_silent, error_output_message): Add prototypes.
6840 (catch_exceptions_with_msg): Ditto.
6841 * utils.c (error_silent, error_output_message): New functions.
6842 * top.c (catch_exceptions_with_msg): New function.
6846 * mi/mi-cmds.h (enum print_values): Add definition.
6848 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Print the name,
6849 type and value for simple data types and just the name and type
6850 for complex ones, if required.
6852 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Print the values of the
6853 children, if required.
6857 * frv-tdep.c (frv_push_arguments, frv_saved_pc_after_call): Delete
6858 unused declarations.
6862 * top.h (mapped_symbol_files): Delete declaration.
6863 * main.c (captured_main): Delete option "m" and "mapped".
6864 * objfiles.c (mapped_symbol_files): Delete variable.
6865 * symfile.c (symbol_file_command): Delete mmap code.
6866 (symbol_file_add_with_addrs_or_offsets): Ditto.
6867 (add_symbol_file_command, reread_separate_symbols): Ditto.
6868 * objfiles.h (OBJF_MAPPED): Delete.
6869 * objfiles.c (allocate_objfile) [USE_MMALLOC]: Delete.
6870 (free_objfile) [USE_MMALLOC]: Ditto.
6871 (open_existing_mapped_file): Delete function.
6872 (open_mapped_file): Delete function.
6873 (map_to_file): Delete function.
6877 * infrun.c (step_into_function): Account for possible breakpoint
6878 adjustment when computing ``stop_func_start''.
6882 * target.c (default_region_size_ok_for_hw_watchpoint): Compare
6883 the region size against the size of a pointer, not the size of
6884 a register as given by DEPRECATED_REGISTER_SIZE.
6888 * tui/tui-regs.h: Include "tui-data.h".
6889 (tuiFirstRegElementNoInLine): Delete declaration.
6890 (tui_display_registers_from): Rename tuiDisplayRegistersFrom.
6891 (tui_last_regs_line_no): Rename tuiLastRegsLineNo.
6892 (tui_line_from_reg_element_no): Rename tuiLineFromRegElementNo.
6893 (tui_calculate_regs_column_count): Rename
6894 tuiCalculateRegsColumnCount.
6895 (tui_check_register_values): Rename tuiCheckRegisterValues.
6896 (tui_show_registers): Rename tuiShowRegisters.
6897 (tui_display_registers_from_line): Rename
6898 tuiDisplayRegistersFromLine.
6899 (tui_first_reg_element_inline): Rename tuiFirstRegElementInLine.
6900 (tui_toggle_float_regs): Rename tuiToggleFloatRegs.
6901 (tui_first_reg_element_no_inline): Rename
6902 tuiFirstRegElementNoInLine.
6903 * tui/tui-data.h: Update copyright.
6904 (enum tui_register_display_type): Rename _TuiRegisterDisplayType.
6905 * tui/tui-windata.c: Update copyright, update references.
6906 * tui/tui-regs.c: Update copyright, update references.
6907 * tui/tui-win.c: Update copyright, update references.
6908 * tui/tui-layout.c: Update copyright, update references.
6912 * tui/tui-io.c: Update copyright.
6913 (key_is_end_sequence, key_is_backspace): New functions.
6914 (key_is_command_char, key_is_start_sequence): New function.
6915 (tui_getc): Update references.
6916 * tui/tui-io.h: Update copyright.
6917 (m_tuiStartNewLine): Delete macro.
6918 (m_isBackspace, m_isDeleteChar): Delete macros.
6919 (m_isDeleteLine, m_isDeleteToEol): Delete macros.
6920 (m_isNextPage, m_isPrevPage): Delete macros.
6921 (m_isLeftArrow, m_isRightArrow): Delete macros.
6922 (m_isXdbStyleCommandChar): Delete macro.
6923 (key_is_start_sequence): Declare, replace m_isStartSequence.
6924 (key_is_end_sequence): Declare, replace m_isEndSequence.
6925 (key_is_backspace): Declare ,replace m_isBackspace.
6926 (key_is_command_char): Declare, replace m_isCommandChar.
6927 * tui/tui-command.c: Update copyright.
6928 (tuiDispatchCtrlChar): Update references.
6930 * config/djgpp/fnchange.lst: Delete tui/tuiSourceWin.c and
6933 * tui/tui-command.c: Rename tui/tuiCommand.c.
6934 * tui/tui-command.h: Rename tui/tuiCommand.h.
6935 * tui/tui-data.c: Rename tui/tuiData.c.
6936 * tui/tui-data.h: Rename tui/tuiData.h.
6937 * tui/tui-disasm.c: Rename tui/tuiDisassem.c.
6938 * tui/tui-disasm.h: Rename tui/tuiDisassem.h.
6939 * tui/tui-io.c: Rename tui/tuiIO.c.
6940 * tui/tui-io.h: Rename tui/tuiIO.h.
6941 * tui/tui-layout.c: Rename tui/tuiLayout.c.
6942 * tui/tui-layout.h: Rename tui/tuiLayout.h.
6943 * tui/tui-regs.c: Rename tui/tuiRegs.c.
6944 * tui/tui-regs.h: Rename tui/tuiRegs.h.
6945 * tui/tui-source.c: Rename tui/tuiSource.c.
6946 * tui/tui-source.h: Rename tui/tuiSource.h.
6947 * tui/tui-stack.c: Rename tui/tuiStack.c.
6948 * tui/tui-stack.h: Rename tui/tuiStack.h.
6949 * tui/tui-win.c: Rename tui/tuiWin.c.
6950 * tui/tui-win.h: Rename tui/tuiWin.h.
6951 * tui/tui-windata.c: Rename tui/tuiDataWin.c.
6952 * tui/tui-windata.h: Rename tui/tuiDataWin.h.
6953 * tui/tui-wingeneral.c: Rename tui/tuiGeneralWin.c.
6954 * tui/tui-wingeneral.h: Rename tui/tuiGeneralWin.h.
6955 * tui/tui-winsource.c: Rename tui/tuiSourceWin.c.
6956 * tui/tui-winsource.h: Rename tui/tuiSourceWin.h.
6957 * tui/tui-file.c: Update includes.
6958 * tui/tui-hooks.c: Update includes.
6959 * tui/tui-interp.c: Update includes.
6960 * tui/tui.c: Update includes.
6961 * Makefile.in: Update all tui/ dependencies.
6962 (SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS): Update file names.
6964 * Makefile.in: Update copyright. Update dependencies.
6966 * tui/tuiSourceWin.c (tui_update_breakpoint_info): Fix compile
6971 * mn10300-tdep.c (_initialize_mn10300_tdep): Call gdbarch_register
6972 instead of register_gdbarch_init.
6974 * remote-sds.c (tohex): Delete unused function. Update copyright.
6975 * xstormy16-tdep.c (xstormy16_register_virtual_size): Ditto.
6976 * v850-tdep.c (v850_register_virtual_size): Ditto.
6977 * target.c (normal_target_post_startup_inferior): Ditto.
6978 * source.c (ambiguous_line_spec): Ditto.
6979 * remote.c (adapt_remote_get_threadinfo): Ditto.
6980 * mi/mi-out.c (out_field_fmt): Ditto.
6981 * mi/mi-interp.c (mi_interp_read_one_line_hook): Ditto.
6982 (output_control_change_notification): Ditto.
6983 * m68k-tdep.c (m68k_register_byte): Ditto.
6984 (m68k_remote_breakpoint_from_pc): Ditto.
6985 * ui-out.c (init_ui_out_state): Delete unused declaration.
6986 * stabsread.c (search_value): Ditto.
6987 * mi/mi-cmd-env.c (env_cli_command): Ditto.
6988 * maint.c (print_section_table): Ditto.
6989 * infrun.c (set_follow_fork_mode_command): Ditto.
6993 * dwarf2-frame.c (execute_cfa_program): Move DWA_CFA_nop before
6994 DW_CFA_def_cfa_exporession. Add support for
6995 DW_CFA_offset_extendend_sf, DW_CFA_def_cfa_sf and
6996 DW_CFA_def_cfa_offset_sf. This should fix PR backtrace/1391.
7000 * ocd.c: Update copyright.
7001 (bdm_read_register_command): Delete unused function.
7002 (_initialize_remote_ocd): Delete commented out reference.
7003 (get_quoted_char, reset_packet): Delete #if0ed function.
7004 (output_packet, put_quoted_char): Delete #if0ed function.
7005 (stu_put_packet, stu_get_packet): Delete #if0ed function.
7006 (ocd_start_remote): Delete #if0ed code, remove #if1 wrapper.
7007 (BDM_BREAKPOINT): Delete #if0ed macro.
7008 (remote_timeout): Delete #if0ed variable.
7012 * Makefile.in (ALLDEPFILES): Remove core-sol2.c.
7013 (core-sol2.o): Remove dependency.
7014 * core-sol2.c: Remove file.
7018 * mdebugread.c (compare_blocks): Make addr_diff a LONGEST.
7019 * block.h: Make GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOOCK
7024 * remote.c: Update copyright years.
7028 * remote.c (remote_vcont_resume): Use xstrprintf instead of sprintf.
7032 * mdebugread.c: Update copyright.
7033 (parse_symbol): Replace DEPRECATED_STREQ with strcmp.
7034 (parse_type, parse_procedure): Ditto.
7035 (parse_partial_symbols, psymtab_to_symtab_1): Ditto.
7037 * cris-tdep.c (cris_store_struct_return): Put back accidently
7040 * gdbarch.sh: Update copyright year.
7041 * gdbarch.h, gdbarch.c: Re-generate.
7045 Suggested by George Anzinger.
7046 * dwarf2expr.c (execute_stack_op): Fetch the second item from the
7047 correct stack offset. Include unknown opcode numbers in the error
7052 * x86-64-tdep.c (x86_64_init_abi): No need to clear
7053 extract_struct_value_address, i386 does not set it.
7054 * sparc64-tdep.c (sparc64_init_abi): Do not set
7055 extract_struct_value_address, never called.
7056 (sparc64_extract_struct_value_address): Delete function.
7057 * m68hc11-tdep.c: Update copyright.
7058 (m68hc11_gdbarch_init): Delete redundant assignment of
7059 extract_struct_value_address.
7060 * i386-tdep.c: Update copyright.
7061 (i386_gdbarch_init): Do not set extract_struct_value_address,
7063 (i386_extract_struct_value_address): Delete function.
7064 * sparc-tdep.c (sparc32_gdbarch_init): Do not set
7065 extract_struct_value_address, never called.
7066 (sparc32_extract_struct_value_address): #if 0 function. Add
7067 comments explaining its future.
7071 * arm-tdep.c (arm_write_pc): New function.
7072 (arm_gdbarch_init): Call set_gdbarch_write_pc.
7076 * breakpoint.c (must_shift_inst_regs): Delete.
7077 (bpstat_stop_status): Delete references to DECR_PC_AFTER_HW_BREAK
7078 and SHIFT_INST_REGS.
7079 * infcmd.c (step_1, step_1_continuation): Delete references to
7081 * infrun.c (keep_going): Likewise.
7082 * target.h (DECR_PC_AFTER_HW_BREAK): Don't define.
7083 * config/i386/nm-i386.h (DECR_PC_AFTER_HW_BREAK): Likewise.
7087 * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
7088 * gdbarch.h, gdbarch.c: Re-generate.
7089 * infcmd.c (print_return_value): Delete reference to
7090 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7092 * cris-tdep.c (cris_gdbarch_init): Do not set
7093 deprecated_extract_struct_value_address.
7095 * xstormy16-tdep.c: Update copyright.
7096 (xstormy16_extract_struct_value_address): Update to current
7097 extract struct value address interface.
7098 (xstormy16_gdbarch_init): Set extract_struct_value_address.
7099 * sh64-tdep.c (sh64_extract_struct_value_address): Update to
7100 current extract struct value address interface.
7101 (sh64_gdbarch_init): Set extract_struct_value_address.
7103 * cris-tdep.c: Update copyright.
7104 (cris_extract_struct_value_address): Delete function.
7105 (struct_return_address): Delete variable.
7106 (cris_store_struct_return): Do not set struct_return_address.
7108 * mcore-tdep.c: Update copyright.
7109 (mcore_extract_struct_value_address): Delete function. Update
7111 (mcore_gdbarch_init): Update.
7112 * mn10300-tdep.c: Update copyright.
7113 (mn10300_extract_struct_value_address): Delete function.
7114 (mn10300_gdbarch_init): Update.
7115 * v850-tdep.c: Update copyright.
7116 (v850_extract_struct_value_address): Delete.
7117 (v850_gdbarch_init): Update.
7118 * ns32k-tdep.c: Update copyright.
7119 (ns32k_extract_struct_value_address): Delete.
7120 (ns32k_gdbarch_init): Update.
7121 * hppa-tdep.c (hppa_extract_struct_value_address): Delete.
7122 (hppa_gdbarch_init): Update.
7123 * vax-tdep.c: Update copyright.
7124 (vax_extract_struct_value_address): Delete.
7125 (vax_gdbarch_init): Update.
7127 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Delete.
7128 * gdbarch.h, gdbarch.c: Re-generate.
7129 * procfs.c (procfs_fetch_registers): Delete reference to
7130 DEPRECATED_NPC_REGNUM.
7131 (procfs_store_registers): Ditto.
7132 * regcache.c (generic_target_write_pc): Simplify.
7133 * lynx-nat.c: Delete #ifdef SPARC code. Not used.
7135 * core-sol2.c (fetch_core_registers): Replace
7136 DEPRECATED_NPC_REGNUM with equivalent tdep value.
7138 * hppa-tdep.c: Update copyright year.
7139 (hppa_target_write_pc): Use PCOQ_TAIL_REGNUM instead of
7141 (hppa_gdbarch_init): Do not set deprecated_npc_regnum.
7143 * mips-tdep.c (mips_write_pc): New function.
7144 (mips_gdbarch_init): Set "write_pc" to "mips_write_pc".
7145 (mips_read_pc): Use mips_regnum instead of PC_REGNUM.
7146 (mips_find_saved_regs, mips_software_single_step: Ditto.
7147 (mips_frame_saved_pc, mips_frame_saved_pc): Ditto.
7148 mips_init_extra_frame_info, mips_pop_frame): Ditto.
7152 * mips-tdep.c: Re-indent. Group functions by ABI.
7156 * gdbarch.sh (DECR_PC_AFTER_BREAK): Make zero the default.
7157 * gdbarch.c: Re-generate.
7158 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7159 DECR_PC_AFTER_BREAK to zero.
7160 * vax-tdep.c (vax_gdbarch_init): Ditto.
7161 * v850-tdep.c (v850_gdbarch_init): Ditto.
7162 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7163 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7164 * sh-tdep.c (sh_gdbarch_init): Ditto.
7165 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7166 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7167 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7168 * mips-tdep.c (mips_gdbarch_init): Ditto.
7169 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7170 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7171 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7172 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7173 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7174 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7175 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7176 * frv-tdep.c (frv_gdbarch_init): Ditto.
7177 * cris-tdep.c (cris_gdbarch_init): Ditto.
7178 * avr-tdep.c (avr_gdbarch_init): Ditto.
7179 * arm-tdep.c (arm_gdbarch_init): Ditto.
7180 * i386-nto-tdep.c (i386nto_init_abi): Add comment.
7184 * dwarf2read.c (dwarf2_non_const_array_bound_ignored_complaint):
7185 Delete, no longer used.
7186 (read_subrange_type): New function, mostly extracted from
7188 (read_array_type): Replace extracted code by call to
7189 read_subrange_type().
7190 (dwarf2_get_attr_constant_value): New function.
7191 (scan_partial_symbols): Add handling for DW_TAG_subrange_type.
7192 (add_partial_symbol): Likewise.
7193 (process_die): Likewise.
7194 (new_symbol): Likewise.
7195 (read_type_die): Likewise.
7199 * symfile.c: Update copyright year.
7200 (compare_symbols): Delete unused function.
7201 * stabsread.c: Update copyright year.
7202 (lrs_general_complaint): Delete unused function.
7203 (ref_search_value): Ditto.
7204 (get_substring): Delete declaration.
7205 * sh64-tdep.c: Update copyright year.
7206 (sh64_get_gdb_regnum): Delete unused function.
7207 * dwarf2read.c (dwarf2_unsupported_at_frame_base_complaint):
7208 Delete unused function.
7212 * defs.h (gdb_osabi): Add GDB_OSABI_OPENBSD_ELF.
7213 * osabi.c (gdb_osabi_names): Add "OpenBSD ELF".
7217 Changes from Peter Schauer.
7218 * rs6000-tdep.c: Update copyright year.
7219 (rs6000_push_dummy_call): Update the stack pointer before
7220 accessing the corresponding stack region.
7221 * rs6000-nat.c: Update copyright year.
7222 (set_host_arch): Set "info.abfd" to "exec_bfd".
7226 * blockframe.c: Update copyright year.
7227 (inside_entry_func): Don't treat a zero PC specially.
7231 * gcore.c (gcore_copy_callback): Use paddr_d to print size
7233 (gcore_create_callback): Ditto. Skip any memory segment that has
7238 Change symbols for C++ nested types to contain the fully qualified
7239 name, if possible. (At least in the DWARF-2 case.) Partial fix
7240 for PR's c++/57, c++/488, c++/539, c++/573, c++/609, c++/832,
7242 * c-exp.y (qualified_type): Handle types nested within classes.
7243 * cp-namespace.c: Update comments.
7244 (cp_set_block_scope): Delete #if 0.
7245 (cp_lookup_nested_type): Handle types nested within classes.
7246 * dwarf2read.c: (scan_partial_symbols): Call add_partial_structure
7248 (add_partial_symbol): Add the name of the enclosing namespace to
7250 (pdi_needs_namespace): New.
7251 (add_partial_namespace): Tweak comment.
7252 (add_partial_structure): New.
7253 (psymtab_to_symtab_1): Initialize processing_current_prefix
7255 (process_die): instead of here.
7256 (read_structure_scope): Try to figure out the name of the class or
7257 namespace that the structure might be defined within.
7258 (read_enumeration): Generate fully-qualified names, if possible.
7259 (read_namespace): Don't set name to NULL.
7260 (die_specification): New.
7261 (new_symbol): Generate fully-qualified names for types.
7262 (read_type_die): Determine appropriate prefix.
7263 (determine_prefix): New.
7264 (typename_concat): New.
7266 * valops.c (value_aggregate_elt): Pass NOSIDE to
7267 value_struct_elt_for_reference.
7268 (value_struct_elt_for_reference): Make static, add NOSIDE
7269 parameter, call value_maybe_namespace_elt as a last resort.
7270 (value_namespace_elt): Break out code into
7271 value_maybe_namespace_elt.
7272 (value_maybe_namespace_elt): New.
7276 * mips-tdep.c (mips_convert_register_p): Handle both raw and
7277 cooked floating-point registers.
7278 (mips_gdbarch_init): Set convert_register_p, register_to_value,
7279 and value_to_register.
7283 * gdbarch.sh (FUNCTION_START_OFFSET): Make zero the default.
7284 * gdbarch.c: Re-generate.
7285 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7286 FUNCTION_START_OFFSET.
7287 * v850-tdep.c (v850_gdbarch_init): Ditto.
7288 * sparc-tdep.c (sparc32_gdbarch_init): Ditto.
7289 * sh64-tdep.c (sh64_gdbarch_init): Ditto.
7290 * sh-tdep.c (sh_gdbarch_init): Ditto.
7291 * s390-tdep.c (s390_gdbarch_init): Ditto.
7292 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7293 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
7294 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7295 * mips-tdep.c (mips_gdbarch_init): Ditto.
7296 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7297 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7299 * m32r-tdep.c (m32r_gdbarch_init): Ditto.
7300 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7301 * i386-tdep.c (i386_gdbarch_init): Ditto.
7302 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7304 * frv-tdep.c (frv_gdbarch_init): Ditto.
7305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7306 * cris-tdep.c (cris_gdbarch_init): Ditto.
7307 * avr-tdep.c (avr_gdbarch_init): Ditto.
7308 * arm-tdep.c (arm_gdbarch_init): Ditto.
7309 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7313 * infrun.c (follow_fork_mode_ask): Remove.
7314 (follow_fork_mode_kind_names): Remove follow_fork_mode_ask.
7315 (follow_fork): Simplify and remove internal error for
7316 follow_fork_mode_ask.
7317 (_initialize_infrun): Update "set follow-fork-mode" help text.
7321 * configure.in: Update copyright year.
7322 (build_warnings): Add -Wunused-label.
7323 * configure: Re-generate.
7327 * exec.h (exec_ops): Make "extern".
7329 * mips-tdep.c (mips_pseudo_register_read): Don't return a value,
7330 the function is void.
7331 (mips_pseudo_register_write): Ditto.
7335 * stack.c (frame_info): Delete DEPRECATED_PRINT_EXTRA_FRAME_INFO
7336 call. Never defined.
7337 * sparc-tdep.h (struct frame_info): Add opaque declaration.
7338 * sparc64-tdep.h (struct gdbarch): Add opaque declaration.
7339 (struct sparc_gregset, struct regcache): Ditto.
7340 * sparc-nat.c: Update copyright. Specify "GNU/Linux".
7344 * mi/ChangeLog: Delete file. Renamed to ...
7345 * mi/ChangeLog-1999-2003: New file.
7346 * tui/ChangeLog: Delete file. Renamed to ...
7347 * tui/ChangeLog-1998-2003: New file.
7351 * sparc64nbsd-tdep.c: Include "regset.h".
7352 (sparc64nbsd_sizeof_struct_reg, sparc64nbsd_sizeof_struct_fpreg):
7354 (fetch_core_registers): Remove function.
7355 (sparc64nbsd_core_fns): Remove variable.
7356 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): New
7358 (sparc64nbsd_init_abi): Initialize TDEP->gregset,
7359 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7360 (_initialize_sparc64nbsd_tdep): Remove call to add_core_fns.
7362 * sparc-tdep.c (sparc32_extract_struct_value_address): Rename from
7363 sparc_extract_struct_value_address.
7364 (sparc32_gdbarch_init): Set extract_struct_value_address.
7365 * sparc64-tdep.c (sparc64_extract_struct_value_address): New
7367 (sparc64_init_abi): Set extract_struct_value_address. Don't set
7368 return_value_on_stack.
7370 * NEWS: Mention that %cs and %ss have been added to the AMD64
7373 * frame.c: Update copyright year.
7374 (get_prev_frame): Improve comment.
7376 * sparc64fbsd-tdep.c: Include "regset.h".
7377 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7379 (fetch_core_registers): Remove function.
7380 (sparc64fbsd_core_fns): Remove variable.
7381 (sparc64fbsd_supply_gregset, sparc64fbsd_supply_fpregset): New
7383 (sparc64fbsd_init_abi): Initialize TDEP->gregset,
7384 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_gregset.
7385 (_initialize_sparc64fbsd_tdep): Remove call to add_core_fns.
7387 * sparcnbsd-tdep.c: Include "regset.h".
7388 (fetch_core_registers): Remove function.
7389 (sparcnbsd_core_fns, sparcnbsd_elfcore_fns): Remove varaibles.
7390 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): New
7392 (sparc32nbsd_init_abi): Initialize TDEP->gregset and
7394 (_initialize_sparcnbsd_tdep): Remove calls to add_core_fns.
7396 * sparc-tdep.h (struct regset): Provide opaque declaration.
7397 (struct gdbarch_tdep): Add gregset, sizeof_gregset,
7398 fpregset and sizeof_fpregset members.
7399 * sparc-tdep.c (struct regset): Provide opaque declaration.
7400 (sparc_regset_from_core_section): New function.
7401 (sparc32_gdbarch_init): Initialize TDEP->gregset,
7402 TDEP->sizeof_gregset, TDEP->fpregset and TDEP->sizeof_fpregset.
7403 Set regset_from_core_section when appropriate.
7407 * x86-64-tdep.c (amd64_non_pod_p): New function.
7408 (amd64_classify_aggregate): Return class memory for non-POD
7409 C++ structure types.
7411 * x86-64-tdep.c (amd64_push_arguments): Add struct_return
7412 argument. Use it to reserve a register if necessary.
7413 (amd64_push_dummy_call): Pass STRUCT_RETURN in call to
7414 amd64_push_arguments.
7416 * x86-64-tdep.c (amd64_classify_aggregate): Ignore static fields.
7418 * x86-64-tdep.c (amd64_register_info): Add %cs and %ss. Adjust
7419 register numbers in comments.
7420 * x86-64-tdep.h: Update copyright year.
7421 (X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM):
7422 Adjust for addition of %cs and %ss.
7423 * amd64fbsd-nat.c: Update copyright year.
7424 (reg_offset): Add register offsets for %cs and %ss.
7425 * amd64fbsd-tdep.c: Update copyright year.
7426 (amd64fbsd_r_reg_offset): Add register offsets for %cs and %ss.
7427 (amd64fbsd_sc_reg_offset): Likewise.
7428 * x86-64-linux-nat.c: Update copyright year.
7429 (x86_64_linux_gregset64_reg_offset): Add register offsets for %cs
7431 * amd64nbsd-nat.c: Update copyright year.
7432 (amd64nbsd32_r_reg_offset): Add register offsets for %cs and %ss.
7433 * amd64nbsd-tdep.c: Update copyright year.
7434 (amd64nbsd_r_reg_offset): Add register offsets for %cs and %ss.
7435 * x86-64-linux-tdep.c: Update copyright year.
7436 (user_to_gdb_regmap): Add mapping for %cs and %ss.
7437 (x86_64_linux_sc_reg_offset): Adjust for addition of %cs and %ss.
7438 * regformats/reg-x86-64.dat: Add %cs and %ss.
7440 * blockframe.c (inside_entry_func): Reformat. Introduce new local
7441 variables to prevent long lines. Update comments to reflect
7447 * dwarf2read.c (read_namespace): Pull out name-generating code
7448 into namespace_name. Rename previous_namespace to previous_prefix
7449 and processing_current_namespace to processing_current_prefix..
7450 (namespace_name): New function.
7451 (add_partial_symbol): Substitute uses of pdi->name with
7453 * cp-support.h: Rename processing_current_namespace to
7454 processing_current_prefix.
7455 Update copyright year.
7456 * cp-namespace.c: Rename processing_current_namespace to
7457 processing_current_prefix.
7458 Update copyright year.
7462 * jv-valprint.c, ser-unix.c: Add missing copyright years.
7466 * dbxread.c (read_dbx_symtab): Ignore N_PATCH stabs instead of
7468 (process_one_symbol): Deal with N_PATCH stabs.
7472 * dwarf2read.c (read_array_type): Discard FORTRAN_HACK macro and
7474 Update copyright year.
7478 * config/pa/tm-hppa.h: Update extern declarations for
7479 hppa32_hpux_frame_saved_pc_in_sigtramp,
7480 hppa32_hpux_frame_base_before_sigtramp, and
7481 hppa32_hpux_frame_find_saved_regs_in_sigtramp.
7485 * config/pa/tm-hppah.h: Update copyright years.
7489 * mips-tdep.c (mips_n32n64_reg_struct_has_addr): Delete function.
7490 (mips_o32_reg_struct_has_addr): Delete function.
7491 (mips_gdbarch_init): Update.
7492 (mips_extract_struct_value_address): Delete function.
7496 * ia64-linux-tdep.c: Update GATE_AREA_END value to reflect
7501 * mips-tdep.c (mips_gdbarch_init): Set elf_flags to the previous
7502 architecture's elf flags (when available).
7504 * mips-tdep.c (mips_gdbarch_init): Move code determining the MIPS
7505 FPU to the start, check the MIPS FPU when looking for an old
7507 (set_mipsfpu_single_command): Update the architecture.
7508 (set_mipsfpu_double_command, set_mipsfpu_none_command): Ditto.
7510 * mips-tdep.c (MIPS_DEFAULT_MASK_ADDRESS_P): Delete macro.
7511 (mips_mask_address_p): Add "tdep" parameter.
7512 (show_mask_address, mips_addr_bits_remove): Update.
7513 (mips_dump_tdep): Update.
7514 (MIPS_DEFAULT_STACK_ARGSIZE): Delete macro.
7515 (MIPS_STACK_ARGSIZE): Delete macro.
7516 (mips_stack_argsize, mips_eabi_push_dummy_call): Update.
7517 (mips_n32n64_push_dummy_call, mips_o32_push_dummy_call): Update.
7518 (mips_o64_push_dummy_call, mips_o32_return_value): Update.
7519 (mips_dump_tdep): Update.
7520 (MIPS_SAVED_REGSIZE): Delete macro.
7521 (MIPS_DEFAULT_SAVED_REGSIZE): Delete macro.
7522 (mips_saved_regsize, mips_eabi_use_struct_convention): Update.
7523 (mips_eabi_reg_struct_has_addr, mips_find_saved_regs): Update.
7524 (mips_frame_saved_pc, mips16_heuristic_proc_desc): Update.
7525 (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call): Update.
7526 (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Update.
7527 (mips_pop_frame, return_value_location): Update.
7528 (mips_n32n64_return_value, mips_dump_tdep): Update.
7530 * mips-tdep.c (mips_gdbarch_init): Clean up code selecting the
7533 * mips-tdep.c: Update copyright.
7534 (mips_gdbarch_init): Merge two code blocks handling the register
7535 name and number layout.
7539 * tracepoint.c (validate_actionline): Fix segv at EOF
7543 * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
7544 properly for static fields.
7549 * disasm.c: Update copyright to include 2004.
7550 (do_mixed_source_and_assembly): For uiout asm list
7551 and tuple cleanups, initialize to null_cleanup instead of
7552 NULL and do so prior to loop. Only reset when we close off
7553 the tuple/list. Move check for whether to close off the
7554 asm tuple/list to after dump_insns call where it will be run
7555 on each loop iteration.
7559 * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
7560 should be a switch case and not a label.
7561 * mips-tdep.c (mips32_next_pc): Delete unused labels
7562 "greater_equal_branch" and "less_zero_branch".
7563 * jv-valprint.c (java_print_value_fields): Delete unused label
7566 * target.c (unpush_target): Only close a target that is in the
7571 * sparc-tdep.c (sparc_extract_struct_value_address): Get the
7572 address from [sp + 64] instead of %o2.
7574 * frame.c (get_prev_frame): Don't try to unwind the PC. This
7575 fixes PR backtrace/1476.
7579 * libunwind-frame.h (struct frame_id): Add opaque declaration,
7580 move to start of file.
7581 * i386-tdep.h (struct regcache): Add opaque declaration.
7582 * config/ia64/nm-linux.h (struct target_ops): Add opaque
7584 * ia64-tdep.c (ia64_find_proc_info_x): Do not use __FUNCTION__.
7585 (ia64_gdbarch_init): Use "GNU/Linux" in comment.
7586 * win32-nat.c (fake_create_process): Use ISO C style definition.
7587 * stabsread.c (define_symbol): Delete #ifndef
7588 DEPRECATED_USE_REGISTER_NOT_ARG wrapper around
7589 stabs_argument_has_addr call, macro never defined.
7593 * op50-rom.c: Delete.
7594 * w89k-rom.c: Delete.
7595 * Makefile.in: Remove references.
7599 * x86-64-tdep.c: Update copyright year.
7600 (struct amd64_register_info): Rename from x86_64_register_info.
7601 (amd64_register_info): Rename from x86_64_register_info.
7602 (AMD64_NUM_REGS): Rename from X86_64_NUM_REGS.
7603 (amd64_register_name): Rename from x86_64_register_name.
7604 (amd64_register_type): Rename from x86_64_register_type.
7605 (amd64_dwarf_regmap): Rename from x86_64_dwarf_regmap.
7606 (amd64_dwarf_regmap_len): Rename from x86_64_dwarf_regmap_len.
7607 (amd64_dwarf_reg_to_regnum): Rename from
7608 x86_64_dwarf_reg_to_regnum.
7609 (amd64_convert_register_p): Rename from x86_64_convert_register_p.
7610 (amd64_push_dummy_call): Rename from x86_64_push_dummy_call.
7611 (AMD64_NUM_SAVED_REGS): Rename from X86_64_NUM_SAVED_REGS.
7612 (struct amd64_frame_cache): Renamed from x86_64_frame_cache.
7613 (amd64_alloc_frame_cache): Renamed from x86_64_alloc_frame_cache.
7614 (amd64_analyze_prologue): Rename from x86_64_analyze_prologue.
7615 (amd64_skip_prologue): Rename from x86_64_skip_prologue.
7616 (amd64_frame_cache): Rename from x86_64_frame_cache.
7617 (amd64_frame_this_id): Rename from x86_64_frame_this_id.
7618 (amd64_frame_prev_register): Rename from
7619 x86_64_frame_prev_register.
7620 (amd64_frame_unwind): Rename from x86_64_frame_unwind.
7621 (amd64_frame_sniffer): Rename from x86_64_frame_sniffer.
7622 (amd64_sigtramp_frame_cache): Rename from
7623 x86_64_sigtramp_frame_cache.
7624 (amd64_sigtramp_frame_prev_register): Rename from
7625 x86_64_sigtramp_frame_prev_register.
7626 (amd64_sigtramp_frame_unwind): Rename from
7627 x86_64_sigtramp_frame_unwind.
7628 (amd64_sigtramp_frame_sniffer): Rename from
7629 x86_64_sigtramp_frame_sniffer.
7630 (amd64_frame_base_address): Rename from x86_64_frame_base_address.
7631 (amd64_frame_base): Rename from x86_64_frame_base.
7632 (amd64_unwind_dummy_id): Rename from x86_64_unwind_dummy_id.
7633 (amd64_frame_align): Rename from x86_64_frame_align.
7634 (amd64_supply_fpregset): Rename from x86_64_supply_fpregset.
7635 (amd64_regset_from_core_section): Rename from
7636 x86_64_regset_from_core_section.
7637 (x86_64_init_abi): Update comments.
7641 * MAINTAINERS (write after approval): Add myself.
7645 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7650 * sparc64-tdep.c (sparc64_store_floating_fields): Update comment
7651 such that it mentions a specific version of GCC that exhibits this
7656 * sparc64-tdep.c (sparc64_store_floating_fields): If TYPE is a
7657 structure that has a single `float' member, store it in %f1 in
7660 * sparc-sol2-nat.c: Add missing '\'.
7662 * sparc-tdep.c (sparc32_return_value): New function.
7663 (sparc32_use_struct_convention, sparc32_return_value_on_stack):
7665 (sparc32_gdbarch_init): Set return_value, don't set
7666 extract_return_value, store_return_value, use_struct_convention
7667 and return_value_on_stack.
7669 * sparc-sol2-nat.c: Add missing ')'.
7673 * infrun.c (handle_step_into_function): New function.
7674 (handle_inferior_event): Extract out some code into the new
7679 * infrun.c (handle_inferior_event): Move the declaration of
7680 real_stop_pc inside the if blocks where it is used.
7684 * sparc64-tdep.c (sparc64_16_byte_align_p)
7685 (sparc64_store_floating_fields, sparc64_store_floating_fields):
7686 Use check_typedef to get subtypes of structures and unions.
7687 (sparc64_store_return_value): Fix calculation of the appropriate
7688 offset into VALBUF when storing a structure or union.
7689 (sparc64_return_value): New function.
7690 (sparc64_use_struct_convention): Remove function.
7691 (sparc64_init_abi): Set return_value, don't set
7692 extract_return_value, store_return_value and
7693 use_struct_convention.
7697 * config/djgpp/fnchange.lst: Add lines for COPYING.LIBGLOSS,
7698 bfd/doc/ChangeLog-9103, bfd/elf32-m68hc1x.c,
7699 gdb/config/alpha/xm-alphaosf.h,
7700 gdb/config/powerpc/tm-ppcle-eabi.h,
7701 gdb/config/rs6000/tm-rs6000-aix4.h, gdb/gdbtk/ChangeLog-2001,
7702 gdb/gdbtk/ChangeLog-2002, gdb/gdbtk/ChangeLog-2003,
7703 gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in,
7704 gdb/gdbtk/plugins/rhabout/rhabout.tcl.in, gdb/i386-linux-nat.c,
7705 gdb/ia64-aix-nat.c, gdb/ia64-aix-tdep.c, gdb/ia64-linux-nat.c,
7706 gdb/ia64-linux-nat.c, gdb/ppc-linux-tdep.c, gdb/ppc-linux-nat.c,
7707 gdb/sparc64nbsd-nat.c, gdb/sparc64nbsd-tdep.c,
7708 gdb/sparc64-linux-nat.c, gdb/sparc64-linux-tdep.c,
7709 gdb/sparc64-nat.c, gdb/sparc64-tdep.c, gdb/sparc64-sol2-tdep.c,
7710 gdb/sparc-sol2-nat.c, gdb/sparc-sol2-tdep.c,
7711 gdb/testsuite/gdb.gdbtk/, gdb/testsuite/gdb.mi/mi-var-child.exp,
7712 nclude/ChangeLog-9103, include/coff/ChangeLog-9103,
7713 include/elf/ChangeLog-9103, include/opcode/ChangeLog-9103,
7714 opcodes/ChangeLog-0001, opcodes/ChangeLog-0203,
7715 opcodes/openrisc-dis.c, opcodes/openrisc-desc.h,
7716 sim/frv/profile-fr550.c, sim/frv/profile-fr550.h,
7717 sim/sh64/sem-compact-switch.c, sim/sh64/sem-media-switch.c,
7718 sim/testsuite/sim/sh64/compact/ldsl-mach.cgs,
7719 sim/testsuite/sim/sh64/compact/ldsl-macl.cgs,
7720 sim/testsuite/sim/sh64/compact/stsl-mach.cgs, and
7721 sim/testsuite/sim/sh64/compact/stsl-macl.cgs.
7722 Remove lines for .cvsignore files.
7726 * infrun.c: Back out the previous change.
7730 * NEWS: Mention revised SPARC target. Add sparc-*-lynxos* and
7731 sparc-*-sunos4* to the list of REMOVED configurations.
7733 * configure.tgt: Add back sparc-*-vxworks*.
7734 * remote-vxsparc.c: Remove all includes except for "defs.h",
7735 "regcache.h", "vx-share/ptrace.h" and "vx-share/regPacket.h".
7736 Include "sparc-tdep.h".
7737 (SPARC_R_G1): New define.
7738 (vxsparc_gregset): New variable.
7739 (ext_format_sparc): Remove extern declaration.
7740 (vx_read_register): Rewrite to use sparc32_supply_gregset and
7741 sparc32_supply_fpregset.
7742 (vx_write_register): Rewrite to use sparc32_collect_gregset,
7743 sparc_collect_rwindow and sparc32_collect_fpregset.
7744 * config/sparc/tm-vxworks.h: New file, based on recently removed
7746 * config/sparc/vxworks.mt: New file, based on recently removed
7751 * infrun.c (handle_step_into_function): New function.
7752 (handle_inferior_event): Extract out some code into the new
7757 * Makefile.in (ALLDEPFILES): Remove sparc-linux-nat.c and
7758 sparcl-tdep.c. Add sparc-linux-tdep.c, sparc-sol2-nat.c,
7759 sparc-sol2-tdep.c, sparc-sol2-nat.c, sparc-sol2-tdep.c,
7760 sparc64-linux-nat.c, sparc64-linux-tdep.c, sparc64-nat.c,
7761 sparc64-sol2-tdep.c, sparc64-tdep.c, sparc64fbsd-nat.c,
7762 sparc64fbsd-tdep.c, sparcnbsd-nat.c, sparcnbsd-tdep.c.
7763 (sparc_nat_h): New variable.
7764 (sparcbsd_nat_h, sparcnbsd_tdep_h): Remove variables.
7765 (tm-sun4os4.h): Remove dependency.
7766 (sparcbsd-nat.o, sparc-linux-nat.o): Remove dependencies.
7767 (sparc64fbsd-nat.o, sparc64fbsd-tdep.o, sparc64nbsd-nat.o,
7768 sparc64-tdep.o, sparc-nat.o, sparcnbsd-nat.o, sparcnbsd-tdep.o,
7769 sparc-tdep.o): Update dependencies.
7770 (sparc-linux-tdep.o, sparc-sol2-nat.o, sparc-sol2-tdep.o,
7771 sparc64-linux-nat.o, sparc64-linux-tdep.o, sparc64-nat.o,
7772 sparc64-sol2-tdep.o, sparc64-tdep.o, sparc64nbsd-tdep.o): New
7774 * configure.host: Remove existing sparc-*-lynxos*,
7775 sparc-*-solaris*, sparc-*-sunos4*, sparc-*-sunos5*, sparc-*-*,
7776 ultrasparc-*-freebsd, sparcv9-*-freebsd, sparc64-*-linux*,
7777 sparcv9-*-* and sparc64-*-* triplets. Add new sparc64-*-linux*,
7778 sparc-*-solaris2*, sparcv9-*-solaris2* and sparc64-*-solaris2*
7780 * configure.tgt: Remove exitsing sparc-*-aout*, sparc-*-coff*,
7781 sparc-*-elf*, sparc*-lynxos*, sparc-*-solars2*, sparc-*-sunos4*,
7782 sparc-*-sunos5*, sparc-*-vxworks*, sparc64-*linux*, sparc64-*-*,
7783 sparcv9-*-* and commented out sparc64-*-solars2* triplets. Add
7784 new sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*,
7785 sparc64-*-linux, sparc-*-solaris2*, sparcv9-*-solaris*,
7786 sparc64-*-solaris2* and sparc64-*-* triplets.
7787 * sparc64-tdep.c: Update copyright year. Include "inferior.h",
7788 "symtab.h" and "objfiles.h".
7789 (BIAS): Remove define.
7790 (X_OP, X_RD, X_A, X_COND, X_OP2, X_IMM22, X_OP3, X_I, X_DISP22)
7791 (X_DISP19): Remove macros.
7792 (sparc_fetch_instruction): Remove function.
7793 (struct gdbarch_tdep): Remove definition.
7794 (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use ARRAY_SIZE.
7795 (sparc_breakpoint_from_pc): Remove function.
7796 (struct sparc64_frame_cache): Remove definition.
7797 (sparc64_alloc_frame_cache, sparc64_analyze_prologue,
7798 sparc64_unwind_pc): Remove functions.
7799 (sparc64_skip_prologue): Use `struct sparc_frame_cache' instead of
7800 `struct sparc64_frame_cache. Call sparc_analyze_prologue instead
7801 of sparc64_analyze_prologue. Mark constant as ULL instead of UL.
7802 (sparc64_frame_cache): Change return type to `struct
7803 sparc_frame_cache *'. Simply call sparc_frame_cache.
7804 (sparc64_frame_this_id, sparc64_frame_prev_register,
7805 sparc64_frame_base_address): Use `struct sparc_frame_cache'
7806 instead of `struct sparc64_frame_cache.
7807 (sparc_unwind_dummy_id, sparc_extract_struct_value_address,
7808 sparc_analyze_control_transfer, sparc_software_single_step,
7809 sparc64_gdbarch_init, sparc_supply_rwindow, sparc_fill_rwindow,
7810 _initialize_sparc64_tdep): Remove functions.
7811 (TSTATE_CWP, TSTATE_ICC, TSTATE_XCC): New macros.
7812 (PSR_S, PSR_ICC, PSR_VERS, PSR_IMPL, PSR_V8PLUS, PSR_XCC): New
7814 (sparc64_supply_gregset, sparc64_collect_gregset,
7815 sparc64_supply_fpregset, sparc64_collect_fpregset): New functions.
7816 (sparc64_init_abi): New function.
7817 * sparc64-tdep.h: Update copyright year. Fix typo in multiple
7818 inclusion guard. Include "sparc-tdep.h".
7820 (r_tstate_offset, r_fprs_offset): New defines.
7821 (enum sparc_regnum): Remove defenition.
7822 (enum sparc64_regnum): Reformat.
7823 (sparc_supply_rwindow, sparc_fill_rwindow): Remove prototypes.
7824 (sparc64_init_abi, sparc64_supply_gregset,
7825 sparc64_collect_gregset, sparc64_supply_fpregset,
7826 sparc64_collect_fpregset): New prototypes.
7827 (sparc64_sol2_gregset, sparc64nbsd_gregset, sparc64fbsd_gregset):
7828 Add extern declarations.
7829 (sparc64_sol2_init_abi): New prototype.
7830 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7831 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7833 * sparc64fbsd-nat.c: Include "sparc-nat.h", don't include
7835 (sparc64fbsd_reg_supplies_p, sparc64fbsd_fpreg_supplies_p): Remove
7837 (_initialize_sparc64fbsd_nat): Remove initialization of
7838 sparcbsd_supply_reg, sparcbsd_fill_reg, sparcbsd_supply_fpreg,
7839 sparcbsd_fill_fpreg, sparcbsd_reg_supplies_p,
7840 sparcbsd_fpreg_supplies_p. Initialize sparc_gregset.
7841 * sparc64fbsd-tdep.c: Update copyright year. Include "frame.h",
7842 "frame-unwind.h", "trad-frame.h" and "gdb_assert.h".
7843 (sparc64fbsd_r_global_offset, sparc64fbsd_r_out_offset)
7844 (sparc64fbsd_r_fprs_offset, sparc64fbsd_r_tnpc_offset)
7845 (sparc64fbsd_r_tpc_offset, sparc64fbsd_r_tstate_offset)
7846 (sparc64fbsd_r_y_offset): Remove variables.
7847 (sparc64fbsd_sizeof_struct_reg, sparc64fbsd_sizeof_struct_fpreg):
7848 Make static and const.
7849 (sparc64fbsd_supply_reg, sparc64fbsd_fill_reg)
7850 (sparc64fbsd_supply_fpreg, sparc64fbsd_fill_fpreg): Remove
7852 (sparc64fbsd_gregset): New variable.
7853 (fetch_core_registers): Replace calls to sparc64fbsd_supply_reg
7854 and sparc64fbsd_supply_fpreg with calls to sparc64_supply_gregset
7855 and sparc64_supply_fpregset.
7856 (sparc64fbsd_pc_in_sigtramp, sparc64fbsd_sigtramp_frame_cache)
7857 (sparc64fbsd_sigtramp_frame_this_id)
7858 (sparc64fbsd_sigtramp_frame_prev_register): New functions.
7859 (sparc64fbsd_sigtramp_frame_unwind): New variable.
7860 (sparc64fbsd_sigtramp_frame_sniffer): New function.
7861 (sparc64fbsd_init_abi): Set pc_in_sigtramp, append
7862 sparc64fbsd_sigtramp_frame_sniffer. Call sparc64_init_abi.
7863 * sparcnbsd-tdep.c: Update copyright year. Include
7864 "floatformat.h", "frame.h", "frame-unwind.h", "symtab.h",
7865 "trad-frame.h" and "gdb_assert.h", don't include "target.h",
7866 "value.h" and "sparcnbsd-tdep.h".
7867 (REG32_OFFSET_PSR, REG32_OFFSET_PC, REG32_OFFSET_NPC)
7868 (REG32_OFFSET_Y, REG32_OFFSET_GLOBAL, REG32_OFFSET_OUT)
7869 (REG64_OFFSET_TSTATE, REG64_OFFSET_PC, REG64_OFFSET_NPC)
7870 (REG64_OFFSET_Y, REG64_OFFSET_GLOBAL, REG64_OFFSET_OUT): Remove
7872 (sparcnbsd_gregset): New variable.
7873 (sparcnbsd_supply_reg32, sparcnbsd_supply_reg64)
7874 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64)
7875 (sparcnbsd_supply_fpreg32, sparcnbsd_supply_fpreg64)
7876 (sparcnbsd_fill_reg32, sparcnbsd_fill_reg64): Remove functions.
7877 (sparc32nbsd_sigtramp_start, sparc32nbsd_sigtramp_end): New
7879 (sparc32nbsd_pc_in_sigtramp, sparc32nbsd_sigcontext_frame_cache)
7880 (sparc32nbsd_sigcontext_frame_this_id)
7881 (sparc32nbsd_sigcontext_frame_prev_register): New functions.
7882 (sparc32nbsd_sigcontext_frame_unwind): New variable.
7883 (sparc32nbsd_sigtramp_frame_sniffer): New function.
7884 (sparcnbsd_get_longjmp_target_32,
7885 sparcnbsd_get_longjmp_target_64): Remove functions.
7886 (sparcnbsd_aout_in_solib_call_trampoline): Rewrite.
7887 (sparcnbsd_init_abi_common, sparcnbsd_init_aout,
7888 sparcnbsd_init_elf): Remove.
7889 (sparcnbsd_init_abi, sparcnbsd_aout_init_abi)
7890 (sparcnbsd_elf_init_abi): New functions.
7891 (_initialize_sparcnbsd_tdep): New prototype.
7892 (_initialize_sparnbsd_tdep): Update.
7893 * config/sparc/fbsd.mh (NATDEPFILES): Remove sparcbsd-nat.o and
7894 corelow.o. Add sparc64-nat.o and sparc-nat.o.
7895 * config/sparc/fbsd.mt (TDEPFILES): Add sparc-tdep.o and corelow.o.
7896 * config/sparc/linux.mh: Update comment.
7897 (XM_FILE, HOST_IPC): Remove variables.
7898 (NATDEPFILES): Add sparc-sol2-nat.o and core-regset.o. Remove
7900 * config/sparc/linux.mt: Update comment.
7901 (TDEPFILES): Add sparc-sol2-tdep.o and sparc-linux-tdep.o.
7902 * config/sparc/nbsd.mt: Reformat.
7903 * config/sparc/nbsd64.mh: Update comment.
7904 (NATDEPFILES): Add sparc-nat.o.
7905 * config/sparc/nbsd64.mt: Update comment.
7906 (TDEPFILES): Add sparc64-tdep.o and sparc64nbsd-tdep.o.
7907 (TM_FILE): Set to tm-nbsd.h.
7908 * config/sparc/nbsdelf.mh: Update comment.
7909 (NATDEPFILES): Add sparc-nat.o.
7911 * config/sparc/nbsdaout.mh: Update comment.
7912 (NATDEPFILES): Add sparc-nat.o
7914 * config/sparc/nm-linux.h: Update copyright year. Don't include
7915 "config/nm-svr4.h" and "solib.h". Add protection against multiple
7917 (KERNEL_U_SIZE): Remove define.
7918 (kernel_u_size): Remove prototype.
7919 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define.
7920 * config/sparc/nm-nbsd.h: Update copyright. Don't include
7922 (CHILD_PREPARE_TO_STORE): Remove define.
7923 * config/sparc/nm-nbsdaout.h: Tweak some comments.
7924 * sparc-nat.c, sparc-tdep.c, sparc-tdep.h, sparc64nbsd-nat.c,
7925 sparcnbsd-nat.c: Rewrite files.
7926 * config/sparc/tm-linux.h, config/sparc/tm-nbsd.h: Rewrite files.
7927 * sparc-linux-nat.c, sparcbsd-nat.c, sparcbsd-nat.h,
7928 sparcnbsd-tdep.h: Remove files.
7929 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4os4.h,
7930 config/sparc/nm-sun4sol2.h, config/sparc/sp64.mt,
7931 config/sparc/sp64linux.mt, config/sparc/sp64sol2.mt,
7932 config/sparc/sparc-em.mt, config/sparc/sparclynx.mh,
7933 config/sparc/sparclynx.mt, config/sparc/sun4os4.mh,
7934 config/sparc/sun4os4.mt, config/sparc/sun4sol2.mh,
7935 config/sparc/sun4sol2.mt, config/sparc/tm-sp64.h,
7936 config/sparc/tm-sp64linux.h, config/sparc/tm-sparc.h,
7937 config/sparc/tm-sparclynx.h, config/sparc/tm-spc-em.h,
7938 config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h,
7939 config/sparc/tm-vxsparc.h, config/sparc/vxsparc.mt,
7940 config/sparc/xm-linux.h, config/sparc/xm-sun4sol2.h: Remove files.
7941 * sparc-linux-tdep.c, sparc-nat.h, sparc-sol2-nat.c,
7942 sparc-sol2-tdep.c, sparc64-linux-nat.c, sparc64-linux-t dep.c,
7943 sparc64-nat.c, sparc64-sol2-tdep.c, sparc64nbsd-tdep.c: New files.
7944 * config/sparc/linux64.mh, config/sparc/linux64.mt,
7945 config/sparc/nm-sol2.h, config/sparc/sol2-64.mt,
7946 config/sparc/sol2.mh, config/sparc/sol2.mt, config/sparc/sparc.mt,
7947 config/sparc/sparc64.mt, config/sparc/tm-sol2.h: New files.
7951 From 2003-12-18 Kazuhiro Inaoka:
7952 * configure.host: Add m32r-linux target.
7956 * top.c (print_gdb_version): Update year to 2004.
7960 * MAINTAINERS: Add myself to the write-after-approval category.
7965 * configure.tgt: Add uClinux target.
7969 * utils.c (do_my_cleanups): Make static, add forward declaration.
7970 * defs.h (do_my_cleanups): Delete declaration.
7974 * config/djgpp/fnchange.lst: Add lines for gdb/ChangeLog-2003 and
7979 * configure.in: Check for <machine/reg.h>. Check for `struct reg'
7981 * configure, config.in: Regenerate.
7983 For older changes see ChangeLog-2003, mi/ChangeLog-1999-2003, and
7984 tui/ChangeLog-1998-2003.
7990 version-control: never