From 30ee2597f561ecc266191159ac5126cb1f31662c Mon Sep 17 00:00:00 2001 From: qnex0 <99298308+qnex0@users.noreply.github.com> Date: Sun, 19 Oct 2025 00:16:44 -0400 Subject: [PATCH] fix watchpoint/breakpoint label display --- gui/qt/debugger.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gui/qt/debugger.cpp b/gui/qt/debugger.cpp index 7ded76e4..b7befccd 100644 --- a/gui/qt/debugger.cpp +++ b/gui/qt/debugger.cpp @@ -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 @@ -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; } @@ -510,7 +509,7 @@ void MainWindow::debugCommand(int reason, uint32_t data) { uint32_t low = static_cast(hex2int(m_watchpoints->item(i, WATCH_LOW_COL)->text())); uint32_t high = static_cast(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; }