* mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch

registers without a name.
        (mips_linux_cannot_store_register): Don't store registers without
        a name.
This commit is contained in:
Daniel Jacobowitz 2002-10-30 04:10:06 +00:00
parent df2a731323
commit 2c665b51d2
2 changed files with 11 additions and 0 deletions

View file

@ -1,3 +1,10 @@
2002-10-29 Daniel Jacobowitz <drow@mvista.com>
* mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
registers without a name.
(mips_linux_cannot_store_register): Don't store registers without
a name.
2002-10-28 David Carlton <carlton@math.stanford.edu>
* symtab.c (find_addr_symbol): Delete. (It was already commented

View file

@ -29,6 +29,8 @@
int
mips_linux_cannot_fetch_register (int regno)
{
if (REGISTER_NAME (regno)[0] == 0)
return 1;
if (regno == PS_REGNUM)
return 1;
else if (regno == ZERO_REGNUM)
@ -40,6 +42,8 @@ mips_linux_cannot_fetch_register (int regno)
int
mips_linux_cannot_store_register (int regno)
{
if (REGISTER_NAME (regno)[0] == 0)
return 1;
if (regno == PS_REGNUM)
return 1;
else if (regno == ZERO_REGNUM)