From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28972 invoked by alias); 17 Nov 2004 23:08:17 -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 28954 invoked from network); 17 Nov 2004 23:08:12 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 17 Nov 2004 23:08:12 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1CUYuB-0005xu-M1; Wed, 17 Nov 2004 18:08:03 -0500 Date: Wed, 17 Nov 2004 23:23:00 -0000 From: Daniel Jacobowitz To: Chris Stankevitz Cc: gdb@sources.redhat.com Subject: Re: Breaking exceptions before stack unwind Message-ID: <20041117230803.GC22472@nevyn.them.org> Mail-Followup-To: Chris Stankevitz , gdb@sources.redhat.com References: <419A5E71.8030304@stankevitz.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <419A5E71.8030304@stankevitz.com> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-11/txt/msg00187.txt.bz2 On Tue, Nov 16, 2004 at 12:09:21PM -0800, Chris Stankevitz wrote: > > According to the GDB documentation, you can tell gdb to break on all > exceptions with this command: > break __raise_exception > > This does not work for me (not defined). Others suggested this: > break __cp_push_exception > > That doesn't work for me either (not defined). > > I have two questions: > > 1. Why don't either of those two options work for me? Obsolete documentation. > 2. What can I use to break on exceptions before the stack is unwound? You didn't say what your target is, or what your compiler is, or what your version of GDB is. From this: > U __cxa_begin_catch@@CXXABI_1.2 I recommend you try the GDB command "catch throw". -- Daniel Jacobowitz