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

Unified Diff: runtime/vm/isolate.cc

Issue 8687037: Very first steps for a debugger (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 1899)
+++ runtime/vm/isolate.cc (working copy)
@@ -11,6 +11,7 @@
#include "vm/code_index_table.h"
#include "vm/compiler_stats.h"
#include "vm/dart_api_state.h"
+#include "vm/debugger.h"
#include "vm/debuginfo.h"
#include "vm/heap.h"
#include "vm/message_queue.h"
@@ -55,6 +56,7 @@
api_state_(NULL),
stub_code_(NULL),
code_index_table_(NULL),
+ debugger_(NULL),
long_jump_base_(NULL),
timer_list_(),
stack_limit_(0),
@@ -126,6 +128,8 @@
// main thread.
result->SetStackLimitFromCurrentTOS(reinterpret_cast<uword>(&result));
+ result->debugger_ = new Debugger();
+
return result;
}
@@ -293,6 +297,8 @@
// Visit the top context which is stored in the isolate.
visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_));
+
siva 2011/11/30 00:00:47 // Visit objects in the debugger.
hausner 2011/11/30 01:17:05 Done.
+ debugger()->VisitObjectPointers(visitor);
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698