thermosphere: sw breakpoint code, etc.

This commit is contained in:
TuxSH
2019-08-08 21:38:13 +02:00
parent f8266775f6
commit 6289d2e398
12 changed files with 403 additions and 28 deletions

View File

@@ -19,6 +19,9 @@
#include "breakpoints_watchpoints_common.h"
#include "spinlock.h"
#define _REENT_ONLY
#include <errno.h>
/// Structure to synchronize and keep track of breakpoints
typedef struct BreakpointManager {
DebugRegisterPair breakpoints[16];
@@ -30,3 +33,6 @@ typedef struct BreakpointManager {
extern BreakpointManager g_breakpointManager;
void initBreakpoints(void);
int addBreakpoint(u64 addr);
int removeBreakpoint(u64 addr);
int removeAllBreakpoints(void);