MCPcopy Create free account
hub / github.com/Vector35/debugger / setToZero

Method setToZero

ui/registerswidget.cpp:542–554  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

540
541
542void DebugRegistersWidget::setToZero()
543{
544 QModelIndexList sel = selectionModel()->selectedIndexes();
545 if (sel.empty())
546 return;
547
548 auto sourceIndex = m_filter->mapToSource(sel[0]);
549 if (!sourceIndex.isValid())
550 return;
551
552 auto reg = m_model->getRow(sourceIndex.row());
553 m_controller->SetRegisterValue(reg.name(), 0);
554}
555
556
557void DebugRegistersWidget::jump()

Callers

nothing calls this directly

Calls 4

rowMethod · 0.80
getRowMethod · 0.45
SetRegisterValueMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected