diff options
| author | 2022-06-01 00:19:49 -0400 | |
|---|---|---|
| committer | 2022-06-01 00:19:49 -0400 | |
| commit | de2f2e5140eb85311e0fd844c580d6726adf7e03 (patch) | |
| tree | 10f0e96a0689b2edb823f5833ff388ac9c645229 /src/core/memory.h | |
| parent | Merge pull request #8401 from zhaobot/tx-update-20220601034505 (diff) | |
| parent | core/debugger: Implement new GDB stub debugger (diff) | |
| download | yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.gz yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.tar.xz yuzu-de2f2e5140eb85311e0fd844c580d6726adf7e03.zip | |
Merge pull request #8394 from liamwhite/debugger
core/debugger: Implement new GDB stub debugger
Diffstat (limited to 'src/core/memory.h')
| -rw-r--r-- | src/core/memory.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/memory.h b/src/core/memory.h index b5721b740..58cc27b29 100644 --- a/src/core/memory.h +++ b/src/core/memory.h | |||
| @@ -96,6 +96,17 @@ public: | |||
| 96 | [[nodiscard]] bool IsValidVirtualAddress(VAddr vaddr) const; | 96 | [[nodiscard]] bool IsValidVirtualAddress(VAddr vaddr) const; |
| 97 | 97 | ||
| 98 | /** | 98 | /** |
| 99 | * Checks whether or not the supplied range of addresses are all valid | ||
| 100 | * virtual addresses for the current process. | ||
| 101 | * | ||
| 102 | * @param base The address to begin checking. | ||
| 103 | * @param size The amount of bytes to check. | ||
| 104 | * | ||
| 105 | * @returns True if all bytes in the given range are valid, false otherwise. | ||
| 106 | */ | ||
| 107 | [[nodiscard]] bool IsValidVirtualAddressRange(VAddr base, u64 size) const; | ||
| 108 | |||
| 109 | /** | ||
| 99 | * Gets a pointer to the given address. | 110 | * Gets a pointer to the given address. |
| 100 | * | 111 | * |
| 101 | * @param vaddr Virtual address to retrieve a pointer to. | 112 | * @param vaddr Virtual address to retrieve a pointer to. |