OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/debug/debugger.h" | 5 #include "base/debug/debugger.h" |
6 #include "build/build_config.h" | 6 #include "build/build_config.h" |
7 | 7 |
8 #include <errno.h> | 8 #include <errno.h> |
9 #include <execinfo.h> | 9 #include <execinfo.h> |
10 #include <fcntl.h> | 10 #include <fcntl.h> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #endif | 23 #endif |
24 | 24 |
25 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
26 #include <AvailabilityMacros.h> | 26 #include <AvailabilityMacros.h> |
27 #endif | 27 #endif |
28 | 28 |
29 #if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) | 29 #if defined(OS_MACOSX) || defined(OS_OPENBSD) || defined(OS_FREEBSD) |
30 #include <sys/sysctl.h> | 30 #include <sys/sysctl.h> |
31 #endif | 31 #endif |
32 | 32 |
33 #include <iostream> | 33 #include <ostream> |
34 | 34 |
35 #include "base/basictypes.h" | 35 #include "base/basictypes.h" |
36 #include "base/eintr_wrapper.h" | 36 #include "base/eintr_wrapper.h" |
37 #include "base/logging.h" | 37 #include "base/logging.h" |
38 #include "base/memory/scoped_ptr.h" | 38 #include "base/memory/scoped_ptr.h" |
39 #include "base/safe_strerror_posix.h" | 39 #include "base/safe_strerror_posix.h" |
40 #include "base/string_piece.h" | 40 #include "base/string_piece.h" |
41 #include "base/stringprintf.h" | 41 #include "base/stringprintf.h" |
42 | 42 |
43 #if defined(USE_SYMBOLIZE) | 43 #if defined(USE_SYMBOLIZE) |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 | 195 |
196 void BreakDebugger() { | 196 void BreakDebugger() { |
197 DEBUG_BREAK(); | 197 DEBUG_BREAK(); |
198 #if defined(NDEBUG) | 198 #if defined(NDEBUG) |
199 _exit(1); | 199 _exit(1); |
200 #endif | 200 #endif |
201 } | 201 } |
202 | 202 |
203 } // namespace debug | 203 } // namespace debug |
204 } // namespace base | 204 } // namespace base |
OLD | NEW |