OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "vm/service.h" | 5 #include "vm/service.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
10 | 10 |
(...skipping 2318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2329 | 2329 |
2330 static bool Resume(Isolate* isolate, JSONStream* js) { | 2330 static bool Resume(Isolate* isolate, JSONStream* js) { |
2331 const char* step_param = js->LookupParam("step"); | 2331 const char* step_param = js->LookupParam("step"); |
2332 if (isolate->message_handler()->paused_on_start()) { | 2332 if (isolate->message_handler()->paused_on_start()) { |
2333 // If the user is issuing a 'Over' or an 'Out' step, that is the | 2333 // If the user is issuing a 'Over' or an 'Out' step, that is the |
2334 // same as a regular resume request. | 2334 // same as a regular resume request. |
2335 if ((step_param != NULL) && (strcmp(step_param, "Into") == 0)) { | 2335 if ((step_param != NULL) && (strcmp(step_param, "Into") == 0)) { |
2336 isolate->debugger()->EnterSingleStepMode(); | 2336 isolate->debugger()->EnterSingleStepMode(); |
2337 } | 2337 } |
2338 isolate->message_handler()->set_pause_on_start(false); | 2338 isolate->message_handler()->set_pause_on_start(false); |
| 2339 isolate->set_last_resume_timestamp(); |
2339 if (Service::debug_stream.enabled()) { | 2340 if (Service::debug_stream.enabled()) { |
2340 ServiceEvent event(isolate, ServiceEvent::kResume); | 2341 ServiceEvent event(isolate, ServiceEvent::kResume); |
2341 Service::HandleEvent(&event); | 2342 Service::HandleEvent(&event); |
2342 } | 2343 } |
2343 PrintSuccess(js); | 2344 PrintSuccess(js); |
2344 return true; | 2345 return true; |
2345 } | 2346 } |
2346 if (isolate->message_handler()->paused_on_exit()) { | 2347 if (isolate->message_handler()->paused_on_exit()) { |
2347 isolate->message_handler()->set_pause_on_exit(false); | 2348 isolate->message_handler()->set_pause_on_exit(false); |
2348 // We don't send a resume event because we will be exiting. | 2349 // We don't send a resume event because we will be exiting. |
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3162 ServiceMethodDescriptor& method = service_methods_[i]; | 3163 ServiceMethodDescriptor& method = service_methods_[i]; |
3163 if (strcmp(method_name, method.name) == 0) { | 3164 if (strcmp(method_name, method.name) == 0) { |
3164 return &method; | 3165 return &method; |
3165 } | 3166 } |
3166 } | 3167 } |
3167 return NULL; | 3168 return NULL; |
3168 } | 3169 } |
3169 | 3170 |
3170 | 3171 |
3171 } // namespace dart | 3172 } // namespace dart |
OLD | NEW |