diff options
Diffstat (limited to 'src/core/gdbstub/gdbstub.cpp')
| -rw-r--r-- | src/core/gdbstub/gdbstub.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/core/gdbstub/gdbstub.cpp b/src/core/gdbstub/gdbstub.cpp index ced1c54f5..25ce63b29 100644 --- a/src/core/gdbstub/gdbstub.cpp +++ b/src/core/gdbstub/gdbstub.cpp | |||
| @@ -231,13 +231,18 @@ static void RemoveBreakpoint(BreakpointType type, PAddr addr) { | |||
| 231 | } | 231 | } |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | PAddr GetNextBreakpointFromAddress(PAddr addr, BreakpointType type) { | 234 | BreakpointAddress GetNextBreakpointFromAddress(PAddr addr, BreakpointType type) { |
| 235 | std::map<u32, Breakpoint>& p = GetBreakpointList(type); | 235 | std::map<u32, Breakpoint>& p = GetBreakpointList(type); |
| 236 | auto next_breakpoint = p.lower_bound(addr); | 236 | auto next_breakpoint = p.lower_bound(addr); |
| 237 | u32 breakpoint = -1; | 237 | BreakpointAddress breakpoint; |
| 238 | 238 | ||
| 239 | if (next_breakpoint != p.end()) | 239 | if (next_breakpoint != p.end()) { |
| 240 | breakpoint = next_breakpoint->first; | 240 | breakpoint.address = next_breakpoint->first; |
| 241 | breakpoint.type = type; | ||
| 242 | } else { | ||
| 243 | breakpoint.address = 0; | ||
| 244 | breakpoint.type = BreakpointType::None; | ||
| 245 | } | ||
| 241 | 246 | ||
| 242 | return breakpoint; | 247 | return breakpoint; |
| 243 | } | 248 | } |