[commit/hppa] fix handling of 8-byte structures passed to push_call_dummy

Randolph Chung randolph@tausq.org
Mon May 24 15:38:00 GMT 2004


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/



More information about the Gdb-patches mailing list