Remove some obsolet code, which can't be executed anymore. debugger speed

Mon, 08 Aug 2016 23:08:38 +0200

author
T.Rzepka <Tobias.Rzepka@gmail.com>
date
Mon, 08 Aug 2016 23:08:38 +0200
branch
debugger speed
changeset 5088
5b992bcb3c86
parent 5087
59316f14216b
child 5170
fb9168c2e069

Remove some obsolet code, which can't be executed anymore.

DebugClients/Python/DebugBase.py file | annotate | diff | comparison | revisions
DebugClients/Python3/DebugBase.py file | annotate | diff | comparison | revisions
--- a/DebugClients/Python/DebugBase.py	Mon Aug 08 22:51:36 2016 +0200
+++ b/DebugClients/Python/DebugBase.py	Mon Aug 08 23:08:38 2016 +0200
@@ -641,21 +641,7 @@
         # We never stop on line 0.
         if frame.f_lineno == 0:
             return
-
-        # See if we are skipping at the start of a newly loaded program.
-        # Then get the complete frame stack without eric or Python supplied
-        # libraries
-        if self._dbgClient.mainFrame is None:
-            fr = frame
-            while (fr is not None and
-                    fr.f_code != self._dbgClient.handleLine.func_code):
-                if (fr.f_code.co_filename == '<string>' or
-                        os.path.dirname(fr.f_code.co_filename) == self.lib):
-                    break
-                
-                self._dbgClient.mainFrame = fr
-                fr = fr.f_back
-
+        
         self.currentFrame = frame
         
         fr = frame
--- a/DebugClients/Python3/DebugBase.py	Mon Aug 08 22:51:36 2016 +0200
+++ b/DebugClients/Python3/DebugBase.py	Mon Aug 08 23:08:38 2016 +0200
@@ -660,21 +660,7 @@
         # We never stop on line 0.
         if frame.f_lineno == 0:
             return
-
-        # See if we are skipping at the start of a newly loaded program.
-        # Then get the complete frame stack without eric or Python supplied
-        # libraries
-        if self._dbgClient.mainFrame is None:
-            fr = frame
-            while (fr is not None and
-                    fr.f_code != self._dbgClient.handleLine.__code__):
-                if (fr.f_code.co_filename == '<string>' or
-                        os.path.dirname(fr.f_code.co_filename) == self.lib):
-                    break
-                
-                self._dbgClient.mainFrame = fr
-                fr = fr.f_back
-
+        
         self.currentFrame = frame
         
         fr = frame

eric ide

mercurial