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

Side by Side Diff: runtime/bin/main.cc

Issue 1040543003: Move definition of trace_debug_protocol to dbg_connection.cc as this file is also linked into libvm… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include <stdlib.h> 5 #include <stdlib.h>
6 #include <string.h> 6 #include <string.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 8
9 #include "include/dart_api.h" 9 #include "include/dart_api.h"
10 #include "include/dart_debugger_api.h" 10 #include "include/dart_debugger_api.h"
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 return false; 339 return false;
340 } 340 }
341 341
342 start_vm_service = true; 342 start_vm_service = true;
343 343
344 vm_options->AddArgument("--pause-isolates-on-exit"); 344 vm_options->AddArgument("--pause-isolates-on-exit");
345 return true; 345 return true;
346 } 346 }
347 347
348 348
349 bool trace_debug_protocol = false; 349 extern bool trace_debug_protocol;
350 static bool ProcessTraceDebugProtocolOption(const char* arg, 350 static bool ProcessTraceDebugProtocolOption(const char* arg,
351 CommandLineOptions* vm_options) { 351 CommandLineOptions* vm_options) {
352 if (*arg != '\0') { 352 if (*arg != '\0') {
353 return false; 353 return false;
354 } 354 }
355 trace_debug_protocol = true; 355 trace_debug_protocol = true;
356 return true; 356 return true;
357 } 357 }
358 358
359 359
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
1112 exit(Process::GlobalExitCode()); 1112 exit(Process::GlobalExitCode());
1113 } 1113 }
1114 1114
1115 } // namespace bin 1115 } // namespace bin
1116 } // namespace dart 1116 } // namespace dart
1117 1117
1118 int main(int argc, char** argv) { 1118 int main(int argc, char** argv) {
1119 dart::bin::main(argc, argv); 1119 dart::bin::main(argc, argv);
1120 UNREACHABLE(); 1120 UNREACHABLE();
1121 } 1121 }
OLDNEW
« no previous file with comments | « runtime/bin/dbg_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698