Skip to content

Commit 8cdf363

Browse files
committed
Fix how sequence handles initial commands
1 parent 713fd15 commit 8cdf363

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

commands/FBDebugCommands.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ def run(self, arguments, options):
395395
# The full unsplit command is in position 0.
396396
sequence = arguments[1:]
397397
for command in sequence:
398-
interpreter.HandleCommand(command.strip(), self.context, self.result)
399-
if not self.result.Succeeded():
400-
break
398+
object = lldb.SBCommandReturnObject()
399+
interpreter.HandleCommand(command.strip(), self.context, object)
400+
if object.GetOutput():
401+
print >>self.result, object.GetOutput().strip()
402+
403+
if not object.Succeeded():
404+
if object.GetError():
405+
self.result.SetError(object.GetError())
406+
self.result.SetStatus(object.GetStatus())
407+
return

0 commit comments

Comments
 (0)