From fc2175b2a0c24d15cfce3da6cda9d8a58ccd622e Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Wed, 28 Oct 2009 12:00:18 +0100 Subject: [PATCH] debugger: fix mac startup in the presence of unknown command Apple gdb does not give any ^done or ^error for unknown command. Work around by using -interpreter-exec console. --- src/plugins/debugger/gdb/gdbengine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index dff189c96dd..6b973cba484 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -3367,7 +3367,7 @@ void GdbEngine::updateLocals(const QVariant &cookie) manager()->watchHandler()->beginCycle(); m_toolTipExpression.clear(); QStringList expanded = m_manager->watchHandler()->expandedINames().toList(); - postCommand(_("bb %1 %2") + postCommand(_("-interpreter-exec console \"bb %1 %2\"") .arg(int(theDebuggerBoolSetting(UseDebuggingHelpers))) .arg(expanded.join(_(","))), CB(handleStackFrame)); @@ -4135,7 +4135,8 @@ bool GdbEngine::startGdb(const QStringList &args, const QString &gdb, const QStr debugMessage(_("GDB STARTED, INITIALIZING IT")); postCommand(_("show version"), CB(handleShowVersion)); - postCommand(_("help bb"), CB(handleIsSynchroneous)); + postCommand(_("-interpreter-exec console \"help bb\""), + CB(handleIsSynchroneous)); //postCommand(_("-enable-timings"); postCommand(_("set print static-members off")); // Seemingly doesn't work. //postCommand(_("set debug infrun 1")); -- GitLab