1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 20:12:21 +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

@ -7402,6 +7402,12 @@ String WinDebugger::DbgTypedValueToString(const DbgTypedValue& origTypedValue, c
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);