1 write to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (1)
266 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (266)
Dbi\DacDbiImpl.cs (266)
67=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CheckDbiVersion(pVersion) : HResults.E_NOTIMPL;
72return _legacy is not null ? _legacy.FlushCache() : HResults.S_OK;
76=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DacSetTargetConsistencyChecks(fEnableAsserts) : HResults.E_NOTIMPL;
92if (_legacy is not null)
95int hrLocal = _legacy.IsLeftSideInitialized(&resultLocal);
118if (_legacy is not null)
121int hrLocal = _legacy.GetAppDomainId(vmAppDomain, &retValLocal);
143if (_legacy is not null)
145int hrLocal = _legacy.GetAppDomainFullName(vmAppDomain, pStrName);
168if (_legacy is not null)
171int hrLocal = _legacy.GetModuleSimpleName(vmModule, legacyHolder.Ptr);
208if (_legacy is not null)
211int hrLocal = _legacy.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal);
221=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ResolveTypeReference(pTypeRefInfo, pTargetRefInfo) : HResults.E_NOTIMPL;
247if (_legacy is not null)
250int hrLocal = _legacy.GetModulePath(vmModule, pStrFilename, &resultLocal);
260=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMetadata(vmModule, pTargetBuffer) : HResults.E_NOTIMPL;
294if (_legacy is not null)
298int hrLocal = _legacy.GetSymbolsBuffer(vmModule, &bufferLocal, &formatLocal);
343if (_legacy is not null)
346int hrLocal = _legacy.GetModuleData(vmModule, &dataLocal);
386if (_legacy is not null)
390int hrLocal = _legacy.GetModuleForAssembly(vmAssembly, &moduleLocal, &isModuleLoadedLocal);
404=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetAddressType(address, pRetVal) : HResults.E_NOTIMPL;
428if (_legacy is not null)
432int hrLocal = _legacy.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal);
482if (_legacy is not null)
484int hrLocal = _legacy.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC);
495List<ulong>? cdacAssemblies = _legacy is not null ? new() : null;
526if (_legacy is not null && fpCallback != null)
532int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
564if (_legacy is not null)
566int hrLocal = _legacy.RequestSyncAtEvent();
585if (_legacy is not null)
587int hrLocal = _legacy.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC);
615if (_legacy is not null)
617int hrLocal = _legacy.MarkDebuggerAttachPending();
646if (_legacy is not null)
648int hrLocal = _legacy.MarkDebuggerAttached(fAttached);
657=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.Hijack(vmThread, dwThreadId, pRecord, pOriginalContext, cbSizeContext, reason, pUserData, pRemoteContextAddr) : HResults.E_NOTIMPL;
663List<ulong>? cdacThreads = _legacy is not null ? new() : null;
691if (_legacy is not null)
695int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
732if (_legacy is not null)
735int hrLocal = _legacy.IsThreadMarkedDead(vmThread, &resultLocal);
757if (_legacy is not null)
760int hrLocal = _legacy.GetThreadHandle(vmThread, &retValLocal);
786if (_legacy is not null)
789int hrLocal = _legacy.GetThreadObject(vmThread, &retValLocal);
817if (_legacy is not null)
820int hrLocal = _legacy.GetThreadAllocInfo(vmThread, &allocInfoLocal);
857if (_legacy is not null)
859int hrLocal = _legacy.SetDebugState(vmThread, debugState);
880if (_legacy is not null)
883int hrLocal = _legacy.HasUnhandledException(vmThread, &resultLocal);
893=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetUserState(vmThread, pRetVal) : HResults.E_NOTIMPL;
928if (_legacy is not null)
931int hrLocal = _legacy.GetPartialUserState(vmThread, &retValLocal);
945if (_legacy is not null)
948int hrLocal = _legacy.GetConnectionID(vmThread, &retValLocal);
962if (_legacy is not null)
965int hrLocal = _legacy.GetTaskID(vmThread, &retValLocal);
991if (_legacy is not null)
994int hrLocal = _legacy.TryGetVolatileOSThreadID(vmThread, &retValLocal);
1017if (_legacy is not null)
1020int hrLocal = _legacy.GetUniqueThreadID(vmThread, &retValLocal);
1050if (_legacy is not null)
1053int hrLocal = _legacy.GetCurrentException(vmThread, &retValLocal);
1099if (_legacy is not null)
1102int hrLocal = _legacy.GetObjectForCCW(ccwPtr, &retValLocal);
1125if (_legacy is not null)
1128int hrLocal = _legacy.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal);
1151if (_legacy is not null)
1154int hrLocal = _legacy.GetCurrentAppDomain(&retValLocal);
1184if (_legacy is not null)
1187int hrLocal = _legacy.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal);
1197=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeSequencePointsAndVarInfo(vmMethodDesc, startAddress, fCodeAvailable, pNativeVarData, pSequencePoints) : HResults.E_NOTIMPL;
1231if (_legacy is not null)
1234int hrLocal = _legacy.GetManagedStoppedContext(vmThread, &pRetValLocal);
1244=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CreateStackWalk(vmThread, pInternalContextBuffer, ppSFIHandle) : HResults.E_NOTIMPL;
1247=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DeleteStackWalk(ppSFIHandle) : HResults.E_NOTIMPL;
1250=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackWalkCurrentContext(pSFIHandle, pContext) : HResults.E_NOTIMPL;
1253=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.SetStackWalkCurrentContext(vmThread, pSFIHandle, flag, pContext) : HResults.E_NOTIMPL;
1256=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.UnwindStackWalkFrame(pSFIHandle, pResult) : HResults.E_NOTIMPL;
1281if (_legacy is not null)
1283int hrLocal = _legacy.CheckContext(vmThread, pContext);
1291=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStackWalkCurrentFrameInfo(pSFIHandle, pFrameData, pRetVal) : HResults.E_NOTIMPL;
1324if (_legacy is not null)
1327int hrLocal = _legacy.GetCountOfInternalFrames(vmThread, &dacCount);
1340List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null;
1390if (_legacy is not null)
1394int hrLocal = _legacy.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle));
1486if (_legacy is not null)
1489int hrLocal = _legacy.GetStackParameterSize(controlPC, &retValLocal);
1499=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetFramePointer(pSFIHandle, pRetVal) : HResults.E_NOTIMPL;
1526if (_legacy is not null)
1529int hrLocal = _legacy.IsLeafFrame(vmThread, pContext, &resultLocal);
1554if (_legacy is not null)
1560int hrLocal = _legacy.GetContext(vmThread, pLocal);
1579=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ConvertContextToDebuggerRegDisplay(pInContext, pOutDRD, fActive) : HResults.E_NOTIMPL;
1603if (_legacy is not null)
1606int hrLocal = _legacy.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal);
1634if (_legacy is not null)
1638int hrLocal = _legacy.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal);
1675if (_legacy is not null)
1678int hrLocal = _legacy.RequiresAlign8(thExact, &resultLocal);
1727if (_legacy is not null)
1730int hrLocal = _legacy.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal);
1790if (_legacy is not null)
1794int hrLocal = _legacy.GetILCodeAndSig(vmAssembly, functionToken, &bufferLocal, &sigLocal);
1808=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfo(vmAssembly, functionToken, pJitManagerList) : HResults.E_NOTIMPL;
1811=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetNativeCodeInfoForAddr(codeAddress, pCodeInfo, pVmModule, pFunctionToken) : HResults.E_NOTIMPL;
1828if (_legacy is not null)
1831int hrLocal = _legacy.IsValueType(vmTypeHandle, &resultLocal);
1855if (_legacy is not null)
1858int hrLocal = _legacy.HasTypeParams(vmTypeHandle, &resultLocal);
1875if (_legacy is not null)
1910if (_legacy is not null)
1917(pSize, pUser) => _legacy!.EnumerateClassFields(thExact, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser));
1931if (_legacy is not null)
1959if (_legacy is not null)
1966(pSize, pUser) => _legacy!.EnumerateInstantiationFields(vmAssembly, vmThExact, vmThApprox, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser));
2157if (_legacy is not null)
2160int hrLocal = _legacy.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, &dataLocal);
2186if (_legacy is not null)
2189int hrLocal = _legacy.GetObjectExpandedTypeInfo(boxed, addr, &dataLocal);
2277if (_legacy is not null)
2280int hrLocal = _legacy.GetTypeHandle(vmModule, metadataToken, &retValLocal);
2290=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetApproxTypeHandle(pTypeData, pRetVal) : HResults.E_NOTIMPL;
2333if (_legacy is not null)
2336int hrLocal = _legacy.GetExactTypeHandle(pTypeData, pArgInfo, &vmLocal);
2572if (_legacy is not null)
2577int hrLocal = _legacy.EnumerateMethodDescParams(vmMethodDesc, genericsToken, &cClassParamsLocal, debugCallbackPtr, 0);
2627if (_legacy is not null)
2630int hrLocal = _legacy.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal);
2654if (_legacy is not null)
2657int hrLocal = _legacy.GetCollectibleTypeStaticAddress(vmField, &retValLocal);
2667=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetEnCHangingFieldInfo(pEnCFieldInfo, pFieldData, pfStatic) : HResults.E_NOTIMPL;
2701if (_legacy is not null)
2705int hrLocal = _legacy.EnumerateTypeHandleParams(vmTypeHandle, debugCallbackPtr, 0);
2780if (_legacy is not null)
2784int hrLocal = _legacy.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal);
2824if (_legacy is not null)
2827int hrLocal = _legacy.IsExceptionObject(vmObject, &resultLocal);
2881if (_legacy is not null)
2885int hrLocal = _legacy.EnumerateStackFramesFromException(vmObject, debugCallbackPtr, 0);
2918if (_legacy is not null)
2921int hrLocal = _legacy.IsRcw(vmObject, &resultLocal);
2974if (_legacy is not null)
2978int hrLocal = _legacy.EnumerateRcwCachedInterfacePointers(vmObject, debugCallbackPtr, 0);
2994=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetTypedByRefInfo(pTypedByRef, pObjectData) : HResults.E_NOTIMPL;
2997=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetStringData(objectAddress, pObjectData) : HResults.E_NOTIMPL;
3000=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetArrayData(objectAddress, pObjectData) : HResults.E_NOTIMPL;
3003=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetBasicObjectInfo(objectAddress, type, pObjectData) : HResults.E_NOTIMPL;
3018if (_legacy is not null)
3021int hrLocal = _legacy.GetDebuggerControlBlockAddress(&retValLocal);
3043if (_legacy is not null)
3046int hrLocal = _legacy.GetObjectFromRefPtr(ptr, &retValLocal);
3061if (_legacy is not null)
3064int hrLocal = _legacy.GetObject(ptr, &retValLocal);
3078if (_legacy is not null)
3081int hrLocal = _legacy.GetVmObjectHandle(handleAddress, &retValLocal);
3104if (_legacy is not null)
3107int hrLocal = _legacy.IsVmObjectHandleValid(vmHandle, &resultLocal);
3121if (_legacy is not null)
3124int hrLocal = _legacy.GetHandleAddressFromVmHandle(vmHandle, &retValLocal);
3165if (_legacy is not null)
3168int hrLocal = _legacy.GetThreadOwningMonitorLock(vmObject, &pRetValLocal);
3183=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.EnumerateMonitorEventWaitList(vmObject, fpCallback, pUserData) : HResults.E_NOTIMPL;
3199if (_legacy is not null)
3202int hrLocal = _legacy.GetAttachStateFlags(&resultLocal);
3213=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetMetaDataFileInfoFromPEFile(vmPEAssembly, dwTimeStamp, dwImageSize, pStrFilename, pResult) : HResults.E_NOTIMPL;
3216=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.IsThreadSuspendedOrHijacked(vmThread, pResult) : HResults.E_NOTIMPL;
3235if (_legacy is not null)
3238int hrLocal = _legacy.CreateHeapWalk(&legacyHandle);
3245_legacy.DeleteHeapWalk(legacyHandle);
3272if (_legacy is not null && legacyHandle != 0)
3274int hrLocal = _legacy.DeleteHeapWalk(legacyHandle);
3332if (_legacy is not null && walk.LegacyHandle != 0)
3339hrLocal = _legacy.WalkHeap(walk.LegacyHandle, count, objectsLocalPtr, &fetchedLocal);
3429if (_legacy is not null)
3433int hrLocal = _legacy.EnumerateHeapSegments(debugCallbackPtr, 0);
3519if (_legacy is not null)
3522int hrLocal = _legacy.IsValidObject(obj, &resultLocal);
3535=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.CreateRefWalk(pHandle, walkStacks, walkFQ, handleWalkMask) : HResults.E_NOTIMPL;
3538=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.DeleteRefWalk(handle) : HResults.E_NOTIMPL;
3541=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.WalkRefs(handle, count, refs, pFetched) : HResults.E_NOTIMPL;
3559if (_legacy is not null)
3562int hrLocal = _legacy.GetTypeID(obj, &resultLocal);
3590if (_legacy is not null)
3593int hrLocal = _legacy.GetTypeIDForType(vmTypeHandle, &resultLocal);
3729if (_legacy is not null)
3736int hrLocal = _legacy.GetObjectFields(id, celt, layout == null ? null : localFieldsPtr, &fetchedLocal);
3792if (_legacy is not null)
3795int hrLocal = _legacy.GetTypeLayout(id, &resultLocal);
3865if (_legacy is not null)
3868int hrLocal = _legacy.GetArrayLayout(id, &resultLocal);
3910if (_legacy is not null)
3913int hrLocal = _legacy.GetGCHeapInformation(&resultLocal);
3930=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetPEFileMDInternalRW(vmPEAssembly, pAddrMDInternalRW) : HResults.E_NOTIMPL;
3971if (_legacy is not null)
3974int hrLocal = _legacy.AreOptimizationsDisabled(vmModule, methodTk, &localPOptimizationsDisabled);
4000if (_legacy is not null)
4003int hrLocal = _legacy.GetDefinesBitField(&resultLocal);
4029if (_legacy is not null)
4032int hrLocal = _legacy.GetMDStructuresVersion(&resultLocal);
4082if (_legacy is not null)
4085int hrLocal = _legacy.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal);
4120if (_legacy is not null)
4123int hrLocal = _legacy.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal);
4157if (_legacy is not null)
4160int hrLocal = _legacy.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal);
4171=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetILCodeVersionNodeData(ilCodeVersionNode, pData) : HResults.E_NOTIMPL;
4185if (_legacy is not null)
4187int hrLocal = _legacy.EnableGCNotificationEvents(fEnable);
4213if (_legacy is not null)
4216int hrLocal = _legacy.IsDelegate(vmObject, &pResultLocal);
4269if (_legacy is not null)
4273int hrLocal = _legacy.GetDelegateFunctionData(delegateObject, &asmLocal, &methodDefLocal);
4308if (_legacy is not null)
4311int hrLocal = _legacy.GetDelegateTargetObject(delegateObject, &targetObjLocal);
4353if (_legacy is not null)
4356int hrLocal = _legacy.IsModuleMapped(pModule, &isModuleMappedLocal);
4379if (_legacy is not null)
4382int hrLocal = _legacy.MetadataUpdatesApplied(&resultLocal);
4415if (_legacy is not null)
4418int hrLocal = _legacy.GetAssemblyFromModule(vmModule, &assemblyLocal);
4428=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.ParseContinuation(continuationAddress, pDiagnosticIP, pNextContinuation, pState) : HResults.E_NOTIMPL;
4431=> LegacyFallbackHelper.CanFallback() && _legacy is not null ? _legacy.GetAsyncLocals(vmMethod, codeAddr, state, pAsyncLocals) : HResults.E_NOTIMPL;
4466if (_legacy is not null)
4469int hrLocal = _legacy.GetGenericArgTokenIndex(vmMethod, &indexLocal);