blob: 27b0fd9a947bcb6a2bd5a8dac6699815431b4f19 [file] [log] [blame]
Jordan Rupprechta28b8d72019-08-21 18:00:17 +00001llvm-addr2line - a drop-in replacement for addr2line
2====================================================
3
4.. program:: llvm-addr2line
5
6SYNOPSIS
7--------
8
9:program:`llvm-addr2line` [*options*]
10
11DESCRIPTION
12-----------
13
14:program:`llvm-addr2line` is an alias for the :manpage:`llvm-symbolizer(1)`
15tool with different defaults. The goal is to make it a drop-in replacement for
16GNU's :program:`addr2line`.
17
18Here are some of those differences:
19
Richard Smith11ccad62020-03-30 20:10:57 -070020- ``llvm-addr2line`` defaults not to print function names. Use `-f`_ to enable
21 that.
Jordan Rupprechta28b8d72019-08-21 18:00:17 +000022
Richard Smith11ccad62020-03-30 20:10:57 -070023- ``llvm-addr2line`` defaults not to demangle function names. Use `-C`_ to
24 switch the demangling on.
Jordan Rupprechta28b8d72019-08-21 18:00:17 +000025
Richard Smith11ccad62020-03-30 20:10:57 -070026- ``llvm-addr2line`` defaults not to print inlined frames. Use `-i`_ to show
27 inlined frames for a source code location in an inlined function.
Jordan Rupprechta28b8d72019-08-21 18:00:17 +000028
Richard Smith11ccad62020-03-30 20:10:57 -070029- ``llvm-addr2line`` uses `--output-style=GNU`_ by default.
Jordan Rupprechta28b8d72019-08-21 18:00:17 +000030
Richard Smith11ccad62020-03-30 20:10:57 -070031- ``llvm-addr2line`` parses options from the environment variable
32 ``LLVM_ADDR2LINE_OPTS`` instead of from ``LLVM_SYMBOLIZER_OPTS``.
Petr Hosekdedad082019-12-18 10:19:47 -080033
Jordan Rupprechta28b8d72019-08-21 18:00:17 +000034SEE ALSO
35--------
36
37:manpage:`llvm-symbolizer(1)`
38
39.. _-f: llvm-symbolizer.html#llvm-symbolizer-opt-f
40.. _-C: llvm-symbolizer.html#llvm-symbolizer-opt-c
41.. _-i: llvm-symbolizer.html#llvm-symbolizer-opt-i
42.. _--output-style=GNU: llvm-symbolizer.html#llvm-symbolizer-opt-output-style