MCPcopy Create free account
hub / github.com/bdring/FluidNC / download_elf

Function download_elf

tools/stack_trace_decoder/server.py:40–45  ·  view source on GitHub ↗
(url: str, dest: Path)

Source from the content-addressed store, hash-verified

38
39
40def download_elf(url: str, dest: Path) -> None:
41 with urllib.request.urlopen(url) as resp:
42 if resp.status >= 400:
43 raise RuntimeError(f"Failed to download ELF: HTTP {resp.status}")
44 data = resp.read()
45 dest.write_bytes(data)
46
47
48def decode_addresses(elf_path: Path, addresses: list) -> dict:

Callers 1

decodeFunction · 0.85

Calls 1

readMethod · 0.45

Tested by

no test coverage detected