Sun, 28 Apr 2013 19:02:44 +0200
Fixed an issue in the Python debug clients caused by the current thread being None.
(grafted from f3dd3c8d4aa46863837cb894584b65aff8c58e63)
DebugClients/Python/DebugClientBase.py | file | annotate | diff | comparison | revisions | |
DebugClients/Python3/DebugClientBase.py | file | annotate | diff | comparison | revisions |
--- a/DebugClients/Python/DebugClientBase.py Sun Apr 28 19:04:34 2013 +0200 +++ b/DebugClients/Python/DebugClientBase.py Sun Apr 28 19:02:44 2013 +0200 @@ -1231,6 +1231,9 @@ @param scope 1 to report global variables, 0 for local variables (int) @param filter the indices of variable types to be filtered (list of int) """ + if self.currentThread is None: + return + if scope == 0: self.framenr = frmnr @@ -1270,6 +1273,9 @@ @param scope 1 to report global variables, 0 for local variables (int) @param filter the indices of variable types to be filtered (list of int) """ + if self.currentThread is None: + return + f = self.currentThread.getCurrentFrame() while f is not None and frmnr > 0:
--- a/DebugClients/Python3/DebugClientBase.py Sun Apr 28 19:04:34 2013 +0200 +++ b/DebugClients/Python3/DebugClientBase.py Sun Apr 28 19:02:44 2013 +0200 @@ -1241,6 +1241,9 @@ @param scope 1 to report global variables, 0 for local variables (int) @param filter the indices of variable types to be filtered (list of int) """ + if self.currentThread is None: + return + if scope == 0: self.framenr = frmnr @@ -1280,6 +1283,9 @@ @param scope 1 to report global variables, 0 for local variables (int) @param filter the indices of variable types to be filtered (list of int) """ + if self.currentThread is None: + return + f = self.currentThread.getCurrentFrame() while f is not None and frmnr > 0: