/llvm-project/lldb/source/Plugins/Process/Linux/ |
H A D | NativeRegisterContextLinux_x86_64.cpp | 570 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 D | NativeRegisterContextLinux_x86_64.h | 67 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 D | NativeRegisterContextLinux.cpp | 27 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 D | NativeRegisterContextLinux.h | 94 virtual Status ReadRegisterRaw(uint32_t reg_index, RegisterValue ®_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 D | NativeRegisterContextLinux_s390x.cpp | 178 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 D | RegisterInfoPOSIX_riscv64.cpp | 132 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 D | RegisterInfoPOSIX_loongarch64.cpp | 197 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 D | NativeRegisterContextRegisterInfo.cpp | 32 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 D | RegisterInfos_i386.h | 26 #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 D | RegisterInfos_x86_64_with_base.h | 25 #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 D | RegisterInfos_x86_64.h | 23 #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 D | RegisterContextOpenBSD_i386.cpp | 51 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(dbreg, dr[reg_index])) argument
|
H A D | RegisterInfoPOSIX_arm.cpp | 176 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 D | RegisterContextFreeBSD_i386.cpp | 55 #define DR_OFFSET(reg_index) \ argument 57 LLVM_EXTENSION offsetof(DBG, dr[reg_index]))
|
H A D | RegisterContextNetBSD_i386.cpp | 68 #define DR_OFFSET(reg_index) \ argument 69 (LLVM_EXTENSION offsetof(UserArea, u_debugreg[reg_index]))
|
H A D | RegisterContextOpenBSD_x86_64.cpp | 59 #define DR_OFFSET(reg_index) (LLVM_EXTENSION offsetof(DBG, dr[reg_index])) argument
|
/llvm-project/lldb/source/Plugins/Instruction/LoongArch/ |
H A D | EmulateInstructionLoongArch.cpp | 149 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 D | NativeRegisterContextWindows_x86_64.h | 74 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 D | NativeRegisterContextWindows_x86_64.cpp | 116 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 D | NativeRegisterContextWindows_WoW64.cpp | 94 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 D | NativeRegisterContextWindows_arm.cpp | 134 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 D | NativeRegisterContextWindows_WoW64.h | 70 bool IsGPR(uint32_t reg_index) const; 71 bool IsDR(uint32_t reg_index) const;
|
H A D | NativeRegisterContextWindows_i386.h | 70 bool IsGPR(uint32_t reg_index) const; 71 bool IsDR(uint32_t reg_index) const;
|
H A D | NativeRegisterContextWindows_arm64.h | 72 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 D | gdbremote_testcase.py | 711 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...] |