<div dir="ltr">In theory you don't have to do anything special to debug some JIT-ed code as everything should just work (based on the gdb jit interface). In practice I tried it out a few days ago and it wasn't working at all even in the case when the application is launched under LLDB (not with attach). LLDB was understanding the eh_frame for the JIT-ed code but didn't found the debug info for unknown reason. We should investigate it and try to fix it sometime. We (lldb for android developers) plan to do it sometime but if you are interested in it then please feel free to take a look and let us know if you have any question.<div><br></div><div>Tamas</div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 19, 2015 at 8:40 AM haifeng_q via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><span>hi,</span></div>
<div><span>process <span>A</span> </span><span>generate</span> function Func1 code with llvm jit compiler<span>,</span> <span>and</span> <span>calls </span><span>Func1</span><span>. modeled on</span> <span>"Kaleidoscope: Adding Debug Information"</span> <span>add</span> <span>debug information</span><span>. how</span> <span>to use</span> <span>LLDB</span> to attach process <span>A</span> to <span>debug this</span> <span>function</span><span>,</span> <span>add a breakpoint in the function?</span></div>
<div><span></span> </div>
<div><span>thanks!</span></div>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a><br>
</blockquote></div>