1 write to _target
Microsoft.Diagnostics.DataContractReader.Legacy (1)
Dbi\DacDbiImpl.cs (1)
64
_target
= target;
195 references to _target
Microsoft.Diagnostics.DataContractReader.Legacy (195)
Dbi\DacDbiImpl.cs (194)
53
if (!
_target
.TryReadGlobalPointer(Constants.Globals.ProfilerControlBlock, out TargetPointer? profControlBlockAddress))
56
Target.TypeInfo type =
_target
.GetTypeInfo(DataType.ProfControlBlock);
57
TargetPointer mainProfInterface =
_target
.ReadPointerField(profControlBlockAddress.Value, type, "MainProfilerProfInterface");
58
int notificationCount =
_target
.ReadField<int>(profControlBlockAddress.Value, type, "NotificationProfilerCount");
70
_target
.Flush(FlushScope.All);
85
*pResult =
_target
.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data) && data.IsLeftSideInitialized ? Interop.BOOL.TRUE : Interop.BOOL.FALSE;
136
string name =
_target
.Contracts.Loader.GetAppDomainFriendlyName();
159
Contracts.ILoader loader =
_target
.Contracts.Loader;
191
Contracts.ILoader loader =
_target
.Contracts.Loader;
231
Contracts.ILoader loader =
_target
.Contracts.Loader;
246
Contracts.IEcmaMetadata ecmaMetadata =
_target
.Contracts.EcmaMetadata;
253
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
307
Contracts.ILoader loader =
_target
.Contracts.Loader;
370
Contracts.ILoader loader =
_target
.Contracts.Loader;
413
Contracts.ILoader loader =
_target
.Contracts.Loader;
464
Contracts.ILoader loader =
_target
.Contracts.Loader;
502
IExecutionManager eman =
_target
.Contracts.ExecutionManager;
503
if (
_target
.TryRead(address, out byte _) && eman.GetCodeBlockHandle(address) is not null)
534
Contracts.ILoader loader =
_target
.Contracts.Loader;
570
Contracts.ILoader loader =
_target
.Contracts.Loader;
630
Contracts.ILoader loader =
_target
.Contracts.Loader;
678
_target
.Contracts.Debugger.RequestSyncAtEvent();
699
_target
.Contracts.Debugger.SetSendExceptionsOutsideOfJMC(sendExceptionsOutsideOfJMC != Interop.BOOL.FALSE);
720
Contracts.IDebugger debugger =
_target
.Contracts.Debugger;
751
Contracts.IDebugger debugger =
_target
.Contracts.Debugger;
799
IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
801
if (!
_target
.TryGetThreadContext(dwThreadId, ctx.AllContextFlags, contextBuffer))
815
int recordSize = ExceptionRecordFullSize(
_target
.PointerSize);
820
TargetPointer espContext =
_target
.Contracts.Debugger.PrepareExceptionHijack(
831
if (!
_target
.TrySetThreadContext(dwThreadId, contextBuffer))
851
Contracts.IThread threadContract =
_target
.Contracts.Thread;
906
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
931
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
957
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
986
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPtr);
987
_target
.Contracts.Thread.GetThreadAllocContext(threadPtr, out long allocBytes, out long allocBytesLoh);
1023
_target
.Contracts.Thread.SetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend);
1027
_target
.Contracts.Thread.ResetDebuggerControlledThreadState(threadPtr, Contracts.DebuggerControlledThreadState.UserSuspend);
1054
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1088
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPtr);
1090
IPlatformAgnosticContext context = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1091
byte[] contextBytes =
_target
.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, context.FullContextFlags);
1093
if (!
_target
.Contracts.ExecutionManager.IsGcSafe(context.InstructionPointer))
1122
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(threadPtr);
1200
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1229
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1256
TargetPointer exceptionHandle =
_target
.Contracts.Thread.GetCurrentExceptionHandle(threadPtr);
1259
ThreadData data =
_target
.Contracts.Thread.GetThreadData(threadPtr);
1292
if (
_target
.Contracts.TryGetContract<IComWrappers>(out IComWrappers? comWrappers))
1297
comWrappersSuccess =
_target
.TryReadPointer(managedObjectWrapper, out objectHandle);
1301
if (!comWrappersSuccess &&
_target
.Contracts.TryGetContract<IBuiltInCOM>(out IBuiltInCOM? builtInCOM))
1337
Contracts.ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1363
TargetPointer defaultAppDomain =
_target
.Contracts.Loader.GetAppDomain();
1389
Contracts.ILoader loader =
_target
.Contracts.Loader;
1436
Contracts.IDebugInfo debugInfo =
_target
.Contracts.DebugInfo;
1501
Contracts.IThread threadContract =
_target
.Contracts.Thread;
1513
IStackWalk sw =
_target
.Contracts.StackWalk;
1541
uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(
_target
).Size;
1563
IPlatformAgnosticContext cdacCtx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1564
IPlatformAgnosticContext dacCtx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1593
IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1595
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
1596
byte[] seedContext =
_target
.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags);
1599
handleData = new StackWalkHandleData(
_target
.Contracts.StackWalk, threadData);
1610
uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(
_target
).Size;
1680
uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(
_target
).Size;
1690
IStackWalk sw =
_target
.Contracts.StackWalk;
1694
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
1697
IPlatformAgnosticContext stripped = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1828
IPlatformAgnosticContext ctx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
1833
_target
.Contracts.Thread.GetStackLimitData(new TargetPointer(vmThread), out TargetPointer stackBase, out TargetPointer stackLimit, out _);
1884
IStackWalk stackwalk =
_target
.Contracts.StackWalk;
1918
TargetPointer currentAppDomain =
_target
.Contracts.Loader.GetAppDomain();
1919
IStackWalk stackwalk =
_target
.Contracts.StackWalk;
2008
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2020
ILoader loader =
_target
.Contracts.Loader;
2048
IExecutionManager eman =
_target
.Contracts.ExecutionManager;
2090
IPlatformAgnosticContext leafCtx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
2092
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
2093
byte[] leafContext =
_target
.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.None, allFlags);
2097
IPlatformAgnosticContext givenCtx = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
2126
uint allFlags = IPlatformAgnosticContext.GetContextForPlatform(
_target
).AllContextFlags;
2127
ThreadData threadData =
_target
.Contracts.Thread.GetThreadData(new TargetPointer(vmThread));
2128
byte[] context =
_target
.Contracts.StackWalk.GetContext(threadData, ThreadContextSource.Debugger, allFlags);
2139
uint contextSize = IPlatformAgnosticContext.GetContextForPlatform(
_target
).Size;
2148
IPlatformAgnosticContext contextStruct = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
2149
IPlatformAgnosticContext localContextStruct = IPlatformAgnosticContext.GetContextForPlatform(
_target
);
2167
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2202
Contracts.ISignature signature =
_target
.Contracts.Signature;
2235
RuntimeInfoArchitecture arch =
_target
.Contracts.RuntimeInfo.GetTargetArchitecture();
2241
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2287
*pRetVal =
_target
.Contracts.Object.GetMethodTableAddress(new TargetPointer(rawToken)).Value;
2326
ILoader loader =
_target
.Contracts.Loader;
2329
MetadataReader mdReader =
_target
.Contracts.EcmaMetadata.GetMetadata(moduleHandle)
2342
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2353
int headerSize = HeaderReaderHelpers.GetHeaderSize(
_target
, headerPtr);
2354
int codeSize = HeaderReaderHelpers.GetCodeSize(
_target
, headerPtr);
2356
if (HeaderReaderHelpers.TryGetLocalVarSigToken(
_target
, headerPtr, out int localToken) && localToken != 0)
2399
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2426
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2464
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2520
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2570
IRuntimeMutableTypeSystem? mts =
_target
.Contracts.TryGetContract<IRuntimeMutableTypeSystem>(out IRuntimeMutableTypeSystem enc) ? enc : null;
2728
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2756
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2757
TargetPointer mtAddr =
_target
.Contracts.Object.GetMethodTableAddress(new TargetPointer(addr));
2834
Contracts.ILoader loader =
_target
.Contracts.Loader;
2877
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
2884
TypeDataWalk walk = new TypeDataWalk(
_target
, rts, canonTh, pTypeData->m_pList, (uint)pTypeData->m_nEntries);
2916
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3067
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3206
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3239
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3265
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3266
IRuntimeMutableTypeSystem mrts =
_target
.Contracts.RuntimeMutableTypeSystem;
3267
Contracts.ILoader loader =
_target
.Contracts.Loader;
3366
ILoader loader =
_target
.Contracts.Loader;
3367
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3399
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3476
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3520
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3522
TargetPointer parentMT =
_target
.Contracts.Object.GetMethodTableAddress(objectAddress);
3579
ulong vmAppDomain =
_target
.Contracts.Loader.GetAppDomain().Value;
3581
IException exceptionContract =
_target
.Contracts.Exception;
3626
IObject obj =
_target
.Contracts.Object;
3670
IObject obj =
_target
.Contracts.Object;
3674
IBuiltInCOM builtInCom =
_target
.Contracts.BuiltInCOM;
3717
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3755
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3756
TargetPointer mtAddr =
_target
.Contracts.Object.GetMethodTableAddress(objectAddress);
3762
_target
.Contracts.Object.GetStringData(objectAddress, out uint length, out uint offset);
3793
IObject objectContract =
_target
.Contracts.Object;
3794
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3857
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
3862
TargetPointer mt =
_target
.Contracts.Object.GetMethodTableAddress(objectAddress);
3873
*pObjOffsetToVars = (uint)
_target
.GetTypeInfo(DataType.Object).Size!.Value;
3874
*pObjSize = (uint)
_target
.Contracts.Object.GetSize(objectAddress);
3918
*pRetVal =
_target
.Contracts.Debugger.GetDebuggerControlBlockAddress().Value;
3943
*pRetVal =
_target
.ReadPointer(new TargetPointer(ptr)).Value;
4003
TargetPointer obj =
_target
.ReadPointer(new TargetPointer(vmHandle));
4049
TargetPointer syncBlock =
_target
.Contracts.Object.GetSyncBlockAddress(vmObject);
4051
if (syncBlock == TargetPointer.Null || !
_target
.Contracts.SyncBlock.TryGetLockInfo(syncBlock, out threadId, out recursionCount))
4057
TargetPointer threadPtr =
_target
.Contracts.Thread.IdToThread(threadId);
4097
*pRetVal =
_target
.Contracts.Debugger.GetAttachStateFlags();
4131
Contracts.ILoader loader =
_target
.Contracts.Loader;
4196
walk = new HeapWalk(
_target
);
4353
IGC gc =
_target
.Contracts.GC;
4462
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
4463
TargetPointer mt =
_target
.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj));
4504
walk = new RefWalk(
_target
, walkStacks != Interop.BOOL.FALSE, handleWalkMask);
4649
TargetPointer mt =
_target
.Contracts.Object.GetMethodTableAddress(new TargetPointer(obj));
4718
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
4754
uint firstFieldOffset = isReferenceType ?
_target
.GetTypeInfo(DataType.Object).Size!.Value : 0;
4758
IEcmaMetadata ecmaMetadataContract =
_target
.Contracts.EcmaMetadata;
4759
ISignature signature =
_target
.Contracts.Signature;
4774
Contracts.ModuleHandle enclosingModuleHandle =
_target
.Contracts.Loader.GetModuleHandleFromModulePtr(enclosingModulePtr);
4869
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
4887
pLayout->boxOffset = rts.IsCorElementTypeObjRef(componentType) ? 0u : (uint)
_target
.PointerSize;
4925
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
4927
uint pointerSize = (uint)
_target
.PointerSize;
4952
Target.TypeInfo objectHeaderTypeInfo =
_target
.GetTypeInfo(DataType.ObjectHeader);
4997
Contracts.IGC gc =
_target
.Contracts.GC;
5000
pHeapInfo->pointerSize = (uint)
_target
.PointerSize;
5050
if (
_target
.Contracts.TryGetContract<IReJIT>(out IReJIT rejit))
5052
ILoader loader =
_target
.Contracts.Loader;
5059
ICodeVersions codeVersions =
_target
.Contracts.CodeVersions;
5093
if (!
_target
.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data))
5122
if (!
_target
.Contracts.Debugger.TryGetDebuggerData(out Contracts.DebuggerData data))
5155
if (!
_target
.Contracts.TryGetContract<IReJIT>(out IReJIT rejit))
5158
ILoader loader =
_target
.Contracts.Loader;
5169
ICodeVersions codeVersions =
_target
.Contracts.CodeVersions;
5209
ICodeVersions codeVersions =
_target
.Contracts.CodeVersions;
5246
ICodeVersions codeVersions =
_target
.Contracts.CodeVersions;
5281
if (
_target
.Contracts.TryGetContract<IReJIT>(out _))
5283
ICodeVersions codeVersions =
_target
.Contracts.CodeVersions;
5327
_target
.Contracts.Debugger.EnableGCNotificationEvents(fEnable != Interop.BOOL.FALSE);
5386
DelegateInfo delegateInfo =
_target
.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject));
5395
IExecutionManager eman =
_target
.Contracts.ExecutionManager;
5403
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
5410
Contracts.ModuleHandle moduleHandle =
_target
.Contracts.Loader.GetModuleHandleFromModulePtr(modulePtr);
5411
*ppFunctionAssembly =
_target
.Contracts.Loader.GetAssembly(moduleHandle).Value;
5444
DelegateInfo delegateInfo =
_target
.Contracts.Object.GetDelegateInfo(new TargetPointer(delegateObject));
5471
TargetPointer mt =
_target
.Contracts.Object.GetMethodTableAddress(vmObject);
5472
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
5489
Contracts.ILoader loader =
_target
.Contracts.Loader;
5520
*pResult =
_target
.Contracts.Debugger.MetadataUpdatesApplied() ? Interop.BOOL.TRUE : Interop.BOOL.FALSE;
5554
Contracts.ILoader loader =
_target
.Contracts.Loader;
5584
ContinuationInfo info =
_target
.Contracts.Object.GetContinuationInfo(new TargetPointer(continuationAddress));
5640
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
5648
Contracts.ICodeVersions cv =
_target
.Contracts.CodeVersions;
5659
IReadOnlyList<AsyncSuspensionInfo> suspensionPoints =
_target
.Contracts.DebugInfo.GetAsyncSuspensionPoints(pCode);
5721
Contracts.IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;
5909
Contracts.ILoader loader =
_target
.Contracts.Loader;
5965
Contracts.ILoader loader =
_target
.Contracts.Loader;
Dbi\DacDbiImpl.NativeCodeInfo.cs (1)
19
IRuntimeTypeSystem rts =
_target
.Contracts.RuntimeTypeSystem;