| 431 | |
| 432 | |
| 433 | void 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 | |
| 461 | bool DebugModulesWidget::canCopy() |
nothing calls this directly
no test coverage detected