summaryrefslogtreecommitdiffstats
path: root/src/core/loader/nro.cpp
diff options
context:
space:
mode:
authorHedges <hedges@resync.pl>2018-07-13 05:22:59 +0200
committerbunnei <bunneidev@gmail.com>2018-07-13 05:22:59 +0200
commite066bc75b9443ffe39adc44a113eca8e899c6e80 (patch)
tree78bd4a46cfa69c678ae7518260b0a91cc4227adf /src/core/loader/nro.cpp
parentMerge pull request #656 from ogniK5377/audren-mem-init (diff)
downloadyuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.gz
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.bz2
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.lz
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.xz
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.zst
yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.zip
Diffstat (limited to '')
-rw-r--r--src/core/loader/nro.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 3853cfa1a..4d7c69a22 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -9,6 +9,7 @@
#include "common/logging/log.h"
#include "common/swap.h"
#include "core/core.h"
+#include "core/gdbstub/gdbstub.h"
#include "core/hle/kernel/process.h"
#include "core/hle/kernel/resource_limit.h"
#include "core/loader/nro.h"
@@ -115,6 +116,9 @@ bool AppLoader_NRO::LoadNro(const std::string& path, VAddr load_base) {
codeset->memory = std::make_shared<std::vector<u8>>(std::move(program_image));
Core::CurrentProcess()->LoadModule(codeset, load_base);
+ // Register module with GDBStub
+ GDBStub::RegisterModule(codeset->name, load_base, load_base);
+
return true;
}