* catching specific exceptions
@ 2011-11-11 20:11 Robert Lupton the Good
2011-11-15 14:57 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Robert Lupton the Good @ 2011-11-11 20:11 UTC (permalink / raw)
To: gdb
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
But I don't think that this works, and the manual doesn't mention the <exceptname> version (instead delving into the gcc specifics of __raise_exception to achieve the same functionality).
So either there's a bug in the help, or in the manual, or both.
R
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: catching specific exceptions
2011-11-11 20:11 catching specific exceptions Robert Lupton the Good
@ 2011-11-15 14:57 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2011-11-15 14:57 UTC (permalink / raw)
To: Robert Lupton the Good; +Cc: gdb
>>>>> "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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-15 14:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-11 20:11 catching specific exceptions Robert Lupton the Good
2011-11-15 14:57 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).