1 write to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
65_legacy = legacyObj as IDacDbiInterface;
264 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (264)
Dbi\DacDbiImpl.cs (264)
69=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CheckDbiVersion(pVersion) : HResults.E_NOTIMPL; 74return _legacy is not null ? _legacy.FlushCache() : HResults.S_OK; 78=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DacSetTargetConsistencyChecks(fEnableAsserts) : HResults.E_NOTIMPL; 94if (_legacy is not null) 97int hrLocal = _legacy.IsLeftSideInitialized(&resultLocal); 120if (_legacy is not null) 123int hrLocal = _legacy.GetAppDomainId(vmAppDomain, &retValLocal); 145if (_legacy is not null) 147int hrLocal = _legacy.GetAppDomainFullName(vmAppDomain, pStrName); 170if (_legacy is not null) 173int hrLocal = _legacy.GetModuleSimpleName(vmModule, legacyHolder.Ptr); 210if (_legacy is not null) 213int hrLocal = _legacy.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal); 223=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ResolveTypeReference(pTypeRefInfo, pTargetRefInfo) : HResults.E_NOTIMPL; 262if (_legacy is not null) 265int hrLocal = _legacy.GetModulePath(vmModule, pStrFilename, &resultLocal); 275=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMetadata(vmModule, pTargetBuffer) : HResults.E_NOTIMPL; 309if (_legacy is not null) 313int hrLocal = _legacy.GetSymbolsBuffer(vmModule, &bufferLocal, &formatLocal); 358if (_legacy is not null) 361int hrLocal = _legacy.GetModuleData(vmModule, &dataLocal); 401if (_legacy is not null) 405int hrLocal = _legacy.GetModuleForAssembly(vmAssembly, &moduleLocal, &isModuleLoadedLocal); 437if (_legacy is not null) 440int hrLocal = _legacy.IsManagedCode(address, &isManagedLocal); 473if (_legacy is not null) 477int hrLocal = _legacy.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal); 527if (_legacy is not null) 529int hrLocal = _legacy.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC); 540List<ulong>? cdacAssemblies = _legacy is not null ? new() : null; 571if (_legacy is not null && fpCallback != null) 577int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 609if (_legacy is not null) 611int hrLocal = _legacy.RequestSyncAtEvent(); 630if (_legacy is not null) 632int hrLocal = _legacy.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC); 660if (_legacy is not null) 662int hrLocal = _legacy.MarkDebuggerAttachPending(); 691if (_legacy is not null) 693int hrLocal = _legacy.MarkDebuggerAttached(fAttached); 702=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.Hijack(vmThread, dwThreadId, pRecord, pOriginalContext, cbSizeContext, reason, pUserData, pRemoteContextAddr) : HResults.E_NOTIMPL; 708List<ulong>? cdacThreads = _legacy is not null ? new() : null; 736if (_legacy is not null) 740int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 777if (_legacy is not null) 780int hrLocal = _legacy.IsThreadMarkedDead(vmThread, &resultLocal); 802if (_legacy is not null) 805int hrLocal = _legacy.GetThreadHandle(vmThread, &retValLocal); 831if (_legacy is not null) 834int hrLocal = _legacy.GetThreadObject(vmThread, &retValLocal); 862if (_legacy is not null) 865int hrLocal = _legacy.GetThreadAllocInfo(vmThread, &allocInfoLocal); 902if (_legacy is not null) 904int hrLocal = _legacy.SetDebugState(vmThread, debugState); 925if (_legacy is not null) 928int hrLocal = _legacy.HasUnhandledException(vmThread, &resultLocal); 938=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetUserState(vmThread, pRetVal) : HResults.E_NOTIMPL; 973if (_legacy is not null) 976int hrLocal = _legacy.GetPartialUserState(vmThread, &retValLocal); 990if (_legacy is not null) 993int hrLocal = _legacy.GetConnectionID(vmThread, &retValLocal); 1007if (_legacy is not null) 1010int hrLocal = _legacy.GetTaskID(vmThread, &retValLocal); 1036if (_legacy is not null) 1039int hrLocal = _legacy.TryGetVolatileOSThreadID(vmThread, &retValLocal); 1062if (_legacy is not null) 1065int hrLocal = _legacy.GetUniqueThreadID(vmThread, &retValLocal); 1095if (_legacy is not null) 1098int hrLocal = _legacy.GetCurrentException(vmThread, &retValLocal); 1144if (_legacy is not null) 1147int hrLocal = _legacy.GetObjectForCCW(ccwPtr, &retValLocal); 1170if (_legacy is not null) 1173int hrLocal = _legacy.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal); 1196if (_legacy is not null) 1199int hrLocal = _legacy.GetCurrentAppDomain(&retValLocal); 1229if (_legacy is not null) 1232int hrLocal = _legacy.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal); 1242=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeSequencePointsAndVarInfo(vmMethodDesc, startAddress, fCodeAvailable, pNativeVarData, pSequencePoints) : HResults.E_NOTIMPL; 1276if (_legacy is not null) 1279int hrLocal = _legacy.GetManagedStoppedContext(vmThread, &pRetValLocal); 1357if (_legacy is not null && LegacyFallbackHelper.CanFallback()) 1365int hrLocal = _legacy.CreateStackWalk(vmThread, pLocal, &legacyHandle); 1381_legacy.DeleteStackWalk(legacyHandle); 1412if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1414int hrLocal = _legacy.DeleteStackWalk(legacyHandle); 1467if (_legacy is not null && legacyHandle != 0) 1473int hrLocal = _legacy.GetStackWalkCurrentContext(legacyHandle, pLocal); 1515if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1517int hrLocal = _legacy.SetStackWalkCurrentContext(vmThread, legacyHandle, flag, pContext); 1560if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1563int hrLocal = _legacy.UnwindStackWalkFrame(legacyHandle, &localResult); 1598if (_legacy is not null) 1600int hrLocal = _legacy.CheckContext(vmThread, pContext); 1613return _legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0 1614? _legacy.GetStackWalkCurrentFrameInfo(legacyHandle, pFrameData, pRetVal) 1649if (_legacy is not null) 1652int hrLocal = _legacy.GetCountOfInternalFrames(vmThread, &dacCount); 1665List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null; 1715if (_legacy is not null) 1719int hrLocal = _legacy.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle)); 1811if (_legacy is not null) 1814int hrLocal = _legacy.GetStackParameterSize(controlPC, &retValLocal); 1829return _legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0 1830? _legacy.GetFramePointer(legacyHandle, pRetVal) 1872if (_legacy is not null) 1875int hrLocal = _legacy.IsLeafFrame(vmThread, pContext, &resultLocal); 1900if (_legacy is not null) 1906int hrLocal = _legacy.GetContext(vmThread, pLocal); 1946if (_legacy is not null) 1949int hrLocal = _legacy.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal); 1977if (_legacy is not null) 1981int hrLocal = _legacy.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal); 2018if (_legacy is not null) 2021int hrLocal = _legacy.RequiresAlign8(thExact, &resultLocal); 2070if (_legacy is not null) 2073int hrLocal = _legacy.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal); 2133if (_legacy is not null) 2137int hrLocal = _legacy.GetILCodeAndSig(vmAssembly, functionToken, &bufferLocal, &sigLocal); 2151=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfo(vmAssembly, functionToken, pJitManagerList) : HResults.E_NOTIMPL; 2154=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfoForAddr(codeAddress, pCodeInfo, pVmModule, pFunctionToken) : HResults.E_NOTIMPL; 2171if (_legacy is not null) 2174int hrLocal = _legacy.IsValueType(vmTypeHandle, &resultLocal); 2198if (_legacy is not null) 2201int hrLocal = _legacy.HasTypeParams(vmTypeHandle, &resultLocal); 2218if (_legacy is not null) 2253if (_legacy is not null) 2260(pSize, pUser) => _legacy!.EnumerateClassFields(thExact, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 2274if (_legacy is not null) 2302if (_legacy is not null) 2309(pSize, pUser) => _legacy!.EnumerateInstantiationFields(vmAssembly, vmThExact, vmThApprox, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 2500if (_legacy is not null) 2503int hrLocal = _legacy.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, &dataLocal); 2529if (_legacy is not null) 2532int hrLocal = _legacy.GetObjectExpandedTypeInfo(boxed, addr, &dataLocal); 2620if (_legacy is not null) 2623int hrLocal = _legacy.GetTypeHandle(vmModule, metadataToken, &retValLocal); 2658if (_legacy is not null) 2661int hrLocal = _legacy.GetApproxTypeHandle(pTypeData, &vmLocal); 2712if (_legacy is not null) 2715int hrLocal = _legacy.GetExactTypeHandle(pTypeData, pArgInfo, &vmLocal); 2929if (_legacy is not null) 2934int hrLocal = _legacy.EnumerateMethodDescParams(vmMethodDesc, genericsToken, &cClassParamsLocal, debugCallbackPtr, 0); 2984if (_legacy is not null) 2987int hrLocal = _legacy.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal); 3011if (_legacy is not null) 3014int hrLocal = _legacy.GetCollectibleTypeStaticAddress(vmField, &retValLocal); 3084if (_legacy is not null) 3087int hrLocal = _legacy.GetEnCHangingFieldInfo(pEnCFieldInfo, &fieldDataLocal); 3182if (_legacy is not null) 3186int hrLocal = _legacy.EnumerateTypeHandleParams(vmTypeHandle, debugCallbackPtr, 0); 3261if (_legacy is not null) 3265int hrLocal = _legacy.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal); 3305if (_legacy is not null) 3308int hrLocal = _legacy.IsExceptionObject(vmObject, &resultLocal); 3361if (_legacy is not null) 3365int hrLocal = _legacy.EnumerateStackFramesFromException(vmObject, debugCallbackPtr, 0); 3398if (_legacy is not null) 3401int hrLocal = _legacy.IsRcw(vmObject, &resultLocal); 3454if (_legacy is not null) 3458int hrLocal = _legacy.EnumerateRcwCachedInterfacePointers(vmObject, debugCallbackPtr, 0); 3492if (_legacy is not null) 3496int hrLocal = _legacy.GetTypedByRefInfo(pTypedByRef, &objRefLocal, &typeLocal); 3534if (_legacy is not null) 3537int hrLocal = _legacy.GetStringData(objectAddress, &lengthLocal, &offsetLocal); 3587if (_legacy is not null) 3591int hrLocal = _legacy.GetArrayData(objectAddress, &isValidLocal, &arrayInfoLocal); 3652if (_legacy is not null) 3657int hrLocal = _legacy.GetBasicObjectInfo(objectAddress, &isValidLocal, &objSizeLocal, &objOffsetLocal, &typeDataLocal); 3688if (_legacy is not null) 3691int hrLocal = _legacy.GetDebuggerControlBlockAddress(&retValLocal); 3713if (_legacy is not null) 3716int hrLocal = _legacy.GetObjectFromRefPtr(ptr, &retValLocal); 3731if (_legacy is not null) 3734int hrLocal = _legacy.GetObject(ptr, &retValLocal); 3748if (_legacy is not null) 3751int hrLocal = _legacy.GetVmObjectHandle(handleAddress, &retValLocal); 3774if (_legacy is not null) 3777int hrLocal = _legacy.IsVmObjectHandleValid(vmHandle, &resultLocal); 3791if (_legacy is not null) 3794int hrLocal = _legacy.GetHandleAddressFromVmHandle(vmHandle, &retValLocal); 3835if (_legacy is not null) 3838int hrLocal = _legacy.GetThreadOwningMonitorLock(vmObject, &pRetValLocal); 3868if (_legacy is not null) 3871int hrLocal = _legacy.GetAttachStateFlags(&resultLocal); 3922if (_legacy is not null) 3928int hrLocal = _legacy.GetModuleMetaDataFileInfo(vmModule, &timeStampLocal, &imageSizeLocal, legacyHolder.Ptr, &resultLocal); 3948=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsThreadSuspendedOrHijacked(vmThread, pResult) : HResults.E_NOTIMPL; 3967if (_legacy is not null) 3970int hrLocal = _legacy.CreateHeapWalk(&legacyHandle); 3977_legacy.DeleteHeapWalk(legacyHandle); 4004if (_legacy is not null && legacyHandle != 0) 4006int hrLocal = _legacy.DeleteHeapWalk(legacyHandle); 4064if (_legacy is not null && walk.LegacyHandle != 0) 4071hrLocal = _legacy.WalkHeap(walk.LegacyHandle, count, objectsLocalPtr, &fetchedLocal); 4161if (_legacy is not null) 4165int hrLocal = _legacy.EnumerateHeapSegments(debugCallbackPtr, 0); 4251if (_legacy is not null) 4254int hrLocal = _legacy.IsValidObject(obj, &resultLocal); 4284if (_legacy is not null) 4287int hrLocal = _legacy.CreateRefWalk(&legacyHandle, walkStacks, handleWalkMask); 4292_legacy.DeleteRefWalk(legacyHandle); 4319if (_legacy is not null && legacyHandle != 0) 4321int hrLocal = _legacy.DeleteRefWalk(legacyHandle); 4368if (_legacy is not null && walk.LegacyHandle != 0 && count > 0) 4373int hrLocal = _legacy.WalkRefs(walk.LegacyHandle, count, legacyRefs, &legacyFetched); 4431if (_legacy is not null) 4434int hrLocal = _legacy.GetTypeID(obj, &resultLocal); 4462if (_legacy is not null) 4465int hrLocal = _legacy.GetTypeIDForType(vmTypeHandle, &resultLocal); 4601if (_legacy is not null) 4608int hrLocal = _legacy.GetObjectFields(id, celt, layout == null ? null : localFieldsPtr, &fetchedLocal); 4667if (_legacy is not null) 4670int hrLocal = _legacy.GetTypeLayout(id, &resultLocal); 4740if (_legacy is not null) 4743int hrLocal = _legacy.GetArrayLayout(id, &resultLocal); 4785if (_legacy is not null) 4788int hrLocal = _legacy.GetGCHeapInformation(&resultLocal); 4805=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetPEFileMDInternalRW(vmPEAssembly, pAddrMDInternalRW) : HResults.E_NOTIMPL; 4846if (_legacy is not null) 4849int hrLocal = _legacy.AreOptimizationsDisabled(vmModule, methodTk, &localPOptimizationsDisabled); 4875if (_legacy is not null) 4878int hrLocal = _legacy.GetDefinesBitField(&resultLocal); 4904if (_legacy is not null) 4907int hrLocal = _legacy.GetMDStructuresVersion(&resultLocal); 4957if (_legacy is not null) 4960int hrLocal = _legacy.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal); 4995if (_legacy is not null) 4998int hrLocal = _legacy.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal); 5032if (_legacy is not null) 5035int hrLocal = _legacy.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal); 5077if (_legacy is not null) 5080int hrLocal = _legacy.GetILCodeVersionNodeData(ilCodeVersionNode, &dataLocal); 5106if (_legacy is not null) 5108int hrLocal = _legacy.EnableGCNotificationEvents(fEnable); 5134if (_legacy is not null) 5137int hrLocal = _legacy.IsDelegate(vmObject, &pResultLocal); 5190if (_legacy is not null) 5194int hrLocal = _legacy.GetDelegateFunctionData(delegateObject, &asmLocal, &methodDefLocal); 5229if (_legacy is not null) 5232int hrLocal = _legacy.GetDelegateTargetObject(delegateObject, &targetObjLocal); 5274if (_legacy is not null) 5277int hrLocal = _legacy.IsModuleMapped(pModule, &isModuleMappedLocal); 5300if (_legacy is not null) 5303int hrLocal = _legacy.MetadataUpdatesApplied(&resultLocal); 5336if (_legacy is not null) 5339int hrLocal = _legacy.GetAssemblyFromModule(vmModule, &assemblyLocal); 5366if (_legacy is not null) 5371int hrLocal = _legacy.ParseContinuation(continuationAddress, &diagnosticIPLocal, &nextLocal, &stateLocal); 5458if (_legacy is not null) 5462int hrLocal = _legacy.EnumerateAsyncLocals(vmMethod, codeAddr, state, debugCallbackPtr, 0); 5517if (_legacy is not null) 5520int hrLocal = _legacy.GetGenericArgTokenIndex(vmMethod, &indexLocal);