This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/hppa] fix handling of 8-byte structures passed to push_call_dummy
- From: Randolph Chung <randolph at tausq dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 24 May 2004 08:38:37 -0700
- Subject: [commit/hppa] fix handling of 8-byte structures passed to push_call_dummy
- Reply-to: Randolph Chung <randolph at tausq dot org>
The comment was correct, but the code was wrong; fix it....
fixes a few test FAILs. committed.
randolph
2004-05-24 Randolph Chung <tausq@debian.org>
* hppa-tdep.c: Fix handling of 8-byte structures; they should not
be "small_struct".
Index: hppa-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/hppa-tdep.c,v
retrieving revision 1.162
diff -u -p -r1.162 hppa-tdep.c
--- hppa-tdep.c 19 May 2004 03:07:58 -0000 1.162
+++ hppa-tdep.c 24 May 2004 15:35:20 -0000
@@ -790,7 +790,7 @@ hppa32_push_dummy_call (struct gdbarch *
the higher-ordered word is stored in the lower-ordered
argument, and even though it is a 8-byte quantity the
registers need not be 8-byte aligned. */
- if (param_len > 4)
+ if (param_len > 4 && param_len < 8)
small_struct = 1;
}
--
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/