From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12556 invoked by alias); 23 Sep 2008 17:28:48 -0000 Received: (qmail 12544 invoked by uid 22791); 23 Sep 2008 17:28:47 -0000 X-Spam-Check-By: sourceware.org Received: from wa-out-1112.google.com (HELO wa-out-1112.google.com) (209.85.146.183) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 23 Sep 2008 17:28:01 +0000 Received: by wa-out-1112.google.com with SMTP id l24so2271310waf.12 for ; Tue, 23 Sep 2008 10:27:59 -0700 (PDT) Received: by 10.114.26.18 with SMTP id 18mr6669822waz.162.1222190879281; Tue, 23 Sep 2008 10:27:59 -0700 (PDT) Received: by 10.115.72.6 with HTTP; Tue, 23 Sep 2008 10:27:59 -0700 (PDT) Message-ID: <8c7950360809231027m64797d8dwfa60be3c164fd80c@mail.gmail.com> Date: Tue, 23 Sep 2008 17:28:00 -0000 From: "Shane Volpe" To: gdb@sourceware.org Subject: gdb backtrace after SIGILL on Xscale (ARM) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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-09/txt/msg00127.txt.bz2 I'm trying to perform a backtrace using gdb after a SIGILL event on an Xscale (ARM) target device. In order to simplify the issue I have wrote a small program (http://en.wikipedia.org/wiki/SIGILL) whose only purpose is to cause a SIGINT. The code is: int main() { unsigned char insn[4] = { 0xff, 0xff, 0xff, 0xff }; void (*function)() = (void (*)()) insn; function(); } I compiled it as follows: gcc -o sigill sigill.c I then run it on my host machine 'Linux, Arch: x86" gdb /home/sigill (gdb) run Starting program: /home/sigill Program received signal SIGILL, Illegal instruction. 0xbf81d400 in ?? () (gdb) bt #0 0xbf81d400 in ?? () #1 0x08048363 in main () Every thing work as expected, I got a backtrace showing me the correct steps. I then compiled the program for my target system "Linux, Arch: Xscale (ARM)" I ran the app and got the following: /home/sigill BFD: /lib/.debug/ld-2.5.so: warning: sh_link not set for section `.ARM.exidx' BFD: /lib/.debug/libc-2.5.so: warning: sh_link not set for section `.ARM.exidx' Program received signal SIGILL, Illegal instruction. 0xbea7fc44 in ?? () (gdb) bt #0 0xbea7fc44 in ?? () (gdb) There is NO real information provided in the backtrace, why is this, what might I be doing wrong? Regards, Shane