Home | History | Annotate | Download | only in gdb-remote

Lines Matching refs:reg_info

40     GDBRemoteDynamicRegisterInfo &reg_info,
44 m_reg_info (reg_info),
52 m_reg_valid.resize (reg_info.GetNumRegisters());
55 DataBufferSP reg_data_sp(new DataBufferHeap (reg_info.GetRegisterDataByteSize(), 0));
110 GDBRemoteRegisterContext::ReadRegister (const RegisterInfo *reg_info, RegisterValue &value)
113 if (ReadRegisterBytes (reg_info, m_reg_data))
116 Error error (value.SetValueFromData(reg_info, m_reg_data, reg_info->byte_offset, partial_data_ok));
125 const RegisterInfo *reg_info = GetRegisterInfoAtIndex (reg);
126 if (reg_info == NULL)
132 const uint32_t reg_byte_size = reg_info->byte_size;
133 const size_t bytes_copied = response.GetHexBytes (const_cast<uint8_t*>(m_reg_data.PeekData(reg_info->byte_offset, reg_byte_size)), reg_byte_size, '\xcc');
150 GDBRemoteRegisterContext::GetPrimordialRegister(const lldb_private::RegisterInfo *reg_info,
156 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB];
168 GDBRemoteRegisterContext::ReadRegisterBytes (const RegisterInfo *reg_info, DataExtractor &data)
181 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB];
210 else if (reg_info->value_regs)
219 const uint32_t prim_reg = reg_info->value_regs[idx];
239 SetRegisterIsValid (reg_info, true);
245 GetPrimordialRegister(reg_info, gdb_comm);
264 log->Printf("error: failed to get packet sequence mutex, not sending read register for \"%s\":\n%s", reg_info->name, strm.GetData());
268 log->Printf("error: failed to get packet sequence mutex, not sending read register for \"%s\"", reg_info->name);
287 data.SetData (m_reg_data, reg_info->byte_offset, reg_info->byte_size);
293 GDBRemoteRegisterContext::WriteRegister (const RegisterInfo *reg_info,
298 return WriteRegisterBytes (reg_info, data, 0);
304 GDBRemoteRegisterContext::SetPrimordialRegister(const lldb_private::RegisterInfo *reg_info,
309 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB];
311 packet.PutBytesAsRawHex8 (m_reg_data.PeekData(reg_info->byte_offset, reg_info->byte_size),
312 reg_info->byte_size,
355 GDBRemoteRegisterContext::WriteRegisterBytes (const lldb_private::RegisterInfo *reg_info, DataExtractor &data, uint32_t data_offset)
372 uint8_t *dst = const_cast<uint8_t*>(m_reg_data.PeekData(reg_info->byte_offset, reg_info->byte_size));
379 reg_info->byte_size, // src length
381 reg_info->byte_size, // dst length
425 if (reg_info->value_regs)
435 const uint32_t reg = reg_info->value_regs[idx];
450 success = SetPrimordialRegister(reg_info, gdb_comm);
455 if (reg_info->invalidate_regs)
457 for (uint32_t idx = 0, reg = reg_info->invalidate_regs[0];
459 reg = reg_info->invalidate_regs[++idx])
478 log->Printf("error: failed to get packet sequence mutex, not sending write register for \"%s\":\n%s", reg_info->name, strm.GetData());
481 log->Printf("error: failed to get packet sequence mutex, not sending write register for \"%s\"", reg_info->name);
617 //ReadRegisterBytes (const RegisterInfo *reg_info, RegisterValue &value, DataExtractor &data)
618 const RegisterInfo *reg_info;
622 for (uint32_t reg_idx=0; (reg_info = GetRegisterInfoAtIndex (reg_idx)) != NULL; ++reg_idx, reg_byte_offset += reg_info->byte_size)
624 const uint32_t reg = reg_info->kinds[eRegisterKindLLDB];
627 if (reg_info->value_regs)
633 const uint32_t reg_byte_size = reg_info->byte_size;
956 const RegisterInfo *reg_info = GetRegisterInfoAtIndex(j);
958 if (reg_info && reg_info->name && ::strcasecmp(reg_info->name, reg_name) == 0)
962 g_comp_register_infos[i].byte_offset = reg_info->byte_offset;