Clear the debug symbol map on shutdown.

Instead of polluting the next game.
This commit is contained in:
Unknown W. Brackets 2013-05-26 16:29:21 -07:00
parent 44e20fb213
commit 1beb19f827
3 changed files with 8 additions and 0 deletions

View file

@ -296,6 +296,7 @@ void __KernelModuleShutdown()
{
unresolvedVars.clear();
exportedVars.clear();
MIPSAnalyst::Shutdown();
}
void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type)

View file

@ -264,6 +264,12 @@ namespace MIPSAnalyst
map<u32, Function*> hashToFunction;
void Shutdown()
{
functions.clear();
hashToFunction.clear();
}
// hm pointless :P
void UpdateHashToFunctionMap()
{

View file

@ -62,5 +62,6 @@ namespace MIPSAnalyst
bool IsDelaySlotNiceFPU(u32 branchOp, u32 op);
bool IsSyscall(u32 op);
void Shutdown();
} // namespace MIPSAnalyst