37 instantiations of TargetCodePointer
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorTarget.cs (4)
642return new TargetCodePointer(Read<uint>(address)); 646return new TargetCodePointer(Read<ulong>(address)); 658value = new TargetCodePointer(val); 666value = 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 (22)
CodePointerUtils.cs (2)
25return new TargetCodePointer(address.Value | Arm32ThumbBit); 32return new TargetCodePointer(address.Value);
Contracts\Debugger\Debugger_1.cs (1)
277ctx.InstructionPointer = new TargetCodePointer(pfnHijackFunction.Value);
Contracts\ExecutionManager\ExecutionManagerCore.cs (2)
271new TargetCodePointer(range.Data.RangeBegin + runtimeFunction.BeginAddress), _target); 331if (((IExecutionManager)this).GetCodeKind(new TargetCodePointer(startAddress.Value)) == CodeKind.Interpreter)
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)
51new TargetCodePointer(imageBase.Value + function.BeginAddress), Target); 60new TargetCodePointer(imageBase.Value + coldFunction.BeginAddress), Target);
Contracts\PrecodeStubs_3.cs (1)
139: new TargetCodePointer(precodeData.ByteCodeAddr);
Contracts\StackWalk\Context\AMD64Context.cs (1)
50readonly get => new(Rip);
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)
130return new TargetCodePointer(baseVirtualIP + functionLocalVirtualIP);
Contracts\StackWalk\Context\WasmContext.cs (1)
68readonly get => new(_interpreterIP);
Contracts\StackWalk\Context\X86Context.cs (1)
57readonly get => new(Eip);
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (2)
469context.InstructionPointer = new TargetCodePointer((ulong)topContextFrame.Ip); 518context.InstructionPointer = new TargetCodePointer((ulong)parentFrame.Ip);
Microsoft.Diagnostics.DataContractReader.Legacy (9)
ConversionExtensions.cs (2)
73return new TargetCodePointer(address); 82return new TargetCodePointer((uint)address);
Dbi\DacDbiImpl.cs (6)
1561TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2440if (eman.GetCodeBlockHandle(new TargetCodePointer(controlPC)) is not CodeBlockHandle cbh) 2865code = new TargetCodePointer(code.ToAddress(_target).Value); 2890NativeCodeVersionHandle nativeCodeVersion = codeVersions.GetNativeCodeVersionForIP(new TargetCodePointer(codeStart.Value)); 5816TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6257NativeCodeVersionHandle ncvh = cv.GetNativeCodeVersionForIP(new TargetCodePointer(codeAddr));
SOSDacImpl.IXCLRDataProcess.cs (1)
259TargetPointer methodDesc = eman.NonVirtualEntry2MethodDesc(new TargetCodePointer(entryPoint.Value));
256 references to TargetCodePointer
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
637public override TargetCodePointer ReadCodePointer(ulong address) 651public override bool TryReadCodePointer(ulong address, out TargetCodePointer value)
Microsoft.Diagnostics.DataContractReader.Abstractions (40)
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\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 (4)
99CodeBlockHandle? GetCodeBlockHandle(TargetCodePointer ip) => throw new NotImplementedException(); 104TargetPointer NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) => throw new NotImplementedException(); 112bool IsGcSafe(TargetCodePointer instructionPointer) => throw new NotImplementedException(); 120CodeKind 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)
165TargetCodePointer GetSlot(ITypeHandle typeHandle, uint slot) => throw new NotImplementedException(); 316TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 317TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException();
Contracts\IStackWalk.cs (1)
99TargetCodePointer GetInstructionPointer(IStackDataFrameHandle stackDataFrameHandle) => throw new NotImplementedException();
Target.cs (2)
84public abstract TargetCodePointer ReadCodePointer(ulong address); 92public 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 (182)
_generated\10\Microsoft_Diagnostics_DataContractReader_Data.AuxiliarySymbolInfo.g.cs (2)
55private TargetCodePointer _CodeAddress__value = default!; 58public partial TargetCodePointer CodeAddress
_generated\138\Microsoft_Diagnostics_DataContractReader_Data.MethodDescCodeData.g.cs (2)
63private TargetCodePointer _TemporaryEntryPoint__value = default!; 66public partial TargetCodePointer TemporaryEntryPoint
_generated\144\Microsoft_Diagnostics_DataContractReader_Data.NativeCodeVersionNode.g.cs (2)
129private TargetCodePointer _NativeCode__value = default!; 132public partial TargetCodePointer NativeCode
_generated\33\Microsoft_Diagnostics_DataContractReader_Data.Delegate.g.cs (4)
113private TargetCodePointer _MethodPtr__value = default!; 116public partial TargetCodePointer MethodPtr 130private TargetCodePointer _MethodPtrAux__value = default!; 133public partial TargetCodePointer MethodPtrAux
_generated\67\Microsoft_Diagnostics_DataContractReader_Data.FuncEvalFrame.g.cs (2)
72private TargetCodePointer _ReturnAddress__value = default!; 75public partial TargetCodePointer ReturnAddress
_generated\70\Microsoft_Diagnostics_DataContractReader_Data.HijackFrame.g.cs (2)
55private TargetCodePointer _ReturnAddress__value = default!; 58public partial TargetCodePointer ReturnAddress
_generated\71\Microsoft_Diagnostics_DataContractReader_Data.InlinedCallFrame.g.cs (2)
96private TargetCodePointer _CallerReturnAddress__value = default!; 99public partial TargetCodePointer CallerReturnAddress
_generated\74\Microsoft_Diagnostics_DataContractReader_Data.SoftwareExceptionFrame.g.cs (2)
72private TargetCodePointer _ReturnAddress__value = default!; 75public partial TargetCodePointer ReturnAddress
_generated\76\Microsoft_Diagnostics_DataContractReader_Data.TailCallFrame.g.cs (2)
72private TargetCodePointer _ReturnAddress__value = default!; 75public partial TargetCodePointer ReturnAddress
_generated\77\Microsoft_Diagnostics_DataContractReader_Data.TransitionBlock.g.cs (2)
71private TargetCodePointer _ReturnAddress__value = default!; 74public partial TargetCodePointer ReturnAddress
CodePointerUtils.cs (3)
14internal static TargetCodePointer CodePointerFromAddress(TargetPointer address, Target target) 18return TargetCodePointer.Null; 35internal static TargetPointer AddressFromCodePointer(TargetCodePointer code, Target target)
Contracts\AuxiliarySymbols_1.cs (1)
21TargetCodePointer codePointer = CodePointerUtils.CodePointerFromAddress(ip, _target);
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) 242TargetCodePointer firstNativeCode = rts.GetNativeCode(md);
Contracts\ComWrappers_1.cs (1)
36if (!_target.TryReadCodePointer(vtable, out TargetCodePointer qiCodePtr))
Contracts\Debugger\Debugger_1.cs (1)
129HijackKind IDebugger.GetHijackKind(TargetCodePointer controlPC)
Contracts\DebugInfo\DebugInfo_1.cs (2)
27bool IDebugInfo.HasDebugInfo(TargetCodePointer pCode) 35IEnumerable<OffsetMapping> IDebugInfo.GetMethodNativeMap(TargetCodePointer pCode, bool preferUninstrumented, out uint codeOffset)
Contracts\DebugInfo\DebugInfo_2.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) 135TargetCodePointer nativeCodeStart = cv.GetNativeCode(ncvh); 153IReadOnlyList<AsyncSuspensionInfo> IDebugInfo.GetAsyncSuspensionPoints(TargetCodePointer pCode)
Contracts\ExecutionManager\ExecutionManager_1.cs (4)
19public CodeBlockHandle? GetCodeBlockHandle(TargetCodePointer ip) => _executionManagerCore.GetCodeBlockHandle(ip); 24public TargetPointer NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) => _executionManagerCore.NonVirtualEntry2MethodDesc(entrypoint); 32public bool IsGcSafe(TargetCodePointer instructionPointer) => _executionManagerCore.IsGcSafe(instructionPointer); 38public CodeKind GetCodeKind(TargetCodePointer codeAddress) => _executionManagerCore.GetCodeKind(codeAddress);
Contracts\ExecutionManager\ExecutionManager_2.cs (4)
19public CodeBlockHandle? GetCodeBlockHandle(TargetCodePointer ip) => _executionManagerCore.GetCodeBlockHandle(ip); 24public TargetPointer NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) => _executionManagerCore.NonVirtualEntry2MethodDesc(entrypoint); 32public bool IsGcSafe(TargetCodePointer instructionPointer) => _executionManagerCore.IsGcSafe(instructionPointer); 38public CodeKind GetCodeKind(TargetCodePointer codeAddress) => _executionManagerCore.GetCodeKind(codeAddress);
Contracts\ExecutionManager\ExecutionManagerCore.cs (13)
116public abstract bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info); 119TargetCodePointer jittedCodeAddress, 123public abstract TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 124public abstract TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte); 125public abstract void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion); 127public abstract CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 156internal static RangeSection Find(Target target, Data.RangeSectionMap topRangeSectionMap, ExecutionManagerHelpers.RangeSectionMap rangeSectionLookup, TargetCodePointer jittedCodeAddress) 204private CodeBlock? GetCodeBlock(TargetCodePointer jittedCodeAddress) 221CodeBlockHandle? IExecutionManager.GetCodeBlockHandle(TargetCodePointer ip) 289TargetPointer IExecutionManager.NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) 413bool IExecutionManager.IsGcSafe(TargetCodePointer instructionPointer) 450TargetCodePointer codeAddr = CodePointerUtils.CodePointerFromAddress(address, _target); 667public 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)
32public override bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info) 76TargetCodePointer jittedCodeAddress, 106public override TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress) 116public override TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte) 150public override CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer codeAddress) 157public override void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion) 212TargetCodePointer jittedCodeAddress, 258private bool IsStubCodeBlockThunk(Data.RangeSection rangeSection, Data.ReadyToRunInfo r2rInfo, TargetCodePointer jittedCodeAddress) 274TargetCodePointer startAddress = imageBase + function.BeginAddress;
Contracts\ExecutionManager\Helpers\INibbleMap.cs (1)
14public TargetPointer FindMethodCode(Data.CodeHeapListNode heapListNode, TargetCodePointer jittedCodeAddress);
Contracts\ExecutionManager\Helpers\NibbleMapConstantLookup.cs (2)
59internal TargetPointer FindMethodCode(TargetPointer mapBase, TargetPointer mapStart, TargetCodePointer currentPC) 140public TargetPointer FindMethodCode(Data.CodeHeapListNode heapListNode, TargetCodePointer jittedCodeAddress)
Contracts\ExecutionManager\Helpers\NibbleMapLinearLookup.cs (2)
67internal TargetPointer FindMethodCode(TargetPointer mapBase, TargetPointer mapStart, TargetCodePointer currentPC) 149public 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)
182delegateType = del.MethodPtrAux == TargetCodePointer.Null ? DelegateType.Closed : DelegateType.Open; 185(TargetPointer targetObject, TargetCodePointer targetMethodPtr) = delegateType switch 189_ => (TargetPointer.Null, TargetCodePointer.Null),
Contracts\PrecodeStubs_3.cs (2)
115public override TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent( 116TargetCodePointer entryPoint)
Contracts\PrecodeStubs_Common.cs (6)
111internal TargetPointer CodePointerReadableInstrPointer(TargetCodePointer codePointer) 126internal ValidPrecode GetPrecodeFromEntryPoint(TargetCodePointer entryPoint) 158TargetPointer IPrecodeStubs.GetMethodDescFromStubAddress(TargetCodePointer entryPoint) 165TargetPointer IPrecodeStubs.GetPrecodeEntryPointFromInteriorAddress(TargetCodePointer interiorAddress, bool isFixupPrecode) 191public virtual TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent( 192TargetCodePointer entryPoint) => entryPoint;
Contracts\RuntimeTypeSystem_1.cs (11)
2124TargetCodePointer pCode = _target.ReadCodePointer(slotPtr); 2126if (pCode == TargetCodePointer.Null) 2151private readonly TargetPointer GetMethodDescForEntrypoint(TargetCodePointer pCode) 2168TargetCodePointer IRuntimeTypeSystem.GetSlot(ITypeHandle typeHandle, uint slot) 2178return TargetCodePointer.Null; 2187TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2197TargetCodePointer pCode = _target.ReadCodePointer(ppCode); 2202return TargetCodePointer.Null; 2207TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2213private TargetCodePointer GetStableEntryPoint(MethodDesc md) 2221private 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)
22public TargetCodePointer InstructionPointer { get => Context.InstructionPointer; set => Context.InstructionPointer = value; }
Contracts\StackWalk\Context\IPlatformAgnosticContext.cs (1)
18public TargetCodePointer InstructionPointer { get; set; }
Contracts\StackWalk\Context\IPlatformContext.cs (1)
16TargetCodePointer 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\WasmUnwinder.cs (7)
114/// <c>GetWasmVirtualIPFromStackPointer</c>. Returns <see cref="TargetCodePointer.Null"/> when 117public TargetCodePointer GetVirtualIP(TargetPointer sp) 120return TargetCodePointer.Null; 128return TargetCodePointer.Null; 139public bool TryUnwindOneFrame(ref TargetPointer sp, out TargetCodePointer ip) 141ip = TargetCodePointer.Null; 165if (ip == TargetCodePointer.Null)
Contracts\StackWalk\Context\WasmContext.cs (3)
66public TargetCodePointer InstructionPointer 87if (unwinder.TryUnwindOneFrame(ref sp, out TargetCodePointer ip)) 95InstructionPointer = TargetCodePointer.Null;
Contracts\StackWalk\Context\X86Context.cs (1)
55public TargetCodePointer InstructionPointer
Contracts\StackWalk\FrameHandling\FrameHelpers.cs (5)
217public TargetCodePointer GetReturnAddress(Data.Frame frame) 225return InlinedCallFrameHasActiveCall(icf) ? icf.CallerReturnAddress : TargetCodePointer.Null; 278return TargetCodePointer.Null; 283return TargetCodePointer.Null; 377return frame.CallerReturnAddress != TargetCodePointer.Null;
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
57public TargetCodePointer GetCurrentReturnAddress()
Contracts\StackWalk\GC\GcScanContext.cs (2)
25public TargetCodePointer InstructionPointer { get; private set; } 46public void UpdateScanContext(TargetPointer sp, TargetCodePointer ip, TargetPointer frame, StackRefData.SourceTypes? sourceTypeOverride = null)
Contracts\StackWalk\StackWalk_1.cs (11)
144TargetCodePointer curPc = context.InstructionPointer; 419scanContext.UpdateScanContext(pExInfo, TargetCodePointer.Null, pExInfo, StackRefData.SourceTypes.StackSourceOther); 441scanContext.UpdateScanContext(pGCFrame, TargetCodePointer.Null, pGCFrame, StackRefData.SourceTypes.StackSourceOther); 864TargetCodePointer ip = handle.Context.InstructionPointer; 890TargetCodePointer returnAddress = handle.FrameIter.GetCurrentReturnAddress(); 892&& returnAddress != TargetCodePointer.Null; 1061TargetCodePointer IStackWalk.GetInstructionPointer(IStackDataFrameHandle stackDataFrameHandle) 1252TargetCodePointer returnAddress = icf.CallerReturnAddress; 1253if (returnAddress != TargetCodePointer.Null && _eman.GetCodeBlockHandle(returnAddress) is CodeBlockHandle cbh) 1378private bool IsManaged(TargetCodePointer ip, [NotNullWhen(true)] out CodeBlockHandle? codeBlockHandle) 1419private 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 (2)
12public IReadOnlyList<TargetCodePointer> ComWrappersInterfacePointers { get; private set; } = []; 18List<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)
9[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)
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) 204TargetCodePointer jitCodeAddr = GetCodePointer(umd);
Microsoft.Diagnostics.DataContractReader.Legacy (32)
ClrDataFrame.cs (1)
455TargetCodePointer codePointer = stackWalk.GetInstructionPointer(_dataFrame);
ClrDataMethodInstance.cs (8)
207TargetCodePointer pCode = address.ToTargetCodePointer(_target); 301TargetCodePointer nativeCode = _target.Contracts.RuntimeTypeSystem.GetNativeCode(_methodDesc); 302TargetCodePointer pCode = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(nativeCode); 388TargetCodePointer nativeCode = rts.GetNativeCode(_methodDesc); 389TargetCodePointer code = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(nativeCode); 390if (code == TargetCodePointer.Null) 395if (code == TargetCodePointer.Null) 596TargetCodePointer 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)
1561TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2003TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2176TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2217TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2804TargetCodePointer nativeCode = rts.GetNativeCode(methodDescHandle); 2805if (nativeCode != TargetCodePointer.Null) 2857TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 5816TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6253TargetCodePointer pCode; 6258pCode = ncvh.Valid ? cv.GetNativeCode(ncvh) : TargetCodePointer.Null; 6265if (pCode != TargetCodePointer.Null)
SOSDacImpl.cs (6)
775TargetCodePointer targetCodePointer = ip.ToTargetCodePointer(_target); 2293TargetCodePointer nativeCodeAddr = TargetCodePointer.Null; 2298if (nativeCodeAddr != TargetCodePointer.Null) 2512TargetCodePointer nativeCode = cv.GetNativeCode(nativeCodeVersion); 5333TargetCodePointer nativeCode = _target.Contracts.PrecodeStubs.GetInterpreterCodeFromInterpreterPrecodeIfPresent(codeVersions.GetNativeCode(nativeCodeVersionHandle));
SOSDacImpl.IXCLRDataProcess.cs (3)
198TargetCodePointer codeAddress = address.ToTargetCodePointer(_target); 244TargetCodePointer codeAddr = address.ToTargetCodePointer(_target); 924TargetCodePointer methodAddr = address.ToTargetCodePointer(_target);