From 2fe4c0f29313ba8fd25e9738b4fadb549ad564e5 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Date: Tue, 27 Oct 2009 15:50:33 +0100
Subject: [PATCH] call updateMarkers() from attemptBreakpointSynchronization()

and the latter is auto-tiggered by pretty much any breakpoint event.
this will kinda ensure that the markers are up-to date.
---
 src/plugins/debugger/gdb/gdbengine.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 5639b7b4b6f..5e4ce411a7d 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -1825,7 +1825,6 @@ void GdbEngine::handleBreakList(const GdbMi &table)
     }
 
     attemptBreakpointSynchronization();
-    handler->updateMarkers();
 }
 
 void GdbEngine::handleBreakIgnore(const GdbResponse &response)
@@ -1891,7 +1890,6 @@ void GdbEngine::handleBreakInsert(const GdbResponse &response)
         breakpointDataFromOutput(data, bkpt);
 //#endif
         attemptBreakpointSynchronization();
-        handler->updateMarkers();
     } else {
         if (m_gdbVersion < 60800 && !m_isMacGdb) {
             // This gdb version doesn't "do" pending breakpoints.
@@ -1954,7 +1952,6 @@ void GdbEngine::handleBreakInfo(const GdbResponse &response)
         if (found != -1) {
             QString str = QString::fromLocal8Bit(response.data.findChild("consolestreamoutput").data());
             extractDataFromInfoBreak(str, handler->at(found));
-            handler->updateMarkers();
             attemptBreakpointSynchronization(); // trigger "ready"
         }
     }
@@ -1975,7 +1972,6 @@ void GdbEngine::handleBreakInsert1(const GdbResponse &response)
         data->bpNumber = _("<unavailable>");
     }
     attemptBreakpointSynchronization(); // trigger "ready"
-    handler->updateMarkers();
 }
 
 void GdbEngine::attemptBreakpointSynchronization2(const GdbResponse &)
@@ -2056,6 +2052,8 @@ void GdbEngine::attemptBreakpointSynchronization()
             }
         }
     }
+
+    handler->updateMarkers();
 }
 
 
-- 
GitLab