aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index dcfe7aa..c633d2d 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1279,7 +1279,8 @@ regcache_dump (struct regcache *regcache, struct ui_file *file,
{
fprintf_unfiltered (file, " %6ld",
regcache->descr->register_offset[regnum]);
- if (register_offset != regcache->descr->register_offset[regnum])
+ if (register_offset != regcache->descr->register_offset[regnum]
+ || register_offset != REGISTER_BYTE (regnum))
{
if (!footnote_register_offset)
footnote_register_offset = ++footnote_nr;