thermosphere: add actual breakpoint code

This commit is contained in:
TuxSH
2019-08-06 06:09:51 +02:00
parent 88218f606c
commit bd93b01e57
11 changed files with 388 additions and 64 deletions

View File

@@ -16,6 +16,17 @@
#pragma once
#include "types.h"
#include "breakpoints_watchpoints_common.h"
#include "spinlock.h"
void enableAndResetBreakpoints(void);
/// Structure to synchronize and keep track of breakpoints
typedef struct BreakpointManager {
DebugRegisterPair breakpoints[16];
RecursiveSpinlock lock;
u32 maxBreakpoints;
u16 allocationBitmap;
} BreakpointManager;
extern BreakpointManager g_breakpointManager;
void initBreakpoints(void);