Home
last modified time | relevance | path

Searched refs:reg_index (Results 1 – 25 of 54) sorted by relevance

123

/llvm-project/lldb/source/Plugins/Process/Linux/
H A DNativeRegisterContextLinux_x86_64.cpp570 uint32_t reg_index) { in UpdateXSTATEforWrite()
572 if (IsFPR(reg_index)) { in UpdateXSTATEforWrite()
576 } else if (IsAVX(reg_index)) { in UpdateXSTATEforWrite()
579 } else if (IsMPX(reg_index)) { in UpdateXSTATEforWrite()
589 const uint32_t reg_index = reg_info->kinds[lldb::eRegisterKindLLDB]; in WriteRegister()
590 if (reg_index == LLDB_INVALID_REGNUM) in WriteRegister()
595 UpdateXSTATEforWrite(reg_index); in WriteRegister()
597 if (IsGPR(reg_index) || IsDR(reg_index)) in WriteRegister()
598 return WriteRegisterRaw(reg_index, reg_valu in WriteRegister()
569 UpdateXSTATEforWrite(uint32_t reg_index) UpdateXSTATEforWrite() argument
588 const uint32_t reg_index = reg_info->kinds[lldb::eRegisterKindLLDB]; WriteRegister() local
921 CopyXSTATEtoYMM(uint32_t reg_index,lldb::ByteOrder byte_order) CopyXSTATEtoYMM() argument
1033 GetPtraceOffset(uint32_t reg_index) GetPtraceOffset() argument
[all...]
H A DNativeRegisterContextLinux_x86_64.h67 uint32_t GetPtraceOffset(uint32_t reg_index) override;
117 bool IsGPR(uint32_t reg_index) const;
119 bool IsFPR(uint32_t reg_index) const;
121 bool IsDR(uint32_t reg_index) const;
123 bool CopyXSTATEtoYMM(uint32_t reg_index, lldb::ByteOrder byte_order);
127 bool IsAVX(uint32_t reg_index) const;
133 bool IsMPX(uint32_t reg_index) const;
135 void UpdateXSTATEforWrite(uint32_t reg_index);
H A DNativeRegisterContextLinux.cpp27 Status NativeRegisterContextLinux::ReadRegisterRaw(uint32_t reg_index, in ReadRegisterRaw() argument
29 const RegisterInfo *const reg_info = GetRegisterInfoAtIndex(reg_index); in ReadRegisterRaw()
32 reg_index); in ReadRegisterRaw()
34 return DoReadRegisterValue(GetPtraceOffset(reg_index), reg_info->name, in ReadRegisterRaw()
39 NativeRegisterContextLinux::WriteRegisterRaw(uint32_t reg_index, in WriteRegisterRaw()
41 uint32_t reg_to_write = reg_index; in WriteRegisterRaw()
45 const RegisterInfo *reg_info = GetRegisterInfoAtIndex(reg_index); in WriteRegisterRaw()
46 assert(reg_info && "Expected valid register info for reg_index."); in WriteRegisterRaw()
97 return DoWriteRegisterValue(GetPtraceOffset(reg_index), reg_info->name, in WriteRegisterRaw()
38 WriteRegisterRaw(uint32_t reg_index,const RegisterValue & reg_value) WriteRegisterRaw() argument
H A DNativeRegisterContextLinux.h94 virtual Status ReadRegisterRaw(uint32_t reg_index, RegisterValue &reg_value);
96 virtual Status WriteRegisterRaw(uint32_t reg_index,
123 virtual uint32_t GetPtraceOffset(uint32_t reg_index) { in GetPtraceOffset() argument
124 return GetRegisterInfoAtIndex(reg_index)->byte_offset; in GetPtraceOffset()
H A DNativeRegisterContextLinux_s390x.cpp178 bool NativeRegisterContextLinux_s390x::IsGPR(uint32_t reg_index) const { in IsGPR()
181 return reg_index <= m_reg_info.last_gpr || reg_index == lldb_orig_r2_s390x; in IsGPR()
184 bool NativeRegisterContextLinux_s390x::IsFPR(uint32_t reg_index) const { in IsFPR()
185 return (m_reg_info.first_fpr <= reg_index && in IsFPR()
186 reg_index <= m_reg_info.last_fpr); in IsFPR()
/llvm-project/lldb/source/Plugins/Process/Utility/
H A DRegisterInfoPOSIX_riscv64.cpp132 uint32_t reg_index) const { in GetRegisterSetFromRegisterIndex()
134 if (reg_index >= regset_range.second.first && in GetRegisterSetFromRegisterIndex()
135 reg_index < regset_range.second.second) in GetRegisterSetFromRegisterIndex()
H A DRegisterInfoPOSIX_loongarch64.cpp197 uint32_t reg_index) const {
199 if (reg_index >= gpr_first_loongarch && reg_index <= gpr_last_loongarch)
201 if (reg_index >= fpr_first_loongarch && reg_index <= fpr_last_loongarch)
203 if (reg_index >= lsx_first_loongarch && reg_index <= lsx_last_loongarch)
205 if (reg_index >= lasx_first_loongarch && reg_index <= lasx_last_loongarch)
H A DNativeRegisterContextRegisterInfo.cpp32 uint32_t reg_index) const { in GetRegisterInfoAtIndex()
33 if (reg_index <= GetRegisterCount()) in GetRegisterInfoAtIndex()
34 return m_register_info_interface_up->GetRegisterInfo() + reg_index; in GetRegisterInfoAtIndex()
H A DRegisterInfos_i386.h26 #define YMM_OFFSET(reg_index) \ argument
30 (32 * reg_index))
32 #define BNDR_OFFSET(reg_index) \ argument
35 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]))
37 #define BNDC_OFFSET(reg_index) \ argument
40 LLVM_EXTENSION offsetof(XSAVE, mpxc[reg_index]))
H A DRegisterInfos_x86_64_with_base.h25 #define YMM_OFFSET(reg_index) \ argument
28 LLVM_EXTENSION offsetof(XSAVE, ymmh[0]) + (32 * reg_index))
33 #define BNDR_OFFSET(reg_index) \ argument
36 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]) + GDB_REMOTE_OFFSET)
38 #define BNDC_OFFSET(reg_index) \ argument
41 LLVM_EXTENSION offsetof(XSAVE, mpxc[reg_index]) + GDB_REMOTE_OFFSET)
363 #define UPDATE_DR_INFO(reg_index) \ argument
365 g_register_infos[lldb_dr##reg_index##_i386].byte_offset = \
366 DR_OFFSET(reg_index); \
H A DRegisterInfos_x86_64.h23 #define YMM_OFFSET(reg_index) \ argument
26 LLVM_EXTENSION offsetof(XSAVE, ymmh[0]) + (32 * reg_index))
31 #define BNDR_OFFSET(reg_index) \ argument
34 LLVM_EXTENSION offsetof(XSAVE, mpxr[reg_index]) + GDB_REMOTE_OFFSET)
36 #define BNDC_OFFSET(reg_index) \ argument
39 LLVM_EXTENSION offsetof(XSAVE, mpxc[reg_index]) + GDB_REMOTE_OFFSET)
378 #define UPDATE_DR_INFO(reg_index) \ argument
380 g_register_infos[lldb_dr##reg_index##_i386].byte_offset = \
381 DR_OFFSET(reg_index); \
H A DRegisterContextOpenBSD_i386.cpp51 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(dbreg, dr[reg_index])) argument
H A DRegisterInfoPOSIX_arm.cpp176 uint32_t reg_index) const { in GetRegisterSetFromRegisterIndex()
177 if (reg_index <= gpr_cpsr) in GetRegisterSetFromRegisterIndex()
179 if (reg_index <= fpu_q15) in GetRegisterSetFromRegisterIndex()
H A DRegisterContextFreeBSD_i386.cpp55 #define DR_OFFSET(reg_index) \ argument
57 LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
H A DRegisterContextNetBSD_i386.cpp68 #define DR_OFFSET(reg_index) \ argument
69 (LLVM_EXTENSION offsetof(UserArea, u_debugreg[reg_index]))
H A DRegisterContextOpenBSD_x86_64.cpp59 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(DBG, dr[reg_index])) argument
/llvm-project/lldb/source/Plugins/Instruction/LoongArch/
H A DEmulateInstructionLoongArch.cpp149 uint32_t reg_index) { in GetRegisterInfo() argument
151 switch (reg_index) { in GetRegisterInfo()
154 reg_index = gpr_pc_loongarch; in GetRegisterInfo()
158 reg_index = gpr_sp_loongarch; in GetRegisterInfo()
162 reg_index = gpr_fp_loongarch; in GetRegisterInfo()
166 reg_index = gpr_ra_loongarch; in GetRegisterInfo()
180 if (reg_index >= length || reg_kind != eRegisterKindLLDB) in GetRegisterInfo()
182 return array[reg_index]; in GetRegisterInfo()
/llvm-project/lldb/source/Plugins/Process/Windows/Common/
H A DNativeRegisterContextWindows_x86_64.h74 bool IsGPR(uint32_t reg_index) const;
75 bool IsFPR(uint32_t reg_index) const;
76 bool IsDR(uint32_t reg_index) const;
H A DNativeRegisterContextWindows_x86_64.cpp116 bool NativeRegisterContextWindows_x86_64::IsGPR(uint32_t reg_index) const { in IsGPR()
117 return (reg_index >= k_first_gpr_x86_64 && reg_index < k_first_alias_x86_64); in IsGPR()
120 bool NativeRegisterContextWindows_x86_64::IsFPR(uint32_t reg_index) const { in IsFPR()
121 return (reg_index >= lldb_xmm0_x86_64 && reg_index <= k_last_fpr_x86_64); in IsFPR()
124 bool NativeRegisterContextWindows_x86_64::IsDR(uint32_t reg_index) const { in IsDR()
125 return (reg_index >= lldb_dr0_x86_64 && reg_index <= lldb_dr7_x86_64); in IsDR()
H A DNativeRegisterContextWindows_WoW64.cpp94 bool NativeRegisterContextWindows_WoW64::IsGPR(uint32_t reg_index) const { in IsGPR()
95 return (reg_index >= k_first_gpr_i386 && reg_index < k_first_alias_i386); in IsGPR()
98 bool NativeRegisterContextWindows_WoW64::IsDR(uint32_t reg_index) const { in IsDR()
99 return (reg_index >= lldb_dr0_i386 && reg_index <= lldb_dr7_i386); in IsDR()
H A DNativeRegisterContextWindows_arm.cpp134 bool NativeRegisterContextWindows_arm::IsGPR(uint32_t reg_index) const { in IsGPR()
135 return (reg_index >= k_first_gpr_arm && reg_index <= k_last_gpr_arm); in IsGPR()
138 bool NativeRegisterContextWindows_arm::IsFPR(uint32_t reg_index) const { in IsFPR()
139 return (reg_index >= k_first_fpr_arm && reg_index <= k_last_fpr_arm); in IsFPR()
H A DNativeRegisterContextWindows_WoW64.h70 bool IsGPR(uint32_t reg_index) const;
71 bool IsDR(uint32_t reg_index) const;
H A DNativeRegisterContextWindows_i386.h70 bool IsGPR(uint32_t reg_index) const;
71 bool IsDR(uint32_t reg_index) const;
H A DNativeRegisterContextWindows_arm64.h72 bool IsGPR(uint32_t reg_index) const;
74 bool IsFPR(uint32_t reg_index) const;
/llvm-project/lldb/packages/Python/lldbsuite/test/tools/lldb-server/
H A Dgdbremote_testcase.py711 reg_index = 0
713 reg_info["lldb_register_index"] = reg_index
714 reg_index += 1
1239 reg_index = reg_info["lldb_register_index"]
1240 self.assertIsNotNone(reg_index)
1248 reg_index, thread_id
1251 p_request = "read packet: $p{:x}#00".format(reg_index)
1277 # print("reg (index={}, name={}): val={}, flipped bits (int={}, hex={:x})".format(reg_index, reg_info["name"], initial_reg_value, flipped_bits_int, flipped_bits_int))
1282 reg_index,
1290 reg_index,
[all...]

123