1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Improved minidump debugging

This commit is contained in:
Brian Fiete 2020-10-12 10:12:18 -07:00
parent 60b162ba90
commit 9332693132
4 changed files with 11 additions and 3 deletions

View file

@ -4181,7 +4181,7 @@ void BfCompiler::ProcessAutocompleteTempType()
BfFieldDef* actualFieldDef = NULL;
BfMemberSetEntry* memberSetEntry = NULL;
if (actualTypeDef->mFieldSet.TryGetWith(fieldDef->mName, &memberSetEntry))
if (actualTypeDef->mFieldSet.TryGetWith((StringImpl&)fieldDef->mName, &memberSetEntry))
{
auto checkFieldDef = (BfFieldDef*)memberSetEntry->mMemberDef;
if ((checkFieldDef->mIsConst == fieldDef->mIsConst) &&

View file

@ -21657,7 +21657,7 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
lookupType->mTypeDef->PopulateMemberSets();
BfMethodDef* nextMethodDef = NULL;
BfMemberSetEntry* entry;
if (lookupType->mTypeDef->mMethodSet.TryGetWith(methodInstance->mMethodDef->mName, &entry))
if (lookupType->mTypeDef->mMethodSet.TryGetWith((StringImpl&)methodInstance->mMethodDef->mName, &entry))
nextMethodDef = (BfMethodDef*)entry->mMemberDef;
while (nextMethodDef != NULL)
@ -22027,7 +22027,7 @@ bool BfModule::SlotVirtualMethod(BfMethodInstance* methodInstance, BfAmbiguityCo
ifaceInst->mTypeDef->PopulateMemberSets();
BfMethodDef* checkMethodDef = NULL;
BfMemberSetEntry* entry;
if (ifaceInst->mTypeDef->mMethodSet.TryGetWith(methodInstance->mMethodDef->mName, &entry))
if (ifaceInst->mTypeDef->mMethodSet.TryGetWith((StringImpl&)methodInstance->mMethodDef->mName, &entry))
checkMethodDef = (BfMethodDef*)entry->mMemberDef;
while (checkMethodDef != NULL)

View file

@ -1366,7 +1366,11 @@ public:
public:
Val128 mDataHash;
#ifdef _DEBUG
StringT<128> mModuleName;
#else
String mModuleName;
#endif
Array<BfModuleFileName> mOutFileNames;
// SpecializedModules contain method specializations with types that come from other projects
Dictionary<Array<BfProject*>, BfModule*> mSpecializedMethodModules;

View file

@ -490,7 +490,11 @@ public:
class BfMemberDef
{
public:
#ifdef _DEBUG
StringT<48> mName;
#else
String mName;
#endif
BfTypeDef* mDeclaringType;
BfProtection mProtection;
bool mIsStatic;