2 writes to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Dbi\DacDbiImpl.cs (2)
70_legacy = legacyObj as IDacDbiInterface; 88_legacy = null;
261 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (261)
Dbi\DacDbiImpl.cs (260)
77return _legacy is not null ? _legacy.FlushCache() : HResults.S_OK; 84ComObject? legacyComObject = (object?)_legacy as ComObject; 99=> LegacyFallbackHelper.CanFallback() && _legacy is not null 100? _legacy.DacSetTargetConsistencyChecks(fEnableAsserts) 117if (_legacy is not null) 120int hrLocal = _legacy.IsLeftSideInitialized(&resultLocal); 143if (_legacy is not null) 146int hrLocal = _legacy.GetAppDomainId(vmAppDomain, &retValLocal); 168if (_legacy is not null) 170int hrLocal = _legacy.GetAppDomainFullName(vmAppDomain, pStrName); 193if (_legacy is not null) 196int hrLocal = _legacy.GetModuleSimpleName(vmModule, legacyHolder.Ptr); 233if (_legacy is not null) 236int hrLocal = _legacy.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal); 313if (resolved && _legacy is not null) 316int hrLocal = _legacy.ResolveTypeReference(pTypeRefInfo, &targetLocal); 363if (_legacy is not null) 366int hrLocal = _legacy.GetModulePath(vmModule, pStrFilename, &resultLocal); 404if (_legacy is not null) 407int hrLocal = _legacy.GetMetadata(vmModule, pTargetBuffer == null ? null : &pTargetBufferLocal); 441if (_legacy is not null) 444int hrLocal = _legacy.GetReadWriteMetadataSize(vmModule, &sizeLocal); 481if (_legacy is not null) 487hrLocal = _legacy.FillReadWriteMetadata(vmModule, pLocal, cbBuffer); 531if (_legacy is not null) 535int hrLocal = _legacy.GetSymbolsBuffer(vmModule, &bufferLocal, &formatLocal); 580if (_legacy is not null) 583int hrLocal = _legacy.GetModuleData(vmModule, &dataLocal); 623if (_legacy is not null) 627int hrLocal = _legacy.GetModuleForAssembly(vmAssembly, &moduleLocal, &isModuleLoadedLocal); 659if (_legacy is not null) 662int hrLocal = _legacy.IsManagedCode(address, &isManagedLocal); 695if (_legacy is not null) 699int hrLocal = _legacy.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal); 749if (_legacy is not null) 751int hrLocal = _legacy.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC); 762List<ulong>? cdacAssemblies = _legacy is not null ? new() : null; 793if (_legacy is not null && fpCallback != null) 799int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 831if (_legacy is not null) 833int hrLocal = _legacy.RequestSyncAtEvent(); 852if (_legacy is not null) 854int hrLocal = _legacy.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC); 882if (_legacy is not null) 884int hrLocal = _legacy.MarkDebuggerAttachPending(); 913if (_legacy is not null) 915int hrLocal = _legacy.MarkDebuggerAttached(fAttached); 991List<ulong>? cdacThreads = _legacy is not null ? new() : null; 1019if (_legacy is not null) 1023int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 1060if (_legacy is not null) 1063int hrLocal = _legacy.IsThreadMarkedDead(vmThread, &resultLocal); 1085if (_legacy is not null) 1088int hrLocal = _legacy.GetThreadHandle(vmThread, &retValLocal); 1114if (_legacy is not null) 1117int hrLocal = _legacy.GetThreadObject(vmThread, &retValLocal); 1145if (_legacy is not null) 1148int hrLocal = _legacy.GetThreadAllocInfo(vmThread, &allocInfoLocal); 1185if (_legacy is not null) 1187int hrLocal = _legacy.SetDebugState(vmThread, debugState); 1208if (_legacy is not null) 1211int hrLocal = _legacy.HasUnhandledException(vmThread, &resultLocal); 1249if (_legacy is not null) 1252int hrLocal = _legacy.GetUserState(vmThread, &retValLocal); 1294if (_legacy is not null) 1297int hrLocal = _legacy.GetPartialUserState(vmThread, &retValLocal); 1311if (_legacy is not null) 1314int hrLocal = _legacy.GetConnectionID(vmThread, &retValLocal); 1328if (_legacy is not null) 1331int hrLocal = _legacy.GetTaskID(vmThread, &retValLocal); 1357if (_legacy is not null) 1360int hrLocal = _legacy.TryGetVolatileOSThreadID(vmThread, &retValLocal); 1383if (_legacy is not null) 1386int hrLocal = _legacy.GetUniqueThreadID(vmThread, &retValLocal); 1416if (_legacy is not null) 1419int hrLocal = _legacy.GetCurrentException(vmThread, &retValLocal); 1465if (_legacy is not null) 1468int hrLocal = _legacy.GetObjectForCCW(ccwPtr, &retValLocal); 1491if (_legacy is not null) 1494int hrLocal = _legacy.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal); 1517if (_legacy is not null) 1520int hrLocal = _legacy.GetCurrentAppDomain(&retValLocal); 1553if (_legacy is not null) 1556int hrLocal = _legacy.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal); 1632if (_legacy is not null) 1676if (_legacy is not null) 1679int hrLocal = _legacy.GetManagedStoppedContext(vmThread, &pRetValLocal); 1757if (_legacy is not null && LegacyFallbackHelper.CanFallback()) 1765int hrLocal = _legacy.CreateStackWalk(vmThread, pLocal, &legacyHandle); 1781_legacy.DeleteStackWalk(legacyHandle); 1812if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1814int hrLocal = _legacy.DeleteStackWalk(legacyHandle); 1852if (_legacy is not null && legacyHandle != 0) 1858int hrLocal = _legacy.GetStackWalkCurrentContext(legacyHandle, pLocal); 1900if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1902int hrLocal = _legacy.SetStackWalkCurrentContext(vmThread, legacyHandle, flag, pContext); 1945if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1948int hrLocal = _legacy.UnwindStackWalkFrame(legacyHandle, &localResult); 1983if (_legacy is not null) 1985int hrLocal = _legacy.CheckContext(vmThread, pContext); 2061if (_legacy is not null && legacyHandle != 0) 2071int hrLocal = _legacy.GetStackWalkCurrentFrameInfo(legacyHandle, (nint)(&legacyData), &legacyRetVal); 2302if (_legacy is not null) 2305int hrLocal = _legacy.GetCountOfInternalFrames(vmThread, &dacCount); 2318List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null; 2368if (_legacy is not null) 2372int hrLocal = _legacy.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle)); 2475if (_legacy is not null) 2478int hrLocal = _legacy.GetStackParameterSize(controlPC, &retValLocal); 2525if (_legacy is not null) 2528int hrLocal = _legacy.IsLeafFrame(vmThread, pContext, &resultLocal); 2553if (_legacy is not null) 2559int hrLocal = _legacy.GetContext(vmThread, pLocal); 2599if (_legacy is not null) 2602int hrLocal = _legacy.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal); 2630if (_legacy is not null) 2634int hrLocal = _legacy.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal); 2671if (_legacy is not null) 2674int hrLocal = _legacy.RequiresAlign8(thExact, &resultLocal); 2723if (_legacy is not null) 2726int hrLocal = _legacy.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal); 2790if (_legacy is not null) 2794int hrLocal = _legacy.GetILCodeAndSig(vmAssembly, functionToken, &bufferLocal, &sigLocal); 2860if (_legacy is not null) 2863int hrLocal = _legacy.GetNativeCodeInfo(vmAssembly, functionToken, &codeInfoLocal); 2940if (_legacy is not null) 2945int hrLocal = _legacy.GetNativeCodeInfoForAddr( 3007if (_legacy is not null) 3010int hrLocal = _legacy.IsValueType(vmTypeHandle, &resultLocal); 3034if (_legacy is not null) 3037int hrLocal = _legacy.HasTypeParams(vmTypeHandle, &resultLocal); 3054if (_legacy is not null) 3086if (_legacy is not null) 3093(pSize, pUser) => _legacy!.EnumerateClassFields(thExact, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 3107if (_legacy is not null) 3135if (_legacy is not null) 3142(pSize, pUser) => _legacy!.EnumerateInstantiationFields(vmAssembly, vmThExact, vmThApprox, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 3333if (_legacy is not null) 3336int hrLocal = _legacy.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, &dataLocal); 3362if (_legacy is not null) 3365int hrLocal = _legacy.GetObjectExpandedTypeInfo(boxed, addr, &dataLocal); 3452if (_legacy is not null) 3455int hrLocal = _legacy.GetTypeHandle(vmModule, metadataToken, &retValLocal); 3490if (_legacy is not null) 3493int hrLocal = _legacy.GetApproxTypeHandle(pTypeData, &vmLocal); 3544if (_legacy is not null) 3547int hrLocal = _legacy.GetExactTypeHandle(pTypeData, pArgInfo, &vmLocal); 3765if (_legacy is not null) 3770int hrLocal = _legacy.EnumerateMethodDescParams(vmMethodDesc, genericsToken, &cClassParamsLocal, debugCallbackPtr, 0); 3820if (_legacy is not null) 3823int hrLocal = _legacy.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal); 3847if (_legacy is not null) 3850int hrLocal = _legacy.GetCollectibleTypeStaticAddress(vmField, &retValLocal); 3923if (_legacy is not null) 3926int hrLocal = _legacy.GetEnCHangingFieldInfo(pEnCFieldInfo, &fieldDataLocal); 4020if (_legacy is not null) 4024int hrLocal = _legacy.EnumerateTypeHandleParams(vmTypeHandle, debugCallbackPtr, 0); 4094if (_legacy is not null) 4098int hrLocal = _legacy.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal); 4138if (_legacy is not null) 4141int hrLocal = _legacy.IsExceptionObject(vmObject, &resultLocal); 4194if (_legacy is not null) 4198int hrLocal = _legacy.EnumerateStackFramesFromException(vmObject, debugCallbackPtr, 0); 4231if (_legacy is not null) 4234int hrLocal = _legacy.IsRcw(vmObject, &resultLocal); 4287if (_legacy is not null) 4291int hrLocal = _legacy.EnumerateRcwCachedInterfacePointers(vmObject, debugCallbackPtr, 0); 4325if (_legacy is not null) 4329int hrLocal = _legacy.GetTypedByRefInfo(pTypedByRef, &objRefLocal, &typeLocal); 4367if (_legacy is not null) 4370int hrLocal = _legacy.GetStringData(objectAddress, &lengthLocal, &offsetLocal); 4420if (_legacy is not null) 4424int hrLocal = _legacy.GetArrayData(objectAddress, &isValidLocal, &arrayInfoLocal); 4484if (_legacy is not null) 4489int hrLocal = _legacy.GetBasicObjectInfo(objectAddress, &isValidLocal, &objSizeLocal, &objOffsetLocal, &typeDataLocal); 4520if (_legacy is not null) 4523int hrLocal = _legacy.GetDebuggerControlBlockAddress(&retValLocal); 4545if (_legacy is not null) 4548int hrLocal = _legacy.GetObjectFromRefPtr(ptr, &retValLocal); 4563if (_legacy is not null) 4566int hrLocal = _legacy.GetObject(ptr, &retValLocal); 4580if (_legacy is not null) 4583int hrLocal = _legacy.GetVmObjectHandle(handleAddress, &retValLocal); 4606if (_legacy is not null) 4609int hrLocal = _legacy.IsVmObjectHandleValid(vmHandle, &resultLocal); 4623if (_legacy is not null) 4626int hrLocal = _legacy.GetHandleAddressFromVmHandle(vmHandle, &retValLocal); 4667if (_legacy is not null) 4670int hrLocal = _legacy.GetThreadOwningMonitorLock(vmObject, &pRetValLocal); 4700if (_legacy is not null) 4703int hrLocal = _legacy.GetAttachStateFlags(&resultLocal); 4754if (_legacy is not null) 4760int hrLocal = _legacy.GetModuleMetaDataFileInfo(vmModule, &timeStampLocal, &imageSizeLocal, legacyHolder.Ptr, &resultLocal); 4797if (_legacy is not null) 4801int hrLocal = _legacy.IsThreadSuspendedOrHijacked(vmThread, resultLocalPtr); 4827if (_legacy is not null) 4830int hrLocal = _legacy.CreateHeapWalk(&legacyHandle); 4837_legacy.DeleteHeapWalk(legacyHandle); 4864if (_legacy is not null && legacyHandle != 0) 4866int hrLocal = _legacy.DeleteHeapWalk(legacyHandle); 4924if (_legacy is not null && walk.LegacyHandle != 0) 4931hrLocal = _legacy.WalkHeap(walk.LegacyHandle, count, objectsLocalPtr, &fetchedLocal); 5021if (_legacy is not null) 5025int hrLocal = _legacy.EnumerateHeapSegments(debugCallbackPtr, 0); 5102if (_legacy is not null) 5105int hrLocal = _legacy.IsValidObject(obj, &resultLocal); 5135if (_legacy is not null) 5138int hrLocal = _legacy.CreateRefWalk(&legacyHandle, walkStacks, handleWalkMask); 5143_legacy.DeleteRefWalk(legacyHandle); 5170if (_legacy is not null && legacyHandle != 0) 5172int hrLocal = _legacy.DeleteRefWalk(legacyHandle); 5219if (_legacy is not null && walk.LegacyHandle != 0 && count > 0) 5224int hrLocal = _legacy.WalkRefs(walk.LegacyHandle, count, legacyRefs, &legacyFetched); 5282if (_legacy is not null) 5285int hrLocal = _legacy.GetTypeID(obj, &resultLocal); 5313if (_legacy is not null) 5316int hrLocal = _legacy.GetTypeIDForType(vmTypeHandle, &resultLocal); 5452if (_legacy is not null) 5459int hrLocal = _legacy.GetObjectFields(id, celt, layout == null ? null : localFieldsPtr, &fetchedLocal); 5518if (_legacy is not null) 5521int hrLocal = _legacy.GetTypeLayout(id, &resultLocal); 5591if (_legacy is not null) 5594int hrLocal = _legacy.GetArrayLayout(id, &resultLocal); 5636if (_legacy is not null) 5639int hrLocal = _legacy.GetGCHeapInformation(&resultLocal); 5672if (_legacy is not null) 5675int hrLocal = _legacy.HasReadWriteMetadata(vmPEAssembly, pHasReadWriteMetadata is null ? null : &resultLocal); 5726if (_legacy is not null) 5729int hrLocal = _legacy.AreOptimizationsDisabled(vmModule, methodTk, &localPOptimizationsDisabled); 5783if (_legacy is not null) 5786int hrLocal = _legacy.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal); 5849if (_legacy is not null) 5853int hrLocal = _legacy.GetEnCILCodeAndSig(vmModule, methodTk, enCVersion, &bufferLocal, &sigLocal); 5892if (_legacy is not null) 5895int hrLocal = _legacy.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal); 5929if (_legacy is not null) 5932int hrLocal = _legacy.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal); 5974if (_legacy is not null) 5977int hrLocal = _legacy.GetILCodeVersionNodeData(ilCodeVersionNode, &dataLocal); 6003if (_legacy is not null) 6005int hrLocal = _legacy.EnableGCNotificationEvents(fEnable); 6031if (_legacy is not null) 6034int hrLocal = _legacy.IsDelegate(vmObject, &pResultLocal); 6087if (_legacy is not null) 6091int hrLocal = _legacy.GetDelegateFunctionData(delegateObject, &asmLocal, &methodDefLocal); 6126if (_legacy is not null) 6129int hrLocal = _legacy.GetDelegateTargetObject(delegateObject, &targetObjLocal); 6171if (_legacy is not null) 6174int hrLocal = _legacy.IsModuleMapped(pModule, &isModuleMappedLocal); 6197if (_legacy is not null) 6200int hrLocal = _legacy.MetadataUpdatesApplied(&resultLocal); 6233if (_legacy is not null) 6236int hrLocal = _legacy.GetAssemblyFromModule(vmModule, &assemblyLocal); 6263if (_legacy is not null) 6268int hrLocal = _legacy.ParseContinuation(continuationAddress, &diagnosticIPLocal, &nextLocal, &stateLocal); 6355if (_legacy is not null) 6359int hrLocal = _legacy.EnumerateAsyncLocals(vmMethod, codeAddr, state, debugCallbackPtr, 0); 6414if (_legacy is not null) 6417int hrLocal = _legacy.GetGenericArgTokenIndex(vmMethod, &indexLocal);
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
139hrLocal = _legacy!.GetNativeCodeSequencePointsAndVarInfo(