aboutsummaryrefslogtreecommitdiff
path: root/gdb/sentinel-frame.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-05-04 17:34:51 +0000
committerAndrew Cagney <cagney@redhat.com>2003-05-04 17:34:51 +0000
commit46654a5bcc3430a7219b2a8430578b4a5473214c (patch)
tree499f90a477c3f8c9ffa026a4768d18ca1ccbaa42 /gdb/sentinel-frame.c
parent54ff5908500fc0a8e83fcd8ffa779bf81eebd51b (diff)
downloadfsf-binutils-gdb-46654a5bcc3430a7219b2a8430578b4a5473214c.zip
fsf-binutils-gdb-46654a5bcc3430a7219b2a8430578b4a5473214c.tar.gz
fsf-binutils-gdb-46654a5bcc3430a7219b2a8430578b4a5473214c.tar.bz2
2003-05-02 Andrew Cagney <cagney@redhat.com>
* sentinel-frame.c (sentinel_frame_prev_register): Replace REGISTER_BYTE with register_offset_hack. * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check that REGISTER_BYTE is consistent with the regcache. * gdbarch.sh (REGISTER_BYTE): Add a predicate. * gdbarch.h, gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/sentinel-frame.c')
-rw-r--r--gdb/sentinel-frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/sentinel-frame.c b/gdb/sentinel-frame.c
index dab1647..dcc583e 100644
--- a/gdb/sentinel-frame.c
+++ b/gdb/sentinel-frame.c
@@ -56,7 +56,7 @@ sentinel_frame_prev_register (struct frame_info *next_frame,
onto the corresponding hardware register. */
*optimized = 0;
*lvalp = lval_register;
- *addrp = REGISTER_BYTE (regnum);
+ *addrp = register_offset_hack (current_gdbarch, regnum);
*realnum = regnum;
/* If needed, find and return the value of the register. */