LLVM-ADDR2LINE(1)

πŸ’… llvm-addr2line β€” the LLVM-ADDR2LINE(1) manual, bestie πŸ’…

🌸 NAME 🌸

llvm-addr2line β€” literally a drop-in replacement for addr2line. That’s the vibe, no cap. 🫢

✨ SYNOPSIS ✨

llvm-addr2line [options]

πŸŽ€ DESCRIPTION πŸŽ€

Okay so bestie, llvm-addr2line is an alias for the llvm-symbolizer(1) tool, but with different defaults. The whole goal is to make it a drop-in replacement for GNU’s addr2line. Iconic behavior, honestly. πŸ‘‘

Here are some of those differences, and yes we’re going through 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. She’s out here guessing; llvm-addr2line is not. πŸ’…
  • 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. Slay.
  • 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. Periodt. πŸ’–
  • llvm-addr2line parses options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS. Different env var, different energy. πŸ¦‹

πŸ‘€ SEE ALSO πŸ‘€

  • llvm-symbolizer(1) β€” go read that one too, bestie. It’s the main character this page keeps referencing. πŸ’œ

πŸ’Œ AUTHOR πŸ’Œ

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

2003-2023, LLVM Project


That’s the whole manual, bestie β€” version 17, dated 2023-12-01, from the LLVM-ADDR2LINE(1) page. Stay iconic and may your addresses always resolve. πŸ’…βœ¨πŸ’œ

πŸ“¦ where this page comes from