rpcs3/Utilities/AutoPause.h

23 lines
471 B
C
Raw Normal View History

#pragma once
2016-05-13 14:01:48 +00:00
#include <unordered_set>
2016-02-01 21:55:43 +00:00
// Regarded as a Debugger Enchantment
namespace debug
{
// To store the pause function/call id, and let those pause there.
// Would be with a GUI to configure those.
class autopause
{
2016-02-01 21:55:43 +00:00
std::unordered_set<u64> m_pause_syscall;
std::unordered_set<u32> m_pause_function;
2016-02-01 21:55:43 +00:00
static autopause& get_instance();
public:
2016-02-01 21:55:43 +00:00
static void reload();
static bool pause_syscall(u64 code);
static bool pause_function(u32 code);
};
2016-02-01 21:55:43 +00:00
}