thermosphere: copy paste lots of gdb luma files (but don't build them yet)
This commit is contained in:
25
thermosphere/src/gdb/watchpoints.h
Normal file
25
thermosphere/src/gdb/watchpoints.h
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* This file is part of Luma3DS.
|
||||
* Copyright (C) 2016-2019 Aurora Wright, TuxSH
|
||||
*
|
||||
* SPDX-License-Identifier: (MIT OR GPL-2.0-or-later)
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "gdb.h"
|
||||
|
||||
typedef enum WatchpointKind
|
||||
{
|
||||
WATCHPOINT_DISABLED = 0,
|
||||
WATCHPOINT_READ,
|
||||
WATCHPOINT_WRITE,
|
||||
WATCHPOINT_READWRITE
|
||||
} WatchpointKind;
|
||||
|
||||
void GDB_ResetWatchpoints(void); // needed for software breakpoints to be detected as debug events as well
|
||||
|
||||
int GDB_AddWatchpoint(GDBContext *ctx, u32 address, u32 size, WatchpointKind kind);
|
||||
int GDB_RemoveWatchpoint(GDBContext *ctx, u32 address, WatchpointKind kind);
|
||||
|
||||
WatchpointKind GDB_GetWatchpointKind(GDBContext *ctx, u32 address);
|
||||
Reference in New Issue
Block a user