MCPcopy Create free account
hub / github.com/FastLED/FastLED / analyze_elf_file

Function analyze_elf_file

ci/util/elf.py:34–48  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

32
33
34def 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
51def cpp_filt(cppfilt_path: Path, input_text: str) -> str:

Callers

nothing calls this directly

Calls 3

list_symbols_and_sizesFunction · 0.85
run_commandFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected