summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2015-04-25 02:07:34 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-04-25 02:07:34 +0000
commitc9f73492ba918cd43582adefaba3733dd6f37b1f (patch)
tree101c9be3f3d23f927ef34488ff2188fd6d376b84
parent675a2833f99b2779885f01b7560986d2f3ae24d8 (diff)
parent74f5ce7781c42a60efbd657a70562dfb572e0961 (diff)
am 74f5ce77: am 3856df46: am b5aad4c5: Merge "ART: Add GENERATE_CFI to the ZygoteHooks debug flags"
* commit '74f5ce7781c42a60efbd657a70562dfb572e0961': ART: Add GENERATE_CFI to the ZygoteHooks debug flags
-rw-r--r--runtime/native/dalvik_system_ZygoteHooks.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/native/dalvik_system_ZygoteHooks.cc b/runtime/native/dalvik_system_ZygoteHooks.cc
index af01a02787..8524348164 100644
--- a/runtime/native/dalvik_system_ZygoteHooks.cc
+++ b/runtime/native/dalvik_system_ZygoteHooks.cc
@@ -65,6 +65,7 @@ static void EnableDebugFeatures(uint32_t debug_flags) {
DEBUG_ENABLE_SAFEMODE = 1 << 3,
DEBUG_ENABLE_JNI_LOGGING = 1 << 4,
DEBUG_ENABLE_JIT = 1 << 5,
+ DEBUG_GENERATE_CFI = 1 << 6,
};
Runtime* const runtime = Runtime::Current();
@@ -111,6 +112,12 @@ static void EnableDebugFeatures(uint32_t debug_flags) {
}
runtime->GetJITOptions()->SetUseJIT(use_jit);
+ const bool generate_cfi = (debug_flags & DEBUG_GENERATE_CFI) != 0;
+ if (generate_cfi) {
+ runtime->AddCompilerOption("--include-cfi");
+ debug_flags &= ~DEBUG_GENERATE_CFI;
+ }
+
// This is for backwards compatibility with Dalvik.
debug_flags &= ~DEBUG_ENABLE_ASSERT;