This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [9/10] RFC: implement the $_exception convenience variable


> 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]