44 instantiations of TargetCodePointer
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorTarget.cs (4)
700return new TargetCodePointer(Read<uint>(address)); 704return new TargetCodePointer(Read<ulong>(address)); 716value = new TargetCodePointer(val); 724value = new TargetCodePointer(val);
Microsoft.Diagnostics.DataContractReader.Abstractions (2)
TargetCodePointer.cs (2)
9public static TargetCodePointer Null = new(0); 14public static implicit operator TargetCodePointer(ulong v) => new TargetCodePointer(v);
Microsoft.Diagnostics.DataContractReader.Contracts (28)
CodePointerUtils.cs (3)
25return new TargetCodePointer(address.Value | Arm32ThumbBit); 28return new TargetCodePointer(address.Value); 51return new TargetCodePointer(returnAddress.Value & ~metadata.GetPointerAuthenticationMask());
Contracts\Debugger\Debugger_1.cs (1)
333ctx.InstructionPointer = new TargetCodePointer(pfnHijackFunction.Value);
Contracts\ExecutionManager\ExecutionManagerCore.cs (5)
389new TargetCodePointer(range.Data.RangeBegin + beginAddress), _target); 481return new TargetCodePointer(interpreterCode); 499? new TargetCodePointer(virtualIP) 507if (((IExecutionManager)this).GetCodeKind(new TargetCodePointer(startAddress.Value)) == CodeKind.Interpreter) 537TargetCodePointer filterAddress = new(info.StartAddress.Value + filterOffset);
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (3)
172TargetCodePointer current = new(heapListNode.EndAddress.Value); 194current = new TargetCodePointer(codeStart.Value - 1); 245TargetPointer codeStart = FindMethodCode(rangeSection, new TargetCodePointer(codeInfoHandle.Address));
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (1)
117TargetPointer codeStart = FindMethodCode(rangeSection, new TargetCodePointer(codeInfoHandle.Address));
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (2)
55new TargetCodePointer(codeBase.Value + functionBeginAddress), Target); 64new TargetCodePointer(codeBase.Value + _runtimeFunctions.GetBeginAddress(coldFunction)), Target);
Contracts\PrecodeStubs_1.cs (1)
137: new TargetCodePointer(precodeData.ByteCodeAddr);
Contracts\StackWalk\Context\AMD64Context.cs (1)
50readonly get => new(Rip);
Contracts\StackWalk\Context\ARM64\ARM64Unwinder.cs (1)
766context.Lr = CodePointerUtils.StripPointerAuthentiationFromReturnAddress(new TargetCodePointer(context.Lr), _target).Value;
Contracts\StackWalk\Context\ARM64Context.cs (1)
56readonly get => new(Pc);
Contracts\StackWalk\Context\ARMContext.cs (1)
49readonly get => new(Pc);
Contracts\StackWalk\Context\LoongArch64Context.cs (1)
54readonly get => new(Pc);
Contracts\StackWalk\Context\RISCV64Context.cs (1)
54readonly get => new(Pc);
Contracts\StackWalk\Context\Wasm\WasmUnwinder.cs (1)
153return new TargetCodePointer(baseVirtualIP + functionLocalVirtualIP);
Contracts\StackWalk\Context\WasmContext.cs (1)
68readonly get => new(_interpreterIP);
Contracts\StackWalk\Context\X86Context.cs (1)
62readonly get => new(Eip);
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (3)
459returnAddress = new TargetCodePointer((uint)tb.ReturnAddress - X86FrameHandler.CallInstructionSize); 747context.InstructionPointer = new TargetCodePointer((ulong)topContextFrame.Ip); 805context.InstructionPointer = new TargetCodePointer((ulong)parentFrame.Ip);
Microsoft.Diagnostics.DataContractReader.Legacy (10)
ConversionExtensions.cs (2)
73return new TargetCodePointer(address); 82return new TargetCodePointer((uint)address);
Dbi\DacDbiImpl.cs (6)
1663TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2571if (eman.GetCodeBlockHandle(new TargetCodePointer(controlPC)) is not CodeBlockHandle cbh) 3026code = new TargetCodePointer(code.ToAddress(_target).Value); 3051NativeCodeVersionHandle nativeCodeVersion = codeVersions.GetNativeCodeVersionForIP(new TargetCodePointer(codeStart.Value)); 6056TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6508NativeCodeVersionHandle ncvh = cv.GetNativeCodeVersionForIP(new TargetCodePointer(codeAddr));
EnumMemory\ObjectCollector.cs (1)
160_methods.CaptureMethod(frame.MethodDesc, new TargetCodePointer(frame.Ip.Value));
SOSDacImpl.IXCLRDataProcess.cs (1)
319TargetPointer methodDesc = eman.NonVirtualEntry2MethodDesc(new TargetCodePointer(entryPoint.Value));
294 references to TargetCodePointer
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
695public override TargetCodePointer ReadCodePointer(ulong address) 709public override bool TryReadCodePointer(ulong address, out TargetCodePointer value)
Microsoft.Diagnostics.DataContractReader.Abstractions (43)
Contracts\Extensions\ICodeVersionsExtensions.cs (4)
14public static TargetCodePointer GetNativeCodeAnyVersion(this ICodeVersions cv, TargetPointer methodDesc) 20if (cv.GetNativeCode(nativeCodeVersionHandle) != TargetCodePointer.Null) 26return TargetCodePointer.Null; 30=> cv.GetNativeCodeAnyVersion(methodDesc) != TargetCodePointer.Null;
Contracts\IAuxiliarySymbols.cs (1)
13IEnumerable<(TargetCodePointer Address, string Name)> EnumerateAuxiliarySymbols() => throw new NotImplementedException();
Contracts\ICodeVersions.cs (2)
28public virtual NativeCodeVersionHandle GetNativeCodeVersionForIP(TargetCodePointer ip) => throw new NotImplementedException(); 32public virtual TargetCodePointer GetNativeCode(NativeCodeVersionHandle codeVersionHandle) => throw new NotImplementedException();
Contracts\IDebugger.cs (1)
30HijackKind GetHijackKind(TargetCodePointer controlPC) => throw new NotImplementedException();
Contracts\IDebugInfo.cs (4)
119bool HasDebugInfo(TargetCodePointer pCode) => throw new NotImplementedException(); 123IEnumerable<OffsetMapping> GetMethodNativeMap(TargetCodePointer pCode, bool preferUninstrumented, out uint codeOffset) => throw new NotImplementedException(); 128IEnumerable<DebugVarInfo> GetMethodVarInfo(TargetCodePointer pCode, out uint codeOffset) => throw new NotImplementedException(); 134IReadOnlyList<AsyncSuspensionInfo> GetAsyncSuspensionPoints(TargetCodePointer pCode) =>
Contracts\IExecutionManager.cs (6)
107CodeBlockHandle? GetCodeBlockHandle(TargetCodePointer ip) => throw new NotImplementedException(); 112TargetPointer NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) => throw new NotImplementedException(); 117TargetCodePointer GetDiagnosticCodeStartFromEntryPoint(TargetCodePointer entryPoint) => throw new NotImplementedException(); 125bool IsGcSafe(TargetCodePointer instructionPointer) => throw new NotImplementedException(); 133CodeKind GetCodeKind(TargetCodePointer codeAddress) => throw new NotImplementedException();
Contracts\IObject.cs (1)
17TargetCodePointer TargetMethodPtr,
Contracts\IPrecodeStubs.cs (4)
11TargetPointer GetMethodDescFromStubAddress(TargetCodePointer entryPoint) => throw new NotImplementedException(); 15TargetPointer GetPrecodeEntryPointFromInteriorAddress(TargetCodePointer interiorAddress, bool isFixupPrecode) => throw new NotImplementedException(); 23TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent(TargetCodePointer entryPoint) => entryPoint;
Contracts\IRuntimeTypeSystem.cs (3)
166TargetCodePointer GetSlot(ITypeHandle typeHandle, uint slot) => throw new NotImplementedException(); 330TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 331TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException();
Contracts\IStackWalk.cs (1)
101TargetCodePointer GetInstructionPointer(IStackDataFrameHandle stackDataFrameHandle) => throw new NotImplementedException();
Target.cs (2)
89public abstract TargetCodePointer ReadCodePointer(ulong address); 97public abstract bool TryReadCodePointer(ulong address, out TargetCodePointer value);
TargetCodePointer.cs (13)
7public readonly struct TargetCodePointer : IEquatable<TargetCodePointer> 9public static TargetCodePointer Null = new(0); 13public static implicit operator ulong(TargetCodePointer p) => p.Value; 14public static implicit operator TargetCodePointer(ulong v) => new TargetCodePointer(v); 16public static bool operator ==(TargetCodePointer left, TargetCodePointer right) => left.Value == right.Value; 17public static bool operator !=(TargetCodePointer left, TargetCodePointer right) => left.Value != right.Value; 19public override bool Equals(object? obj) => obj is TargetCodePointer pointer && Equals(pointer); 20public bool Equals(TargetCodePointer other) => Value == other.Value; 24public bool Equals(TargetCodePointer x, TargetCodePointer y) => x.Value == y.Value; 25public int GetHashCode(TargetCodePointer obj) => obj.Value.GetHashCode();
TargetFieldExtensions.cs (1)
98public static TargetCodePointer ReadCodePointerField(this Target target, ulong address, Target.TypeInfo typeInfo, string fieldName)
Microsoft.Diagnostics.DataContractReader.Contracts (206)
CodePointerUtils.cs (7)
14internal static TargetCodePointer CodePointerFromAddress(TargetPointer address, Target target) 18return TargetCodePointer.Null; 31internal static TargetPointer AddressFromCodePointer(TargetCodePointer code, Target target) 43internal static TargetCodePointer StripPointerAuthentiationFromReturnAddress(TargetCodePointer returnAddress, Target target) 45if (returnAddress == TargetCodePointer.Null) 47return TargetCodePointer.Null;
Contracts\AuxiliarySymbols_1.cs (4)
18IEnumerable<(TargetCodePointer Address, string Name)> IAuxiliarySymbols.EnumerateAuxiliarySymbols() 25TargetCodePointer codePointer = CodePointerUtils.CodePointerFromAddress(ip, _target); 27foreach ((TargetCodePointer address, string name) in EnumerateAuxiliarySymbols()) 39private IEnumerable<(TargetCodePointer Address, string Name)> EnumerateAuxiliarySymbols()
Contracts\BuiltInCOM_1.cs (1)
67|| !_target.TryReadCodePointer(vtable + (ulong)pointerSize, out TargetCodePointer addRefValue))
Contracts\CodeVersions_1.cs (5)
121NativeCodeVersionHandle ICodeVersions.GetNativeCodeVersionForIP(TargetCodePointer ip) 144TargetCodePointer startAddress = CodePointerUtils.CodePointerFromAddress( 162TargetCodePointer ICodeVersions.GetNativeCode(NativeCodeVersionHandle codeVersionHandle) 239private NativeCodeVersionHandle GetSpecificNativeCodeVersion(IRuntimeTypeSystem rts, MethodDescHandle md, TargetCodePointer startAddress) 248TargetCodePointer firstNativeCode = eman.GetDiagnosticCodeStartFromEntryPoint(rts.GetNativeCode(md));
Contracts\ComWrappers_1.cs (1)
46if (!_target.TryReadCodePointer(vtable, out TargetCodePointer qiCodePtr))
Contracts\Debugger\Debugger_1.cs (1)
136HijackKind IDebugger.GetHijackKind(TargetCodePointer controlPC)
Contracts\DebugInfo\DebugInfo_1.cs (5)
34bool IDebugInfo.HasDebugInfo(TargetCodePointer pCode) 42IEnumerable<OffsetMapping> IDebugInfo.GetMethodNativeMap(TargetCodePointer pCode, bool preferUninstrumented, out uint codeOffset) 120IEnumerable<DebugVarInfo> IDebugInfo.GetMethodVarInfo(TargetCodePointer pCode, out uint codeOffset) 133TargetCodePointer nativeCodeStart = _eman.GetDiagnosticCodeStartFromEntryPoint(cv.GetNativeCode(ncvh)); 151IReadOnlyList<AsyncSuspensionInfo> IDebugInfo.GetAsyncSuspensionPoints(TargetCodePointer pCode)
Contracts\ExecutionManager\ExecutionManager_1.cs (6)
19public CodeBlockHandle? GetCodeBlockHandle(TargetCodePointer ip) => _executionManagerCore.GetCodeBlockHandle(ip); 24public TargetPointer NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) => _executionManagerCore.NonVirtualEntry2MethodDesc(entrypoint); 25public TargetCodePointer GetDiagnosticCodeStartFromEntryPoint(TargetCodePointer entryPoint) => _executionManagerCore.GetDiagnosticCodeStartFromEntryPoint(entryPoint); 33public bool IsGcSafe(TargetCodePointer instructionPointer) => _executionManagerCore.IsGcSafe(instructionPointer); 39public CodeKind GetCodeKind(TargetCodePointer codeAddress) => _executionManagerCore.GetCodeKind(codeAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (23)
20private readonly Dictionary<TargetCodePointer, RangeSection> _rangeSections = new(); 132public abstract bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info); 135TargetCodePointer jittedCodeAddress, 139public abstract TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 140public abstract TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte); 141public abstract void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion); 143public abstract CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 178TargetCodePointer jittedCodeAddress) 212TargetCodePointer virtualIP) 274private static bool IsVirtualIPAddress(Target target, TargetCodePointer codeAddress) 286private RangeSection FindRangeSection(TargetCodePointer ip) 319private CodeBlock? GetCodeBlock(TargetCodePointer jittedCodeAddress) 336CodeBlockHandle? IExecutionManager.GetCodeBlockHandle(TargetCodePointer ip) 407TargetPointer IExecutionManager.NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) 445TargetCodePointer IExecutionManager.GetDiagnosticCodeStartFromEntryPoint(TargetCodePointer entryPoint) 447if (entryPoint == TargetCodePointer.Null) 465private TargetCodePointer GetDiagnosticCodeStartFromPortableEntryPoint(TargetCodePointer entryPoint) 537TargetCodePointer filterAddress = new(info.StartAddress.Value + filterOffset); 611bool IExecutionManager.IsGcSafe(TargetCodePointer instructionPointer) 648TargetCodePointer codeAddr = CodePointerUtils.CodePointerFromAddress(address, _target); 896public CodeKind GetCodeKind(TargetCodePointer codeAddress)
Contracts\ExecutionManager\ExecutionManagerCore.EEJitManager.cs (8)
24public override bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info) 50TargetCodePointer jittedCodeAddress, 66public override TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress) 96public override TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte) 119public override CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer codeAddress) 127public override void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion) 150private TargetPointer FindMethodCode(RangeSection rangeSection, TargetCodePointer codeAddress) 172TargetCodePointer current = new(heapListNode.EndAddress.Value);
Contracts\ExecutionManager\ExecutionManagerCore.InterpreterJitManager.cs (7)
22public override bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info) 48TargetCodePointer jittedCodeAddress, 63public override TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress) 69public override CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer codeAddress) 74public override TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte) 90public override void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion) 129private TargetPointer FindMethodCode(RangeSection rangeSection, TargetCodePointer jittedCodeAddress)
Contracts\ExecutionManager\ExecutionManagerCore.ReadyToRunJitManager.cs (9)
34public override bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info) 80TargetCodePointer jittedCodeAddress, 111public override TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress) 121public override TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte) 162public override CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer codeAddress) 169public override void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion) 226TargetCodePointer jittedCodeAddress, 284private bool IsStubCodeBlockThunk(RangeSection rangeSection, Data.ReadyToRunInfo r2rInfo, TargetCodePointer jittedCodeAddress) 303TargetCodePointer startAddress = codeBase + _runtimeFunctions.GetBeginAddress(function);
Contracts\ExecutionManager\Helpers\INibbleMap.cs (1)
14public TargetPointer FindMethodCode(Data.CodeHeapListNode heapListNode, TargetCodePointer jittedCodeAddress);
Contracts\ExecutionManager\Helpers\NibbleMapConstantLookup.cs (2)
58internal TargetPointer FindMethodCode(TargetPointer mapBase, TargetPointer mapStart, TargetCodePointer currentPC) 139public TargetPointer FindMethodCode(Data.CodeHeapListNode heapListNode, TargetCodePointer jittedCodeAddress)
Contracts\ExecutionManager\Helpers\RangeSectionMap.cs (5)
100internal Cursor GetTopCursor(TargetPointer topMap, TargetCodePointer jittedCodeAddress) 106internal Cursor GetNextCursor(Target target, Cursor cursor, TargetCodePointer jittedCodeAddress) 136internal int GetIndexForLevel(TargetCodePointer address, int level) 152public TargetPointer /*PTR_RangeSectionFragment*/ FindFragment(Target target, Data.RangeSectionMap topRangeSectionMap, TargetCodePointer jittedCodeAddress) 157internal Cursor? FindFragmentInternal(Target target, TargetPointer topMap, TargetCodePointer jittedCodeAddress)
Contracts\Object_1.cs (3)
206delegateType = del.MethodPtrAux == TargetCodePointer.Null ? DelegateType.Closed : DelegateType.Open; 209(TargetPointer targetObject, TargetCodePointer targetMethodPtr) = delegateType switch 213_ => (TargetPointer.Null, TargetCodePointer.Null),
Contracts\PrecodeStubs_1.cs (2)
113public override TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent( 114TargetCodePointer entryPoint)
Contracts\PrecodeStubs_Common.cs (6)
105internal TargetPointer CodePointerReadableInstrPointer(TargetCodePointer codePointer) 116internal ValidPrecode GetPrecodeFromEntryPoint(TargetCodePointer entryPoint) 144TargetPointer IPrecodeStubs.GetMethodDescFromStubAddress(TargetCodePointer entryPoint) 151TargetPointer IPrecodeStubs.GetPrecodeEntryPointFromInteriorAddress(TargetCodePointer interiorAddress, bool isFixupPrecode) 178public virtual TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent( 179TargetCodePointer entryPoint) => entryPoint;
Contracts\RuntimeTypeSystem_1.cs (10)
2220TargetCodePointer pCode = _target.ReadCodePointer(slotPtr); 2222if (pCode == TargetCodePointer.Null) 2247TargetCodePointer IRuntimeTypeSystem.GetSlot(ITypeHandle typeHandle, uint slot) 2257return TargetCodePointer.Null; 2266TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2276TargetCodePointer pCode = _target.ReadCodePointer(ppCode); 2281return TargetCodePointer.Null; 2286TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2292private TargetCodePointer GetStableEntryPoint(MethodDesc md) 2300private TargetCodePointer GetMethodEntryPointIfExists(MethodDesc md)
Contracts\StackWalk\Context\AMD64Context.cs (1)
48public TargetCodePointer InstructionPointer
Contracts\StackWalk\Context\ARM64Context.cs (1)
54public TargetCodePointer InstructionPointer
Contracts\StackWalk\Context\ARMContext.cs (1)
47public TargetCodePointer InstructionPointer
Contracts\StackWalk\Context\ContextHolder.cs (1)
23public TargetCodePointer InstructionPointer { get => Context.InstructionPointer; set => Context.InstructionPointer = value; }
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (1)
19public TargetCodePointer InstructionPointer { get; set; }
Contracts\StackWalk\Context\IPlatformContext.cs (1)
21TargetCodePointer InstructionPointer { get; set; }
Contracts\StackWalk\Context\LoongArch64Context.cs (1)
52public TargetCodePointer InstructionPointer
Contracts\StackWalk\Context\RISCV64Context.cs (1)
52public TargetCodePointer InstructionPointer
Contracts\StackWalk\Context\Wasm\WasmR2RInfo.cs (1)
49public bool TryGetUnwindData(TargetCodePointer controlPC, out TargetPointer unwindDataAddress)
Contracts\StackWalk\Context\Wasm\WasmUnwinder.cs (8)
26bool TryGetUnwindData(TargetCodePointer controlPC, out TargetPointer unwindDataAddress); 137public TargetCodePointer GetVirtualIP(TargetPointer sp) 140return TargetCodePointer.Null; 143return TargetCodePointer.Null; 151return TargetCodePointer.Null; 164public bool TryUnwindOneFrame(ref TargetPointer sp, TargetCodePointer controlPC, out TargetCodePointer ip) 166ip = TargetCodePointer.Null;
Contracts\StackWalk\Context\WasmContext.cs (4)
66public TargetCodePointer InstructionPointer 93if (unwinder.TryUnwindOneFrame(ref sp, InstructionPointer, out TargetCodePointer ip)) 99FramePointer = ip != TargetCodePointer.Null 107InstructionPointer = TargetCodePointer.Null;
Contracts\StackWalk\Context\X86Context.cs (1)
60public TargetCodePointer InstructionPointer
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (8)
410public TargetCodePointer GetTransitionBlockReturnAddress(Data.TransitionBlock transitionBlock) 412if (transitionBlock.ReturnAddress == TargetCodePointer.Null 428public TargetCodePointer GetReturnAddress(Data.Frame frame) 431TargetCodePointer returnAddress; 439: TargetCodePointer.Null; 505return TargetCodePointer.Null; 511return TargetCodePointer.Null; 639return frame.CallerReturnAddress != TargetCodePointer.Null;
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
63public TargetCodePointer GetCurrentReturnAddress()
Contracts\StackWalk\FrameHandling\WasmFrameHandler.cs (3)
39if (inlinedCallFrame.CallerReturnAddress == TargetCodePointer.Null) 91TargetCodePointer instructionPointer = _frameHelpers.GetTransitionBlockReturnAddress(transitionBlock); 95if (stackPointer != TargetPointer.Null && instructionPointer != TargetCodePointer.Null)
Contracts\StackWalk\GC\GcScanContext.cs (2)
19public TargetCodePointer InstructionPointer { get; private set; } 34public void UpdateScanContext(TargetPointer sp, TargetCodePointer ip, TargetPointer frame, StackRefData.SourceTypes? sourceTypeOverride = null)
Contracts\StackWalk\StackWalk_1.cs (12)
189TargetCodePointer curPc = context.InstructionPointer; 465scanContext.UpdateScanContext(pExInfo, TargetCodePointer.Null, pExInfo, StackRefData.SourceTypes.StackSourceOther); 487scanContext.UpdateScanContext(pGCFrame, TargetCodePointer.Null, pGCFrame, StackRefData.SourceTypes.StackSourceOther); 910TargetCodePointer ip = handle.Context.InstructionPointer; 936TargetCodePointer returnAddress = handle.FrameIter.GetCurrentReturnAddress(); 938&& returnAddress != TargetCodePointer.Null; 959if (returnAddress != TargetCodePointer.Null 1126TargetCodePointer IStackWalk.GetInstructionPointer(IStackDataFrameHandle stackDataFrameHandle) 1324TargetCodePointer returnAddress = _frameHelpers.GetReturnAddress(frameData); 1325if (returnAddress != TargetCodePointer.Null && _eman.GetCodeBlockHandle(returnAddress) is CodeBlockHandle cbh) 1450private bool IsManaged(TargetCodePointer ip, [NotNullWhen(true)] out CodeBlockHandle? codeBlockHandle) 1491private bool IsInterpreterCode(TargetCodePointer ip)
Contracts\StackWalk\StackWalk_1.ExceptionHandling.cs (1)
58TargetCodePointer callerIp = callerContext.InstructionPointer;
Data\AuxiliarySymbolInfo.cs (1)
14[Field("Address")] public partial TargetCodePointer CodeAddress { get; }
Data\ComWrappersVtablePtrs.cs (3)
11[CustomInit(nameof(InitComWrappersInterfacePointers))] public partial IReadOnlyList<TargetCodePointer> ComWrappersInterfacePointers { get; } 13private partial IReadOnlyList<TargetCodePointer> InitComWrappersInterfacePointers(Target target, TargetPointer address) 16List<TargetCodePointer> pointers = new(count);
Data\Delegate.cs (2)
11[Field] public partial TargetCodePointer MethodPtr { get; } 12[Field] public partial TargetCodePointer MethodPtrAux { get; }
Data\Frames\FuncEvalFrame.cs (1)
13[Field] public partial TargetCodePointer ReturnAddress { get; }
Data\Frames\HijackFrame.cs (1)
9[Field] public partial TargetCodePointer ReturnAddress { get; }
Data\Frames\InlinedCallFrame.cs (1)
10[Field] public partial TargetCodePointer CallerReturnAddress { get; }
Data\Frames\SoftwareExceptionFrame.cs (1)
12[Field] public partial TargetCodePointer ReturnAddress { get; }
Data\Frames\TailCallFrame.cs (1)
12[Field] public partial TargetCodePointer ReturnAddress { get; }
Data\Frames\TransitionBlock.cs (1)
9[Field] public partial TargetCodePointer ReturnAddress { get; }
Data\MethodDescCodeData.cs (1)
10[Field] public partial TargetCodePointer TemporaryEntryPoint { get; }
Data\NativeCodeVersionNode.cs (1)
12[Field] public partial TargetCodePointer NativeCode { get; }
Data\RangeSectionFragment.cs (1)
27public bool Contains(TargetCodePointer address)
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.AuxiliarySymbolInfo.g.cs (2)
51private TargetCodePointer _CodeAddress__value = default!; 54public partial TargetCodePointer CodeAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.ComWrappersVtablePtrs.g.cs (3)
33private partial System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> InitComWrappersInterfacePointers(Target target, TargetPointer address); 34private System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> _ComWrappersInterfacePointers__value = default!; 36public partial System.Collections.Generic.IReadOnlyList<global::Microsoft.Diagnostics.DataContractReader.TargetCodePointer> ComWrappersInterfacePointers
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.Delegate.g.cs (4)
109private TargetCodePointer _MethodPtr__value = default!; 112public partial TargetCodePointer MethodPtr 126private TargetCodePointer _MethodPtrAux__value = default!; 129public partial TargetCodePointer MethodPtrAux
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.FuncEvalFrame.g.cs (2)
68private TargetCodePointer _ReturnAddress__value = default!; 71public partial TargetCodePointer ReturnAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.HijackFrame.g.cs (2)
51private TargetCodePointer _ReturnAddress__value = default!; 54public partial TargetCodePointer ReturnAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.InlinedCallFrame.g.cs (2)
92private TargetCodePointer _CallerReturnAddress__value = default!; 95public partial TargetCodePointer CallerReturnAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.MethodDescCodeData.g.cs (2)
86private TargetCodePointer _TemporaryEntryPoint__value = default!; 89public partial TargetCodePointer TemporaryEntryPoint
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.NativeCodeVersionNode.g.cs (2)
125private TargetCodePointer _NativeCode__value = default!; 128public partial TargetCodePointer NativeCode
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.SoftwareExceptionFrame.g.cs (2)
68private TargetCodePointer _ReturnAddress__value = default!; 71public partial TargetCodePointer ReturnAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.TailCallFrame.g.cs (2)
68private TargetCodePointer _ReturnAddress__value = default!; 71public partial TargetCodePointer ReturnAddress
Generated\361d1da7f942c932\Microsoft_Diagnostics_DataContractReader_Data.TransitionBlock.g.cs (2)
75private TargetCodePointer _ReturnAddress__value = default!; 78public partial TargetCodePointer ReturnAddress
RuntimeTypeSystemHelpers\MethodValidation.cs (11)
116private TargetCodePointer GetTemporaryEntryPointIfExists(NonValidatedMethodDesc umd) 120return TargetCodePointer.Null; 126private TargetCodePointer GetCodePointer(NonValidatedMethodDesc umd) 135TargetCodePointer pCode = _target.ReadCodePointer(ppCode); 141return TargetCodePointer.Null; 146private TargetCodePointer GetStableEntryPoint(NonValidatedMethodDesc umd) 155private TargetCodePointer GetMethodEntryPointIfExists(NonValidatedMethodDesc umd) 170private bool HasNativeCode(NonValidatedMethodDesc umd) => GetCodePointer(umd) != TargetCodePointer.Null; 191TargetCodePointer temporaryEntryPoint = GetTemporaryEntryPointIfExists(umd); 192if (temporaryEntryPoint != TargetCodePointer.Null) 205TargetCodePointer jitCodeAddr = GetCodePointer(umd);
Microsoft.Diagnostics.DataContractReader.Legacy (43)
ClrDataFrame.cs (1)
492TargetCodePointer codePointer = stackWalk.GetInstructionPointer(_dataFrame);
ClrDataMethodInstance.cs (10)
271TargetCodePointer pCode = address.ToTargetCodePointer(_target); 372TargetCodePointer nativeCode = _target.Contracts.RuntimeTypeSystem.GetNativeCode(_methodDesc); 373TargetCodePointer pCode = _target.Contracts.ExecutionManager.GetDiagnosticCodeStartFromEntryPoint(nativeCode); 462TargetCodePointer nativeCode = _target.Contracts.RuntimeTypeSystem.GetNativeCode(_methodDesc); 463TargetCodePointer pCode = _target.Contracts.ExecutionManager.GetDiagnosticCodeStartFromEntryPoint(nativeCode); 550TargetCodePointer nativeCode = rts.GetNativeCode(_methodDesc); 551TargetCodePointer code = _target.Contracts.ExecutionManager.GetDiagnosticCodeStartFromEntryPoint(nativeCode); 552if (code == TargetCodePointer.Null) 557if (code == TargetCodePointer.Null) 763TargetCodePointer addrCode = rts.GetNativeCode(_methodDesc);
ConversionExtensions.cs (3)
32public static ClrDataAddress ToClrDataAddress(this TargetCodePointer address, Target target) 69public static TargetCodePointer ToTargetCodePointer(this ClrDataAddress address, Target target) 89public static TargetPointer ToAddress(this TargetCodePointer code, Target target)
Dbi\DacDbiImpl.cs (11)
1663TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2131TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2308TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2349TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2964TargetCodePointer nativeCode = rts.GetNativeCode(methodDescHandle); 2965if (nativeCode != TargetCodePointer.Null) 3018TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 6056TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6504TargetCodePointer pCode; 6509pCode = ncvh.Valid ? cv.GetNativeCode(ncvh) : TargetCodePointer.Null; 6516if (pCode != TargetCodePointer.Null)
EnumMemory\MemoryEnumerator.cs (2)
244TargetCodePointer instructionPointer = stackWalk.GetInstructionPointer(frame); 359foreach ((TargetCodePointer _, string _) in _collectorTarget.Target.Contracts.AuxiliarySymbols.EnumerateAuxiliarySymbols())
EnumMemory\MethodCollector.cs (6)
20public void CaptureMethod(TargetPointer methodDesc, TargetCodePointer instructionPointer) 22if (instructionPointer != TargetCodePointer.Null) 36private void EnumerateInstructionPointer(TargetCodePointer instructionPointer) 47private void EnumerateCodeDependencies(TargetCodePointer instructionPointer) 101TargetCodePointer nativeCode = codeVersions.GetNativeCode(codeVersion); 102if (nativeCode != TargetCodePointer.Null)
SOSDacImpl.cs (6)
805TargetCodePointer targetCodePointer = ip.ToTargetCodePointer(_target); 2394TargetCodePointer nativeCodeAddr = TargetCodePointer.Null; 2399if (nativeCodeAddr != TargetCodePointer.Null) 2613TargetCodePointer nativeCode = cv.GetNativeCode(nativeCodeVersion); 5492TargetCodePointer nativeCode = _target.Contracts.ExecutionManager.GetDiagnosticCodeStartFromEntryPoint(codeVersions.GetNativeCode(nativeCodeVersionHandle));
SOSDacImpl.IXCLRDataProcess.cs (4)
245TargetCodePointer codeAddress = address.ToTargetCodePointer(_target); 292TargetCodePointer codeAddr = address.ToTargetCodePointer(_target); 301TargetCodePointer managedCodeAddr = _target.Contracts.ExecutionManager.GetDiagnosticCodeStartFromEntryPoint(codeAddr); 1020TargetCodePointer methodAddr = address.ToTargetCodePointer(_target);