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

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

Issue 7238021: Solaris patch (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed some sysctl includes Created 9 years, 6 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/debug/debugger_posix.cc ('k') | base/sync_socket_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) 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/stack_trace.h" 5 #include "base/debug/stack_trace.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <execinfo.h> 8 #include <execinfo.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/sysctl.h>
15 #include <sys/types.h> 14 #include <sys/types.h>
16 #include <unistd.h> 15 #include <unistd.h>
17 16
18 #include <string> 17 #include <string>
19 #include <vector> 18 #include <vector>
20 19
21 #if defined(__GLIBCXX__) 20 #if defined(__GLIBCXX__)
22 #include <cxxabi.h> 21 #include <cxxabi.h>
23 #endif 22 #endif
24 23
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 << "Dumping raw addresses in trace:\n"; 190 << "Dumping raw addresses in trace:\n";
192 } 191 }
193 192
194 for (size_t i = 0; i < trace_strings.size(); ++i) { 193 for (size_t i = 0; i < trace_strings.size(); ++i) {
195 (*os) << "\t" << trace_strings[i] << "\n"; 194 (*os) << "\t" << trace_strings[i] << "\n";
196 } 195 }
197 } 196 }
198 197
199 } // namespace debug 198 } // namespace debug
200 } // namespace base 199 } // namespace base
OLDNEW
« no previous file with comments | « base/debug/debugger_posix.cc ('k') | base/sync_socket_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698