From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3163 invoked by alias); 16 Jul 2010 17:03:46 -0000 Received: (qmail 3031 invoked by uid 22791); 16 Jul 2010 17:03:44 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate3.de.ibm.com (HELO mtagate3.de.ibm.com) (195.212.17.163) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Jul 2010 17:03:38 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate3.de.ibm.com (8.13.1/8.13.1) with ESMTP id o6GH3YkE015189 for ; Fri, 16 Jul 2010 17:03:34 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o6GH3Y2e1761420 for ; Fri, 16 Jul 2010 19:03:34 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id o6GH3YuH011067 for ; Fri, 16 Jul 2010 19:03:34 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id o6GH3XoP011062; Fri, 16 Jul 2010 19:03:33 +0200 Message-Id: <201007161703.o6GH3XoP011062@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 16 Jul 2010 19:03:33 +0200 Subject: ARM prologue parsing support for Thumb-2 instructions? To: gdb@sourceware.org Date: Fri, 16 Jul 2010 17:03:00 -0000 From: "Ulrich Weigand" Cc: rearnsha@arm.com, dan@codesourcery.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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: 2010-07/txt/msg00060.txt.bz2 Hello, in testing GDB on an armv7l-linux-gnueabi board running Ubuntu Maverick I noticed serious problems with getting backtraces out of system libraries. Looking into this, it turns out that arm_analyze_prologue appears to have no support at all for decoding Thumb-2 instructions. (There is some support for Thumb-2 in arm_skip_prologue, but not for unwinding.) Since Thumb-2 is the default code generation option on this system, this makes it just about impossible to backtrace out of any code that does not come with debug information. Now I was wondering whether I'm missing something here ... Is this really just something that's simply missing? If so, do you know whether anybody is currently working on adding this support? Otherwise, I could give it a try. Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com