forked from qt-creator/qt-creator
Debugger: Handle application output in LLDB interface
Change-Id: Ie97c628ece272249c23aab6d5438555c051f5aa1 Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -249,6 +249,8 @@ void LldbEngine::handleResponse(const QByteArray &response)
|
||||
refreshSymbols(item);
|
||||
else if (name == "bkpts")
|
||||
refreshBreakpoints(item);
|
||||
else if (name == "output")
|
||||
refreshOutput(item);
|
||||
else if (name == "disassembly")
|
||||
refreshDisassembly(item);
|
||||
else if (name == "memory")
|
||||
@@ -483,6 +485,18 @@ void LldbEngine::refreshMemory(const GdbMi &data)
|
||||
}
|
||||
}
|
||||
|
||||
void LldbEngine::refreshOutput(const GdbMi &output)
|
||||
{
|
||||
QByteArray channel = output["channel"].data();
|
||||
QByteArray data = QByteArray::fromHex(output["data"].data());
|
||||
LogChannel ch = AppStuff;
|
||||
if (channel == "stdout")
|
||||
ch = AppOutput;
|
||||
else if (channel == "stderr")
|
||||
ch = AppError;
|
||||
showMessage(QString::fromUtf8(data), ch);
|
||||
}
|
||||
|
||||
void LldbEngine::refreshBreakpoints(const GdbMi &bkpts)
|
||||
{
|
||||
BreakHandler *handler = breakHandler();
|
||||
|
||||
Reference in New Issue
Block a user