llvm.org GIT mirror llvm / 14809fd
Docs for llvm-symbolizer command-line tool git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176337 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 6 years ago
2 changed file(s) with 66 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
2727 llvm-diff
2828 llvm-cov
2929 llvm-stress
30 llvm-symbolizer
3031
3132 Debugging Tools
3233 ~~~~~~~~~~~~~~~
0 llvm-symbolizer - convert addresses into source code locations
1 ==============================================================
2
3 SYNOPSIS
4 --------
5
6 :program:`llvm-symbolizer` [options]
7
8 DESCRIPTION
9 -----------
10
11 :program:`llvm-symbolizer` reads object file names and addresses from standard
12 input and prints corresponding source code locations to standard output. This
13 program uses debug info sections and symbol table in the object files.
14
15 EXAMPLE
16 --------
17
18 .. code-block:: console
19
20 $ cat addr.txt
21 a.out 0x4004f4
22 /tmp/b.out 0x400528
23 /tmp/c.so 0x710
24 $ llvm-symbolizer < addr.txt
25 main
26 /tmp/a.cc:4
27
28 f(int, int)
29 /tmp/b.cc:11
30
31 h_inlined_into_g
32 /tmp/header.h:2
33 g_inlined_into_f
34 /tmp/header.h:7
35 f_inlined_into_main
36 /tmp/source.cc:3
37 main
38 /tmp/source.cc:8
39
40 OPTIONS
41 -------
42
43 .. option:: -functions
44
45 Print function names as well as source file/line locations. Defaults to true.
46
47 .. option:: -use-symbol-table
48
49 Prefer function names stored in symbol table to function names
50 in debug info sections. Defaults to true.
51
52 .. option:: -demangle
53
54 Print demangled function names. Defaults to true.
55
56 .. option:: -inlining
57
58 If a source code location is in an inlined function, prints all the
59 inlnied frames. Defaults to true.
60
61 EXIT STATUS
62 -----------
63
64 :program:`llvm-symbolizer` returns 0. Other exit codes imply internal program error.