2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "CommandPacket.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Bloom::DebugServers::Gdb::CommandPackets
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The InterruptException class represents interrupt command packets. Upon receiving an interrupt packet, the
|
|
|
|
|
* server is expected to interrupt execution on the target.
|
|
|
|
|
*
|
|
|
|
|
* Technically, interrupts are not sent by the client in the form of a typical GDP RSP packet. Instead, they're
|
|
|
|
|
* just sent as a single byte from the client. We fake the packet on our end, to save us the headache of dealing
|
2022-03-27 19:43:20 +01:00
|
|
|
* with this inconsistency. We do this in Connection::readRawPackets().
|
2021-04-04 21:04:12 +01:00
|
|
|
*/
|
|
|
|
|
class InterruptExecution: public CommandPacket
|
|
|
|
|
{
|
|
|
|
|
public:
|
2021-06-22 23:52:31 +01:00
|
|
|
explicit InterruptExecution(const std::vector<unsigned char>& rawPacket): CommandPacket(rawPacket) {}
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-03-24 19:17:41 +00:00
|
|
|
void handle(DebugSession& debugSession, TargetControllerConsole& targetControllerConsole) override;
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|