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" |
11 #include "vm/compiler.h" | 11 #include "vm/compiler.h" |
12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
13 #include "vm/deopt_instructions.h" | 13 #include "vm/deopt_instructions.h" |
14 #include "vm/flags.h" | 14 #include "vm/flags.h" |
15 #include "vm/globals.h" | 15 #include "vm/globals.h" |
16 #include "vm/longjump.h" | 16 #include "vm/longjump.h" |
17 #include "vm/json_stream.h" | 17 #include "vm/json_stream.h" |
18 #include "vm/object.h" | 18 #include "vm/object.h" |
19 #include "vm/object_store.h" | 19 #include "vm/object_store.h" |
20 #include "vm/os.h" | 20 #include "vm/os.h" |
21 #include "vm/port.h" | 21 #include "vm/port.h" |
22 #include "vm/stack_frame.h" | 22 #include "vm/stack_frame.h" |
23 #include "vm/stub_code.h" | 23 #include "vm/stub_code.h" |
24 #include "vm/symbols.h" | 24 #include "vm/symbols.h" |
25 #include "vm/visitor.h" | 25 #include "vm/visitor.h" |
26 | 26 |
27 | 27 |
28 namespace dart { | 28 namespace dart { |
29 | 29 |
30 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages"); | 30 DEFINE_FLAG(bool, enable_debugger, true, "Enables debugger step checks"); |
| 31 DEFINE_FLAG(bool, show_invisible_frames, false, |
| 32 "Show invisible frames in debugger stack traces"); |
31 DEFINE_FLAG(bool, trace_debugger_stacktrace, false, | 33 DEFINE_FLAG(bool, trace_debugger_stacktrace, false, |
32 "Trace debugger stacktrace collection"); | 34 "Trace debugger stacktrace collection"); |
33 DEFINE_FLAG(bool, show_invisible_frames, false, | 35 DEFINE_FLAG(bool, verbose_debug, false, "Verbose debugger messages"); |
34 "Show invisible frames in debugger stack traces"); | |
35 | 36 |
36 | 37 |
37 Debugger::EventHandler* Debugger::event_handler_ = NULL; | 38 Debugger::EventHandler* Debugger::event_handler_ = NULL; |
38 | 39 |
39 | 40 |
40 class RemoteObjectCache : public ZoneAllocated { | 41 class RemoteObjectCache : public ZoneAllocated { |
41 public: | 42 public: |
42 explicit RemoteObjectCache(intptr_t initial_size); | 43 explicit RemoteObjectCache(intptr_t initial_size); |
43 intptr_t AddObject(const Object& obj); | 44 intptr_t AddObject(const Object& obj); |
44 RawObject* GetObj(intptr_t obj_id) const; | 45 RawObject* GetObj(intptr_t obj_id) const; |
(...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2562 } | 2563 } |
2563 | 2564 |
2564 | 2565 |
2565 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { | 2566 void Debugger::RegisterCodeBreakpoint(CodeBreakpoint* bpt) { |
2566 ASSERT(bpt->next() == NULL); | 2567 ASSERT(bpt->next() == NULL); |
2567 bpt->set_next(code_breakpoints_); | 2568 bpt->set_next(code_breakpoints_); |
2568 code_breakpoints_ = bpt; | 2569 code_breakpoints_ = bpt; |
2569 } | 2570 } |
2570 | 2571 |
2571 } // namespace dart | 2572 } // namespace dart |
OLD | NEW |