Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: runtime/vm/debuginfo_openbsd.cc

Issue 1559053002: Refs #10260 OpenBSD support #25327 Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review issues Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/cpuinfo_openbsd.cc ('k') | runtime/vm/gdbjit_openbsd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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...) Expand 10 before | Expand all | Expand 10 after
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)
OLDNEW
« no previous file with comments | « runtime/vm/cpuinfo_openbsd.cc ('k') | runtime/vm/gdbjit_openbsd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698