From: Phil Muldoon <pmuldoon@redhat.com>
To: gdb@sourceware.org
Subject: help catch catch and help catch throw help text
Date: Thu, 23 Jul 2009 10:41:00 -0000 [thread overview]
Message-ID: <4A683E49.4000204@redhat.com> (raw)
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
next reply other threads:[~2009-07-23 10:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-23 10:41 Phil Muldoon [this message]
2009-07-23 18:39 ` Phil Muldoon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A683E49.4000204@redhat.com \
--to=pmuldoon@redhat.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox