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");
try {
const auto& targetDescriptor = debugSession.targetDescriptor;
const auto& targetDescriptor = debugSession.gdbTargetDescriptor;
auto descriptors = TargetRegisterDescriptors();
if (this->registerNumber.has_value()) {

View File

@@ -46,7 +46,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
Logger::debug("Handling WriteRegister packet");
try {
auto targetRegisterDescriptor = debugSession.targetDescriptor.getTargetRegisterDescriptorFromNumber(
auto targetRegisterDescriptor = debugSession.gdbTargetDescriptor.getTargetRegisterDescriptorFromNumber(
this->registerNumber
);
@@ -63,7 +63,7 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
}
if (this->registerValue.size() > targetRegisterDescriptor.size) {
const auto& gdbRegisterDescriptor = debugSession.targetDescriptor.getRegisterDescriptorFromNumber(
const auto& gdbRegisterDescriptor = debugSession.gdbTargetDescriptor.getRegisterDescriptorFromNumber(
this->registerNumber
);
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)
: connection(std::move(connection))
, targetDescriptor(targetDescriptor)
, gdbTargetDescriptor(targetDescriptor)
{}
void DebugSession::terminate() {

View File

@@ -12,7 +12,7 @@ namespace Bloom::DebugServer::Gdb
public:
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