aboutsummaryrefslogtreecommitdiff
path: root/gdb/hppa-tdep.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-01-13 15:48:56 +0000
committerAndrew Cagney <cagney@redhat.com>2002-01-13 15:48:56 +0000
commitb6649e88389ddb02e013944e2ae3acff1721b8eb (patch)
treed66d0d84ab7b1df1e1e1be50fdfd431c94d8c4a4 /gdb/hppa-tdep.c
parent82cc503325ef72ccad4d8eaf4a5a23228d778802 (diff)
downloadfsf-binutils-gdb-b6649e88389ddb02e013944e2ae3acff1721b8eb.zip
fsf-binutils-gdb-b6649e88389ddb02e013944e2ae3acff1721b8eb.tar.gz
fsf-binutils-gdb-b6649e88389ddb02e013944e2ae3acff1721b8eb.tar.bz2
* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
structures passed in registers.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r--gdb/hppa-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index af72d8c..973f778 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1815,7 +1815,8 @@ hppa_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
target. */
bytes_reserved = (lengths[i] + REGISTER_SIZE - 1) & -REGISTER_SIZE;
- offset[i] = cum_bytes_reserved + lengths[i];
+ offset[i] = (cum_bytes_reserved
+ + (lengths[i] > 4 ? bytes_reserved : lengths[i]));
/* If the argument is a double word argument, then it needs to be
double word aligned. */