Analyze the ELF file using objdump to display its contents. Args: objdump_path (Path): Path to the objdump executable. cppfilt_path (Path): Path to the c++filt executable. elf_file (Path): Path to the ELF file.
(objdump_path: Path, cppfilt_path: Path, elf_file: Path)
| 32 | |
| 33 | |
| 34 | def analyze_elf_file(objdump_path: Path, cppfilt_path: Path, elf_file: Path): |
| 35 | """ |
| 36 | Analyze the ELF file using objdump to display its contents. |
| 37 | |
| 38 | Args: |
| 39 | objdump_path (Path): Path to the objdump executable. |
| 40 | cppfilt_path (Path): Path to the c++filt executable. |
| 41 | elf_file (Path): Path to the ELF file. |
| 42 | """ |
| 43 | command = [str(objdump_path), "-h", str(elf_file)] # "-h" option shows headers. |
| 44 | print(f"Analyzing ELF file: {elf_file}") |
| 45 | output = run_command(command, show_output=True) |
| 46 | print("\nELF File Analysis:") |
| 47 | print(output) |
| 48 | list_symbols_and_sizes(objdump_path, cppfilt_path, elf_file) |
| 49 | |
| 50 | |
| 51 | def cpp_filt(cppfilt_path: Path, input_text: str) -> str: |
nothing calls this directly
no test coverage detected