OSDN Git Service

Fixed gdb support and added some ElfFile functions
authorAlex Light <allight@google.com>
Wed, 18 Jun 2014 17:35:45 +0000 (10:35 -0700)
committerBrian Carlstrom <bdc@google.com>
Fri, 27 Jun 2014 23:46:29 +0000 (16:46 -0700)
commit3470ab4011b5e18d590d5375e2f13a1e3bd69222
tree79efa1be55a16a43447f7373f0aa8722828204d5
parentbaa1323d66a05fd2d7b9c6c131b232945b0a4ebb
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
compiler/elf_writer.cc
compiler/elf_writer_quick.cc
dex2oat/dex2oat.cc
runtime/dwarf.h [new file with mode: 0644]
runtime/elf_file.cc
runtime/elf_file.h