[lldb-dev] Windows lldb prompt issue

Zachary Turner via lldb-dev lldb-dev at lists.llvm.org
Mon Mar 21 10:41:27 PDT 2016


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.

Long distance high five if you can get a patch that solves this, I agree
it's really annoying.

On Mon, Mar 21, 2016 at 10:10 AM Ted Woodward via lldb-dev <
lldb-dev at lists.llvm.org> wrote:

> 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.
>
>
>
> Windows:
>
> Current executable set to 'u:\lldb_test\factwin' (hexagon).
>
> (lldb) b main
>
> Breakpoint 1: where = factwin`main + 28 at factorial.c:32, address =
> 0x00005130
>
> (lldb) r
>
> Process 1 launched: 'u:\lldb_test\factwin' (hexagon)
>
> (lldb) Process 1 stopped
>
> * thread #1: tid = 0x0001, 0x00005130 factwin`main(argc=1,
> argv=0x0000e110) + 28 at factorial.c:32, stop reason = breakpoint 1.1
>
>     frame #0: 0x00005130 factwin`main(argc=1, argv=0x0000e110) + 28 at
> factorial.c:32
>
>    29     }
>
>    30   */
>
>    31
>
> -> 32     base = 10;
>
>    33
>
>    34     printf("Factorial of %d is %d\n", base, factorial(base));
>
>    35     return 0;
>
>
>
>
>
> Linux:
>
> Current executable set to '/usr2/tedwood/lldb_test/factorial' (hexagon).
>
> (lldb) b main
>
> Breakpoint 1: where = factorial`main + 28 at factorial.c:32, address =
> 0x00004130
>
> (lldb) r
>
> Process 1 launched: '/usr2/tedwood/lldb_test/factorial' (hexagon)
>
> Process 1 stopped
>
> * thread #1: tid = 0x0001, 0x00004130 factorial`main(argc=1,
> argv=0x0000b100) + 28 at factorial.c:32, stop reason = breakpoint 1.1
>
>     frame #0: 0x00004130 factorial`main(argc=1, argv=0x0000b100) + 28 at
> factorial.c:32
>
>    29     }
>
>    30   */
>
>    31
>
> -> 32     base = 10;
>
>    33
>
>    34     printf("Factorial of %d is %d\n", base, factorial(base));
>
>    35     return 0;
>
> (lldb)
>
>
>
>
>
>
>
> Any idea why the prompt is coming out before the stop message?
>
>
>
>
>
> --
>
> Qualcomm Innovation Center, Inc.
>
> The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
> Linux Foundation Collaborative Project
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20160321/e8ff8b14/attachment.html>


More information about the lldb-dev mailing list