From: Florian Mayer Date: Wed, 1 Jun 2022 23:43:59 +0000 (-0700) Subject: [libunwind] Add more information to eh_frame_hdr version error X-Git-Tag: upstream/15.0.7~6104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=13b8bfc51451fcfc00f3e3480abaf64b337a43d4;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/libunwind/src/EHHeaderParser.hpp b/libunwind/src/EHHeaderParser.hpp index 9a38070f..ed4317c 100644 --- a/libunwind/src/EHHeaderParser.hpp +++ b/libunwind/src/EHHeaderParser.hpp @@ -57,7 +57,8 @@ bool EHHeaderParser::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(ehHdrStart)); return false; }