diff options
| author | Liam <byteslice@airmail.cc> | 2022-05-30 19:35:01 -0400 |
|---|---|---|
| committer | Liam <byteslice@airmail.cc> | 2022-06-01 00:01:25 -0400 |
| commit | 2ee161a0bf97c22112e228f0648c96751b829fce (patch) | |
| tree | e2588a859d364a32be0cd9e0401a345c6492d1a7 /src/core/memory.h | |
| parent | 7f1bf5c7a7a73273a73657f0af10697e9e0a728d (diff) | |
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 b5721b7405..58cc27b299 100644 --- a/src/core/memory.h +++ b/src/core/memory.h @@ -96,6 +96,17 @@ public: [[nodiscard]] bool IsValidVirtualAddress(VAddr vaddr) const; /** + * Checks whether or not the supplied range of addresses are all valid + * virtual addresses for the current process. + * + * @param base The address to begin checking. + * @param size The amount of bytes to check. + * + * @returns True if all bytes in the given range are valid, false otherwise. + */ + [[nodiscard]] bool IsValidVirtualAddressRange(VAddr base, u64 size) const; + + /** * Gets a pointer to the given address. * * @param vaddr Virtual address to retrieve a pointer to. |
