This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/10512] STAP_PROBES don't work in c++ constructors/destructors
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 Aug 2009 10:06:50 -0000
- Subject: [Bug runtime/10512] STAP_PROBES don't work in c++ constructors/destructors
- References: <20090812145803.10512.mjw@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From mjw at redhat dot com 2009-08-14 10:06 -------
(In reply to comment #3)
> (In reply to comment #2)
> > As can be seen from the alternatives suggested only the variables of the
> > function into which the probe was inlined are visible.
>
> This is because they aren't available as dwarf locations.
But the are...
$ ./loc2c-test -e ./test.orig 0x40063f
cxxclass.cxx (0x11): 0x400620 (/home/mark/src/test/cxxclass.cxx:54) .. 0x4007db
(/home/mark/src/test/cxxclass.cxx:28)
stdin [ 8ac] _IO_FILE*
stdout [ 8b9] _IO_FILE*
ProbeClass (0x1d): 0x400625 (/home/mark/src/test/cxxclass.cxx:14) ..
0x400656 (/home/mark/src/test/cxxclass.cxx:20)
n [ 6c5] char const*
v [ 6ca] <unknown 0x10> const
this [ 6cf] ProbeClass* const
<unnamed> (0xb): 0x400625 (/home/mark/src/test/cxxclass.cxx:14) ..
0x400640 (/home/mark/src/test/cxxclass.cxx:15)
arg1 [ 6e5] char const* volatile
arg2 [ 6ed] int volatile
But loc2c also has trouble retrieving them:
$ ./loc2c-test -e ./test.orig 0x40063b arg1
loc2c-test: required DW_AT_frame_base attribute not supplied
$ ./loc2c-test -e ./test.orig 0x40063b arg2
loc2c-test: required DW_AT_frame_base attribute not supplied
--
http://sourceware.org/bugzilla/show_bug.cgi?id=10512
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.