aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-04-29 19:44:22 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-04-29 19:44:22 +0000
commit3e00823eb4110b19fff21fe8cfc01f5c20c3b112 (patch)
tree5201c5ad3b82a2408d51950abf10ead08d84ac7e /gdb/mips-linux-nat.c
parentb1d53152e0cda88893253882fd974c2c4b142fe9 (diff)
downloadgdb-3e00823eb4110b19fff21fe8cfc01f5c20c3b112.zip
gdb-3e00823eb4110b19fff21fe8cfc01f5c20c3b112.tar.gz
gdb-3e00823eb4110b19fff21fe8cfc01f5c20c3b112.tar.bz2
* 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.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index b4c275a..9470078 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. */