Skip to content
Snippets Groups Projects
Commit 27e03e6f authored by hjk's avatar hjk
Browse files

Debugger: Do not run engines twice


There seems to be race in the LLDB setup on Linux. Work around
by not doing serious work twice to be able to use the test at least.

Change-Id: I387a57d3c66e6c4209bd424af9be16f17acb98fa
Reviewed-by: default avatarChristian Stenger <christian.stenger@qt.io>
parent 6b2665a1
No related branches found
No related tags found
No related merge requests found
......@@ -94,6 +94,7 @@ class Dumper(DumperBase):
self.process = None
self.target = None
self.eventState = lldb.eStateInvalid
self.runEngineAttempted = False
self.executable_ = None
self.startMode_ = None
......@@ -612,6 +613,9 @@ class Dumper(DumperBase):
% (state, error, self.executable_), args)
def runEngine(self, args):
if self.runEngineAttempted:
return
self.runEngineAttempted = True
self.prepare(args)
s = threading.Thread(target=self.loop, args=[])
s.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment