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