DebugClients/Python/DebugClientBase.py

branch
debugger speed
changeset 5207
7283629b02c0
parent 5206
997064ba25d6
child 5221
960afd19c1b6
--- a/DebugClients/Python/DebugClientBase.py	Tue Oct 04 22:38:29 2016 +0200
+++ b/DebugClients/Python/DebugClientBase.py	Thu Oct 06 22:28:12 2016 +0200
@@ -188,17 +188,6 @@
         self.breakpoints = {}
         self.redirect = True
         self.__receiveBuffer = ""
-
-        # The next couple of members are needed for the threaded version.
-        # For this base class they contain static values for the non threaded
-        # debugger
-        
-        # dictionary of all threads running
-        self.threads = {}
-        
-        # the "current" thread, basically the thread we are at a breakpoint
-        # for.
-        self.currentThread = self
         
         # special objects representing the main scripts thread and frame
         self.mainThread = self
@@ -278,54 +267,7 @@
                     self.__coding = m.group(1)
                     return
             self.__coding = default
-
-    def attachThread(self, target=None, args=None, kwargs=None,
-                     mainThread=False):
-        """
-        Public method to setup a thread for DebugClient to debug.
         
-        If mainThread is True, then we are attaching to the already
-        started mainthread of the app and the rest of the args are ignored.
-        
-        @param target the start function of the target thread (i.e. the user
-            code)
-        @param args arguments to pass to target
-        @param kwargs keyword arguments to pass to target
-        @param mainThread True, if we are attaching to the already
-              started mainthread of the app
-        """
-        pass
-
-    def __dumpThreadList(self):
-        """
-        Private method to send the list of threads.
-        """
-        threadList = []
-        if self.threads and self.currentThread:
-            # indication for the threaded debugger
-            currentId = self.currentThread.get_ident()
-            for t in self.threads.values():
-                d = {}
-                d["id"] = t.get_ident()
-                d["name"] = t.get_name()
-                d["broken"] = t.isBroken
-                threadList.append(d)
-        else:
-            currentId = -1
-            d = {}
-            d["id"] = -1
-            d["name"] = "MainThread"
-            if hasattr(self, "isBroken"):
-                d["broken"] = self.isBroken
-            else:
-                d["broken"] = False
-            threadList.append(d)
-        
-        self.sendJsonCommand("ResponseThreadList", {
-            "currentID": currentId,
-            "threadList": threadList,
-        })
-    
     def raw_input(self, prompt, echo):
         """
         Public method to implement raw_input() / input() using the event loop.
@@ -458,7 +400,7 @@
                 params["scope"], params["filters"])
         
         elif method == "RequestThreadList":
-            self.__dumpThreadList()
+            self.dumpThreadList()
         
         elif method == "RequestThreadSet":
             if params["threadID"] in self.threads:

eric ide

mercurial