From 9c92f19523c0926cd4d710faaaf61ce1139917f7 Mon Sep 17 00:00:00 2001 From: Igor Kulaychuk Date: Mon, 10 Jul 2017 23:28:14 +0300 Subject: [PATCH] Fix some classes and bytes values representation --- src/debug/debugger/valueprint.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/debug/debugger/valueprint.cpp b/src/debug/debugger/valueprint.cpp index 5009e66..8052b74 100644 --- a/src/debug/debugger/valueprint.cpp +++ b/src/debug/debugger/valueprint.cpp @@ -182,16 +182,12 @@ HRESULT PrintValue(ICorDebugValue *pInputValue, ICorDebugILFrame * pILFrame, std case ELEMENT_TYPE_VALUETYPE: case ELEMENT_TYPE_CLASS: - CORDB_ADDRESS addr; - if(SUCCEEDED(pValue->GetAddress(&addr))) { - ss << " @ 0x" << std::hex << addr; + std::string typeName; + TypePrinter::GetTypeOfValue(pValue, typeName); + ss << '{' << typeName << '}'; + //ProcessFields(pValue, NULL, pILFrame, indent + 1, varToExpand, currentExpansion, currentExpansionSize, currentFrame); } - else - { - ss << ""; - } - //ProcessFields(pValue, NULL, pILFrame, indent + 1, varToExpand, currentExpansion, currentExpansionSize, currentFrame); break; case ELEMENT_TYPE_BOOLEAN: @@ -210,11 +206,11 @@ HRESULT PrintValue(ICorDebugValue *pInputValue, ICorDebugILFrame * pILFrame, std break; case ELEMENT_TYPE_I1: - ss << *(char*) &(rgbValue[0]); + ss << (int) *(char*) &(rgbValue[0]); break; case ELEMENT_TYPE_U1: - ss << *(unsigned char*) &(rgbValue[0]); + ss << (unsigned int) *(unsigned char*) &(rgbValue[0]); break; case ELEMENT_TYPE_I2: -- 2.34.1