Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Mayer <fmayer@google.com>2022-06-02 02:43:59 +0300
committerFlorian Mayer <fmayer@google.com>2022-06-02 05:48:19 +0300
commit13b8bfc51451fcfc00f3e3480abaf64b337a43d4 (patch)
treed754c7b4712224ad3a6dc0da0f36cc5fef1f6681 /libunwind
parent4463bd0f89181234e0cef982e21de2e96038f873 (diff)
[libunwind] Add more information to eh_frame_hdr version error
This makes it easier to find the offending ELF file. Reviewed By: #libunwind, MaskRay Differential Revision: https://reviews.llvm.org/D126841
Diffstat (limited to 'libunwind')
-rw-r--r--libunwind/src/EHHeaderParser.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libunwind/src/EHHeaderParser.hpp b/libunwind/src/EHHeaderParser.hpp
index 9a38070faba9..ed4317c89055 100644
--- a/libunwind/src/EHHeaderParser.hpp
+++ b/libunwind/src/EHHeaderParser.hpp
@@ -57,7 +57,8 @@ bool EHHeaderParser<A>::decodeEHHdr(A &addressSpace, pint_t ehHdrStart,
pint_t p = ehHdrStart;
uint8_t version = addressSpace.get8(p++);
if (version != 1) {
- _LIBUNWIND_LOG0("Unsupported .eh_frame_hdr version");
+ _LIBUNWIND_LOG("unsupported .eh_frame_hdr version: %" PRIu8 " at %" PRIx64,
+ version, static_cast<uint64_t>(ehHdrStart));
return false;
}