Removed TC state code from insight and debug server components
This commit is contained in:
@@ -121,10 +121,6 @@ namespace Bloom::DebugServer::Gdb
|
||||
Logger::info("GDB RSP address: " + this->debugServerConfig.listeningAddress);
|
||||
Logger::info("GDB RSP port: " + std::to_string(this->debugServerConfig.listeningPortNumber));
|
||||
|
||||
this->eventListener.registerCallbackForEventType<Events::TargetControllerStateChanged>(
|
||||
std::bind(&GdbRspDebugServer::onTargetControllerStateChanged, this, std::placeholders::_1)
|
||||
);
|
||||
|
||||
this->eventListener.registerCallbackForEventType<Events::TargetExecutionStopped>(
|
||||
std::bind(&GdbRspDebugServer::onTargetExecutionStopped, this, std::placeholders::_1)
|
||||
);
|
||||
@@ -343,13 +339,6 @@ namespace Bloom::DebugServer::Gdb
|
||||
};
|
||||
}
|
||||
|
||||
void GdbRspDebugServer::onTargetControllerStateChanged(const Events::TargetControllerStateChanged& event) {
|
||||
if (event.state == TargetControllerState::SUSPENDED && this->activeDebugSession.has_value()) {
|
||||
Logger::warning("TargetController suspended unexpectedly - terminating debug session");
|
||||
this->activeDebugSession.reset();
|
||||
}
|
||||
}
|
||||
|
||||
void GdbRspDebugServer::onTargetExecutionStopped(const Events::TargetExecutionStopped&) {
|
||||
try {
|
||||
if (this->activeDebugSession.has_value() && this->activeDebugSession->waitingForBreak) {
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
#include "Feature.hpp"
|
||||
#include "CommandPackets/CommandPacket.hpp"
|
||||
|
||||
#include "src/EventManager/Events/TargetControllerStateChanged.hpp"
|
||||
#include "src/EventManager/Events/TargetExecutionStopped.hpp"
|
||||
#include "src/EventManager/Events/TargetExecutionResumed.hpp"
|
||||
|
||||
@@ -186,13 +185,6 @@ namespace Bloom::DebugServer::Gdb
|
||||
*/
|
||||
virtual const TargetDescriptor& getGdbTargetDescriptor() = 0;
|
||||
|
||||
/**
|
||||
* Responds to any unexpected TargetController state changes.
|
||||
*
|
||||
* @param event
|
||||
*/
|
||||
void onTargetControllerStateChanged(const Events::TargetControllerStateChanged& event);
|
||||
|
||||
/**
|
||||
* If the GDB client is currently waiting for the target execution to stop, this event handler will issue
|
||||
* a "stop reply" packet to the client once the target execution stops.
|
||||
|
||||
Reference in New Issue
Block a user