diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index 848cd080000..a35d08a05de 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -5130,6 +5130,10 @@ gdb_caching_proc can_spawn_for_attach { kill_wait_spawned_process $test_spawn_id return 1 } + -re "A program is being debugged already. Kill it. .y or n. " { + send_gdb "y\n" + exp_continue + } } kill_wait_spawned_process $test_spawn_id