OSDN Git Service

Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections...
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 24 May 2016 12:48:46 +0000 (12:48 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 24 May 2016 12:48:46 +0000 (12:48 +0000)
commit5ad80b222ac3d51038953f0b7d94d2ff1b49448d
tree76238d8f4e8132b5ab06d776b49a9f0cc4586a3b
parentfe27c1051217d08cb138f1e048912131f6a3fb44
Recommit r270547 ([llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.)

Fix was:
1) Had to regenerate dwarfdump-test-zlib.elf-x86-64, dwarfdump-test-zlib-gnu.elf-x86-64
(because llvm-symbolizer-zlib.test uses that inputs for its purposes and failed).
2) Updated llvm-symbolizer-zlib.test (updated used call function address to match new files +
added one more check for newly created dwarfdump-test-zlib-gnu.elf-x86-64 binary input).
3) Updated comment in dwarfdump-test-zlib.cc.

Original commit message:
[llvm-dwarfdump] - Teach dwarfdump to decompress debug sections in zlib style.

Before this llvm-dwarfdump only recognized zlib-gnu compression style of headers,
this patch adds support for zlib style.
It looks reasonable to support both styles for dumping,
even if we are not going to suport generating of deprecated gnu one.

Differential revision: http://reviews.llvm.org/D20470

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270557 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Object/COFF.h
include/llvm/Object/ELFObjectFile.h
include/llvm/Object/MachO.h
include/llvm/Object/ObjectFile.h
lib/DebugInfo/DWARF/DWARFContext.cpp
lib/Object/COFFObjectFile.cpp
lib/Object/MachOObjectFile.cpp
test/DebugInfo/Inputs/dwarfdump-test-zlib.cc
test/DebugInfo/Inputs/dwarfdump-test-zlib.elf-x86-64
test/DebugInfo/Inputs/dwarfdump-test-zlibgnu.elf-x86-64 [new file with mode: 0644]
test/DebugInfo/dwarfdump-zlib.test
test/DebugInfo/llvm-symbolizer-zlib.test