Debugger: More useful tag for section suballocs.

This commit is contained in:
Unknown W. Brackets 2023-06-18 19:04:18 -07:00
parent 2ac7cc38e5
commit a9668bdb60

View file

@ -549,7 +549,7 @@ int ElfReader::LoadInto(u32 loadAddress, bool fromTop)
if (s->sh_flags & SHF_ALLOC)
{
std::string tag = name && name[0] ? StringFromFormat("ELF/%s", name) : StringFromFormat("ELF/%08x", writeAddr);
std::string tag = name && name[0] ? StringFromFormat("%s/%s", modName.c_str(), name) : StringFromFormat("%s/%08x", modName.c_str(), writeAddr);
NotifyMemInfo(MemBlockFlags::SUB_ALLOC, writeAddr, s->sh_size, tag.c_str(), tag.size());
DEBUG_LOG(LOADER,"Data Section found: %s Sitting at %08x, size %08x", name, writeAddr, (u32)s->sh_size);
}