- fix #319 : Register names in the cpu info are not in correct order.

This commit is contained in:
Roy Qu 2024-03-24 18:07:32 +08:00
parent 4c8e88ce1b
commit a892e21ed3
2 changed files with 6 additions and 4 deletions

View File

@ -81,6 +81,7 @@ Red Panda C++ Version 2.27
- enhancement: Restore line position after file is modified outside and reloaded. - enhancement: Restore line position after file is modified outside and reloaded.
- fix: Caret on '('/',' in string/comment shouldn't invoke function info tips. - 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: 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 Red Panda C++ Version 2.26
- enhancement: Code suggestion for embedded std::vectors. - enhancement: Code suggestion for embedded std::vectors.

View File

@ -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 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("-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 postCommand("-environment-cd", QString("\"%1\"").arg(extractFileDir(inferior))); // restore working directory
if (clientType()==DebuggerType::GDB) // if (clientType()==DebuggerType::GDB)
postCommand("-data-list-register-names",""); // postCommand("-data-list-register-names","");
if (hasSymbols) { if (hasSymbols) {
postCommand("-file-exec-and-symbols", '"' + inferior + '"'); postCommand("-file-exec-and-symbols", '"' + inferior + '"');
@ -1208,7 +1208,8 @@ void GDBMIDebuggerClient::refreshFrame()
void GDBMIDebuggerClient::refreshRegisters() void GDBMIDebuggerClient::refreshRegisters()
{ {
if (clientType()==DebuggerType::LLDB_MI) // if (clientType()==DebuggerType::LLDB_MI)
// postCommand("-data-list-register-names","");
postCommand("-data-list-register-names",""); postCommand("-data-list-register-names","");
postCommand("-data-list-register-values", "N"); postCommand("-data-list-register-values", "N");
} }