[Lldb-commits] [PATCH] D77000: [LLDB] [PECOFF] Only use PECallFrameInfo on the one supported architecture
Martin Storsjö via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Apr 1 02:44:40 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGaa786b881fc8: [lldb] [PECOFF] Only use PECallFrameInfo on the one supported architecture (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77000/new/
https://reviews.llvm.org/D77000
Files:
lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Index: lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
===================================================================
--- lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
+++ lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
@@ -782,6 +782,9 @@
if (!data_dir_exception.vmaddr)
return {};
+ if (m_coff_header.machine != llvm::COFF::IMAGE_FILE_MACHINE_AMD64)
+ return {};
+
return std::make_unique<PECallFrameInfo>(*this, data_dir_exception.vmaddr,
data_dir_exception.vmsize);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77000.254137.patch
Type: text/x-patch
Size: 574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200401/da1f29c1/attachment.bin>
More information about the lldb-commits
mailing list