1dsymutil - manipulate archived DWARF debug symbol files 2======================================================= 3 4.. program:: dsymutil 5 6SYNOPSIS 7-------- 8 9| :program:`dsymutil` [*options*] *executable* 10 11DESCRIPTION 12----------- 13 14:program:`dsymutil` links the DWARF debug information found in the object files 15for an executable *executable* by using debug symbols information contained in 16its symbol table. By default, the linked debug information is placed in a 17``.dSYM`` bundle with the same name as the executable. 18 19OPTIONS 20------- 21.. option:: --accelerator=<accelerator type> 22 23 Specify the desired type of accelerator table. Valid options are 'Apple', 24 'Dwarf' and 'Default'. 25 26.. option:: --arch=<arch> 27 28 Link DWARF debug information only for specified CPU architecture types. 29 Architectures may be specified by name. When using this option, an error will 30 be returned if any architectures can not be properly linked. This option can 31 be specified multiple times, once for each desired architecture. All CPU 32 architectures will be linked by default and any architectures that can't be 33 properly linked will cause :program:`dsymutil` to return an error. 34 35.. option:: --dump-debug-map 36 37 Dump the *executable*'s debug-map (the list of the object files containing the 38 debug information) in YAML format and exit. Not DWARF link will take place. 39 40.. option:: -f, --flat 41 42 Produce a flat dSYM file. A ``.dwarf`` extension will be appended to the 43 executable name unless the output file is specified using the ``-o`` option. 44 45.. option:: -h, --help 46 47 Print this help output. 48 49.. option:: -j <n>, --num-threads=<n> 50 51 Specifies the maximum number (``n``) of simultaneous threads to use when 52 linking multiple architectures. 53 54.. option:: --no-odr 55 56 Do not use ODR (One Definition Rule) for uniquing C++ types. 57 58.. option:: --no-output 59 60 Do the link in memory, but do not emit the result file. 61 62.. option:: --no-swiftmodule-timestamp 63 64 Don't check the timestamp for swiftmodule files. 65 66.. option:: --object-prefix-map=<prefix=remapped> 67 68 Remap object file paths (but no source paths) before processing. Use 69 this for Clang objects where the module cache location was remapped using 70 ``-fdebug-prefix-map``; to help dsymutil find the Clang module cache. 71 72.. option:: --oso-prepend-path=<path> 73 74 Specifies a ``path`` to prepend to all debug symbol object file paths. 75 76.. option:: -o <filename>, --out <filename> 77 78 Specifies an alternate ``path`` to place the dSYM bundle. The default dSYM 79 bundle path is created by appending ``.dSYM`` to the executable name. 80 81.. option:: --papertrail 82 83 When running dsymutil as part of your build system, it can be desirable for 84 warnings to be part of the end product, rather than just being emitted to the 85 output stream. When enabled warnings are embedded in the linked DWARF debug 86 information. 87 88.. option:: --remarks-output-format <format> 89 90 Specify the format to be used when serializing the linked remarks. 91 92.. option:: --remarks-prepend-path <path> 93 94 Specify a directory to prepend the paths of the external remark files. 95 96.. option:: --symbol-map <bcsymbolmap> 97 98 Update the existing dSYMs inplace using symbol map specified. 99 100.. option:: -s, --symtab 101 102 Dumps the symbol table found in *executable* or object file(s) and exits. 103 104.. option:: -S 105 106 Output textual assembly instead of a binary dSYM companion file. 107 108.. option:: --toolchain <toolchain> 109 110 Embed the toolchain in the dSYM bundle's property list. 111 112.. option:: -u, --update 113 114 Update an existing dSYM file to contain the latest accelerator tables and 115 other DWARF optimizations. This option will rebuild the '.apple_names' and 116 '.apple_types' hashed accelerator tables. 117 118.. option:: --verbose 119 120 Display verbose information when linking. 121 122.. option:: --verify 123 124 Run the DWARF verifier on the linked DWARF debug info. 125 126.. option:: -v, --version 127 128 Display the version of the tool. 129 130.. option:: -y 131 132 Treat *executable* as a YAML debug-map rather than an executable. 133 134.. option:: -z, --minimize 135 136 When used when creating a dSYM file, this option will suppress the emission of 137 the .debug_inlines, .debug_pubnames, and .debug_pubtypes sections since 138 dsymutil currently has better equivalents: .apple_names and .apple_types. When 139 used in conjunction with ``--update`` option, this option will cause redundant 140 accelerator tables to be removed. 141 142EXIT STATUS 143----------- 144 145:program:`dsymutil` returns 0 if the DWARF debug information was linked 146successfully. Otherwise, it returns 1. 147 148SEE ALSO 149-------- 150 151:manpage:`llvm-dwarfdump(1)` 152