2014-08-13 12:54:27 +00:00
|
|
|
#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
|
2014-08-13 12:54:27 +00:00
|
|
|
{
|
2016-02-01 21:55:43 +00:00
|
|
|
std::unordered_set<u64> m_pause_syscall;
|
|
|
|
std::unordered_set<u32> m_pause_function;
|
2014-08-13 12:54:27 +00:00
|
|
|
|
2016-02-01 21:55:43 +00:00
|
|
|
static autopause& get_instance();
|
2014-08-13 12:54:27 +00:00
|
|
|
public:
|
|
|
|
|
2016-02-01 21:55:43 +00:00
|
|
|
static void reload();
|
|
|
|
static bool pause_syscall(u64 code);
|
|
|
|
static bool pause_function(u32 code);
|
2014-08-13 12:54:27 +00:00
|
|
|
};
|
2016-02-01 21:55:43 +00:00
|
|
|
}
|