DescriptionRework how we run/kill scripts and how we quit in ddbg.
-------------
Details:
Add a new Command class to ddbg and begin using it to implement
command dispatching, help, and completion. I hope to migrate all the
commands to this pattern.
Since command dispatch now accepts command prefixes (e.g. 'q' for
'quit') I now use slightly longer command names.
The debugged program no longer starts automatically. It can now be
started and stopped with the run/kill commands.
The set/show commands are added which provide a general way to
modify/query debugger settings. For example, this can be used to
change the arguments passed to the debugged script or its vm
(e.g. 'set vmargs --myvmarg').
'q' -> 'quit'
'h' -> 'help'. Also added command help, e.g. 'help run', 'help help'.
This is only implemented for the new commands so far.
Commando now exports a Stream instead of taking a command handler.
This makes it simpler to add error/done handlers for Commando.
Reworking ddbg quitting. When the debugged process quits, the
debugger no longer quits. When the user quits, try to kill the
debugged process, shut down the debugger connection, and shut down
commando. When we get an unexpected error in Commando, try to handle
it better. Whenever we quit, try to restore echomode/linemode.
Add a retry "loop" to handle the case where the debugged process takes
a bit to open its debug port. This tends to happen a lot on the
second 'run' for some reason.
R=hausner@google.com
Committed: https://code.google.com/p/dart/source/detail?r=30871
Patch Set 1 #Patch Set 2 : #Patch Set 3 : #
Total comments: 10
Patch Set 4 : #Patch Set 5 : #Patch Set 6 : #Patch Set 7 : #Messages
Total messages: 5 (0 generated)
|