[all-commits] [llvm/llvm-project] 2e365c: [DebugInfo/llvm-objdump] - Print "ZERO terminator"...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue May 26 02:53:18 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 2e365ca2f7ce7a1f4a3938d79b894324b383ce5c
https://github.com/llvm/llvm-project/commit/2e365ca2f7ce7a1f4a3938d79b894324b383ce5c
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-05-26 (Tue, 26 May 2020)
Changed paths:
M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
M llvm/test/tools/llvm-objdump/eh_frame-mipsel.test
M llvm/test/tools/llvm-objdump/eh_frame_zero_cie.test
Log Message:
-----------
[DebugInfo/llvm-objdump] - Print "ZERO terminator" for terminator entries when dumping .eh_frame.
A CIE with the Length == 0 is a terminator:
https://refspecs.linuxfoundation.org/LSB_5.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html
And GNU objdump recognizes them and prints the following for such entries:
"00000000 ZERO terminator"
This patch teaches llvm-objdump to do the same. I had to update tests to use
"CHECK-NEXT" too.
(Note: it looks perhaps not right that printing is done inside the DebugInfo library,
I'd expect to see the change in the llvm-objdump's code somewhere instead,
but that is how it done atm).
Differential revision: https://reviews.llvm.org/D80476
More information about the All-commits
mailing list