OSDN Git Service

Fix debuggable compiler flag detection for secondary dex files
authorSebastien Hertz <shertz@google.com>
Wed, 13 May 2015 10:14:05 +0000 (12:14 +0200)
committerSebastien Hertz <shertz@google.com>
Tue, 19 May 2015 17:39:18 +0000 (19:39 +0200)
commit094ff2c0c1f736521c634d5f606e274cb6c55345
tree9e126be21844e24645120e84e511cbe8f9c33091
parentce70082da8a4e63c280c2f049a67b38acc82ee1a
Fix debuggable compiler flag detection for secondary dex files

Compiles secondary dex files like the primary dex file: if it has
been compiled with the --debuggable flag, compile secondary dex files
with the --debuggable flag too.

Therefore, dex files loaded at runtime are compiled the same way as
dex files compiled at install time on the classpath (excluding the
boot image that is not compiled debuggable).

Also adds debuggable key in the oat header and bump the oat version.

Bug: 20944228

(cherry picked from commit 0de1133ba600f299b3d67938f650720d9f859eb2)

Change-Id: If6b2236e7fe547cc421f57b573043748018d3ae0
dex2oat/dex2oat.cc
runtime/class_linker.cc
runtime/class_linker.h
runtime/gc/space/image_space.cc
runtime/oat.cc
runtime/oat.h
runtime/oat_file.cc
runtime/oat_file.h
runtime/oat_file_assistant.cc
runtime/runtime.cc