perftest/utils.py (select_file): Kill any existing inferior before selecting a new...
authorDoug Evans <xdje42@gmail.com>
Sat, 15 Aug 2015 06:29:04 +0000 (23:29 -0700)
committerDoug Evans <xdje42@gmail.com>
Sat, 15 Aug 2015 06:29:04 +0000 (23:29 -0700)
gdb/testsuite/ChangeLog:

* gdb.perf/lib/perftest/utils.py (select_file): Kill any existing
inferior before selecting a new file.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.perf/lib/perftest/utils.py

index 3deb8a42197f497e31e961ce4ff0a4649c684290..5022fe2f86f8f05056ee77bdad954ed7db537c2e 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-14  Doug Evans  <xdje42@gmail.com>
+
+       * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing
+       inferior before selecting a new file.
+
 2015-08-14  Doug Evans  <xdje42@gmail.com>
 
        * gdb.mi/mi-disassemble.exp: Update.
index e3b34430533756a53717e9482f032c8b1d4fe89d..8598003ab2f82849aaccc9726e28dc5e33062b01 100644 (file)
@@ -36,6 +36,7 @@ def select_file(file_name):
     N.B. This turns confirmation off.
     """
     safe_execute("set confirm off")
+    safe_execute("kill")
     print ("Selecting file %s" % (file_name))
     if file_name is None:
         gdb.execute("file")