summaryrefslogtreecommitdiff
path: root/src/core/gdbstub/gdbstub.h
diff options
context:
space:
mode:
authorGravatar polaris-2015-10-04 11:22:31 -0400
committerGravatar polaris-2015-10-04 11:22:31 -0400
commit42928659e8d4ff4edffc36acabe3d9040dbc1326 (patch)
tree96434bbd4878b9a1a6944cc287463d641e56368e /src/core/gdbstub/gdbstub.h
parentToggle use_gdbstub in citra GLFW (diff)
downloadyuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.tar.gz
yuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.tar.xz
yuzu-42928659e8d4ff4edffc36acabe3d9040dbc1326.zip
Use BreakpointAddress struct instead of passing address directly
Diffstat (limited to 'src/core/gdbstub/gdbstub.h')
-rw-r--r--src/core/gdbstub/gdbstub.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h
index 11ff823c3..da238f349 100644
--- a/src/core/gdbstub/gdbstub.h
+++ b/src/core/gdbstub/gdbstub.h
@@ -18,6 +18,11 @@ enum class BreakpointType {
18 Access ///< Access (R/W) Breakpoint 18 Access ///< Access (R/W) Breakpoint
19}; 19};
20 20
21struct BreakpointAddress {
22 PAddr address;
23 BreakpointType type;
24};
25
21/// If set to false, the server will never be started and no gdbstub-related functions will be executed. 26/// If set to false, the server will never be started and no gdbstub-related functions will be executed.
22extern std::atomic<bool> g_server_enabled; 27extern std::atomic<bool> g_server_enabled;
23 28
@@ -63,7 +68,7 @@ void HandlePacket();
63 * @param addr Address to search from. 68 * @param addr Address to search from.
64 * @param type Type of breakpoint. 69 * @param type Type of breakpoint.
65 */ 70 */
66PAddr GetNextBreakpointFromAddress(u32 addr, GDBStub::BreakpointType type); 71BreakpointAddress GetNextBreakpointFromAddress(u32 addr, GDBStub::BreakpointType type);
67 72
68/** 73/**
69 * Check if a breakpoint of the specified type exists at the given address. 74 * Check if a breakpoint of the specified type exists at the given address.