From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9368 invoked by alias); 8 Mar 2008 01:07:43 -0000 Received: (qmail 32102 invoked by uid 48); 8 Mar 2008 01:06:58 -0000 Date: Sat, 08 Mar 2008 01:07:00 -0000 From: "jkenisto at us dot ibm dot com" To: systemtap@sources.redhat.com Message-ID: <20080308010658.5899.jkenisto@us.ibm.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug translator/5899] New: $ptr->member in return probe X-Bugzilla-Reason: AssignedTo Mailing-List: contact systemtap-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: systemtap-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00400.txt.bz2 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.