From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9579 invoked by alias); 7 Jan 2008 13:49:53 -0000 Received: (qmail 9566 invoked by uid 22791); 7 Jan 2008 13:49:52 -0000 X-Spam-Check-By: sourceware.org Received: from mail.net.t-labs.tu-berlin.de (HELO mail.net.t-labs.tu-berlin.de) (130.149.220.252) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 07 Jan 2008 13:49:25 +0000 Received: from [130.149.220.17] (crow.net.t-labs.tu-berlin.de [130.149.220.17]) by mail.net.t-labs.tu-berlin.de (Postfix) with ESMTP id 0D6A07012D93; Mon, 7 Jan 2008 14:49:22 +0100 (CET) Message-ID: <47822DE1.10904@net.t-labs.tu-berlin.de> Date: Mon, 07 Jan 2008 13:49:00 -0000 From: =?UTF-8?B?SGFyYWxkIFNjaGnDtmJlcmc=?= User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: =?UTF-8?B?SGFyYWxkIFNjaGnDtmJlcmc=?= , gdb@sourceware.org Subject: Re: SIGILL on gdbserver/ARM/uclibc References: <4781FF52.8080905@net.t-labs.tu-berlin.de> <20080107131504.GA31561@caradoc.them.org> In-Reply-To: <20080107131504.GA31561@caradoc.them.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00035.txt.bz2 -----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-----