From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26548 invoked by alias); 9 Dec 2011 17:17:33 -0000 Received: (qmail 26534 invoked by uid 22791); 9 Dec 2011 17:17:31 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Dec 2011 17:17:18 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RZ44S-00013z-F0 from pedro_alves@mentor.com ; Fri, 09 Dec 2011 09:17:16 -0800 Received: from scottsdale.localnet ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 9 Dec 2011 17:17:14 +0000 From: Pedro Alves To: Joel Brobecker Subject: Re: [PATCH] gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp and unsupported catchpoints Date: Fri, 09 Dec 2011 17:20:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: Tom Tromey , gdb-patches@sourceware.org References: <201112061718.50031.pedro@codesourcery.com> <20111207220119.GD21915@adacore.com> In-Reply-To: <20111207220119.GD21915@adacore.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201112091717.12970.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2011-12/txt/msg00298.txt.bz2 On Wednesday 07 December 2011 22:01:19, Joel Brobecker wrote: > (to answer Pedro's questions, the files in question are libgnat.a and > libgnat.so) > > > Fedora strips everything to a separate debuginfo file in an automated > > way. There might be an exception for one library, but last time I asked > > about this, I was told that exceptions are a pain and could we please do > > something else. Also, the granularity of debuginfo packages is quite > > large. > > I can see the reason for this, but it is kind of a pain for Ada. > I believe the makefiles already build the runtime without debugging > info except for the few files that we need (I think it's basically > a-tags.adb and a-except.adb)... > > > If you can make it so this can work without debuginfo somehow, that > > would be much better for users. > > The problem is that we need to get to the argument of function we are > breaking on in order to determine which exception has been raised. > That's where we really need the debug info. I think I even added > a comment about that in the code... GDB knows the target's function call ABI (for infcalls), and supposedly this function's prototype is cast in stone as part of the ABI too. GDB could just know where to get the arguments from? You'd still need minimal symbols in libgnat, but that doesn't look much different from needing minimal symbols for libpthread, from the packager's perspective -- it should be simpler than caring about stripping the library except a couple objects, due to size considerations. -- Pedro Alves