This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Breaking exceptions before stack unwind
- From: Daniel Jacobowitz <drow at false dot org>
- To: Chris Stankevitz <chris-01 at stankevitz dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Wed, 17 Nov 2004 18:08:03 -0500
- Subject: Re: Breaking exceptions before stack unwind
- References: <419A5E71.8030304@stankevitz.com>
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