forked from qt-creator/qt-creator
Debugger: Funnel some LLDB message to the AppOutputPane
This could be extended to the other bridges, not done in this patch. Change-Id: I620290049b7c95f8e3fb7584d4ca99a42fd343d4 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -32,7 +32,7 @@ import threading
|
||||
import time
|
||||
import lldb
|
||||
import utils
|
||||
from utils import DebuggerStartMode, BreakpointType, TypeCode
|
||||
from utils import DebuggerStartMode, BreakpointType, TypeCode, LogChannel
|
||||
|
||||
from contextlib import contextmanager
|
||||
|
||||
@@ -127,8 +127,16 @@ class Dumper(DumperBase):
|
||||
self.isInterrupting_ = False
|
||||
self.interpreterBreakpointResolvers = []
|
||||
|
||||
DumperBase.warn = Dumper.warn_impl
|
||||
self.report('lldbversion=\"%s\"' % lldb.SBDebugger.GetVersionString())
|
||||
|
||||
@staticmethod
|
||||
def warn_impl(message):
|
||||
if message[-1:] == '\n':
|
||||
message += '\n'
|
||||
print('@\nbridgemessage={msg="%s",channel="%s"}\n@'
|
||||
% (message.replace('"', '$'), LogChannel.AppError))
|
||||
|
||||
def fromNativeFrameValue(self, nativeValue):
|
||||
return self.fromNativeValue(nativeValue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user