]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/testsuite/gdb.mi/mi-watch.exp
gdb/testsuite introduce foreach_mi_ui_mode helper proc
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.mi / mi-watch.exp
index aaac76110150e9d1f88a516b36a2c81b59c945f8..12b9781e95a2e9e1d14e1e279542a74043901496 100644 (file)
@@ -175,16 +175,9 @@ proc test_watchpoint_all {mi_mode type} {
     test_watchpoint_triggering
 }
 
-if [gdb_debug_enabled] {
-  # gdb debug doesn't work for separate-mi-tty.
-  set modes {"main"}
-} else {
-  set modes {"main" "separate"}
-}
-
 # Run the tests twice, once using software watchpoints, and another
 # with hardware watchpoints.
-foreach_with_prefix mi-mode $modes {
+foreach_mi_ui_mode mi-mode {
     foreach_with_prefix wp-type {"sw" "hw"} {
        test_watchpoint_all ${mi-mode} ${wp-type}
     }