Renamed component (DebugServer and TargetController) state changed events to be specific to thread states
This commit is contained in:
@@ -5,17 +5,17 @@
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
class DebugServerStateChanged: public Event
|
||||
class DebugServerThreadStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
public:
|
||||
DebugServerStateChanged(ThreadState state): state(state) {};
|
||||
DebugServerThreadStateChanged(ThreadState state): state(state) {};
|
||||
|
||||
static inline const std::string name = "DebugServerStateChanged";
|
||||
static inline const std::string name = "DebugServerThreadStateChanged";
|
||||
|
||||
std::string getName() const override {
|
||||
return DebugServerStateChanged::name;
|
||||
return DebugServerThreadStateChanged::name;
|
||||
}
|
||||
|
||||
ThreadState getState() const {
|
||||
@@ -8,12 +8,12 @@
|
||||
#include "ResetTarget.hpp"
|
||||
#include "DebugSessionStarted.hpp"
|
||||
#include "DebugSessionFinished.hpp"
|
||||
#include "TargetControllerStateChanged.hpp"
|
||||
#include "TargetControllerThreadStateChanged.hpp"
|
||||
#include "TargetControllerStopped.hpp"
|
||||
#include "ShutdownTargetController.hpp"
|
||||
#include "TargetControllerErrorOccurred.hpp"
|
||||
#include "ShutdownApplication.hpp"
|
||||
#include "DebugServerStateChanged.hpp"
|
||||
#include "DebugServerThreadStateChanged.hpp"
|
||||
#include "ShutdownDebugServer.hpp"
|
||||
#include "RetrieveRegistersFromTarget.hpp"
|
||||
#include "RegistersRetrievedFromTarget.hpp"
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include "Event.hpp"
|
||||
#include "src/Helpers/Thread.hpp"
|
||||
|
||||
namespace Bloom::Events
|
||||
{
|
||||
|
||||
class TargetControllerStateChanged: public Event
|
||||
{
|
||||
private:
|
||||
ThreadState state;
|
||||
public:
|
||||
TargetControllerStateChanged(ThreadState state): state(state) {
|
||||
|
||||
};
|
||||
|
||||
static inline const std::string name = "TargetControllerStateChanged";
|
||||
|
||||
std::string getName() const override {
|
||||
return TargetControllerStateChanged::name;
|
||||
}
|
||||
|
||||
ThreadState getState() const {
|
||||
return this->state;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user