From 55bcce4684d82f1aa9f64d47b4ad61ed188e7182 Mon Sep 17 00:00:00 2001 From: hjk <qtc-committer@nokia.com> Date: Tue, 15 Sep 2009 15:32:49 +0200 Subject: [PATCH] debugger: prevent gdb from asking too many question for which we don't have answers So far TRK does not show values for fp registers. --- src/plugins/debugger/gdb/gdbengine.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 16aa34ace64..cb8320a8fed 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -2654,8 +2654,16 @@ void GdbEngine::handleStackListThreads(const GdbResultRecord &record, const QVar void GdbEngine::reloadRegisters() { - postCommand(_("-data-list-register-values d"), - Discardable, CB(handleRegisterListValues)); + if (m_gdbAdapter->isAdapter()) { + // FIXME: remove that special case. This is only to prevent + // gdb from asking for the values of the fixed point registers + postCommand(_("-data-list-register-values x 1 2 3 4 5 6 7 8 9 " + "10 11 12 13 14 15 25"), + Discardable, CB(handleRegisterListValues)); + } else { + postCommand(_("-data-list-register-values x"), + Discardable, CB(handleRegisterListValues)); + } } void GdbEngine::setRegisterValue(int nr, const QString &value) -- GitLab