2022-03-24 19:07:28 +00:00
|
|
|
#include "DebugSession.hpp"
|
|
|
|
|
|
|
|
|
|
#include "src/Logger/Logger.hpp"
|
|
|
|
|
|
2022-03-31 16:05:39 +01:00
|
|
|
namespace Bloom::DebugServer::Gdb
|
2022-03-24 19:07:28 +00:00
|
|
|
{
|
2022-05-14 22:38:49 +01:00
|
|
|
DebugSession::DebugSession(
|
|
|
|
|
Connection&& connection,
|
|
|
|
|
const std::set<std::pair<Feature, std::optional<std::string>>>& supportedFeatures,
|
|
|
|
|
const TargetDescriptor& targetDescriptor
|
|
|
|
|
)
|
2022-03-28 01:04:14 +01:00
|
|
|
: connection(std::move(connection))
|
2022-05-14 22:38:49 +01:00
|
|
|
, supportedFeatures(supportedFeatures)
|
2022-05-04 19:49:18 +01:00
|
|
|
, gdbTargetDescriptor(targetDescriptor)
|
2022-05-14 22:38:49 +01:00
|
|
|
{
|
|
|
|
|
this->supportedFeatures.insert({
|
|
|
|
|
Feature::PACKET_SIZE, std::to_string(this->connection.getMaxPacketSize())
|
|
|
|
|
});
|
|
|
|
|
}
|
2022-03-24 19:07:28 +00:00
|
|
|
|
|
|
|
|
void DebugSession::terminate() {
|
2022-03-29 14:54:49 +01:00
|
|
|
|
2022-03-24 19:07:28 +00:00
|
|
|
}
|
|
|
|
|
}
|