* gcc-gdb-test.exp (gdb-test): Reorder matchers to give more consistent results. Index: gcc-gdb-test.exp =================================================================== *** gcc-gdb-test.exp (revision 171108) --- gcc-gdb-test.exp (working copy) *************** proc gdb-test { args } { *** 60,65 **** --- 60,71 ---- } remote_expect target [timeout_value] { + # Too old GDB + -re "Unhandled dwarf expression|Error in sourced command file" { + unsupported "$testname" + remote_close target + return + } -re {[\n\r]\$1 = ([^\n\r]*)[\n\r]+\$2 = ([^\n\r]*)[\n\r]} { set first $expect_out(1,string) set second $expect_out(2,string) *************** proc gdb-test { args } { *** 72,83 **** remote_close target return } - # Too old GDB - -re "Unhandled dwarf expression|Error in sourced command file" { - unsupported "$testname" - remote_close target - return - } timeout { unsupported "$testname" remote_close target --- 78,83 ----