diff options
author | Andreas Gampe <agampe@google.com> | 2015-03-02 14:07:33 -0800 |
---|---|---|
committer | Andreas Gampe <agampe@google.com> | 2015-03-04 12:19:44 -0800 |
commit | 7b2f09eb6b5c74ffc38bd70f0aa74b8f8112e394 (patch) | |
tree | be2f01bfa3e326ea10ee3a670cca8e41a5abaa6d /runtime/runtime.cc | |
parent | dc47e986941b1a3754447fabea272485f3f0f382 (diff) | |
download | art-7b2f09eb6b5c74ffc38bd70f0aa74b8f8112e394.zip art-7b2f09eb6b5c74ffc38bd70f0aa74b8f8112e394.tar.gz art-7b2f09eb6b5c74ffc38bd70f0aa74b8f8112e394.tar.bz2 |
ART: Add debuggable compiler flag
Add a flag to compiler options that shows debuggability.
Change-Id: Id17ec72babe2ee88713a0d274eff86508de30666
Diffstat (limited to 'runtime/runtime.cc')
-rw-r--r-- | runtime/runtime.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/runtime.cc b/runtime/runtime.cc index 383308c..6d9f20e 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -1674,6 +1674,10 @@ void Runtime::AddCurrentRuntimeFeaturesAsDex2OatArguments(std::vector<std::strin std::string feature_string("--instruction-set-features="); feature_string += features->GetFeatureString(); argv->push_back(feature_string); + + if (Dbg::IsJdwpConfigured()) { + argv->push_back("--debuggable"); + } } void Runtime::UpdateProfilerState(int state) { |