forked from qt-creator/qt-creator
Debugger: Pass uninitialized variables to the python dumpers
Reduces accessing uninitialized memory Change-Id: I025e9070b9b17a806237619b484cb27230e7f494 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -125,7 +125,6 @@ class Dumper(DumperBase):
|
||||
pass
|
||||
val.isBaseClass = val.name == val.type.name
|
||||
val.nativeValue = nativeValue
|
||||
val.lIsInScope = True
|
||||
val.laddress = nativeValue.address()
|
||||
return val
|
||||
|
||||
@@ -440,7 +439,9 @@ class Dumper(DumperBase):
|
||||
|
||||
variables = []
|
||||
for val in cdbext.listOfLocals(self.partialVariable):
|
||||
variables.append(self.fromNativeValue(val))
|
||||
dumperVal = self.fromNativeValue(val)
|
||||
dumperVal.lIsInScope = not dumperVal.name in self.uninitialized
|
||||
variables.append(dumperVal)
|
||||
|
||||
self.handleLocals(variables)
|
||||
self.handleWatches(args)
|
||||
|
||||
Reference in New Issue
Block a user