Commit 55bcce46 authored by hjk's avatar hjk
Browse files

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.
parent 22904c5c
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment