Lines Matching refs:reg
70 for (uint32_t reg = start_idx; reg < num_registers; ++reg)
72 const RegisterInfo * reg_info = GetRegisterInfoAtIndex(reg);
85 RegisterContext::GetRegisterName (uint32_t reg)
87 const RegisterInfo * reg_info = GetRegisterInfoAtIndex(reg);
96 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC);
97 return ReadRegisterAsUnsigned (reg, fail_value);
103 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_PC);
104 bool success = WriteRegisterFromUnsigned (reg, pc);
119 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP);
120 return ReadRegisterAsUnsigned (reg, fail_value);
126 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_SP);
127 return WriteRegisterFromUnsigned (reg, sp);
133 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_FP);
134 return ReadRegisterAsUnsigned (reg, fail_value);
140 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_FP);
141 return WriteRegisterFromUnsigned (reg, fp);
147 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_RA);
148 return ReadRegisterAsUnsigned (reg, fail_value);
154 uint32_t reg = ConvertRegisterKindToRegisterNumber (eRegisterKindGeneric, LLDB_REGNUM_GENERIC_FLAGS);
155 return ReadRegisterAsUnsigned (reg, fail_value);
160 RegisterContext::ReadRegisterAsUnsigned (uint32_t reg, uint64_t fail_value)
162 if (reg != LLDB_INVALID_REGNUM)
163 return ReadRegisterAsUnsigned (GetRegisterInfoAtIndex (reg), fail_value);
180 RegisterContext::WriteRegisterFromUnsigned (uint32_t reg, uint64_t uval)
182 if (reg == LLDB_INVALID_REGNUM)
184 return WriteRegisterFromUnsigned (GetRegisterInfoAtIndex (reg), uval);
219 const uint32_t reg = reg_set->registers[reg_idx];
220 const RegisterInfo *reg_info = GetRegisterInfoAtIndex(reg);
460 for (uint32_t reg = 0; reg < num_registers; ++reg)
462 const RegisterInfo * reg_info = GetRegisterInfoAtIndex (reg);
481 //RegisterContext::ReadRegisterValue (uint32_t reg, Scalar &value)
484 // if (!ReadRegisterBytes (reg, data))
487 // const RegisterInfo *reg_info = GetRegisterInfoAtIndex (reg);
591 //RegisterContext::WriteRegisterValue (uint32_t reg, const Scalar &value)
599 // return WriteRegisterBytes (reg, data);