| 392 | } |
| 393 | |
| 394 | void 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 |
nothing calls this directly
no test coverage detected