[libcxx-commits] [PATCH] D126841: [libunwind] Add more information to eh_frame_hdr version error.

Florian Mayer via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jun 1 17:31:40 PDT 2022


fmayer updated this revision to Diff 433599.
fmayer added a comment.

simplify string


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126841/new/

https://reviews.llvm.org/D126841

Files:
  libunwind/src/EHHeaderParser.hpp


Index: libunwind/src/EHHeaderParser.hpp
===================================================================
--- libunwind/src/EHHeaderParser.hpp
+++ libunwind/src/EHHeaderParser.hpp
@@ -57,7 +57,8 @@
   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, ehHdrStart);
     return false;
   }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126841.433599.patch
Type: text/x-patch
Size: 502 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220602/b0f84d5f/attachment.bin>


More information about the libcxx-commits mailing list