Commit 28fd91e5 authored by ussrhero's avatar ussrhero

print for .Net Сlass

parent 925a6942
......@@ -250,6 +250,24 @@ std::wstring NetObjectClass::str()
///////////////////////////////////////////////////////////////////////////////
std::wstring NetObjectClass::printValue() const
{
std::wstringstream sstr;
COR_TYPEID typeId;
HRESULT hres = g_netMgr->targetProcess5()->GetTypeID(m_address, &typeId);
if (FAILED(hres))
throw DbgException("Failed ICorDebugProcess5::GetTypeID");
TypeInfoPtr typeInfo = getNetTypeById(typeId);
sstr << L"lass: " << typeInfo->getName() << L" at " << std::hex << m_address << std::endl;
return sstr.str();
}
///////////////////////////////////////////////////////////////////////////////
NetObjectArray::NetObjectArray(ICorDebugArrayValue* arrayValue, std::vector<ULONG32> indices )
{
m_arrayValue = arrayValue;
......
......@@ -198,9 +198,7 @@ public:
return m_address;
}
virtual std::wstring printValue() const {
return L"Class";
}
virtual std::wstring printValue() const;
virtual std::wstring str();
......
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