| 313 | |
| 314 | |
| 315 | void DebugBreakpointsWidget::jump() |
| 316 | { |
| 317 | QModelIndexList sel = selectionModel()->selectedRows(); |
| 318 | if (sel.empty()) |
| 319 | return; |
| 320 | |
| 321 | BreakpointItem bp = m_model->getRow(sel[0].row()); |
| 322 | |
| 323 | auto address_or_offset = bp.address(); |
| 324 | Ref<BinaryView> view = m_controller->GetData(); |
| 325 | const auto is_absolute = m_controller->IsConnected(); |
| 326 | if (!is_absolute) |
| 327 | address_or_offset += view->GetStart(); |
| 328 | |
| 329 | UIContext* context = UIContext::contextForWidget(this); |
| 330 | ViewFrame* frame = context->getCurrentViewFrame(); |
| 331 | if (m_controller->GetLiveView()) |
| 332 | frame->navigate(m_controller->GetLiveView(), address_or_offset, true, true); |
| 333 | else |
| 334 | frame->navigate(m_controller->GetData(), address_or_offset, true, true); |
| 335 | } |
| 336 | |
| 337 | |
| 338 | void DebugBreakpointsWidget::add() |
nothing calls this directly
no test coverage detected