[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: notes on riscpc install



On Fri, Apr 05, 2002 at 11:11:03PM +0100, Philip Blundell wrote:
> Strace doesn't appear to behave properly.  It just displays the first
> "execve" line, and then nothing further (though the inferior runs to
> completion as normal).  An identical strace binary seems to work OK on
> one of my other machines, so perhaps this is a kernel problem of some
> kind.

Ok, this should fix the ptrace bug - please test and let me know.
(I've not tested it myself).

diff -ur ref/arch/arm/lib/getconsdata.c linux/arch/arm/lib/getconsdata.c
--- ref/arch/arm/lib/getconsdata.c	Sat Jan  8 18:49:58 2000
+++ linux/arch/arm/lib/getconsdata.c	Sat Apr  6 16:52:22 2002
@@ -27,6 +27,7 @@
 
 unsigned long TSK_STATE = OFF_TSK(state);
 unsigned long TSK_FLAGS = OFF_TSK(flags);
+unsigned long TSK_PTRACE = OFF_TSK(ptrace);
 unsigned long TSK_NEED_RESCHED = OFF_TSK(need_resched);
 unsigned long TSK_SIGPENDING = OFF_TSK(sigpending);
 unsigned long TSK_USED_MATH = OFF_TSK(used_math);
diff -ur ref/arch/arm/kernel/entry-common.S linux/arch/arm/kernel/entry-common.S
--- ref/arch/arm/kernel/entry-common.S	Mon Apr  9 21:20:46 2001
+++ linux/arch/arm/kernel/entry-common.S	Sat Apr  6 16:52:36 2002
@@ -101,7 +101,7 @@
 		bcs	2f
 
 		get_current_task r7
-		ldr	ip, [r7, #TSK_FLAGS]	@ check for syscall tracing
+		ldr	ip, [r7, #TSK_PTRACE]	@ check for syscall tracing
 		adr	r5, SYMBOL_NAME(sys_call_table)
 		tst	ip, #PF_TRACESYS
 		ldreq	pc, [r5, r6, lsl #2]	@ call sys routine


-- 
To UNSUBSCRIBE, email to debian-arm-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: