2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <set>
|
|
|
|
|
|
|
|
|
|
#include "CommandPacket.hpp"
|
2022-03-31 21:52:46 +01:00
|
|
|
#include "src/DebugServer/Gdb/BreakpointType.hpp"
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-03-31 16:05:39 +01:00
|
|
|
namespace Bloom::DebugServer::Gdb::CommandPackets
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The RemoveBreakpoint class implements the structure for "z" command packets. Upon receiving this command, the
|
|
|
|
|
* server is expected to remove a breakpoint at the specified address.
|
|
|
|
|
*/
|
|
|
|
|
class RemoveBreakpoint: public CommandPacket
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* Breakpoint type (Software or Hardware)
|
|
|
|
|
*/
|
|
|
|
|
BreakpointType type = BreakpointType::UNKNOWN;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Address at which the breakpoint should be located.
|
|
|
|
|
*/
|
2021-06-22 23:52:31 +01:00
|
|
|
std::uint32_t address = 0;
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-04-08 23:39:51 +01:00
|
|
|
explicit RemoveBreakpoint(const RawPacketType& 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
|
|
|
};
|
|
|
|
|
}
|