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: Eli Zaretskii <eliz at gnu dot org>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 07 Mar 2013 08:03:38 +0200
- Subject: Re: [9/10] RFC: implement the $_exception convenience variable
- References: <874ngojjj9.fsf@fleche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> Date: Wed, 06 Mar 2013 14:38:34 -0700
>
> This patch introduces a new $_exception convenience variable, which is
> valid at exception catchpoints. The libstdc++ SDT probes are needed for
> this, as only they expose the information needed to compute the
> exception object -- namely, a pointer to the data, and also the
> corresponding std::type_info object.
Can we tell somewhere in the docs starting with which version of
libstdc++ this will work?
> 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.texinfo (Set Catchpoints): Document $_exception.
> (Convenience Vars): Mention $_exception.
>
> * 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.
OK for the documentation parts.
Thanks.