RISC-V GDB server

This commit is contained in:
Nav
2024-11-16 20:43:22 +00:00
parent 26f4f8f90e
commit eebba986b5
28 changed files with 1582 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
#pragma once
#include "src/DebugServer/Gdb/CommandPackets/CommandPacket.hpp"
#include "src/DebugServer/Gdb/DebugSession.hpp"
#include "src/DebugServer/Gdb/RiscVGdb/RiscVGdbTargetDescriptor.hpp"
#include "src/Targets/TargetDescriptor.hpp"
#include "src/Services/TargetControllerService.hpp"
namespace DebugServer::Gdb::RiscVGdb::CommandPackets
{
class RiscVGdbCommandPacketInterface
{
public:
virtual ~RiscVGdbCommandPacketInterface() = default;
/**
* Should handle the command for the current active debug session.
*
* @param debugSession
* The current active debug session.
*
* @param TargetControllerService
*/
virtual void handle(
DebugSession& debugSession,
const RiscVGdbTargetDescriptor& gdbTargetDescriptor,
const Targets::TargetDescriptor& targetDescriptor,
Services::TargetControllerService& targetControllerService
) = 0;
};
}