(self, kb=None)
Get the known data references for this CFGNode via the knowledge base.

        :param kb:  Which knowledge base to use; uses the global KB by default if none is provided
        :return:    Generator yielding xrefs to this CFGNode's block.
        :rtype:     iter
Get the known data references for this CFGNode via the knowledge base.
Get the known data references for this CFGNode via the knowledge base .
def get_data_references(self, kb=None):
        """
        Get the known data references for this CFGNode via the knowledge base.

        :param kb:  Which knowledge base to use; uses the global KB by default if none is provided
        :return:    Generator yielding xrefs to this CFGNode's block.
        :rtype:     iter
        """
        if not self._cfg_model.ident.startswith('CFGFast'):
            raise ValueError("Memory data is currently only supported in CFGFast.")
        if not kb:
            kb = self._cfg_model.project.kb
        if not kb:
            raise ValueError("The Knowledge Base does not exist!")

        for instr_addr in self.instruction_addrs:
            refs = list(kb.xrefs.get_xrefs_by_ins_addr(instr_addr))
            for ref in refs:
                yield ref
def get_data_references ( self , kb = None ) : if not self . _cfg_model . ident . startswith ( 'CFGFast' ) : raise ValueError ( "Memory data is currently only supported in CFGFast." ) if not kb : kb = self . _cfg_model . project . kb if not kb : raise ValueError ( "The Knowledge Base does not exist!" ) for instr_addr in self . instruction_addrs : refs = list ( kb . xrefs . get_xrefs_by_ins_addr ( instr_addr ) ) for ref in refs : yield ref