LLVM-ADDR2LINE(1)

πŸ“¦
version 11.1.0 Β· 2 versions
, in fedora 43, fedora 44

✨ NAME ✨

llvm-addr2line β€” it's literally a drop-in replacement for addr2line, bestie πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

llvm-addr2line [options]

🌸 DESCRIPTION 🌸

Okay so real talk: llvm-addr2line is an alias for the llvm-symbolizer(1) tool, just with a whole different set of defaults. The whole point, the entire main character mission, is to make it a drop-in replacement for GNU's addr2line. Periodt. πŸ‘‘

And here's the tea on how it differs, because the vibes are NOT the same:

  • llvm-addr2line reads every single address as hexadecimal and straight-up ignores an optional 0x prefix. Meanwhile llvm-symbolizer is out here trying to detect the base from whatever prefix the literal has, and defaults to decimal when there's no prefix at all. Not it. πŸ™ˆ
  • llvm-addr2line defaults to not printing function names. You want names? Use -f to turn that on, bestie.
  • llvm-addr2line defaults to not demangling function names. Flip the demangling switch on with -C.
  • llvm-addr2line defaults to not printing inlined frames. Want inlined frames for a source code location inside an inlined function? That's -i, go off. ✨
  • llvm-addr2line uses --output-style=GNU by default. Iconic behaviour, honestly.
  • llvm-addr2line reads its options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS. Yes, it's different, no, it's not a typo. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (https://llvm.org/). Slay.


2003-2024, LLVM Project β€” yeah, they've been at this a minute πŸ’œ


And that's the whole page, bestie! This one came from the LLVM manual, dated 2024-07-18 β€” the very same day this page number 11 got its moment in the footer. Take care of her, she's a classic. πŸ¦‹πŸ’–πŸŒΈ

πŸ“¦ where this page comes from