blob: a29bc3c295c7ae124e0ea23b12124e38de4e2f05 [file] [log] [blame]
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +00001dsymutil - manipulate archived DWARF debug symbol files
2=======================================================
3
4SYNOPSIS
5--------
6
7| :program:`dsymutil` [*options*] *executable*
8
9DESCRIPTION
10-----------
11
12:program:`dsymutil` links the DWARF debug information found in the object files
13for an executable *executable* by using debug symbols information contained in
14its symbol table. By default, the linked debug information is placed in a
15``.dSYM`` bundle with the same name as the executable.
16
17OPTIONS
18-------
Adrian Prantl3c6491d2017-11-06 16:52:05 +000019.. option:: --arch=<arch>
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000020
21 Link DWARF debug information only for specified CPU architecture types.
22 Architectures may be specified by name. When using this option, an error will
23 be returned if any architectures can not be properly linked. This option can
24 be specified multiple times, once for each desired architecture. All CPU
25 architectures will be linked by default and any architectures that can't be
26 properly linked will cause :program:`dsymutil` to return an error.
27
Adrian Prantl3c6491d2017-11-06 16:52:05 +000028.. option:: --dump-debug-map
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000029
Adrian Prantl3c6491d2017-11-06 16:52:05 +000030 Dump the *executable*'s debug-map (the list of the object files containing the
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000031 debug information) in YAML format and exit. Not DWARF link will take place.
32
Adrian Prantl3c6491d2017-11-06 16:52:05 +000033.. option:: -f, --flat
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000034
35 Produce a flat dSYM file. A ``.dwarf`` extension will be appended to the
36 executable name unless the output file is specified using the -o option.
37
Adrian Prantl3c6491d2017-11-06 16:52:05 +000038.. option:: --no-odr
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000039
40 Do not use ODR (One Definition Rule) for uniquing C++ types.
41
Adrian Prantl3c6491d2017-11-06 16:52:05 +000042.. option:: --no-output
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000043
44 Do the link in memory, but do not emit the result file.
45
Adrian Prantl3c6491d2017-11-06 16:52:05 +000046.. option:: --no-swiftmodule-timestamp
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000047
48 Don't check the timestamp for swiftmodule files.
49
Adrian Prantl3c6491d2017-11-06 16:52:05 +000050.. option:: -j <n>, --num-threads=<n>
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000051
52 Specifies the maximum number (``n``) of simultaneous threads to use when
53 linking multiple architectures.
54
55.. option:: -o <filename>
56
57 Specifies an alternate ``path`` to place the dSYM bundle. The default dSYM
58 bundle path is created by appending ``.dSYM`` to the executable name.
59
Adrian Prantl3c6491d2017-11-06 16:52:05 +000060.. option:: --oso-prepend-path=<path>
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000061
62 Specifies a ``path`` to prepend to all debug symbol object file paths.
63
Adrian Prantl3c6491d2017-11-06 16:52:05 +000064.. option:: -s, --symtab
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000065
Adrian Prantl3c6491d2017-11-06 16:52:05 +000066 Dumps the symbol table found in *executable* or object file(s) and exits.
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000067
Adrian Prantl3c6491d2017-11-06 16:52:05 +000068.. option:: -v, --verbose
Jonas Devliegherefb7bf1d2017-11-02 18:44:54 +000069
70 Display verbose information when linking.
71
72.. option:: --version
73
74 Display the version of the tool.
75
76.. option:: -y
77
78 Treat *executable* as a YAML debug-map rather than an executable.
79
80EXIT STATUS
81-----------
82
83:program:`dsymutil` returns 0 if the DWARF debug information was linked
84successfully. Otherwise, it returns 1.
85
86SEE ALSO
87--------
88
89:manpage:`llvm-dwarfdump(1)`