LLVM-ADDR2LINE(1)

πŸ“¦ version 15.0.7, in opensuse-leap 16.0

πŸ’… llvm-addr2line β€” the LLVM manual page, but make it cute

okay so bestie, welcome to llvm-addr2line, part of the LLVM manual family. This is the whole page, the whole vibe, nothing skipped. Let's go πŸ’–


✨ NAME ✨

llvm-addr2line β€” literally just a drop-in replacement for addr2line, no cap πŸŽ€


🌸 SYNOPSIS 🌸

llvm-addr2line [options]

That's it. That's the whole synopsis. Iconic, honestly.


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea: llvm-addr2line is an alias for the llvm-symbolizer(1) tool, except it ships with different defaults. The whole goal here is to make it a genuine drop-in replacement for GNU's addr2line. Periodt. πŸ‘‘

Here are some of those differences, bestie β€” every single one, not skipping a single crumb:

  • llvm-addr2line reads all addresses as hexadecimal and just ignores an optional 0x prefix, whereas llvm-symbolizer tries to figure out the base from the literal's prefix and defaults to decimal when there's no prefix. Yes, that's a whole personality difference fr fr.
  • llvm-addr2line defaults to not printing function names. Want them? Use -f to turn that on 🫢
  • llvm-addr2line defaults to not demangling function names. Flip demangling on with -C.
  • llvm-addr2line defaults to not printing inlined frames. Use -i to actually show the inlined frames for a source code location inside an inlined function πŸ’…
  • llvm-addr2line uses --output-style=GNU by default. Default. Always. No notes.
  • llvm-addr2line parses its options from the environment variable LLVM_ADDR2LINE_OPTS, not from LLVM_SYMBOLIZER_OPTS. Different env var, different girl πŸ’œ
lowkey the theme here is: everything GNU addr2line does by default, this one does by default too. That's the whole assignment ✨

πŸ”₯ SEE ALSO πŸ”₯


🌈 AUTHOR 🌈

Maintained by the LLVM Team (https://llvm.org/). They're doing amazing, sweetie πŸ’–


2003-2023, LLVM Project β€” yeah, twenty whole years of copyright, we love longevity 🧚


and that's a wrap, bestie πŸ¦‹ this was LLVM-ADDR2LINE(1) from the LLVM manual, version 15, dated 2023-01-14 β€” mwah, slay, go symbolize some addresses πŸ’…πŸ’–

πŸ“¦ where this page comes from