1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Fixes to enum changes, fixed [Checked] debugger interaction

This commit is contained in:
Brian Fiete 2019-11-29 09:21:51 -08:00
parent 17be9daade
commit 64f117b89f
10 changed files with 116 additions and 24 deletions

View file

@ -395,8 +395,14 @@ String DbgSubprogram::ToString()
mCompileUnit->mDbgModule->FixupInlinee(this);
PopulateSubprogram();
String str;
if (mCheckedKind == BfCheckedKind_Checked)
str += "[Checked] ";
else if (mCheckedKind == BfCheckedKind_Unchecked)
str += "[Unchecked] ";
auto language = GetLanguage();
if (mName == NULL)
{
@ -992,7 +998,7 @@ bool DbgType::IsStruct()
}
bool DbgType::IsPrimitiveType()
{
{
return (mTypeCode >= DbgType_i8) && (mTypeCode <= DbgType_Bool);
}
@ -1141,7 +1147,7 @@ DbgExtType DbgType::CalcExtType()
}
auto baseExtType = baseType->CalcExtType();
if ((baseExtType == DbgExtType_BfObject) && (mSize == 0))
if ((baseExtType == DbgExtType_BfObject) && (GetByteCount() == 0))
baseExtType = DbgExtType_Interface;
return baseExtType;
}