From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23040 invoked by alias); 8 Jul 2004 22:58:13 -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 23029 invoked from network); 8 Jul 2004 22:58:12 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 8 Jul 2004 22:58:12 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1Bihpp-0001Cr-Oq; Thu, 08 Jul 2004 18:57:45 -0400 Date: Thu, 08 Jul 2004 22:58:00 -0000 From: Daniel Jacobowitz To: Alain Magloire Cc: gdb@sources.redhat.com Subject: Re: catching exception in gdb Message-ID: <20040708225744.GA4452@nevyn.them.org> Mail-Followup-To: Alain Magloire , gdb@sources.redhat.com References: <200407082243.SAA06421@smtp.ott.qnx.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200407082243.SAA06421@smtp.ott.qnx.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-07/txt/msg00083.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. "catch catch" and "catch throw" only work without arguments at the moment. -- Daniel Jacobowitz