Fixed an issue in the Python debuggers that could cause trouble in some extreme situations.

Sun, 28 Feb 2010 10:31:49 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 28 Feb 2010 10:31:49 +0000
changeset 126
7902c9178ee0
parent 125
064cfadcf15c
child 127
003f568ac4a0

Fixed an issue in the Python debuggers that could cause trouble in some extreme situations.

DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugClientBase.py	Sun Feb 28 09:06:59 2010 +0000
+++ b/DebugClients/Python/DebugClientBase.py	Sun Feb 28 10:31:49 2010 +0000
@@ -297,7 +297,7 @@
         Public method to send the list of threads.
         """
         threadList = []
-        if self.threads:    # indication for the threaded debugger
+        if self.threads and self.currentThread:    # indication for the threaded debugger
             currentId = self.currentThread.get_ident()
             for t in self.threads.values():
                 d = {}
--- a/DebugClients/Python3/DebugClientBase.py	Sun Feb 28 09:06:59 2010 +0000
+++ b/DebugClients/Python3/DebugClientBase.py	Sun Feb 28 10:31:49 2010 +0000
@@ -265,7 +265,7 @@
         Public method to send the list of threads.
         """
         threadList = []
-        if self.threads:    # indication for the threaded debugger
+        if self.threads and self.currentThread:    # indication for the threaded debugger
             currentId = self.currentThread.get_ident()
             for t in self.threads.values():
                 d = {}

eric ide

mercurial