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