pcsx2/common/CrashHandler.h

21 lines
457 B
C
Raw Permalink Normal View History

// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
// SPDX-License-Identifier: GPL-3.0+
2022-04-18 14:58:13 +00:00
#include <string_view>
#ifndef _WIN32
#include <csignal>
#endif
2022-04-18 14:58:13 +00:00
namespace CrashHandler
{
bool Install();
void SetWriteDirectory(std::string_view dump_directory);
void WriteDumpForCaller();
#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