forked from qt-creator/qt-creator
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:
@@ -829,6 +829,8 @@ class Dumper(DumperBase):
|
|||||||
self.report('msg="No thread"')
|
self.report('msg="No thread"')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.reportLocation(thread.GetFrameAtIndex(0)) # FIXME
|
||||||
|
|
||||||
isNativeMixed = int(args.get('nativeMixed', 0))
|
isNativeMixed = int(args.get('nativeMixed', 0))
|
||||||
|
|
||||||
limit = args.get('stacklimit', -1)
|
limit = args.get('stacklimit', -1)
|
||||||
@@ -1326,8 +1328,6 @@ class Dumper(DumperBase):
|
|||||||
if stoppedThread:
|
if stoppedThread:
|
||||||
self.process.SetSelectedThread(stoppedThread)
|
self.process.SetSelectedThread(stoppedThread)
|
||||||
self.reportThreads()
|
self.reportThreads()
|
||||||
if stoppedThread:
|
|
||||||
self.reportLocation(stoppedThread.GetSelectedFrame())
|
|
||||||
elif eventType == lldb.SBProcess.eBroadcastBitInterrupt: # 2
|
elif eventType == lldb.SBProcess.eBroadcastBitInterrupt: # 2
|
||||||
pass
|
pass
|
||||||
elif eventType == lldb.SBProcess.eBroadcastBitSTDOUT:
|
elif eventType == lldb.SBProcess.eBroadcastBitSTDOUT:
|
||||||
@@ -1552,7 +1552,6 @@ class Dumper(DumperBase):
|
|||||||
self.reportState("running")
|
self.reportState("running")
|
||||||
self.reportState("stopped")
|
self.reportState("stopped")
|
||||||
self.reportError(error)
|
self.reportError(error)
|
||||||
self.reportLocation(self.currentFrame())
|
|
||||||
else:
|
else:
|
||||||
self.reportData()
|
self.reportData()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user