LLVM-ADDR2LINE(1)

πŸ“¦
version 12.0.1 Β· 4 versions
, in fedora 43, fedora 44

πŸ’– LLVM-ADDR2LINE(1) πŸ’–

okay bestie, welcome to the LLVM corner of the manual, where we're about to make llvm-addr2line make sense. sit down, grab a strawberry, let's go πŸ“


✨ NAME ✨

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


✨ SYNOPSIS ✨

llvm-addr2line [options]

that's it. that's the whole vibe. no positional args, no drama, just options πŸŽ€


✨ DESCRIPTION ✨

so here's the tea: llvm-addr2line is literally an alias for the llvm-symbolizer(1) tool, except it comes with different defaults. the whole goal? to make it a genuine drop-in replacement for GNU's addr2line. no cap. πŸ’…

here are some of those differences, bestie, and you will want to know them:

  • 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 at all. so like… hex girlie behavior ✨
  • llvm-addr2line defaults to not printing function names. use -f to turn that on πŸ”₯
  • llvm-addr2line defaults to not demangling function names. use -C to switch the demangling on 🧚
  • llvm-addr2line defaults to not printing 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 πŸ¦‹
ngl the defaults are the whole personality here. if you came from GNU addr2line expecting those behaviors, you're gonna feel right at home. periodt.

✨ SEE ALSO ✨


✨ AUTHOR ✨

maintained by the LLVM Team (https://llvm.org/). iconic. we love a team that keeps the lights on 🫢


2003-2024, LLVM Project ⭐


and that's the whole page bestie πŸ’– this was the LLVM manual, version 12, dated 2024-07-18 β€” go forth and symbolize your little heart out, you absolute icon πŸ‘‘πŸŒˆ

πŸ“¦ where this page comes from