patch-1.3.26 linux/include/asm-i386/ptrace.h

Next file: linux/include/asm-i386/shmparam.h
Previous file: linux/include/asm-i386/i82489.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.25/linux/include/asm-i386/ptrace.h linux/include/asm-i386/ptrace.h
@@ -45,6 +45,7 @@
 
 #ifdef __KERNEL__
 #define user_mode(regs) ((VM_MASK & (regs)->eflags) || (3 & (regs)->cs))
+#define instruction_pointer(regs) ((regs)->eip)
 extern void show_regs(struct pt_regs *);
 #endif
 

FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected] with Sam's (original) version
of this