This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: catching exception in gdb
- From: Daniel Jacobowitz <drow at false dot org>
- To: Alain Magloire <alain at qnx dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 8 Jul 2004 18:57:45 -0400
- Subject: Re: catching exception in gdb
- References: <200407082243.SAA06421@smtp.ott.qnx.com>
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 <exceptname> - a particular exception, when thrown
> catch catch <exceptname> - 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