Răsfoiți Sursa

Soft error for unknown symbol type in COFF::EvaluateLocation

Brian Fiete 3 ani în urmă
părinte
comite
bab233746e
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      IDEHelper/COFF.cpp

+ 3 - 1
IDEHelper/COFF.cpp

@@ -6387,7 +6387,9 @@ intptr COFF::EvaluateLocation(DbgSubprogram* dwSubprogram, const uint8* locData,
 			}
 			break;		
 		default:
-			BF_FATAL("Not handled");
+			if (!mFailed)
+				Fail(StrFormat("Unknown symbol type '0x%X' in EvaluateLocation", symType));
+			return 0;
 		}
 
 		if (rangeInfo != NULL)