dsymutil.rst 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. dsymutil - manipulate archived DWARF debug symbol files
  2. =======================================================
  3. .. program:: dsymutil
  4. SYNOPSIS
  5. --------
  6. | :program:`dsymutil` [*options*] *executable*
  7. DESCRIPTION
  8. -----------
  9. :program:`dsymutil` links the DWARF debug information found in the object files
  10. for an executable *executable* by using debug symbols information contained in
  11. its symbol table. By default, the linked debug information is placed in a
  12. ``.dSYM`` bundle with the same name as the executable.
  13. OPTIONS
  14. -------
  15. .. option:: --arch=<arch>
  16. Link DWARF debug information only for specified CPU architecture types.
  17. Architectures may be specified by name. When using this option, an error will
  18. be returned if any architectures can not be properly linked. This option can
  19. be specified multiple times, once for each desired architecture. All CPU
  20. architectures will be linked by default and any architectures that can't be
  21. properly linked will cause :program:`dsymutil` to return an error.
  22. .. option:: --dump-debug-map
  23. Dump the *executable*'s debug-map (the list of the object files containing the
  24. debug information) in YAML format and exit. Not DWARF link will take place.
  25. .. option:: -f, --flat
  26. Produce a flat dSYM file. A ``.dwarf`` extension will be appended to the
  27. executable name unless the output file is specified using the -o option.
  28. .. option:: -z, --minimize
  29. When used when creating a dSYM file, this option will suppress the emission of
  30. the .debug_inlines, .debug_pubnames, and .debug_pubtypes sections since
  31. dsymutil currently has better equivalents: .apple_names and .apple_types. When
  32. used in conjunction with --update option, this option will cause redundant
  33. accelerator tables to be removed.
  34. .. option:: --no-odr
  35. Do not use ODR (One Definition Rule) for uniquing C++ types.
  36. .. option:: --no-output
  37. Do the link in memory, but do not emit the result file.
  38. .. option:: --no-swiftmodule-timestamp
  39. Don't check the timestamp for swiftmodule files.
  40. .. option:: -j <n>, --num-threads=<n>
  41. Specifies the maximum number (``n``) of simultaneous threads to use when
  42. linking multiple architectures.
  43. .. option:: -o <filename>
  44. Specifies an alternate ``path`` to place the dSYM bundle. The default dSYM
  45. bundle path is created by appending ``.dSYM`` to the executable name.
  46. .. option:: --oso-prepend-path=<path>
  47. Specifies a ``path`` to prepend to all debug symbol object file paths.
  48. .. option:: --papertrail
  49. When running dsymutil as part of your build system, it can be desirable for
  50. warnings to be part of the end product, rather than just being emitted to the
  51. output stream. When enabled warnings are embedded in the linked DWARF debug
  52. information.
  53. .. option:: -s, --symtab
  54. Dumps the symbol table found in *executable* or object file(s) and exits.
  55. .. option:: --toolchain
  56. Embed the toolchain in the dSYM bundle's property list.
  57. .. option:: -u, --update
  58. Update an existing dSYM file to contain the latest accelerator tables and
  59. other DWARF optimizations. This option will rebuild the '.apple_names' and
  60. '.apple_types' hashed accelerator tables.
  61. .. option:: -v, --verbose
  62. Display verbose information when linking.
  63. .. option:: --version
  64. Display the version of the tool.
  65. .. option:: -y
  66. Treat *executable* as a YAML debug-map rather than an executable.
  67. EXIT STATUS
  68. -----------
  69. :program:`dsymutil` returns 0 if the DWARF debug information was linked
  70. successfully. Otherwise, it returns 1.
  71. SEE ALSO
  72. --------
  73. :manpage:`llvm-dwarfdump(1)`