This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/5899] $ptr->member in return probe
- From: "jistone at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 12 Nov 2009 01:27:09 -0000
- Subject: [Bug translator/5899] $ptr->member in return probe
- References: <20080308010658.5899.jkenisto@us.ibm.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From jistone at redhat dot com 2009-11-12 01:27 -------
(In reply to comment #4)
> probe FOO.return {
> println(@cast(@entry($param),"struct foo")->field))
> }
If we decide to make $param->field implicitly work this way, then we can use the
same internal mechanisms as @cast without requiring the user to know the type.
We can translate the pointer alone, and then pass that type die to
dwflpp::literal_stmt_for_pointer to read the rest, so we get two generated
functions:
$param->field ==> _dwarf_tvar_get_cast_1(@entry(_dwarf_tvar_get_param_0()))
The @entry processing can go from here to save the expression as needed.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |10943
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.