Commit 1af0f77e authored by hjk's avatar hjk
Browse files

Debugger: Wiggle LLDB startup



LLDB 320.* from XCode 601 was unhappy. This is an trial-and-error
to get it start up again.

Change-Id: I5dda0eef785d70abbb5798c3884ace89a8426969
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
parent 68106a7d
......@@ -665,10 +665,11 @@ class Dumper(DumperBase):
self.report('state="%s",msg="%s",exe="%s"' % (state, error, self.executable_))
def runEngine(self, _):
self.prepare()
s = threading.Thread(target=self.loop, args=[])
s.start()
def loop(self):
def prepare(self):
error = lldb.SBError()
listener = self.debugger.GetListener()
......@@ -710,7 +711,9 @@ class Dumper(DumperBase):
self.report('pid="%s"' % self.process.GetProcessID())
self.reportState("enginerunandinferiorrunok")
def loop(self):
event = lldb.SBEvent()
listener = self.debugger.GetListener()
while True:
if listener.WaitForEvent(10000000, event):
self.handleEvent(event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment