Added TargetFamily to TargetDescriptor and comparability check in AVR GDB debug server

This commit is contained in:
Nav
2023-11-22 00:37:29 +00:00
parent 0d5213c84c
commit d3c7cddb82
6 changed files with 31 additions and 4 deletions

View File

@@ -26,11 +26,12 @@ namespace DebugServer::Gdb::AvrGdb
AvrGdbRsp::AvrGdbRsp(
const DebugServerConfig& debugServerConfig,
const Targets::TargetDescriptor& targetDescriptor,
EventListener& eventListener,
EventFdNotifier& eventNotifier
)
: GdbRspDebugServer(debugServerConfig, eventListener, eventNotifier)
, gdbTargetDescriptor(TargetDescriptor(this->targetControllerService.getTargetDescriptor()))
, gdbTargetDescriptor(targetDescriptor)
{}
DebugSession* AvrGdbRsp::startDebugSession(Connection&& connection) {

View File

@@ -14,6 +14,7 @@ namespace DebugServer::Gdb::AvrGdb
public:
AvrGdbRsp(
const DebugServerConfig& debugServerConfig,
const Targets::TargetDescriptor& targetDescriptor,
EventListener& eventListener,
EventFdNotifier& eventNotifier
);