This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [9/10] RFC: implement the $_exception convenience variable
- From: Tom Tromey <tromey at redhat dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 15 Apr 2013 11:13:28 -0600
- Subject: Re: [9/10] RFC: implement the $_exception convenience variable
- References: <874ngojjj9 dot fsf at fleche dot redhat dot com> <83ehfr21c5 dot fsf at gnu dot org>
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Tom> This patch introduces a new $_exception convenience variable, which is
Tom> valid at exception catchpoints. The libstdc++ SDT probes are needed for
Tom> this, as only they expose the information needed to compute the
Tom> exception object -- namely, a pointer to the data, and also the
Tom> corresponding std::type_info object.
Eli> Can we tell somewhere in the docs starting with which version of
Eli> libstdc++ this will work?
Sure, how about this?
Tom
* gdb.texinfo (Set Catchpoints): Mention earliest version of
GCC that has the SDT probe points.
---
gdb/doc/gdb.texinfo | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 337837e..47b1188 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -4101,6 +4101,9 @@ supported.
The regular expression feature and the @code{$_exception} convenience
variable rely on the presence of some SDT probes in @code{libstdc++}.
If these probes are not present, then these features cannot be used.
+These probes were first available in the GCC 4.8 release, but whether
+or not they are available in your GCC also depends on how it was
+built.
@item
The @code{$_exception} convenience variable is only valid at the
--
1.8.1.4