Index: third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h |
diff --git a/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h b/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h |
index abbe0a923ccc8b1171b36a03f085e2a3961033ac..60b63aad3018b4b0d07f9ee0f68872ffa972f559 100644 |
--- a/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h |
+++ b/third_party/tcmalloc/chromium/src/stacktrace_x86-inl.h |
@@ -290,6 +290,17 @@ static void **NextStackFrame(void **old_sp, const void *uc) { |
// int skip_count: how many stack pointers to skip before storing in result |
// void* ucp: a ucontext_t* (GetStack{Trace,Frames}WithContext only) |
+//typedef int PseudoStackFunction(void** stack); |
+//extern PseudoStackFunction* pseudo_stack_function; |
+//int GET_STACK_TRACE_OR_FRAMES { |
+// int n = pseudo_stack_function(result); |
+//#if IS_STACK_FRAMES |
+// // TODO(jamescook): Can we just skip this? |
+// memset(sizes, 0, n * sizeof(void*)); // Report unknown size. |
+//#endif |
+// return n; |
+//} |
+ |
int GET_STACK_TRACE_OR_FRAMES { |
void **sp; |
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2) || __llvm__ |