Merge pull request #198 from nateozem/fix/lldb-attribute-error-of-command

Fix crash when lldb of v4.0.0.1 calls entry.py.
This commit is contained in:
snare 2017-05-04 11:53:31 -07:00 committed by GitHub
commit cd11d2f93b
1 changed files with 2 additions and 1 deletions

View File

@ -395,7 +395,8 @@ if HAVE_LLDB:
ci = self.host.GetCommandInterpreter()
ci.HandleCommand(str(command), res, False)
if res.Succeeded():
return res.GetOutput().strip()
output = res.GetOutput()
return output.strip() if output else ""
else:
raise Exception(res.GetError().strip())
else: