|
|
@ -24,6 +24,8 @@ enum class DebuggerAction {
|
|
|
|
|
|
|
|
|
|
|
|
class DebuggerBackend {
|
|
|
|
class DebuggerBackend {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
|
|
|
|
virtual ~DebuggerBackend() = default;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Can be invoked from a callback to synchronously wait for more data.
|
|
|
|
* Can be invoked from a callback to synchronously wait for more data.
|
|
|
|
* Will return as soon as least one byte is received. Reads up to 4096 bytes.
|
|
|
|
* Will return as soon as least one byte is received. Reads up to 4096 bytes.
|
|
|
@ -51,6 +53,8 @@ class DebuggerFrontend {
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
explicit DebuggerFrontend(DebuggerBackend& backend_) : backend{backend_} {}
|
|
|
|
explicit DebuggerFrontend(DebuggerBackend& backend_) : backend{backend_} {}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual ~DebuggerFrontend() = default;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Called after the client has successfully connected to the port.
|
|
|
|
* Called after the client has successfully connected to the port.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|