From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2824 invoked by alias); 8 Jul 2004 23:18:52 -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 2812 invoked from network); 8 Jul 2004 23:18:51 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 8 Jul 2004 23:18:51 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id SAA10801 for ; Thu, 8 Jul 2004 18:38:39 -0400 Received: (from alain@localhost) by smtp.ott.qnx.com (8.8.8/8.6.12) with UUCP id TAA23257 for gdb@sources.redhat.com; Thu, 8 Jul 2004 19:18:50 -0400 Message-Id: <200407082318.TAA23257@smtp.ott.qnx.com> Subject: Re: catching exception in gdb To: drow@false.org (Daniel Jacobowitz) Date: Thu, 08 Jul 2004 23:18:00 -0000 From: "Alain Magloire" Cc: alain@qnx.com (Alain Magloire), gdb@sources.redhat.com In-Reply-To: <20040708225744.GA4452@nevyn.them.org> from "Daniel Jacobowitz" at Jul 08, 2004 06:57:45 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00085.txt.bz2 > > On Thu, Jul 08, 2004 at 06:43:17PM -0400, Alain Magloire wrote: > > > > Bonjour > > > > As suggested in the gdb doc, I was doing some hackish stuff in gdb-5.x to get catching exception working > > in the eclipse CDT IDE. Using the C++ ABI and putting a "hidden" breakpoint in the "__cxa_xxx" functions. > > So far so good, but once stop how to extract the class deep in the internal of the ABI. > > I could not fine any ABI functions to do this nor walking through the arguments. > > > > Any suggestions ? > > > > gdb-6.x commands > > catch throw - a particular exception, when thrown > > catch catch - a particular exception, when caught > > do not seem to work > > > > (gdb) catch catch Size > > Junk at end of arguments. > > You can do it with the runtime type information, but I never got around > to implementing it. It's fairly simple. > Sir ... You have my complete attention. I like the sound of "it's fairly simple" ... But I've learned the hard way, nothing is simple when dealing with gdb 8-). So any good pointers ... been hamering away typecasting pointers to get the damn clazz name ... no go. > "catch catch" and "catch throw" only work without arguments at the > moment. > Noted.