>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes: Pedro> Or simply instead: Pedro> gdb_test "bt 1" "Quit" "bt 1 with KeyboardInterrupt" Pedro> since gdb_test adds the prompt to the expected string for you. Thanks for the analysis. I've made this change. Tom