<div dir="ltr">Sorry if asked before.<div><br></div><div>I'm new to LLDB, try to use it according to the lldb project site. I write some very simple code like:</div><div><br></div><div>#include <stdio.h></div><div>

<div><br></div><div>int main(int argc, char **argv) </div><div>{ </div><div>    int counter = 0; </div><div>    while ( counter < 10 ) </div><div>        counter++; </div><div><br></div><div>    printf("counter: %d\n", counter);</div>

<div><br></div><div>    return 0; </div><div>}</div></div><div><br></div><div>and the session like: </div><div><br></div><div>$ clang -g main.c</div><div>$ lldb-3.4 a.out </div><div>(lldb) breakpoint set -l 8</div><div>......</div>

<div>(lldb) breakpoint set -l 12</div><div>......</div><div>(lldb) breakpoint list</div><div>......</div><div>(lldb) process launch</div><div><div>Process 1105 launched: '/home/maple/debug/arena/a.out' (i386)</div>

<div>counter: 10</div><div>Process 1105 exited with status = 0 (0x00000000)</div></div><div><br></div><div>I checked with gdb, it works well. I'm not sure whether it's a bug or my false command.</div><div><br></div>

<div>I'm using Ubuntu 12.04, and the lldb is from <a href="http://llvm.org/apt">llvm.org/apt</a>. It's svn186357.</div><div><br></div><div><div><div>——<br>美丽有两种:<br>一是深刻又动人的方程,<br>一是你泛着倦意淡淡的笑容。</div>
</div></div></div>