Fix getrval2 on ia64

Andreas Schwab schwab at suse.de
Sun Feb 27 15:09:13 UTC 2005


This fixes getrval2 on ia64, the patch I sent a year ago was broken.

Andreas.

2005-02-28  Andreas Schwab  <schwab at suse.de>

	* syscall.c (getrval2): Move #ifdef IA64 inside #ifdef LINUX.

--- syscall.c.~1.76.~	2005-02-17 17:43:33.000000000 +0100
+++ syscall.c	2005-02-28 00:00:57.000000000 +0100
@@ -2519,10 +2519,10 @@ struct tcb *tcp;
 #elif defined(SH)
 	if (upeek(tcp->pid, 4*(REG_REG0+1), &val) < 0)
 		return -1;
-#endif /* SPARC || SPARC64 */
 #elif defined(IA64)
 	if (upeek(tcp->pid, PT_R9, &val) < 0)
 		return -1;
+#endif /* SPARC || SPARC64 */
 #endif /* LINUX */
 
 #ifdef SUNOS4

-- 
Andreas Schwab, SuSE Labs, schwab at suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




More information about the Strace-devel mailing list