Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions gui/qt/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,6 @@ void MainWindow::debugCommand(int reason, uint32_t data) {
return;
}

int row = 0;
uint32_t addr;

// This means the program is trying to send us a debug command. Let's see what we can do with that information
Expand All @@ -487,7 +486,7 @@ void MainWindow::debugCommand(int reason, uint32_t data) {

for (int i = 0; i < m_breakpoints->rowCount(); i++) {
if (m_breakpoints->item(i, BREAK_ADDR_COL)->text() == input) {
label = m_breakpoints->item(row, BREAK_NAME_COL)->text();
label = m_breakpoints->item(i, BREAK_NAME_COL)->text();
valid = true;
break;
}
Expand All @@ -510,7 +509,7 @@ void MainWindow::debugCommand(int reason, uint32_t data) {
uint32_t low = static_cast<uint32_t>(hex2int(m_watchpoints->item(i, WATCH_LOW_COL)->text()));
uint32_t high = static_cast<uint32_t>(hex2int(m_watchpoints->item(i, WATCH_HIGH_COL)->text()));
if (addr >= low && addr <= high) {
label = m_watchpoints->item(row, WATCH_NAME_COL)->text();
label = m_watchpoints->item(i, WATCH_NAME_COL)->text();
valid = true;
break;
}
Expand Down
Loading