| 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/stack_trace.h" | 5 #include "base/debug/stack_trace.h" |
| 6 | 6 |
| 7 #include <errno.h> | 7 #include <errno.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <signal.h> | 9 #include <signal.h> |
| 10 #include <stddef.h> | 10 #include <stddef.h> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include <cxxabi.h> | 26 #include <cxxabi.h> |
| 27 #endif | 27 #endif |
| 28 #if !defined(__UCLIBC__) | 28 #if !defined(__UCLIBC__) |
| 29 #include <execinfo.h> | 29 #include <execinfo.h> |
| 30 #endif | 30 #endif |
| 31 | 31 |
| 32 #if defined(OS_MACOSX) | 32 #if defined(OS_MACOSX) |
| 33 #include <AvailabilityMacros.h> | 33 #include <AvailabilityMacros.h> |
| 34 #endif | 34 #endif |
| 35 | 35 |
| 36 #if defined(OS_LINUX) |
| 37 #include "base/debug/proc_maps_linux.h" |
| 38 #endif |
| 39 |
| 36 #include "base/debug/debugger.h" | 40 #include "base/debug/debugger.h" |
| 37 #include "base/debug/proc_maps_linux.h" | |
| 38 #include "base/logging.h" | 41 #include "base/logging.h" |
| 39 #include "base/macros.h" | 42 #include "base/macros.h" |
| 40 #include "base/memory/free_deleter.h" | 43 #include "base/memory/free_deleter.h" |
| 41 #include "base/memory/singleton.h" | 44 #include "base/memory/singleton.h" |
| 42 #include "base/numerics/safe_conversions.h" | 45 #include "base/numerics/safe_conversions.h" |
| 43 #include "base/posix/eintr_wrapper.h" | 46 #include "base/posix/eintr_wrapper.h" |
| 44 #include "base/strings/string_number_conversions.h" | 47 #include "base/strings/string_number_conversions.h" |
| 45 #include "build/build_config.h" | 48 #include "build/build_config.h" |
| 46 | 49 |
| 47 #if defined(USE_SYMBOLIZE) | 50 #if defined(USE_SYMBOLIZE) |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 *ptr = *start; | 808 *ptr = *start; |
| 806 *start++ = ch; | 809 *start++ = ch; |
| 807 } | 810 } |
| 808 return buf; | 811 return buf; |
| 809 } | 812 } |
| 810 | 813 |
| 811 } // namespace internal | 814 } // namespace internal |
| 812 | 815 |
| 813 } // namespace debug | 816 } // namespace debug |
| 814 } // namespace base | 817 } // namespace base |
| OLD | NEW |