LLVM-ADDR2LINE(1)
π NAME π
llvm-addr2line β a drop-in replacement for addr2line β¨ (yes, this is a page from the LLVM manual, section 1, iykyk)
πΈ SYNOPSIS πΈ
llvm-addr2line [options]
π¦ DESCRIPTION π¦
Okay bestie, so llvm-addr2line is literally just an alias for the llvm-symbolizer(1) tool (that's llvm-symbolizer.html, for the record) β but with different defaults. The whole ~goal~ here is to make it a genuine drop-in replacement for GNU's addr2line. No cap.
And here's the tea on those differences, one by one, no skips:
llvm-addr2linetreats every address as hexadecimal and just ignores an optional0xprefix like it's nothing π β whereasllvm-symbolizeris out here trying to determine the base from the literal's prefix, and defaults to decimal if there's no prefix at all. Different energy fr fr.llvm-addr2linedefaults to not printing function names. If you want those, use-f(llvm-symbolizer.html#llvm-symbolizer-opt-f) to turn that on. πllvm-addr2linedefaults to not demangling function names. Use-C(llvm-symbolizer.html#llvm-symbolizer-opt-c) to switch the demangling on. β¨llvm-addr2linedefaults to not printing inlined frames. Use-i(llvm-symbolizer.html#llvm-symbolizer-opt-i) if you wanna see inlined frames for a source code location in an inlined function. π§llvm-addr2lineuses--output-style=GNU(llvm-symbolizer.html#llvm-symbolizer-opt-output-style) by default. That's the vibe. πllvm-addr2lineparses its options from the environment variableLLVM_ADDR2LINE_OPTSβ not fromLLVM_SYMBOLIZER_OPTS. Read that twice, bestie, it matters. πllvm-addr2linealso accepts an address with a'+'prefix, e.g.+0x00777fff. Heads up though:llvm-symbolizertreats that one as a symbol name. π
π SEE ALSO π
llvm-symbolizer(1) (llvm-symbolizer.html)
π Author π
Maintained by the LLVM Team (<https://llvm.org/>). They're the ones holding it down, we just live here π«Ά
π Copyright π
2003-2026, LLVM Project. Periodt.
and that's the whole page, bestie!! this lil legend right here is from LLVM, dated 2026-07-16, page 22 of the LLVM-ADDR2LINE(1) story π go forth and symbolize, you absolute main character π¦β
π¦ where this page comes from
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- fedora 44: llvm 22.1.8-4.fc44 Β· Apache-2.0 WITH LLVM-exception OR NCSA
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms