| 403 | |
| 404 | |
| 405 | void 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 | |
| 433 | void DebugModulesWidget::jumpToEnd() |
nothing calls this directly
no test coverage detected