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 20 matching lines...) Expand all Loading... |
31 #if defined(OS_FREEBSD) | 31 #if defined(OS_FREEBSD) |
32 #include <sys/user.h> | 32 #include <sys/user.h> |
33 #endif | 33 #endif |
34 | 34 |
35 #include <ostream> | 35 #include <ostream> |
36 | 36 |
37 #include "base/basictypes.h" | 37 #include "base/basictypes.h" |
38 #include "base/logging.h" | 38 #include "base/logging.h" |
39 #include "base/memory/scoped_ptr.h" | 39 #include "base/memory/scoped_ptr.h" |
40 #include "base/posix/eintr_wrapper.h" | 40 #include "base/posix/eintr_wrapper.h" |
41 #include "base/safe_strerror_posix.h" | |
42 #include "base/strings/string_piece.h" | 41 #include "base/strings/string_piece.h" |
43 | 42 |
44 #if defined(USE_SYMBOLIZE) | 43 #if defined(USE_SYMBOLIZE) |
45 #include "base/third_party/symbolize/symbolize.h" | 44 #include "base/third_party/symbolize/symbolize.h" |
46 #endif | 45 #endif |
47 | 46 |
48 #if defined(OS_ANDROID) | 47 #if defined(OS_ANDROID) |
49 #include "base/threading/platform_thread.h" | 48 #include "base/threading/platform_thread.h" |
50 #endif | 49 #endif |
51 | 50 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // attach the debugger, inspect the state of the program and then resume it by | 245 // attach the debugger, inspect the state of the program and then resume it by |
247 // setting the 'go' variable above. | 246 // setting the 'go' variable above. |
248 #elif defined(NDEBUG) | 247 #elif defined(NDEBUG) |
249 // Terminate the program after signaling the debug break. | 248 // Terminate the program after signaling the debug break. |
250 _exit(1); | 249 _exit(1); |
251 #endif | 250 #endif |
252 } | 251 } |
253 | 252 |
254 } // namespace debug | 253 } // namespace debug |
255 } // namespace base | 254 } // namespace base |
OLD | NEW |