Debugger: Improve tag on copies.

MemInit shows up sometimes when the allocation would be more useful.
This commit is contained in:
Unknown W. Brackets committed 2022-03-20 12:05:31 -07:00
1 parent 7389a36fad
commit 6945151384
1 file changed
+3 -2
+3 -2
View File
@@ -461,7 +461,8 @@ std::vector<MemBlockInfo> FindMemInfoByFlag(MemBlockFlags flags, uint32_t start,
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;
if (range.tag != "MemInit")
return range.tag;
}
// Fall back to alloc and texture, especially for VRAM. We prefer write above.
@@ -469,7 +470,7 @@ std::string GetMemWriteTagAt(uint32_t start, uint32_t size) {
for (auto range : memRangeInfo) {
return range.tag;
}
return "none";
return StringFromFormat("%08x_size_%08x", start, size);
}
void MemBlockInfoInit() {