| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <fcntl.h> | 9 #include <fcntl.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include <sys/sysctl.h> | 33 #include <sys/sysctl.h> |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #if defined(OS_FREEBSD) | 36 #if defined(OS_FREEBSD) |
| 37 #include <sys/user.h> | 37 #include <sys/user.h> |
| 38 #endif | 38 #endif |
| 39 | 39 |
| 40 #include <ostream> | 40 #include <ostream> |
| 41 | 41 |
| 42 #include "base/basictypes.h" | 42 #include "base/basictypes.h" |
| 43 #include "base/eintr_wrapper.h" | |
| 44 #include "base/logging.h" | 43 #include "base/logging.h" |
| 45 #include "base/memory/scoped_ptr.h" | 44 #include "base/memory/scoped_ptr.h" |
| 45 #include "base/posix/eintr_wrapper.h" |
| 46 #include "base/safe_strerror_posix.h" | 46 #include "base/safe_strerror_posix.h" |
| 47 #include "base/string_piece.h" | 47 #include "base/string_piece.h" |
| 48 #include "base/stringprintf.h" | 48 #include "base/stringprintf.h" |
| 49 | 49 |
| 50 #if defined(USE_SYMBOLIZE) | 50 #if defined(USE_SYMBOLIZE) |
| 51 #include "base/third_party/symbolize/symbolize.h" | 51 #include "base/third_party/symbolize/symbolize.h" |
| 52 #endif | 52 #endif |
| 53 | 53 |
| 54 #if defined(OS_ANDROID) | 54 #if defined(OS_ANDROID) |
| 55 #include "base/threading/platform_thread.h" | 55 #include "base/threading/platform_thread.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 // attach the debugger, inspect the state of the program and then resume it by | 237 // attach the debugger, inspect the state of the program and then resume it by |
| 238 // setting the 'go' variable above. | 238 // setting the 'go' variable above. |
| 239 #elif defined(NDEBUG) | 239 #elif defined(NDEBUG) |
| 240 // Terminate the program after signaling the debug break. | 240 // Terminate the program after signaling the debug break. |
| 241 _exit(1); | 241 _exit(1); |
| 242 #endif | 242 #endif |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace debug | 245 } // namespace debug |
| 246 } // namespace base | 246 } // namespace base |
| OLD | NEW |