OLD | NEW |
---|---|
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 "vm/debugger.h" | 5 #include "vm/debugger.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 | 8 |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/code_patcher.h" | 10 #include "vm/code_patcher.h" |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1569 isolate_ = isolate; | 1569 isolate_ = isolate; |
1570 // Create a port here, we don't expect to receive any messages on this port. | 1570 // Create a port here, we don't expect to receive any messages on this port. |
1571 // This port will be used as a unique ID to represet the isolate in the | 1571 // This port will be used as a unique ID to represet the isolate in the |
1572 // debugger wire protocol messages. | 1572 // debugger wire protocol messages. |
1573 // NOTE: SetLive is never called on this port. | 1573 // NOTE: SetLive is never called on this port. |
1574 isolate_id_ = PortMap::CreatePort(isolate->message_handler()); | 1574 isolate_id_ = PortMap::CreatePort(isolate->message_handler()); |
1575 initialized_ = true; | 1575 initialized_ = true; |
1576 | 1576 |
1577 // Signal isolate creation event. | 1577 // Signal isolate creation event. |
1578 SignalIsolateEvent(Debugger::kIsolateCreated); | 1578 SignalIsolateEvent(Debugger::kIsolateCreated); |
1579 if (FLAG_verbose_debug) { | |
1580 OS::Print("Debugger initialized\n"); | |
hausner
2013/04/04 23:17:45
I think the handshake should even work without thi
Tom Ball
2013/04/04 23:24:56
I tried removing it and the test hangs. You're rig
| |
1581 } | |
1579 } | 1582 } |
1580 | 1583 |
1581 | 1584 |
1582 void Debugger::NotifyCompilation(const Function& func) { | 1585 void Debugger::NotifyCompilation(const Function& func) { |
1583 if (src_breakpoints_ == NULL) { | 1586 if (src_breakpoints_ == NULL) { |
1584 // Return with minimal overhead if there are no breakpoints. | 1587 // Return with minimal overhead if there are no breakpoints. |
1585 return; | 1588 return; |
1586 } | 1589 } |
1587 Function& lookup_function = Function::Handle(func.raw()); | 1590 Function& lookup_function = Function::Handle(func.raw()); |
1588 if (func.IsImplicitClosureFunction()) { | 1591 if (func.IsImplicitClosureFunction()) { |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1741 } | 1744 } |
1742 | 1745 |
1743 | 1746 |
1744 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 1747 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
1745 ASSERT(bpt->next() == NULL); | 1748 ASSERT(bpt->next() == NULL); |
1746 bpt->set_next(code_breakpoints_); | 1749 bpt->set_next(code_breakpoints_); |
1747 code_breakpoints_ = bpt; | 1750 code_breakpoints_ = bpt; |
1748 } | 1751 } |
1749 | 1752 |
1750 } // namespace dart | 1753 } // namespace dart |
OLD | NEW |