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.
This commit is contained in:
Doug Evans 2015-08-14 23:29:04 -07:00
parent 6ff0ba5f7b
commit 604b263620
2 changed files with 6 additions and 0 deletions

View 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.

View 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")