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

Side by Side Diff: base/debug/stack_trace.h

Issue 354873002: stub out debug::StackTrace().Print() when using uclibc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: stub out StackTrace::Print instead Created 6 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 | « no previous file | 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) 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 #ifndef BASE_DEBUG_STACK_TRACE_H_ 5 #ifndef BASE_DEBUG_STACK_TRACE_H_
6 #define BASE_DEBUG_STACK_TRACE_H_ 6 #define BASE_DEBUG_STACK_TRACE_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 #endif 57 #endif
58 58
59 // Copying and assignment are allowed with the default functions. 59 // Copying and assignment are allowed with the default functions.
60 60
61 ~StackTrace(); 61 ~StackTrace();
62 62
63 // Gets an array of instruction pointer values. |*count| will be set to the 63 // Gets an array of instruction pointer values. |*count| will be set to the
64 // number of elements in the returned array. 64 // number of elements in the returned array.
65 const void* const* Addresses(size_t* count) const; 65 const void* const* Addresses(size_t* count) const;
66 66
67 #if !defined(__UCLIBC__)
68 // Prints the stack trace to stderr. 67 // Prints the stack trace to stderr.
69 void Print() const; 68 void Print() const;
70 69
70 #if !defined(__UCLIBC__)
71 // Resolves backtrace to symbols and write to stream. 71 // Resolves backtrace to symbols and write to stream.
72 void OutputToStream(std::ostream* os) const; 72 void OutputToStream(std::ostream* os) const;
73 #endif 73 #endif
74 74
75 // Resolves backtrace to symbols and returns as string. 75 // Resolves backtrace to symbols and returns as string.
76 std::string ToString() const; 76 std::string ToString() const;
77 77
78 private: 78 private:
79 // From http://msdn.microsoft.com/en-us/library/bb204633.aspx, 79 // From http://msdn.microsoft.com/en-us/library/bb204633.aspx,
80 // the sum of FramesToSkip and FramesToCapture must be less than 63, 80 // the sum of FramesToSkip and FramesToCapture must be less than 63,
(...skipping 22 matching lines...) Expand all
103 int base, 103 int base,
104 size_t padding); 104 size_t padding);
105 #endif // defined(OS_POSIX) && !defined(OS_ANDROID) 105 #endif // defined(OS_POSIX) && !defined(OS_ANDROID)
106 106
107 } // namespace internal 107 } // namespace internal
108 108
109 } // namespace debug 109 } // namespace debug
110 } // namespace base 110 } // namespace base
111 111
112 #endif // BASE_DEBUG_STACK_TRACE_H_ 112 #endif // BASE_DEBUG_STACK_TRACE_H_
OLDNEW
« no previous file with comments | « no previous file | base/debug/stack_trace_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698