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