{
{
PUBLIC_CALLBACK_IN_THIS_SCOPE(this, pLockHolder, pEvent);
- pCallback4->BeforeGarbageCollection(static_cast<ICorDebugController*>(this));
+ pCallback4->BeforeGarbageCollection(static_cast<ICorDebugProcess*>(this));
}
break;
}
{
{
PUBLIC_CALLBACK_IN_THIS_SCOPE(this, pLockHolder, pEvent);
- pCallback4->AfterGarbageCollection(static_cast<ICorDebugController*>(this));
+ pCallback4->AfterGarbageCollection(static_cast<ICorDebugProcess*>(this));
}
break;
}
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID iid, void** pInterface);
virtual ULONG STDMETHODCALLTYPE AddRef();
virtual ULONG STDMETHODCALLTYPE Release();
- COM_METHOD BeforeGarbageCollection(ICorDebugController* pController);
- COM_METHOD AfterGarbageCollection(ICorDebugController* pController);
+ COM_METHOD BeforeGarbageCollection(ICorDebugProcess* pProcess);
+ COM_METHOD AfterGarbageCollection(ICorDebugProcess* pProcess);
private:
// not implemented
DefaultManagedCallback4(const DefaultManagedCallback4&);
}
HRESULT
- DefaultManagedCallback4::BeforeGarbageCollection(ICorDebugController* pController)
+ DefaultManagedCallback4::BeforeGarbageCollection(ICorDebugProcess* pProcess)
{
//
// Just ignore and continue the process.
//
- pController->Continue(false);
+ pProcess->Continue(false);
return S_OK;
}
HRESULT
- DefaultManagedCallback4::AfterGarbageCollection(ICorDebugController* pController)
+ DefaultManagedCallback4::AfterGarbageCollection(ICorDebugProcess* pProcess)
{
//
// Just ignore and continue the process.
//
- pController->Continue(false);
+ pProcess->Continue(false);
return S_OK;
}
}
// input:
// pController - controller in which the notification occurred
// Return value: S_OK
-HRESULT ShimProxyCallback::BeforeGarbageCollection(ICorDebugController* pController)
+HRESULT ShimProxyCallback::BeforeGarbageCollection(ICorDebugProcess* pProcess)
{
m_pShim->PreDispatchEvent();
class BeforeGarbageCollectionEvent : public ManagedEvent
{
// callbacks parameters. These are strong references
- RSExtSmartPtr<ICorDebugController > m_pController;
+ RSExtSmartPtr<ICorDebugProcess> m_pProcess;
public:
// Ctor
- BeforeGarbageCollectionEvent(ICorDebugController* pController) :
+ BeforeGarbageCollectionEvent(ICorDebugProcess* pProcess) :
ManagedEvent()
{
- this->m_pController.Assign(pController);
+ this->m_pProcess.Assign(pProcess);
}
HRESULT Dispatch(DispatchArgs args)
{
- return args.GetCallback4()->BeforeGarbageCollection(m_pController);
+ return args.GetCallback4()->BeforeGarbageCollection(m_pProcess);
}
}; // end class BeforeGarbageCollectionEvent
- m_pShim->GetManagedEventQueue()->QueueEvent(new BeforeGarbageCollectionEvent(pController));
+ m_pShim->GetManagedEventQueue()->QueueEvent(new BeforeGarbageCollectionEvent(pProcess));
return S_OK;
}
// input:
// pController - controller in which the notification occurred
// Return value: S_OK
-HRESULT ShimProxyCallback::AfterGarbageCollection(ICorDebugController* pController)
+HRESULT ShimProxyCallback::AfterGarbageCollection(ICorDebugProcess* pProcess)
{
m_pShim->PreDispatchEvent();
class AfterGarbageCollectionEvent : public ManagedEvent
{
// callbacks parameters. These are strong references
- RSExtSmartPtr<ICorDebugController > m_pController;
+ RSExtSmartPtr<ICorDebugProcess > m_pProcess;
public:
// Ctor
- AfterGarbageCollectionEvent(ICorDebugController* pController) :
+ AfterGarbageCollectionEvent(ICorDebugProcess* pProcess) :
ManagedEvent()
{
- this->m_pController.Assign(pController);
+ this->m_pProcess.Assign(pProcess);
}
HRESULT Dispatch(DispatchArgs args)
{
- return args.GetCallback4()->AfterGarbageCollection(m_pController);
+ return args.GetCallback4()->AfterGarbageCollection(m_pProcess);
}
}; // end class AfterGarbageCollectionEvent
- m_pShim->GetManagedEventQueue()->QueueEvent(new AfterGarbageCollectionEvent(pController));
+ m_pShim->GetManagedEventQueue()->QueueEvent(new AfterGarbageCollectionEvent(pProcess));
return S_OK;
}
///
// Implementation of ICorDebugManagedCallback4::BeforeGarbageCollection
- COM_METHOD ShimProxyCallback::BeforeGarbageCollection(ICorDebugController* pController);
+ COM_METHOD ShimProxyCallback::BeforeGarbageCollection(ICorDebugProcess* pProcess);
// Implementation of ICorDebugManagedCallback4::AfterGarbageCollection
- COM_METHOD ShimProxyCallback::AfterGarbageCollection(ICorDebugController* pController);
+ COM_METHOD ShimProxyCallback::AfterGarbageCollection(ICorDebugProcess* pProcess);
};
//-----------------------------------------------------------------------------
void Debugger::SendSimpleIPCEventAndBlock()
{
+ // TODO, databp, enable these contracts
/*
CONTRACTL
{
// Neither pDbgLockHolder nor pAppDomain are used.
void Debugger::TrapAllRuntimeThreads()
{
+ // TODO, databp, enable these contracts
/*
CONTRACTL
{
interface ICorDebugManagedCallback4 : IUnknown
{
- HRESULT BeforeGarbageCollection(ICorDebugController* pController);
- HRESULT AfterGarbageCollection(ICorDebugController* pController);
+ HRESULT BeforeGarbageCollection(ICorDebugProcess* pProcess);
+ HRESULT AfterGarbageCollection(ICorDebugProcess* pProcess);
}
{
public:
virtual HRESULT STDMETHODCALLTYPE BeforeGarbageCollection(
- ICorDebugController *pController) = 0;
+ ICorDebugProcess *pProcess) = 0;
virtual HRESULT STDMETHODCALLTYPE AfterGarbageCollection(
- ICorDebugController *pController) = 0;
+ ICorDebugProcess *pProcess) = 0;
};
HRESULT ( STDMETHODCALLTYPE *BeforeGarbageCollection )(
ICorDebugManagedCallback4 * This,
- ICorDebugController *pController);
+ ICorDebugProcess *pProcess);
HRESULT ( STDMETHODCALLTYPE *AfterGarbageCollection )(
ICorDebugManagedCallback4 * This,
- ICorDebugController *pController);
+ ICorDebugProcess *pProcess);
END_INTERFACE
} ICorDebugManagedCallback4Vtbl;
( (This)->lpVtbl -> Release(This) )
-#define ICorDebugManagedCallback4_BeforeGarbageCollection(This,pController) \
- ( (This)->lpVtbl -> BeforeGarbageCollection(This,pController) )
+#define ICorDebugManagedCallback4_BeforeGarbageCollection(This,pProcess) \
+ ( (This)->lpVtbl -> BeforeGarbageCollection(This,pProcess) )
-#define ICorDebugManagedCallback4_AfterGarbageCollection(This,pController) \
- ( (This)->lpVtbl -> AfterGarbageCollection(This,pController) )
+#define ICorDebugManagedCallback4_AfterGarbageCollection(This,pProcess) \
+ ( (This)->lpVtbl -> AfterGarbageCollection(This,pProcess) )
#endif /* COBJMACROS */