diff options
author | Alex Light <allight@google.com> | 2014-06-18 10:35:45 -0700 |
---|---|---|
committer | Brian Carlstrom <bdc@google.com> | 2014-06-27 16:46:29 -0700 |
commit | 3470ab4011b5e18d590d5375e2f13a1e3bd69222 (patch) | |
tree | 79efa1be55a16a43447f7373f0aa8722828204d5 /compiler/elf_writer.cc | |
parent | baa1323d66a05fd2d7b9c6c131b232945b0a4ebb (diff) | |
download | android_art-3470ab4011b5e18d590d5375e2f13a1e3bd69222.tar.gz android_art-3470ab4011b5e18d590d5375e2f13a1e3bd69222.tar.bz2 android_art-3470ab4011b5e18d590d5375e2f13a1e3bd69222.zip |
Fixed gdb support and added some ElfFile functions
Fixed gdb support so that it would continue working even when debug
symbols or other sections are included in the elf file. Also made it
actually read parts of the DWARF information so it should work even if
there are minor changes to how and where DWARF information is written
out.
Added a dwarf.h file with the dwarf constants.
Added a FindSectionByName function, a FindDynamicSymbol function, and
the ability to specify the mmap protection and flags directly if we are
mapping in the whole file.
Modified elf_writer_quick.cc to use the dwarf constants from dwarf.h.
Change-Id: I09e15c425fab252b331a2e4719863552e8b6b137
Diffstat (limited to 'compiler/elf_writer.cc')
-rw-r--r-- | compiler/elf_writer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/elf_writer.cc b/compiler/elf_writer.cc index 4c093c7738..55ee18e8d9 100644 --- a/compiler/elf_writer.cc +++ b/compiler/elf_writer.cc @@ -43,7 +43,7 @@ void ElfWriter::GetOatElfInformation(File* file, size_t& oat_data_offset) { std::string error_msg; std::unique_ptr<ElfFile> elf_file(ElfFile::Open(file, false, false, &error_msg)); - CHECK(elf_file.get() != NULL) << error_msg; + CHECK(elf_file.get() != nullptr) << error_msg; oat_loaded_size = elf_file->GetLoadedSize(); CHECK_NE(0U, oat_loaded_size); |