New debug session class

This commit is contained in:
Nav
2022-03-24 19:07:28 +00:00
parent 01396afcec
commit df5a904a43
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#pragma once
#include <cstdint>
#include "Connection.hpp"
#include "TargetDescriptor.hpp"
namespace Bloom::DebugServers::Gdb
{
class DebugSession
{
public:
Connection connection;
const TargetDescriptor& targetDescriptor;
/**
* When the GDB client is waiting for the target to halt, this is set to true so we know when to notify the
* client.
*/
bool waitingForBreak = false;
DebugSession(const Connection& connection, const TargetDescriptor& targetDescriptor);
void terminate();
};
}