File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -468,7 +468,6 @@ void MainWindow::debugCommand(int reason, uint32_t data) {
468468 return ;
469469 }
470470
471- int row = 0 ;
472471 uint32_t addr;
473472
474473 // This means the program is trying to send us a debug command. Let's see what we can do with that information
@@ -487,7 +486,7 @@ void MainWindow::debugCommand(int reason, uint32_t data) {
487486
488487 for (int i = 0 ; i < m_breakpoints->rowCount (); i++) {
489488 if (m_breakpoints->item (i, BREAK_ADDR_COL)->text () == input) {
490- label = m_breakpoints->item (row , BREAK_NAME_COL)->text ();
489+ label = m_breakpoints->item (i , BREAK_NAME_COL)->text ();
491490 valid = true ;
492491 break ;
493492 }
@@ -510,7 +509,7 @@ void MainWindow::debugCommand(int reason, uint32_t data) {
510509 uint32_t low = static_cast <uint32_t >(hex2int (m_watchpoints->item (i, WATCH_LOW_COL)->text ()));
511510 uint32_t high = static_cast <uint32_t >(hex2int (m_watchpoints->item (i, WATCH_HIGH_COL)->text ()));
512511 if (addr >= low && addr <= high) {
513- label = m_watchpoints->item (row , WATCH_NAME_COL)->text ();
512+ label = m_watchpoints->item (i , WATCH_NAME_COL)->text ();
514513 valid = true ;
515514 break ;
516515 }
You can’t perform that action at this time.
0 commit comments