| 472 | |
| 473 | template<class Handler> |
| 474 | void MIDebugSession::addCommand(MI::CommandType type, const QString& arguments, Handler* handler_this, |
| 475 | MI::MICommand::ResultRecordMethod<Handler> handler_method, MI::CommandFlags flags) |
| 476 | { |
| 477 | auto cmd = createCommand(type, arguments, flags); |
| 478 | cmd->setHandler(handler_this, handler_method); |
| 479 | queueCmd(std::move(cmd)); |
| 480 | } |
| 481 | |
| 482 | template<class Handler> |
| 483 | void MIDebugSession::addCommandWithCurrentSessionHandler(MI::CommandType type, const QString& arguments, |