(self)
return binary_name
Determine the name of the binary where this function is.

        :return: None
Determine the name of the binary where this function is.
Determine the name of the binary where this function is .
def _get_initial_binary_name(self):
        """
        Determine the name of the binary where this function is.

        :return: None
        """

        binary_name = None

        # if this function is a simprocedure but not a syscall, use its library name as
        # its binary name
        # if it is a syscall, fall back to use self.binary.binary which explicitly says cle##kernel
        if self.project and self.is_simprocedure and not self.is_syscall:
            hooker = self.project.hooked_by(self.addr)
            if hooker is not None:
                binary_name = hooker.library_name

        if binary_name is None and self.binary is not None and self.binary.binary:
            binary_name = os.path.basename(self.binary.binary)

        return binary_name
def _get_initial_binary_name ( self ) : binary_name = None # if this function is a simprocedure but not a syscall, use its library name as # its binary name # if it is a syscall, fall back to use self.binary.binary which explicitly says cle##kernel if self . project and self . is_simprocedure and not self . is_syscall : hooker = self . project . hooked_by ( self . addr ) if hooker is not None : binary_name = hooker . library_name if binary_name is None and self . binary is not None and self . binary . binary : binary_name = os . path . basename ( self . binary . binary ) return binary_name