summaryrefslogtreecommitdiff
path: root/src/debug/di
diff options
context:
space:
mode:
authorAndrew Au <andrewau@microsoft.com>2018-05-15 13:54:46 -0700
committerAndrew Au <cshung@gmail.com>2018-11-06 18:34:47 -0800
commit731dd75e3dfe7f2ef6f857121c0eb2e460d38bce (patch)
treedfc432ca542ca5db7e986f6482233d538b6e46aa /src/debug/di
parent4d3bde0a60d1344590ca1643f8b9c2d9e758ae4e (diff)
downloadcoreclr-731dd75e3dfe7f2ef6f857121c0eb2e460d38bce.tar.gz
coreclr-731dd75e3dfe7f2ef6f857121c0eb2e460d38bce.tar.bz2
coreclr-731dd75e3dfe7f2ef6f857121c0eb2e460d38bce.zip
ICorDebugValue -> ICorDebugObjectValue on GetContainerObject()
Diffstat (limited to 'src/debug/di')
-rw-r--r--src/debug/di/process.cpp11
-rw-r--r--src/debug/di/rspriv.h2
2 files changed, 3 insertions, 10 deletions
diff --git a/src/debug/di/process.cpp b/src/debug/di/process.cpp
index 3f817c951b..46429376fd 100644
--- a/src/debug/di/process.cpp
+++ b/src/debug/di/process.cpp
@@ -2529,7 +2529,7 @@ COM_METHOD CordbProcess::EnableExceptionCallbacksOutsideOfMyCode(BOOL enableExce
return hr;
}
-COM_METHOD CordbProcess::GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugValue** ppContainerObject)
+COM_METHOD CordbProcess::GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugObjectValue** ppContainerObject)
{
HRESULT hr = S_OK;
// TODO, databp, I don't know what I am doing, NO_LOCK doesn't sound right
@@ -2552,14 +2552,7 @@ COM_METHOD CordbProcess::GetContainerObject(CORDB_ADDRESS interiorPointer, ICorD
{
_ASSERTE(event.type == DB_IPCE_GET_CONTAINER_RESULT);
CORDB_ADDRESS containerAddress = PTR_TO_CORDB_ADDRESS(event.GetContainerResult.answer);
- ICorDebugObjectValue* pResult;
- hr = this->GetObject(containerAddress, &pResult);
- if (SUCCEEDED(hr))
- {
- hr = pResult->QueryInterface(__uuidof(ICorDebugValue), (void**)ppContainerObject);
- // TODO, databp, smart pointer
- pResult->Release();
- }
+ hr = this->GetObject(containerAddress, ppContainerObject);
}
PUBLIC_API_END(hr);
diff --git a/src/debug/di/rspriv.h b/src/debug/di/rspriv.h
index b80bf62e00..d5a8e606d9 100644
--- a/src/debug/di/rspriv.h
+++ b/src/debug/di/rspriv.h
@@ -3165,7 +3165,7 @@ public:
//-----------------------------------------------------------
// ICorDebugProcess9
//-----------------------------------------------------------
- COM_METHOD GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugValue** ppContainerObject);
+ COM_METHOD GetContainerObject(CORDB_ADDRESS interiorPointer, ICorDebugObjectValue** ppContainerObject);
COM_METHOD CreateBreakpoint(CORDB_ADDRESS address, ICorDebugValueBreakpoint **ppBreakpoint);