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

Method jump

ui/registerswidget.cpp:557–582  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555
556
557void DebugRegistersWidget::jump()
558{
559 QModelIndexList sel = selectionModel()->selectedIndexes();
560 if (sel.empty())
561 return;
562
563 auto sourceIndex = m_filter->mapToSource(sel[0]);
564 if (!sourceIndex.isValid())
565 return;
566
567 auto reg = m_model->getRow(sourceIndex.row());
568 uint64_t value = reg.value();
569
570 UIContext* context = UIContext::contextForWidget(this);
571 if (!context)
572 return;
573
574 ViewFrame* frame = context->getCurrentViewFrame();
575 if (!frame)
576 return;
577
578 if (m_controller->GetLiveView())
579 frame->navigate(m_controller->GetLiveView(), value, true, true);
580 else
581 frame->navigate(m_controller->GetData(), value, true, true);
582}
583
584
585void DebugRegistersWidget::jumpInNewPane()

Callers

nothing calls this directly

Calls 5

rowMethod · 0.80
getRowMethod · 0.45
valueMethod · 0.45
GetLiveViewMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected