Moved GDB supported feature set to DebugSession object
This commit is contained in:
@@ -146,7 +146,11 @@ namespace Bloom::DebugServer::Gdb
|
||||
Logger::info("Accepted GDP RSP connection from " + connection->getIpAddress());
|
||||
|
||||
this->activeDebugSession.emplace(
|
||||
DebugSession(std::move(connection.value()), this->getGdbTargetDescriptor())
|
||||
DebugSession(
|
||||
std::move(connection.value()),
|
||||
this->getSupportedFeatures(),
|
||||
this->getGdbTargetDescriptor()
|
||||
)
|
||||
);
|
||||
|
||||
EventManager::triggerEvent(std::make_shared<Events::DebugSessionStarted>());
|
||||
@@ -325,6 +329,12 @@ namespace Bloom::DebugServer::Gdb
|
||||
return std::make_unique<CommandPacket>(rawPacket);
|
||||
}
|
||||
|
||||
std::set<std::pair<Feature, std::optional<std::string>>> GdbRspDebugServer::getSupportedFeatures() {
|
||||
return {
|
||||
{Feature::SOFTWARE_BREAKPOINTS, std::nullopt},
|
||||
};
|
||||
}
|
||||
|
||||
void GdbRspDebugServer::terminateActiveDebugSession() {
|
||||
if (!this->activeDebugSession.has_value()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user