From 2c665b51d2a8167e2adb3881e187871c919f20eb Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Wed, 30 Oct 2002 04:10:06 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 7 +++++++ gdb/mips-linux-nat.c | 4 ++++ 2 files changed, 11 insertions(+) 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 + + * 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 * 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) -- 2.30.2