浏览代码

Improved minidump debugging

Brian Fiete 5 年之前
父节点
当前提交
9332693132

+ 1 - 1
IDEHelper/Compiler/BfCompiler.cpp

@@ -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) &&

+ 2 - 2
IDEHelper/Compiler/BfModule.cpp

@@ -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)

+ 4 - 0
IDEHelper/Compiler/BfModule.h

@@ -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;	

+ 4 - 0
IDEHelper/Compiler/BfSystem.h

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