summaryrefslogtreecommitdiff
blob: 3d857c9c1c57a0cced339557cd9566dd403a9211 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -urN megactl-0.4.1.orig/src/megatrace.c megactl-0.4.1/src/megatrace.c
--- megactl-0.4.1.orig/src/megatrace.c	2007-08-21 09:19:53.000000000 +0200
+++ megactl-0.4.1/src/megatrace.c	2008-02-10 21:27:24.416919438 +0100
@@ -49,7 +49,7 @@
 #include	<signal.h>
 #include	<sys/ptrace.h>
 #include	<sys/wait.h>
-#include	<asm/user.h>
+#include	<sys/user.h>
 #include	<sys/syscall.h>
 #include	<sys/ioctl.h>
 #include	<sys/time.h>
@@ -250,7 +250,7 @@
 			len = sizeof buf;
 
 		    if (printregs)
-			fprintf (stderr, "    ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx ds=%04x __ds=%04x es=%04x __es=%04x fs=%04x __fs=%04x gs=%04x __gs=%04x orig_eax=%08lx eip=%08lx cs=%04x __cs=%04x eflags=%08lx esp=%08lx ss=%04x __ss=%04x\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.ds, r.__ds, r.es, r.__es, r.fs, r.__fs, r.gs, r.__gs, r.orig_eax, r.eip, r.cs, r.__cs, r.eflags, r.esp, r.ss, r.__ss);
+			fprintf (stderr, "    ebx=%08lx ecx=%08lx edx=%08lx esi=%08lx edi=%08lx ebp=%08lx eax=%08lx xds=%08lx xes=%08lx xfs=%08lx xgs=%08lx orig_eax=%08lx eip=%08lx xcs=%08lx eflags=%08lx esp=%08lx xss=%08lx\n", r.ebx, r.ecx, r.edx, r.esi, r.edi, r.ebp, r.eax, r.xds, r.xes, r.xfs, r.xgs, r.orig_eax, r.eip, r.xcs, r.eflags, r.esp, r.xss);
 
 		    copyout (buf, len, pid, r.edx);