Register all loaded modules with GDBStub

This commit is contained in:
Jarek Syrylak
2018-07-10 11:02:34 +01:00
parent 9cb1f759ca
commit e652110fda
4 changed files with 12 additions and 1 deletions

View File

@@ -116,6 +116,7 @@ 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
std::string filename;
Common::SplitPath(codeset->name, nullptr, &filename, nullptr);
GDBStub::RegisterModule((filename + ".elf").c_str(), load_base, load_base);