From 4b4901b74b056486237da69831f9960e2a023a78 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Tue, 30 Jun 2009 09:47:38 +0200
Subject: [PATCH] debugger: don't remove breakpoints when attaching to running
 process

---
 src/plugins/debugger/gdb/gdbengine.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index 9bd7cd87335..e91c661bff8 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -1539,7 +1539,8 @@ bool GdbEngine::startDebugger(const QSharedPointer<DebuggerStartParameters> &sp)
 
     if (q->startMode() == AttachExternal || q->startMode() == AttachCrashedExternal) {
         postCommand(_("attach %1").arg(sp->attachPID), CB(handleAttach));
-        qq->breakHandler()->removeAllBreakpoints();
+        // Task 254674 does not want to remove them
+        //qq->breakHandler()->removeAllBreakpoints();
     } else if (q->startMode() == AttachCore) {
         QFileInfo fi(sp->executable);
         QString fileName = _c('"') + fi.absoluteFilePath() + _c('"');
-- 
GitLab