2 writes to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (2)
Dbi\DacDbiImpl.cs (2)
74_legacy = legacyObj as IDacDbiInterface; 94_legacy = null;
261 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (261)
Dbi\DacDbiImpl.cs (260)
82return _legacy is not null ? _legacy.FlushCache() : HResults.S_OK; 90ComObject? legacyComObject = (object?)_legacy as ComObject; 108return LegacyFallbackHelper.CanFallback() && _legacy is not null 109? _legacy.DacSetTargetConsistencyChecks(fEnableAsserts) 128if (_legacy is not null) 131int hrLocal = _legacy.IsLeftSideInitialized(&resultLocal); 155if (_legacy is not null) 158int hrLocal = _legacy.GetAppDomainId(vmAppDomain, &retValLocal); 181if (_legacy is not null) 183int hrLocal = _legacy.GetAppDomainFullName(vmAppDomain, pStrName); 207if (_legacy is not null) 210int hrLocal = _legacy.GetModuleSimpleName(vmModule, legacyHolder.Ptr); 248if (_legacy is not null) 251int hrLocal = _legacy.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal); 329if (resolved && _legacy is not null) 332int hrLocal = _legacy.ResolveTypeReference(pTypeRefInfo, &targetLocal); 380if (_legacy is not null) 383int hrLocal = _legacy.GetModulePath(vmModule, pStrFilename, &resultLocal); 422if (_legacy is not null) 425int hrLocal = _legacy.GetMetadata(vmModule, pTargetBuffer == null ? null : &pTargetBufferLocal); 460if (_legacy is not null) 463int hrLocal = _legacy.GetReadWriteMetadataSize(vmModule, &sizeLocal); 501if (_legacy is not null) 507hrLocal = _legacy.FillReadWriteMetadata(vmModule, pLocal, cbBuffer); 552if (_legacy is not null) 556int hrLocal = _legacy.GetSymbolsBuffer(vmModule, &bufferLocal, &formatLocal); 602if (_legacy is not null) 605int hrLocal = _legacy.GetModuleData(vmModule, &dataLocal); 646if (_legacy is not null) 650int hrLocal = _legacy.GetModuleForAssembly(vmAssembly, &moduleLocal, &isModuleLoadedLocal); 683if (_legacy is not null) 686int hrLocal = _legacy.IsManagedCode(address, &isManagedLocal); 720if (_legacy is not null) 724int hrLocal = _legacy.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal); 775if (_legacy is not null) 777int hrLocal = _legacy.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC); 789List<ulong>? cdacAssemblies = _legacy is not null ? new() : null; 820if (_legacy is not null && fpCallback != null) 826int hrLocal = _legacy.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 859if (_legacy is not null) 861int hrLocal = _legacy.RequestSyncAtEvent(); 881if (_legacy is not null) 883int hrLocal = _legacy.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC); 912if (_legacy is not null) 914int hrLocal = _legacy.MarkDebuggerAttachPending(); 944if (_legacy is not null) 946int hrLocal = _legacy.MarkDebuggerAttached(fAttached); 1024List<ulong>? cdacThreads = _legacy is not null ? new() : null; 1052if (_legacy is not null) 1056int hrLocal = _legacy.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle)); 1094if (_legacy is not null) 1097int hrLocal = _legacy.IsThreadMarkedDead(vmThread, &resultLocal); 1120if (_legacy is not null) 1123int hrLocal = _legacy.GetThreadHandle(vmThread, &retValLocal); 1150if (_legacy is not null) 1153int hrLocal = _legacy.GetThreadObject(vmThread, &retValLocal); 1182if (_legacy is not null) 1185int hrLocal = _legacy.GetThreadAllocInfo(vmThread, &allocInfoLocal); 1223if (_legacy is not null) 1225int hrLocal = _legacy.SetDebugState(vmThread, debugState); 1247if (_legacy is not null) 1250int hrLocal = _legacy.HasUnhandledException(vmThread, &resultLocal); 1289if (_legacy is not null) 1292int hrLocal = _legacy.GetUserState(vmThread, &retValLocal); 1335if (_legacy is not null) 1338int hrLocal = _legacy.GetPartialUserState(vmThread, &retValLocal); 1353if (_legacy is not null) 1356int hrLocal = _legacy.GetConnectionID(vmThread, &retValLocal); 1371if (_legacy is not null) 1374int hrLocal = _legacy.GetTaskID(vmThread, &retValLocal); 1401if (_legacy is not null) 1404int hrLocal = _legacy.TryGetVolatileOSThreadID(vmThread, &retValLocal); 1428if (_legacy is not null) 1431int hrLocal = _legacy.GetUniqueThreadID(vmThread, &retValLocal); 1462if (_legacy is not null) 1465int hrLocal = _legacy.GetCurrentException(vmThread, &retValLocal); 1512if (_legacy is not null) 1515int hrLocal = _legacy.GetObjectForCCW(ccwPtr, &retValLocal); 1539if (_legacy is not null) 1542int hrLocal = _legacy.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal); 1566if (_legacy is not null) 1569int hrLocal = _legacy.GetCurrentAppDomain(&retValLocal); 1603if (_legacy is not null) 1606int hrLocal = _legacy.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal); 1683if (_legacy is not null) 1728if (_legacy is not null) 1731int hrLocal = _legacy.GetManagedStoppedContext(vmThread, &pRetValLocal); 1810if (_legacy is not null && LegacyFallbackHelper.CanFallback()) 1818int hrLocal = _legacy.CreateStackWalk(vmThread, pLocal, &legacyHandle); 1834_legacy.DeleteStackWalk(legacyHandle); 1866if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1868int hrLocal = _legacy.DeleteStackWalk(legacyHandle); 1907if (_legacy is not null && legacyHandle != 0) 1913int hrLocal = _legacy.GetStackWalkCurrentContext(legacyHandle, pLocal); 1956if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 1958int hrLocal = _legacy.SetStackWalkCurrentContext(vmThread, legacyHandle, flag, pContext); 2002if (_legacy is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0) 2005int hrLocal = _legacy.UnwindStackWalkFrame(legacyHandle, &localResult); 2041if (_legacy is not null) 2043int hrLocal = _legacy.CheckContext(vmThread, pContext); 2120if (_legacy is not null && legacyHandle != 0) 2130int hrLocal = _legacy.GetStackWalkCurrentFrameInfo(legacyHandle, (nint)(&legacyData), &legacyRetVal); 2362if (_legacy is not null) 2365int hrLocal = _legacy.GetCountOfInternalFrames(vmThread, &dacCount); 2379List<Debugger_STRData>? cdacFrames = _legacy is not null ? new() : null; 2429if (_legacy is not null) 2433int hrLocal = _legacy.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle)); 2537if (_legacy is not null) 2540int hrLocal = _legacy.GetStackParameterSize(controlPC, &retValLocal); 2588if (_legacy is not null) 2591int hrLocal = _legacy.IsLeafFrame(vmThread, pContext, &resultLocal); 2617if (_legacy is not null) 2623int hrLocal = _legacy.GetContext(vmThread, pLocal); 2664if (_legacy is not null) 2667int hrLocal = _legacy.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal); 2696if (_legacy is not null) 2700int hrLocal = _legacy.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal); 2738if (_legacy is not null) 2741int hrLocal = _legacy.RequiresAlign8(thExact, &resultLocal); 2791if (_legacy is not null) 2794int hrLocal = _legacy.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal); 2859if (_legacy is not null) 2863int hrLocal = _legacy.GetILCodeAndSig(vmAssembly, functionToken, &bufferLocal, &sigLocal); 2930if (_legacy is not null) 2933int hrLocal = _legacy.GetNativeCodeInfo(vmAssembly, functionToken, &codeInfoLocal); 3011if (_legacy is not null) 3016int hrLocal = _legacy.GetNativeCodeInfoForAddr( 3079if (_legacy is not null) 3082int hrLocal = _legacy.IsValueType(vmTypeHandle, &resultLocal); 3107if (_legacy is not null) 3110int hrLocal = _legacy.HasTypeParams(vmTypeHandle, &resultLocal); 3128if (_legacy is not null) 3160if (_legacy is not null) 3167(pSize, pUser) => _legacy!.EnumerateClassFields(thExact, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 3182if (_legacy is not null) 3210if (_legacy is not null) 3217(pSize, pUser) => _legacy!.EnumerateInstantiationFields(vmAssembly, vmThExact, vmThApprox, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser)); 3409if (_legacy is not null) 3412int hrLocal = _legacy.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, &dataLocal); 3439if (_legacy is not null) 3442int hrLocal = _legacy.GetObjectExpandedTypeInfo(boxed, addr, &dataLocal); 3530if (_legacy is not null) 3533int hrLocal = _legacy.GetTypeHandle(vmModule, metadataToken, &retValLocal); 3569if (_legacy is not null) 3572int hrLocal = _legacy.GetApproxTypeHandle(pTypeData, &vmLocal); 3624if (_legacy is not null) 3627int hrLocal = _legacy.GetExactTypeHandle(pTypeData, pArgInfo, &vmLocal); 3846if (_legacy is not null) 3851int hrLocal = _legacy.EnumerateMethodDescParams(vmMethodDesc, genericsToken, &cClassParamsLocal, debugCallbackPtr, 0); 3902if (_legacy is not null) 3905int hrLocal = _legacy.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal); 3930if (_legacy is not null) 3933int hrLocal = _legacy.GetCollectibleTypeStaticAddress(vmField, &retValLocal); 4007if (_legacy is not null) 4010int hrLocal = _legacy.GetEnCHangingFieldInfo(pEnCFieldInfo, &fieldDataLocal); 4105if (_legacy is not null) 4109int hrLocal = _legacy.EnumerateTypeHandleParams(vmTypeHandle, debugCallbackPtr, 0); 4180if (_legacy is not null) 4184int hrLocal = _legacy.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal); 4225if (_legacy is not null) 4228int hrLocal = _legacy.IsExceptionObject(vmObject, &resultLocal); 4282if (_legacy is not null) 4286int hrLocal = _legacy.EnumerateStackFramesFromException(vmObject, debugCallbackPtr, 0); 4320if (_legacy is not null) 4323int hrLocal = _legacy.IsRcw(vmObject, &resultLocal); 4377if (_legacy is not null) 4381int hrLocal = _legacy.EnumerateRcwCachedInterfacePointers(vmObject, debugCallbackPtr, 0); 4416if (_legacy is not null) 4420int hrLocal = _legacy.GetTypedByRefInfo(pTypedByRef, &objRefLocal, &typeLocal); 4459if (_legacy is not null) 4462int hrLocal = _legacy.GetStringData(objectAddress, &lengthLocal, &offsetLocal); 4513if (_legacy is not null) 4517int hrLocal = _legacy.GetArrayData(objectAddress, &isValidLocal, &arrayInfoLocal); 4578if (_legacy is not null) 4583int hrLocal = _legacy.GetBasicObjectInfo(objectAddress, &isValidLocal, &objSizeLocal, &objOffsetLocal, &typeDataLocal); 4615if (_legacy is not null) 4618int hrLocal = _legacy.GetDebuggerControlBlockAddress(&retValLocal); 4641if (_legacy is not null) 4644int hrLocal = _legacy.GetObjectFromRefPtr(ptr, &retValLocal); 4660if (_legacy is not null) 4663int hrLocal = _legacy.GetObject(ptr, &retValLocal); 4678if (_legacy is not null) 4681int hrLocal = _legacy.GetVmObjectHandle(handleAddress, &retValLocal); 4705if (_legacy is not null) 4708int hrLocal = _legacy.IsVmObjectHandleValid(vmHandle, &resultLocal); 4723if (_legacy is not null) 4726int hrLocal = _legacy.GetHandleAddressFromVmHandle(vmHandle, &retValLocal); 4768if (_legacy is not null) 4771int hrLocal = _legacy.GetThreadOwningMonitorLock(vmObject, &pRetValLocal); 4807if (_legacy is not null) 4810int hrLocal = _legacy.GetAttachStateFlags(&resultLocal); 4862if (_legacy is not null) 4868int hrLocal = _legacy.GetModuleMetaDataFileInfo(vmModule, &timeStampLocal, &imageSizeLocal, legacyHolder.Ptr, &resultLocal); 4906if (_legacy is not null) 4910int hrLocal = _legacy.IsThreadSuspendedOrHijacked(vmThread, resultLocalPtr); 4937if (_legacy is not null) 4940int hrLocal = _legacy.CreateHeapWalk(&legacyHandle); 4947_legacy.DeleteHeapWalk(legacyHandle); 4975if (_legacy is not null && legacyHandle != 0) 4977int hrLocal = _legacy.DeleteHeapWalk(legacyHandle); 5036if (_legacy is not null && walk.LegacyHandle != 0) 5043hrLocal = _legacy.WalkHeap(walk.LegacyHandle, count, objectsLocalPtr, &fetchedLocal); 5134if (_legacy is not null) 5138int hrLocal = _legacy.EnumerateHeapSegments(debugCallbackPtr, 0); 5216if (_legacy is not null) 5219int hrLocal = _legacy.IsValidObject(obj, &resultLocal); 5250if (_legacy is not null) 5253int hrLocal = _legacy.CreateRefWalk(&legacyHandle, walkStacks, handleWalkMask); 5258_legacy.DeleteRefWalk(legacyHandle); 5286if (_legacy is not null && legacyHandle != 0) 5288int hrLocal = _legacy.DeleteRefWalk(legacyHandle); 5336if (_legacy is not null && walk.LegacyHandle != 0 && count > 0) 5341int hrLocal = _legacy.WalkRefs(walk.LegacyHandle, count, legacyRefs, &legacyFetched); 5400if (_legacy is not null) 5403int hrLocal = _legacy.GetTypeID(obj, &resultLocal); 5432if (_legacy is not null) 5435int hrLocal = _legacy.GetTypeIDForType(vmTypeHandle, &resultLocal); 5572if (_legacy is not null) 5579int hrLocal = _legacy.GetObjectFields(id, celt, layout == null ? null : localFieldsPtr, &fetchedLocal); 5639if (_legacy is not null) 5642int hrLocal = _legacy.GetTypeLayout(id, &resultLocal); 5713if (_legacy is not null) 5716int hrLocal = _legacy.GetArrayLayout(id, &resultLocal); 5759if (_legacy is not null) 5762int hrLocal = _legacy.GetGCHeapInformation(&resultLocal); 5796if (_legacy is not null) 5799int hrLocal = _legacy.HasReadWriteMetadata(vmPEAssembly, pHasReadWriteMetadata is null ? null : &resultLocal); 5851if (_legacy is not null) 5854int hrLocal = _legacy.AreOptimizationsDisabled(vmModule, methodTk, &localPOptimizationsDisabled); 5909if (_legacy is not null) 5912int hrLocal = _legacy.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal); 5976if (_legacy is not null) 5980int hrLocal = _legacy.GetEnCILCodeAndSig(vmModule, methodTk, enCVersion, &bufferLocal, &sigLocal); 6020if (_legacy is not null) 6023int hrLocal = _legacy.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal); 6058if (_legacy is not null) 6061int hrLocal = _legacy.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal); 6104if (_legacy is not null) 6107int hrLocal = _legacy.GetILCodeVersionNodeData(ilCodeVersionNode, &dataLocal); 6134if (_legacy is not null) 6136int hrLocal = _legacy.EnableGCNotificationEvents(fEnable); 6163if (_legacy is not null) 6166int hrLocal = _legacy.IsDelegate(vmObject, &pResultLocal); 6220if (_legacy is not null) 6224int hrLocal = _legacy.GetDelegateFunctionData(delegateObject, &asmLocal, &methodDefLocal); 6260if (_legacy is not null) 6263int hrLocal = _legacy.GetDelegateTargetObject(delegateObject, &targetObjLocal); 6306if (_legacy is not null) 6309int hrLocal = _legacy.IsModuleMapped(pModule, &isModuleMappedLocal); 6333if (_legacy is not null) 6336int hrLocal = _legacy.MetadataUpdatesApplied(&resultLocal); 6370if (_legacy is not null) 6373int hrLocal = _legacy.GetAssemblyFromModule(vmModule, &assemblyLocal); 6401if (_legacy is not null) 6406int hrLocal = _legacy.ParseContinuation(continuationAddress, &diagnosticIPLocal, &nextLocal, &stateLocal); 6494if (_legacy is not null) 6498int hrLocal = _legacy.EnumerateAsyncLocals(vmMethod, codeAddr, state, debugCallbackPtr, 0); 6554if (_legacy is not null) 6557int hrLocal = _legacy.GetGenericArgTokenIndex(vmMethod, &indexLocal);
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
139hrLocal = _legacy!.GetNativeCodeSequencePointsAndVarInfo(