summaryrefslogtreecommitdiff
path: root/compiler
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2018-01-18 13:30:28 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2018-01-18 13:30:28 +0000
commit1372c9772d37f43147d3791c998173811f04594c (patch)
tree4ab0e810a3ffd55b1d712b63ddbe662786c18c79 /compiler
parent78d9ab0d831d54bda25421a961a50089a517f6ca (diff)
parent510bb881819a5b0bbd89769240ddff2199ed76c6 (diff)
Merge "Add size for the $dexfile debug symbol."
Diffstat (limited to 'compiler')
-rw-r--r--compiler/debug/elf_symtab_writer.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/debug/elf_symtab_writer.h b/compiler/debug/elf_symtab_writer.h
index 95a0b4ff47..9007360d01 100644
--- a/compiler/debug/elf_symtab_writer.h
+++ b/compiler/debug/elf_symtab_writer.h
@@ -107,7 +107,8 @@ static void WriteDebugSymbols(linker::ElfBuilder<ElfTypes>* builder,
for (auto it : debug_info.dex_files) {
uint64_t dex_address = dex->GetAddress() + it.first /* offset within the section */;
const DexFile* dex_file = it.second;
- symtab->Add(strtab->Write(kDexFileSymbolName), dex, dex_address, 0, STB_LOCAL, STT_NOTYPE);
+ typename ElfTypes::Word dex_name = strtab->Write(kDexFileSymbolName);
+ symtab->Add(dex_name, dex, dex_address, dex_file->Size(), STB_LOCAL, STT_NOTYPE);
if (mini_debug_info) {
continue; // Don't add interpreter method names to mini-debug-info for now.
}