gdb
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / step.exp
index c051196651b820a9b5f2a84504b2a04aa6ede0a1..36c04032b98233e548c11b85b2fe7db4b340101b 100644 (file)
@@ -57,12 +57,13 @@ proc set_bp { where } {
 proc step_it { cmd } {
     global gdb_prompt
     global program_exited
+    global inferior_exited_re
 
     send_gdb "$cmd\n"
     gdb_expect {
        -re "0x\[0-9A-Fa-f\]* *in.*\r\n$gdb_prompt $" { pass "step_it"; return 0 }
        -re "0x\[0-9A-Fa-f\]* *\[0-9\]*.*\r\n$gdb_prompt $" { pass "step_it"; return 1 }
-       -re "Program exited .*\n$gdb_prompt $" {
+       -re "$inferior_exited_re .*\n$gdb_prompt $" {
                set program_exited 1
                return -1
            }
@@ -81,6 +82,7 @@ proc step_source {} {
 
 proc continue_all {} {
     global gdb_prompt
+    global inferior_exited_re
 
     send_gdb "continue\n"
     gdb_expect {
@@ -88,7 +90,7 @@ proc continue_all {} {
            pass "continue_all"
            return 0
        }
-       -re "Program exited .*\n$gdb_prompt $" {
+       -re "$inferior_exited_re .*\n$gdb_prompt $" {
            set program_exited 1
            return 1;
        }
This page took 0.023228 seconds and 4 git commands to generate.