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 translator/5899] New: $ptr->member in return probe


When I refer to $ptr->member in a return probe, and $ptr is a function arg, what
I get is the value of $ptr->member as it was when the function was called.  If
the function changes the contents of the object $ptr points to, usually what I
want is the value of $ptr->member when the function returns.

Because of stap's non-support for casting stap variables to pointers, I have to
resort to imbedded C to dig out the value I want.

I'd like a way to specify what I want.  For example:
entry_value($ptr->member) gets me what I get today.
entry_value($ptr)->member gets the current value of member using the value of
ptr when the function was called.
I think $ptr->member should yield either an error or (preferably) the same thing
 as entry_value($ptr)->member.  If I want entry_value($ptr->member), I can just
save that value during my entry probe.

-- 
           Summary: $ptr->member in return probe
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: jkenisto at us dot ibm dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=5899

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


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