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

Unified Diff: base/debug/stack_trace.h

Issue 2782063005: Explicitly specify whether to emit frame pointers by default. (Closed)
Patch Set: Fix Windows logic. Created 3 years, 9 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
Index: base/debug/stack_trace.h
diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h
index 8bb369571302739d56b0873afc8ff5855448f14f..f864c64adeffad8e0542e13ca1e8ca5d538933f4 100644
--- a/base/debug/stack_trace.h
+++ b/base/debug/stack_trace.h
@@ -24,28 +24,6 @@ struct _EXCEPTION_POINTERS;
struct _CONTEXT;
#endif
-// Fast stack trace capture using frame pointers is only available under POSIX
-// platforms, and only for certain architectures, and only when frame pointers
-// are enabled in the build.
-#if defined(OS_POSIX)
-#if BUILDFLAG(ENABLE_PROFILING) || !defined(NDEBUG)
-
-#if defined(__i386__) || defined(__x86_64__)
-#define HAVE_TRACE_STACK_FRAME_POINTERS 1
-#elif defined(__arm__) && !defined(__thumb__)
-#define HAVE_TRACE_STACK_FRAME_POINTERS 1
-#else // defined(__arm__) && !defined(__thumb__)
Primiano Tucci (use gerrit) 2017/03/30 13:15:03 where did this logic go? The deal here is that we
erikchen 2017/03/30 22:12:47 The !thumb logic was added here: https://bugs.chro
-#define HAVE_TRACE_STACK_FRAME_POINTERS 0
-#endif // defined(__arm__) && !defined(__thumb__)
-
-#else // BUILDFLAG(ENABLE_PROFILING) || !defined(NDEBUG)
-#define HAVE_TRACE_STACK_FRAME_POINTERS 0
-#endif // BUILDFLAG(ENABLE_PROFILING) || !defined(NDEBUG)
-
-#else // defined(OS_POSIX)
-#define HAVE_TRACE_STACK_FRAME_POINTERS 0
-#endif // defined(OS_POSIX)
-
namespace base {
namespace debug {
« no previous file with comments | « base/BUILD.gn ('k') | build/config/compiler/BUILD.gn » ('j') | build/config/compiler/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698