Index: src/base/debug/stack_trace_fuchsia.cc |
diff --git a/src/base/debug/stack_trace_fuchsia.cc b/src/base/debug/stack_trace_fuchsia.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4ad594b9e850a5cde0e50692df73ddc598b711bd |
--- /dev/null |
+++ b/src/base/debug/stack_trace_fuchsia.cc |
@@ -0,0 +1,38 @@ |
+// Copyright 2017 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "src/base/debug/stack_trace.h" |
+ |
+#include <iomanip> |
+#include <ostream> |
+ |
+#include "src/base/platform/platform.h" |
+ |
+namespace v8 { |
+namespace base { |
+namespace debug { |
+ |
+bool EnableInProcessStackDumping() { |
+ CHECK(false); // TODO(fuchsia): Port, https://crbug.com/731217. |
+ return false; |
+} |
+ |
+void DisableSignalStackDump() {} |
+ |
+StackTrace::StackTrace() {} |
+ |
+void StackTrace::Print() const { |
+ std::string backtrace = ToString(); |
+ OS::Print("%s\n", backtrace.c_str()); |
+} |
+ |
+void StackTrace::OutputToStream(std::ostream* os) const { |
+ for (size_t i = 0; i < count_; ++i) { |
+ *os << "#" << std::setw(2) << i << trace_[i] << "\n"; |
+ } |
+} |
+ |
+} // namespace debug |
+} // namespace base |
+} // namespace v8 |