forked from qt-creator/qt-creator
Debugger: Fix memory stack layout
This piece of code vanished during the big refactoring. Fixes: QTCREATORBUG-32542 Change-Id: I8fae3f3a8e0ab2e4951f52d1377987f8ad01e358 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -130,7 +130,7 @@ class Dumper(DumperBase):
|
|||||||
val.typeid = self.from_native_type(nativeValue.type())
|
val.typeid = self.from_native_type(nativeValue.type())
|
||||||
val.nativeValue = nativeValue
|
val.nativeValue = nativeValue
|
||||||
val.laddress = nativeValue.address()
|
val.laddress = nativeValue.address()
|
||||||
val.lbitsize = nativeValue.bitsize()
|
val.size = nativeValue.bitsize()
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def nativeTypeId(self, nativeType: cdbext.Type) -> str:
|
def nativeTypeId(self, nativeType: cdbext.Type) -> str:
|
||||||
|
@@ -3004,6 +3004,8 @@ typename))
|
|||||||
return
|
return
|
||||||
|
|
||||||
self.putAddress(value.address())
|
self.putAddress(value.address())
|
||||||
|
if value.size is not None:
|
||||||
|
self.putField('size', value.size // 8)
|
||||||
|
|
||||||
if typecode == TypeCode.Function:
|
if typecode == TypeCode.Function:
|
||||||
#self.warn('FUNCTION VALUE: %s' % value)
|
#self.warn('FUNCTION VALUE: %s' % value)
|
||||||
|
@@ -276,6 +276,7 @@ class Dumper(DumperBase):
|
|||||||
val.typeid = typeid
|
val.typeid = typeid
|
||||||
#elif code == gdb.TYPE_CODE_ARRAY:
|
#elif code == gdb.TYPE_CODE_ARRAY:
|
||||||
# val.type.ltarget = nativeValue[0].type.unqualified()
|
# val.type.ltarget = nativeValue[0].type.unqualified()
|
||||||
|
val.size = nativeType.sizeof * 8
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def nativeDataFromValueFallback(self, nativeValue, size):
|
def nativeDataFromValueFallback(self, nativeValue, size):
|
||||||
|
@@ -207,6 +207,7 @@ class Dumper(DumperBase):
|
|||||||
val.summary = summary
|
val.summary = summary
|
||||||
val.lIsInScope = nativeValue.IsInScope()
|
val.lIsInScope = nativeValue.IsInScope()
|
||||||
val.name = nativeValue.GetName()
|
val.name = nativeValue.GetName()
|
||||||
|
val.size = nativeType.GetByteSize() * 8
|
||||||
return val
|
return val
|
||||||
|
|
||||||
def nativeListMembers(self, value, nativeType, include_base):
|
def nativeListMembers(self, value, nativeType, include_base):
|
||||||
|
Reference in New Issue
Block a user