diff --git a/NEWS.md b/NEWS.md index bae2c041..f2e8de35 100644 --- a/NEWS.md +++ b/NEWS.md @@ -81,6 +81,7 @@ Red Panda C++ Version 2.27 - enhancement: Restore line position after file is modified outside and reloaded. - fix: Caret on '('/',' in string/comment shouldn't invoke function info tips. - fix: Function name not correctly found if it and the '(' is not in one line; + - fix: Register names in the cpu info are not in correct order. Red Panda C++ Version 2.26 - enhancement: Code suggestion for embedded std::vectors. diff --git a/RedPandaIDE/debugger/gdbmidebugger.cpp b/RedPandaIDE/debugger/gdbmidebugger.cpp index ba319ef3..64749c7b 100644 --- a/RedPandaIDE/debugger/gdbmidebugger.cpp +++ b/RedPandaIDE/debugger/gdbmidebugger.cpp @@ -986,8 +986,8 @@ void GDBMIDebuggerClient::initialize(const QString& inferior, bool hasSymbols) postCommand("-gdb-set", QString("print elements %1").arg(pSettings->debugger().arrayElements())); // limit array elements to 30 postCommand("-gdb-set", QString("print characters %1").arg(pSettings->debugger().characters())); // limit array elements to 300 postCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(inferior))); // restore working directory - if (clientType()==DebuggerType::GDB) - postCommand("-data-list-register-names",""); + // if (clientType()==DebuggerType::GDB) + // postCommand("-data-list-register-names",""); if (hasSymbols) { postCommand("-file-exec-and-symbols", '"' + inferior + '"'); @@ -1208,8 +1208,9 @@ void GDBMIDebuggerClient::refreshFrame() void GDBMIDebuggerClient::refreshRegisters() { - if (clientType()==DebuggerType::LLDB_MI) - postCommand("-data-list-register-names",""); + // if (clientType()==DebuggerType::LLDB_MI) + // postCommand("-data-list-register-names",""); + postCommand("-data-list-register-names",""); postCommand("-data-list-register-values", "N"); }