summaryrefslogtreecommitdiff
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
commit42cb1d0452f09d694067619445d324e12ca96572 (patch)
tree3ce99618e657fefc97654cb8004b29350a701a59 /gdb/m68klinux-nat.c
parent7d972887ae2c1a476eaebfb41d4779280515b6a0 (diff)
downloadgdb-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/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 f082f32eeba..f8a24bb6e4e 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. */