1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 04:22:20 +02:00

Fix for empty var type

This commit is contained in:
Brian Fiete 2020-05-15 06:26:59 -07:00
parent 9c09fbd6c0
commit c334761aaa

View file

@ -2776,7 +2776,7 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
}
}
}
if ((name != NULL) && (name[0] == '#'))
{
if (strcmp(name + 1, "StepOver") == 0)
@ -2789,6 +2789,8 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
}
DbgType* varType = CvGetType(localSym.typind, cvCompileUnit);
if (varType == NULL)
varType = CvGetType(T_VOID);
if (name != NULL)
{
@ -3300,18 +3302,18 @@ void COFF::ParseCompileUnit_Symbols(DbgCompileUnit* compileUnit, uint8* sectionD
_RecurseBlock(&checkSubprogram->mBlock);
}
}*/
}
if (compileUnit->mLanguage != DbgLanguage_Beef)
}
}
if ((compileUnit->mLanguage != DbgLanguage_Beef) && (localVar->mName != NULL))
{
for (char* cPtr = (char*)localVar->mName; true; cPtr++)
{
for (char* cPtr = (char*)localVar->mName; true; cPtr++)
{
char c = *cPtr;
if (c == 0)
break;
if ((c == '<') || (c == '>'))
*cPtr = '$';
}
char c = *cPtr;
if (c == 0)
break;
if ((c == '<') || (c == '>'))
*cPtr = '$';
}
}
}