Read function size from .sym

This commit is contained in:
Kingcom committed 2013-11-01 14:14:06 +01:00
1 parent 775915e523
commit 92e2cdcf59
1 file changed
+8 -1
+8 -1
View File
@@ -243,7 +243,14 @@ bool SymbolMap::LoadNocashSym(const char *filename)
{
continue; // not supported yet
} else { // labels
AddSymbol(value,address,1,ST_FUNCTION);
int size = 1;
char* seperator = strchr(value,',');
if (seperator != NULL)
{
*seperator = 0;
sscanf(seperator+1,"%08X",&size);
}
AddSymbol(value,address,size,ST_FUNCTION);
}
}