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 3deb8a4..5022fe2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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. * gdb.base/disasm-optim.S: New file. * gdb.base/disasm-optim.c: New file. diff --git a/gdb/testsuite/gdb.perf/lib/perftest/utils.py b/gdb/testsuite/gdb.perf/lib/perftest/utils.py index e3b3443..8598003 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.7.4