LLVM-ADDR2LINE(1)
β¨ 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-addr2linereads every single address as hexadecimal and straight-up ignores an optional0xprefix. Meanwhilellvm-symbolizeris 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-addr2linedefaults to not printing function names. You want names? Use-fto turn that on, bestie.llvm-addr2linedefaults to not demangling function names. Flip the demangling switch on with-C.llvm-addr2linedefaults to not printing inlined frames. Want inlined frames for a source code location inside an inlined function? That's-i, go off. β¨llvm-addr2lineuses--output-style=GNUby default. Iconic behaviour, honestly.llvm-addr2linereads its options from the environment variableLLVM_ADDR2LINE_OPTSinstead of fromLLVM_SYMBOLIZER_OPTS. Yes, it's different, no, it's not a typo. π
π₯ SEE ALSO π₯
llvm-symbolizer(1)β the sibling, the blueprint, the origin story π«Ά
π AUTHOR π
Maintained by the LLVM Team (https://llvm.org/). Slay.
π COPYRIGHT π
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
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 43: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- fedora 44: llvm11 11.1.0-14.fc41 Β· NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms