From: Thiago Jung Bauermann <bauerman@br.ibm.com>
To: Craig Miller <millerexpedition@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: catch-throw conditions?
Date: Fri, 22 Feb 2008 14:20:00 -0000 [thread overview]
Message-ID: <1203686717.9433.100.camel@localhost.localdomain> (raw)
In-Reply-To: <19143cfb0802211124k275f8f7bi765154764f42ba0@mail.gmail.com>
On Thu, 2008-02-21 at 11:24 -0800, Craig Miller wrote:
> Does anyone know if there is a way to set a condition on breakpoints
> created using the "catch throw" command? Specifically to be able to
> only cause a break when a specific C++ Exception is thrown?
>
> CentOS 4.5
> gdb Red Hat Linux (6.3.0.0-1.143.el4rh)
> gcc 3.4.6
>
> Thanks for any help you might be able to lend. I've hit a dead end
> with google and the GDB docs.
I have absolutely no experience with gdb's C++ support, but I saw with
"help catch" that gdb 6.7.1 (the current GDB release) has this command:
catch throw <exceptname> - a particular exception, when thrown
Is it available in your GDB version (which is very old, BTW)? If not, I
suggest obtaining the new GDB and trying it out.
--
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
next prev parent reply other threads:[~2008-02-22 13:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-21 19:46 Craig Miller
2008-02-22 11:28 ` Andrew STUBBS
2008-02-22 14:20 ` Thiago Jung Bauermann [this message]
2008-02-22 14:25 ` Daniel Jacobowitz
2008-02-22 16:48 ` Daniel Jacobowitz
2008-02-22 17:45 ` Doug Evans
2008-02-22 18:59 ` Daniel Jacobowitz
2008-02-22 19:51 ` Adrian Jones
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=1203686717.9433.100.camel@localhost.localdomain \
--to=bauerman@br.ibm.com \
--cc=gdb@sourceware.org \
--cc=millerexpedition@gmail.com \
/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