Hi, I'm getting these intermitent FAILures in mi-break.exp (and a couple more in chain reaction) in sync mode, due to previous pattern considering the gdb prompt optional, hence sometimes consuming the *stopped line, and leaving the (gdb) unconsumed. Running ../../../src/gdb/testsuite/gdb.mi/mi-break.exp ... FAIL: gdb.mi/mi-break.exp: breakpoint at nonexistent function FAIL: gdb.mi/mi-break.exp: create varobj for function call FAIL: gdb.mi/mi-break.exp: update varobj for function call 220-exec-run 220^running (gdb) =thread-created,id="1" *running,thread-id="1" Hello, World!callme *stopped,reason="breakpoint-hit",disp="keep",bkptno="5",thread-id="1",frame={addr="0x08048441",func="callme",args=[{name="i",value="2"}],file="../../../src/gdb/testsuite/gdb.mi/basics.c",fullname="/home/pedro/gdb/nonstop_head/src/gdb/testsuite/gdb.mi/basics.c",line="51"} PASS: gdb.mi/mi-break.exp: run to breakpoint with ignore count -break-insert function_that_does_not_exist (gdb) FAIL: gdb.mi/mi-break.exp: breakpoint at nonexistent function -var-create V * return_1() ^error,msg="Function \"function_that_does_not_exist\" not defined." vs 220-exec-run 220^running (gdb) =thread-created,id="1" *running,thread-id="1" Hello, World!callme *stopped,reason="breakpoint-hit",disp="keep",bkptno="5",thread-id="1",frame={addr="0x08048441",func="callme",args=[{name="i",value="2"}],file="../../../src/gdb/testsuite/gdb.mi/basics.c",fullname="/home/pedro/gdb/nonstop_head/src/gdb/testsuite/gdb.mi/basics.c",line="51"} (gdb) PASS: gdb.mi/mi-break.exp: run to breakpoint with ignore count -break-insert function_that_does_not_exist ^error,msg="Function \"function_that_does_not_exist\" not defined." (gdb) PASS: gdb.mi/mi-break.exp: breakpoint at nonexistent function The attached fixes it for me. -- Pedro Alves