LLVM-ADDR2LINE(1)

πŸ“¦
version 13.0.1 Β· 5 versions
, in ubuntu jammy

πŸŽ€ llvm-addr2line(1) β€” LLVM manual page, bestie πŸŽ€

✨ NAME ✨

okay so llvm-addr2line is literally a drop-in replacement for addr2line. that’s the whole vibe. πŸ’…


🫢 SYNOPSIS 🫢

llvm-addr2line [options]

πŸ’… DESCRIPTION πŸ’…

llvm-addr2line is an alias for the llvm-symbolizer(1) tool, but with different defaults. the goal? make it a drop-in replacement for GNU’s addr2line. no cap.

here are some of those differences, bestie:

  • hexadecimal addresses β€” llvm-addr2line interprets all addresses as hexadecimal and ignores an optional 0x prefix. meanwhile llvm-symbolizer attempts to determine the base from the literal’s prefix and defaults to decimal if there is no prefix. it’s giving β€œread the room, then read the prefix.”
  • -f β€” function names are not printed by default. use -f to enable that. 🫢
  • -C β€” function names are not demangled by default. use -C to switch the demangling on. slay.
  • -i β€” inlined frames are not printed by default. use -i to show inlined frames for a source code location in an inlined function. iconic.
  • –output-style=GNU β€” this is the default output style. yup, that exact spelling. πŸ™ˆ
  • LLVM_ADDR2LINE_OPTS β€” llvm-addr2line parses options from the environment variable LLVM_ADDR2LINE_OPTS instead of from LLVM_SYMBOLIZER_OPTS. main character env var energy. πŸ‘‘

🌈 SEE ALSO 🌈

llvm-symbolizer(1)

πŸ‘‘ AUTHOR πŸ‘‘

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

2003-2023, LLVM Project

πŸ’– cute sign-off: this page is LLVM version 13, dated 2023-07-14, and the manual page name is LLVM-ADDR2LINE(1). bye bestie, go read some addresses. πŸ’–

πŸ“¦ where this page comes from