diff options
author | Zhukov Maxim <my.fsou1@gmail.com> | 2017-11-15 05:30:43 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2017-11-14 18:30:43 -0800 |
commit | 97d9d593ae44438fab85044e2a189316e7f3cbc4 (patch) | |
tree | 6e56b9e4d2fbda7e6a039d565a513b07c3fccbb1 /src/debug | |
parent | b60c91cdb9de36d2356ee8f135de65473f282209 (diff) | |
download | coreclr-97d9d593ae44438fab85044e2a189316e7f3cbc4.tar.gz coreclr-97d9d593ae44438fab85044e2a189316e7f3cbc4.tar.bz2 coreclr-97d9d593ae44438fab85044e2a189316e7f3cbc4.zip |
Remove out-of-use method and properties from appdomain (#15029)
Not supported on CoreCLR appdomain's method and properties were removed
#15001
Diffstat (limited to 'src/debug')
-rw-r--r-- | src/debug/daccess/request.cpp | 119 |
1 files changed, 6 insertions, 113 deletions
diff --git a/src/debug/daccess/request.cpp b/src/debug/daccess/request.cpp index 6d6e3589be..92a4758fee 100644 --- a/src/debug/daccess/request.cpp +++ b/src/debug/daccess/request.cpp @@ -2584,134 +2584,27 @@ HRESULT ClrDataAccess::GetApplicationBase(CLRDATA_ADDRESS appDomain, int count, __out_z __inout_ecount(count) wchar_t *base, unsigned int *pNeeded) { - if (appDomain == NULL || (base == NULL && pNeeded == NULL) || (base != NULL && count == 0)) - { - return E_INVALIDARG; - } - - SOSDacEnter(); - AppDomain* pAppDomain = PTR_AppDomain(TO_TADDR(appDomain)); - - // Turn from bytes to wide characters - if ((PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SharedDomain::GetDomain())) || - (PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SystemDomain::System()))) - { - // Shared domain and SystemDomain don't have this field. - if (base) - base[0] = 0; - - if (pNeeded) - *pNeeded = 1; - } - - if (!pAppDomain->m_applicationBase.IsEmpty()) - { - if (!pAppDomain->m_applicationBase. - DacGetUnicode(count, base, pNeeded)) - { - hr = E_FAIL; - } - } - else - { - if (base) - base[0] = 0; - - if (pNeeded) - *pNeeded = 1; - } + // Method is not supported on CoreCLR - SOSDacLeave(); - return hr; + return E_FAIL; } HRESULT ClrDataAccess::GetPrivateBinPaths(CLRDATA_ADDRESS appDomain, int count, __out_z __inout_ecount(count) wchar_t *paths, unsigned int *pNeeded) { - if (appDomain == NULL || (paths == NULL && pNeeded == NULL) || (paths != NULL && count == 0)) - return E_INVALIDARG; - - SOSDacEnter(); - AppDomain* pAppDomain = PTR_AppDomain(TO_TADDR(appDomain)); - - // Turn from bytes to wide characters - if ((PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SharedDomain::GetDomain())) || - (PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SystemDomain::System()))) - { - // Shared domain and SystemDomain don't have this field. - if (pNeeded) - *pNeeded = 1; - - if (paths) - paths[0] = 0; - - hr = S_OK; - } - - if (!pAppDomain->m_privateBinPaths.IsEmpty()) - { - if (!pAppDomain->m_privateBinPaths.DacGetUnicode(count, paths, pNeeded)) - { - hr = E_FAIL; - } - } - else - { - if (paths) - paths[0] = 0; - - if (pNeeded) - *pNeeded = 1; - } + // Method is not supported on CoreCLR - SOSDacLeave(); - return hr; + return E_FAIL; } HRESULT ClrDataAccess::GetAppDomainConfigFile(CLRDATA_ADDRESS appDomain, int count, __out_z __inout_ecount(count) wchar_t *configFile, unsigned int *pNeeded) { - if (appDomain == NULL || (configFile == NULL && pNeeded == NULL) || (configFile != NULL && count == 0)) - { - return E_INVALIDARG; - } - - SOSDacEnter(); - AppDomain* pAppDomain = PTR_AppDomain(TO_TADDR(appDomain)); - - // Turn from bytes to wide characters + // Method is not supported on CoreCLR - if ((PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SharedDomain::GetDomain())) || - (PTR_BaseDomain(pAppDomain) == PTR_BaseDomain(SystemDomain::System()))) - { - // Shared domain and SystemDomain don't have this field. - if (configFile) - configFile[0] = 0; - - if (pNeeded) - *pNeeded = 1; - } - - if (!pAppDomain->m_configFile.IsEmpty()) - { - if (!pAppDomain->m_configFile.DacGetUnicode(count, configFile, pNeeded)) - { - hr = E_FAIL; - } - } - else - { - if (configFile) - configFile[0] = 0; - - if (pNeeded) - *pNeeded = 1; - } - - SOSDacLeave(); - return hr; + return E_FAIL; } HRESULT |