Debugger: Improve tag on copies.

MemInit shows up sometimes when the allocation would be more useful.
This commit is contained in:
Unknown W. Brackets 2022-02-20 18:15:31 -08:00
parent 7389a36fad
commit 6945151384

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() {