forked from qt-creator/qt-creator
Debugger: Make sure to not select frame -1 with LLDB
This can appear as (non-existing) preferred frame index in backtraces consisting only of frames without debug info. Fall back to top most frame in that case. Change-Id: Id7bb941d5fc3080aff3853cebb7b92afdd0ba4ea Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -1707,7 +1707,8 @@ class Dumper(DumperBase):
|
|||||||
|
|
||||||
def activateFrame(self, args):
|
def activateFrame(self, args):
|
||||||
self.reportToken(args)
|
self.reportToken(args)
|
||||||
self.currentThread().SetSelectedFrame(args['index'])
|
frame = max(0, int(args['index'])) # Can be -1 in all-asm stacks
|
||||||
|
self.currentThread().SetSelectedFrame(frame)
|
||||||
self.reportResult('', args)
|
self.reportResult('', args)
|
||||||
|
|
||||||
def selectThread(self, args):
|
def selectThread(self, args):
|
||||||
|
Reference in New Issue
Block a user