aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2007-06-19 22:44:13 +0000
committerJoseph Myers <joseph@codesourcery.com>2007-06-19 22:44:13 +0000
commit8bf8793ca09479bd7963e413db6f07958125c2f0 (patch)
tree923c8b074723b7a10728e0b0f0b118614bfd827a /gdb/arm-tdep.c
parentb1364e8f1b4ad5e0f2e5cf2025b567f372e480cf (diff)
downloadgdb-8bf8793ca09479bd7963e413db6f07958125c2f0.zip
gdb-8bf8793ca09479bd7963e413db6f07958125c2f0.tar.gz
gdb-8bf8793ca09479bd7963e413db6f07958125c2f0.tar.bz2
* arm-tdep.c (arm_push_dummy_call): Correct padding of partial
registers for big-endian.
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 2f15050..575c59a 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -1289,6 +1289,8 @@ arm_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
/* The argument is being passed in a general purpose
register. */
CORE_ADDR regval = extract_unsigned_integer (val, partial_len);
+ if (gdbarch_byte_order (current_gdbarch) == BFD_ENDIAN_BIG)
+ regval <<= (INT_REGISTER_SIZE - partial_len) * 8;
if (arm_debug)
fprintf_unfiltered (gdb_stdlog, "arg %d in %s = 0x%s\n",
argnum,