Add dex2oat -g to control whether the compiled code has debugger support.
Change-Id: I69c83f707d874fee0464929769b1f1f28e9d97ee
diff --git a/src/compiler.h b/src/compiler.h
index ce2d3c2..b889a32 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -51,7 +51,7 @@
// can assume will be in the image, with NULL implying all available
// classes.
explicit Compiler(InstructionSet instruction_set, bool image, size_t thread_count,
- const std::set<std::string>* image_classes);
+ bool support_debugging, const std::set<std::string>* image_classes);
~Compiler();
@@ -61,6 +61,10 @@
// Compile a single Method
void CompileOne(const Method* method);
+ bool IsDebuggingSupported() {
+ return support_debugging_;
+ }
+
InstructionSet GetInstructionSet() const {
return instruction_set_;
}
@@ -187,6 +191,7 @@
bool image_;
size_t thread_count_;
+ bool support_debugging_;
uint64_t start_ns_;
UniquePtr<AOTCompilationStats> stats_;