From 13212eef14ad16d29c302f45c61dce6b6d0e630f Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Mon, 5 Oct 2009 12:06:29 +0200
Subject: [PATCH] debugger: work around Apple gdb-1344 problem

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

diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp
index aba7017a1ce..c6c59fccfce 100644
--- a/src/plugins/debugger/gdb/gdbengine.cpp
+++ b/src/plugins/debugger/gdb/gdbengine.cpp
@@ -4081,7 +4081,11 @@ void GdbEngine::handleInferiorPrepared()
     //postCommand(_("set print pretty on"));
     //postCommand(_("set confirm off"));
     //postCommand(_("set pagination off"));
-    postCommand(_("set print inferior-events 1"));
+
+    // The following does not work with 6.3.50-20050815 (Apple version gdb-1344)
+    // (Mac OS 10.6), but does so for gdb-966 (10.5):
+    //postCommand(_("set print inferior-events 1"));
+
     postCommand(_("set breakpoint pending on"));
     postCommand(_("set print elements 10000"));
     postCommand(_("-data-list-register-names"), CB(handleRegisterListNames));
-- 
GitLab