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");
|
||||
|
||||
try {
|
||||
const auto& targetDescriptor = debugSession.targetDescriptor;
|
||||
const auto& targetDescriptor = debugSession.gdbTargetDescriptor;
|
||||
auto descriptors = TargetRegisterDescriptors();
|
||||
|
||||
if (this->registerNumber.has_value()) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user