return False # continue to handle other cmd def in the cmd list
elif cmd == 'end':
return True # end of cmd list
+ elif cmd == 'EOF':
+ print('')
+ return True # end of cmd list
cmdlist = self.commands[self.commands_bnum]
if arg:
cmdlist.append(cmd+' '+arg)
... 'clear 3',
... 'break',
... 'condition 1',
+ ... 'commands 1',
+ ... 'EOF', # Simulate Ctrl-D/Ctrl-Z from user, should end input
... 'enable 1',
... 'clear 1',
... 'commands 2',
2 breakpoint keep yes at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:4
(Pdb) condition 1
Breakpoint 1 is now unconditional.
+ (Pdb) commands 1
+ (com) EOF
+ <BLANKLINE>
(Pdb) enable 1
Enabled breakpoint 1 at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:3
(Pdb) clear 1