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

Unified Diff: runtime/vm/dart_entry.cc

Issue 17846009: Better single stepping in VM debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry.cc
===================================================================
--- runtime/vm/dart_entry.cc (revision 24627)
+++ runtime/vm/dart_entry.cc (working copy)
@@ -6,6 +6,7 @@
#include "vm/code_generator.h"
#include "vm/compiler.h"
+#include "vm/debugger.h"
#include "vm/object_store.h"
#include "vm/resolver.h"
#include "vm/simulator.h"
@@ -421,6 +422,12 @@
args.SetAt(0, receive_port);
args.SetAt(1, Integer::Handle(isolate, Integer::New(reply_port_id)));
args.SetAt(2, message);
+ if (isolate->debugger()->IsStepping()) {
+ // If the isolate is being debugged and the debugger was stepping
+ // through code, enable single stepping so debugger will stop
+ // at the first location the user is interested in.
+ isolate->debugger()->SetSingleStep();
+ }
const Object& result =
Object::Handle(isolate, DartEntry::InvokeFunction(function, args));
ASSERT(result.IsNull() || result.IsError());
« no previous file with comments | « runtime/vm/code_generator.cc ('k') | runtime/vm/debugger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698