Debugger: Fix array access with LLDB if index is a long

Triggered with the QGraphicsPolygonItem dumper on Linux.

Change-Id: I1374ca308c732eb5c25da959d8b499515ed72e66
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-02-25 17:46:09 +01:00
parent d6fd56ba9d
commit 0697c6d89a

View File

@@ -69,7 +69,7 @@ Value = lldb.SBValue
def impl_SBValue__add__(self, offset): def impl_SBValue__add__(self, offset):
if self.GetType().IsPointerType(): if self.GetType().IsPointerType():
if isinstance(offset, int): if isinstance(offset, int) or isinstance(offset, long):
pass pass
else: else:
offset = offset.GetValueAsSigned() offset = offset.GetValueAsSigned()