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

Method jumpToStart

ui/moduleswidget.cpp:405–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403
404
405void DebugModulesWidget::jumpToStart()
406{
407 QModelIndexList sel = selectionModel()->selectedIndexes();
408 if (sel.empty())
409 return;
410
411 auto sourceIndex = m_filter->mapToSource(sel[0]);
412 if (!sourceIndex.isValid())
413 return;
414
415 auto module = m_model->getRow(sourceIndex.row());
416 uint64_t address = module.address();
417
418 UIContext* context = UIContext::contextForWidget(this);
419 if (!context)
420 return;
421
422 ViewFrame* frame = context->getCurrentViewFrame();
423 if (!frame)
424 return;
425
426 if (m_controller->GetLiveView())
427 frame->navigate(m_controller->GetLiveView(), address, true, true);
428 else
429 frame->navigate(m_controller->GetData(), address, true, true);
430}
431
432
433void DebugModulesWidget::jumpToEnd()

Callers

nothing calls this directly

Calls 5

rowMethod · 0.80
getRowMethod · 0.45
addressMethod · 0.45
GetLiveViewMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected