perftest/utils.py (select_file): Kill any existing inferior before selecting a new file
Commit Message
Hi.
fyi, I have committed this.
I was getting some perf testsuite fails because a process was still
live while selecting the next benchmark in the series.
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.
@@ -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")