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 enableAndResetWatchpoints(void);
/// Structure to synchronize and keep track of watchpoints
typedef struct WatchpointManager {
DebugRegisterPair watchpoints[16];
RecursiveSpinlock lock;
u32 maxWatchpoints;
u16 allocationBitmap;
} WatchpointManager;
extern WatchpointManager g_watchpointManager;
void initWatchpoints(void);