Merge pull request #12973 from Tilka/debugger

Debugger: keep breakpoints ordered by address
This commit is contained in:
Tilka 2024-08-06 19:58:24 +01:00 committed by GitHub
commit 0fe2abf53c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 1 deletions

View File

@ -207,8 +207,11 @@ void BreakpointWidget::OnClicked(QTableWidgetItem* item)
if (!item)
return;
if (item->column() == ADDRESS_COLUMN || item->column() == END_ADDRESS_COLUMN)
if (item->column() == SYMBOL_COLUMN || item->column() == ADDRESS_COLUMN ||
item->column() == END_ADDRESS_COLUMN)
{
return;
}
const u32 address = static_cast<u32>(m_table->item(item->row(), 0)->data(ADDRESS_ROLE).toUInt());
@ -351,6 +354,8 @@ void BreakpointWidget::Update()
i++;
}
m_table->sortItems(ADDRESS_COLUMN);
// Memory Breakpoints
for (const auto& mbp : memchecks.GetMemChecks())
{