Commit 4d12c017 authored by hjk's avatar hjk Committed by Eike Ziller
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
(cherry picked from commit 1af0f77e

)
Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
Reviewed-by: default avatarEike Ziller <eike.ziller@digia.com>
parent faeac783
...@@ -665,10 +665,11 @@ class Dumper(DumperBase): ...@@ -665,10 +665,11 @@ class Dumper(DumperBase):
self.report('state="%s",msg="%s",exe="%s"' % (state, error, self.executable_)) self.report('state="%s",msg="%s",exe="%s"' % (state, error, self.executable_))
def runEngine(self, _): def runEngine(self, _):
self.prepare()
s = threading.Thread(target=self.loop, args=[]) s = threading.Thread(target=self.loop, args=[])
s.start() s.start()
def loop(self): def prepare(self):
error = lldb.SBError() error = lldb.SBError()
listener = self.debugger.GetListener() listener = self.debugger.GetListener()
...@@ -710,7 +711,9 @@ class Dumper(DumperBase): ...@@ -710,7 +711,9 @@ class Dumper(DumperBase):
self.report('pid="%s"' % self.process.GetProcessID()) self.report('pid="%s"' % self.process.GetProcessID())
self.reportState("enginerunandinferiorrunok") self.reportState("enginerunandinferiorrunok")
def loop(self):
event = lldb.SBEvent() event = lldb.SBEvent()
listener = self.debugger.GetListener()
while True: while True:
if listener.WaitForEvent(10000000, event): if listener.WaitForEvent(10000000, event):
self.handleEvent(event) self.handleEvent(event)
......
Supports Markdown
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