forked from qt-creator/qt-creator
Debugger: Fix register display for LLDB and CDB
Change-Id: Ia157c0c03168e91b11d837d6355e61e10afd9728 Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -3432,7 +3432,7 @@ void GdbEngine::handleRegisterListing(const DebuggerResponse &response)
|
||||
reg.name = parts.at(0);
|
||||
reg.size = parts.at(4).toInt();
|
||||
reg.reportedType = parts.at(5);
|
||||
reg.groups = Utils::toSet(parts.at(6).split(','));
|
||||
reg.groups = parts.at(6).split(',');
|
||||
m_registers[gdbRegisterNumber] = reg;
|
||||
}
|
||||
}
|
||||
|
@@ -676,7 +676,8 @@ void RegisterHandler::updateRegister(const Register &r)
|
||||
{
|
||||
bool sort = false;
|
||||
bool changed = false;
|
||||
for (const QString &group : r.groups) {
|
||||
const QStringList groups = r.groups.isEmpty() ? QStringList{"all"} : r.groups;
|
||||
for (const QString &group : groups) {
|
||||
RegisterGroup *regGr = m_registerGroups.value(group, nullptr);
|
||||
if (!regGr) {
|
||||
sort = true;
|
||||
|
@@ -72,7 +72,7 @@ public:
|
||||
RegisterValue value;
|
||||
RegisterValue previousValue;
|
||||
QString description;
|
||||
QSet<QString> groups;
|
||||
QStringList groups;
|
||||
int size = 0;
|
||||
RegisterKind kind = UnknownRegister;
|
||||
};
|
||||
|
Reference in New Issue
Block a user