From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8474 invoked by alias); 8 Jul 2004 22:43:19 -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 8464 invoked from network); 8 Jul 2004 22:43:19 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sourceware.org with SMTP; 8 Jul 2004 22:43:19 -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 SAA04836 for ; Thu, 8 Jul 2004 18:03:06 -0400 Received: (from alain@localhost) by smtp.ott.qnx.com (8.8.8/8.6.12) with UUCP id SAA06421 for gdb@sources.redhat.com; Thu, 8 Jul 2004 18:43:17 -0400 Message-Id: <200407082243.SAA06421@smtp.ott.qnx.com> Subject: catching exception in gdb To: gdb@sources.redhat.com Date: Thu, 08 Jul 2004 22:43:00 -0000 From: "Alain Magloire" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2004-07/txt/msg00082.txt.bz2 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.