From 94c7a51b4852f31effb786b4e3c12d7f9d72a1b3 Mon Sep 17 00:00:00 2001 From: zilmar Date: Mon, 5 Feb 2018 18:11:39 +1100 Subject: [PATCH] [Debugger] Fix a few breakpoint issues --- .../Project64/UserInterface/Debugger/Breakpoints.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp index 9bc7b4c55..1b52988f7 100644 --- a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp +++ b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp @@ -171,7 +171,7 @@ CBreakpoints::BPSTATE CBreakpoints::ReadBPExists8(uint32_t address) CBreakpoints::BPSTATE CBreakpoints::ReadBPExists16(uint32_t address) { breakpoints_t::const_iterator itr = m_ReadMem16.find(address); - if (itr != m_ReadMem.end()) + if (itr != m_ReadMem16.end()) { return BP_SET; } @@ -181,7 +181,7 @@ CBreakpoints::BPSTATE CBreakpoints::ReadBPExists16(uint32_t address) CBreakpoints::BPSTATE CBreakpoints::ReadBPExists32(uint32_t address) { breakpoints_t::const_iterator itr = m_ReadMem32.find(address); - if (itr != m_ReadMem.end()) + if (itr != m_ReadMem32.end()) { return BP_SET; } @@ -191,7 +191,7 @@ CBreakpoints::BPSTATE CBreakpoints::ReadBPExists32(uint32_t address) CBreakpoints::BPSTATE CBreakpoints::ReadBPExists64(uint32_t address) { breakpoints_t::const_iterator itr = m_ReadMem64.find(address); - if (itr != m_ReadMem.end()) + if (itr != m_ReadMem64.end()) { return BP_SET; } @@ -221,7 +221,7 @@ CBreakpoints::BPSTATE CBreakpoints::WriteBPExists16(uint32_t address) CBreakpoints::BPSTATE CBreakpoints::WriteBPExists32(uint32_t address) { breakpoints_t::const_iterator itr = m_WriteMem16.find(address); - if (itr != m_WriteMem16.end()) + if (itr != m_WriteMem32.end()) { return BP_SET; } @@ -231,7 +231,7 @@ CBreakpoints::BPSTATE CBreakpoints::WriteBPExists32(uint32_t address) CBreakpoints::BPSTATE CBreakpoints::WriteBPExists64(uint32_t address) { breakpoints_t::const_iterator itr = m_WriteMem16.find(address); - if (itr != m_WriteMem16.end()) + if (itr != m_WriteMem64.end()) { return BP_SET; }