diff options
author | Daniel Jacobowitz <dan@debian.org> | 2002-10-30 04:10:06 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2002-10-30 04:10:06 +0000 |
commit | 3245e437178b8a0017461d3a3a27b5b23f03abde (patch) | |
tree | 9c8d374e0975b4c9cd8ddc3c471fda890062b304 | |
parent | 854d6314ac799e7e0755771a8dca0fa1ff626d72 (diff) | |
download | gdb-3245e437178b8a0017461d3a3a27b5b23f03abde.tar.gz |
* 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.
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/mips-linux-nat.c | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 337c186cfe5..903e0f51b7c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c index 454520d35e7..a0469f6f9f3 100644 --- a/gdb/mips-linux-nat.c +++ b/gdb/mips-linux-nat.c @@ -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) |