Renamed DebugSession::targetDescriptor to DebugSession::gdbTargetDescriptor

This commit is contained in:
Nav
2022-05-04 19:49:18 +01:00
parent cfb1152423
commit 38f6f21627
4 changed files with 5 additions and 5 deletions

View File

@@ -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()) {

View File

@@ -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

View File

@@ -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() {

View File

@@ -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