diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/hppa-tdep.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b8121ad..44390a1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Thu Jul 8 14:48:54 1993 Jim Kingdon (kingdon@lioth.cygnus.com) + * hppa-tdep.c (hppa_push_arguments): Allocate enough space for + arguments. + * hppa-tdep.c: Change _initialize_hppab_tdep to _initialize_hppa_tdep. Thu Jul 8 08:22:05 1993 Doug Evans (dje@canuck.cygnus.com) 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]), |