| 99 | // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_MAC) |
| 100 | |
| 101 | void Usage(const base::FilePath& me) { |
| 102 | // clang-format off |
| 103 | fprintf(stderr, |
| 104 | "Usage: %" PRFilePath " [OPTION]...\n" |
| 105 | "Crashpad's exception handler server.\n" |
| 106 | "\n" |
| 107 | " --annotation=KEY=VALUE set a process annotation in each crash report\n" |
| 108 | // clang-format on |
| 109 | #if defined(ATTACHMENTS_SUPPORTED) |
| 110 | // clang-format off |
| 111 | " --attachment=FILE_PATH attach specified file to each crash report\n" |
| 112 | " at the time of the crash\n" |
| 113 | // clang-format on |
| 114 | #endif // ATTACHMENTS_SUPPORTED |
| 115 | // clang-format off |
| 116 | " --database=PATH store the crash report database at PATH\n" |
| 117 | // clang-format on |
| 118 | #if BUILDFLAG(IS_APPLE) |
| 119 | // clang-format off |
| 120 | " --handshake-fd=FD establish communication with the client over FD\n" |
| 121 | // clang-format on |
| 122 | #endif // BUILDFLAG(IS_APPLE) |
| 123 | #if BUILDFLAG(IS_WIN) |
| 124 | // clang-format off |
| 125 | " --initial-client-data=HANDLE_request_crash_dump,\n" |
| 126 | " HANDLE_request_non_crash_dump,\n" |
| 127 | " HANDLE_non_crash_dump_completed,\n" |
| 128 | " HANDLE_pipe,\n" |
| 129 | " HANDLE_client_process,\n" |
| 130 | " Address_crash_exception_information,\n" |
| 131 | " Address_non_crash_exception_information,\n" |
| 132 | " Address_debug_critical_section\n" |
| 133 | " use precreated data to register initial client\n" |
| 134 | // clang-format on |
| 135 | #endif // BUILDFLAG(IS_WIN) |
| 136 | #if BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) |
| 137 | // clang-format off |
| 138 | " --initial-client-fd=FD a socket connected to a client.\n" |
| 139 | // clang-format on |
| 140 | #endif // BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_LINUX) || |
| 141 | // BUILDFLAG(IS_CHROMEOS) |
| 142 | #if BUILDFLAG(IS_APPLE) |
| 143 | // clang-format off |
| 144 | " --mach-service=SERVICE register SERVICE with the bootstrap server\n" |
| 145 | // clang-format on |
| 146 | #endif // BUILDFLAG(IS_APPLE) |
| 147 | // clang-format off |
| 148 | " --metrics-dir=DIR store metrics files in DIR (only in Chromium)\n" |
| 149 | " --monitor-self run a second handler to catch crashes in the first\n" |
| 150 | " --monitor-self-annotation=KEY=VALUE\n" |
| 151 | " set a module annotation in the handler\n" |
| 152 | " --monitor-self-argument=ARGUMENT\n" |
| 153 | " provide additional arguments to the second handler\n" |
| 154 | " --no-identify-client-via-url\n" |
| 155 | " when uploading crash report, don't add\n" |
| 156 | " client-identifying arguments to URL\n" |
| 157 | " --no-periodic-tasks don't scan for new reports or prune the database\n" |
| 158 | " --no-rate-limit don't rate limit crash uploads\n" |