[rtems-tools commit] tester: Provide a gdb kill method to aid clean ups on ctrl-C.
Chris Johns
chrisj at rtems.org
Wed Mar 16 05:26:10 UTC 2016
Module: rtems-tools
Branch: master
Commit: 1845e9132eaf9492ef0258f21efe61c19105b84a
Changeset: http://git.rtems.org/rtems-tools/commit/?id=1845e9132eaf9492ef0258f21efe61c19105b84a
Author: Chris Johns <chrisj at rtems.org>
Date: Wed Mar 16 16:21:57 2016 +1100
tester: Provide a gdb kill method to aid clean ups on ctrl-C.
---
tester/rt/gdb.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tester/rt/gdb.py b/tester/rt/gdb.py
index 443e849..e82142e 100644
--- a/tester/rt/gdb.py
+++ b/tester/rt/gdb.py
@@ -231,6 +231,15 @@ class gdb(object):
finally:
self._unlock('_open')
+ def kill(self):
+ self._lock('_open')
+ try:
+ if self.process:
+ self.process.kill()
+ self.process = None
+ finally:
+ self._unlock('_open')
+
def gdb_expect(self):
if self.trace:
print('}}} gdb-expect')
More information about the vc
mailing list