Debugger: Include source tag in memcpys.

This commit is contained in:
Unknown W. Brackets
2021-04-03 18:11:44 -07:00
parent e36d09acc3
commit aa89ed5111
5 changed files with 37 additions and 18 deletions
+8
View File
@@ -433,6 +433,14 @@ std::vector<MemBlockInfo> FindMemInfoByFlag(MemBlockFlags flags, uint32_t start,
return results;
}
std::string GetMemWriteTagAt(uint32_t start, uint32_t size) {
std::vector<MemBlockInfo> memRangeInfo = FindMemInfoByFlag(MemBlockFlags::WRITE, start, size);
for (auto range : memRangeInfo) {
return range.tag;
}
return "none";
}
void MemBlockInfoInit() {
std::lock_guard<std::mutex> guard(pendingMutex);
pendingNotifies.reserve(MAX_PENDING_NOTIFIES);