forked from qt-creator/qt-creator
GDB: Fix address resolving for typedefed types
Reported upstream: https://sourceware.org/bugzilla/show_bug.cgi?id=23936 Fixes: QTCREATORBUG-21602 Change-Id: I0592679a6b5c4821175ef8e97e2206e0ac0be44d Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
0eafe28bd1
commit
4cb4b7ba99
@@ -246,17 +246,13 @@ class Dumper(DumperBase):
|
||||
#warn('TARGET TYPE: %s' % targetType)
|
||||
if targetType.code == gdb.TYPE_CODE_ARRAY:
|
||||
val = self.Value(self)
|
||||
val.laddress = toInteger(nativeValue.address)
|
||||
val.nativeValue = nativeValue
|
||||
else:
|
||||
# Cast may fail (e.g for arrays, see test for Bug5799)
|
||||
val = self.fromNativeValue(nativeValue.cast(targetType))
|
||||
val.type = self.fromNativeType(nativeType)
|
||||
val.nativeValue = nativeValue
|
||||
#warn('CREATED TYPEDEF: %s' % val)
|
||||
return val
|
||||
else:
|
||||
val = self.Value(self)
|
||||
|
||||
val = self.Value(self)
|
||||
val.nativeValue = nativeValue
|
||||
if not nativeValue.address is None:
|
||||
val.laddress = toInteger(nativeValue.address)
|
||||
|
Reference in New Issue
Block a user