/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include #if defined(XP_WIN) # include #endif // defined(XP_WIN) #include "mozilla/crash_helper_ffi_generated.h" int main(int argc, char* argv[]) { if (argc < 2) { exit(EXIT_FAILURE); } errno = 0; long value = strtol(argv[1], nullptr, 10); Pid client_pid = static_cast(value); if (errno != 0) { exit(EXIT_FAILURE); } crash_generator_logic(client_pid); exit(EXIT_SUCCESS); }