def qtNamespace(self): qstrdupSymbolName = '*qstrdup' coreModuleName = self.qtCoreModuleName() if coreModuleName is not None: qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName) resolved = cdbext.resolveSymbol(qstrdupSymbolName) if not resolved: return '' name = resolved[0].split('!')[1] namespace = name[:name.find(':') + 2] if '::' in name else '' self.qtNamespace = lambda: namespace return namespace
def qtHookDataSymbolName(self): hookSymbolName = 'qtHookData' coreModuleName = self.qtCoreModuleName() if coreModuleName is not None: hookSymbolName = '%s!%s%s' % (coreModuleName, self.qtNamespace(), hookSymbolName) else: resolved = cdbext.resolveSymbol('*' + hookSymbolName) if resolved: hookSymbolName = resolved[0] else: hookSymbolName = '*%s' % hookSymbolName self.qtHookDataSymbolName = lambda: hookSymbolName return hookSymbolName
def qtNamespace(self): namespace = '' qstrdupSymbolName = '*qstrdup' coreModuleName = self.qtCoreModuleName() if coreModuleName is not None: qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName) resolved = cdbext.resolveSymbol(qstrdupSymbolName) if resolved: name = resolved[0].split('!')[1] namespaceIndex = name.find('::') if namespaceIndex > 0: namespace = name[:namespaceIndex + 2] self.qtNamespace = lambda: namespace self.qtCustomEventFunc = cdbext.parseAndEvaluate( '%s!%sQObject::customEvent' % (self.qtCoreModuleName(), namespace)) return namespace
def qtNamespace(self): namespace = '' qstrdupSymbolName = '*qstrdup' coreModuleName = self.qtCoreModuleName() if coreModuleName is not None: qstrdupSymbolName = '%s!%s' % (coreModuleName, qstrdupSymbolName) resolved = cdbext.resolveSymbol(qstrdupSymbolName) if resolved: name = resolved[0].split('!')[1] namespaceIndex = name.find('::') if namespaceIndex > 0: namespace = name[:namespaceIndex + 2] self.qtNamespace = lambda: namespace self.qtCustomEventFunc = self.parseAndEvaluate('%s!%sQObject::customEvent' % (self.qtCoreModuleName(), namespace)).address() return namespace