131 references to CorDebugRegister
Microsoft.Diagnostics.DataContractReader.Legacy (131)
Dbi\DacDbiImpl.cs (111)
6825public int WriteRegistersToContext(ContextBuffer contextBuffer, CorDebugRegister* regs, uint nRegs, nuint* values) 6876public int ReadRegistersFromContext(ContextBuffer contextBuffer, CorDebugRegister* regs, uint nRegs, ulong* pValues) 6938RuntimeInfoArchitecture arch, CorDebugRegister reg, out double value) 6946private static bool TryGetFloatRegisterIndex(RuntimeInfoArchitecture arch, CorDebugRegister reg, out int index) 6950RuntimeInfoArchitecture.X86 => (int)CorDebugRegister.REGISTER_X86_FPSTACK_0, 6951RuntimeInfoArchitecture.X64 => (int)CorDebugRegister.REGISTER_AMD64_XMM0, 6952RuntimeInfoArchitecture.Arm64 => (int)CorDebugRegister.REGISTER_ARM64_V0, 6953RuntimeInfoArchitecture.Arm => (int)CorDebugRegister.REGISTER_ARM_D0, 6954RuntimeInfoArchitecture.LoongArch64 => (int)CorDebugRegister.REGISTER_LOONGARCH64_F0, 6955RuntimeInfoArchitecture.RiscV64 => (int)CorDebugRegister.REGISTER_RISCV64_F0, 6999public int ConvertJitRegNumToCorDebugRegister(uint jitRegNum, CorDebugRegister* pReg, Interop.BOOL* pIsAmbientSP) 7010CorDebugRegister? reg = isAmbientSP ? CorDebugRegister.REGISTER_STACK_POINTER : MapJitRegNumToCorDebugRegister(arch, jitRegNum); 7046public int WriteFloatRegisterToContext(ContextBuffer contextBuffer, CorDebugRegister reg, byte* pValue, uint valueSize) 7132void SetRange(CorDebugRegister first, CorDebugRegister last) 7140SetBit((int)CorDebugRegister.REGISTER_X86_EIP); 7141SetBit((int)CorDebugRegister.REGISTER_X86_ESP); 7142SetBit((int)CorDebugRegister.REGISTER_X86_EBP); 7144SetRange(CorDebugRegister.REGISTER_X86_EAX, CorDebugRegister.REGISTER_X86_EDI); 7146SetRange(CorDebugRegister.REGISTER_X86_FPSTACK_0, CorDebugRegister.REGISTER_X86_FPSTACK_7); 7150SetBit((int)CorDebugRegister.REGISTER_AMD64_RIP); 7151SetBit((int)CorDebugRegister.REGISTER_AMD64_RSP); 7153SetRange(CorDebugRegister.REGISTER_AMD64_RBP, CorDebugRegister.REGISTER_AMD64_R15); 7155SetRange(CorDebugRegister.REGISTER_AMD64_XMM0, CorDebugRegister.REGISTER_AMD64_XMM15); 7159SetBit((int)CorDebugRegister.REGISTER_ARM_PC); 7160SetBit((int)CorDebugRegister.REGISTER_ARM_SP); 7161SetRange(CorDebugRegister.REGISTER_ARM_R0, CorDebugRegister.REGISTER_ARM_LR); 7165SetBit((int)CorDebugRegister.REGISTER_ARM64_PC); 7166SetBit((int)CorDebugRegister.REGISTER_ARM64_SP); 7167SetBit((int)CorDebugRegister.REGISTER_ARM64_FP); 7168SetRange(CorDebugRegister.REGISTER_ARM64_X0, CorDebugRegister.REGISTER_ARM64_X28); 7169SetBit((int)CorDebugRegister.REGISTER_ARM64_LR); 7170SetRange(CorDebugRegister.REGISTER_ARM64_V0, CorDebugRegister.REGISTER_ARM64_V31); 7174for (int r = (int)CorDebugRegister.REGISTER_LOONGARCH64_PC; 7175r <= (int)CorDebugRegister.REGISTER_LOONGARCH64_S8; r++) 7177SetRange(CorDebugRegister.REGISTER_LOONGARCH64_F0, CorDebugRegister.REGISTER_LOONGARCH64_F31); 7181for (int r = (int)CorDebugRegister.REGISTER_RISCV64_PC; 7182r <= (int)CorDebugRegister.REGISTER_RISCV64_T6; r++) 7184SetRange(CorDebugRegister.REGISTER_RISCV64_F0, CorDebugRegister.REGISTER_RISCV64_F31); 7192private static CorDebugRegister? MapJitRegNumToCorDebugRegister(RuntimeInfoArchitecture arch, uint jitRegNum) 71990 => CorDebugRegister.REGISTER_X86_EAX, 72001 => CorDebugRegister.REGISTER_X86_ECX, 72012 => CorDebugRegister.REGISTER_X86_EDX, 72023 => CorDebugRegister.REGISTER_X86_EBX, 72034 => CorDebugRegister.REGISTER_X86_ESP, 72045 => CorDebugRegister.REGISTER_X86_EBP, 72056 => CorDebugRegister.REGISTER_X86_ESI, 72067 => CorDebugRegister.REGISTER_X86_EDI, 72130 => CorDebugRegister.REGISTER_AMD64_RAX, 72141 => CorDebugRegister.REGISTER_AMD64_RCX, 72152 => CorDebugRegister.REGISTER_AMD64_RDX, 72163 => CorDebugRegister.REGISTER_AMD64_RBX, 72174 => CorDebugRegister.REGISTER_AMD64_RSP, 72185 => CorDebugRegister.REGISTER_AMD64_RBP, 72196 => CorDebugRegister.REGISTER_AMD64_RSI, 72207 => CorDebugRegister.REGISTER_AMD64_RDI, 7221>= 8 and <= 15 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_AMD64_R8 + (int)(jitRegNum - 8)), 7222>= 16 and <= 31 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_AMD64_XMM0 + (int)(jitRegNum - 16)), 7229<= 12 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_ARM_R0 + (int)jitRegNum), 723013 => CorDebugRegister.REGISTER_ARM_SP, 723114 => CorDebugRegister.REGISTER_ARM_LR, 723215 => CorDebugRegister.REGISTER_ARM_PC, 7239<= 28 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_ARM64_X0 + (int)jitRegNum), 724029 => CorDebugRegister.REGISTER_ARM64_FP, 724130 => CorDebugRegister.REGISTER_ARM64_LR, 724231 => CorDebugRegister.REGISTER_ARM64_SP, 724332 => CorDebugRegister.REGISTER_ARM64_PC, 7244>= 33 and <= 64 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_ARM64_V0 + (int)(jitRegNum - 33)), 72521 => CorDebugRegister.REGISTER_LOONGARCH64_RA, 72532 => CorDebugRegister.REGISTER_LOONGARCH64_TP, 72543 => CorDebugRegister.REGISTER_LOONGARCH64_SP, 7255>= 4 and <= 11 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_LOONGARCH64_A0 + (int)(jitRegNum - 4)), 7256>= 12 and <= 20 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_LOONGARCH64_T0 + (int)(jitRegNum - 12)), 725721 => CorDebugRegister.REGISTER_LOONGARCH64_X0, 725822 => CorDebugRegister.REGISTER_LOONGARCH64_FP, 7259>= 23 and <= 31 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_LOONGARCH64_S0 + (int)(jitRegNum - 23)), 726032 => CorDebugRegister.REGISTER_LOONGARCH64_PC, 72681 => CorDebugRegister.REGISTER_RISCV64_RA, 72692 => CorDebugRegister.REGISTER_RISCV64_SP, 72703 => CorDebugRegister.REGISTER_RISCV64_GP, 72714 => CorDebugRegister.REGISTER_RISCV64_TP, 7272>= 5 and <= 7 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_RISCV64_T0 + (int)(jitRegNum - 5)), 72738 => CorDebugRegister.REGISTER_RISCV64_FP, 72749 => CorDebugRegister.REGISTER_RISCV64_S1, 7275>= 10 and <= 17 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_RISCV64_A0 + (int)(jitRegNum - 10)), 7276>= 18 and <= 27 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_RISCV64_S2 + (int)(jitRegNum - 18)), 7277>= 28 and <= 31 => (CorDebugRegister)((int)CorDebugRegister.REGISTER_RISCV64_T3 + (int)(jitRegNum - 28)), 727832 => CorDebugRegister.REGISTER_RISCV64_PC, 7301private static string? MapToCdacName(RuntimeInfoArchitecture arch, CorDebugRegister reg)
Dbi\IDacDbiInterface.cs (4)
1113int WriteRegistersToContext(ContextBuffer contextBuffer, CorDebugRegister* regs, uint nRegs, nuint* values); 1116int ReadRegistersFromContext(ContextBuffer contextBuffer, CorDebugRegister* regs, uint nRegs, ulong* pValues); 1122int ConvertJitRegNumToCorDebugRegister(uint jitRegNum, CorDebugRegister* pReg, Interop.BOOL* pIsAmbientSP); 1125int WriteFloatRegisterToContext(ContextBuffer contextBuffer, CorDebugRegister reg, byte* pValue, uint valueSize);
Generated\361d1da7f942c932\Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.cs (16)
140public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, uint, nuint*, int> WriteRegistersToContext_133; 141public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, uint, ulong*, int> ReadRegistersFromContext_134; 143public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL*, int> ConvertJitRegNumToCorDebugRegister_136; 144public unsafe delegate* unmanaged[MemberFunction]<global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister, byte*, uint, int> WriteFloatRegisterToContext_137; 5670int global::Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.WriteRegistersToContext(global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* regs, uint nRegs, nuint* values) 5675var __target = ((delegate* unmanaged[MemberFunction]<void*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, uint, nuint*, int>)__vtable[133]); 5689internal static unsafe int ABI_WriteRegistersToContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* regs, uint nRegs, nuint* values) 5711int global::Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.ReadRegistersFromContext(global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* regs, uint nRegs, ulong* pValues) 5716var __target = ((delegate* unmanaged[MemberFunction]<void*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, uint, ulong*, int>)__vtable[134]); 5730internal static unsafe int ABI_ReadRegistersFromContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* regs, uint nRegs, ulong* pValues) 5793int global::Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.ConvertJitRegNumToCorDebugRegister(uint jitRegNum, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* pReg, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* pIsAmbientSP) 5798var __target = ((delegate* unmanaged[MemberFunction]<void*, uint, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister*, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL*, int>)__vtable[136]); 5812internal static unsafe int ABI_ConvertJitRegNumToCorDebugRegister(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, uint jitRegNum, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister* pReg, global::Microsoft.Diagnostics.DataContractReader.Legacy.Interop.BOOL* pIsAmbientSP) 5834int global::Microsoft.Diagnostics.DataContractReader.Legacy.IDacDbiInterface.WriteFloatRegisterToContext(global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister reg, byte* pValue, uint valueSize) 5839var __target = ((delegate* unmanaged[MemberFunction]<void*, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister, byte*, uint, int>)__vtable[137]); 5853internal static unsafe int ABI_WriteFloatRegisterToContext(global::System.Runtime.InteropServices.ComWrappers.ComInterfaceDispatch* __this_native, global::Microsoft.Diagnostics.DataContractReader.Legacy.ContextBuffer contextBuffer, global::Microsoft.Diagnostics.DataContractReader.Legacy.CorDebugRegister reg, byte* pValue, uint valueSize)