diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-08 20:06:19 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-08 20:06:19 +0000 |
commit | 558f4183fb2fc1a9b9d0f506360df36a58600db5 (patch) | |
tree | 3b3e5c2bec8b856359aab65de7ab42fcb97156bf /gdb/hppa-tdep.c | |
parent | 270532f9a410fc56d2edaebb885b3ad9f767b702 (diff) | |
download | gdb-558f4183fb2fc1a9b9d0f506360df36a58600db5.zip gdb-558f4183fb2fc1a9b9d0f506360df36a58600db5.tar.gz gdb-558f4183fb2fc1a9b9d0f506360df36a58600db5.tar.bz2 |
* hppa-tdep.c (hppa_push_arguments): Allocate enough space for
arguments.
Diffstat (limited to 'gdb/hppa-tdep.c')
-rw-r--r-- | gdb/hppa-tdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c index e4f2ac2..2ae279a 100644 --- a/gdb/hppa-tdep.c +++ b/gdb/hppa-tdep.c @@ -692,7 +692,7 @@ hppa_push_arguments (nargs, args, sp, struct_return, struct_addr) cum = (cum + alignment) & -alignment; offset[i] = -cum; } - sp += min ((cum + 7) & -8, 16); + sp += max ((cum + 7) & -8, 16); for (i = 0; i < nargs; i++) write_memory (sp + offset[i], VALUE_CONTENTS (args[i]), |