LLVM-ADDR2LINE(1)

πŸ“¦
version 16.0.6 Β· 3 versions
, in ubuntu noble

πŸ’– llvm-addr2line β€” bestie's guide to the LLVM manual, section 1 πŸŽ€

okay so picture this: it's llvm-addr2line, from the LLVM manual collection, and it's literally a drop-in replacement for addr2line. that's the whole vibe. let's get into it ✨


✨ NAME ✨

llvm-addr2line β€” a drop-in replacement for addr2line πŸ’…


🌸 SYNOPSIS 🌸

llvm-addr2line [options]

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie πŸ“: llvm-addr2line is an alias for the llvm-symbolizer(1) tool but with different defaults. the whole goal, the entire mission, the main character energy of this thing, is to make it a drop-in replacement for GNU's addr2line. periodt.

here are some of those differences, and yes we're listing all of them, no skipping πŸ™ˆ:

  • 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. not me caring about your 0x… it's giving unbothered πŸ‘‘
  • llvm-addr2line defaults to not print function names. use -f to enable that. she's mysterious by default, okay?
  • llvm-addr2line defaults to not demangle function names. use -C to switch the demangling on. the names stay crunchy until you ask nicely ✨
  • llvm-addr2line defaults to not print inlined frames. use -i to show inlined frames for a source code location in an inlined function. the frames are lowkey hiding until you say the word 🫢
  • llvm-addr2line uses --output-style=GNU by default. iconic, no notes.
  • llvm-addr2line parses options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS. she has her own little diary, mind your business πŸ’–

🌈 SEE ALSO 🌈

  • llvm-symbolizer(1) β€” the sister tool, the blueprint, the blueprint-adjacent icon πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Maintained by the LLVM Team (<https://llvm.org/>). slay, honestly. πŸ”₯


2003-2024, LLVM Project


and that's the whole page, bestie πŸ’… no cap, every single line is here, nothing got ghosted.

version 15, dated 2024-04-14, from the LLVM project β€” mwah, catch you in the next manpage πŸŽ€πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from