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

Function find_addr2line

tools/stack_trace_decoder/server.py:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def find_addr2line() -> str | None:
26 env_path = os.environ.get("ADDR2LINE")
27 if env_path and os.path.exists(env_path):
28 return env_path
29 for candidate in (
30 "xtensa-esp32-elf-addr2line",
31 "xtensa-esp32s3-elf-addr2line",
32 "addr2line",
33 ):
34 found = shutil.which(candidate)
35 if found:
36 return found
37 return None
38
39
40def download_elf(url: str, dest: Path) -> None:

Callers 1

decode_addressesFunction · 0.85

Calls 2

getMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected