forked from qt-creator/qt-creator
Debugger: remove overwritten createValue in the cdbbridge
The function is nowadays generating values the exact same way as the base implementation. Change-Id: Ie1b167021d9d450959d9cf3c27b0ac8ec7d0d3af Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -883,26 +883,6 @@ class Dumper(DumperBase):
|
|||||||
self.putItem(derefValue)
|
self.putItem(derefValue)
|
||||||
self.currentChildType = savedCurrentChildType
|
self.currentChildType = savedCurrentChildType
|
||||||
|
|
||||||
def createValue(self, datish, typish):
|
|
||||||
if isinstance(datish, int): # Used as address.
|
|
||||||
return self.createValueFromAddressAndType(datish, typish)
|
|
||||||
if isinstance(datish, bytes):
|
|
||||||
val = self.Value(self)
|
|
||||||
val.typeid = self.create_typeid(typish)
|
|
||||||
#DumperBase.warn('CREATING %s WITH DATA %s' % (val.type.name, self.hexencode(datish)))
|
|
||||||
val.ldata = datish
|
|
||||||
val.check()
|
|
||||||
return val
|
|
||||||
raise RuntimeError('EXPECTING ADDRESS OR BYTES, GOT %s' % type(datish))
|
|
||||||
|
|
||||||
def createValueFromAddressAndType(self, address, typish):
|
|
||||||
val = self.Value(self)
|
|
||||||
val.typeid = self.create_typeid(typish)
|
|
||||||
val.laddress = address
|
|
||||||
if self.useDynamicType:
|
|
||||||
val.typeid = self.dynamic_typeid_at_address(val.typeid, address)
|
|
||||||
return val
|
|
||||||
|
|
||||||
def fetchInternalFunctions(self):
|
def fetchInternalFunctions(self):
|
||||||
coreModuleName = self.qtCoreModuleName()
|
coreModuleName = self.qtCoreModuleName()
|
||||||
ns = self.qtNamespace()
|
ns = self.qtNamespace()
|
||||||
|
Reference in New Issue
Block a user