aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-21 03:34:22 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-21 03:34:22 +0000
commitfa5f27c7032d5789e69c8c308d91a60beddf758f (patch)
treef1e239da21fc4becc6bfc8f98db8bbb6f1945314
parent5a89d8aaa29e103e5b991c5849382ec386d283e2 (diff)
downloadgdb-fa5f27c7032d5789e69c8c308d91a60beddf758f.zip
gdb-fa5f27c7032d5789e69c8c308d91a60beddf758f.tar.gz
gdb-fa5f27c7032d5789e69c8c308d91a60beddf758f.tar.bz2
2002-08-19 Andrew Cagney <ac131313@redhat.com>
* frame.c (frame_register_unwind): When a register, set addrp to the register's byte.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/frame.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index bf9e4c1..57a6f9a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-19 Andrew Cagney <ac131313@redhat.com>
+
+ * frame.c (frame_register_unwind): When a register, set addrp to
+ the register's byte.
+
2002-08-20 Michael Snyder <msnyder@redhat.com>
* mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
diff --git a/gdb/frame.c b/gdb/frame.c
index 10d609d..3b17bf5 100644
--- a/gdb/frame.c
+++ b/gdb/frame.c
@@ -142,7 +142,9 @@ frame_register_unwind (struct frame_info *frame, int regnum,
register cache. */
*optimizedp = 0;
*lvalp = lval_register;
- *addrp = 0;
+ /* ULGH! Code uses the offset into the raw register byte array
+ as a way of identifying a register. */
+ *addrp = REGISTER_BYTE (regnum);
/* Should this code test ``register_cached (regnum) < 0'' and do
something like set realnum to -1 when the register isn't
available? */