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

Function check_section_contents

ci/util/elf.py:197–209  ·  view source on GitHub ↗

Dump the contents of all sections in the ELF file using objdump. Args: objdump_path (Path): Path to the objdump executable. elf_file (Path): Path to the ELF file.

(objdump_path: Path, elf_file: Path)

Source from the content-addressed store, hash-verified

195
196
197def check_section_contents(objdump_path: Path, elf_file: Path):
198 """
199 Dump the contents of all sections in the ELF file using objdump.
200
201 Args:
202 objdump_path (Path): Path to the objdump executable.
203 elf_file (Path): Path to the ELF file.
204 """
205 command = [str(objdump_path), "-s", str(elf_file)]
206 print(f"Dumping all sections of ELF file: {elf_file}")
207 output = run_command(command, show_output=True)
208 print("\nELF File Sections Content:")
209 print(output)

Callers

nothing calls this directly

Calls 2

run_commandFunction · 0.70
printFunction · 0.50

Tested by

no test coverage detected