[lldb-dev] Failing LIT-based lldb-mi tests

Adrian Prantl via lldb-dev lldb-dev at lists.llvm.org
Fri Aug 10 17:39:20 PDT 2018


That't interesting. Where you able to simulate the error seen on the bots by inserting a sleep() unto the debugged program?

-- adrian

> On Aug 10, 2018, at 5:06 PM, Александр Поляков <polyakov.alx at gmail.com> wrote:
> 
> It seems that lldb-mi in such a situation just hangs:
> 
> build/bin/lldb-mi --synchronous bash
> (gdb)
> -file-exec-and-symbols "bash"
> ^done
> (gdb)
> =library-loaded,id="/bin/bash",target-name="/bin/bash",host-name="/bin/bash",symbols-loaded="0",loaded_addr="-",size="0"
> -exec-run
> ^C^C
> exit
> 
> It doesn't react to Ctrl+C and exit command.
> 
> сб, 11 авг. 2018 г. в 2:54, Adrian Prantl <aprantl at apple.com <mailto:aprantl at apple.com>>:
> 
> 
>> On Aug 10, 2018, at 4:50 PM, Александр Поляков <polyakov.alx at gmail.com <mailto:polyakov.alx at gmail.com>> wrote:
>> 
>> One important question: what do you mean talking about "block"? Does it mean that SBTarget::Launch blocks the process and the user can't continue working with this process until it stops?
> 
> Pretty much. The same way as the interactive (lldb) command line interface behaves: You enter "run" and you won't get a prompt again until the process stops. I'm imagining (but haven't verified) that synchronous mode behaves like that.
> 
> -- adrian
> 
> 
> 
> -- 
> Alexander

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20180810/e371109e/attachment-0001.html>


More information about the lldb-dev mailing list