aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2014-04-07 12:15:07 +0200
committerhjk <hjk121@nokiamail.com>2014-04-07 12:28:22 +0200
commitef4388d43b1c0759d04c1a64c6acd1382f4aa3ae (patch)
treee86b2dff2de59028290b364f24039dbaa075397b /share
parent8332e665292bf52d3dcad64512631fdfe3a3a9dd (diff)
Debugger: Fix pointer arithmetic in lldbbridge.py
Cut-and-past-o in a currently unused code path. Change-Id: I2c690e5010ade7f3ebbb4a94163d7b44da13c10d Reviewed-by: Christian Stenger <christian.stenger@digia.com>
Diffstat (limited to 'share')
-rw-r--r--share/qtcreator/debugger/lldbbridge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py
index 3cd37e1c60..fc08421654 100644
--- a/share/qtcreator/debugger/lldbbridge.py
+++ b/share/qtcreator/debugger/lldbbridge.py
@@ -144,7 +144,7 @@ def impl_SBValue__add__(self, offset):
def impl_SBValue__sub__(self, other):
if self.GetType().IsPointerType():
if isinstance(other, int) or isinstance(other, long):
- address = self.GetValueAsUnsigned() - offset.GetValueAsSigned()
+ address = self.GetValueAsUnsigned() - other
address = address & 0xFFFFFFFFFFFFFFFF # Force unsigned
return self.CreateValueFromAddress(None, address, self.GetType())
if other.GetType().IsPointerType():