gdb/testsuite: Remove use of dejagnu cleanup proc
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 2 Feb 2018 12:51:10 +0000 (12:51 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 3 Feb 2018 16:56:04 +0000 (16:56 +0000)
The 'cleanup' proc has been removed from dejagnu (Feb 15 2016).  The
proc has not done anything useful since at least 2001 so removing
these calls should be harmless.

gdb/testsuite/ChangeLog:

* config/sid.exp (gdb_target_sid): Remove use of cleanup.
* config/sim.exp (gdb_target_sim): Remove use of cleanup.

gdb/testsuite/ChangeLog
gdb/testsuite/config/sid.exp
gdb/testsuite/config/sim.exp

index 0251584448ba1e562b8be9ef42b1093590b6660a..0af50b0498adb5f191f6fbc2cf20bb379c9f8ca2 100644 (file)
@@ -1,3 +1,8 @@
+2018-02-03  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * config/sid.exp (gdb_target_sid): Remove use of cleanup.
+       * config/sim.exp (gdb_target_sim): Remove use of cleanup.
+
 2018-02-01  Simon Marchi  <simon.marchi@polymtl.ca>
            Leszek Swirski  <leszeks@google.com>
 
index 36bd8611966afa4578d4bed3bd48e163f206939c..8ff0263b6183c272f15363281d4da5ec2551232a 100644 (file)
@@ -146,7 +146,6 @@ proc gdb_target_sid { } {
     gdb_expect {
        -re ".*\[Ee\]rror.*$gdb_prompt $" {
            perror "Couldn't set target for remote simulator."
-           cleanup
            gdb_exit
        }
        -re "Remote debugging using.*$gdb_prompt"       {
@@ -154,7 +153,6 @@ proc gdb_target_sid { } {
        }
        timeout { 
            perror "Couldn't set target for remote simulator."
-           cleanup
            gdb_exit
        }
     }
index 7170a259837b2745b01e23b8aa5c26855ca1d7d2..d9072febc6a7029bdff97e3132e2ea33ffa2334b 100644 (file)
@@ -34,7 +34,6 @@ proc gdb_target_sim { } {
        }
        timeout { 
            perror "Couldn't set target for simulator."
-           cleanup
            return -1
        }
     }