| 43 | } |
| 44 | |
| 45 | QString MICommand::initialString() const |
| 46 | { |
| 47 | QString result = QString::number(token()); |
| 48 | |
| 49 | if (type() == NonMI) { |
| 50 | result += command_; |
| 51 | } else |
| 52 | { |
| 53 | result += miCommand(); |
| 54 | |
| 55 | if (m_thread != -1) |
| 56 | result += QStringLiteral(" --thread %1").arg(m_thread); |
| 57 | if (m_frame != -1) |
| 58 | result += QStringLiteral(" --frame %1").arg(m_frame); |
| 59 | |
| 60 | if (!command_.isEmpty()) |
| 61 | result += QLatin1Char(' ') + command_; |
| 62 | } |
| 63 | |
| 64 | return result; |
| 65 | } |
| 66 | |
| 67 | bool MICommand::isUserCommand() const |
| 68 | { |