diff options
| author | 2015-10-04 11:22:31 -0400 | |
|---|---|---|
| committer | 2015-10-04 11:22:31 -0400 | |
| commit | 42928659e8d4ff4edffc36acabe3d9040dbc1326 (patch) | |
| tree | 96434bbd4878b9a1a6944cc287463d641e56368e /src/core/gdbstub/gdbstub.h | |
| parent | Toggle use_gdbstub in citra GLFW (diff) | |
| download | yuzu-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.h | 7 |
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 | ||
| 21 | struct 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. |
| 22 | extern std::atomic<bool> g_server_enabled; | 27 | extern 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 | */ |
| 66 | PAddr GetNextBreakpointFromAddress(u32 addr, GDBStub::BreakpointType type); | 71 | BreakpointAddress 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. |