<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small;color:rgb(0,0,0)">Sure, this is the log with the typed commands:<br><br><div class="gmail_default">build/bin/lldb-mi a.out </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">=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">-exec-run</div><div class="gmail_default">^running</div><div class="gmail_default">=thread-group-started,id="i1",pid="4410"</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">ld-2.23.so</a>",target-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so">ld-2.23.so</a>",host-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so">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">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">*running,thread-id="all"</div><div class="gmail_default">(gdb)</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">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">libc-2.23.so</a>",loaded_addr="-",size="0"</div><div class="gmail_default">-break-insert main</div><div class="gmail_default">^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040052f",func="main",file="test.c",fullname="/home/alexander/workspace/gsoc/llvm/tools/lldb/lit/tools/lldb-mi/exec/inputs/test.c",line="7",times="0",original-location="main"}</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040052f",func="main",file="test.c",fullname="/home/alexander/workspace/gsoc/llvm/tools/lldb/lit/tools/lldb-mi/exec/inputs/test.c",line="7",times="0",original-location="main"}</div><div class="gmail_default">(gdb)</div><div class="gmail_default">=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000040052f",func="main",file="test.c",fullname="/home/alexander/workspace/gsoc/llvm/tools/lldb/lit/tools/lldb-mi/exec/inputs/test.c",line="7",times="0",original-location="main"}</div><div class="gmail_default">(gdb)</div><div class="gmail_default">-exec-next</div><div class="gmail_default">^error,msg="Resume timed out."</div><div class="gmail_default">(gdb)</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)<br><br>No one of the commands isn't a blocking one, but I think that -exec-run should be blocking.</div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 13, 2018 at 8:10 PM Adrian Prantl <<a href="mailto:aprantl@apple.com">aprantl@apple.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Aug 11, 2018, at 3:58 AM, Александр Поляков <<a href="mailto:polyakov.alx@gmail.com" target="_blank">polyakov.alx@gmail.com</a>> wrote:<br>
> <br>
> I reproduced the test you suggested and got following output:<br>
> <br>
> build/bin/lldb-mi --synchronous a.out < llvm/tools/lldb/lit/tools/lldb-mi/exec/lldb-mi-fail.test <br>
> (gdb)<br>
> -file-exec-and-symbols "a.out"<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> =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"<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000000f",func="??",file="??",fullname="??/??",line="0",times="0",original-location="f"}<br>
> (gdb)<br>
> =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000000000000f",func="??",file="??",fullname="??/??",line="0",times="0",original-location="f"}<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^running<br>
> =thread-group-started,id="i1",pid="5075"<br>
> (gdb)<br>
> =thread-created,id="1",group-id="i1"<br>
> =thread-selected,id="1"<br>
> (gdb)<br>
> =library-loaded,id="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" rel="noreferrer" target="_blank">ld-2.23.so</a>",target-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" rel="noreferrer" target="_blank">ld-2.23.so</a>",host-name="/lib/x86_64-linux-gnu/<a href="http://ld-2.23.so" rel="noreferrer" 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" rel="noreferrer" target="_blank">ld-2.23.so</a>",loaded_addr="-",size="0"<br>
> (gdb)<br>
> =library-loaded,id="[vdso]",target-name="[vdso]",host-name="[vdso]",symbols-loaded="1",symbols-path="",loaded_addr="0x00007ffff7ffa000",size="0"<br>
> (gdb)<br>
> =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"<br>
> (gdb)<br>
> =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" rel="noreferrer" target="_blank">libc-2.23.so</a>",loaded_addr="-",size="0"<br>
> (gdb)<br>
> =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" rel="noreferrer" target="_blank">libc-2.23.so</a>",loaded_addr="-",size="0"<br>
> (gdb)<br>
> =thread-exited,id="1",group-id="i1"<br>
> =thread-group-exited,id="i1",exit-code="0"<br>
> *stopped,reason="exited-normally"<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^done<br>
> (gdb)<br>
> ^error,msg="Resume timed out."<br>
> (gdb)<br>
> ^done<br>
> (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.<br>
<br>
Can you help me understand the order in which events happened in that log? I don't see the -exec-next command in the log. If you type in the commands manually, does it become obvious which ones are blocking and which ones aren't (but should be)?<br>
<br>
-- adrian </blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_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>