Author: tack
Date: Mon Oct 8 14:43:38 2007
New Revision: 2847
Log:
If being run through gdb, issue quit command to gdb when child terminates
normally.
Modified:
trunk/popcorn/src/utils/ipc.py
Modified: trunk/popcorn/src/utils/ipc.py
==============================================================================
--- trunk/popcorn/src/utils/ipc.py (original)
+++ trunk/popcorn/src/utils/ipc.py Mon Oct 8 14:43:38 2007
@@ -121,10 +121,11 @@
# debug levels)
log.info('[%d] %s' % (self._child.child.pid, line))
- if self.gdb and line.startswith("Program received signal SIGSEGV"):
- self._child.write("thread apply all bt\n")
- self._child.write("quit\n")
- return
+ if self.gdb:
+ if line.startswith("Program received signal"):
+ return self._child.write("thread apply all bt\nquit\n")
+ elif line.startswith('Program exited'):
+ return self._child.write("quit\n")
# do some nice debug. use the log level from child if we can detect it
delim = line.find(' ')
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog