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:
Unknown W. Brackets committed 2014-01-25 21:40:23 -08:00
1 parent b1af4f4911
commit 76afb2a8d5
11 files changed
+69 -50

No files matched your search

+1 -1
View File
@@ -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);
}