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