コード例 #1
0
 def connect(self, arguments):
     if self.isConnected() == True:
         raise AlreadyConnectedError()
     self.process = subprocess.Popen(arguments,
                                     shell=False,
                                     stdin=subprocess.PIPE,
                                     stdout=subprocess.PIPE)
     self.gdbserver = GDBServer(self.process)
     self.gdbserver.start()
     self.state.setConnected(True)
コード例 #2
0
    def setUp(self):
        if platform.system() == 'Windows':
            self.apppath = 'gdblib' + os.sep + 'testapplication' + os.sep + 'app.exe'
        else:
            self.apppath = 'gdblib' + os.sep + 'testapplication' + os.sep + 'app'

        self.arguments = ['gdb','-i','mi','-q',self.apppath, '']
        self.process = subprocess.Popen(self.arguments,
                shell=False,stdin=subprocess.PIPE,
                stdout = subprocess.PIPE)
        self.server = GDBServer(self.process)