Debugger: Distinguish stdout and stderr in LLDB

At least theoretically, on our side. Practically the output
seems to arrive all with ldb.SBProcess.eBroadcastBitSTDOUT
from LLDB.

Change-Id: I61cfb1e01193c57e06aebeaa8defa11809e24c50
Reviewed-by: Eike Ziller <eike.ziller@digia.com>
This commit is contained in:
hjk
2013-11-05 11:35:25 +01:00
parent 53e8991600
commit a57ab5d44e

View File

@@ -1306,7 +1306,7 @@ class Dumper(DumperBase):
% binascii.hexlify(msg)) % binascii.hexlify(msg))
elif type == lldb.SBProcess.eBroadcastBitSTDERR: elif type == lldb.SBProcess.eBroadcastBitSTDERR:
msg = self.process.GetSTDERR(1024) msg = self.process.GetSTDERR(1024)
self.report('output={channel="stdout",data="%s"}' self.report('output={channel="stderr",data="%s"}'
% binascii.hexlify(msg)) % binascii.hexlify(msg))
elif type == lldb.SBProcess.eBroadcastBitProfileData: elif type == lldb.SBProcess.eBroadcastBitProfileData:
pass pass