diff options
author | Mark Kettenis <kettenis@gnu.org> | 2007-03-02 21:28:18 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2007-03-02 21:28:18 +0000 |
commit | 861fb77c13cfcfb524aa8bafe2081fa8ea49f156 (patch) | |
tree | 4f4b742a696e23f3469e740d2eefc2f84f2ae9db /gdb/config | |
parent | d6ed30ba0dfb11cbd14aa9077959621429f0dc92 (diff) | |
download | gdb-861fb77c13cfcfb524aa8bafe2081fa8ea49f156.zip gdb-861fb77c13cfcfb524aa8bafe2081fa8ea49f156.tar.gz gdb-861fb77c13cfcfb524aa8bafe2081fa8ea49f156.tar.bz2 |
* shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
"gdb_string.h". Don't include "nbsd-tdep.h".
(SIZEOF_STRUCT_REG): Remove.
(SHNBSD_SIZEOF_GREGS): New.
(shnbsd_supply_gregset, shnbsd_collect_gregset)
(shnbsd_regset_from_core_section): New functions.
(fetch_core_registers, fetch_elfcore_registers): Remove functions.
(shnbsd_supply_reg, shnbsd_fill_reg): Simply call
shnbsd_supply_gregset, shnbsd_collect_gregset.
(shnbsd_gregset): New variable.
(shnbsd_init_abi): Set regset_from_core_section.
(GDB_OSABI_NETBSD_CORE): New define.
(shnbsd_core_osabi_sniffer): New function.
(_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
* Makefile.in (shnbsd-tdep.o): Update dependencies.
* config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
nbsd-tdep.o.
* config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
Diffstat (limited to 'gdb/config')
-rw-r--r-- | gdb/config/sh/nbsd.mt | 5 | ||||
-rw-r--r-- | gdb/config/sh/obsd.mt | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/gdb/config/sh/nbsd.mt b/gdb/config/sh/nbsd.mt index fee04d5..1d1de03 100644 --- a/gdb/config/sh/nbsd.mt +++ b/gdb/config/sh/nbsd.mt @@ -1,5 +1,6 @@ -# Target: SuperH running NetBSD -TDEPFILES= sh-tdep.o shnbsd-tdep.o corelow.o nbsd-tdep.o solib.o solib-svr4.o +# Target: NetBSD/sh +TDEPFILES= sh-tdep.o shnbsd-tdep.o \ + corelow.o solib.o solib-svr4.o DEPRECATED_TM_FILE= tm-sh.h SIM_OBS = remote-sim.o diff --git a/gdb/config/sh/obsd.mt b/gdb/config/sh/obsd.mt index 4909f86..a61bba9 100644 --- a/gdb/config/sh/obsd.mt +++ b/gdb/config/sh/obsd.mt @@ -1,3 +1,3 @@ # Target: OpenBSD/sh -TDEPFILES= sh-tdep.o sh64-tdep.o shnbsd-tdep.o nbsd-tdep.o \ +TDEPFILES= sh-tdep.o sh64-tdep.o shnbsd-tdep.o \ corelow.o solib.o solib-svr4.o |