diff options
author | polaris- <nagatospam@gmail.com> | 2015-10-04 11:22:31 -0400 |
---|---|---|
committer | polaris- <nagatospam@gmail.com> | 2015-10-04 11:22:31 -0400 |
commit | 42928659e8d4ff4edffc36acabe3d9040dbc1326 (patch) | |
tree | 96434bbd4878b9a1a6944cc287463d641e56368e /src/core/gdbstub/gdbstub.h | |
parent | 6ea428addf1eeb867c5e66a2c2985728edea2dd5 (diff) |
Use BreakpointAddress struct instead of passing address directly
Diffstat (limited to 'src/core/gdbstub/gdbstub.h')
-rw-r--r-- | src/core/gdbstub/gdbstub.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/gdbstub/gdbstub.h b/src/core/gdbstub/gdbstub.h index 11ff823c3d..da238f3498 100644 --- a/src/core/gdbstub/gdbstub.h +++ b/src/core/gdbstub/gdbstub.h @@ -18,6 +18,11 @@ enum class BreakpointType { Access ///< Access (R/W) Breakpoint }; +struct BreakpointAddress { + PAddr address; + BreakpointType type; +}; + /// If set to false, the server will never be started and no gdbstub-related functions will be executed. extern std::atomic<bool> g_server_enabled; @@ -63,7 +68,7 @@ void HandlePacket(); * @param addr Address to search from. * @param type Type of breakpoint. */ -PAddr GetNextBreakpointFromAddress(u32 addr, GDBStub::BreakpointType type); +BreakpointAddress GetNextBreakpointFromAddress(u32 addr, GDBStub::BreakpointType type); /** * Check if a breakpoint of the specified type exists at the given address. |