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 10 matching lines...) Expand all Loading... |
21 #include "vm/port.h" | 21 #include "vm/port.h" |
22 #include "vm/service.h" | 22 #include "vm/service.h" |
23 #include "vm/stack_frame.h" | 23 #include "vm/stack_frame.h" |
24 #include "vm/stub_code.h" | 24 #include "vm/stub_code.h" |
25 #include "vm/symbols.h" | 25 #include "vm/symbols.h" |
26 #include "vm/visitor.h" | 26 #include "vm/visitor.h" |
27 | 27 |
28 | 28 |
29 namespace dart { | 29 namespace dart { |
30 | 30 |
31 DEFINE_FLAG(bool, enable_debugger, true, "Enables debugger step checks"); | |
32 DEFINE_FLAG(bool, show_invisible_frames, false, | 31 DEFINE_FLAG(bool, show_invisible_frames, false, |
33 "Show invisible frames in debugger stack traces"); | 32 "Show invisible frames in debugger stack traces"); |
34 DEFINE_FLAG(bool, trace_debugger_stacktrace, false, | 33 DEFINE_FLAG(bool, trace_debugger_stacktrace, false, |
35 "Trace debugger stacktrace collection"); | 34 "Trace debugger stacktrace collection"); |
36 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages"); | 35 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages"); |
37 | 36 |
38 | 37 |
39 Debugger::EventHandler* Debugger::event_handler_ = NULL; | 38 Debugger::EventHandler* Debugger::event_handler_ = NULL; |
40 | 39 |
41 | 40 |
(...skipping 2537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2579 } | 2578 } |
2580 | 2579 |
2581 | 2580 |
2582 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2581 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2583 ASSERT(bpt->next() == NULL); | 2582 ASSERT(bpt->next() == NULL); |
2584 bpt->set_next(code_breakpoints_); | 2583 bpt->set_next(code_breakpoints_); |
2585 code_breakpoints_ = bpt; | 2584 code_breakpoints_ = bpt; |
2586 } | 2585 } |
2587 | 2586 |
2588 } // namespace dart | 2587 } // namespace dart |
OLD | NEW |