Merge pull request #4160 from sepalani/symbolmap

Map: Prevents symbols from being stripped
This commit is contained in:
Mat M 2016-09-18 22:52:12 -04:00 committed by GitHub
commit 9e1cfbee0e
1 changed files with 0 additions and 10 deletions

View File

@ -346,16 +346,6 @@ bool PPCSymbolDB::LoadMap(const std::string& filename, bool bad)
strcpy(name, namepos); strcpy(name, namepos);
name[strlen(name) - 1] = 0; name[strlen(name) - 1] = 0;
// we want the function names only .... TODO: or do we really? aren't we wasting information
// here?
for (size_t i = 0; i < strlen(name); i++)
{
if (name[i] == ' ')
name[i] = 0x00;
if (name[i] == '(')
name[i] = 0x00;
}
// Check if this is a valid entry. // Check if this is a valid entry.
if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0) if (strcmp(name, ".text") != 0 && strcmp(name, ".init") != 0 && strlen(name) > 0)
{ {