| 1336 | } |
| 1337 | |
| 1338 | void MainWindow::watchRemoveRow(int row) { |
| 1339 | if (m_watchpoints->item(row, WATCH_LOW_COL)->text() != DEBUG_UNSET_ADDR && |
| 1340 | m_watchpoints->item(row, WATCH_HIGH_COL)->text() != DEBUG_UNSET_ADDR) { |
| 1341 | uint32_t low = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_LOW_COL)->text())); |
| 1342 | uint32_t high = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_HIGH_COL)->text())); |
| 1343 | |
| 1344 | for (uint32_t addr = low; addr <= high; addr++) { |
| 1345 | debug_watch(addr, DBG_MASK_READ | DBG_MASK_WRITE, false); |
| 1346 | } |
| 1347 | |
| 1348 | if (!m_guiAdd && !m_useSoftCom) { |
| 1349 | disasmUpdate(); |
| 1350 | memUpdate(); |
| 1351 | } |
| 1352 | } |
| 1353 | m_watchpoints->removeRow(row); |
| 1354 | watchUpdate(); |
| 1355 | } |
| 1356 | |
| 1357 | void MainWindow::watchRemoveSelected() { |
| 1358 | for (int row = 0; row < m_watchpoints->rowCount(); row++){ |
nothing calls this directly
no test coverage detected