Skip to content

Commit aa786b8

Browse files
committed
[lldb] [PECOFF] Only use PECallFrameInfo on the one supported architecture
The RuntimeFunction struct, which PECallFrameInfo interprets, has a different layout and differnet semantics on all architectures. Differential Revision: https://reviews.llvm.org/D77000
1 parent c7468c1 commit aa786b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,9 @@ std::unique_ptr<CallFrameInfo> ObjectFilePECOFF::CreateCallFrameInfo() {
782782
if (!data_dir_exception.vmaddr)
783783
return {};
784784

785+
if (m_coff_header.machine != llvm::COFF::IMAGE_FILE_MACHINE_AMD64)
786+
return {};
787+
785788
return std::make_unique<PECallFrameInfo>(*this, data_dir_exception.vmaddr,
786789
data_dir_exception.vmsize);
787790
}

0 commit comments

Comments
 (0)