This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/13878] New: c++ stl decomposition functions


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]