From 07a9004f62df4ba42e7fe56f8ee90d417bf5af5c Mon Sep 17 00:00:00 2001
From: Aurindam Jana <aurindam.jana@nokia.com>
Date: Tue, 29 May 2012 12:01:29 +0200
Subject: [PATCH] Debugging: Fix debugging for gdb versions < 7

Revert changes in e11a3a7697e7b432ac061277694885cf3724f25c
related to -file-exec-and-symbols command.

Change-Id: I9d637fe931a6be2eaeb3d18ddcdf66e0ba4211dd
Reviewed-by: hjk <qthjk@ovi.com>
---
 src/plugins/debugger/gdb/abstractplaingdbadapter.cpp | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/plugins/debugger/gdb/abstractplaingdbadapter.cpp b/src/plugins/debugger/gdb/abstractplaingdbadapter.cpp
index b23fffc2aad..a9dd32c0a47 100644
--- a/src/plugins/debugger/gdb/abstractplaingdbadapter.cpp
+++ b/src/plugins/debugger/gdb/abstractplaingdbadapter.cpp
@@ -63,11 +63,8 @@ void AbstractPlainGdbAdapter::setupInferior()
         QString args = startParameters().processArgs;
         m_engine->postCommand("-exec-arguments " + toLocalEncoding(args));
     }
-    if (m_engine->gdbVersion() > 70000)
-        m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
-            CB(handleFileExecAndSymbols));
-    else
-        m_engine->postCommand("file " + execFilePath(), CB(handleFileExecAndSymbols));
+    m_engine->postCommand("-file-exec-and-symbols \"" + execFilePath() + '"',
+        CB(handleFileExecAndSymbols));
 }
 
 void AbstractPlainGdbAdapter::handleFileExecAndSymbols(const GdbResponse &response)
-- 
GitLab