Changeset View
Changeset View
Standalone View
Standalone View
debuggers/gdb/gdb.cpp
Show First 20 Lines • Show All 186 Lines • ▼ Show 20 Line(s) | 179 | { | |||
---|---|---|---|---|---|
187 | 187 | | |||
188 | processLine(reply); | 188 | processLine(reply); | ||
189 | } | 189 | } | ||
190 | } | 190 | } | ||
191 | 191 | | |||
192 | void GDB::readyReadStandardError() | 192 | void GDB::readyReadStandardError() | ||
193 | { | 193 | { | ||
194 | process_->setReadChannel(QProcess::StandardOutput); | 194 | process_->setReadChannel(QProcess::StandardOutput); | ||
195 | emit internalCommandOutput(QString::fromUtf8(process_->readAll())); | 195 | emit debuggerInternalOutput(QString::fromUtf8(process_->readAll())); | ||
196 | } | 196 | } | ||
197 | 197 | | |||
198 | void GDB::processLine(const QByteArray& line) | 198 | void GDB::processLine(const QByteArray& line) | ||
199 | { | 199 | { | ||
200 | qCDebug(DEBUGGERGDB) << "GDB output: " << line; | 200 | qCDebug(DEBUGGERGDB) << "GDB output: " << line; | ||
201 | 201 | | |||
202 | FileSymbol file; | 202 | FileSymbol file; | ||
203 | file.contents = line; | 203 | file.contents = line; | ||
▲ Show 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 224 | #endif | |||
303 | } | 303 | } | ||
304 | 304 | | |||
305 | case GDBMI::Record::Stream: { | 305 | case GDBMI::Record::Stream: { | ||
306 | 306 | | |||
307 | GDBMI::StreamRecord& s = dynamic_cast<GDBMI::StreamRecord&>(*r); | 307 | GDBMI::StreamRecord& s = dynamic_cast<GDBMI::StreamRecord&>(*r); | ||
308 | 308 | | |||
309 | if (s.subkind == GDBMI::StreamRecord::Target) { | 309 | if (s.subkind == GDBMI::StreamRecord::Target) { | ||
310 | emit applicationOutput(s.message); | 310 | emit applicationOutput(s.message); | ||
311 | } else { | 311 | } else if (s.subkind == GDBMI::StreamRecord::Console) { | ||
312 | if (currentCmd_ && currentCmd_->isUserCommand()) | 312 | if (currentCmd_ && currentCmd_->isUserCommand()) | ||
313 | emit userCommandOutput(s.message); | 313 | emit userCommandOutput(s.message); | ||
314 | else if (s.subkind == GDBMI::StreamRecord::Console) { | 314 | else | ||
315 | emit applicationOutput(s.message); | | |||
316 | } else { | | |||
317 | emit internalCommandOutput(s.message); | 315 | emit internalCommandOutput(s.message); | ||
318 | } | | |||
319 | 316 | | |||
320 | if (currentCmd_) | 317 | if (currentCmd_) | ||
321 | currentCmd_->newOutput(s.message); | 318 | currentCmd_->newOutput(s.message); | ||
319 | } else { | ||||
320 | emit debuggerInternalOutput(s.message); | ||||
322 | } | 321 | } | ||
323 | 322 | | |||
324 | emit streamRecord(s); | 323 | emit streamRecord(s); | ||
325 | 324 | | |||
326 | break; | 325 | break; | ||
327 | } | 326 | } | ||
328 | 327 | | |||
329 | case GDBMI::Record::Prompt: | 328 | case GDBMI::Record::Prompt: | ||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |