The LLDB wrapper can handle None as output from the Python lldb module

This commit is contained in:
Ingo Heimbach 2018-02-27 13:56:24 +01:00
parent 44cc26204e
commit 8842555cac

View File

@ -213,6 +213,8 @@ class Debugger(object):
def prefix_output(output, prefix):
if output is None:
output = ''
lines = output.split('\n')
lines = [prefix + line for line in lines]
prefixed_output = '\n'.join(lines)