Commit d42544e0 authored by hjk's avatar hjk

Debugger: Enable mouse input/output navigation in LLDB log window

Change-Id: Idee41c6c2769397d6eee3ab74de4afbb94111e25
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent c3649f53
......@@ -826,7 +826,8 @@ void LldbEngine::readLldbStandardError()
void LldbEngine::readLldbStandardOutput()
{
QByteArray out = m_lldbProc.readAllStandardOutput();
showMessage(_("Lldb stdout: " + out));
//showMessage(_("Lldb stdout: " + out));
showMessage(_(out), LogDebug);
m_inbuffer.append(out);
while (true) {
int pos = m_inbuffer.indexOf("@\n");
......
......@@ -306,13 +306,18 @@ public slots:
{
QString needle = QString::number(i) + QLatin1Char('^');
QString needle2 = QLatin1Char('>') + needle;
QString needle3 = QString::fromLatin1("dtoken(\"%1\")@").arg(i);
QTextCursor cursor(document());
do {
cursor = document()->find(needle, cursor);
if (cursor.isNull())
QTextCursor newCursor = document()->find(needle, cursor);
if (newCursor.isNull()) {
newCursor = document()->find(needle3, cursor);
if (newCursor.isNull())
break; // Not found.
}
cursor = newCursor;
const QString line = cursor.block().text();
if (line.startsWith(needle) || line.startsWith(needle2)) {
if (line.startsWith(needle) || line.startsWith(needle2) || line.startsWith(needle3)) {
setFocus();
setTextCursor(cursor);
ensureCursorVisible();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment