| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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> |
| 11 #include <stdlib.h> | 11 #include <stdlib.h> |
| 12 #include <sys/param.h> | 12 #include <sys/param.h> |
| 13 #include <sys/stat.h> | 13 #include <sys/stat.h> |
| 14 #include <sys/types.h> | 14 #include <sys/types.h> |
| 15 #include <unistd.h> | 15 #include <unistd.h> |
| 16 | 16 |
| 17 #include <string> | 17 #include <string> |
| 18 #include <vector> | 18 #include <vector> |
| 19 | 19 |
| 20 #if !defined(OS_ANDROID) | 20 #if !defined(OS_ANDROID) && !defined(OS_NACL) |
| 21 #include <execinfo.h> | 21 #include <execinfo.h> |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 #if defined(__GLIBCXX__) | 24 #if defined(__GLIBCXX__) |
| 25 #include <cxxabi.h> | 25 #include <cxxabi.h> |
| 26 #endif | 26 #endif |
| 27 | 27 |
| 28 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
| 29 #include <AvailabilityMacros.h> | 29 #include <AvailabilityMacros.h> |
| 30 #endif | 30 #endif |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 | 212 |
| 213 void BreakDebugger() { | 213 void BreakDebugger() { |
| 214 DEBUG_BREAK(); | 214 DEBUG_BREAK(); |
| 215 #if defined(NDEBUG) | 215 #if defined(NDEBUG) |
| 216 _exit(1); | 216 _exit(1); |
| 217 #endif | 217 #endif |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace debug | 220 } // namespace debug |
| 221 } // namespace base | 221 } // namespace base |
| OLD | NEW |