Fri, 13 May 2011 17:53:54 +0200
Added the autofork capability to the debug client commandline interface used for passive debugging.
--- a/DebugClients/Python/DebugClientBase.py Thu May 12 19:56:12 2011 +0200 +++ b/DebugClients/Python/DebugClientBase.py Fri May 13 17:53:54 2011 +0200 @@ -1841,6 +1841,14 @@ elif args[0] == '--no-encoding': self.noencoding = True del args[0] + elif args[0] == '--fork-child': + self.fork_auto = True + self.fork_child = True + del args[0] + elif args[0] == '--fork-parent': + self.fork_auto = True + self.fork_child = False + del args[0] elif args[0] == '--': del args[0] break
--- a/DebugClients/Python3/DebugClientBase.py Thu May 12 19:56:12 2011 +0200 +++ b/DebugClients/Python3/DebugClientBase.py Fri May 13 17:53:54 2011 +0200 @@ -1861,6 +1861,14 @@ elif args[0] == '--no-encoding': self.noencoding = True del args[0] + elif args[0] == '--fork-child': + self.fork_auto = True + self.fork_child = True + del args[0] + elif args[0] == '--fork-parent': + self.fork_auto = True + self.fork_child = False + del args[0] elif args[0] == '--': del args[0] break
--- a/README-passive-debugging.txt Thu May 12 19:56:12 2011 +0200 +++ b/README-passive-debugging.txt Fri May 13 17:53:54 2011 +0200 @@ -28,7 +28,13 @@ -t -- this enables tracing into the Python library -n -- this disables the redirection of stdin, stdout and stderr - + + -e -- this disables reporting of exceptions + + --fork-child -- this tells the debugger to follow the child when forking + + --fork-parent -- this tells the debugger to follow the parent when forking + The commandline parameters have to be followed by '--' (double dash), the script to be debugged and its commandline parameters.