This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: RFC: add some static probes to libstdc++
- From: Tom Tromey <tromey at redhat dot com>
- To: libstdc <libstdc++ at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Mar 2013 12:43:50 -0600
- Subject: Re: RFC: add some static probes to libstdc++
- References: <87sj4hzap2.fsf@fleche.redhat.com> <512F4E5C.8050400@gmail.com> <87a9qozc7h.fsf@fleche.redhat.com>
Tom> 2013-02-27 Tom Tromey <tromey@redhat.com>
Tom> * libsupc++/unwind-cxx.h: Include sys/sdt.h if detected.
Tom> (PROBE2): New macro.
Tom> * libsupc++/eh_throw.cc (__cxa_throw, __cxa_rethrow): Add probe.
Tom> * libsupc++/eh_catch.cc (__cxa_begin_catch): Add probe.
Tom> * configure.ac: Check for sys/sdt.h.
Tom> * configure, config.h.in: Rebuild.
FWIW the gdb patches relying on this have all been submitted.
They are pending comments, but also this patch going in.
In particular:
Using the probes in gdb:
http://sourceware.org/ml/gdb-patches/2013-03/msg00242.html
Using the probes to implement the $_exception convenience variable:
http://sourceware.org/ml/gdb-patches/2013-03/msg00243.html
Using the probes to implement filtering for exception catchpoints:
http://sourceware.org/ml/gdb-patches/2013-03/msg00245.html
Tom