diff options
author | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-27 09:21:03 +0000 |
---|---|---|
committer | mostynb@opera.com <mostynb@opera.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-06-27 09:21:03 +0000 |
commit | 7cf10ed53bc33871382b5296cbded5688169686d (patch) | |
tree | 15efca04f56c4744af5a45f2c8d3594c86918a73 /base | |
parent | 18ff8a0865717dd247d4aec10412e1b785252931 (diff) | |
download | chromium_src-7cf10ed53bc33871382b5296cbded5688169686d.zip chromium_src-7cf10ed53bc33871382b5296cbded5688169686d.tar.gz chromium_src-7cf10ed53bc33871382b5296cbded5688169686d.tar.bz2 |
stub out debug::StackTrace().Print() when using uclibc
This is a followup from https://codereview.chromium.org/228753003 which expands the subset of chromium that should be possible to build with uClibc.
BUG=386961
Review URL: https://codereview.chromium.org/354873002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@280289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/debug/stack_trace.h | 2 | ||||
-rw-r--r-- | base/debug/stack_trace_posix.cc | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h index 7c2ac3c..572f285 100644 --- a/base/debug/stack_trace.h +++ b/base/debug/stack_trace.h @@ -64,10 +64,10 @@ class BASE_EXPORT StackTrace { // number of elements in the returned array. const void* const* Addresses(size_t* count) const; -#if !defined(__UCLIBC__) // Prints the stack trace to stderr. void Print() const; +#if !defined(__UCLIBC__) // Resolves backtrace to symbols and write to stream. void OutputToStream(std::ostream* os) const; #endif diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index 261ce95..9e477cf 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -281,9 +281,7 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, void* void_context) { } PrintToStderr("\n"); -#if !defined(__UCLIBC__) debug::StackTrace().Print(); -#endif #if defined(OS_LINUX) #if ARCH_CPU_X86_FAMILY @@ -751,15 +749,17 @@ StackTrace::StackTrace() { #endif } -#if !defined(__UCLIBC__) void StackTrace::Print() const { // NOTE: This code MUST be async-signal safe (it's used by in-process // stack dumping signal handler). NO malloc or stdio is allowed here. +#if !defined(__UCLIBC__) PrintBacktraceOutputHandler handler; ProcessBacktrace(trace_, count_, &handler); +#endif } +#if !defined(__UCLIBC__) void StackTrace::OutputToStream(std::ostream* os) const { StreamBacktraceOutputHandler handler(os); ProcessBacktrace(trace_, count_, &handler); |