This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug tapsets/13878] New: c++ stl decomposition functions
- From: "fche at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Tue, 20 Mar 2012 11:12:14 +0000
- Subject: [Bug tapsets/13878] New: c++ stl decomposition functions
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=13878
Bug #: 13878
Summary: c++ stl decomposition functions
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: tapsets
AssignedTo: systemtap@sourceware.org
ReportedBy: fche@redhat.com
Classification: Unclassified
In addition to $var$$, it would be helpful if the tapset included some
libstdc++ structure-traversal functions, so that scripts like this may be
written:
void foo (std::string bar) { }
stap -e 'probe ... function("foo") { if (cpp_string($bar) == "yo") ... }
This may in turn require @cast() to be able to take c++ templated types,
as in
function cpp_string(ptr) {
return @cast(ptr, "std::basic_string<char, std::char_traits<char>,
std::allocator<char> >")->_M_dataplus->_M_p
}
or even @cast("..., "std::string"), neither of which appear to work currently.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.