Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Unified Diff: tools/ddbg.dart

Issue 51043004: Remove uses of Options from tools directory. Fix platform_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/coverage.dart ('k') | tools/dom/docs/bin/docs.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
diff --git a/tools/ddbg.dart b/tools/ddbg.dart
index 9b164ab7b48bdc90e563a590e8d64f008a0225e6..5c7acedaf278bf3018a154541452bb6b65cc220a 100644
--- a/tools/ddbg.dart
+++ b/tools/ddbg.dart
@@ -626,12 +626,10 @@ void debuggerMain() {
});
}
-void main() {
- Options options = new Options();
- List<String> arguments = options.arguments;
+void main(List<String> arguments) {
if (arguments.length > 0) {
arguments = <String>['--debug', '--verbose_debug']..addAll(arguments);
- Process.start(options.executable, arguments).then((Process process) {
+ Process.start(Platform.executable, arguments).then((Process process) {
process.stdin.close();
process.exitCode.then((int exitCode) {
print('${arguments.join(" ")} exited with $exitCode');
« no previous file with comments | « tools/coverage.dart ('k') | tools/dom/docs/bin/docs.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698