[Bug translator/5899] $ptr->member in return probe

jistone at redhat dot com sourceware-bugzilla@sourceware.org
Thu Nov 12 01:27:00 GMT 2009


------- 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.



More information about the Systemtap mailing list