Target register tidying
This commit is contained in:
@@ -15,7 +15,6 @@ namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
{
|
||||
public:
|
||||
Signal signal;
|
||||
std::optional<Targets::TargetRegisterMap> registerMap;
|
||||
std::optional<StopReason> stopReason;
|
||||
|
||||
explicit TargetStopped(Signal signal): signal(signal) {}
|
||||
@@ -32,13 +31,6 @@ namespace Bloom::DebugServers::Gdb::ResponsePackets
|
||||
}
|
||||
}
|
||||
|
||||
if (this->registerMap.has_value()) {
|
||||
for (const auto& [registerId, registerValue] : this->registerMap.value()) {
|
||||
output += Packet::dataToHex({static_cast<unsigned char>(registerId)});
|
||||
output += ":" + Packet::dataToHex(registerValue.value) + ";";
|
||||
}
|
||||
}
|
||||
|
||||
return std::vector<unsigned char>(output.begin(), output.end());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user