Index: base/debug/stack_trace.cc |
diff --git a/base/debug/stack_trace.cc b/base/debug/stack_trace.cc |
index 7c44f7afeaef3f3ace0d3839c8dd51939ace635c..212d16dea06de32e32a710ff709d7f875bf2d8c3 100644 |
--- a/base/debug/stack_trace.cc |
+++ b/base/debug/stack_trace.cc |
@@ -4,9 +4,18 @@ |
#include "base/debug/stack_trace.h" |
+#include <algorithm> |
Mark Mentovai
2011/08/28 15:40:01
C system headers before C++ system headers: <strin
Scott Hess - ex-Googler
2011/08/29 20:13:36
Done.
|
+#include <string.h> |
+ |
namespace base { |
namespace debug { |
+StackTrace::StackTrace(const void* const* trace, int count) { |
+ if (count) |
+ memcpy(trace_, trace, std::min(sizeof(trace_), count * sizeof(trace[0]))); |
+ count_ = count; |
+} |
+ |
StackTrace::~StackTrace() { |
} |