Target register tidying

This commit is contained in:
Nav
2021-07-20 19:21:18 +01:00
parent c0b99516d3
commit 8a048311ac
3 changed files with 11 additions and 21 deletions

View File

@@ -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());
}
};