addr2line(1)

addr2line1

A drop-in replacement for addr2line

Part of llvm-addr2line(1).

Usage

llvm-addr2line [options]

Overview

llvm-addr2line is an alias for the llvm-symbolizer(1) tool with different defaults. The goal is to make it a drop-in replacement for GNU's addr2line.

Here are some of those differences:

•

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.

•

llvm-addr2line defaults not to print function names. Use -f to enable that.

•

llvm-addr2line defaults not to demangle function names. Use -C to switch the demangling on.

•

llvm-addr2line defaults not to print 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.

Releases

77 releases since FreeBSD 3.0-RELEASE; the text changed 15 times.

  1. 3.0–4.3
  2. 4.4–4.11
  3. 5.0–5.2.1
  4. 5.3–8.4
  5. 9.0
  6. 9.1
  7. 9.2
  8. 9.3
  9. 10.0
  10. 10.1
  11. 10.2
  12. 10.3
  13. 10.4
  14. 11.0–12.0
  15. 12.1–14.5
  16. 15.0–16.0

--addresses until FreeBSD 14.5-RELEASE; --basename until FreeBSD 14.5-RELEASE; --basenames until FreeBSD 10.4-RELEASE; --demangle until FreeBSD 14.5-RELEASE; --exe until FreeBSD 10.4-RELEASE; --functions until FreeBSD 14.5-RELEASE; --help until FreeBSD 14.5-RELEASE; --inlines until FreeBSD 14.5-RELEASE; --pretty-print until FreeBSD 14.5-RELEASE; --section until FreeBSD 10.4-RELEASE; --target until FreeBSD 10.4-RELEASE; --version until FreeBSD 14.5-RELEASE; -C until FreeBSD 14.5-RELEASE; -H until FreeBSD 14.5-RELEASE; -V until FreeBSD 14.5-RELEASE; -a until FreeBSD 14.5-RELEASE; -b until FreeBSD 10.4-RELEASE; -e until FreeBSD 10.4-RELEASE; -f until FreeBSD 14.5-RELEASE; -i until FreeBSD 14.5-RELEASE; -j until FreeBSD 10.4-RELEASE; -p until FreeBSD 14.5-RELEASE; -s until FreeBSD 14.5-RELEASE.

Author

Maintained by the LLVM Team (https://llvm.org/).

From base 16.0-CURRENT-20261027-61c70dc16a79 in FreeBSD 16.0-CURRENT (2026-10-27). Parsed by carta from the page's man source.