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

Side by Side Diff: runtime/vm/debugger_api_impl.cc

Issue 2523053002: Implement rewind: drop one or more frames from the debugger. (Closed)
Patch Set: code review Created 4 years 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
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/exceptions.h » ('j') | 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 "include/dart_tools_api.h" 5 #include "include/dart_tools_api.h"
6 6
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_state.h" 10 #include "vm/dart_api_state.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 CHECK_DEBUGGER(I); 478 CHECK_DEBUGGER(I);
479 I->debugger()->RemoveBreakpoint(bp_id); 479 I->debugger()->RemoveBreakpoint(bp_id);
480 return Api::Success(); 480 return Api::Success();
481 } 481 }
482 482
483 483
484 DART_EXPORT Dart_Handle Dart_SetStepOver() { 484 DART_EXPORT Dart_Handle Dart_SetStepOver() {
485 DARTSCOPE(Thread::Current()); 485 DARTSCOPE(Thread::Current());
486 Isolate* I = T->isolate(); 486 Isolate* I = T->isolate();
487 CHECK_DEBUGGER(I); 487 CHECK_DEBUGGER(I);
488 I->debugger()->SetStepOver(); 488 I->debugger()->SetResumeAction(Debugger::kStepOver);
489 return Api::Success(); 489 return Api::Success();
490 } 490 }
491 491
492 492
493 DART_EXPORT Dart_Handle Dart_SetStepInto() { 493 DART_EXPORT Dart_Handle Dart_SetStepInto() {
494 DARTSCOPE(Thread::Current()); 494 DARTSCOPE(Thread::Current());
495 Isolate* I = T->isolate(); 495 Isolate* I = T->isolate();
496 CHECK_DEBUGGER(I); 496 CHECK_DEBUGGER(I);
497 I->debugger()->SetSingleStep(); 497 I->debugger()->SetResumeAction(Debugger::kStepInto);
498 return Api::Success(); 498 return Api::Success();
499 } 499 }
500 500
501 501
502 DART_EXPORT Dart_Handle Dart_SetStepOut() { 502 DART_EXPORT Dart_Handle Dart_SetStepOut() {
503 DARTSCOPE(Thread::Current()); 503 DARTSCOPE(Thread::Current());
504 Isolate* I = T->isolate(); 504 Isolate* I = T->isolate();
505 CHECK_DEBUGGER(I); 505 CHECK_DEBUGGER(I);
506 I->debugger()->SetStepOut(); 506 I->debugger()->SetResumeAction(Debugger::kStepOut);
507 return Api::Success(); 507 return Api::Success();
508 } 508 }
509 509
510 510
511 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object_in) { 511 DART_EXPORT Dart_Handle Dart_GetInstanceFields(Dart_Handle object_in) {
512 DARTSCOPE(Thread::Current()); 512 DARTSCOPE(Thread::Current());
513 Isolate* I = T->isolate(); 513 Isolate* I = T->isolate();
514 CHECK_DEBUGGER(I); 514 CHECK_DEBUGGER(I);
515 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in); 515 UNWRAP_AND_CHECK_PARAM(Instance, obj, object_in);
516 return Api::NewHandle(T, I->debugger()->GetInstanceFields(obj)); 516 return Api::NewHandle(T, I->debugger()->GetInstanceFields(obj));
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
983 983
984 #else 984 #else
985 985
986 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) { 986 DART_EXPORT void Dart_SetPausedEventHandler(Dart_PausedEventHandler handler) {
987 // NOOP. 987 // NOOP.
988 } 988 }
989 989
990 #endif // !PRODUCT 990 #endif // !PRODUCT
991 991
992 } // namespace dart 992 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger.cc ('k') | runtime/vm/exceptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698