aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-08-10 02:00:16 +0000
committerAndrew Cagney <cagney@redhat.com>2002-08-10 02:00:16 +0000
commita7e3c2ad4b6733e3011e00d214ec83139fa3c3d2 (patch)
treee630433577f79d66d17aaa1e25127cc6b56c6ecb /gdb/regcache.c
parent119d55d8e40fb1ccbd7a92e8c4cd05de0ea2c0c9 (diff)
downloadgdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.zip
gdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.tar.gz
gdb-a7e3c2ad4b6733e3011e00d214ec83139fa3c3d2.tar.bz2
2002-08-09 Andrew Cagney <cagney@redhat.com>
* regcache.c (regcache_dump): Compare the register offset with REGISTER_BYTE. * arch-utils.c (generic_register_byte): New function. * arch-utils.h (generic_register_byte): Declare. * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte. * gdbarch.h, gdbarch.c: Regenerate.
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;