diff options
author | Charles Lombardo <clombardo169@gmail.com> | 2024-01-15 19:50:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 19:50:58 +0100 |
commit | 0127cec371164c5cb59233b860c0932c66d9d697 (patch) | |
tree | 9977b279f22dba2f73944f6ea99453f1ba3319e9 /src/core/debugger/gdbstub.h | |
parent | Merge pull request #12610 from liamwhite/reply-and-dont-receive (diff) | |
parent | kernel: optimize page free on shutdown (diff) | |
download | yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar.gz yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar.bz2 yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar.lz yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar.xz yuzu-0127cec371164c5cb59233b860c0932c66d9d697.tar.zst yuzu-0127cec371164c5cb59233b860c0932c66d9d697.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/debugger/gdbstub.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/core/debugger/gdbstub.h b/src/core/debugger/gdbstub.h index 368197920..232dcf49f 100644 --- a/src/core/debugger/gdbstub.h +++ b/src/core/debugger/gdbstub.h @@ -12,13 +12,22 @@ #include "core/debugger/debugger_interface.h" #include "core/debugger/gdbstub_arch.h" +namespace Kernel { +class KProcess; +} + +namespace Core::Memory { +class Memory; +} + namespace Core { class System; class GDBStub : public DebuggerFrontend { public: - explicit GDBStub(DebuggerBackend& backend, Core::System& system); + explicit GDBStub(DebuggerBackend& backend, Core::System& system, + Kernel::KProcess* debug_process); ~GDBStub() override; void Connected() override; @@ -42,8 +51,12 @@ private: void SendReply(std::string_view data); void SendStatus(char status); + Kernel::KProcess* GetProcess(); + Core::Memory::Memory& GetMemory(); + private: Core::System& system; + Kernel::KProcess* debug_process; std::unique_ptr<GDBStubArch> arch; std::vector<char> current_command; std::map<VAddr, u32> replaced_instructions; |