Lines Matching refs:lib
88 def get_arch(lib: pathlib.Path) -> str:
91 proc = subprocess.run([args.objdump, "--file-headers", lib],
97 assert m, "Can not find ABI of ELF file " + str(lib)
103 def get_src(lib: pathlib.Path) -> List[Source]:
106 proc = subprocess.run([args.dwarfdump, "--debug-line", lib],
127 def get_fde(lib: pathlib.Path) -> List[Fde]:
130 proc = subprocess.run([args.dwarfdump, "--debug-frame", lib],
149 def get_asm(lib: pathlib.Path) -> List[Asm]:
158 lib,
250 def check_lib(lib: pathlib.Path) -> int:
252 arch = get_arch(lib)
254 assert lib.exists()
255 fdes = get_fde(lib)
256 asms = collections.deque(get_asm(lib))
257 srcs = {src.pc: src.file + ":" + src.line for src in get_src(lib)}
303 for lib in libs:
304 fail = check_lib(pathlib.Path(lib))
306 print(fail, "ERROR(s) in", str(lib))