Commit 28a0e83b authored by ussrhero's avatar ussrhero

print dor .Net Enum

parent 28fd91e5
......@@ -261,7 +261,7 @@ std::wstring NetObjectClass::printValue() const
TypeInfoPtr typeInfo = getNetTypeById(typeId);
sstr << L"lass: " << typeInfo->getName() << L" at " << std::hex << m_address << std::endl;
sstr << L"lass of " << typeInfo->getName() << L" at " << std::hex << m_address;
return sstr.str();
}
......@@ -409,8 +409,8 @@ std::wstring NetObjectString::printValue() const
///////////////////////////////////////////////////////////////////////////////
NumVariant NetObjectEnum::getValue() const {
NumVariant NetObjectEnum::getValue() const
{
CComQIPtr<ICorDebugGenericValue> genValue = m_enumValue;
long long storage;
HRESULT hres = genValue->GetValue(&storage);
......@@ -434,5 +434,20 @@ MEMOFFSET_64 NetObjectEnum::getAddress() const
///////////////////////////////////////////////////////////////////////////////
std::wstring NetObjectEnum::printValue() const
{
std::wstringstream sstr;
sstr << L"Enum value: ";
unsigned long longVal = getGenericValue<unsigned long>(m_enumValue);
sstr << std::dec << longVal << L" (0x" << std::hex << longVal << L')';
return sstr.str();
}
///////////////////////////////////////////////////////////////////////////////
}
......@@ -287,9 +287,7 @@ private:
virtual MEMOFFSET_64 getAddress() const;
virtual std::wstring printValue() const {
return L"Enum";
}
virtual std::wstring printValue() const;
private:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment