Fix races in mi2-var-display.exp.

This commit is contained in:
Marek Polacek
2011-06-23 09:51:11 +00:00
parent 5d197ed097
commit 9497469fbd
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2011-06-23 Marek Polacek <mpolacek@redhat.com>
* gdb.mi/mi2-var-display.exp: Replace gdb_test_multiple with
mi_gdb_test.
2011-06-23 Marek Polacek <mpolacek@redhat.com>
* gdb.mi/mi2-return.exp: Replace gdb_test_multiple with mi_gdb_test.
@ -141,7 +146,7 @@
2011-05-27 Marek Polacek <mpolacek@redhat.com>
* gdb.mi/mi-nonstop.exp: Replace gdb_test_multiple with mi_gdb_test.
* gdb.mi/mi-nonstop.exp: Replace gdb_test_multiple with mi_gdb_test.
2011-05-27 Marek Polacek <mpolacek@redhat.com>

View File

@ -604,12 +604,8 @@ mi_gdb_test "-var-list-children anone" \
# Record fp
gdb_test_multiple "p/x \$fp" "print FP register" {
-re ".*($hex).*\\^done\r\n$mi_gdb_prompt$" {
pass "print FP register"
set fp $expect_out(1,string)
}
if ![mi_gdb_test "p/x \$fp" ".*($hex).*\\^done" "print FP register"] {
set fp $expect_out(3,string)
}
mi_continue_to "incr_a"