From 3ddbba14158b83a1426b54cfa356909fd42f811d Mon Sep 17 00:00:00 2001 From: hjk Date: Wed, 4 Mar 2015 11:49:27 +0100 Subject: [PATCH] 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 Reviewed-by: Christian Stenger --- share/qtcreator/debugger/lldbbridge.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py index 79be2fcfc6..1dfd7233e1 100644 --- a/share/qtcreator/debugger/lldbbridge.py +++ b/share/qtcreator/debugger/lldbbridge.py @@ -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() -- GitLab