<div dir="ltr">This has been a longstanding issue which I just haven't been able to prioritize over things such as PDB support, minidump support, test fixes, etc. There's various thread synchronization stuff that happens between the IOHandler thread and the debugger thread, and I guess there's a race condition or something.<div><br></div><div>Long distance high five if you can get a patch that solves this, I agree it's really annoying.</div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Mar 21, 2016 at 10:10 AM Ted Woodward 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 lang="EN-US" link="#0563C1" vlink="#954F72"><div><p class="MsoNormal">I run lldb on Windows and Linux, launching my gdb-server based Hexagon simulator automatically on a process launch. On Windows I’m seeing the (lldb) prompt before the stop message, and no prompt after. On Linux I see the prompt after.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Windows:<u></u><u></u></p><p class="MsoNormal">Current executable set to 'u:\lldb_test\factwin' (hexagon).<u></u><u></u></p><p class="MsoNormal">(lldb) b main<u></u><u></u></p><p class="MsoNormal">Breakpoint 1: where = factwin`main + 28 at factorial.c:32, address = 0x00005130<u></u><u></u></p><p class="MsoNormal">(lldb) r<u></u><u></u></p><p class="MsoNormal">Process 1 launched: 'u:\lldb_test\factwin' (hexagon)<u></u><u></u></p><p class="MsoNormal">(lldb) Process 1 stopped<u></u><u></u></p><p class="MsoNormal">* thread #1: tid = 0x0001, 0x00005130 factwin`main(argc=1, argv=0x0000e110) + 28 at factorial.c:32, stop reason = breakpoint 1.1<u></u><u></u></p><p class="MsoNormal"> frame #0: 0x00005130 factwin`main(argc=1, argv=0x0000e110) + 28 at factorial.c:32<u></u><u></u></p><p class="MsoNormal"> 29 }<u></u><u></u></p><p class="MsoNormal"> 30 */<u></u><u></u></p><p class="MsoNormal"> 31<u></u><u></u></p><p class="MsoNormal">-> 32 base = 10;<u></u><u></u></p><p class="MsoNormal"> 33<u></u><u></u></p><p class="MsoNormal"> 34 printf("Factorial of %d is %d\n", base, factorial(base));<u></u><u></u></p><p class="MsoNormal"> 35 return 0;<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Linux:<u></u><u></u></p><p class="MsoNormal">Current executable set to '/usr2/tedwood/lldb_test/factorial' (hexagon).<u></u><u></u></p><p class="MsoNormal">(lldb) b main<u></u><u></u></p><p class="MsoNormal">Breakpoint 1: where = factorial`main + 28 at factorial.c:32, address = 0x00004130<u></u><u></u></p><p class="MsoNormal">(lldb) r<u></u><u></u></p><p class="MsoNormal">Process 1 launched: '/usr2/tedwood/lldb_test/factorial' (hexagon)<u></u><u></u></p><p class="MsoNormal">Process 1 stopped<u></u><u></u></p><p class="MsoNormal">* thread #1: tid = 0x0001, 0x00004130 factorial`main(argc=1, argv=0x0000b100) + 28 at factorial.c:32, stop reason = breakpoint 1.1<u></u><u></u></p><p class="MsoNormal"> frame #0: 0x00004130 factorial`main(argc=1, argv=0x0000b100) + 28 at factorial.c:32<u></u><u></u></p><p class="MsoNormal"> 29 }<u></u><u></u></p><p class="MsoNormal"> 30 */<u></u><u></u></p><p class="MsoNormal"> 31 <u></u><u></u></p><p class="MsoNormal">-> 32 base = 10;<u></u><u></u></p><p class="MsoNormal"> 33 <u></u><u></u></p><p class="MsoNormal"> 34 printf("Factorial of %d is %d\n", base, factorial(base));<u></u><u></u></p><p class="MsoNormal"> 35 return 0;<u></u><u></u></p><p class="MsoNormal">(lldb) <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Any idea why the prompt is coming out before the stop message?<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">--<u></u><u></u></p><p class="MsoNormal">Qualcomm Innovation Center, Inc.<u></u><u></u></p><p class="MsoNormal">The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p></div></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>