More tidying
This commit is contained in:
@@ -88,6 +88,8 @@ namespace Bloom::DebugServer
|
|||||||
Logger::info("Shutting down DebugServer");
|
Logger::info("Shutting down DebugServer");
|
||||||
this->server->close();
|
this->server->close();
|
||||||
this->setThreadStateAndEmitEvent(ThreadState::STOPPED);
|
this->setThreadStateAndEmitEvent(ThreadState::STOPPED);
|
||||||
|
|
||||||
|
this->eventListener->setInterruptEventNotifier(nullptr);
|
||||||
EventManager::deregisterListener(this->eventListener->getId());
|
EventManager::deregisterListener(this->eventListener->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#include "Connection.hpp"
|
#include "Connection.hpp"
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <sys/epoll.h>
|
#include <unistd.h>
|
||||||
#include <cerrno>
|
#include <cerrno>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "GdbRspDebugServer.hpp"
|
#include "GdbRspDebugServer.hpp"
|
||||||
|
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include "src/Logger/Logger.hpp"
|
#include "src/Logger/Logger.hpp"
|
||||||
|
|
||||||
@@ -42,7 +43,7 @@ namespace Bloom::DebugServer::Gdb
|
|||||||
, eventListener(eventListener)
|
, eventListener(eventListener)
|
||||||
, interruptEventNotifier(eventListener.getInterruptEventNotifier())
|
, interruptEventNotifier(eventListener.getInterruptEventNotifier())
|
||||||
{
|
{
|
||||||
assert(this->interruptEventNotifier != nullptr && this->interruptEventNotifier->isInitialised());
|
assert(this->interruptEventNotifier != nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GdbRspDebugServer::init() {
|
void GdbRspDebugServer::init() {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ namespace Bloom
|
|||||||
eventQueueByType[event->getType()].push(std::move(event));
|
eventQueueByType[event->getType()].push(std::move(event));
|
||||||
this->eventQueueByEventTypeCV.notify_all();
|
this->eventQueueByEventTypeCV.notify_all();
|
||||||
|
|
||||||
if (this->interruptEventNotifier != nullptr && this->interruptEventNotifier->isInitialised()) {
|
if (this->interruptEventNotifier != nullptr) {
|
||||||
this->interruptEventNotifier->notify();
|
this->interruptEventNotifier->notify();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,6 +15,8 @@
|
|||||||
#include "src/Targets/TargetState.hpp"
|
#include "src/Targets/TargetState.hpp"
|
||||||
#include "src/Targets/TargetPinDescriptor.hpp"
|
#include "src/Targets/TargetPinDescriptor.hpp"
|
||||||
|
|
||||||
|
#include "src/Exceptions/Exception.hpp"
|
||||||
|
|
||||||
namespace Bloom
|
namespace Bloom
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user