<div dir="ltr">Hello <span style="color:rgb(0,0,0);white-space:pre-wrap">Benjamin , all</span><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">>>I recently started using lldb to write a basic instrumentation tool for
>>tracking the values of variables at various code-points in a program.</pre><pre style="white-space:pre-wrap;color:rgb(0,0,0)"><font face="arial, sans-serif">I have the same problem of tracing some variables and debugging application post-mortem. Without knowing about your experience I've started walking same path and encountered same problem. In my case inserting an empty callback slows-down application by 100x. This is not acceptable for me, because instead of minutes I got hours of runtime.</font></pre><pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">Did you found any faster solution?</font></pre><pre style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">My current plan is to solve it with code injection: I plan to find pointers to interesting values using debugger scripting and then inject code to trace them. </font></pre><pre><font face="arial, sans-serif" style="color:rgb(0,0,0);white-space:pre-wrap">Does LLDB supports code injection ? I've found information only about gdb </font><font color="#000000" face="arial, sans-serif"><span style="white-space:pre-wrap"><a href="https://sourceware.org/gdb/onlinedocs/gdb/Compiling-and-Injecting-Code.html">https://sourceware.org/gdb/onlinedocs/gdb/Compiling-and-Injecting-Code.html</a> but not about lldb</span></font></pre><pre><font color="#000000" face="arial, sans-serif"><span style="white-space:pre-wrap"><br></span></font></pre><pre><font color="#000000" face="arial, sans-serif"><span style="white-space:pre-wrap">-Roman</span></font></pre></pre></div></div>