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

Method watchUpdate

gui/qt/debugger.cpp:1447–1467  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1445}
1446
1447void MainWindow::watchUpdate() {
1448
1449 // this is needed in the case of overlapping address spaces
1450 for (int row = 0; row < m_watchpoints->rowCount(); row++) {
1451 if (m_watchpoints->item(row, WATCH_LOW_COL)->text() != DEBUG_UNSET_ADDR &&
1452 m_watchpoints->item(row, WATCH_HIGH_COL)->text() != DEBUG_UNSET_ADDR) {
1453 uint32_t low = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_LOW_COL)->text()));
1454 uint32_t high = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_HIGH_COL)->text()));
1455 int mask = watchGetMask(row);
1456
1457 for (uint32_t addr = low; addr <= high; addr++) {
1458 debug_watch(addr, mask, true);
1459 }
1460 }
1461 }
1462
1463 if (!m_guiAdd && !m_useSoftCom) {
1464 disasmUpdate();
1465 memUpdate();
1466 }
1467}
1468
1469void MainWindow::watchUpdateRow(int row) {
1470

Callers

nothing calls this directly

Calls 3

hex2intFunction · 0.85
debug_watchFunction · 0.85
rowCountMethod · 0.80

Tested by

no test coverage detected