interrupt.exp: Revert back to checking gdb,noinferiorio at the top
authorPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:46 +0000 (11:09 +0100)
committerPedro Alves <palves@redhat.com>
Wed, 29 Jul 2015 10:09:46 +0000 (11:09 +0100)
The following patch will remove the gdb,noinferiorio setting from the
gdbserver boards, so this bit can be reverted.

gdb/testsuite/ChangeLog:
2015-07-29  Pedro Alves  <palves@redhat.com>

* gdb.base/interrupt.exp: Revert back to checking gdb,noinferiorio
at the top.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/interrupt.exp

index 072a1083c907a584e0c0a1ece5dbbb466931ca89..b03adc7affb48bc7b69dd963a68b02f271adbc87 100644 (file)
@@ -1,3 +1,8 @@
+2015-07-29  Pedro Alves  <palves@redhat.com>
+
+       * gdb.base/interrupt.exp: Revert back to checking gdb,noinferiorio
+       at the top.
+
 2015-07-29  Pedro Alves  <palves@redhat.com>
 
        * gdb.base/call-ar-st.c: Include "../lib/unbuffer_output.c".
index f594ba41d9f905fd22e37605ab3ff831bf2afc20..426c2a67edc54e72c163d1125e6443da812fb76b 100644 (file)
@@ -18,6 +18,11 @@ if [target_info exists gdb,nointerrupts] {
     continue
 }
 
+if [target_info exists gdb,noinferiorio] {
+    verbose "Skipping interrupt.exp because of noinferiorio."
+    return
+}
+
 standard_testfile
 
 set options { debug }
@@ -45,11 +50,6 @@ if ![file exists $binfile] then {
     if [runto_main] then {
        global inferior_spawn_id gdb_spawn_id
 
-       if {[target_info exists gdb,noinferiorio] && $inferior_spawn_id == $gdb_spawn_id} {
-           verbose "Skipping interrupt.exp because of noinferiorio."
-           return
-       }
-
        set msg "process is alive"
        gdb_test_multiple "continue" $msg {
            -i "$inferior_spawn_id" -re "talk to me baby\r\n" {