PATCH : `-i' option on m68k

Philippe De Muyter phdm at macqel.be
Thu May 12 06:18:06 UTC 2005


Hello,

I wondered why the `-i' option did nothing on my m68k (uclinux) machine.
You'll find a fix for 4.5.11 below.  While fixing that, I also wondered
why `printcall' does not use `getpc'.  That would avoid a duplicate
maintenance effort.

Best regards

Philippe

Philippe De Muyter  phdm at macqel dot be  Tel +32 27029044
Macq Electronique SA  rue de l'Aeronef 2  B-1140 Bruxelles  Fax +32 27029077

2005-05-12  Philippe De Muyter  <phdm at macqel.be>

	* util.c (getpc, printcall): Check #if defined(M68K), not M68k.
	Enables `-i' on m68k machines.

--- util.c	2005-02-06 02:55:07.000000000 +0100
+++ util.c	2005-05-12 14:41:46.000000000 +0200
@@ -984,7 +984,7 @@
 #elif defined(POWERPC)
 	if (upeek(tcp->pid, sizeof(unsigned long)*PT_NIP, &pc) < 0)
 		return -1;
-#elif defined(M68k)
+#elif defined(M68K)
 	if (upeek(tcp->pid, 4*PT_PC, &pc) < 0)
 		return -1;
 #elif defined(ALPHA)
@@ -1094,7 +1094,7 @@
 		return;
 	}
 	tprintf("[%08lx] ", pc);
-#elif defined(M68k)
+#elif defined(M68K)
 	long pc;
 
 	if (upeek(tcp->pid, 4*PT_PC, &pc) < 0) {




More information about the Strace-devel mailing list