40 instantiations of TargetCodePointer
Microsoft.Diagnostics.DataContractReader (4)
ContractDescriptorTarget.cs (4)
649return new TargetCodePointer(Read<uint>(address)); 653return new TargetCodePointer(Read<ulong>(address)); 665value = new TargetCodePointer(val); 673value = 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 (25)
CodePointerUtils.cs (2)
25return new TargetCodePointer(address.Value | Arm32ThumbBit); 32return new TargetCodePointer(address.Value);
Contracts\Debugger\Debugger_1.cs (1)
333ctx.InstructionPointer = new TargetCodePointer(pfnHijackFunction.Value);
Contracts\ExecutionManager\ExecutionManagerCore.cs (5)
372new TargetCodePointer(range.Data.RangeBegin + beginAddress), _target); 464return new TargetCodePointer(interpreterCode); 482? new TargetCodePointer(virtualIP) 490if (((IExecutionManager)this).GetCodeKind(new TargetCodePointer(startAddress.Value)) == CodeKind.Interpreter) 520TargetCodePointer 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\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)
131return 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)
484context.InstructionPointer = new TargetCodePointer((ulong)topContextFrame.Ip); 533context.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)
1656TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2546if (eman.GetCodeBlockHandle(new TargetCodePointer(controlPC)) is not CodeBlockHandle cbh) 2983code = new TargetCodePointer(code.ToAddress(_target).Value); 3008NativeCodeVersionHandle nativeCodeVersion = codeVersions.GetNativeCodeVersionForIP(new TargetCodePointer(codeStart.Value)); 6024TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6476NativeCodeVersionHandle ncvh = cv.GetNativeCodeVersionForIP(new TargetCodePointer(codeAddr));
SOSDacImpl.IXCLRDataProcess.cs (1)
319TargetPointer methodDesc = eman.NonVirtualEntry2MethodDesc(new TargetCodePointer(entryPoint.Value));
270 references to TargetCodePointer
Microsoft.Diagnostics.DataContractReader (2)
ContractDescriptorTarget.cs (2)
644public override TargetCodePointer ReadCodePointer(ulong address) 658public 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)
165TargetCodePointer GetSlot(ITypeHandle typeHandle, uint slot) => throw new NotImplementedException(); 323TargetCodePointer GetNativeCode(MethodDescHandle methodDesc) => throw new NotImplementedException(); 324TargetCodePointer GetMethodEntryPointIfExists(MethodDescHandle methodDesc) => throw new NotImplementedException();
Contracts\IStackWalk.cs (1)
101TargetCodePointer 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 (190)
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 (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) 242TargetCodePointer firstNativeCode = 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) 135TargetCodePointer nativeCodeStart = cv.GetNativeCode(ncvh); 153IReadOnlyList<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 (21)
128public abstract bool GetMethodInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, [NotNullWhen(true)] out CodeBlock? info); 131TargetCodePointer jittedCodeAddress, 135public abstract TargetPointer GetUnwindInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 136public abstract TargetPointer GetDebugInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out bool hasFlagByte); 137public abstract void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion); 139public abstract CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer jittedCodeAddress); 174TargetCodePointer jittedCodeAddress) 208TargetCodePointer virtualIP) 270private static bool IsVirtualIPAddress(Target target, TargetCodePointer codeAddress) 302private CodeBlock? GetCodeBlock(TargetCodePointer jittedCodeAddress) 319CodeBlockHandle? IExecutionManager.GetCodeBlockHandle(TargetCodePointer ip) 390TargetPointer IExecutionManager.NonVirtualEntry2MethodDesc(TargetCodePointer entrypoint) 428TargetCodePointer IExecutionManager.GetDiagnosticCodeStartFromEntryPoint(TargetCodePointer entryPoint) 430if (entryPoint == TargetCodePointer.Null) 448private TargetCodePointer GetDiagnosticCodeStartFromPortableEntryPoint(TargetCodePointer entryPoint) 520TargetCodePointer filterAddress = new(info.StartAddress.Value + filterOffset); 594bool IExecutionManager.IsGcSafe(TargetCodePointer instructionPointer) 631TargetCodePointer codeAddr = CodePointerUtils.CodePointerFromAddress(address, _target); 880public 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) 157public override CodeKind GetCodeKind(RangeSection rangeSection, TargetCodePointer codeAddress) 164public override void GetGCInfo(RangeSection rangeSection, TargetCodePointer jittedCodeAddress, out TargetPointer gcInfo, out uint gcVersion) 220TargetCodePointer jittedCodeAddress, 278private bool IsStubCodeBlockThunk(RangeSection rangeSection, Data.ReadyToRunInfo r2rInfo, TargetCodePointer jittedCodeAddress) 297TargetCodePointer 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)
104internal TargetPointer CodePointerReadableInstrPointer(TargetCodePointer codePointer) 119internal ValidPrecode GetPrecodeFromEntryPoint(TargetCodePointer entryPoint) 151TargetPointer IPrecodeStubs.GetMethodDescFromStubAddress(TargetCodePointer entryPoint) 158TargetPointer IPrecodeStubs.GetPrecodeEntryPointFromInteriorAddress(TargetCodePointer interiorAddress, bool isFixupPrecode) 184public virtual TargetCodePointer GetInterpreterCodeFromInterpreterPrecodeIfPresent( 185TargetCodePointer entryPoint) => entryPoint;
Contracts\RuntimeTypeSystem_1.cs (11)
2139TargetCodePointer pCode = _target.ReadCodePointer(slotPtr); 2141if (pCode == TargetCodePointer.Null) 2166private readonly TargetPointer GetMethodDescForEntrypoint(TargetCodePointer pCode) 2183TargetCodePointer IRuntimeTypeSystem.GetSlot(ITypeHandle typeHandle, uint slot) 2193return TargetCodePointer.Null; 2202TargetCodePointer IRuntimeTypeSystem.GetNativeCode(MethodDescHandle methodDescHandle) 2212TargetCodePointer pCode = _target.ReadCodePointer(ppCode); 2217return TargetCodePointer.Null; 2222TargetCodePointer IRuntimeTypeSystem.GetMethodEntryPointIfExists(MethodDescHandle methodDescHandle) 2228private TargetCodePointer GetStableEntryPoint(MethodDesc md) 2236private 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 (6)
118public TargetCodePointer GetVirtualIP(TargetPointer sp) 121return TargetCodePointer.Null; 129return TargetCodePointer.Null; 140public bool TryUnwindOneFrame(ref TargetPointer sp, out TargetCodePointer ip) 142ip = TargetCodePointer.Null; 166if (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)
218public TargetCodePointer GetReturnAddress(Data.Frame frame) 226return InlinedCallFrameHasActiveCall(icf) ? icf.CallerReturnAddress : TargetCodePointer.Null; 279return TargetCodePointer.Null; 284return TargetCodePointer.Null; 376return frame.CallerReturnAddress != TargetCodePointer.Null;
Contracts\StackWalk\FrameHandling\FrameIterator.cs (1)
57public TargetCodePointer GetCurrentReturnAddress()
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 (11)
148TargetCodePointer curPc = context.InstructionPointer; 423scanContext.UpdateScanContext(pExInfo, TargetCodePointer.Null, pExInfo, StackRefData.SourceTypes.StackSourceOther); 445scanContext.UpdateScanContext(pGCFrame, TargetCodePointer.Null, pGCFrame, StackRefData.SourceTypes.StackSourceOther); 868TargetCodePointer ip = handle.Context.InstructionPointer; 894TargetCodePointer returnAddress = handle.FrameIter.GetCurrentReturnAddress(); 896&& returnAddress != TargetCodePointer.Null; 1065TargetCodePointer IStackWalk.GetInstructionPointer(IStackDataFrameHandle stackDataFrameHandle) 1256TargetCodePointer returnAddress = icf.CallerReturnAddress; 1257if (returnAddress != TargetCodePointer.Null && _eman.GetCodeBlockHandle(returnAddress) is CodeBlockHandle cbh) 1382private bool IsManaged(TargetCodePointer ip, [NotNullWhen(true)] out CodeBlockHandle? codeBlockHandle) 1423private 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)
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)
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)
59private TargetCodePointer _TemporaryEntryPoint__value = default!; 62public 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)
67private TargetCodePointer _ReturnAddress__value = default!; 70public 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) 204TargetCodePointer jitCodeAddr = GetCodePointer(umd);
Microsoft.Diagnostics.DataContractReader.Legacy (35)
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)
1656TargetCodePointer codePointer = new TargetCodePointer(startAddress); 2106TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2279TargetCodePointer controlPC = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2320TargetCodePointer ip = _target.Contracts.StackWalk.GetInstructionPointer(handle); 2921TargetCodePointer nativeCode = rts.GetNativeCode(methodDescHandle); 2922if (nativeCode != TargetCodePointer.Null) 2975TargetCodePointer code = ((ClrDataAddress)codeAddress).ToTargetCodePointer(_target); 6024TargetCodePointer codeAddress = new TargetCodePointer(codeStartAddress); 6472TargetCodePointer pCode; 6477pCode = ncvh.Valid ? cv.GetNativeCode(ncvh) : TargetCodePointer.Null; 6484if (pCode != TargetCodePointer.Null)
SOSDacImpl.cs (6)
814TargetCodePointer targetCodePointer = ip.ToTargetCodePointer(_target); 2392TargetCodePointer nativeCodeAddr = TargetCodePointer.Null; 2397if (nativeCodeAddr != TargetCodePointer.Null) 2611TargetCodePointer nativeCode = cv.GetNativeCode(nativeCodeVersion); 5488TargetCodePointer 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);