This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] perftest/utils.py (select_file): Kill any existing inferior before selecting a new file
- From: Doug Evans <xdje42 at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 14 Aug 2015 23:31:46 -0700
- Subject: [PATCH] perftest/utils.py (select_file): Kill any existing inferior before selecting a new file
- Authentication-results: sourceware.org; auth=none
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.
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")