(elf: Path, nm: Path, out_dir: Path, top: int)
| 171 | |
| 172 | |
| 173 | def run_fbuild_symbols(elf: Path, nm: Path, out_dir: Path, top: int) -> None: |
| 174 | out_dir.mkdir(parents=True, exist_ok=True) |
| 175 | cmd = [ |
| 176 | "fbuild", |
| 177 | "symbols", |
| 178 | str(elf), |
| 179 | "--nm", |
| 180 | str(nm), |
| 181 | "--output-dir", |
| 182 | str(out_dir), |
| 183 | "--top", |
| 184 | str(top), |
| 185 | ] |
| 186 | print(f"$ {' '.join(cmd)}") |
| 187 | try: |
| 188 | subprocess.run(cmd, check=True) |
| 189 | except KeyboardInterrupt as ki: |
| 190 | handle_keyboard_interrupt(ki) |
| 191 | raise |
| 192 | |
| 193 | |
| 194 | @dataclass |
no test coverage detected