2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
|
|
#include "CommandPacket.hpp"
|
|
|
|
|
|
|
|
|
|
namespace Bloom::DebugServers::Gdb::CommandPackets
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The StepExecution class implements the structure for "s" command packets. Upon receiving this command, the
|
|
|
|
|
* server is expected to step execution on the target.
|
|
|
|
|
*/
|
|
|
|
|
class StepExecution: public CommandPacket
|
|
|
|
|
{
|
|
|
|
|
private:
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* The address from which to begin the step.
|
|
|
|
|
*/
|
|
|
|
|
std::optional<size_t> fromProgramCounter;
|
|
|
|
|
|
2021-04-06 02:10:14 +01:00
|
|
|
StepExecution(std::vector<unsigned char> rawPacket): CommandPacket(rawPacket) {
|
2021-04-04 21:04:12 +01:00
|
|
|
init();
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
virtual void dispatchToHandler(Gdb::GdbRspDebugServer& gdbRspDebugServer) override;
|
|
|
|
|
};
|
|
|
|
|
}
|