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:
Christian Stenger
2025-03-05 09:58:03 +01:00
parent e25ce3d597
commit b1f8fb1660
4 changed files with 5 additions and 1 deletions

View File

@@ -130,7 +130,7 @@ class Dumper(DumperBase):
val.typeid = self.from_native_type(nativeValue.type())
val.nativeValue = nativeValue
val.laddress = nativeValue.address()
val.lbitsize = nativeValue.bitsize()
val.size = nativeValue.bitsize()
return val
def nativeTypeId(self, nativeType: cdbext.Type) -> str:

View File

@@ -3004,6 +3004,8 @@ typename))
return
self.putAddress(value.address())
if value.size is not None:
self.putField('size', value.size // 8)
if typecode == TypeCode.Function:
#self.warn('FUNCTION VALUE: %s' % value)

View File

@@ -276,6 +276,7 @@ class Dumper(DumperBase):
val.typeid = typeid
#elif code == gdb.TYPE_CODE_ARRAY:
# val.type.ltarget = nativeValue[0].type.unqualified()
val.size = nativeType.sizeof * 8
return val
def nativeDataFromValueFallback(self, nativeValue, size):

View File

@@ -207,6 +207,7 @@ class Dumper(DumperBase):
val.summary = summary
val.lIsInScope = nativeValue.IsInScope()
val.name = nativeValue.GetName()
val.size = nativeType.GetByteSize() * 8
return val
def nativeListMembers(self, value, nativeType, include_base):