2023-09-10 22:27:10 +01:00
|
|
|
#include "VContSupportedActionsQuery.hpp"
|
|
|
|
|
|
|
|
|
|
#include "src/DebugServer/Gdb/ResponsePackets/ResponsePacket.hpp"
|
|
|
|
|
|
|
|
|
|
#include "src/Logger/Logger.hpp"
|
|
|
|
|
|
|
|
|
|
namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
|
|
|
|
{
|
|
|
|
|
using Services::TargetControllerService;
|
|
|
|
|
|
|
|
|
|
VContSupportedActionsQuery::VContSupportedActionsQuery(const RawPacket& rawPacket)
|
|
|
|
|
: CommandPacket(rawPacket)
|
|
|
|
|
{}
|
|
|
|
|
|
|
|
|
|
void VContSupportedActionsQuery::handle(Gdb::DebugSession& debugSession, TargetControllerService& targetControllerService) {
|
|
|
|
|
Logger::info("Handling VContSupportedActionsQuery packet");
|
|
|
|
|
|
|
|
|
|
// Respond with a SupportedFeaturesResponse packet, listing all supported GDB features by Bloom
|
|
|
|
|
debugSession.connection.writePacket(ResponsePackets::ResponsePacket(
|
2023-09-21 00:30:21 +01:00
|
|
|
debugSession.serverConfig.rangeStepping
|
2023-09-10 22:27:10 +01:00
|
|
|
? "vCont;c;C;s;S;r"
|
|
|
|
|
: "vCont;c;C;s;S"
|
|
|
|
|
)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|