Commit 3ddbba14 authored by hjk's avatar hjk

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: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 1896d2cc
...@@ -829,6 +829,8 @@ class Dumper(DumperBase): ...@@ -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): ...@@ -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): ...@@ -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()
......
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