Changeset View
Changeset View
Standalone View
Standalone View
addons/gdbplugin/debugview.cpp
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 61 | { | |||
---|---|---|---|---|---|
73 | if (m_state == none) { | 73 | if (m_state == none) { | ||
74 | m_outBuffer.clear(); | 74 | m_outBuffer.clear(); | ||
75 | m_errBuffer.clear(); | 75 | m_errBuffer.clear(); | ||
76 | m_errorList.clear(); | 76 | m_errorList.clear(); | ||
77 | 77 | | |||
78 | //create a process to control GDB | 78 | //create a process to control GDB | ||
79 | m_debugProcess.setWorkingDirectory(m_targetConf.workDir); | 79 | m_debugProcess.setWorkingDirectory(m_targetConf.workDir); | ||
80 | 80 | | |||
81 | connect(&m_debugProcess, SIGNAL(error(QProcess::ProcessError)), | 81 | connect(&m_debugProcess, static_cast<void(QProcess::*)(QProcess::ProcessError)>(&QProcess::error), | ||
82 | this, SLOT(slotError())); | 82 | this, &DebugView::slotError); | ||
83 | 83 | | |||
84 | connect(&m_debugProcess, SIGNAL(readyReadStandardError()), | 84 | connect(&m_debugProcess, &QProcess::readyReadStandardError, | ||
85 | this, SLOT(slotReadDebugStdErr())); | 85 | this, &DebugView::slotReadDebugStdErr); | ||
86 | 86 | | |||
87 | connect(&m_debugProcess, SIGNAL(readyReadStandardOutput()), | 87 | connect(&m_debugProcess, &QProcess::readyReadStandardOutput, | ||
88 | this, SLOT(slotReadDebugStdOut())); | 88 | this, &DebugView::slotReadDebugStdOut); | ||
89 | 89 | | |||
90 | connect(&m_debugProcess, SIGNAL(finished(int,QProcess::ExitStatus)), | 90 | connect(&m_debugProcess, static_cast<void(QProcess::*)(int,QProcess::ExitStatus)>(&QProcess::finished), | ||
91 | this, SLOT(slotDebugFinished(int,QProcess::ExitStatus))); | 91 | this, &DebugView::slotDebugFinished); | ||
92 | 92 | | |||
93 | m_debugProcess.start(m_targetConf.gdbCmd); | 93 | m_debugProcess.start(m_targetConf.gdbCmd); | ||
94 | 94 | | |||
95 | m_nextCommands << QStringLiteral("set pagination off"); | 95 | m_nextCommands << QStringLiteral("set pagination off"); | ||
96 | m_state = ready; | 96 | m_state = ready; | ||
97 | } | 97 | } | ||
98 | else | 98 | else | ||
99 | { | 99 | { | ||
▲ Show 20 Lines • Show All 597 Lines • Show Last 20 Lines |