summaryrefslogtreecommitdiffstats
path: root/libunwindstack/Android.bp
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2018-01-31 19:05:19 -0800
committerChristopher Ferris <cferris@google.com>2018-02-02 15:03:00 -0800
commit7747b60faa5dcfd43d920c1e60abdab1150aab32 (patch)
tree87d6249b19071be18cdb079980b09997369ada14 /libunwindstack/Android.bp
parent4819edf4fc15264cae0d94fbda5482b2480e99b9 (diff)
downloadsystem_core-7747b60faa5dcfd43d920c1e60abdab1150aab32.tar.gz
system_core-7747b60faa5dcfd43d920c1e60abdab1150aab32.tar.bz2
system_core-7747b60faa5dcfd43d920c1e60abdab1150aab32.zip
Load dex files from ART-specific data structure.
Fixes cdex which was recently changed to have shared data section, which means the DEX PC cannot be used to find the right symbol, as the bytecode is no longer within the dex file, and in-fact, we might have to scan multiple dex files to find the method. Bug: 72520014 Test: testrunner.py --host --cdex-none -t 137 Test: testrunner.py --host --cdex-fast -t 137 Test: All unit tests pass. Change-Id: I80265d05ad69dd9cefbe3f8a75e4cd349002af5e
Diffstat (limited to 'libunwindstack/Android.bp')
-rw-r--r--libunwindstack/Android.bp11
1 files changed, 11 insertions, 0 deletions
diff --git a/libunwindstack/Android.bp b/libunwindstack/Android.bp
index 74dfaa500..3354c90d0 100644
--- a/libunwindstack/Android.bp
+++ b/libunwindstack/Android.bp
@@ -128,6 +128,12 @@ cc_library_static {
"DexFile.cpp",
"DexFiles.cpp",
],
+ target: {
+ // Always disable optimizations for host to make it easier to debug.
+ host: {
+ cflags: ["-O0", "-g"],
+ },
+ },
shared_libs: [
"libbase",
@@ -151,8 +157,13 @@ cc_test_library {
vendor_available: false,
defaults: ["libunwindstack_flags"],
+ shared: {
+ enabled: false,
+ },
+
srcs: [
"tests/DexFileTest.cpp",
+ "tests/DexFilesTest.cpp",
],
local_include_dirs: ["include"],
allow_undefined_symbols: true,