aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/regcache.c')
-rw-r--r--gdb/regcache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/regcache.c b/gdb/regcache.c
index bb9cfde..e48725a 100644
--- a/gdb/regcache.c
+++ b/gdb/regcache.c
@@ -1113,7 +1113,8 @@ regcache_dump (struct regcache *regcache, struct ui_file *file,
{
regcache_raw_read (regcache, regnum, buf);
fprintf_unfiltered (file, "0x");
- dump_endian_bytes (file, TARGET_BYTE_ORDER, buf,
+ dump_endian_bytes (file,
+ gdbarch_byte_order (current_gdbarch), buf,
regcache->descr->sizeof_register[regnum]);
}
}
@@ -1127,7 +1128,8 @@ regcache_dump (struct regcache *regcache, struct ui_file *file,
{
regcache_cooked_read (regcache, regnum, buf);
fprintf_unfiltered (file, "0x");
- dump_endian_bytes (file, TARGET_BYTE_ORDER, buf,
+ dump_endian_bytes (file,
+ gdbarch_byte_order (current_gdbarch), buf,
regcache->descr->sizeof_register[regnum]);
}
}