This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: catching specific exceptions
- From: Tom Tromey <tromey at redhat dot com>
- To: Robert Lupton the Good <rhl at astro dot princeton dot edu>
- Cc: gdb at sourceware dot org
- Date: Tue, 15 Nov 2011 07:57:20 -0700
- Subject: Re: catching specific exceptions
- References: <DF275F7B-3B0F-42C5-BE44-8D287EA8338B@astro.princeton.edu>
>>>>> "Robert" == Robert Lupton the Good <rhl@astro.princeton.edu> writes:
Robert> The online help (gdb 7.3) says:
>> Raised exceptions may be caught:
>> catch throw - all exceptions, when thrown
>> catch throw <exceptname> - a particular exception, when thrown
>> catch catch - all exceptions, when caught
>> catch catch <exceptname> - a particular exception, when caught
Robert> But I don't think that this works, and the manual doesn't mention the
Robert> <exceptname> version (instead delving into the gcc specifics of
Robert> __raise_exception to achieve the same functionality).
Robert> So either there's a bug in the help, or in the manual, or both.
This feature was documented but never implemented.
I think it would be a good feature to have. Here's the bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=9598
Tom