Index: runtime/vm/isolate.cc |
=================================================================== |
--- runtime/vm/isolate.cc (revision 1927) |
+++ 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" |
@@ -57,6 +58,7 @@ |
api_state_(NULL), |
stub_code_(NULL), |
code_index_table_(NULL), |
+ debugger_(NULL), |
long_jump_base_(NULL), |
timer_list_(), |
stack_limit_(0), |
@@ -129,6 +131,8 @@ |
result->SetStackLimitFromCurrentTOS(reinterpret_cast<uword>(&result)); |
result->set_main_port(PortMap::CreatePort()); |
+ result->debugger_ = new Debugger(); |
+ |
return result; |
} |
@@ -302,6 +306,9 @@ |
// Visit the top context which is stored in the isolate. |
visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_)); |
+ |
+ // Visit objects in the debugger. |
+ debugger()->VisitObjectPointers(visitor); |
} |
} // namespace dart |