Renamed DebugSession::targetDescriptor to DebugSession::gdbTargetDescriptor
This commit is contained in:
@@ -34,7 +34,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
|
|||||||
Logger::debug("Handling ReadRegisters packet");
|
Logger::debug("Handling ReadRegisters packet");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const auto& targetDescriptor = debugSession.targetDescriptor;
|
const auto& targetDescriptor = debugSession.gdbTargetDescriptor;
|
||||||
auto descriptors = TargetRegisterDescriptors();
|
auto descriptors = TargetRegisterDescriptors();
|
||||||
|
|
||||||
if (this->registerNumber.has_value()) {
|
if (this->registerNumber.has_value()) {
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
|
|||||||
Logger::debug("Handling WriteRegister packet");
|
Logger::debug("Handling WriteRegister packet");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
auto targetRegisterDescriptor = debugSession.targetDescriptor.getTargetRegisterDescriptorFromNumber(
|
auto targetRegisterDescriptor = debugSession.gdbTargetDescriptor.getTargetRegisterDescriptorFromNumber(
|
||||||
this->registerNumber
|
this->registerNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -63,7 +63,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this->registerValue.size() > targetRegisterDescriptor.size) {
|
if (this->registerValue.size() > targetRegisterDescriptor.size) {
|
||||||
const auto& gdbRegisterDescriptor = debugSession.targetDescriptor.getRegisterDescriptorFromNumber(
|
const auto& gdbRegisterDescriptor = debugSession.gdbTargetDescriptor.getRegisterDescriptorFromNumber(
|
||||||
this->registerNumber
|
this->registerNumber
|
||||||
);
|
);
|
||||||
throw Exception("Cannot set value for " + gdbRegisterDescriptor.name
|
throw Exception("Cannot set value for " + gdbRegisterDescriptor.name
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ namespace Bloom::DebugServer::Gdb
|
|||||||
{
|
{
|
||||||
DebugSession::DebugSession(Connection&& connection, const TargetDescriptor& targetDescriptor)
|
DebugSession::DebugSession(Connection&& connection, const TargetDescriptor& targetDescriptor)
|
||||||
: connection(std::move(connection))
|
: connection(std::move(connection))
|
||||||
, targetDescriptor(targetDescriptor)
|
, gdbTargetDescriptor(targetDescriptor)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
void DebugSession::terminate() {
|
void DebugSession::terminate() {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ namespace Bloom::DebugServer::Gdb
|
|||||||
public:
|
public:
|
||||||
Connection connection;
|
Connection connection;
|
||||||
|
|
||||||
const TargetDescriptor& targetDescriptor;
|
const TargetDescriptor& gdbTargetDescriptor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When the GDB client is waiting for the target to halt, this is set to true so we know when to notify the
|
* When the GDB client is waiting for the target to halt, this is set to true so we know when to notify the
|
||||||
|
|||||||
Reference in New Issue
Block a user