<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">I reproduced the test you suggested and got following output:<br><br><div class="gmail_default">build/bin/lldb-mi --synchronous a.out < llvm/tools/lldb/lit/tools/lldb-mi/exec/lldb-mi-fail.test </div><div class="gmail_default">(gdb)</div><div class="gmail_default">-file-exec-and-symbols "a.out"</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/home/alexander/workspace/gsoc/a.out",target-name="/home/alexander/workspace/gsoc/a.out",host-name="/home/alexander/workspace/gsoc/a.out",symbols-loaded="0",loaded_addr="-",size="0"</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000000f",func="??",file="??",fullname="??/??",line="0",times="0",original-location="f"}</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000000f",func="??",file="??",fullname="??/??",line="0",times="0",original-location="f"}</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^running</div><div class="gmail_default">=thread-group-started,id="i1",pid="5075"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=thread-created,id="1",group-id="i1"</div><div class="gmail_default">=thread-selected,id="1"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" target="_blank">ld-2.23.so</a>",target-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" target="_blank">ld-2.23.so</a>",host-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" target="_blank">ld-2.23.so</a>",symbols-loaded="1",symbols-path="/usr/lib/debug/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" target="_blank">ld-2.23.so</a>",loaded_addr="-",size="0"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="[vdso]",target-name="[vdso]",host-name="[vdso]",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffff7ffa000",size="0"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/home/alexander/workspace/gsoc/a.out",target-name="/home/alexander/workspace/gsoc/a.out",host-name="/home/alexander/workspace/gsoc/a.out",symbols-loaded="0",loaded_addr="-",size="0"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="1",symbols-path="/usr/lib/debug/lib/x86_64-linux-gnu/<a href="http://libc-2.23.so" target="_blank">libc-2.23.so</a>",loaded_addr="-",size="0"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/lib/x86_64-linux-gnu/libc.so.6",target-name="/lib/x86_64-linux-gnu/libc.so.6",host-name="/lib/x86_64-linux-gnu/libc.so.6",symbols-loaded="1",symbols-path="/usr/lib/debug/lib/x86_64-linux-gnu/<a href="http://libc-2.23.so" target="_blank">libc-2.23.so</a>",loaded_addr="-",size="0"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=thread-exited,id="1",group-id="i1"</div><div class="gmail_default">=thread-group-exited,id="i1",exit-code="0"</div><div class="gmail_default">*stopped,reason="exited-normally"</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^error,msg="Resume timed out."</div><div class="gmail_default">(gdb)</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)<br><br>As a command that needs a breakpoint to be hit I chose the -exec-next --thread 1. It's the same error which is seen on the bots.</div></div><br><div class="gmail_quote"><div dir="ltr">сб, 11 авг. 2018 г. в 6:27, Adrian Prantl <<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">That't interesting. Where you able to simulate the error seen on the bots by inserting a sleep() unto the debugged program?<div><br></div><div>-- adrian<br><div><br><blockquote type="cite"><div>On Aug 10, 2018, at 5:06 PM, Александр Поляков <<a href="mailto:polyakov.alx@gmail.com" target="_blank">polyakov.alx@gmail.com</a>> wrote:</div><br class="m_2932759717891293441m_7827524264229195344Apple-interchange-newline"><div><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">It seems that lldb-mi in such a situation just hangs:<br><br><div class="gmail_default">build/bin/lldb-mi --synchronous bash</div><div class="gmail_default">(gdb)</div><div class="gmail_default">-file-exec-and-symbols "bash"</div><div class="gmail_default">^done</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=library-loaded,id="/bin/bash",target-name="/bin/bash",host-name="/bin/bash",symbols-loaded="0",loaded_addr="-",size="0"</div><div class="gmail_default">-exec-run</div><div class="gmail_default">^C^C</div><div class="gmail_default">exit<br><br>It doesn't react to Ctrl+C and exit command.</div></div></div><br><div class="gmail_quote"><div dir="ltr">сб, 11 авг. 2018 г. в 2:54, Adrian Prantl <<a href="mailto:aprantl@apple.com" target="_blank">aprantl@apple.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space"><br><div><br><blockquote type="cite"><div>On Aug 10, 2018, at 4:50 PM, Александр Поляков <<a href="mailto:polyakov.alx@gmail.com" target="_blank">polyakov.alx@gmail.com</a>> wrote:</div><br class="m_2932759717891293441m_7827524264229195344m_-2097672177529295889Apple-interchange-newline"><div><div dir="ltr" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">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?</div></div></div></blockquote><div><br></div><div>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.</div><div><br></div><div>-- adrian</div></div><br></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_2932759717891293441m_7827524264229195344gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="font-family:arial,helvetica,sans-serif;font-size:12.8px">Alexander</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br></div></div></blockquote></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_2932759717891293441gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><span style="color:rgb(0,0,0);font-family:arial,helvetica,sans-serif;font-size:12.8px">Alexander</span><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>