2021-04-04 21:04:12 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <cstdint>
|
|
|
|
|
|
2022-09-06 17:16:49 +01:00
|
|
|
#include "TargetMemory.hpp"
|
|
|
|
|
|
2023-08-13 15:47:51 +01:00
|
|
|
namespace Targets
|
2021-04-04 21:04:12 +01:00
|
|
|
{
|
|
|
|
|
enum class TargetBreakCause: int
|
|
|
|
|
{
|
|
|
|
|
BREAKPOINT,
|
|
|
|
|
UNKNOWN,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
struct TargetBreakpoint
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Byte address of the breakpoint.
|
|
|
|
|
*/
|
2022-09-06 17:16:49 +01:00
|
|
|
TargetMemoryAddress address = 0;
|
2021-04-04 21:04:12 +01:00
|
|
|
|
2022-04-03 16:59:14 +01:00
|
|
|
TargetBreakpoint() = default;
|
2022-09-06 17:16:49 +01:00
|
|
|
explicit TargetBreakpoint(TargetMemoryAddress address): address(address) {};
|
2021-04-04 21:04:12 +01:00
|
|
|
};
|
|
|
|
|
}
|