aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
2004-08-022004-08-02 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+3
* dummy-frame.c: Include "gdb_string.h". (generic_save_call_dummy_addr, generic_push_dummy_frame) (generic_save_dummy_frame_tos): Delete. (dummy_frame_push): New function, replaces above. * dummy-frame.h: Update copyright. (dummy_frame_push): Declare. * frame.h (generic_save_dummy_frame_tos, generic_push_dummy_frame) (generic_save_call_dummy_addr): Delete declarations. * infcall.c: Include "dummy-frame.h". (call_function_by_hand): Add locals caller_regcache, caller_regcache_cleanup and dummy_id. Replace push_dummy_frame with call to frame_save_as_regcache plus cleanup. Delete calls to generic_save_call_dummy_addr and generic_save_dummy_frame_tos. Move clear_proceed_status to just before the resume, add call to dummy_frame_push (discard cleanup). * Makefile.in (infcall.o): Add $(dummy_frame_h). (dummy-frame.o): Add $(gdb_string_h).
2004-07-31* mips-nat.c: Remove file.Mark Kettenis1-2/+0
* Makefile.in (ALLDEPFILES): Remove mips-nat.c (mips-nat.o): Remove dependency.
2004-07-302004-07-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+84
Fix PR i18n/761. * Makefile.in (.SUFFIXES): Add po .gmo, and .pox. (.PHONY): Add all-po install-po, uninstall-po, clean-po, $(PACKAGE).pot and update-po. (all-po, .po.gmo, .po.pox, install-po, $(PACKAGE).pot) (po/$(PACKAGE).pot, clean-po, uninstall-po, install-po) (update-po): New rules. (localedir): Define using autoconf. (diststuff): Add $(PACKAGE).pot and $(CATALOGS) (GDB_CFLAGS): Define LOCALEDIR using $(localedir). (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): Define. * configure.in: Generate CATALOGS and LINGUAS from contents of src/gdb/po/ directory. Set @localedir@ in Makefile.in. * configure: Re-generate. * po/gdbtext: New file
2004-07-292004-07-29 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+0
* Makefile.in (CONFIG_CLEAN): Delete duplicate definition.
2004-07-23* sparc64nbsd-nat.c: Include "regcache.h", <sys/types.h>,Mark Kettenis1-2/+2
<machine/pcb.h> and "bsd-kvm.h". (sparc64nbsd_supply_pcb): New function. (_initialize_sparc64nbsd_nat): Renamed from _initialize_sparcnbsd_nat. Enable libkvm interface. * Makefile.in (sparc64nbsd-nat.o): Update dependencies. * config/sparc/nbsd64.mh (NATDEPFILES): Add bsd-kvm.o (LOADLIBES): New variable.
2004-07-17* vaxbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> andMark Kettenis1-1/+2
"bsd-kvm.h". (vaxbsd_supply_pcb): New function. (_initialize_vaxbsd_nat): New prototype and function. * config/vax/nbsdaout.mh (NATDEPFILES): Add bsd-kvm.o, solib.o and solib-sunos.o. (LOADLIBES): New variable. * config/vax/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable. * config/vax/obsd.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable. * Makefile.in (vaxbsd-nat.o): Update dependencies.
2004-07-03* m68kbsd-nat.c: Include "gdbcore.h", <sys/types.h>,Mark Kettenis1-2/+2
<machine/pcb.h> and "bsd-kvm.h". (PCB_REGS_FP, PCB_REGS_SP): Define if not already defined. (m68kbsd_supply_pcb): New function. (_initialize_m68kbsd_nat): New prototype and function. * Makefile.in (m68kbsd-nat.o): Update dependencies. * config/m68k/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable. * config/m68k/obsd.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable.
2004-07-03* bsd-kvm.c: Include "cli/cli-cmds.h", "command.h", "value.h" andMark Kettenis1-2/+3
<sys/proc.h>. (bsd_kvm_cmdlist): New variable. (bsd_kvm_cmd, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): New functions. (bsd_kvm_add_target): Register "kvm" command prefix, "kvm pcb" command and "kvm proc" command. * Makefile.in (bsd-kvm.o): Update dependencies.
2004-06-29* Makefile.in (gdb_callback_h): Renamed from callback_h to theJim Blandy1-1/+1
name actually used in the dependency lists.
2004-06-27* i386nbsd-nat.c: New file.Mark Kettenis1-0/+3
* Makefile.in (ALLDEPFILES): Add i386nbsd-nat.c, i386nbsd-tdep.c, i386obsd-nat.c and i386obsd-tdep.c. (i386nbsd-nat.o): New dependency. * config/i386/obsd.mh (NATDEPFILES): Add i386nbsd-nat.o and bsd-kvm.o. (LOADLIBES): New variable. * config/i386/nbsdelf.mh (NATDEPFILES): Add i386nbsd-nat.o and bsd-kvm.o. (LOADLIBES): New variable.
2004-06-26* amd64fbsd-nat.c: Don't include <sys/procfs.h> and "gregset.h".Mark Kettenis1-1/+1
(gregset_t, fpregset_t): Remove typedefs. (REG_OFFSET): Rename argument. (amd64bsd_r_reg_offset): Rename from reg_offset. (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Remove functions. (_initialize_amd64fbsd_nat): Use amd64fbsd64_r_reg_offset instead of reg_offset. * Makefile.in (amd64fbsd-nat.o): Update dependencies.
2004-06-26Add OpenBSD/hppa support.Mark Kettenis1-0/+6
* NEWS (New native configurations): Mention OpenBSD/hppa. * hppabsd-nat.c, hppabsd-tdep.c, config/pa/obsd.mh, config/pa/obsd.mt, config/pa/nm-obsd.h, config/pa/tm-bsd.h: New files. * Makefile.in (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c. (hppabsd-nat.o, hppabsd-tdep.c): New dependencies. * configure.host: Add hppa*-*-openbsd*. * configure.tgt: Add hppa*-*-openbsd*.
2004-06-202004-06-20 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* gdbarch.sh (RETURN_VALUE): Default to legacy_return_value. * gdbarch.h, gdbarch.c: Re-generate. * Makefile.in (arch-utils.o): Update dependencies. * values.c (using_struct_return): Move code calling USE_STRUCT_CONVENTION to legacy_return_value, simplify. * stack.c (return_command): Move code calling STORE_RETURN_VALUE to legacy_return_value, simplify. * infcmd.c (print_return_value): Move code calling DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_RETURN_VALUE to legacy_return_value, simplify. * infcall.c (call_function_by_hand): Move code calling EXTRACT_RETURN_VALUE to legacy_return_value, simplify. * arch-utils.c: Update copyright. Include "gdbcore.h". (legacy_return_value): New function. * arch-utils.h: Update copyright. (legacy_return_value): Declare.
2004-06-142004-06-14 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+1
* Makefile.in (hppa-hpux-tdep.o): Update dependency. * hppa-hpux-tdep.c (hp_cxx_exception_support_initialized): Make static. (hppa_hpux_inferior_created): New function. (hppa_hpux_init_abi): Register observer. * symfile.c (hp_cxx_exception_support_initialized) (RESET_HP_UX_GLOBALS): Remove HPUXHPPA specific hacks. (symbol_file_add_main_1, symbol_file_clear): Likewise.
2004-06-08* Makefile.in (check//%): New.Alexandre Oliva1-0/+28
2004-06-072004-06-06 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+1
* hppa-tdep.h (struct value): Forward declaration. (gdbarch_tdep): Define tdep find_global_pointer method. * hppa-tdep.c (hppa32_push_dummy_call): Find the global pointer associated with the function we are trying to call, and write it to the gp register. (hppa32_convert_from_funct_ptr_addr): New function. (hppa_find_global_pointer): New function. (hppa_gdbarch_init): Set default find_global_pointer method; set convert_from_func_ptr_addr method. * hppa-linux-tdep.c (hppa_linux_find_global_pointer): New function. (hppa_linux_init_abi): Set find_global_pointer method. * Makefile.in (hppa-linux-tdep.o): Add value.h dependency.
2004-06-072004-06-06 Randolph Chung <tausq@debian.org>Randolph Chung1-6/+6
* gdbarch.sh (PUSH_DUMMY_CALL): Change CORE_ADDR func_addr argument to struct value *function. * gdbarch.c: Regenerate. * gdbarch.h: Likewise. * infcall.c (call_function_by_hand): Pass entire function value to push_dummy_call. * Makefile.in (alpha-tdep.o, frv-tdep.o, ia64-tdep.o, mips-tdep.o) (ppc-sysv-tdep.o, rs6000-tdep.o): Update dependencies. * alpha-tdep.c (alpha_push_dummy_call): Update call signature. * amd64-tdep.c (amd64_push_dummy_call): Likewise. * arm-tdep.c (arm_push_dummy_call): Likewise. * avr-tdep.c (avr_push_dummy_call): Likewise. * cris-tdep.c (cris_push_dummy_call): Likewise. * d10v-tdep.c (d10v_push_dummy_call): Likewise. * frv-tdep.c (frv_push_dummy_call): Likewise. * h8300-tdep.c (h8300_push_dummy_call): Likewise. * hppa-tdep.c (hppa32_push_dummy_call) (hppa64_push_dummy_call): Likewise. * i386-tdep.c (i386_push_dummy_call): Likewise. * ia64-tdep.c (ia64_push_dummy_call): Likewise. * m32r-tdep.c (m32r_push_dummy_call): Likewise. * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise. * m68k-tdep.c (m68k_push_dummy_call): Likewise. * m88k-tdep.c (m88k_push_dummy_call): Likewise. * mips-tdep.c (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call) (mips_o32_push_dummy_call, mips_o64_push_dummy_call): Likewise. * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call) (ppc64_sysv_abi_push_dummy_call): Likewise. * ppc-tdep.h (ppc_sysv_abi_push_dummy_call) (ppc64_sysv_abi_push_dummy_call): Likewise. * rs6000-tdep.c (rs6000_push_dummy_call): Likewise. * s390-tdep.c (s390_push_dummy_call): Likewise. * sh-tdep.c (sh_push_dummy_call_fpu) (sh_push_dummy_call_nofpu): Likewise. * sparc-tdep.c (sparc32_push_dummy_call): Likewise. * sparc64-tdep.c (sparc64_push_dummy_call): Likewise. * vax-tdep.c (vax_push_dummy_call): Likewise.
2004-05-31* i386bsd-nat.c: Don't include "gregset.h".Mark Kettenis1-1/+1
(supply_gregset, fill_gregset): Make static. (supply_fpregset, fill_fpregset): Remove. * Makefile.in (i386bsd-nat.o): Update dependencies.
2004-05-30* fbsd-proc.c: Include "regcache.h", "regset.h" andMark Kettenis1-1/+2
"gdb_assert.h". Con't include "gregset.h". (fbsd_make_corefile_notes): Use regset-based core file support instead off fill_gregset and fill_fpregset. * Makefile.in (fbsd-proc.o): Update dependencies.
2004-05-262004-05-25 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+3
* hppa-hpux-tdep.c (offsetof): Define. (hppa_hpux_pc_in_sigtramp, hppa32_hpux_frame_saved_pc_in_sigtramp) (hppa32_hpux_frame_base_before_sigtramp) (hppa32_hpux_frame_find_saved_regs_in_sigtramp) (hppa64_hpux_frame_saved_pc_in_sigtramp) (hppa64_hpux_frame_base_before_sigtramp) (hppa64_hpux_frame_find_saved_regs_in_sigtramp): Remove unused functions. (struct hppa_hpux_sigtramp_unwind_cache, hppa_hpux_tramp_reg) (hppa_hpux_sigtramp_frame_unwind_cache) (hppa_hpux_sigtramp_frame_this_id) (hppa_hpux_sigtramp_frame_prev_register) (hppa_hpux_sigtramp_frame_unwind) (hppa_hpux_sigtramp_unwind_sniffer): New signal trampoline unwinder. (hppa_hpux_init_abi): Register sigtramp unwinder. * Makefile.in (hppa-hpux-tdep.o): Update dependencies.
2004-05-252004-05-25 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-3/+1
* symfile.h (symbol_file_add_from_memory): Delete declaration. * symfile-mem.h: Delete file. * symfile-mem.c: Do not include "symfile-mem.h". (symbol_file_add_from_memory): Make static. Use "struct bfd" and "struct bfd_section". When an error do not bother returning NULL. (add_symbol_file_from_memory_command): Use "struct bfd" and "struct bfd_section". * Makefile.in (symfile_mem_h): Delete. (symfile-mem.o): Update dependencies.
2004-05-252004-05-25 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-2/+3
* inftarg.c: Include "observer.h". (child_attach, child_create_inferior): Notify inferior_created. * corelow.c: Include "observer.h". (core_open): Notify inferior_created. * Makefile.in (inftarg.o, corelow.o): Update dependencies.
2004-05-24Add OpenBSD/m88k support.Mark Kettenis1-0/+8
* NEWS (New native configurations): Mention OpenBSD/m88k. * m88k-tdep.c, m88k-tdep.h, m88kbsd-nat.c, config/m88k/nm-obsd.h, config/m88k/obsd.mh, config/m88k/obsd.mt: New files. * Makefile.in (m88k_tdep_h): New variable. (ALLDEPFILES): Add m88k-tdep.c and m88kbsd-nat.c. (m88kbsd-nat.o, m88k-tdep.o): New dependencies. * configure.host: Add m88*-*-openbsd*. * configure.tgt: Add m88*-*-openbsd*.
2004-05-22* dpx2-nat.c: Remove file.Mark Kettenis1-2/+1
* Makefile.in (ALLDEPFILES): Remove dpx2-nat.c. (dpx2-nat.o): Remove dependencies.
2004-05-22* amd64obsd-nat.c: Include "gdbcore.h", "regcache.h",Mark Kettenis1-2/+2
<sys/types.h>, <machine/frame.h>, <machine/pcb.h> and "bsd-kvm.h". (amd64obsd_supply_pcb): New function. (_initialize_amd64obsd_nat): Enable libkvm interface. * Makefile.in (amd64obsd-nat.o): Update dependencies. * config/i386/obsd64.mh (NATDEPFILES): Add bsd-kvm.o (LOADLIBES): New variable.
2004-05-22* sparcnbsd-nat.c: Include "gdbcore.h", "regcache.h",Mark Kettenis1-1/+2
<sys/types.h>, <machine/pcb.h> and "bsd-kvm.h". (sparc32nbsd_supply_pcb): New function. (_initialize_sparcnbsd_nat): Enable libkvm interface. * Makefile.in (sparcnbsd-nat.o): Update dependencies. * config/sparc/nbsdelf.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable.
2004-05-22* bsd-kvm.c, bsd-kvm.h: New files.Mark Kettenis1-1/+5
* i386fbsd-nat.c: Include <sys/types.h>, <machine/pcb.h> and "bsd-kvm.h". (i386fbsd_supply_pcb): New function. * Makefile.in (ALLDEPFILES): Add bsd-kvm.c. (i386fbsd-nat.o): Update dependencies. (bsd_kvm_h): New variable. (bsd-kvm.o): New dependency. * config/i386/fbsd.mh (NATDEPFILES): Add bsd-kvm.o. (LOADLIBES): New variable.
2004-05-20Use a constructor function to create regset structures.Jim Blandy1-1/+2
* regset.h (supply_regset_ftype, collect_regset_ftype): New typedefs. (struct regset): Use supply_regset_ftype. Add new 'collect_regset' member. (regset_xmalloc): New declaration. * regset.c: New file. * am64-tdep.c (amd64_regset_from_core_section): Use regset_xmalloc to construct regset structures. * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Same. * i386-tdep.c (i386_regset_from_core_section): Same. * i386nbsd-tdep.c (i386nbsd_aout_regset_from_core_section): Same. * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section): Same. * sparc64fbsd-tdep.c (sparc64fbsd_init_abi): Same. * sparc64nbsd-tdep.c (sparc64nbsd_init_abi): Same. * sparc64obsd-tdep.c (sparc64obsd_init_abi): Same. * sparcnbsd-tdep.c (sparc32nbsd_init_abi): Same. * Makefile.in (COMMON_OBS): Add regset.o. (regset.o): New rule.
2004-05-172004-05-17 Randolph Chung <tausq@debian.org>Randolph Chung1-6/+4
* hppa-tdep.c: Remove superfluous #include's. * Makefile.in (hppa-tdep.o): Update dependencies.
2004-05-13 * aix-thread.c: #include "gdb_string.h". Needed for memset and memcopy.Joel Brobecker1-1/+1
* Makefile.in (aix-thread.o): Add dependency on gdb_string.h.
2004-05-112004-05-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* ppcnbsd-tdep.c: Include "gdb_assert.h". * Makefile.in (ppcnbsd-tdep.o): Update dependencies.
2004-05-11* ppc-tdep.h (struct gdbarch_tdep): Change definition ofJim Blandy1-6/+6
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this processor variant lacks those registers. (ppc_floating_point_unit_p): Change description to make it clear that this returns info about the ISA, not the ABI. * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to return true or false by checking tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum. The original code replicated the BFD arch/mach switching done in rs6000_gdbarch_init; it's better to keep that logic there, and just check the results here. (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum to -1 to indicate that we have no floating-point registers. (ppc_supply_fpregset, ppc_collect_fpregset) (rs6000_push_dummy_call, rs6000_extract_return_value) (rs6000_store_return_value): Assert that we have floating-point registers. (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME. (rs6000_frame_cache): Don't note the locations at which floating-point registers were saved if we have no fprs. * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP registers. (fetch_regs_user_thread, fetch_regs_kernel_thread) (store_regs_user_thread, store_regs_kernel_thread): Only call supply_fprs / fill_fprs if we actually have floating-point registers. (special_register_p): Check ppc_fpscr_regnum before matching against it. (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't supply / collect fpscr if we don't have it. * ppc-bdm.c: #include "gdb_assert.h". (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we have floating-point registers, since I can't test this code on FP-free systems to adapt it. * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_register): Assert that we have floating-point registers before we reach the code that handles them. (store_register): Same. And use tdep instead of calling gdbarch_tdep again. (fill_fpregset): Don't try to collect FP registers and fpscr if we don't have them. (ppc_linux_sigtramp_cache): Don't record the saved locations of fprs and fpscr if we don't have them. (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we don't have them. * ppcnbsd-nat.c: #include "gdb_assert.h". (getfpregs_supplies): Assert that we have floating-point registers. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same. * ppcobsd-tdep.c: #include "gdb_assert.h". (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we have floating-point registers. * rs6000-nat.c (regmap): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_inferior_registers, store_inferior_registers, fetch_core_registers): Only fetch / store / supply the floating-point registers and the fpscr if we have them. * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o) (ppcobsd-tdep.o): Update dependencies.
2004-05-10Back out change. The NetBSD changes need Jason Thorpe's approval, butJim Blandy1-6/+6
he hasn't reviewed it yet.
2004-05-10* ppc-tdep.h (struct gdbarch_tdep): Change definition ofJim Blandy1-6/+6
ppc_fp0_regnum and ppc_fpscr_regnum: if they are -1, then this processor variant lacks those registers. (ppc_floating_point_unit_p): Change description to make it clear that this returns info about the ISA, not the ABI. * rs6000-tdep.c (ppc_floating_point_unit_p): Decide whether to return true or false by checking tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum. The original code replicated the BFD arch/mach switching done in rs6000_gdbarch_init; it's better to keep that logic there, and just check the results here. (rs6000_gdbarch_init): On the E500, set tdep->ppc_fp0_regnum and tdep->ppc_fpscr_regnum to -1 to indicate that we have no floating-point registers. (ppc_supply_fpregset, ppc_collect_fpregset) (rs6000_push_dummy_call, rs6000_extract_return_value) (rs6000_store_return_value): Assert that we have floating-point registers. (rs6000_dwarf2_stab_reg_to_regnum): Add FIXME. (rs6000_frame_cache): Don't note the locations at which floating-point registers were saved if we have no fprs. * aix-thread.c (supply_fprs, fill_fprs): Assert that we have FP registers. (fetch_regs_user_thread, fetch_regs_kernel_thread) (store_regs_user_thread, store_regs_kernel_thread): Only call supply_fprs / fill_fprs if we actually have floating-point registers. (special_register_p): Check ppc_fpscr_regnum before matching against it. (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32): Don't supply / collect fpscr if we don't have it. * ppc-bdm.c: #include "gdb_assert.h". (bdm_ppc_fetch_registers, bdm_ppc_store_registers): Assert that we have floating-point registers, since I can't test this code on FP-free systems to adapt it. * ppc-linux-nat.c (ppc_register_u_addr): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_register): Assert that we have floating-point registers before we reach the code that handles them. (store_register): Same. And use tdep instead of calling gdbarch_tdep again. (fill_fpregset): Don't try to collect FP registers and fpscr if we don't have them. (ppc_linux_sigtramp_cache): Don't record the saved locations of fprs and fpscr if we don't have them. (ppc_linux_supply_fpregset): Don't supply fp regs and fpscr if we don't have them. * ppcnbsd-nat.c: #include "gdb_assert.h". (getfpregs_supplies): Assert that we have floating-point registers. * ppcnbsd-tdep.c (ppcnbsd_supply_fpreg, ppcnbsd_fill_fpreg): Same. * ppcobsd-tdep.c: #include "gdb_assert.h". (ppcobsd_supply_gregset, ppcobsd_collect_gregset): Assert that we have floating-point registers. * rs6000-nat.c (regmap): Don't match against the fpscr and floating point register numbers if they don't exist. (fetch_inferior_registers, store_inferior_registers, fetch_core_registers): Only fetch / store / supply the floating-point registers and the fpscr if we have them. * Makefile.in (ppc-bdm.o, ppc-linux-nat.o, ppcnbsd-nat.o) (ppcobsd-tdep.o): Update dependencies.
2004-05-08* vax-tdep.c: Tweak comments. Reorder include files. Don'tMark Kettenis1-4/+4
include "symtab.h", "opcode/vax.h" and "inferior.h". (vax_skip_prologue): Replace calls to read_memory_integer by calls to read_memory_unsigned_integer. (vax_gdbarch_init): Reorder. (_initialize_vax_tdep): Spell out prototype. * Makefile.in (vax-tdep.o): Update dependencies.
2004-05-08* alphanbsd-tdep.c: Include "gdb_string.h".Mark Kettenis1-4/+4
* armnbsd-tdep.c: Update copyright year. Include "gdb_string.h". * Makefile.in (alphanbsd-tdep.o, armnbsd-tdep.o): Update dependencies.
2004-05-08* delta68-nat.c: Remove file.Mark Kettenis1-2/+1
* m68k-tdep.c (delta68_in_sigtramp, delta68_frame_args_address) (delta68_frame_saved_pc, delta68_frame_num_args): Remove functions. * Makefile.in (ALLDEPFILES): Remove delta68-nat.c. (delta68-nat.o): Remove dependency.
2004-05-082004-05-07 Randolph Chung <tausq@debian.org>Randolph Chung1-0/+7
* Makefile.in (ALLDEPFILES): Add hppa-linux-tdep.c and hppa-linux-nat.c. (hppa-linux-tdep.o, hppa-linux-nat.o): Define rules. * hppa-linux-nat.c (fetch_register, store_register): Define. (fetch_inferior_registers, store_inferior_registers): Define. (supply_gregset): Add comment and clean up some unneeded code. (fill_gregset): Add comment and fix so that it saves registers in the right place in the gregset. (fill_fpregset): Fix buffer overrun problem. * config/pa/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
2004-05-072004-05-07 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+2
* observer.c: Include "commands.h" and "gdbcmd.h". (observer_debug, _initialize_observer): Add the command "set/show debug observer". * observer.sh: When observer debugging, log notify calls. * Makefile.in (observer.o): Update dependencies. Index: doc/ChangeLog 2004-05-07 Andrew Cagney <cagney@redhat.com> * observer.texi (GDB Observers): Add "Debugging" section. Include cross reference to "set/show debug observer". * gdb.texinfo (Debugging Output): Document "set/show debug observer".
2004-05-072004-05-06 Randolph Chung <tausq@debian.org>Randolph Chung1-1/+2
* config/pa/tm-hppa.h (RO_REGNUM, FLAGS_REGNUM, RP_REGNUM) (HPPA_FP_REGNUM, HPPA_SP_REGNUM, SAR_REGNUM, IPSW_REGNUM) (PCOQ_HEAD_REGNUM, PCSQ_HEAD_REGNUM, PCOQ_TAIL_REGNUM, PCSQ_TAIL_REGNUM) (EIEM_REGNUM, IIR_REGNUM, ISR_REGNUM, IOR_REGNUM, SR4_REGNUM) (RCR_REGNUM, PID0_REGNUM, PID1_REGNUM, PID2_REGNUM, PID3_REGNUM) (CCR_REGNUM, TR0_REGNUM, CR27_REGNUM, HPPA_FP0_REGNUM, FP4_REGNUM) (ARG0_REGNUM, ARG1_REGNUM, ARG2_REGNUM, ARG3_REGNUM): Move *_REGNUM definitions ... * hppa-tdep.h: ... to here, with HPPA_ prefix. * Makefile.in (hppah-nat.o): Add $(hppa_tdep_h) * hppa-hpux-tdep.c (hppa32_hpux_frame_find_saved_regs_in_sig) (hppa64_hpux_frame_find_saved_regs_in_sig) (child_get_current_exception_event): Add HPPA_ prefix to *_REGNUM usage. * hppa-linux-nat.c (GR_REGNUM, TR_REGNUM, greg_map): Likewise. * hppa-linux-tdep.c (hppa_dwarf_reg_to_regnum) (hppa_linux_target_write_pc, hppa_linux_sigtramp_frame_unwind_cache) (hppa_linux_sigtramp_frame_prev_register): Likewise. * hppa-tdep.c (hppa32_return_value, hppa64_return_value) (hppa32_push_dummy_call, hppa64_push_dummy_call, hppa64_frame_align) (hppa_target_read_pc, hppa_target_write_pc, hppa_frame_cache) (hppa_frame_prev_register, hppa_stub_frame_unwind_cache) (hppa_stub_frame_prev_register, hppa_unwind_dummy_id) (hppa_skip_permanent_breakpoint, hppa_instruction_nullified) (hppa32_register_type, hppa_cannot_store_register) (hppa_fetch_pointer_argument, hppa_pseudo_register_read): Likewise. * hppah-nat.c (store_inferior_registers, fetch_register): Likewise. * hpread.c (hpread_process_one_debug_symbol): Likewise. * pa64solib.c (pa64_solib_have_load_event) (pa64_solib_have_unload_event, pa64_solib_loaded_library_pathname) (pa64_solib_unloaded_library_pathname): Likewise. * somsolib.c (som_solib_have_load_event, som_solib_have_unload_event) (som_solib_library_pathname): Likewise.
2004-05-04* m68knbsd-nat.c: Remove file.Mark Kettenis1-3/+0
* m68knbsd-tdep.c: Remove file. * Makefile.in: (m68knbsd-nat.o, m68knbsd-tdep.o): Remove dependencies. * configure.host: Add m68k-*-netbsdelf*. * configure.tgt (m68k-*-netbsd*): Set gdb_target to nbsd. * config/m68k/nbsdaout.mh (NATDEPFILES): Add m68kbsd-nat.o, solib.o and solib-sunos.o. Remove m68knbsd-nat.o, corelow.o. (XM_FILE): Remove. * config/m68k/nbsdelf.mh: New file. * config/m68k/nbsd.mt: New file. * config/m68k/nbsdaout.mt: Remove file. * config/m68k/tm-nbsd.h: Don't include <sys/param.h>, <machine/vmparam.h> and "m68k/tm-m68k.h". Include "solib.h". (BPT_VECTOR, STACK_END_ADDR): Remove defines. (DEPRECATED_SIGTRAMP_START, DEPRECATED_SIGTRAMP_END): Likewise. (use_struct_convention): Remove prototype. (USE_STRUCT_CONVENTION): Remove define. * config/m68k/xm-nbsd.h: Remove file.
2004-05-03* sun3-nat.c: Remove file.Mark Kettenis1-4/+0
* Makefile.in (tm-sun3.h tm-altos.h tm-sun2.h tm-3b1.h): Remove dependencies. (ALLDEPFILES): Remove sun3-nat.c. (sun3-nat.o): Remove dependencies.
2004-05-03* i386-interix-nat.c, i386-interix-tdep.c,Mark Kettenis1-6/+0
config/i386/nm-interix.h, config/i386/interix.mh, config/i386/interix.mt: Remove files. * Makefile.in (i386-interix-nat.o, i386-interix-tdep.o): Remove dependencies.
2004-05-03* m68k-tdep.h (struct gdbarch_tdep): Add memberMark Kettenis1-4/+4
struct_value_regnum. (m68k_svr4_init_abi): New prototype. * m68k-tdep.c: Include "floatformat.h". Add comment about all the different calling conventions. (m68k_extract_return_value): Remove code dealing with single-field structs. (m68k_store_return_value): Remove code dealing with single-field structs. Correctly store return values of 5, 6, 7 or 8 bytes. (m68k_extract_struct_value_address): Remove function. (m68k_svr4_extract_return_value,m68k_svr4_store_return_value) (m68k_reg_struct_return_p, m68k_return_value) (m68k_svr4_return_value): New functions. (m68k_use_struct_convention): Remove function. (m68k_push_dummy_call): Use new struct_value_regnum member of `struct gdbarch_tdep' instead of hardcoded register number to store STRUCT_ADDR. (m68k_svr4_init_abi): New function. (m68k_gdbarch_init): Don't set extract_return_value, store_return_values, deprecated_extract_struct_value_address and use_struct_convention. Set return_value instead. Initialize new struct_value_regnum member of `struct gdbarch_tdep'. * m68klinux-tdep.c: Update copyright year. (m68k_linux_extract_return_value, m68k_linux_store_return_value) (m68k_linux_extract_struct_value_address): Remove function. (m68k_linux_init_abi): Don't set extract_return_value, store_return_values, deprecated_extract_struct_value_address and use_struct_convention. Call m68k_svr4_init_abi but override the new struct_value_regnum member of `struct gdbarch_tdep'. * Makefile.in (m68k-tdep.o): Update dependencies.
2004-05-02Move the symbol-file-from-memory functions into their own file.Jim Blandy1-2/+8
* symfile-mem.c, symfile-mem.h: New files. * symfile.c (symbol_file_add_from_bfd): New function. (symbol_file_add): Call symbol_file_add_from_bfd. (symbol_file_add_from_memory, add_symbol_file_from_memory_command): Moved to symfile-mem.c. (_initialize_symfile): Move definition of add-symbol-file-from-memory command to symfile-mem.c. * symfile.h (symbol_file_add_from_bfd): New declaration. * config/i386/linux.mt (TDEPFILES): Add symfile-mem.o. * config/powerpc/linux.mt (TDEPFILES): Same. * Makefile.in (SFILES): Add symfile-mem.c. (symfile_mem_h): New variable. (HFILES_NO_SRCDIR): Add symfile-mem.h. (symfile-mem.o): New rule.
2004-05-012004-05-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-2/+2
* Makefile.in (m68klinux-tdep.o, m68klinux-nat.o): Fix m68klinux-tdep.o's dependencies, were previously added to m68klinux-nat.o.
2004-05-012004-05-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* Makefile.in (m68klinux-nat.o): Update dependencies. * m68klinux-tdep.c: Include "trad-frame.h" and "frame-unwind.h". (m68k_linux_sigtramp_frame_cache) (m68k_linux_sigtramp_frame_this_id) (m68k_linux_sigtramp_frame_prev_register) (m68k_linux_sigtramp_frame_unwind) (m68k_linux_sigtramp_frame_sniffer) (struct m68k_linux_sigtramp_info, m68k_linux_init_abi): Code from m68k-tdep.h and m68k-tdep.c, add "linux" to function and variable names, use trad-frame.h. * m68k-tdep.h (struct gdbarch_tdep): Delete get_sigtramp_info. (struct m68k_sigtramp_info): Delete. * m68k-tdep.c (m68k_sigtramp_frame_cache) (m68k_sigtramp_frame_this_id, m68k_sigtramp_frame_prev_register) (m68k_sigtramp_frame_unwind, m68k_sigtramp_frame_sniffer) (m68k_gdbarch_init): Delete all the sigtramp code, moved to "m68klinux-tdep.c".
2004-05-012004-05-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+2
* frv-linux-tdep.c: Include "trad-frame.h" and "frame-unwind.h". (frv_linux_sigtramp_frame_cache) (frv_linux_sigtramp_frame_this_id) (frv_linux_sigtramp_frame_prev_register) (frv_linux_sigtramp_frame_unwind) (frv_linux_sigtramp_frame_sniffer): Copied from frv-tdep.c, include "linux" in function and variable names, directly call frv_linux_pc_in_sigtramp and frv_linux_sigcontext_reg_addr, use the latest trad-frame code. (frv_linux_init_abi): Append frv_linux_sigtramp_frame_sniffer, do not set frv_sigcontext_reg_addr or deprecated_pc_in_sigtramp * Makefile.in (frv-linux-tdep.o): Update dependencies. * frv-tdep.h (frv_set_sigcontext_reg_addr): Delete declaration. * frv-tdep.c (frv_sigtramp_frame_cache) (frv_sigtramp_frame_this_id, frv_sigtramp_frame_prev_register) (frv_sigtramp_frame_unwind, frv_sigtramp_frame_sniffer): Moved to frv-linux-tdep.c. (frv_gdbarch_init): Do not append a sigtramp sniffer. (struct gdbarch_tdep): Delete sigcontext_reg_addr. (frv_set_sigcontext_reg_addr): Delete function.
2004-04-30Add OpenBSD/m68k support.Mark Kettenis1-0/+6
* NEWS (New native configurations): Mention OpenBSD/m68k. * m68kbsd-tdep.c: New file. * m68kbsd-nat.c: New file. * Makefile.in (ALLDEPFILES): Add m68kbsd-nat.c and m68kbsd-tdep.c. (m68kbsd-nat.o, m68kbsd-tdep.o): New dependencies. * configure.host: Add m68k-*-openbsd. * configure.tgt: Add m68k-*-openbsd. * config/m68k/tm-obsd.h: New file. * config/m68k/obsd.mt: New file. * config/m68k/obsd.mh: New file. * config/djgpp/fnchange.lst: Add entries for m68kbsd-nat.c and m68kbsd-tdep.c.
2004-04-262004-04-26 Orjan Friberg <orjanf@axis.com>Orjan Friberg1-3/+3
* frame.c: Include "observer.h". (frame_observer_target_changed): New function. (_initialize_frame): Attach target_changed observer. * regcache.c: Include "observer.h". (regcache_observer_target_changed): New function. (_initialize_regcache): Attach target_changed observer. * valops.c: Include "observer.h". (value_assign): Notify target_changed event when modifying register. * Makefile.in (frame.o, regcache.o, valops.o): Add $(observer_h).