From 36ec6c7314b824f03f955a5c0c2cbce56ef63412 Mon Sep 17 00:00:00 2001 From: David Srbecky Date: Fri, 26 Apr 2019 12:46:08 +0100 Subject: Fix DWARF line-number generation for JITed methods. Don't strip, repack or compress debug-info if explicitly requested by the developer (using the -g compiler flag). If enabled, the DWARF debug info has about 1:1 size overhead relative to JIT code + data. Bug: 131422204 Test: Check that gdb shows line numbers for JITed method. Test: Hard-code always-enable generation and run maps. Change-Id: If06de8ae2317af4d57d84e8a8bfae86a597dd4e4 --- compiler/optimizing/optimizing_compiler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index f4bf11d3d3..c799b12a4b 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -1482,7 +1482,7 @@ void OptimizingCompiler::GenerateJitDebugInfo(ArtMethod* method ATTRIBUTE_UNUSED AddNativeDebugInfoForJit(Thread::Current(), reinterpret_cast(info.code_address), elf_file, - debug::PackElfFileForJIT, + mini_debug_info ? debug::PackElfFileForJIT : nullptr, compiler_options.GetInstructionSet(), compiler_options.GetInstructionSetFeatures()); } -- cgit v1.2.3-59-g8ed1b