MCPcopy Create free account
hub / github.com/KDE/kdevelop / disassembleMemoryRegion

Method disassembleMemoryRegion

plugins/debuggercommon/widgets/disassemblewidget.cpp:394–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void DisassembleWidget::disassembleMemoryRegion(QStringView from, QStringView to, HandlerMethod handlerMethod)
395{
396 Q_ASSERT(!from.isEmpty());
397
398 auto* const session = currentSessionThatAcceptsCommands();
399 if (!session) {
400 return;
401 }
402
403 const auto command = to.isEmpty() ? QLatin1String{"-s %1 -e \"%1 + 256\" -- 0"}.arg(from)
404 : QLatin1String{"-s %1 -e %2+1 -- 0"}.arg(from, to);
405 session->addCommandWithCurrentSessionHandler(DataDisassemble, command, this, handlerMethod);
406}
407
408/***************************************************************************/
409

Callers

nothing calls this directly

Calls 3

isEmptyMethod · 0.45

Tested by

no test coverage detected