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

Method jumpToEnd

ui/moduleswidget.cpp:433–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431
432
433void DebugModulesWidget::jumpToEnd()
434{
435 QModelIndexList sel = selectionModel()->selectedIndexes();
436 if (sel.empty())
437 return;
438
439 auto sourceIndex = m_filter->mapToSource(sel[0]);
440 if (!sourceIndex.isValid())
441 return;
442
443 auto module = m_model->getRow(sourceIndex.row());
444 uint64_t address = module.endAddress();
445
446 UIContext* context = UIContext::contextForWidget(this);
447 if (!context)
448 return;
449
450 ViewFrame* frame = context->getCurrentViewFrame();
451 if (!frame)
452 return;
453
454 if (m_controller->GetLiveView())
455 frame->navigate(m_controller->GetLiveView(), address, true, true);
456 else
457 frame->navigate(m_controller->GetData(), address, true, true);
458}
459
460
461bool DebugModulesWidget::canCopy()

Callers

nothing calls this directly

Calls 5

rowMethod · 0.80
endAddressMethod · 0.80
getRowMethod · 0.45
GetLiveViewMethod · 0.45
GetDataMethod · 0.45

Tested by

no test coverage detected