diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-29 19:44:22 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2007-04-29 19:44:22 +0000 |
commit | 42cb1d0452f09d694067619445d324e12ca96572 (patch) | |
tree | 3ce99618e657fefc97654cb8004b29350a701a59 /gdb/mips-linux-nat.c | |
parent | 7d972887ae2c1a476eaebfb41d4779280515b6a0 (diff) | |
download | gdb-42cb1d0452f09d694067619445d324e12ca96572.tar.gz |
* m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
* m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
* mips-linux-nat.c: Include "gregset.h".
(supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
from mips-linux-tdep.c. Change parameter type to gdb_gregset_t.
* mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
fill_fpregset): Move to mips-linux-nat.c.
* Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r-- | gdb/mips-linux-nat.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index b4c275a3445..9470078aa19 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -28,6 +28,7 @@ #include "mips-linux-tdep.h" #include "gdb_proc_service.h" +#include "gregset.h" #include <sys/ptrace.h> @@ -172,6 +173,45 @@ ps_get_thread_area (const struct ps_prochandle *ph, return PS_OK; } +/* Wrapper functions. These are only used by libthread_db. */ + +void +supply_gregset (gdb_gregset_t *gregsetp) +{ + if (mips_isa_regsize (current_gdbarch) == 4) + mips_supply_gregset ((void *) gregsetp); + else + mips64_supply_gregset ((void *) gregsetp); +} + +void +fill_gregset (gdb_gregset_t *gregsetp, int regno) +{ + if (mips_isa_regsize (current_gdbarch) == 4) + mips_fill_gregset ((void *) gregsetp, regno); + else + mips64_fill_gregset ((void *) gregsetp, regno); +} + +void +supply_fpregset (gdb_fpregset_t *fpregsetp) +{ + if (mips_isa_regsize (current_gdbarch) == 4) + mips_supply_fpregset ((void *) fpregsetp); + else + mips64_supply_fpregset ((void *) fpregsetp); +} + +void +fill_fpregset (gdb_fpregset_t *fpregsetp, int regno) +{ + if (mips_isa_regsize (current_gdbarch) == 4) + mips_fill_fpregset ((void *) fpregsetp, regno); + else + mips64_fill_fpregset ((void *) fpregsetp, regno); +} + + /* Fetch REGNO (or all registers if REGNO == -1) from the target using PTRACE_GETREGS et al. */ |