[Bug translator/14924] warn on complex $ptr->foo expressions in .return probes
jistone at redhat dot com
sourceware-bugzilla@sourceware.org
Mon Oct 17 17:24:00 GMT 2016
https://sourceware.org/bugzilla/show_bug.cgi?id=14924
Josh Stone <jistone at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jistone at redhat dot com
--- Comment #2 from Josh Stone <jistone at redhat dot com> ---
If we make it a warning, then anyone who wants to be strict (stap -W) will have
to use @entry($foo->bar) whenever that entry-time snapshotting is really what
they want. I think that will be annoying to those who are used to the current
behavior.
Perhaps this needs something softer than a warning, like a note.
FWIW, autocast should make ($foo)->bar possible, for a nicer workaround than
the suggestion involving explicit @cast. Since this breaks up the expression,
only the part inside the parentheses will be entry-saved. Or perhaps that's
even more confusing, that $foo->bar and ($foo)->bar have different behavior.
Plus, it doesn't yet work for @entry($foo)->bar -- see PR18579.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Systemtap
mailing list