Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Side by Side Diff: base/debug/debugger_posix.cc

Issue 6033008: Move compat_execinfo to the mac directory since this is mac-specific.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/compat_execinfo.h ('k') | base/debug/stack_trace_posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <execinfo.h>
9 #include <fcntl.h> 10 #include <fcntl.h>
10 #include <stdio.h> 11 #include <stdio.h>
11 #include <stdlib.h> 12 #include <stdlib.h>
12 #include <sys/stat.h> 13 #include <sys/stat.h>
13 #if !defined(OS_NACL) 14 #if !defined(OS_NACL)
14 #include <sys/sysctl.h> 15 #include <sys/sysctl.h>
15 #endif 16 #endif
16 #include <sys/types.h> 17 #include <sys/types.h>
17 #include <unistd.h> 18 #include <unistd.h>
18 19
19 #include <string> 20 #include <string>
20 #include <vector> 21 #include <vector>
21 22
22 #if defined(__GLIBCXX__) 23 #if defined(__GLIBCXX__)
23 #include <cxxabi.h> 24 #include <cxxabi.h>
24 #endif 25 #endif
25 26
26 #if defined(OS_MACOSX) 27 #if defined(OS_MACOSX)
27 #include <AvailabilityMacros.h> 28 #include <AvailabilityMacros.h>
28 #endif 29 #endif
29 30
30 #include <iostream> 31 #include <iostream>
31 32
32 #include "base/basictypes.h" 33 #include "base/basictypes.h"
33 #include "base/compat_execinfo.h"
34 #include "base/eintr_wrapper.h" 34 #include "base/eintr_wrapper.h"
35 #include "base/logging.h" 35 #include "base/logging.h"
36 #include "base/safe_strerror_posix.h" 36 #include "base/safe_strerror_posix.h"
37 #include "base/scoped_ptr.h" 37 #include "base/scoped_ptr.h"
38 #include "base/string_piece.h" 38 #include "base/string_piece.h"
39 #include "base/stringprintf.h" 39 #include "base/stringprintf.h"
40 40
41 #if defined(USE_SYMBOLIZE) 41 #if defined(USE_SYMBOLIZE)
42 #include "base/third_party/symbolize/symbolize.h" 42 #include "base/third_party/symbolize/symbolize.h"
43 #endif 43 #endif
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 #else 171 #else
172 #define DEBUG_BREAK() asm("int3") 172 #define DEBUG_BREAK() asm("int3")
173 #endif 173 #endif
174 174
175 void BreakDebugger() { 175 void BreakDebugger() {
176 DEBUG_BREAK(); 176 DEBUG_BREAK();
177 } 177 }
178 178
179 } // namespace debug 179 } // namespace debug
180 } // namespace base 180 } // namespace base
OLDNEW
« no previous file with comments | « base/compat_execinfo.h ('k') | base/debug/stack_trace_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698