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