From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9966 invoked by alias); 7 Sep 2004 12:02:12 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9864 invoked from network); 7 Sep 2004 12:02:07 -0000 Received: from unknown (HELO web61204.mail.yahoo.com) (216.155.196.128) by sourceware.org with SMTP; 7 Sep 2004 12:02:07 -0000 Message-ID: <20040907120204.43421.qmail@web61204.mail.yahoo.com> Received: from [81.80.165.125] by web61204.mail.yahoo.com via HTTP; Tue, 07 Sep 2004 05:02:04 PDT Date: Tue, 07 Sep 2004 12:02:00 -0000 From: Thierry Subject: GDB 6.2 for ARM: bug in backtrace when in Thumb mode To: gdb@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00049.txt.bz2 Hi there, I'm trying to debug an application compiled for the ARM in Thumb mode. The 'backtrace' command seems buggy as soon as there are more than 4 levels in the stack. Besides, with the same code compiled in ARM mode, it works perfectly. Here's an example: void dummy2(int a) { int b; b = a; } void dummy1(void) { dummy2(4); } void dummy(void) { dummy1(); } In my 'main', I call 'dummy()'. When I go step-by-step until I step into 'dummy2', the 'bt' command gives the following result: #0 dummy2 (a=4) at MainModule/src/dummy.c:4 #1 0xc000039c in dummy1 () at MainModule/src/dummy.c:9 #2 0x00000000 in ?? () which is wrong! The files have been compiled with arm-elf-gcc with the following options: -ggdb -gdwarf-2 -c -mapcs -fomit-frame-pointer -mthumb -mthumb-interwork -mlong-calls -fsigned-char -mstructure-size-boundary=8 -fshort-enums When I remove the option '-fomit-frame-pointer', it works. Any idea? Thanks in advance for your help, Thierry __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail