Use case: Devel::Trepan currently reports offsets when it is stopped. It gets this from Devel::Callstack currently. However in the past it didn't, although I can't remember the details, other than it was by some other means as an undocumented feature (which means it is not guarenteed to work in the future).

More generally, if the full OP were available, more information could be gleaned about where Perl is at any given time. It also might be used as a way in decompilation to walk around the point of interest rather than starting from the top and decompiling everything.

I'll be giving a talk on this at Glasgow YAPC 2018, so come see me there for more information. ;-)


In reply to Re^4: How can I turn an op address into the right kind of B::OP? by rockyb
in thread How can I turn an op address into the right kind of B::OP? by rockyb

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.