This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] perftest/utils.py (select_file): Kill any existing inferior before selecting a new file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]