Ejemplo n.º 1
0
QString GDBCommand::initialString() const
{
    QString result = QString::number(token());

    if (type() == NonMI) {
        result += command_;
    } else
    {
        result += gdbCommand();

        if (m_thread != -1)
            result = result + QString(" --thread %1").arg(m_thread);
        if (m_frame != -1)
            result = result + QString(" --frame %1").arg(m_frame);

        if (!command_.isEmpty())
            result += ' ' + command_;
    }

    return result;
}
Ejemplo n.º 2
0
QString GDBCommand::initialString() const
{
    return (type() == NonMI ? QString() : gdbCommand() + " ") + command_;
}