MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / watchRemoveRow

Method watchRemoveRow

gui/qt/debugger.cpp:1338–1355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1336}
1337
1338void 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
1357void MainWindow::watchRemoveSelected() {
1358 for (int row = 0; row < m_watchpoints->rowCount(); row++){

Callers

nothing calls this directly

Calls 3

hex2intFunction · 0.85
debug_watchFunction · 0.85
removeRowMethod · 0.80

Tested by

no test coverage detected