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/globals.h" |
| 6 #if defined(TARGET_OS_LINUX) |
| 7 |
5 #include "vm/debuginfo.h" | 8 #include "vm/debuginfo.h" |
6 | 9 |
7 #include "vm/elfgen.h" | 10 #include "vm/elfgen.h" |
8 #include "vm/gdbjit_linux.h" | 11 #include "vm/gdbjit_linux.h" |
9 | 12 |
10 namespace dart { | 13 namespace dart { |
11 | 14 |
12 DebugInfo::DebugInfo() { | 15 DebugInfo::DebugInfo() { |
13 handle_ = reinterpret_cast<void*>(new ElfGen()); | 16 handle_ = reinterpret_cast<void*>(new ElfGen()); |
14 ASSERT(handle_ != NULL); | 17 ASSERT(handle_ != NULL); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 delete dynamic_region; | 66 delete dynamic_region; |
64 delete elf_section; | 67 delete elf_section; |
65 } | 68 } |
66 | 69 |
67 | 70 |
68 void DebugInfo::UnregisterAllSections() { | 71 void DebugInfo::UnregisterAllSections() { |
69 ::deleteDynamicSections(); | 72 ::deleteDynamicSections(); |
70 } | 73 } |
71 | 74 |
72 } // namespace dart | 75 } // namespace dart |
| 76 |
| 77 #endif // defined(TARGET_OS_LINUX) |
OLD | NEW |