This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: SIGILL on gdbserver/ARM/uclibc


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Daniel Jacobowitz wrote:
> On Mon, Jan 07, 2008 at 11:30:42AM +0100, Harald SchiÃberg wrote:
>> I'm getting SIGILL after a breakpoint on the target.
> 
> Figure out what instruction GDB is inserting, by using "set debug
> remote 1" and watching the memory writes.  Try running that
> instruction using asm("") on your target.  If it doesn't generate a
> SIGTRAP, then either GDB is confused and using the wrong instruction,
> or your kernel is confused and generating the wrong signal.

uhm, where do I find some info about reading the debug output.


(gdb) set debug remote 1
(gdb) set sysroot /data/harald/root/
(gdb) target remote 172.17.2.190:4000
Remote debugging using 172.17.2.190:4000
Sending packet: $qSupported#37...Ack
Packet received:
PacketSize=7cf;QPassSignals+;qXfer:libraries:read+;qXfer:auxv:read+
Packet qSupported (supported-packets) is supported
Sending packet: $Hc-1#09...Ack
Packet received: E01
Sending packet: $qC#b4...Ack
Packet received: QC902
Sending packet: $qOffsets#4b...Ack
Packet received:
Sending packet: $?#3f...Ack
Packet received: T050b:00000000;0d:be968e10;0f:400009d0;
Sending packet: $m10668,4#d2...Ack
Packet received: 00000000
Sending packet: $m10668,4#d2...Ack
Packet received: 00000000
Sending packet: $m10668,4#d2...Ack
Packet received: 00000000
warning: no loadable sections found in added symbol-file
/data/harald/root/lib/ld-uClibc
.so.0
Sending packet: $qSymbol::#5b...Ack
Packet received: OK
Packet qSymbol (symbol-lookup) is supported
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
Sending packet: $qXfer:auxv:read::0,7ca#a5...Ack
Packet received:
l\000\000\000\020\000\000\000\223\000\000\000\006\000\000\020\000\000\0
00\000\021\000\000\000d\000\000\000\003\000\000\2004\000\000\000\004\000\000\000
\000\00
0\000\005\000\000\000\006\000\000\000\a@\000\000\000\000\000\000\b\000\000\000\000\000\0
00\000\t\000\000\204L\000\000\000\013\000\000\000\000\000\000\000\f\000\000\000\000\000\
000\000\r\000\000\000\000\000\000\000\016\000\000\000\000\000\000\000\027\000\000\000\00
0\000\000\000\017ï\226\216ï000\000\000\000\000\000\000\000
Sending packet: $m400009d0,4#8e...Ack
Packet received: e1a0000d
Sending packet: $m400009cc,4#c0...Ack
Packet received: 00000000
Sending packet: $m400009d0,4#8e...Ack
Packet received: e1a0000d
Sending packet: $m400009cc,4#c0...Ack
Packet received: 00000000
Sending packet: $m400009d0,4#8e...Ack
Packet received: e1a0000d
Sending packet: $m400009d0,4#8e...Ack
Packet received: e1a0000d
Sending packet: $m400009d0,4#8e...Ack
Packet received: e1a0000d
0x400009d0 in ?? ()
Sending packet: $qSymbol::#5b...Ack
Packet received: OK
(gdb) b main
Breakpoint 1 at 0x8570: file hello.c, line 6.
(gdb) c
Continuing.
Sending packet: $Z0,844c,4#19...Ack
Packet received:
Packet Z0 (software-breakpoint) is NOT supported
Sending packet: $m844c,4#d0...Ack
Packet received: e3a0b000
Sending packet: $X844c,0:#f1...Ack
Packet received: OK
binary downloading suppported by target
Sending packet: $X844c,4:ï237\000\001#84...Ack
Packet received: OK
Sending packet: $m8570,4#a1...Ack
Packet received: e3a03000
Sending packet: $X8570,4:ï237\000\001#55...Ack
Packet received: OK
Sending packet: $QPassSignals:e;10;14;17;1a;1b;1c;21;24;25;4c;#8f...Ack
Packet received: OK
Sending packet: $vCont?#49...Ack
Packet received: vCont;c;C;s;S
Packet vCont (verbose-resume) is supported
Sending packet: $vCont;c#a8...Ack
Packet received: T040b:be968d8c;0d:be968d7c;0f:00008574;

Program received signal SIGILL, Illegal instruction.
Sending packet: $X844c,4:ã\000#28...Ack
Packet received: OK
Sending packet: $X8570,4:ï\000#79...Ack
Packet received: OK
Sending packet: $m8574,4#a5...Ack
Packet received: e50b3010
Sending packet: $m8570,4#a1...Ack
Packet received: e3a03000
Sending packet: $m8574,4#a5...Ack
Packet received: e50b3010
Sending packet: $m8570,4#a1...Ack
Packet received: e3a03000
Sending packet: $m8574,4#a5...Ack
Packet received: e50b3010
Sending packet: $m8574,4#a5...Ack
Packet received: e50b3010
Sending packet: $m8574,4#a5...Ack
Packet received: e50b3010
0x00008574 in main () at hello.c:6
6               for (i=0; i< 10; i++)



> 
>> (gdb)  target remote 172.17.2.190:4000
>> Remote debugging using 172.17.2.190:4000
>> warning: Unable to find dynamic linker breakpoint function.
>> GDB will be unable to debug shared library initializers
>> and track explicitly loaded dynamic code.
> 
> See "set sysroot".




	

- --
Harald SchiÃberg
Technische UniversitÃt Berlin | T-Laboratories | FG INET
www: http://www.net.t-labs.tu-berlin.de
Phone: +49-(0)30-8353-58476 | Fax: +49-(0)391 534 783 47
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHgi3hJgyxs71kcx4RAhGvAJ0dTieY5HPoeweCfJH9uy7k9kdldwCeMaYm
iPW0o4cblWFWUEONRF1GyhY=
=8jbK
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]