@@ -2294,10 +2294,10 @@ HRESULT CordbProcess::EnumerateHeapRegions(ICorDebugHeapSegmentEnum **ppRegions)
22942294
22952295HRESULT CordbProcess::GetObject(CORDB_ADDRESS addr, ICorDebugObjectValue **ppObject)
22962296{
2297- return this->GetObjectInternal(addr, nullptr, ppObject);
2297+ return this->GetObjectInternal(addr, ppObject);
22982298}
22992299
2300- HRESULT CordbProcess::GetObjectInternal(CORDB_ADDRESS addr, CordbAppDomain* pAppDomainOverride, ICorDebugObjectValue **pObject)
2300+ HRESULT CordbProcess::GetObjectInternal(CORDB_ADDRESS addr, ICorDebugObjectValue **pObject)
23012301{
23022302 HRESULT hr = S_OK;
23032303
@@ -2321,7 +2321,7 @@ HRESULT CordbProcess::GetObjectInternal(CORDB_ADDRESS addr, CordbAppDomain* pApp
23212321
23222322 CordbAppDomain *cdbAppDomain = NULL;
23232323 CordbType *pType = NULL;
2324- hr = GetTypeForObject(addr, pAppDomainOverride, &pType, &cdbAppDomain);
2324+ hr = GetTypeForObject(addr, &pType, &cdbAppDomain);
23252325
23262326 if (SUCCEEDED(hr))
23272327 {
@@ -2557,7 +2557,7 @@ COM_METHOD CordbProcess::EnumerateLoaderHeapMemoryRegions(ICorDebugMemoryRangeEn
25572557 return hr;
25582558}
25592559
2560- HRESULT CordbProcess::GetTypeForObject(CORDB_ADDRESS addr, CordbAppDomain* pAppDomainOverride, CordbType **ppType, CordbAppDomain **pAppDomain)
2560+ HRESULT CordbProcess::GetTypeForObject(CORDB_ADDRESS addr, CordbType **ppType, CordbAppDomain **pAppDomain)
25612561{
25622562 VMPTR_AppDomain appDomain;
25632563 VMPTR_Module mod;
@@ -2566,10 +2566,6 @@ HRESULT CordbProcess::GetTypeForObject(CORDB_ADDRESS addr, CordbAppDomain* pAppD
25662566 HRESULT hr = E_FAIL;
25672567 if (GetDAC()->GetAppDomainForObject(addr, &appDomain, &mod, &domainAssembly))
25682568 {
2569- if (pAppDomainOverride)
2570- {
2571- appDomain = pAppDomainOverride->GetADToken();
2572- }
25732569 CordbAppDomain *cdbAppDomain = appDomain.IsNull() ? GetAppDomain() : LookupOrCreateAppDomain(appDomain);
25742570
25752571 _ASSERTE(cdbAppDomain);
0 commit comments