Skip to content

Commit d6c01f1

Browse files
authored
Handle empty commands in sequence
1 parent 8312a63 commit d6c01f1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

commands/FBDebugCommands.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,8 +442,11 @@ def run(self, arguments, options):
442442
# The full unsplit command is in position 0.
443443
sequence = arguments[1:]
444444
for command in sequence:
445+
command = command.split()
446+
if not command:
447+
continue
445448
object = lldb.SBCommandReturnObject()
446-
interpreter.HandleCommand(command.strip(), self.context, object)
449+
interpreter.HandleCommand(command, self.context, object)
447450
if object.GetOutput():
448451
print >>self.result, object.GetOutput().strip()
449452

0 commit comments

Comments
 (0)