[Bug tapsets/13878] New: c++ stl decomposition functions
fche at redhat dot com
sourceware-bugzilla@sourceware.org
Tue Mar 20 11:13:00 GMT 2012
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.
More information about the Systemtap
mailing list