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