Files
BloomPatched/src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp

36 lines
955 B
C++
Raw Normal View History

2021-04-04 21:04:12 +01:00
#pragma once
#include <vector>
2022-03-31 21:52:46 +01:00
#include "src/DebugServer/Gdb/DebugSession.hpp"
#include "src/DebugServer/Gdb/TargetDescriptor.hpp"
#include "src/Targets/TargetDescriptor.hpp"
#include "src/Services/TargetControllerService.hpp"
2021-04-04 21:04:12 +01:00
namespace DebugServer::Gdb::CommandPackets
2021-04-04 21:04:12 +01:00
{
class CommandPacket
2021-04-04 21:04:12 +01:00
{
public:
explicit CommandPacket(const RawPacket& rawPacket);
2021-04-04 21:04:12 +01:00
/**
* Should handle the command for the current active debug session.
*
* @param debugSession
* The current active debug session.
2021-04-04 21:04:12 +01:00
*
* @param TargetControllerService
2021-04-04 21:04:12 +01:00
*/
virtual void handle(
DebugSession& debugSession,
const TargetDescriptor& gdbTargetDescriptor,
const Targets::TargetDescriptor& targetDescriptor,
Services::TargetControllerService& targetControllerService
);
protected:
std::vector<unsigned char> data;
2021-04-04 21:04:12 +01:00
};
}