On 11/17/2011 03:04 AM, Pedro Alves wrote: >> > + if ![runto_main] { >> > + fail "Can't run to main" >> > + return -1 >> > + } > Should restore pf_prefix. More instances of this. > Oh, yes, it should be restored on return. >> > + send_gdb "disconnect\n" >> > + gdb_expect { >> > + -re "warning: Pending tracepoint will not be resolved while GDB is disconnected.*Ending remote debugging.*$gdb_prompt $" { >> > + pass "disconnect with pending tracepoint" >> > + } >> > + -re ".*$gdb_prompt $" { >> > + fail "disconnect with pending tracepoint" >> > + } >> > + } > Why send_gdb/gdb_expect? Because gdb_test_multiple doesn't match pattern in output when "Ending remote debugging" appeared in the output. We have to resort to send_gdb/gdb_expect here. -- Yao (齐尧)