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 "base/macros.h" | |
7 #include "build/build_config.h" | |
8 | 6 |
9 #include <errno.h> | 7 #include <errno.h> |
10 #include <fcntl.h> | 8 #include <fcntl.h> |
11 #include <stddef.h> | 9 #include <stddef.h> |
12 #include <stdio.h> | 10 #include <stdio.h> |
13 #include <stdlib.h> | 11 #include <stdlib.h> |
14 #include <sys/param.h> | 12 #include <sys/param.h> |
15 #include <sys/stat.h> | 13 #include <sys/stat.h> |
16 #include <sys/types.h> | 14 #include <sys/types.h> |
17 #include <unistd.h> | 15 #include <unistd.h> |
18 | 16 |
| 17 #include <memory> |
19 #include <vector> | 18 #include <vector> |
20 | 19 |
| 20 #include "base/macros.h" |
| 21 #include "build/build_config.h" |
| 22 |
21 #if defined(__GLIBCXX__) | 23 #if defined(__GLIBCXX__) |
22 #include <cxxabi.h> | 24 #include <cxxabi.h> |
23 #endif | 25 #endif |
24 | 26 |
25 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
26 #include <AvailabilityMacros.h> | 28 #include <AvailabilityMacros.h> |
27 #endif | 29 #endif |
28 | 30 |
29 #if defined(OS_MACOSX) || defined(OS_BSD) | 31 #if defined(OS_MACOSX) || defined(OS_BSD) |
30 #include <sys/sysctl.h> | 32 #include <sys/sysctl.h> |
31 #endif | 33 #endif |
32 | 34 |
33 #if defined(OS_FREEBSD) | 35 #if defined(OS_FREEBSD) |
34 #include <sys/user.h> | 36 #include <sys/user.h> |
35 #endif | 37 #endif |
36 | 38 |
37 #include <ostream> | 39 #include <ostream> |
38 | 40 |
39 #include "base/debug/alias.h" | 41 #include "base/debug/alias.h" |
40 #include "base/logging.h" | 42 #include "base/logging.h" |
41 #include "base/memory/scoped_ptr.h" | |
42 #include "base/posix/eintr_wrapper.h" | 43 #include "base/posix/eintr_wrapper.h" |
43 #include "base/strings/string_piece.h" | 44 #include "base/strings/string_piece.h" |
44 | 45 |
45 #if defined(USE_SYMBOLIZE) | 46 #if defined(USE_SYMBOLIZE) |
46 #include "base/third_party/symbolize/symbolize.h" | 47 #include "base/third_party/symbolize/symbolize.h" |
47 #endif | 48 #endif |
48 | 49 |
49 #if defined(OS_ANDROID) | 50 #if defined(OS_ANDROID) |
50 #include "base/threading/platform_thread.h" | 51 #include "base/threading/platform_thread.h" |
51 #endif | 52 #endif |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 // attach the debugger, inspect the state of the program and then resume it by | 254 // attach the debugger, inspect the state of the program and then resume it by |
254 // setting the 'go' variable above. | 255 // setting the 'go' variable above. |
255 #elif defined(NDEBUG) | 256 #elif defined(NDEBUG) |
256 // Terminate the program after signaling the debug break. | 257 // Terminate the program after signaling the debug break. |
257 _exit(1); | 258 _exit(1); |
258 #endif | 259 #endif |
259 } | 260 } |
260 | 261 |
261 } // namespace debug | 262 } // namespace debug |
262 } // namespace base | 263 } // namespace base |
OLD | NEW |