2022-11-18 20:26:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "src/Exceptions/Exception.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace DebugServer::Gdb::Exceptions
|
2022-11-18 20:26:20 +00:00
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* The GDB debug server spends most of its time in a blocking state, waiting for a new connection or for some data
|
|
|
|
|
* from the connected GDB client. The server implementation allows for interruptions to blocking IO calls.
|
|
|
|
|
*
|
|
|
|
|
* When an interrupt occurs, this exception is thrown and handled appropriately.
|
|
|
|
|
*
|
|
|
|
|
* For more on how the GDB server implementation allows for interruptions, see the "Servicing events" section in
|
|
|
|
|
* src/DebugServer/README.md.
|
|
|
|
|
*/
|
2023-08-13 15:47:51 +01:00
|
|
|
class DebugServerInterrupted: public ::Exceptions::Exception
|
2022-11-18 20:26:20 +00:00
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
explicit DebugServerInterrupted() = default;
|
|
|
|
|
};
|
|
|
|
|
}
|