summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-04-08 22:25:07 -0400
committerGravatar bunnei2020-04-17 00:59:34 -0400
commit1d5923e1505bf61bde84bce4c61fe5b60ce18ee8 (patch)
treec2f8c50ccbe3c9ca93c8e43b96aaff9a6a6f05a3
parentcore: reporter: Updates for new VMM. (diff)
downloadyuzu-1d5923e1505bf61bde84bce4c61fe5b60ce18ee8.tar.gz
yuzu-1d5923e1505bf61bde84bce4c61fe5b60ce18ee8.tar.xz
yuzu-1d5923e1505bf61bde84bce4c61fe5b60ce18ee8.zip
core: gdbstub: Updates for new VMM.
-rw-r--r--src/core/gdbstub/gdbstub.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp
index 6d15aeed9..2f15635c5 100644
--- a/src/core/gdbstub/gdbstub.cpp
+++ b/src/core/gdbstub/gdbstub.cpp
@@ -37,9 +37,9 @@
37#include "core/core.h" 37#include "core/core.h"
38#include "core/core_manager.h" 38#include "core/core_manager.h"
39#include "core/gdbstub/gdbstub.h" 39#include "core/gdbstub/gdbstub.h"
40#include "core/hle/kernel/memory/page_table.h"
40#include "core/hle/kernel/process.h" 41#include "core/hle/kernel/process.h"
41#include "core/hle/kernel/scheduler.h" 42#include "core/hle/kernel/scheduler.h"
42#include "core/hle/kernel/vm_manager.h"
43#include "core/loader/loader.h" 43#include "core/loader/loader.h"
44#include "core/memory.h" 44#include "core/memory.h"
45 45
@@ -643,7 +643,7 @@ static void HandleQuery() {
643 SendReply(target_xml); 643 SendReply(target_xml);
644 } else if (strncmp(query, "Offsets", strlen("Offsets")) == 0) { 644 } else if (strncmp(query, "Offsets", strlen("Offsets")) == 0) {
645 const VAddr base_address = 645 const VAddr base_address =
646 Core::System::GetInstance().CurrentProcess()->VMManager().GetCodeRegionBaseAddress(); 646 Core::System::GetInstance().CurrentProcess()->PageTable().GetCodeRegionStart();
647 std::string buffer = fmt::format("TextSeg={:0x}", base_address); 647 std::string buffer = fmt::format("TextSeg={:0x}", base_address);
648 SendReply(buffer.c_str()); 648 SendReply(buffer.c_str());
649 } else if (strncmp(query, "fThreadInfo", strlen("fThreadInfo")) == 0) { 649 } else if (strncmp(query, "fThreadInfo", strlen("fThreadInfo")) == 0) {