Fix ids of fake exception breakpoints
authorIgor Kulaychuk <i.kulaychuk@samsung.com>
Tue, 24 Apr 2018 17:49:12 +0000 (20:49 +0300)
committerIgor Kulaychuk <i.kulaychuk@samsung.com>
Thu, 26 Apr 2018 13:21:44 +0000 (16:21 +0300)
src/debug/netcoredbg/breakpoints.cpp

index 46ba50fd821fa533c1704a9dc4b0f2c88752a143..fe0c2e08c350af131521c7cf68738668b722af3b 100644 (file)
@@ -148,7 +148,7 @@ void ManagedDebugger::InsertExceptionBreakpoint(const std::string &name, Breakpo
 void Breakpoints::InsertExceptionBreakpoint(const std::string &name, Breakpoint &breakpoint)
 {
     std::lock_guard<std::mutex> lock(m_breakpointsMutex);
-    m_nextBreakpointId++;
+    breakpoint.id = m_nextBreakpointId++;
 }
 
 void Breakpoints::DeleteAllBreakpoints()