mirror of https://github.com/snare/voltron.git
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:
commit
cd11d2f93b
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue