Moved GDB supported feature set to DebugSession object
This commit is contained in:
@@ -4,10 +4,19 @@
|
||||
|
||||
namespace Bloom::DebugServer::Gdb
|
||||
{
|
||||
DebugSession::DebugSession(Connection&& connection, const TargetDescriptor& targetDescriptor)
|
||||
DebugSession::DebugSession(
|
||||
Connection&& connection,
|
||||
const std::set<std::pair<Feature, std::optional<std::string>>>& supportedFeatures,
|
||||
const TargetDescriptor& targetDescriptor
|
||||
)
|
||||
: connection(std::move(connection))
|
||||
, supportedFeatures(supportedFeatures)
|
||||
, gdbTargetDescriptor(targetDescriptor)
|
||||
{}
|
||||
{
|
||||
this->supportedFeatures.insert({
|
||||
Feature::PACKET_SIZE, std::to_string(this->connection.getMaxPacketSize())
|
||||
});
|
||||
}
|
||||
|
||||
void DebugSession::terminate() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user