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

Unified Diff: base/debug/stack_trace_posix.cc

Issue 1514483008: Don't remove StackTrace::OutputToStream() for FNL. (Closed) Base URL: https://github.com/domokit/mojo.git@fix_fnl_1
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/debug/stack_trace.cc ('k') | base/debug/stack_trace_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/debug/stack_trace_posix.cc
diff --git a/base/debug/stack_trace_posix.cc b/base/debug/stack_trace_posix.cc
index 176d463353b4b09c8d59a746871fc5da43630fc7..76cb5249854a335e0a727e3c47830d88102be541 100644
--- a/base/debug/stack_trace_posix.cc
+++ b/base/debug/stack_trace_posix.cc
@@ -759,12 +759,14 @@ void StackTrace::Print() const {
#endif
}
-#if !defined(__UCLIBC__) && !defined(FNL_MUSL)
void StackTrace::OutputToStream(std::ostream* os) const {
+#if defined(__UCLIBC__) || defined(FNL_MUSL)
+ (*os) << "(stack trace not supported)\n";
+#else
StreamBacktraceOutputHandler handler(os);
ProcessBacktrace(trace_, count_, &handler);
-}
#endif
+}
namespace internal {
« no previous file with comments | « base/debug/stack_trace.cc ('k') | base/debug/stack_trace_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698