1 write to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (1)
270 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (270)
Dbi\DacDbiImpl.cs (270)
60=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CheckDbiVersion(pVersion) : HResults.E_NOTIMPL;
65return _legacy is not null ? _legacy.FlushCache() : HResults.S_OK;
69=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DacSetTargetConsistencyChecks(fEnableAsserts) : HResults.E_NOTIMPL;
85if (_legacy is not null)
88int hrLocal = _legacy.IsLeftSideInitialized(&resultLocal);
111if (_legacy is not null)
114int hrLocal = _legacy.GetAppDomainId(vmAppDomain, &retValLocal);
136if (_legacy is not null)
138int hrLocal = _legacy.GetAppDomainFullName(vmAppDomain, pStrName);
161if (_legacy is not null)
164int hrLocal = _legacy.GetModuleSimpleName(vmModule, legacyHolder.Ptr);
201if (_legacy is not null)
204int hrLocal = _legacy.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal);
214=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ResolveTypeReference(pTypeRefInfo, pTargetRefInfo) : HResults.E_NOTIMPL;
240if (_legacy is not null)
243int hrLocal = _legacy.GetModulePath(vmModule, pStrFilename, &resultLocal);
253=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMetadata(vmModule, pTargetBuffer) : HResults.E_NOTIMPL;
256=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetSymbolsBuffer(vmModule, pTargetBuffer, pSymbolFormat) : HResults.E_NOTIMPL;
290if (_legacy is not null)
293int hrLocal = _legacy.GetModuleData(vmModule, &dataLocal);
324if (_legacy is not null)
327int hrLocal = _legacy.GetModuleForAssembly(vmAssembly, &moduleLocal);
337=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetAddressType(address, pRetVal) : HResults.E_NOTIMPL;
361if (_legacy is not null)
365int hrLocal = _legacy.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal);
415if (_legacy is not null)
417int hrLocal = _legacy.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC);
428List<ulong>? cdacAssemblies = _legacy is not null ? new() : null;
459if (_legacy is not null && fpCallback != null)
465int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
486=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.EnumerateModulesInAssembly(vmAssembly, fpCallback, pUserData) : HResults.E_NOTIMPL;
500if (_legacy is not null)
502int hrLocal = _legacy.RequestSyncAtEvent();
521if (_legacy is not null)
523int hrLocal = _legacy.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC);
551if (_legacy is not null)
553int hrLocal = _legacy.MarkDebuggerAttachPending();
582if (_legacy is not null)
584int hrLocal = _legacy.MarkDebuggerAttached(fAttached);
593=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.Hijack(vmThread, dwThreadId, pRecord, pOriginalContext, cbSizeContext, reason, pUserData, pRemoteContextAddr) : HResults.E_NOTIMPL;
599List<ulong>? cdacThreads = _legacy is not null ? new() : null;
627if (_legacy is not null)
631int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
668if (_legacy is not null)
671int hrLocal = _legacy.IsThreadMarkedDead(vmThread, &resultLocal);
681=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetThreadHandle(vmThread, pRetVal) : HResults.E_NOTIMPL;
700if (_legacy is not null)
703int hrLocal = _legacy.GetThreadObject(vmThread, &retValLocal);
713=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetThreadAllocInfo(vmThread, pThreadAllocInfo) : HResults.E_NOTIMPL;
740if (_legacy is not null)
742int hrLocal = _legacy.SetDebugState(vmThread, debugState);
763if (_legacy is not null)
766int hrLocal = _legacy.HasUnhandledException(vmThread, &resultLocal);
776=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetUserState(vmThread, pRetVal) : HResults.E_NOTIMPL;
811if (_legacy is not null)
814int hrLocal = _legacy.GetPartialUserState(vmThread, &retValLocal);
828if (_legacy is not null)
831int hrLocal = _legacy.GetConnectionID(vmThread, &retValLocal);
845if (_legacy is not null)
848int hrLocal = _legacy.GetTaskID(vmThread, &retValLocal);
874if (_legacy is not null)
877int hrLocal = _legacy.TryGetVolatileOSThreadID(vmThread, &retValLocal);
900if (_legacy is not null)
903int hrLocal = _legacy.GetUniqueThreadID(vmThread, &retValLocal);
933if (_legacy is not null)
936int hrLocal = _legacy.GetCurrentException(vmThread, &retValLocal);
982if (_legacy is not null)
985int hrLocal = _legacy.GetObjectForCCW(ccwPtr, &retValLocal);
1008if (_legacy is not null)
1011int hrLocal = _legacy.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal);
1034if (_legacy is not null)
1037int hrLocal = _legacy.GetCurrentAppDomain(&retValLocal);
1067if (_legacy is not null)
1070int hrLocal = _legacy.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal);
1080=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeSequencePointsAndVarInfo(vmMethodDesc, startAddress, fCodeAvailable, pNativeVarData, pSequencePoints) : HResults.E_NOTIMPL;
1083=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetManagedStoppedContext(vmThread, pRetVal) : HResults.E_NOTIMPL;
1086=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CreateStackWalk(vmThread, pInternalContextBuffer, ppSFIHandle) : HResults.E_NOTIMPL;
1089=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DeleteStackWalk(ppSFIHandle) : HResults.E_NOTIMPL;
1092=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackWalkCurrentContext(pSFIHandle, pContext) : HResults.E_NOTIMPL;
1095=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.SetStackWalkCurrentContext(vmThread, pSFIHandle, flag, pContext) : HResults.E_NOTIMPL;
1098=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.UnwindStackWalkFrame(pSFIHandle, pResult) : HResults.E_NOTIMPL;
1101=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CheckContext(vmThread, pContext) : HResults.E_NOTIMPL;
1104=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackWalkCurrentFrameInfo(pSFIHandle, pFrameData, pRetVal) : HResults.E_NOTIMPL;
1107=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetCountOfInternalFrames(vmThread, pRetVal) : HResults.E_NOTIMPL;
1110=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.EnumerateInternalFrames(vmThread, fpCallback, pUserData) : HResults.E_NOTIMPL;
1113=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackParameterSize(controlPC, pRetVal) : HResults.E_NOTIMPL;
1116=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetFramePointer(pSFIHandle, pRetVal) : HResults.E_NOTIMPL;
1142if (_legacy is not null)
1145int hrLocal = _legacy.IsLeafFrame(vmThread, pContext, &resultLocal);
1169if (_legacy is not null)
1175int hrLocal = _legacy.GetContext(vmThread, pLocal);
1194=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ConvertContextToDebuggerRegDisplay(pInContext, pOutDRD, fActive) : HResults.E_NOTIMPL;
1218if (_legacy is not null)
1221int hrLocal = _legacy.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal);
1249if (_legacy is not null)
1253int hrLocal = _legacy.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal);
1290if (_legacy is not null)
1293int hrLocal = _legacy.RequiresAlign8(thExact, &resultLocal);
1342if (_legacy is not null)
1345int hrLocal = _legacy.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal);
1355=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetILCodeAndSig(vmAssembly, functionToken, pTargetBuffer, pLocalSigToken) : HResults.E_NOTIMPL;
1358=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfo(vmAssembly, functionToken, pJitManagerList) : HResults.E_NOTIMPL;
1361=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfoForAddr(codeAddress, pCodeInfo, pVmModule, pFunctionToken) : HResults.E_NOTIMPL;
1378if (_legacy is not null)
1381int hrLocal = _legacy.IsValueType(vmTypeHandle, &resultLocal);
1405if (_legacy is not null)
1408int hrLocal = _legacy.HasTypeParams(vmTypeHandle, &resultLocal);
1418=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetClassInfo(thExact, pData) : HResults.E_NOTIMPL;
1421=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetInstantiationFieldInfo(vmAssembly, vmTypeHandle, vmExactMethodTable, pFieldList, pObjectSize) : HResults.E_NOTIMPL;
1424=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, pData) : HResults.E_NOTIMPL;
1427=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetObjectExpandedTypeInfo(boxed, addr, pTypeInfo) : HResults.E_NOTIMPL;
1430=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetObjectExpandedTypeInfoFromID(boxed, id, pTypeInfo) : HResults.E_NOTIMPL;
1461if (_legacy is not null)
1464int hrLocal = _legacy.GetTypeHandle(vmModule, metadataToken, &retValLocal);
1474=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetApproxTypeHandle(pTypeData, pRetVal) : HResults.E_NOTIMPL;
1477=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetExactTypeHandle(pTypeData, pArgInfo, pVmTypeHandle) : HResults.E_NOTIMPL;
1480=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMethodDescParams(vmMethodDesc, genericsToken, pcGenericClassTypeParams, pGenericTypeParams) : HResults.E_NOTIMPL;
1503if (_legacy is not null)
1506int hrLocal = _legacy.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal);
1516=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetCollectibleTypeStaticAddress(vmField, pRetVal) : HResults.E_NOTIMPL;
1519=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetEnCHangingFieldInfo(pEnCFieldInfo, pFieldData, pfStatic) : HResults.E_NOTIMPL;
1522=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetTypeHandleParams(vmTypeHandle, pParams) : HResults.E_NOTIMPL;
1553if (_legacy is not null)
1557int hrLocal = _legacy.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal);
1570=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsExceptionObject(vmObject, pResult) : HResults.E_NOTIMPL;
1573=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackFramesFromException(vmObject, pDacStackFrames) : HResults.E_NOTIMPL;
1590if (_legacy is not null)
1593int hrLocal = _legacy.IsRcw(vmObject, &resultLocal);
1603=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetRcwCachedInterfacePointers(vmObject, bIInspectableOnly, pDacItfPtrs) : HResults.E_NOTIMPL;
1606=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetTypedByRefInfo(pTypedByRef, pObjectData) : HResults.E_NOTIMPL;
1609=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStringData(objectAddress, pObjectData) : HResults.E_NOTIMPL;
1612=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetArrayData(objectAddress, pObjectData) : HResults.E_NOTIMPL;
1615=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetBasicObjectInfo(objectAddress, type, pObjectData) : HResults.E_NOTIMPL;
1630if (_legacy is not null)
1633int hrLocal = _legacy.GetDebuggerControlBlockAddress(&retValLocal);
1655if (_legacy is not null)
1658int hrLocal = _legacy.GetObjectFromRefPtr(ptr, &retValLocal);
1673if (_legacy is not null)
1676int hrLocal = _legacy.GetObject(ptr, &retValLocal);
1690if (_legacy is not null)
1693int hrLocal = _legacy.GetVmObjectHandle(handleAddress, &retValLocal);
1716if (_legacy is not null)
1719int hrLocal = _legacy.IsVmObjectHandleValid(vmHandle, &resultLocal);
1733if (_legacy is not null)
1736int hrLocal = _legacy.GetHandleAddressFromVmHandle(vmHandle, &retValLocal);
1746=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetObjectContents(obj, pRetVal) : HResults.E_NOTIMPL;
1749=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetThreadOwningMonitorLock(vmObject, pRetVal) : HResults.E_NOTIMPL;
1752=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.EnumerateMonitorEventWaitList(vmObject, fpCallback, pUserData) : HResults.E_NOTIMPL;
1768if (_legacy is not null)
1771int hrLocal = _legacy.GetAttachStateFlags(&resultLocal);
1782=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMetaDataFileInfoFromPEFile(vmPEAssembly, dwTimeStamp, dwImageSize, pStrFilename, pResult) : HResults.E_NOTIMPL;
1785=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsThreadSuspendedOrHijacked(vmThread, pResult) : HResults.E_NOTIMPL;
1788=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CreateHeapWalk(pHandle) : HResults.E_NOTIMPL;
1791=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DeleteHeapWalk(handle) : HResults.E_NOTIMPL;
1794=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.WalkHeap(handle, count, objects, fetched) : HResults.E_NOTIMPL;
1864if (_legacy is not null)
1868int hrLocal = _legacy.EnumerateHeapSegments(debugCallbackPtr, 0);
1920=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsValidObject(obj, pResult) : HResults.E_NOTIMPL;
1923=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CreateRefWalk(pHandle, walkStacks, walkFQ, handleWalkMask) : HResults.E_NOTIMPL;
1926=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DeleteRefWalk(handle) : HResults.E_NOTIMPL;
1929=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.WalkRefs(handle, count, refs, pFetched) : HResults.E_NOTIMPL;
1947if (_legacy is not null)
1950int hrLocal = _legacy.GetTypeID(obj, &resultLocal);
1978if (_legacy is not null)
1981int hrLocal = _legacy.GetTypeIDForType(vmTypeHandle, &resultLocal);
1995=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetObjectFields(id, celt, layout, pceltFetched) : HResults.E_NOTIMPL;
2031if (_legacy is not null)
2034int hrLocal = _legacy.GetTypeLayout(id, &resultLocal);
2104if (_legacy is not null)
2107int hrLocal = _legacy.GetArrayLayout(id, &resultLocal);
2149if (_legacy is not null)
2152int hrLocal = _legacy.GetGCHeapInformation(&resultLocal);
2169=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetPEFileMDInternalRW(vmPEAssembly, pAddrMDInternalRW) : HResults.E_NOTIMPL;
2172=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.AreOptimizationsDisabled(vmModule, methodTk, pOptimizationsDisabled) : HResults.E_NOTIMPL;
2190if (_legacy is not null)
2193int hrLocal = _legacy.GetDefinesBitField(&resultLocal);
2219if (_legacy is not null)
2222int hrLocal = _legacy.GetMDStructuresVersion(&resultLocal);
2272if (_legacy is not null)
2275int hrLocal = _legacy.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal);
2310if (_legacy is not null)
2313int hrLocal = _legacy.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal);
2347if (_legacy is not null)
2350int hrLocal = _legacy.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal);
2361=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetILCodeVersionNodeData(ilCodeVersionNode, pData) : HResults.E_NOTIMPL;
2375if (_legacy is not null)
2377int hrLocal = _legacy.EnableGCNotificationEvents(fEnable);
2385=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsDelegate(vmObject, pResult) : HResults.E_NOTIMPL;
2388=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetDelegateType(delegateObject, delegateType) : HResults.E_NOTIMPL;
2391=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetDelegateFunctionData(delegateType, delegateObject, ppFunctionAssembly, pMethodDef) : HResults.E_NOTIMPL;
2394=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetDelegateTargetObject(delegateType, delegateObject, ppTargetObj, ppTargetAppDomain) : HResults.E_NOTIMPL;
2421if (_legacy is not null)
2424int hrLocal = _legacy.IsModuleMapped(pModule, &isModuleMappedLocal);
2447if (_legacy is not null)
2450int hrLocal = _legacy.MetadataUpdatesApplied(&resultLocal);
2461=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetAssemblyFromModule(vmModule, pVmAssembly) : HResults.E_NOTIMPL;
2464=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ParseContinuation(continuationAddress, pDiagnosticIP, pNextContinuation, pState) : HResults.E_NOTIMPL;
2467=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetAsyncLocals(vmMethod, codeAddr, state, pAsyncLocals) : HResults.E_NOTIMPL;
2501if (_legacy is not null)
2504int hrLocal = _legacy.GetGenericArgTokenIndex(vmMethod, &indexLocal);