From 604b263620af66e3bf881f146e329b4de06104a5 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 14 Aug 2015 23:29:04 -0700 Subject: [PATCH] perftest/utils.py (select_file): Kill any existing inferior before selecting a new file. gdb/testsuite/ChangeLog: * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing inferior before selecting a new file. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.perf/lib/perftest/utils.py | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3deb8a42197..5022fe2f86f 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-08-14 Doug Evans + + * gdb.perf/lib/perftest/utils.py (select_file): Kill any existing + inferior before selecting a new file. + 2015-08-14 Doug Evans * gdb.mi/mi-disassemble.exp: Update. diff --git a/gdb/testsuite/gdb.perf/lib/perftest/utils.py b/gdb/testsuite/gdb.perf/lib/perftest/utils.py index e3b34430533..8598003ab2f 100644 --- a/gdb/testsuite/gdb.perf/lib/perftest/utils.py +++ b/gdb/testsuite/gdb.perf/lib/perftest/utils.py @@ -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") -- 2.30.2