[uClinux-dev] gdbserver kills the shell?

Javier Cardona javier at cozybit.com
Fri Oct 21 20:02:30 EDT 2005


I've tried the patch provided by Stuart  
( http://mailman.uclinux.org/pipermail/uclinux-dev/2005-October/034905.html ) 
on a M5275EVB, and the symbols do get relocated to their runtime addresses, 
but I'm still having SIGILL signals when stepping through the code:

(gdb) ta re t1:3000
Remote debugging using t1:3000
0x01db0048 in _start ()
(gdb) b f3
Breakpoint 1 at 0x1db0090: file test3.c, line 17.
(gdb) c

Program received signal SIGTRAP, Trace/breakpoint trap.
0x01db0092 in f3 () at test3.c:17
17              printf("this is f3()\n");
(gdb) si
0x01db0094      17              printf("this is f3()\n");
0x01db0098      17              printf("this is f3()\n");
0x01db009a      17              printf("this is f3()\n");

Program received signal SIGILL, Illegal instruction.
0x01db009a in f3 () at test3.c:17
17              printf("this is f3()\n");

Also, I had to modify the makefile that's part of to compile the code.  I'm 
posting my changes here in case they are useful to anyone.

--- uClinux-dist/user/gdb.orig/makefile 2005-10-21 13:25:24.000000000 -0700
+++ uClinux-dist/user/gdb/makefile      2005-10-21 16:36:30.475658184 -0700
@@ -5,13 +5,13 @@
 build/build: makefile
        rm -rf build
        mkdir build
-       (cd build; ../gdb/gdbserver/configure --target=$(CROSS_COMPILE:-=))
+       (cd build; ../gdb/gdbserver/configure 
        touch build/build

 host/build: makefile
        rm -rf host
        mkdir host
-       (cd host; CC= CFLAGS= ../configure --target=$(CROSS_COMPILE:-=))
+       (cd host; CC= CFLAGS= LDFLAGS= ../configure 
        touch host/build



Javier Cardona
cozybit Inc.

More information about the uClinux-dev mailing list