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

Unified Diff: src/base/debug/stack_trace_fuchsia.cc

Issue 2932053004: Stubbed out linking on Fuchsia (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/base/platform/platform-fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « BUILD.gn ('k') | src/base/platform/platform-fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698