<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Great, this should work with GDB on Linux now! Hope to find the time
    soon to double-check.<br>
    <br>
    Note that for LLDB we have to fix the second part of this regression
    (source-level debugging):<br>
    <a class="moz-txt-link-freetext" href="https://bugs.llvm.org/show_bug.cgi?id=36209">https://bugs.llvm.org/show_bug.cgi?id=36209</a><br>
    <br>
    For MachO support on macOS we need to implement
    `getObjectForDebug()` here:<br>
<a class="moz-txt-link-freetext" href="https://code.woboq.org/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp.html#_ZNK12_GLOBAL__N_121LoadedMachOObjectInfo17getObjectForDebugERKN4llvm6object10ObjectFileE">https://code.woboq.org/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp.html#_ZNK12_GLOBAL__N_121LoadedMachOObjectInfo17getObjectForDebugERKN4llvm6object10ObjectFileE</a><br>
    <br>
    Best,<br>
    Stefan<br>
    <br>
    <div class="moz-cite-prefix">On 10/03/2020 09:28, Geoff Levner via
      llvm-dev wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAHMBa1tFT2oKRqqe_rDQeAeOu50W8kQDMnUpkFTvY-Gguwke3Q@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>+1. Once ORC JIT supports debugging and profiling, it will
          have everything we need.</div>
        <div><br>
        </div>
        <div>Thanks, Lang!</div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Mar 9, 2020 at 9:21 PM
          Frank Tetzel via llvm-dev <<a
            href="mailto:llvm-dev@lists.llvm.org" moz-do-not-send="true">llvm-dev@lists.llvm.org</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi
          Lang,<br>
          <br>
          > First: there is a preview patch up at <a
            href="https://reviews.llvm.org/D75838" rel="noreferrer"
            target="_blank" moz-do-not-send="true">https://reviews.llvm.org/D75838</a><br>
          > to enable use of JITEventListeners in
          RTDyldObjectLinkingLayer. I've<br>
          > only done very preliminary testing on it, but was able to
          debug<br>
          > simple JIT'd programs on Linux using the GDB registration
          listener.<br>
          > If you've been wanting to move to ORC but held up by lack
          of debugger<br>
          > / profiler registration, chime in on the review -- I'd
          appreciate<br>
          > feedback and help with testing. I will also post a bug
          tomorrow for<br>
          > investigating similar (or hopefully better) debugger
          registration<br>
          > functionality for JITLink.<br>
          <br>
          Does this also include support for PerfEventListener for
          profiling with<br>
          perf?<br>
          <br>
          I think, debugging and profiling support is very important for
          a JIT<br>
          engine. I could never get it to work with older LLVM versions.
          Is there<br>
          example code somewhere available?<br>
          <br>
          Best regards,<br>
          Frank<br>
          _______________________________________________<br>
          LLVM Developers mailing list<br>
          <a href="mailto:llvm-dev@lists.llvm.org" target="_blank"
            moz-do-not-send="true">llvm-dev@lists.llvm.org</a><br>
          <a
            href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="https://flowcrypt.com/pub/stefan.graenitz@gmail.com">https://flowcrypt.com/pub/stefan.graenitz@gmail.com</a></pre>
  </body>
</html>