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

Method watchUpdateRow

gui/qt/debugger.cpp:1469–1483  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1467}
1468
1469void MainWindow::watchUpdateRow(int row) {
1470
1471 // this is needed in the case of overlapping address spaces
1472 if (m_watchpoints->item(row, WATCH_LOW_COL)->text() != DEBUG_UNSET_ADDR &&
1473 m_watchpoints->item(row, WATCH_HIGH_COL)->text() != DEBUG_UNSET_ADDR) {
1474 uint32_t low = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_LOW_COL)->text()));
1475 uint32_t high = static_cast<uint32_t>(hex2int(m_watchpoints->item(row, WATCH_HIGH_COL)->text()));
1476
1477 for (uint32_t addr = low; addr <= high; addr++) {
1478 debug_watch(addr, DBG_MASK_READ | DBG_MASK_WRITE, false);
1479 }
1480 }
1481
1482 watchUpdate();
1483}
1484
1485bool MainWindow::watchAdd(const QString& label, uint32_t low, uint32_t high, int mask, bool toggle, bool unset) {
1486 const int row = m_watchpoints->rowCount();

Callers

nothing calls this directly

Calls 2

hex2intFunction · 0.85
debug_watchFunction · 0.85

Tested by

no test coverage detected