@LocalContext
def debug_assembly(asm, gdbscript=None, vma=None):
 tmp_elf = make_elf_from_assembly(asm, vma=vma, extract=False)
 os.chmod(tmp_elf, 511)
 atexit.register((lambda : os.unlink(tmp_elf)))
 if (context.os == 'android'):
  android_path = ('/data/data/%s' % os.path.basename(tmp_elf))
  adb.push(tmp_elf, android_path)
  tmp_elf = android_path
 return debug(tmp_elf, gdbscript=gdbscript, arch=context.arch)

@ LocalContext def debug_assembly ( asm , gdbscript = None , vma = None ) : tmp_elf = make_elf_from_assembly ( asm , vma = vma , extract = False ) os . chmod ( tmp_elf , 511 ) atexit . register ( ( lambda : os . unlink ( tmp_elf ) ) ) if ( context . os == 'android' ) : android_path = ( '/data/data/%s' % os . path . basename ( tmp_elf ) ) adb . push ( tmp_elf , android_path ) tmp_elf = android_path return debug ( tmp_elf , gdbscript = gdbscript , arch = context . arch )
debug_assembly -> tube creates an elf file .