Workaround for symbols defined in .sym files

This commit is contained in:
Kingcom 2013-11-16 10:53:47 +01:00
parent 7ba00fa65f
commit a277706489

View File

@ -248,7 +248,7 @@ namespace MIPSAnalyst {
u32 addr;
for (addr = startAddr; addr <= endAddr; addr+=4) {
SymbolInfo syminfo;
if (symbolMap.GetSymbolInfo(&syminfo, addr, ST_FUNCTION)) {
if (symbolMap.GetSymbolInfo(&syminfo, addr, ST_FUNCTION) && syminfo.size >= 4) {
addr = syminfo.address + syminfo.size;
continue;
}