WCH RISC-V software breakpoints, and a few other bits of refactoring/tidying
This commit is contained in:
31
src/DebugServer/Gdb/AvrGdb/CommandPackets/SetBreakpoint.hpp
Normal file
31
src/DebugServer/Gdb/AvrGdb/CommandPackets/SetBreakpoint.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "AvrGdbCommandPacketInterface.hpp"
|
||||
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
|
||||
#include "src/DebugServer/Gdb/BreakpointType.hpp"
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace DebugServer::Gdb::AvrGdb::CommandPackets
|
||||
{
|
||||
class SetBreakpoint
|
||||
: public CommandPackets::AvrGdbCommandPacketInterface
|
||||
, private Gdb::CommandPackets::CommandPacket
|
||||
{
|
||||
public:
|
||||
BreakpointType type = BreakpointType::UNKNOWN;
|
||||
Targets::TargetMemoryAddress address = 0;
|
||||
Targets::TargetMemorySize size = 0;
|
||||
|
||||
explicit SetBreakpoint(const RawPacket& rawPacket);
|
||||
|
||||
void handle(
|
||||
DebugSession& debugSession,
|
||||
const AvrGdbTargetDescriptor& gdbTargetDescriptor,
|
||||
const Targets::TargetDescriptor& targetDescriptor,
|
||||
Services::TargetControllerService& targetControllerService
|
||||
) override;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user