summaryrefslogtreecommitdiff
path: root/gdb
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
commit4655b4b3d0f68a4a459d9245ad3d9fc9d9fc3833 (patch)
tree5e21e8df628f3c8ca57dc9b08fb437c6d5653c7e /gdb
parentfff5694026ae086301cfd1879ad1c1f8a425a368 (diff)
downloadgdb-4655b4b3d0f68a4a459d9245ad3d9fc9d9fc3833.tar.gz
* hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
structures passed in registers.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/hppa-tdep.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1d8f0b48f3a..a99c997e32d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2002-01-13 Andrew Cagney <ac131313@redhat.com>
+
+ From Jeff law:
+ * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
+ structures passed in registers.
+
2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
* go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index af72d8c4f74..973f778f9fe 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. */