| 555 | |
| 556 | |
| 557 | void 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 | |
| 585 | void DebugRegistersWidget::jumpInNewPane() |
nothing calls this directly
no test coverage detected