Lines Matching refs:reg
159 #define GPR_SIZE(reg) sizeof(((RegisterContext_i386::GPR*)NULL)->reg) argument
162 #define FPR_SIZE(reg) sizeof(((RegisterContext_i386::FPU*)NULL)->reg) argument
170 #define DEFINE_GPR(reg, alt, kind1, kind2, kind3, kind4) \ argument
171 { #reg, alt, GPR_SIZE(reg), GPR_OFFSET(reg), eEncodingUint, \
172 eFormatHex, { kind1, kind2, kind3, kind4, gpr_##reg }, NULL, NULL }
174 #define DEFINE_FPR(reg, kind1, kind2, kind3, kind4) \ argument
175 { #reg, NULL, FPR_SIZE(reg), FPR_OFFSET(reg), eEncodingUint, \
176 eFormatHex, { kind1, kind2, kind3, kind4, fpu_##reg }, NULL, NULL }
178 #define DEFINE_FP(reg, i) \ argument
179 { #reg#i, NULL, FP_SIZE, LLVM_EXTENSION FPR_OFFSET(reg[i]), \
181 { dwarf_##reg##i, dwarf_##reg##i, \
182 LLDB_INVALID_REGNUM, gdb_##reg##i, fpu_##reg##i }, NULL, NULL }
184 #define DEFINE_XMM(reg, i) \ argument
185 { #reg#i, NULL, XMM_SIZE, LLVM_EXTENSION FPR_OFFSET(reg[i]), \
187 { dwarf_##reg##i, dwarf_##reg##i, \
188 LLDB_INVALID_REGNUM, gdb_##reg##i, fpu_##reg##i }, NULL, NULL }
247 static unsigned GetRegOffset(unsigned reg) in GetRegOffset() argument
249 assert(reg < k_num_registers && "Invalid register number."); in GetRegOffset()
250 return g_register_infos[reg].byte_offset; in GetRegOffset()
253 static unsigned GetRegSize(unsigned reg) in GetRegSize() argument
255 assert(reg < k_num_registers && "Invalid register number."); in GetRegSize()
256 return g_register_infos[reg].byte_size; in GetRegSize()
295 RegisterContext_i386::GetRegisterInfoAtIndex(size_t reg) in GetRegisterInfoAtIndex() argument
298 if (reg < k_num_registers) in GetRegisterInfoAtIndex()
299 return &g_register_infos[reg]; in GetRegisterInfoAtIndex()
322 unsigned reg; in GetRegisterIndexFromOffset() local
323 for (reg = 0; reg < k_num_registers; reg++) in GetRegisterIndexFromOffset()
325 if (g_register_infos[reg].byte_offset == offset) in GetRegisterIndexFromOffset()
328 assert(reg < k_num_registers && "Invalid register offset."); in GetRegisterIndexFromOffset()
329 return reg; in GetRegisterIndexFromOffset()
333 RegisterContext_i386::GetRegisterName(unsigned reg) in GetRegisterName() argument
335 assert(reg < k_num_registers && "Invalid register offset."); in GetRegisterName()
336 return g_register_infos[reg].name; in GetRegisterName()
343 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB]; in ReadRegister() local
345 return monitor.ReadRegisterValue(m_thread.GetID(), GetRegOffset(reg), in ReadRegister()
346 GetRegisterName(reg), GetRegSize(reg), value); in ReadRegister()
358 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB]; in WriteRegister() local
360 return monitor.WriteRegisterValue(m_thread.GetID(), GetRegOffset(reg), in WriteRegister()
361 GetRegisterName(reg), value); in WriteRegister()
529 uint32_t reg = gpr_eax + i; in LogGPR() local
530 … log->Printf("%12s = 0x%8.8" PRIx64, g_register_infos[reg].name, ((uint64_t*)&user.regs)[reg]); in LogGPR()