def initialize(cls, sandbox=True): if cls.qemu_path is None and not can_debug(cls.arch): return False if any(i is None for i in (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker, cls.crt_pre, cls.crt_post)): return False if any(not os.path.isfile(i) for i in (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker)): return False if any(not os.path.isfile(i) for i in cls.crt_pre) or any(not os.path.isfile(i) for i in cls.crt_post): return False return cls.run_self_test(sandbox)
def initialize(cls, sandbox=True): if cls.qemu_path is None and not can_debug(cls.arch): return False if any(i is None for i in (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker, cls.crt_pre, cls.crt_post)): return False if any(not os.path.isfile(i) for i in (cls.get_as_path(), cls.get_ld_path(), cls.dynamic_linker)): return False if any(not os.path.isfile(i) for i in cls.crt_pre) or any(not os.path.isfile(i) for i in cls.crt_post): return False return cls.run_self_test(sandbox)
def autoconfig(cls): if not can_debug(cls.arch): return {}, False, 'Unable to natively debug' return super(ASMExecutor, cls).autoconfig()
def autoconfig(cls): if not can_debug(cls.arch): return {}, False, 'Unable to natively debug' return super(ASMExecutor, cls).autoconfig()