public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15176] New: provide convenience variable holding exception object
@ 2013-02-22 19:47 tromey at redhat dot com
2013-02-27 18:21 ` [Bug c++/15176] " tromey at redhat dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-02-22 19:47 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15176
Bug #: 15176
Summary: provide convenience variable holding exception object
Product: gdb
Version: unknown
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: tromey@redhat.com
Classification: Unclassified
For conditional "catch catch" and "catch throw"s, it would
be nice to have a convenience variable that holds the current
exception object. Something like:
catch throw if $_exception == 57
This is maybe related to PR 13588 -- if we go the probe
point route, the probe should expose this information as well.
The ideal thing would be to use the typeinfo to construct
an object of the right type in gdb.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15176] provide convenience variable holding exception object
2013-02-22 19:47 [Bug c++/15176] New: provide convenience variable holding exception object tromey at redhat dot com
@ 2013-02-27 18:21 ` tromey at redhat dot com
2013-04-15 18:09 ` cvs-commit at gcc dot gnu.org
2013-04-15 18:16 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-02-27 18:21 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15176
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware |tromey at redhat dot com
|dot org |
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-02-27 18:21:11 UTC ---
Testing a patch.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15176] provide convenience variable holding exception object
2013-02-22 19:47 [Bug c++/15176] New: provide convenience variable holding exception object tromey at redhat dot com
2013-02-27 18:21 ` [Bug c++/15176] " tromey at redhat dot com
@ 2013-04-15 18:09 ` cvs-commit at gcc dot gnu.org
2013-04-15 18:16 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2013-04-15 18:09 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15176
--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-04-15 18:09:04 UTC ---
CVSROOT: /cvs/src
Module name: src
Changes by: tromey@sourceware.org 2013-04-15 18:09:02
Modified files:
gdb : ChangeLog NEWS break-catch-throw.c cp-abi.c
cp-abi.h gnu-v3-abi.c
gdb/doc : ChangeLog gdb.texinfo
gdb/testsuite : ChangeLog
gdb/testsuite/gdb.base: default.exp
gdb/testsuite/lib: gdb.exp
Added files:
gdb/testsuite/gdb.cp: exceptprint.cc exceptprint.exp
Log message:
PR c++/15176:
* NEWS: Update.
* break-catch-throw.c (compute_exception): New function.
(exception_funcs): New global.
(_initialize_break_catch_throw): Create $_exception.
* cp-abi.c (cplus_type_from_type_info): New function.
* cp-abi.h (cplus_type_from_type_info): Declare.
(struct cp_abi_ops) <get_type_from_type_info>: New field.
* gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
(gnuv3_get_type_from_type_info): New functions.
(init_gnuv3_ops): Set get_type_from_type_info ABI field.
gdb/doc
* gdb.texinfo (Set Catchpoints): Document $_exception.
(Convenience Vars): Mention $_exception.
gdb/testsuite
* gdb.base/default.exp: Update for $_exception.
* gdb.cp/exceptprint.cc: New file.
* gdb.cp/exceptprint.exp: New file.
* lib/gdb.exp (skip_libstdcxx_probe_tests): New proc.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15416&r2=1.15417
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.589&r2=1.590
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/break-catch-throw.c.diff?cvsroot=src&r1=1.3&r2=1.4
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-abi.c.diff?cvsroot=src&r1=1.41&r2=1.42
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/cp-abi.h.diff?cvsroot=src&r1=1.26&r2=1.27
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/gnu-v3-abi.c.diff?cvsroot=src&r1=1.83&r2=1.84
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1445&r2=1.1446
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.1079&r2=1.1080
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3625&r2=1.3626
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/default.exp.diff?cvsroot=src&r1=1.63&r2=1.64
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/exceptprint.cc.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/exceptprint.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/lib/gdb.exp.diff?cvsroot=src&r1=1.228&r2=1.229
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/15176] provide convenience variable holding exception object
2013-02-22 19:47 [Bug c++/15176] New: provide convenience variable holding exception object tromey at redhat dot com
2013-02-27 18:21 ` [Bug c++/15176] " tromey at redhat dot com
2013-04-15 18:09 ` cvs-commit at gcc dot gnu.org
@ 2013-04-15 18:16 ` tromey at redhat dot com
2 siblings, 0 replies; 4+ messages in thread
From: tromey at redhat dot com @ 2013-04-15 18:16 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15176
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |7.7
--- Comment #3 from Tom Tromey <tromey at redhat dot com> 2013-04-15 18:16:57 UTC ---
Fix checked in.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-15 18:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-22 19:47 [Bug c++/15176] New: provide convenience variable holding exception object tromey at redhat dot com
2013-02-27 18:21 ` [Bug c++/15176] " tromey at redhat dot com
2013-04-15 18:09 ` cvs-commit at gcc dot gnu.org
2013-04-15 18:16 ` tromey at redhat dot com
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).