From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9272 invoked by alias); 9 Dec 2011 18:00:26 -0000 Received: (qmail 9244 invoked by uid 22791); 9 Dec 2011 18:00:22 -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 18:00:08 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RZ4jt-0004ol-Vr from pedro_alves@mentor.com ; Fri, 09 Dec 2011 10:00:06 -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 18:00:03 +0000 From: Pedro Alves To: Tom Tromey Subject: Re: [PATCH] gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp and unsupported catchpoints Date: Fri, 09 Dec 2011 18:13:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-13-generic; KDE/4.7.2; x86_64; ; ) Cc: Joel Brobecker , gdb-patches@sourceware.org References: <201112061718.50031.pedro@codesourcery.com> <201112091717.12970.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201112091800.02236.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/msg00304.txt.bz2 On Friday 09 December 2011 17:43:40, Tom Tromey wrote: > >>>>> "Pedro" == Pedro Alves writes: > > Joel> The problem is that we need to get to the argument of function we are > Joel> breaking on in order to determine which exception has been raised. > Joel> That's where we really need the debug info. I think I even added > Joel> a comment about that in the code... > > Pedro> GDB knows the target's function call ABI (for infcalls), and supposedly > Pedro> this function's prototype is cast in stone as part of the ABI too. > Pedro> GDB could just know where to get the arguments from? > > Yeah, it could be done. Right now though the knowledge in GDB is in a > form that is specific to making infcalls, not decoding them. So, adding > this functionality would be a significant amount of work, and also > non-trivial to test. I count 51 calls to set_gdbarch_push_dummy_call in > the tree... > But _only_ 45 unique callbacks. $ grep set_gdbarch_push_dummy_call *-tdep.c | sed 's/.*arch, //g; s/);//g' | sort | uniq | wc -l 45 :-D Kidding aside, obviously we wouldn't need to convert everything at once. We could even get away with only handling the simpler prototypes we care about at first. -- Pedro Alves