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

Fixed display of valueless enums

This commit is contained in:
Brian Fiete 2020-04-16 00:30:35 -07:00
parent 8709c92f22
commit 37e5576973

View file

@ -7398,10 +7398,16 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
displayStrFormatInfo.mTotalSummaryLength = formatInfo.mTotalSummaryLength + (int)retVal.length();
displayStrFormatInfo.mExpandItemDepth++;
displayStrFormatInfo.mHidePointers = false;
retVal += DbgTypedValueToString(tupleVal, tupleExpr, displayStrFormatInfo, NULL);
retVal += DbgTypedValueToString(tupleVal, tupleExpr, displayStrFormatInfo, NULL);
int idx = (int)retVal.IndexOf('\n');
if (idx != -1)
{
if ((idx > 2) && (strncmp(retVal.c_str() + idx - 2, "()", 2) == 0))
{
// Take off a terminating "()" on the value, if there is one
retVal.Remove(idx - 2, 2);
}
String typeName = innerType->ToString(DbgLanguage_Unknown, true);
typeName += " ";
retVal.Insert(idx + 1, typeName);