aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2002-02-15 22:59:13 +0000
committerDaniel Jacobowitz <drow@false.org>2002-02-15 22:59:13 +0000
commit1d33e73ab96028119937986b9d2365e3d48b6afc (patch)
tree45436a49fe6582cc546250a66acf890c6c337614 /gdb/gdbserver
parent48cd0caa887e6df687fd3b98285bb9d85a03d868 (diff)
downloadgdb-1d33e73ab96028119937986b9d2365e3d48b6afc.zip
gdb-1d33e73ab96028119937986b9d2365e3d48b6afc.tar.gz
gdb-1d33e73ab96028119937986b9d2365e3d48b6afc.tar.bz2
2002-02-15 Daniel Jacobowitz <drow@mvista.com>
* gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno instead of find_register_by_number. (cannot_store_register): Likewise.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/linux-mips-low.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c
index ef14c6a..892bc2d 100644
--- a/gdb/gdbserver/linux-mips-low.c
+++ b/gdb/gdbserver/linux-mips-low.c
@@ -65,14 +65,10 @@ int regmap[] = {
int
cannot_fetch_register (int regno)
{
- struct reg *reg;
-
if (regmap[regno] == -1)
return 1;
- reg = find_register_by_number (regno);
-
- if (strcmp (reg->name, "zero") == 0)
+ if (find_regno ("zero") == regno);
return 1;
return 0;
@@ -81,23 +77,19 @@ cannot_fetch_register (int regno)
int
cannot_store_register (int regno)
{
- struct reg *reg;
-
if (regmap[regno] == -1)
return 1;
- reg = find_register_by_number (regno);
-
- if (strcmp (reg->name, "zero") == 0)
+ if (find_regno ("zero") == regno)
return 1;
- if (strcmp (reg->name, "cause") == 0)
+ if (find_regno ("cause") == regno)
return 1;
- if (strcmp (reg->name, "bad") == 0)
+ if (find_regno ("bad") == regno)
return 1;
- if (strcmp (reg->name, "fir") == 0)
+ if (find_regno ("fir") == regno)
return 1;
return 0;