2024-05-06 15:42:59 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
2023-12-22 11:57:49 +00:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0+
|
2022-04-18 14:58:13 +00:00
|
|
|
|
|
|
|
#include <string_view>
|
|
|
|
|
2024-05-29 10:30:53 +00:00
|
|
|
#ifndef _WIN32
|
|
|
|
#include <csignal>
|
|
|
|
#endif
|
|
|
|
|
2022-04-18 14:58:13 +00:00
|
|
|
namespace CrashHandler
|
|
|
|
{
|
|
|
|
bool Install();
|
2024-05-06 15:42:59 +00:00
|
|
|
void SetWriteDirectory(std::string_view dump_directory);
|
2022-05-24 11:21:31 +00:00
|
|
|
void WriteDumpForCaller();
|
2024-05-29 10:30:53 +00:00
|
|
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
// Allow crash handler to be invoked from a signal.
|
|
|
|
void CrashSignalHandler(int signal, siginfo_t* siginfo, void* ctx);
|
|
|
|
#endif
|
2022-04-18 14:58:13 +00:00
|
|
|
} // namespace CrashHandler
|