summaryrefslogtreecommitdiff
path: root/compiler/debug/elf_debug_writer.h
diff options
context:
space:
mode:
author David Srbecky <dsrbecky@google.com> 2017-12-04 14:39:21 +0000
committer David Srbecky <dsrbecky@google.com> 2018-01-12 17:21:15 +0000
commit32210b9f8c30e202e275764200315fe26f22f34c (patch)
tree31480b479f4a935c54926df5041e9dee42d7bc66 /compiler/debug/elf_debug_writer.h
parentd97a2d17924bc4b19674c6ec7dd494a4dca3d70e (diff)
Generate debug symbols for interpreted methods.
Add .symtab symbols for method bytecodes in the dex section (only if the full --generate-debug-info is enabled for now). Test: m test-art-host-gtest Test: testrunner.py -b --host --optimizing Change-Id: Ie90034c921484bc4ff27c5458da78690b629dd0b
Diffstat (limited to 'compiler/debug/elf_debug_writer.h')
-rw-r--r--compiler/debug/elf_debug_writer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/debug/elf_debug_writer.h b/compiler/debug/elf_debug_writer.h
index a47bf076b9..8ad0c4219a 100644
--- a/compiler/debug/elf_debug_writer.h
+++ b/compiler/debug/elf_debug_writer.h
@@ -23,6 +23,7 @@
#include "base/macros.h"
#include "base/mutex.h"
#include "debug/dwarf/dwarf_constants.h"
+#include "debug/debug_info.h"
#include "linker/elf_builder.h"
namespace art {
@@ -36,7 +37,7 @@ struct MethodDebugInfo;
template <typename ElfTypes>
void WriteDebugInfo(
linker::ElfBuilder<ElfTypes>* builder,
- const ArrayRef<const MethodDebugInfo>& method_infos,
+ const DebugInfo& debug_info,
dwarf::CFIFormat cfi_format,
bool write_oat_patches);
@@ -45,7 +46,9 @@ std::vector<uint8_t> MakeMiniDebugInfo(
const InstructionSetFeatures* features,
uint64_t text_section_address,
size_t text_section_size,
- const ArrayRef<const MethodDebugInfo>& method_infos);
+ uint64_t dex_section_address,
+ size_t dex_section_size,
+ const DebugInfo& debug_info);
std::vector<uint8_t> MakeElfFileForJIT(
InstructionSet isa,