Skip to content

Commit

Permalink
Merge pull request #234 from facebook/sequence-fixes
Browse files Browse the repository at this point in the history
Fix how sequence handles initial commands
  • Loading branch information
kastiglione committed Mar 11, 2018
2 parents d386b16 + 8cdf363 commit cd4582c
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions commands/FBDebugCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,13 @@ def run(self, arguments, options):
# The full unsplit command is in position 0.
sequence = arguments[1:]
for command in sequence:
interpreter.HandleCommand(command.strip(), self.context, self.result)
if not self.result.Succeeded():
break
object = lldb.SBCommandReturnObject()
interpreter.HandleCommand(command.strip(), self.context, object)
if object.GetOutput():
print >>self.result, object.GetOutput().strip()

if not object.Succeeded():
if object.GetError():
self.result.SetError(object.GetError())
self.result.SetStatus(object.GetStatus())
return

0 comments on commit cd4582c

Please sign in to comment.