mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 06:17:29 +00:00
86fd5069df
------------- 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 Review URL: https://codereview.chromium.org//99963004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@30871 260f80e4-7a28-3924-810f-c04153c831b5 |
||
---|---|---|
.. | ||
commando.dart | ||
terminfo.dart |