| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
| 28 #include <AvailabilityMacros.h> | 28 #include <AvailabilityMacros.h> |
| 29 #endif | 29 #endif |
| 30 | 30 |
| 31 #include <iostream> | 31 #include <iostream> |
| 32 | 32 |
| 33 #include "base/basictypes.h" | 33 #include "base/basictypes.h" |
| 34 #include "base/eintr_wrapper.h" | 34 #include "base/eintr_wrapper.h" |
| 35 #include "base/logging.h" | 35 #include "base/logging.h" |
| 36 #include "base/memory/scoped_ptr.h" |
| 36 #include "base/safe_strerror_posix.h" | 37 #include "base/safe_strerror_posix.h" |
| 37 #include "base/scoped_ptr.h" | |
| 38 #include "base/string_piece.h" | 38 #include "base/string_piece.h" |
| 39 #include "base/stringprintf.h" | 39 #include "base/stringprintf.h" |
| 40 | 40 |
| 41 #if defined(USE_SYMBOLIZE) | 41 #if defined(USE_SYMBOLIZE) |
| 42 #include "base/third_party/symbolize/symbolize.h" | 42 #include "base/third_party/symbolize/symbolize.h" |
| 43 #endif | 43 #endif |
| 44 | 44 |
| 45 namespace base { | 45 namespace base { |
| 46 namespace debug { | 46 namespace debug { |
| 47 | 47 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 | 174 |
| 175 void BreakDebugger() { | 175 void BreakDebugger() { |
| 176 DEBUG_BREAK(); | 176 DEBUG_BREAK(); |
| 177 #if defined(NDEBUG) | 177 #if defined(NDEBUG) |
| 178 _exit(1); | 178 _exit(1); |
| 179 #endif | 179 #endif |
| 180 } | 180 } |
| 181 | 181 |
| 182 } // namespace debug | 182 } // namespace debug |
| 183 } // namespace base | 183 } // namespace base |
| OLD | NEW |