diff options
| author | 2018-07-13 04:22:59 +0100 | |
|---|---|---|
| committer | 2018-07-12 20:22:59 -0700 | |
| commit | e066bc75b9443ffe39adc44a113eca8e899c6e80 (patch) | |
| tree | 78bd4a46cfa69c678ae7518260b0a91cc4227adf /src/core/loader/nso.cpp | |
| parent | Merge pull request #656 from ogniK5377/audren-mem-init (diff) | |
| download | yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.gz yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.tar.xz yuzu-e066bc75b9443ffe39adc44a113eca8e899c6e80.zip | |
More improvements to GDBStub (#653)
* More improvements to GDBStub
- Debugging of threads should work correctly with source and assembly level stepping and modifying registers and memory, meaning threads and callstacks are fully clickable in VS.
- List of modules is available to the client, with assumption that .nro and .nso are backed up by an .elf with symbols, while deconstructed ROMs keep N names.
- Initial support for floating point registers.
* Tidy up as requested in PR feedback
* Tidy up as requested in PR feedback
Diffstat (limited to 'src/core/loader/nso.cpp')
| -rw-r--r-- | src/core/loader/nso.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 7f84e4b1b..1c629e21f 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | #include "common/logging/log.h" | 10 | #include "common/logging/log.h" |
| 11 | #include "common/swap.h" | 11 | #include "common/swap.h" |
| 12 | #include "core/core.h" | 12 | #include "core/core.h" |
| 13 | #include "core/gdbstub/gdbstub.h" | ||
| 13 | #include "core/hle/kernel/process.h" | 14 | #include "core/hle/kernel/process.h" |
| 14 | #include "core/hle/kernel/resource_limit.h" | 15 | #include "core/hle/kernel/resource_limit.h" |
| 15 | #include "core/loader/nso.h" | 16 | #include "core/loader/nso.h" |
| @@ -147,6 +148,9 @@ VAddr AppLoader_NSO::LoadModule(const std::string& name, const std::vector<u8>& | |||
| 147 | codeset->memory = std::make_shared<std::vector<u8>>(std::move(program_image)); | 148 | codeset->memory = std::make_shared<std::vector<u8>>(std::move(program_image)); |
| 148 | Core::CurrentProcess()->LoadModule(codeset, load_base); | 149 | Core::CurrentProcess()->LoadModule(codeset, load_base); |
| 149 | 150 | ||
| 151 | // Register module with GDBStub | ||
| 152 | GDBStub::RegisterModule(codeset->name, load_base, load_base); | ||
| 153 | |||
| 150 | return load_base + image_size; | 154 | return load_base + image_size; |
| 151 | } | 155 | } |
| 152 | 156 | ||