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

Method updateLabels

gui/qt/debugger.cpp:1772–1799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1770}
1771
1772void MainWindow::updateLabels() {
1773 for (int row = 0; row < m_watchpoints->rowCount(); row++) {
1774 QString next = getAddressOfEquate(m_watchpoints->item(row, WATCH_NAME_COL)->text().toUpper().toStdString());
1775 QString old = m_watchpoints->item(row, WATCH_LOW_COL)->text();
1776 if (!next.isEmpty() && next != old) {
1777 unsigned int mask = (m_watchpoints->item(row, WATCH_READ_COL)->checkState() == Qt::Checked ? DBG_MASK_READ : DBG_MASK_NONE) |
1778 (m_watchpoints->item(row, WATCH_WRITE_COL)->checkState() == Qt::Checked ? DBG_MASK_WRITE : DBG_MASK_NONE);
1779 // remove old watchpoint and add new one
1780 m_watchpoints->blockSignals(true);
1781 debug_watch(static_cast<uint32_t>(hex2int(old)), mask, false);
1782 m_watchpoints->item(row, WATCH_LOW_COL)->setText(next);
1783 debug_watch(static_cast<uint32_t>(hex2int(next)), mask, true);
1784 m_watchpoints->blockSignals(true);
1785 }
1786 }
1787 for (int row = 0; row < m_breakpoints->rowCount(); row++) {
1788 QString next = getAddressOfEquate(m_breakpoints->item(row, BREAK_NAME_COL)->text().toUpper().toStdString());
1789 QString old = m_breakpoints->item(row, BREAK_ADDR_COL)->text();
1790 if (!next.isEmpty() && next != old) {
1791 int mask = breakGetMask(row);
1792 m_breakpoints->blockSignals(true);
1793 debug_watch(static_cast<uint32_t>(hex2int(old)), mask, false);
1794 m_breakpoints->item(row, BREAK_ADDR_COL)->setText(next);
1795 debug_watch(static_cast<uint32_t>(hex2int(next)), mask, true);
1796 m_breakpoints->blockSignals(false);
1797 }
1798 }
1799}
1800
1801void MainWindow::equatesRefresh() {
1802 disasm.map.clear();

Callers

nothing calls this directly

Calls 4

getAddressOfEquateFunction · 0.85
debug_watchFunction · 0.85
hex2intFunction · 0.85
rowCountMethod · 0.80

Tested by

no test coverage detected