This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Regression for gdb.cp/exceptprint.exp [Re: [PATCH v6] Make chained function calls in expressions work]
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Sat, 29 Nov 2014 10:13:38 +0100
- Subject: Re: Regression for gdb.cp/exceptprint.exp [Re: [PATCH v6] Make chained function calls in expressions work]
- Authentication-results: sourceware.org; auth=none
- References: <CAGyQ6gxp5QS7t9C6WxG5pn2Wfzdtj6x2UJrsnD40PW6M7skZ5w at mail dot gmail dot com> <201411281210 dot sASCAQGP013169 at d03av02 dot boulder dot ibm dot com> <CAGyQ6gxFV2tgp64u9+2jsf82FUeenqNDaJQnS2C3zK0xTSBKFQ at mail dot gmail dot com> <20141129082620 dot GA16774 at host2 dot jankratochvil dot net> <CAGyQ6gzZJU554tA6t0ZaCXhT15JeUfNUMqtKgZ2kNy7N0sVE3Q at mail dot gmail dot com>
On Sat, 29 Nov 2014 09:58:54 +0100, Siva Chandra wrote:
> I did not see this because this happens for me:
>
> Running ../../../gdb_git/gdb/testsuite/gdb.cp/exceptprint.exp ...
> UNTESTED: gdb.cp/exceptprint.exp: could not find libstdc++ stap probe
>
> Any idea how to enable this test?
The most simple way is IMO to run Fedora 20 x86_64 in a VM; I expect you are
probably using Google/Ubuntu which I have no idea whether/when it will provide
the probes.
One needs:
readelf -n /lib64/libstdc++.so.6
Owner Data size Description
stapsdt 0x0000003b NT_STAPSDT (SystemTap probe descriptors)
Provider: libstdcxx
Name: catch
Location: 0x000000000005dd71, Base: 0x00000000000c8f10, Semaphore: 0x0000000000000000
Arguments: 8@%rax 8@-80(%rbx)
[...]
Which was checked in upstream by:
commit 88ed757eef4cad9f5f67123f948707ddfc0e7635
Author: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Fri Mar 15 08:55:07 2013 +0000
* libsupc++/unwind-cxx.h: Include sys/sdt.h if detected.
(PROBE2): New macro.
* libsupc++/eh_throw.cc (__cxa_throw, __cxa_rethrow): Add probe.
* libsupc++/eh_catch.cc (__cxa_begin_catch): Add probe.
* configure.ac: Check for sys/sdt.h.
* configure, config.h.in: Rebuild.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@196674 138bc75d-0d04-0410-961f-82ee72b054a4
Thanks,
Jan