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

Unified Diff: runtime/bin/main.cc

Issue 13597004: Synced basic_debugger_test start on new "debugger initialized" message. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/main.cc
===================================================================
--- runtime/bin/main.cc (revision 20984)
+++ runtime/bin/main.cc (working copy)
@@ -293,7 +293,8 @@
char** executable_name,
char** script_name,
CommandLineOptions* dart_options,
- bool* print_flags_seen) {
+ bool* print_flags_seen,
+ bool* verbose_debug_seen) {
const char* kPrefix = "--";
const intptr_t kPrefixLen = strlen(kPrefix);
@@ -318,6 +319,10 @@
(strncmp(argv[i], kPrintFlags2, strlen(kPrintFlags2)) == 0)) {
*print_flags_seen = true;
}
+ const char* kVerboseDebug = "--verbose_debug";
+ if (strncmp(argv[i], kVerboseDebug, strlen(kVerboseDebug)) == 0) {
+ *verbose_debug_seen = true;
+ }
vm_options->AddArgument(argv[i]);
i++;
}
@@ -677,6 +682,7 @@
CommandLineOptions vm_options(argc);
CommandLineOptions dart_options(argc);
bool print_flags_seen = false;
+ bool verbose_debug_seen = false;
// Perform platform specific initialization.
if (!Platform::Initialize()) {
@@ -694,7 +700,8 @@
&executable_name,
&script_name,
&dart_options,
- &print_flags_seen) < 0) {
+ &print_flags_seen,
+ &verbose_debug_seen) < 0) {
if (has_help_option) {
PrintUsage();
return 0;
@@ -728,6 +735,9 @@
if (start_debugger) {
ASSERT(debug_port != 0);
DebuggerConnectionHandler::StartHandler(debug_ip, debug_port);
+ if (verbose_debug_seen) {
+ Log::Print("Debugger initialized\n");
+ }
}
// Call CreateIsolateAndSetup which creates an isolate and loads up
« no previous file with comments | « no previous file | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698