Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* help catch catch and help catch throw help text
@ 2009-07-23 10:41 Phil Muldoon
  2009-07-23 18:39 ` Phil Muldoon
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Muldoon @ 2009-07-23 10:41 UTC (permalink / raw)
  To: gdb

Both catch catch, and catch throw refer to an optional argument:

(gdb) help catch catch
Catch an exception, when caught.
With an argument, catch only exceptions with the given name.

(gdb) help catch throw
Catch an exception, when thrown.
With an argument, catch only exceptions with the given name.

But specifying an argument, on both you get:

(gdb) catch catch foo
Junk at end of arguments.

(gdb) catch throw foo
Junk at end of arguments.

I looked at the code and while they support conditions, they do not 
appear to support named exceptions. These functions call 
handle_gnu_v3_exceptions which basically set a breakpoint on 
__cxa_begin_catch, or __cxa_throw depending on the command.

Before I submit a documentation patchlet to remove the reference to 
catching named exceptions, are there other cases languages/conditions 
that I have not considered?

Regards

Phil


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-07-23 18:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-23 10:41 help catch catch and help catch throw help text Phil Muldoon
2009-07-23 18:39 ` Phil Muldoon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox