From: Doug Evans Date: Sat, 15 Aug 2015 06:29:04 +0000 (-0700) Subject: perftest/utils.py (select_file): Kill any existing inferior before selecting a new... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=604b263620af66e3bf881f146e329b4de06104a5;p=binutils-gdb.git 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. --- 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")