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/14924] warn on complex $ptr->foo expressions in .return probes


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.

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