[parisc-linux-cvs] fix single stepping under 64 bit kernel
Richard Hirst
rhirst@linuxcare.com
Thu, 1 Mar 2001 12:34:40 +0000
This patch makes ptrace single step and branch step work under a 64
bit kernel. Peviously only tracing of syscalls worked.
Hmm, maybe I should have made struct pa_psw a set of bit fields in
an unsigned long instead, with the top 32 bits ifdef __LP64__ ...
Richard
RCS file: /home/cvs/parisc/linux/include/asm-parisc/system.h,v
retrieving revision 1.13
diff -u -r1.13 system.h
--- system.h 2001/01/25 00:03:08 1.13
+++ system.h 2001/03/01 12:19:14
@@ -35,7 +35,11 @@
unsigned int i:1;
};
+#ifdef __LP64__
+#define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW + 4))
+#else
#define pa_psw(task) ((struct pa_psw *) ((char *) (task) + TASK_PT_PSW))
+#endif
struct task_struct;