<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Dear all,<div>I am not sure if this is reproducible, but I am experiencing some strange behavior while using LLDB ToT.</div><div>1) The debugger does not automatically show the current snippet of source code when stopping at a breakpoint, I need to manually type "frame select 0" to get the code to appear, as in:</div><div><div>(lldb) next</div><div>(lldb) step</div><div>(lldb) frame select 0</div><div>frame #0: 0x0000000100000ec9 programma`foo(int&) + 25 at programma.cpp:4</div><div> 1 <span class="Apple-tab-span" style="white-space:pre"> </span>int foo(int& x)</div><div> 2 <span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div> 3 <span class="Apple-tab-span" style="white-space:pre"> </span>x = x + 1;</div><div>-> 4 <span class="Apple-tab-span" style="white-space:pre"> </span>return (x-1);</div><div> 5 <span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div> 6 <span class="Apple-tab-span" style="white-space:pre"> </span>int main()</div><div> 7 <span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div>(lldb) next</div><div>(lldb) frame select 0</div><div>frame #0: 0x0000000100000f0c programma`main + 44 at programma.cpp:10</div><div> 7 <span class="Apple-tab-span" style="white-space:pre"> </span>{</div><div> 8 <span class="Apple-tab-span" style="white-space:pre"> </span>int j = 0;</div><div> 9 <span class="Apple-tab-span" style="white-space:pre"> </span>while (j < 1000)</div><div>-> 10 <span class="Apple-tab-span" style="white-space:pre"> </span>foo(j);</div><div> 11 <span class="Apple-tab-span" style="white-space:pre"> </span>return 1;</div><div> 12 <span class="Apple-tab-span" style="white-space:pre"> </span>}</div><div>(lldb) </div></div><div><br></div><div>2) Every time I try to quit LLDB, it crashes. I have attached a log of the crash. It looks like that, when calling <span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; ">SBDebugger</span><span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; "><span style="color: #000000">::</span></span><span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; "><span style="color: #32595d">Destroy</span></span><span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; "><span style="color: #000000"> (</span></span><span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; ">m_debugger</span><span class="Apple-style-span" style="color: rgb(80, 129, 135); font-family: Menlo; font-size: 12px; "><span style="color: #000000">); </span></span>in Driver::MainLoop(), the SharedPtr to the Debugger has already been reset to NULL which segfaults LLDB, however some of the debug information is missing and setting a watchpoint on the SP does not show any spurious writes.</div><div>3) The command "command script" and subcommands appear to have not been compiled in (however, other Python related commands are available)</div><div><br></div><div>I am not sure how reproducible this is, however I have tried a few times to download LLDB source code from scratch, but nothing changes. The most recent version that I am able to use successfully is r143676 + the fixes in ClangUserExpression.h from r143678.</div><div><br></div><div>Sincerely,<br><div apple-content-edited="true">
<div>-<span class="Apple-converted-space"> </span><i>Enrico Granata</i></div>
</div>
</div></body></html>