From 75b761320378e1c453e65e7e1067bec35e464122 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Mon, 5 Jan 2009 14:13:09 +0100
Subject: [PATCH] Fixes:   re-enable "Start External Application" in debug mode

---
 src/plugins/debugger/gdbengine.cpp      | 2 +-
 tests/manual/gdbdebugger/simple/app.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/debugger/gdbengine.cpp b/src/plugins/debugger/gdbengine.cpp
index 5ba169f9293..d7fc76f107c 100644
--- a/src/plugins/debugger/gdbengine.cpp
+++ b/src/plugins/debugger/gdbengine.cpp
@@ -1616,7 +1616,7 @@ bool GdbEngine::startDebugger()
         sendCommand("attach " + QString::number(q->m_attachedPID));
     }
 
-    if (q->startMode() == q->startInternal) {
+    if (q->startMode() == q->startInternal || q->startMode() == q->startExternal) {
         sendCommand("-file-exec-and-symbols " + fileName, GdbFileExecAndSymbols);
         #ifdef Q_OS_MAC
         sendCommand("sharedlibrary apply-load-rules all");
diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp
index 5156e6fb5fd..3243e9c70e2 100644
--- a/tests/manual/gdbdebugger/simple/app.cpp
+++ b/tests/manual/gdbdebugger/simple/app.cpp
@@ -868,7 +868,7 @@ int main(int argc, char *argv[])
     testQVectorOfQList();
 
 
-    *(int *)0 = 0;
+    //*(int *)0 = 0;
 
     testQObject(argc, argv);
 
-- 
GitLab