Home
last modified time | relevance | path

Searched refs:reg_num (Results 1 – 25 of 47) sorted by relevance

12

/external/lldb/source/Plugins/Instruction/ARM/
DEmulationStateARM.cpp41 uint32_t reg_num; in LoadPseudoRegistersFromFrame() local
45 reg_num = reg_ctx->ConvertRegisterKindToRegisterNumber (eRegisterKindDWARF, i); in LoadPseudoRegistersFromFrame()
46 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex (reg_num); in LoadPseudoRegistersFromFrame()
58 reg_num = reg_ctx->ConvertRegisterKindToRegisterNumber (eRegisterKindDWARF, i); in LoadPseudoRegistersFromFrame()
60 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex (reg_num); in LoadPseudoRegistersFromFrame()
78 EmulationStateARM::StorePseudoRegisterValue (uint32_t reg_num, uint64_t value) in StorePseudoRegisterValue() argument
80 if ((dwarf_r0 <= reg_num) && (reg_num <= dwarf_cpsr)) in StorePseudoRegisterValue()
81 m_gpr[reg_num - dwarf_r0] = (uint32_t) value; in StorePseudoRegisterValue()
82 else if ((dwarf_s0 <= reg_num) && (reg_num <= dwarf_s31)) in StorePseudoRegisterValue()
84 uint32_t idx = reg_num - dwarf_s0; in StorePseudoRegisterValue()
[all …]
DEmulationStateARM.h27 StorePseudoRegisterValue (uint32_t reg_num, uint64_t value);
30 ReadPseudoRegisterValue (uint32_t reg_num, bool &success);
/external/lldb/source/Symbol/
DUnwindPlan.cpp37 return m_location.reg_num == rhs.m_location.reg_num; in operator ==()
130 other_reg_info = unwind_plan->GetRegisterInfo (thread, m_location.reg_num); in Dump()
134 s.Printf ("=reg(%u)", m_location.reg_num); in Dump()
199 UnwindPlan::Row::GetRegisterInfo (uint32_t reg_num, UnwindPlan::Row::RegisterLocation& register_loc… in GetRegisterInfo() argument
201 collection::const_iterator pos = m_register_locations.find(reg_num); in GetRegisterInfo()
211 UnwindPlan::Row::SetRegisterInfo (uint32_t reg_num, const UnwindPlan::Row::RegisterLocation registe… in SetRegisterInfo() argument
213 m_register_locations[reg_num] = register_location; in SetRegisterInfo()
217 UnwindPlan::Row::SetRegisterLocationToAtCFAPlusOffset (uint32_t reg_num, int32_t offset, bool can_r… in SetRegisterLocationToAtCFAPlusOffset() argument
219 if (!can_replace && m_register_locations.find(reg_num) != m_register_locations.end()) in SetRegisterLocationToAtCFAPlusOffset()
223 m_register_locations[reg_num] = reg_loc; in SetRegisterLocationToAtCFAPlusOffset()
[all …]
DDWARFCallFrameInfo.cpp270 uint32_t reg_num = (uint32_t)m_cfi_data.GetULEB128(&offset); in ParseCIE() local
272 cie_sp->initial_row.SetCFARegister (reg_num); in ParseCIE()
284 uint32_t reg_num = extended_opcode; in ParseCIE() local
288 cie_sp->initial_row.SetRegisterInfo (reg_num, reg_location); in ParseCIE()
434 uint32_t reg_num = 0; in FDEToUnwindPlan() local
480 reg_num = extended_opcode; in FDEToUnwindPlan()
483 row->SetRegisterInfo (reg_num, reg_location); in FDEToUnwindPlan()
492 reg_num = extended_opcode; in FDEToUnwindPlan()
498 …nd_plan.IsValidRowIndex(0) && unwind_plan.GetRowAtIndex(0)->GetRegisterInfo(reg_num, reg_location)) in FDEToUnwindPlan()
499 row->SetRegisterInfo (reg_num, reg_location); in FDEToUnwindPlan()
[all …]
/external/lldb/source/Core/
DEmulateInstruction.cpp78 EmulateInstruction::ReadRegister (uint32_t reg_kind, uint32_t reg_num, RegisterValue& reg_value) in ReadRegister() argument
81 if (GetRegisterInfo(reg_kind, reg_num, reg_info)) in ReadRegister()
88 uint32_t reg_num, in ReadRegisterUnsigned() argument
93 if (ReadRegister (reg_kind, reg_num, reg_value)) in ReadRegisterUnsigned()
126 uint32_t reg_num, in WriteRegister() argument
130 if (GetRegisterInfo(reg_kind, reg_num, reg_info)) in WriteRegister()
139 uint32_t reg_num, in WriteRegisterUnsigned() argument
144 if (GetRegisterInfo(reg_kind, reg_num, reg_info)) in WriteRegisterUnsigned()
395 uint32_t reg_kind, reg_num; in ReadRegisterDefault() local
396 if (GetBestRegisterKindAndNumber (reg_info, reg_kind, reg_num)) in ReadRegisterDefault()
[all …]
DValueObjectRegister.cpp257 ValueObjectRegister::ConstructObject (uint32_t reg_num) in ConstructObject() argument
259 const RegisterInfo *reg_info = m_reg_ctx_sp->GetRegisterInfoAtIndex (reg_num); in ConstructObject()
270 …:ValueObjectRegister (ValueObject &parent, lldb::RegisterContextSP &reg_ctx_sp, uint32_t reg_num) : in ValueObjectRegister() argument
279 ConstructObject(reg_num); in ValueObjectRegister()
283 …r::Create (ExecutionContextScope *exe_scope, lldb::RegisterContextSP &reg_ctx_sp, uint32_t reg_num) in Create() argument
285 return (new ValueObjectRegister (exe_scope, reg_ctx_sp, reg_num))->GetSP(); in Create()
288 …ctRegister (ExecutionContextScope *exe_scope, lldb::RegisterContextSP &reg_ctx, uint32_t reg_num) : in ValueObjectRegister() argument
297 ConstructObject(reg_num); in ValueObjectRegister()
/external/lldb/include/lldb/Symbol/
DUnwindPlan.h152 SetInRegister (uint32_t reg_num) in SetInRegister() argument
155 m_location.reg_num = reg_num; in SetInRegister()
162 return m_location.reg_num; in GetRegisterNumber()
231 uint32_t reg_num; // The register number member
255 GetRegisterInfo (uint32_t reg_num, RegisterLocation& register_location) const;
258 SetRegisterInfo (uint32_t reg_num, const RegisterLocation register_location);
285 SetRegisterLocationToAtCFAPlusOffset (uint32_t reg_num,
290 SetRegisterLocationToIsCFAPlusOffset (uint32_t reg_num,
295 SetRegisterLocationToUndefined (uint32_t reg_num,
300 SetRegisterLocationToUnspecified (uint32_t reg_num,
[all …]
/external/v8/test/cctest/
Dtest-code-stubs-x87.cc72 int reg_num = 0; in MakeConvertDToIFuncTrampoline() local
73 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
74 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
91 for (--reg_num; reg_num >= 0; --reg_num) { in MakeConvertDToIFuncTrampoline()
92 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-ia32.cc72 int reg_num = 0; in MakeConvertDToIFuncTrampoline() local
73 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
74 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
91 for (--reg_num; reg_num >= 0; --reg_num) { in MakeConvertDToIFuncTrampoline()
92 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-x64.cc76 int reg_num = 0; in MakeConvertDToIFuncTrampoline() local
77 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
78 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
94 for (--reg_num; reg_num >= 0; --reg_num) { in MakeConvertDToIFuncTrampoline()
95 Register reg = Register::FromAllocationIndex(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-arm.cc78 int reg_num = 0; in MakeConvertDToIFuncTrampoline() local
79 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
80 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
106 for (--reg_num; reg_num >= 0; --reg_num) { in MakeConvertDToIFuncTrampoline()
107 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-mips.cc76 int reg_num = 2; in MakeConvertDToIFuncTrampoline() local
77 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
78 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
104 for (--reg_num; reg_num >= 2; --reg_num) { in MakeConvertDToIFuncTrampoline()
105 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-arm64.cc74 int reg_num = 0; in MakeConvertDToIFuncTrampoline() local
75 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
76 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
102 for (--reg_num; reg_num >= 0; --reg_num) { in MakeConvertDToIFuncTrampoline()
103 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
Dtest-code-stubs-mips64.cc76 int reg_num = 2; in MakeConvertDToIFuncTrampoline() local
77 for (;reg_num < Register::NumAllocatableRegisters(); ++reg_num) { in MakeConvertDToIFuncTrampoline()
78 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
104 for (--reg_num; reg_num >= 2; --reg_num) { in MakeConvertDToIFuncTrampoline()
105 Register reg = Register::from_code(reg_num); in MakeConvertDToIFuncTrampoline()
/external/lldb/source/Target/
DThreadPlanTracer.cpp264 for (uint32_t reg_num = 0, num_registers = reg_ctx->GetRegisterCount(); in Log() local
265 reg_num < num_registers; in Log()
266 ++reg_num) in Log()
268 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex(reg_num); in Log()
271 assert (reg_num < m_register_values.size()); in Log()
272 if (m_register_values[reg_num].GetType() == RegisterValue::eTypeInvalid || in Log()
273 reg_value != m_register_values[reg_num]) in Log()
281 m_register_values[reg_num] = reg_value; in Log()
/external/lldb/source/Utility/
DARM_DWARF_Registers.cpp19 GetARMDWARFRegisterName (unsigned reg_num) in GetARMDWARFRegisterName() argument
21 switch (reg_num) in GetARMDWARFRegisterName()
209 GetARMDWARFRegisterInfo (unsigned reg_num, RegisterInfo &reg_info) in GetARMDWARFRegisterInfo() argument
214 if (reg_num >= dwarf_q0 && reg_num <= dwarf_q15) in GetARMDWARFRegisterInfo()
221 if (reg_num >= dwarf_d0 && reg_num <= dwarf_d31) in GetARMDWARFRegisterInfo()
227 else if (reg_num >= dwarf_s0 && reg_num <= dwarf_s31) in GetARMDWARFRegisterInfo()
233 else if (reg_num >= dwarf_f0 && reg_num <= dwarf_f7) in GetARMDWARFRegisterInfo()
246 reg_info.kinds[eRegisterKindDWARF] = reg_num; in GetARMDWARFRegisterInfo()
248 switch (reg_num) in GetARMDWARFRegisterInfo()
/external/lldb/source/Plugins/Process/gdb-remote/
DGDBRemoteRegisterContext.h54 const uint32_t reg_num = (uint32_t)m_regs.size(); in AddRegister() local
64 m_value_regs_map[reg_num].push_back(reg_info.value_regs[i]); in AddRegister()
65 m_value_regs_map[reg_num].push_back(LLDB_INVALID_REGNUM); in AddRegister()
66 reg_info.value_regs = m_value_regs_map[reg_num].data(); in AddRegister()
71 m_invalidate_regs_map[reg_num].push_back(reg_info.invalidate_regs[i]); in AddRegister()
72 m_invalidate_regs_map[reg_num].push_back(LLDB_INVALID_REGNUM); in AddRegister()
73 reg_info.invalidate_regs = m_invalidate_regs_map[reg_num].data(); in AddRegister()
80 m_set_reg_nums[set].push_back(reg_num); in AddRegister()
/external/lldb/source/Plugins/UnwindAssembly/InstEmulation/
DUnwindAssemblyInstEmulation.cpp359 uint32_t reg_kind, reg_num; in MakeRegisterKindValuePair() local
360 if (EmulateInstruction::GetBestRegisterKindAndNumber (&reg_info, reg_kind, reg_num)) in MakeRegisterKindValuePair()
361 return (uint64_t)reg_kind << 24 | reg_num; in MakeRegisterKindValuePair()
479 uint32_t reg_num = LLDB_INVALID_REGNUM; in WriteMemory() local
484reg_num = context.info.RegisterToRegisterPlusOffset.data_reg.kinds[unwind_reg_kind]; in WriteMemory()
493 if (reg_num != LLDB_INVALID_REGNUM) in WriteMemory()
495 if (m_pushed_regs.find (reg_num) == m_pushed_regs.end()) in WriteMemory()
497 m_pushed_regs[reg_num] = addr; in WriteMemory()
499 … m_curr_row->SetRegisterLocationToAtCFAPlusOffset (reg_num, offset, cant_replace); in WriteMemory()
634 const uint32_t reg_num = reg_info->kinds[m_unwind_plan_ptr->GetRegisterKind()]; in WriteRegister() local
[all …]
/external/lldb/source/Plugins/Process/Utility/
DRegisterContextMemory.cpp109 const uint32_t reg_num = reg_info->kinds[eRegisterKindLLDB]; in ReadRegister() local
110 if (!m_reg_valid[reg_num]) in ReadRegister()
124 const uint32_t reg_num = reg_info->kinds[eRegisterKindLLDB]; in WriteRegister() local
127 m_reg_valid[reg_num] = false; in WriteRegister()
/external/lldb/include/lldb/Core/
DValueObjectRegister.h134 … Create (ExecutionContextScope *exe_scope, lldb::RegisterContextSP &reg_ctx_sp, uint32_t reg_num);
181 ConstructObject (uint32_t reg_num);
184 … ValueObjectRegister (ValueObject &parent, lldb::RegisterContextSP &reg_ctx_sp, uint32_t reg_num);
185 …Register (ExecutionContextScope *exe_scope, lldb::RegisterContextSP &reg_ctx_sp, uint32_t reg_num);
DEmulateInstruction.h412 GetRegisterInfo (uint32_t reg_kind, uint32_t reg_num, RegisterInfo &reg_info) = 0;
424 TranslateRegister (uint32_t reg_kind, uint32_t reg_num, std::string &reg_name);
453 uint32_t reg_num,
459 uint32_t reg_num,
464 uint32_t reg_num,
471 uint32_t reg_num,
615 uint32_t &reg_num);
/external/lldb/source/Expression/
DDWARFExpression.cpp430 uint32_t reg_num = op - DW_OP_reg0; in DumpLocation() local
434 if (abi->GetRegisterInfoByKind(m_reg_kind, reg_num, reg_info)) in DumpLocation()
448 s->Printf("DW_OP_reg%u", reg_num); break; in DumpLocation()
485 uint32_t reg_num = op - DW_OP_breg0; in DumpLocation() local
490 if (abi->GetRegisterInfoByKind(m_reg_kind, reg_num, reg_info)) in DumpLocation()
504 s->Printf("DW_OP_breg%i(0x%" PRIx64 ")", reg_num, reg_offset); in DumpLocation()
510 uint32_t reg_num = m_data.GetULEB128(&offset); in DumpLocation() local
514 if (abi->GetRegisterInfoByKind(m_reg_kind, reg_num, reg_info)) in DumpLocation()
528 s->Printf("DW_OP_regx(%" PRIu32 ")", reg_num); break; in DumpLocation()
536 uint32_t reg_num = m_data.GetULEB128(&offset); in DumpLocation() local
[all …]
/external/lldb/examples/python/
Dgdbremote.py484 reg_num = Packet(key).get_hex_uint8()
485 print ' ' + get_register_name_equal_value (options, reg_num, value)
718 def get_register_name_equal_value(options, reg_num, hex_value_str): argument
719 if reg_num < len(g_register_infos):
720 reg_info = g_register_infos[reg_num]
734 return 'reg(%u) = 0x%x' % (reg_num, reg_value)
738 reg_num = packet.get_hex_uint('big')
741 if reg_num < len(g_register_infos):
742 name = g_register_infos[reg_num].name ()
747 s = 'read_register (reg_num=%u' % reg_num
[all …]
/external/ltrace/sysdeps/linux-gnu/ppc/
Dfetch.c173 read_gpr(struct fetch_context *ctx, struct process *proc, int reg_num) in read_gpr() argument
176 return ctx->regs.r32[reg_num]; in read_gpr()
178 return ctx->regs.r64[reg_num]; in read_gpr()
224 int reg_num = ctx->greg++; in allocate_gpr() local
240 u.i64 = read_gpr(ctx, proc, reg_num); in allocate_gpr()
/external/v8/src/arm64/
Ddisasm-arm64.cc1302 unsigned reg_num = 0; in SubstituteRegisterField() local
1305 case 'd': reg_num = instr->Rd(); break; in SubstituteRegisterField()
1306 case 'n': reg_num = instr->Rn(); break; in SubstituteRegisterField()
1307 case 'm': reg_num = instr->Rm(); break; in SubstituteRegisterField()
1308 case 'a': reg_num = instr->Ra(); break; in SubstituteRegisterField()
1311 reg_num = instr->Rt2(); in SubstituteRegisterField()
1314 reg_num = instr->Rt(); in SubstituteRegisterField()
1338 if ((reg_num != kZeroRegCode) || (reg_type == 's') || (reg_type == 'd')) { in SubstituteRegisterField()
1342 if ((reg_type == 'x') && (reg_num == 27)) { in SubstituteRegisterField()
1344 } else if ((reg_type == 'x') && (reg_num == 28)) { in SubstituteRegisterField()
[all …]

12