aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68klinux-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/m68klinux-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/m68klinux-nat.c')
-rw-r--r--gdb/m68klinux-nat.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index f082f32..f8a24bb 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -51,6 +51,9 @@
#include "floatformat.h"
#include "target.h"
+
+/* Prototypes for supply_gregset etc. */
+#include "gregset.h"
/* This table must line up with REGISTER_NAME in "m68k-tdep.c". */
static const int regmap[] =
@@ -238,20 +241,6 @@ old_store_inferior_registers (int regno)
(elf_gregset_t *), unpack the register contents and supply
them as gdb's idea of the current register values. */
-
-/* Note both m68k-tdep.c and m68klinux-nat.c contain definitions
- for supply_gregset and supply_fpregset. The definitions
- in m68k-tdep.c are valid if USE_PROC_FS is defined. Otherwise,
- the definitions in m68klinux-nat.c will be used. This is a
- bit of a hack. The supply_* routines do not belong in
- *_tdep.c files. But, there are several lynx ports that currently
- depend on these definitions. */
-
-#ifndef USE_PROC_FS
-
-/* Prototypes for supply_gregset etc. */
-#include "gregset.h"
-
void
supply_gregset (elf_gregset_t *gregsetp)
{
@@ -414,8 +403,6 @@ static void fetch_fpregs (int tid) {}
static void store_fpregs (int tid, int regno) {}
#endif
-
-#endif
/* Transferring arbitrary registers between GDB and inferior. */