LLVM-ADDR2LINE(1)

πŸŽ€ NAME πŸŽ€

okay so welcome to the LLVM-ADDR2LINE(1) page in the LLVM manual, bestie πŸ’– llvm-addr2line is literally a drop-in replacement for addr2line. that's the whole name vibe 🫢

πŸ“œ SYNOPSIS πŸ“œ

llvm-addr2line [options]

✨ DESCRIPTION ✨

llvm-addr2line is an alias for the llvm-symbolizer(1) tool with different defaults. the goal? make it a drop-in replacement for GNU’s addr2line. iconic behavior, no cap πŸ‘‘

here are some of those differences, and yes you need all of them:

  • llvm-addr2line interprets all addresses as hexadecimal and ignores an optional 0x prefix, whereas llvm-symbolizer attempts to determine the base from the literal’s prefix and defaults to decimal if there is no prefix. hex girl summer πŸ’…
  • llvm-addr2line defaults not to print function names. use -f to enable that.
  • llvm-addr2line defaults not to demangle function names. use -C to switch the demangling on.
  • llvm-addr2line defaults not to print inlined frames. use -i to show inlined frames for a source code location in an inlined function.
  • llvm-addr2line uses –output-style=GNU by default.
  • llvm-addr2line parses options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS.

🌈 SEE ALSO 🌈

πŸ‘‘ AUTHOR πŸ‘‘

maintained by the LLVM Team (https://llvm.org/). πŸ’–

2003-2023, LLVM Project


okay that's the whole page, bestie. this one is from LLVM 15, dated 2023-07-14 β€” slay and goodbye πŸ¦‹

πŸ“¦ where this page comes from