(self, name, arch)
return stub
Get a stub procedure for the given function, regardless of if a real implementation is available. This will
        apply any metadata, such as a default calling convention or a function prototype. Demangle the function name
        if it is a mangled C++ name.

        :param str name:    The name of the function as a string
        :param arch:        The architecture to use, as either a string or an archinfo.Arch instance
        :return:            A SimProcedure instance representing a plausable stub as could be found in the library.
Get a stub procedure for the given function, regardless of if a real implementation is available. This will
        apply any metadata, such as a default calling convention or a function prototype. Demangle the function name
        if it is a mangled C++ name.
Get a stub procedure for the given function regardless of if a real implementation is available . This will apply any metadata such as a default calling convention or a function prototype . Demangle the function name if it is a mangled C ++ name .
def get_stub(self, name, arch):
        """
        Get a stub procedure for the given function, regardless of if a real implementation is available. This will
        apply any metadata, such as a default calling convention or a function prototype. Demangle the function name
        if it is a mangled C++ name.

        :param str name:    The name of the function as a string
        :param arch:        The architecture to use, as either a string or an archinfo.Arch instance
        :return:            A SimProcedure instance representing a plausable stub as could be found in the library.
        """
        demangled_name = self._try_demangle(name)
        stub = super().get_stub(demangled_name, arch)
        # try to determine a prototype from the function name if possible
        if demangled_name != name:
            # itanium-mangled function name
            stub.prototype = self._proto_from_demangled_name(demangled_name)
            if stub.prototype is not None:
                stub.prototype = stub.prototype.with_arch(arch)
                if not stub.ARGS_MISMATCH:
                    stub.cc.num_args = len(stub.prototype.args)
                    stub.num_args = len(stub.prototype.args)
        return stub
def get_stub ( self , name , arch ) : demangled_name = self . _try_demangle ( name ) stub = super ( ) . get_stub ( demangled_name , arch ) # try to determine a prototype from the function name if possible if demangled_name != name : # itanium-mangled function name stub . prototype = self . _proto_from_demangled_name ( demangled_name ) if stub . prototype is not None : stub . prototype = stub . prototype . with_arch ( arch ) if not stub . ARGS_MISMATCH : stub . cc . num_args = len ( stub . prototype . args ) stub . num_args = len ( stub . prototype . args ) return stub