diff options
Diffstat (limited to 'src/vm/mdadac.cpp')
-rw-r--r-- | src/vm/mdadac.cpp | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/vm/mdadac.cpp b/src/vm/mdadac.cpp new file mode 100644 index 0000000000..95be6bff60 --- /dev/null +++ b/src/vm/mdadac.cpp @@ -0,0 +1,48 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + + +#include "common.h" +#include "mda.h" +#include "mdaassistants.h" +#include "sstring.h" +#include "daccess.h" + +#ifdef MDA_SUPPORTED +MdaStaticHeap g_mdaStaticHeap = +{ + { 0 }, // m_assistants[] + 0, // m_pMda + { 0 }, // m_mda[] + +#define MDA_ASSISTANT_STATIC_INIT +#include "mdaschema.inl" +#undef MDA_ASSISTANT_STATIC_INIT +}; + + +// +// MdaManagedDebuggingAssistants +// +void ManagedDebuggingAssistants::AllocateManagedDebuggingAssistants() +{ + WRAPPER_NO_CONTRACT; + g_mdaStaticHeap.m_pMda = new (&g_mdaStaticHeap.m_mda) ManagedDebuggingAssistants(); +} + +ManagedDebuggingAssistants::ManagedDebuggingAssistants() +{ + WRAPPER_NO_CONTRACT; + +#ifndef DACCESS_COMPILE + Initialize(); +#endif +} +#endif // MDA_SUPPORTED + + + + + + |