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

Method jump

ui/breakpointswidget.cpp:315–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315void 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
338void DebugBreakpointsWidget::add()

Callers

nothing calls this directly

Calls 6

rowMethod · 0.80
getRowMethod · 0.45
addressMethod · 0.45
GetDataMethod · 0.45
IsConnectedMethod · 0.45
GetLiveViewMethod · 0.45

Tested by

no test coverage detected