1 write to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
65
_legacy
= legacyObj as IDacDbiInterface;
258 references to _legacy
Microsoft.Diagnostics.DataContractReader.Legacy (258)
Dbi\DacDbiImpl.cs (257)
71
return
_legacy
is not null ?
_legacy
.FlushCache() : HResults.S_OK;
75
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null
76
?
_legacy
.DacSetTargetConsistencyChecks(fEnableAsserts)
93
if (
_legacy
is not null)
96
int hrLocal =
_legacy
.IsLeftSideInitialized(&resultLocal);
119
if (
_legacy
is not null)
122
int hrLocal =
_legacy
.GetAppDomainId(vmAppDomain, &retValLocal);
144
if (
_legacy
is not null)
146
int hrLocal =
_legacy
.GetAppDomainFullName(vmAppDomain, pStrName);
169
if (
_legacy
is not null)
172
int hrLocal =
_legacy
.GetModuleSimpleName(vmModule, legacyHolder.Ptr);
209
if (
_legacy
is not null)
212
int hrLocal =
_legacy
.GetAssemblyPath(vmAssembly, pStrFilename, &resultLocal);
286
if (resolved &&
_legacy
is not null)
289
int hrLocal =
_legacy
.ResolveTypeReference(pTypeRefInfo, &targetLocal);
338
if (
_legacy
is not null)
341
int hrLocal =
_legacy
.GetModulePath(vmModule, pStrFilename, &resultLocal);
351
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null ?
_legacy
.GetMetadata(vmModule, pTargetBuffer) : HResults.E_NOTIMPL;
385
if (
_legacy
is not null)
389
int hrLocal =
_legacy
.GetSymbolsBuffer(vmModule, &bufferLocal, &formatLocal);
434
if (
_legacy
is not null)
437
int hrLocal =
_legacy
.GetModuleData(vmModule, &dataLocal);
477
if (
_legacy
is not null)
481
int hrLocal =
_legacy
.GetModuleForAssembly(vmAssembly, &moduleLocal, &isModuleLoadedLocal);
513
if (
_legacy
is not null)
516
int hrLocal =
_legacy
.IsManagedCode(address, &isManagedLocal);
549
if (
_legacy
is not null)
553
int hrLocal =
_legacy
.GetCompilerFlags(vmAssembly, &allowJITOptsLocal, &enableEnCLocal);
603
if (
_legacy
is not null)
605
int hrLocal =
_legacy
.SetCompilerFlags(vmAssembly, fAllowJitOpts, fEnableEnC);
616
List<ulong>? cdacAssemblies =
_legacy
is not null ? new() : null;
647
if (
_legacy
is not null && fpCallback != null)
653
int hrLocal =
_legacy
.EnumerateAssembliesInAppDomain(vmAppDomain, &CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
685
if (
_legacy
is not null)
687
int hrLocal =
_legacy
.RequestSyncAtEvent();
706
if (
_legacy
is not null)
708
int hrLocal =
_legacy
.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC);
736
if (
_legacy
is not null)
738
int hrLocal =
_legacy
.MarkDebuggerAttachPending();
767
if (
_legacy
is not null)
769
int hrLocal =
_legacy
.MarkDebuggerAttached(fAttached);
845
List<ulong>? cdacThreads =
_legacy
is not null ? new() : null;
873
if (
_legacy
is not null)
877
int hrLocal =
_legacy
.EnumerateThreads(&CollectEnumerationCallback, GCHandle.ToIntPtr(dacHandle));
914
if (
_legacy
is not null)
917
int hrLocal =
_legacy
.IsThreadMarkedDead(vmThread, &resultLocal);
939
if (
_legacy
is not null)
942
int hrLocal =
_legacy
.GetThreadHandle(vmThread, &retValLocal);
968
if (
_legacy
is not null)
971
int hrLocal =
_legacy
.GetThreadObject(vmThread, &retValLocal);
999
if (
_legacy
is not null)
1002
int hrLocal =
_legacy
.GetThreadAllocInfo(vmThread, &allocInfoLocal);
1039
if (
_legacy
is not null)
1041
int hrLocal =
_legacy
.SetDebugState(vmThread, debugState);
1062
if (
_legacy
is not null)
1065
int hrLocal =
_legacy
.HasUnhandledException(vmThread, &resultLocal);
1103
if (
_legacy
is not null)
1106
int hrLocal =
_legacy
.GetUserState(vmThread, &retValLocal);
1148
if (
_legacy
is not null)
1151
int hrLocal =
_legacy
.GetPartialUserState(vmThread, &retValLocal);
1165
if (
_legacy
is not null)
1168
int hrLocal =
_legacy
.GetConnectionID(vmThread, &retValLocal);
1182
if (
_legacy
is not null)
1185
int hrLocal =
_legacy
.GetTaskID(vmThread, &retValLocal);
1211
if (
_legacy
is not null)
1214
int hrLocal =
_legacy
.TryGetVolatileOSThreadID(vmThread, &retValLocal);
1237
if (
_legacy
is not null)
1240
int hrLocal =
_legacy
.GetUniqueThreadID(vmThread, &retValLocal);
1270
if (
_legacy
is not null)
1273
int hrLocal =
_legacy
.GetCurrentException(vmThread, &retValLocal);
1319
if (
_legacy
is not null)
1322
int hrLocal =
_legacy
.GetObjectForCCW(ccwPtr, &retValLocal);
1345
if (
_legacy
is not null)
1348
int hrLocal =
_legacy
.GetCurrentCustomDebuggerNotification(vmThread, &retValLocal);
1371
if (
_legacy
is not null)
1374
int hrLocal =
_legacy
.GetCurrentAppDomain(&retValLocal);
1404
if (
_legacy
is not null)
1407
int hrLocal =
_legacy
.ResolveAssembly(vmScope, tkAssemblyRef, &retValLocal);
1483
if (
_legacy
is not null)
1527
if (
_legacy
is not null)
1530
int hrLocal =
_legacy
.GetManagedStoppedContext(vmThread, &pRetValLocal);
1608
if (
_legacy
is not null && LegacyFallbackHelper.CanFallback())
1616
int hrLocal =
_legacy
.CreateStackWalk(vmThread, pLocal, &legacyHandle);
1632
_legacy
.DeleteStackWalk(legacyHandle);
1663
if (
_legacy
is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0)
1665
int hrLocal =
_legacy
.DeleteStackWalk(legacyHandle);
1715
if (
_legacy
is not null && legacyHandle != 0)
1721
int hrLocal =
_legacy
.GetStackWalkCurrentContext(legacyHandle, pLocal);
1763
if (
_legacy
is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0)
1765
int hrLocal =
_legacy
.SetStackWalkCurrentContext(vmThread, legacyHandle, flag, pContext);
1808
if (
_legacy
is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0)
1811
int hrLocal =
_legacy
.UnwindStackWalkFrame(legacyHandle, &localResult);
1846
if (
_legacy
is not null)
1848
int hrLocal =
_legacy
.CheckContext(vmThread, pContext);
1861
return
_legacy
is not null && LegacyFallbackHelper.CanFallback() && legacyHandle != 0
1862
?
_legacy
.GetStackWalkCurrentFrameInfo(legacyHandle, pFrameData, pRetVal)
1897
if (
_legacy
is not null)
1900
int hrLocal =
_legacy
.GetCountOfInternalFrames(vmThread, &dacCount);
1913
List<Debugger_STRData>? cdacFrames =
_legacy
is not null ? new() : null;
1963
if (
_legacy
is not null)
1967
int hrLocal =
_legacy
.EnumerateInternalFrames(vmThread, (delegate* unmanaged<Debugger_STRData*, void*, void>)&CollectStubFrameCallback, GCHandle.ToIntPtr(dacHandle));
2059
if (
_legacy
is not null)
2062
int hrLocal =
_legacy
.GetStackParameterSize(controlPC, &retValLocal);
2109
if (
_legacy
is not null)
2112
int hrLocal =
_legacy
.IsLeafFrame(vmThread, pContext, &resultLocal);
2137
if (
_legacy
is not null)
2143
int hrLocal =
_legacy
.GetContext(vmThread, pLocal);
2183
if (
_legacy
is not null)
2186
int hrLocal =
_legacy
.IsDiagnosticsHiddenOrLCGMethod(vmMethodDesc, &resultLocal);
2214
if (
_legacy
is not null)
2218
int hrLocal =
_legacy
.GetVarArgSig(VASigCookieAddr, &argBaseLocal, &retValLocal);
2255
if (
_legacy
is not null)
2258
int hrLocal =
_legacy
.RequiresAlign8(thExact, &resultLocal);
2307
if (
_legacy
is not null)
2310
int hrLocal =
_legacy
.ResolveExactGenericArgsToken(dwExactGenericArgsTokenIndex, rawToken, &retValLocal);
2370
if (
_legacy
is not null)
2374
int hrLocal =
_legacy
.GetILCodeAndSig(vmAssembly, functionToken, &bufferLocal, &sigLocal);
2388
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null ?
_legacy
.GetNativeCodeInfo(vmAssembly, functionToken, pJitManagerList) : HResults.E_NOTIMPL;
2391
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null ?
_legacy
.GetNativeCodeInfoForAddr(codeAddress, pCodeInfo, pVmModule, pFunctionToken) : HResults.E_NOTIMPL;
2408
if (
_legacy
is not null)
2411
int hrLocal =
_legacy
.IsValueType(vmTypeHandle, &resultLocal);
2435
if (
_legacy
is not null)
2438
int hrLocal =
_legacy
.HasTypeParams(vmTypeHandle, &resultLocal);
2455
if (
_legacy
is not null)
2490
if (
_legacy
is not null)
2497
(pSize, pUser) =>
_legacy
!.EnumerateClassFields(thExact, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser));
2511
if (
_legacy
is not null)
2539
if (
_legacy
is not null)
2546
(pSize, pUser) =>
_legacy
!.EnumerateInstantiationFields(vmAssembly, vmThExact, vmThApprox, pSize, (delegate* unmanaged<FieldData*, void*, void>)&CollectFieldDataCallback, pUser));
2737
if (
_legacy
is not null)
2740
int hrLocal =
_legacy
.TypeHandleToExpandedTypeInfo(boxed, vmTypeHandle, &dataLocal);
2766
if (
_legacy
is not null)
2769
int hrLocal =
_legacy
.GetObjectExpandedTypeInfo(boxed, addr, &dataLocal);
2857
if (
_legacy
is not null)
2860
int hrLocal =
_legacy
.GetTypeHandle(vmModule, metadataToken, &retValLocal);
2895
if (
_legacy
is not null)
2898
int hrLocal =
_legacy
.GetApproxTypeHandle(pTypeData, &vmLocal);
2949
if (
_legacy
is not null)
2952
int hrLocal =
_legacy
.GetExactTypeHandle(pTypeData, pArgInfo, &vmLocal);
3166
if (
_legacy
is not null)
3171
int hrLocal =
_legacy
.EnumerateMethodDescParams(vmMethodDesc, genericsToken, &cClassParamsLocal, debugCallbackPtr, 0);
3221
if (
_legacy
is not null)
3224
int hrLocal =
_legacy
.GetThreadStaticAddress(vmField, vmRuntimeThread, &retValLocal);
3248
if (
_legacy
is not null)
3251
int hrLocal =
_legacy
.GetCollectibleTypeStaticAddress(vmField, &retValLocal);
3321
if (
_legacy
is not null)
3324
int hrLocal =
_legacy
.GetEnCHangingFieldInfo(pEnCFieldInfo, &fieldDataLocal);
3419
if (
_legacy
is not null)
3423
int hrLocal =
_legacy
.EnumerateTypeHandleParams(vmTypeHandle, debugCallbackPtr, 0);
3498
if (
_legacy
is not null)
3502
int hrLocal =
_legacy
.GetSimpleType(simpleType, &metadataTokenLocal, &vmModuleLocal);
3542
if (
_legacy
is not null)
3545
int hrLocal =
_legacy
.IsExceptionObject(vmObject, &resultLocal);
3598
if (
_legacy
is not null)
3602
int hrLocal =
_legacy
.EnumerateStackFramesFromException(vmObject, debugCallbackPtr, 0);
3635
if (
_legacy
is not null)
3638
int hrLocal =
_legacy
.IsRcw(vmObject, &resultLocal);
3691
if (
_legacy
is not null)
3695
int hrLocal =
_legacy
.EnumerateRcwCachedInterfacePointers(vmObject, debugCallbackPtr, 0);
3729
if (
_legacy
is not null)
3733
int hrLocal =
_legacy
.GetTypedByRefInfo(pTypedByRef, &objRefLocal, &typeLocal);
3771
if (
_legacy
is not null)
3774
int hrLocal =
_legacy
.GetStringData(objectAddress, &lengthLocal, &offsetLocal);
3824
if (
_legacy
is not null)
3828
int hrLocal =
_legacy
.GetArrayData(objectAddress, &isValidLocal, &arrayInfoLocal);
3889
if (
_legacy
is not null)
3894
int hrLocal =
_legacy
.GetBasicObjectInfo(objectAddress, &isValidLocal, &objSizeLocal, &objOffsetLocal, &typeDataLocal);
3925
if (
_legacy
is not null)
3928
int hrLocal =
_legacy
.GetDebuggerControlBlockAddress(&retValLocal);
3950
if (
_legacy
is not null)
3953
int hrLocal =
_legacy
.GetObjectFromRefPtr(ptr, &retValLocal);
3968
if (
_legacy
is not null)
3971
int hrLocal =
_legacy
.GetObject(ptr, &retValLocal);
3985
if (
_legacy
is not null)
3988
int hrLocal =
_legacy
.GetVmObjectHandle(handleAddress, &retValLocal);
4011
if (
_legacy
is not null)
4014
int hrLocal =
_legacy
.IsVmObjectHandleValid(vmHandle, &resultLocal);
4028
if (
_legacy
is not null)
4031
int hrLocal =
_legacy
.GetHandleAddressFromVmHandle(vmHandle, &retValLocal);
4072
if (
_legacy
is not null)
4075
int hrLocal =
_legacy
.GetThreadOwningMonitorLock(vmObject, &pRetValLocal);
4105
if (
_legacy
is not null)
4108
int hrLocal =
_legacy
.GetAttachStateFlags(&resultLocal);
4159
if (
_legacy
is not null)
4165
int hrLocal =
_legacy
.GetModuleMetaDataFileInfo(vmModule, &timeStampLocal, &imageSizeLocal, legacyHolder.Ptr, &resultLocal);
4185
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null ?
_legacy
.IsThreadSuspendedOrHijacked(vmThread, pResult) : HResults.E_NOTIMPL;
4204
if (
_legacy
is not null)
4207
int hrLocal =
_legacy
.CreateHeapWalk(&legacyHandle);
4214
_legacy
.DeleteHeapWalk(legacyHandle);
4241
if (
_legacy
is not null && legacyHandle != 0)
4243
int hrLocal =
_legacy
.DeleteHeapWalk(legacyHandle);
4301
if (
_legacy
is not null && walk.LegacyHandle != 0)
4308
hrLocal =
_legacy
.WalkHeap(walk.LegacyHandle, count, objectsLocalPtr, &fetchedLocal);
4398
if (
_legacy
is not null)
4402
int hrLocal =
_legacy
.EnumerateHeapSegments(debugCallbackPtr, 0);
4479
if (
_legacy
is not null)
4482
int hrLocal =
_legacy
.IsValidObject(obj, &resultLocal);
4512
if (
_legacy
is not null)
4515
int hrLocal =
_legacy
.CreateRefWalk(&legacyHandle, walkStacks, handleWalkMask);
4520
_legacy
.DeleteRefWalk(legacyHandle);
4547
if (
_legacy
is not null && legacyHandle != 0)
4549
int hrLocal =
_legacy
.DeleteRefWalk(legacyHandle);
4596
if (
_legacy
is not null && walk.LegacyHandle != 0 && count > 0)
4601
int hrLocal =
_legacy
.WalkRefs(walk.LegacyHandle, count, legacyRefs, &legacyFetched);
4659
if (
_legacy
is not null)
4662
int hrLocal =
_legacy
.GetTypeID(obj, &resultLocal);
4690
if (
_legacy
is not null)
4693
int hrLocal =
_legacy
.GetTypeIDForType(vmTypeHandle, &resultLocal);
4829
if (
_legacy
is not null)
4836
int hrLocal =
_legacy
.GetObjectFields(id, celt, layout == null ? null : localFieldsPtr, &fetchedLocal);
4895
if (
_legacy
is not null)
4898
int hrLocal =
_legacy
.GetTypeLayout(id, &resultLocal);
4968
if (
_legacy
is not null)
4971
int hrLocal =
_legacy
.GetArrayLayout(id, &resultLocal);
5013
if (
_legacy
is not null)
5016
int hrLocal =
_legacy
.GetGCHeapInformation(&resultLocal);
5033
=> LegacyFallbackHelper.CanFallback() &&
_legacy
is not null ?
_legacy
.GetPEFileMDInternalRW(vmPEAssembly, pAddrMDInternalRW) : HResults.E_NOTIMPL;
5074
if (
_legacy
is not null)
5077
int hrLocal =
_legacy
.AreOptimizationsDisabled(vmModule, methodTk, &localPOptimizationsDisabled);
5103
if (
_legacy
is not null)
5106
int hrLocal =
_legacy
.GetDefinesBitField(&resultLocal);
5132
if (
_legacy
is not null)
5135
int hrLocal =
_legacy
.GetMDStructuresVersion(&resultLocal);
5185
if (
_legacy
is not null)
5188
int hrLocal =
_legacy
.GetActiveRejitILCodeVersionNode(vmModule, methodTk, &resultLocal);
5223
if (
_legacy
is not null)
5226
int hrLocal =
_legacy
.GetNativeCodeVersionNode(vmMethod, codeStartAddress, &resultLocal);
5260
if (
_legacy
is not null)
5263
int hrLocal =
_legacy
.GetILCodeVersionNode(vmNativeCodeVersionNode, &resultLocal);
5305
if (
_legacy
is not null)
5308
int hrLocal =
_legacy
.GetILCodeVersionNodeData(ilCodeVersionNode, &dataLocal);
5334
if (
_legacy
is not null)
5336
int hrLocal =
_legacy
.EnableGCNotificationEvents(fEnable);
5362
if (
_legacy
is not null)
5365
int hrLocal =
_legacy
.IsDelegate(vmObject, &pResultLocal);
5418
if (
_legacy
is not null)
5422
int hrLocal =
_legacy
.GetDelegateFunctionData(delegateObject, &asmLocal, &methodDefLocal);
5457
if (
_legacy
is not null)
5460
int hrLocal =
_legacy
.GetDelegateTargetObject(delegateObject, &targetObjLocal);
5502
if (
_legacy
is not null)
5505
int hrLocal =
_legacy
.IsModuleMapped(pModule, &isModuleMappedLocal);
5528
if (
_legacy
is not null)
5531
int hrLocal =
_legacy
.MetadataUpdatesApplied(&resultLocal);
5564
if (
_legacy
is not null)
5567
int hrLocal =
_legacy
.GetAssemblyFromModule(vmModule, &assemblyLocal);
5594
if (
_legacy
is not null)
5599
int hrLocal =
_legacy
.ParseContinuation(continuationAddress, &diagnosticIPLocal, &nextLocal, &stateLocal);
5686
if (
_legacy
is not null)
5690
int hrLocal =
_legacy
.EnumerateAsyncLocals(vmMethod, codeAddr, state, debugCallbackPtr, 0);
5745
if (
_legacy
is not null)
5748
int hrLocal =
_legacy
.GetGenericArgTokenIndex(vmMethod, &indexLocal);
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
139
hrLocal =
_legacy
!.GetNativeCodeSequencePointsAndVarInfo(