move -data-list-register-names up to the other initializers.

This commit is contained in:
Oswald Buddenhagen
2009-02-16 16:00:46 +01:00
committed by hjk
parent aef3fa6703
commit 1dd1752c4e

View File

@@ -1534,6 +1534,7 @@ bool GdbEngine::startDebugger()
//sendCommand("set pagination off");
sendCommand("set breakpoint pending on", BreakEnablePending);
sendCommand("set print elements 10000");
sendCommand("-data-list-register-names", RegisterListNames);
// one of the following is needed to prevent crashes in gdb on code like:
// template <class T> T foo() { return T(0); }
@@ -1605,8 +1606,6 @@ bool GdbEngine::startDebugger()
sendCommand("x/2i " + startSymbolName(), GdbStart);
}
sendCommand("-data-list-register-names", RegisterListNames);
// set all to "pending"
if (q->startMode() == DebuggerManager::AttachExternal)
qq->breakHandler()->removeAllBreakpoints();