diff options
author | Oxore <oxore@protonmail.com> | 2022-08-30 20:34:04 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-08-30 22:31:47 +0300 |
commit | 1c108b02f62c0812a8a71e78854666588a811840 (patch) | |
tree | 45a223e75cc5a76273c88e3c96148a67a07324d8 /m68k_debugging.hpp | |
parent | ed3cf413dfe5f874f203f8b6a696af29cfc47dcd (diff) |
Implement GDB's execution continue and interrupt
Diffstat (limited to 'm68k_debugging.hpp')
-rw-r--r-- | m68k_debugging.hpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/m68k_debugging.hpp b/m68k_debugging.hpp index 4892493..d1acce8 100644 --- a/m68k_debugging.hpp +++ b/m68k_debugging.hpp @@ -42,9 +42,14 @@ struct M68KCPUState { class M68KDebuggingControl { public: M68KDebuggingControl() = default; + M68KDebuggingControl(M68KDebuggingControl&&) = delete; + M68KDebuggingControl(const M68KDebuggingControl&) = delete; + uint32_t GetRegister(M68KRegister) const; M68KCPUState GetCPUState() const; void SetRegister(M68KRegister, uint32_t value); + bool IsRunning() const { return _is_running; } + void SetRunning(bool running) { _is_running = running; } void Reset(); void Continue(); void Pause(); @@ -54,7 +59,7 @@ public: void Write8(uint32_t address, uint8_t value); void Write16(uint32_t address, uint16_t value); void Write32(uint32_t address, uint32_t value); + private: - M68KDebuggingControl(M68KDebuggingControl&&) = delete; - M68KDebuggingControl(const M68KDebuggingControl&) = delete; + bool _is_running{}; }; |