diff options
author | slan <slan@chromium.org> | 2016-02-02 14:18:14 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-02 22:19:11 +0000 |
commit | 9cac7517091d2f328122dba378baa1a9a9e0e426 (patch) | |
tree | 153efdc45fef27459dd6c1a1331acad698d1ecf6 /base/debug/stack_trace_posix.cc | |
parent | 734550135a488e9613fb324ca7cc9f4a49c3c4ed (diff) | |
download | chromium_src-9cac7517091d2f328122dba378baa1a9a9e0e426.zip chromium_src-9cac7517091d2f328122dba378baa1a9a9e0e426.tar.gz chromium_src-9cac7517091d2f328122dba378baa1a9a9e0e426.tar.bz2 |
Correct __UCLIBC__ build guards in stack_trace_posix.cc
__UCLIBC__ build guards were implemented here:
https://codereview.chromium.org/228753003
Note that there are several functions in the anonymous namespace not
called when building with __UCLIBC__. Do not define these functions for
these builds, as to avoid passing -Wno-unused-function
BUG=None
Review URL: https://codereview.chromium.org/1661593002
Cr-Commit-Position: refs/heads/master@{#373054}
Diffstat (limited to 'base/debug/stack_trace_posix.cc')
-rw-r--r-- | base/debug/stack_trace_posix.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc index 00ee657..35cbb4e 100644 --- a/base/debug/stack_trace_posix.cc +++ b/base/debug/stack_trace_posix.cc @@ -124,6 +124,7 @@ class BacktraceOutputHandler { virtual ~BacktraceOutputHandler() {} }; +#if !defined(__UCLIBC__) void OutputPointer(void* pointer, BacktraceOutputHandler* handler) { // This should be more than enough to store a 64-bit number in hex: // 16 hex digits + 1 for null-terminator. @@ -171,7 +172,7 @@ void ProcessBacktrace(void *const *trace, handler->HandleOutput("\n"); } -#elif !defined(__UCLIBC__) +#else bool printed = false; // Below part is async-signal unsafe (uses malloc), so execute it only @@ -200,6 +201,7 @@ void ProcessBacktrace(void *const *trace, } #endif // defined(USE_SYMBOLIZE) } +#endif // !defined(__UCLIBC__) void PrintToStderr(const char* output) { // NOTE: This code MUST be async-signal safe (it's used by in-process |