aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-05-29 16:39:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-05-29 16:39:56 +0000
commit4182591fce9f672b648e8dcfcf33d0df556b7a22 (patch)
tree64dae6ebd895f6ced1abeb24af7e27870d546c54 /gdb/remote-sim.c
parent8afb0e028ca79a7b870a0293c8e584529adfbe9f (diff)
downloadgdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.zip
gdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.tar.gz
gdb-4182591fce9f672b648e8dcfcf33d0df556b7a22.tar.bz2
* Makefile.in (arch-utils.o): Add $(sim_regno_h).
* arch-utils.c: Include "sim-regno.h". * gdbarch.sh: Don't include "sim-regno.h". * gdbarch.h, gdbarch.c: Regenerate. * sim-regno.h (legacy_register_sim_regno): Move declaration from here. * arch-utils.h (legacy_register_sim_regno): To here. * remote-sim.c (legacy_register_sim_regno): Move function from here. * arch-utils.c (legacy_register_sim_regno): To here.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c
index 2c2790b..4096d7d 100644
--- a/gdb/remote-sim.c
+++ b/gdb/remote-sim.c
@@ -279,22 +279,6 @@ gdb_os_error (host_callback * p, const char *format,...)
}
int
-legacy_register_sim_regno (int regnum)
-{
- /* Only makes sense to supply raw registers. */
- gdb_assert (regnum >= 0 && regnum < NUM_REGS);
- /* NOTE: cagney/2002-05-13: The old code did it this way and it is
- suspected that some GDB/SIM combinations may rely on this
- behavour. The default should be one2one_register_sim_regno
- (below). */
- if (REGISTER_NAME (regnum) != NULL
- && REGISTER_NAME (regnum)[0] != '\0')
- return regnum;
- else
- return LEGACY_SIM_REGNO_IGNORE;
-}
-
-int
one2one_register_sim_regno (int regnum)
{
/* Only makes sense to supply raw registers. */