mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
Avoid returning points from the symbol map.
Now that it uses a lookup, this is even more dangerous. But, the maps could be reordered while it's trying to print the pointer and cause that data to become invalid. This should be safe from race conditions.
This commit is contained in:
1 parent
b1af4f4911
commit
76afb2a8d5
11 files changed
+69
-50
No files matched your search
@@ -223,7 +223,7 @@ int MIPSDebugInterface::getColor(unsigned int address)
|
||||
if (n==-1) return 0xFFFFFF;
|
||||
return colors[n%6];
|
||||
}
|
||||
const char *MIPSDebugInterface::getDescription(unsigned int address)
|
||||
std::string MIPSDebugInterface::getDescription(unsigned int address)
|
||||
{
|
||||
return symbolMap.GetDescription(address);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user