LLVM-ADDR2LINE(1)

πŸ’– NAME πŸ’–

llvm-addr2line β€” a drop-in replacement for addr2line ✨ (yes, this is a page from the LLVM manual, section 1, iykyk)


🌸 SYNOPSIS 🌸

llvm-addr2line [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay bestie, so llvm-addr2line is literally just an alias for the llvm-symbolizer(1) tool (that's llvm-symbolizer.html, for the record) β€” but with different defaults. The whole ~goal~ here is to make it a genuine drop-in replacement for GNU's addr2line. No cap.

And here's the tea on those differences, one by one, no skips:

  • llvm-addr2line treats every address as hexadecimal and just ignores an optional 0x prefix like it's nothing πŸ™ˆ β€” whereas llvm-symbolizer is out here trying to determine the base from the literal's prefix, and defaults to decimal if there's no prefix at all. Different energy fr fr.
  • llvm-addr2line defaults to not printing function names. If you want those, use -f (llvm-symbolizer.html#llvm-symbolizer-opt-f) to turn that on. πŸ’…
  • llvm-addr2line defaults to not demangling function names. Use -C (llvm-symbolizer.html#llvm-symbolizer-opt-c) to switch the demangling on. ✨
  • llvm-addr2line defaults to not printing inlined frames. Use -i (llvm-symbolizer.html#llvm-symbolizer-opt-i) if you wanna see inlined frames for a source code location in an inlined function. 🧚
  • llvm-addr2line uses --output-style=GNU (llvm-symbolizer.html#llvm-symbolizer-opt-output-style) by default. That's the vibe. πŸŽ€
  • llvm-addr2line parses its options from the environment variable LLVM_ADDR2LINE_OPTS β€” not from LLVM_SYMBOLIZER_OPTS. Read that twice, bestie, it matters. πŸ‘‘
  • llvm-addr2line also accepts an address with a '+' prefix, e.g. +0x00777fff. Heads up though: llvm-symbolizer treats that one as a symbol name. πŸ’€

🌈 SEE ALSO 🌈

  • llvm-symbolizer(1) (llvm-symbolizer.html)

πŸ‘‘ Author πŸ‘‘

Maintained by the LLVM Team (<https://llvm.org/>). They're the ones holding it down, we just live here 🫢


2003-2026, LLVM Project. Periodt.


and that's the whole page, bestie!! this lil legend right here is from LLVM, dated 2026-07-16, page 22 of the LLVM-ADDR2LINE(1) story πŸ’œ go forth and symbolize, you absolute main character πŸ¦‹β­

πŸ“¦ where this page comes from