Jivin Teun Grinwis lays it down ...
> 
> Hello all,
> 
> I use uClinux distribution 20070130 patched to version 2.16.21-uc0 on
> MCF5208 uP,
> with flash file jffs2.
> 
> My user application is sometimes killed by uClinux.
> 
> I like to see some userstack trace.
> 
> I set print core dump in the kernel configuration, but compilation failed
> see below:
> 
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      vmlinux
> fs/built-in.o(.text+0x5c1a): In function `do_coredump':
> : undefined reference to `user_stack'
> make[1]: *** [vmlinux] Error 1
> make[1]: Leaving directory `/home/teun/uClinux/dist-20070130/linux-2.6.x'
> make: *** [linux] Error 1
> 
> One more question, can I catch the signal, which the Kernel is sending to
> the application??

Try the following (from 2.4)

Cheers,
Davidm

Index: linux-2.6.x/include/asm-m68knommu/ptrace.h
===================================================================
RCS file: linux-2.6.x/include/asm-m68knommu/ptrace.h,v
retrieving revision 1.5
diff -u -r1.5 ptrace.h
--- linux-2.6.x/include/asm-m68knommu/ptrace.h  20 Jun 2006 05:33:14 -0000      
1.5
+++ linux-2.6.x/include/asm-m68knommu/ptrace.h  4 Apr 2008 03:23:15 -0000
@@ -83,6 +83,8 @@
 #define user_mode(regs) (!((regs)->sr & PS_S))
 #define instruction_pointer(regs) ((regs)->pc)
 #define profile_pc(regs) instruction_pointer(regs)
+extern unsigned int sw_usp;
+#define user_stack(regs) (sw_usp)
 extern void show_regs(struct pt_regs *);
 #endif /* __KERNEL__ */
 #endif /* __ASSEMBLY__ */


-- 
David McCullough,  [EMAIL PROTECTED],   Ph:+61 734352815
Secure Computing - SnapGear  http://www.uCdot.org http://www.cyberguard.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to