Moved GDB supported feature set to DebugSession object

This commit is contained in:
Nav
2022-05-14 22:38:49 +01:00
parent 39d2bb7c5a
commit 6a4bf89706
5 changed files with 55 additions and 8 deletions

View File

@@ -64,9 +64,6 @@ namespace Bloom::DebugServer::Gdb::CommandPackets
}
// Respond with a SupportedFeaturesResponse packet, listing all supported GDB features by Bloom
debugSession.connection.writePacket(SupportedFeaturesResponse({
{Feature::SOFTWARE_BREAKPOINTS, std::nullopt},
{Feature::PACKET_SIZE, std::to_string(debugSession.connection.getMaxPacketSize())},
}));
debugSession.connection.writePacket(SupportedFeaturesResponse(debugSession.supportedFeatures));
}
}