mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-26 11:33:45 +08:00
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.
This commit is contained in:
parent
48cd0caa88
commit
1d33e73ab9
@ -1,3 +1,9 @@
|
||||
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.
|
||||
|
||||
2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* dwarf2read.c: Replace fprintf (stderr, ...) by
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user