core/debugger: Implement new GDB stub debugger
This commit is contained in:
parent
f6c47df671
commit
fb4b3c127f
27 changed files with 1500 additions and 42 deletions
|
@ -594,6 +594,19 @@ bool Memory::IsValidVirtualAddress(const VAddr vaddr) const {
|
|||
return pointer != nullptr || type == Common::PageType::RasterizerCachedMemory;
|
||||
}
|
||||
|
||||
bool Memory::IsValidVirtualAddressRange(VAddr base, u64 size) const {
|
||||
VAddr end = base + size;
|
||||
VAddr page = Common::AlignDown(base, PAGE_SIZE);
|
||||
|
||||
for (; page < end; page += PAGE_SIZE) {
|
||||
if (!IsValidVirtualAddress(page)) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
u8* Memory::GetPointer(VAddr vaddr) {
|
||||
return impl->GetPointer(vaddr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue