projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4463bd0
)
[libunwind] Add more information to eh_frame_hdr version error
author
Florian Mayer
<fmayer@google.com>
Wed, 1 Jun 2022 23:43:59 +0000
(16:43 -0700)
committer
Florian Mayer
<fmayer@google.com>
Thu, 2 Jun 2022 02:48:19 +0000
(19:48 -0700)
This makes it easier to find the offending ELF file.
Reviewed By: #libunwind, MaskRay
Differential Revision: https://reviews.llvm.org/D126841
libunwind/src/EHHeaderParser.hpp
patch
|
blob
|
history
diff --git
a/libunwind/src/EHHeaderParser.hpp
b/libunwind/src/EHHeaderParser.hpp
index
9a38070
..
ed4317c
100644
(file)
--- 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;
}