diff options
author | David Srbecky <dsrbecky@google.com> | 2019-04-26 12:46:08 +0100 |
---|---|---|
committer | David Srbecky <dsrbecky@google.com> | 2019-04-29 16:33:51 +0000 |
commit | 36ec6c7314b824f03f955a5c0c2cbce56ef63412 (patch) | |
tree | cb3b72b2eefc25dd6ce59219d4d685145566d48e /compiler/optimizing/optimizing_compiler.cc | |
parent | c36a8ccf44454f1a4b8b57420205faf11dec7046 (diff) |
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
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<const void*>(info.code_address), elf_file, - debug::PackElfFileForJIT, + mini_debug_info ? debug::PackElfFileForJIT : nullptr, compiler_options.GetInstructionSet(), compiler_options.GetInstructionSetFeatures()); } |