brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 999b3e0 Raw
51 lines · plain
1llvm-addr2line - a drop-in replacement for addr2line2====================================================3 4.. program:: llvm-addr2line5 6SYNOPSIS7--------8 9:program:`llvm-addr2line` [*options*]10 11DESCRIPTION12-----------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 for16GNU's :program:`addr2line`.17 18Here are some of those differences:19 20-  ``llvm-addr2line`` interprets all addresses as hexadecimal and ignores an21   optional ``0x`` prefix, whereas ``llvm-symbolizer`` attempts to determine22   the base from the literal's prefix and defaults to decimal if there is no23   prefix.24 25-  ``llvm-addr2line`` defaults not to print function names. Use `-f`_ to enable26   that.27 28-  ``llvm-addr2line`` defaults not to demangle function names. Use `-C`_ to29   switch the demangling on.30 31-  ``llvm-addr2line`` defaults not to print inlined frames. Use `-i`_ to show32   inlined frames for a source code location in an inlined function.33 34-  ``llvm-addr2line`` uses `--output-style=GNU`_ by default.35 36-  ``llvm-addr2line`` parses options from the environment variable37   ``LLVM_ADDR2LINE_OPTS`` instead of from ``LLVM_SYMBOLIZER_OPTS``.38 39- ``llvm-addr2line`` accepts an address with a '+' prefix, e.g. `+0x00777fff`.40  This is treated as a symbol name by ``llvm-symbolizer``.41 42SEE ALSO43--------44 45:manpage:`llvm-symbolizer(1)`46 47.. _-f: llvm-symbolizer.html#llvm-symbolizer-opt-f48.. _-C: llvm-symbolizer.html#llvm-symbolizer-opt-c49.. _-i: llvm-symbolizer.html#llvm-symbolizer-opt-i50.. _--output-style=GNU: llvm-symbolizer.html#llvm-symbolizer-opt-output-style51