From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7998 invoked by alias); 8 Oct 2010 13:28:03 -0000 Received: (qmail 7988 invoked by uid 22791); 8 Oct 2010 13:28:02 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 08 Oct 2010 13:27:53 +0000 Received: (qmail 9497 invoked from network); 8 Oct 2010 13:27:51 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Oct 2010 13:27:51 -0000 Date: Fri, 08 Oct 2010 13:28:00 -0000 From: Daniel Jacobowitz To: Ulrich Weigand Cc: matthew.gretton-dann@arm.com, rearnsha@arm.com, gdb-patches@sourceware.org Subject: Re: [rfa] ARM prologue parsing support for Thumb-2 instructions Message-ID: <20101008132747.GO23776@caradoc.them.org> References: <20100719141029.GI6088@caradoc.them.org> <201010081254.o98CsxQj011545@d12av02.megacenter.de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201010081254.o98CsxQj011545@d12av02.megacenter.de.ibm.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-10/txt/msg00137.txt.bz2 On Fri, Oct 08, 2010 at 02:54:59PM +0200, Ulrich Weigand wrote: > I've finally gotten around to finish my implementation of this. Thanks for doing this! > All these are caused by failures to parse the prologues of hand-written > *ARM* assembler routines in glibc (system call handlers like nanosleep). > These simply deviate too far from the usual rules (e.g. by intermixing > stack saving/restoring of registers with conditional branches, or by > temporarily saving registers into other registers instead of the stack) > for the ARM prologue parser to be able to handle them. > > It seems to me that there is not much sense in attempting to support > even this type of code. I guess we should strongly recommend to have > (at least) glibc debuginfo files installed if you want to debug. I agree with your conclusion. It's just not worthwhile; either install debuginfo files, or leave .debug_frame in the stripped libraries. -- Daniel Jacobowitz CodeSourcery