Debugger: Postpone location reporting in LLDB stops

... to the initial stack contents report. This helps to avoid unwanted
assembler reports in cases where we have to skip over "spurious"
stopped events.

Change-Id: I3340297ab01f976ab9d918fe73f69f4f32b12c03
Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com>
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-03-04 11:49:27 +01:00
parent 1896d2cc0e
commit 3ddbba1415

View File

@@ -829,6 +829,8 @@ class Dumper(DumperBase):
self.report('msg="No thread"')
return
self.reportLocation(thread.GetFrameAtIndex(0)) # FIXME
isNativeMixed = int(args.get('nativeMixed', 0))
limit = args.get('stacklimit', -1)
@@ -1326,8 +1328,6 @@ class Dumper(DumperBase):
if stoppedThread:
self.process.SetSelectedThread(stoppedThread)
self.reportThreads()
if stoppedThread:
self.reportLocation(stoppedThread.GetSelectedFrame())
elif eventType == lldb.SBProcess.eBroadcastBitInterrupt: # 2
pass
elif eventType == lldb.SBProcess.eBroadcastBitSTDOUT:
@@ -1552,7 +1552,6 @@ class Dumper(DumperBase):
self.reportState("running")
self.reportState("stopped")
self.reportError(error)
self.reportLocation(self.currentFrame())
else:
self.reportData()