Skip to content

Commit aba4e3f

Browse files
mstorsjotstellar
authored andcommitted
[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 (cherry picked from commit aa786b8)
1 parent eaae6df commit aba4e3f

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
@@ -780,6 +780,9 @@ std::unique_ptr<CallFrameInfo> ObjectFilePECOFF::CreateCallFrameInfo() {
780780
if (!data_dir_exception.vmaddr)
781781
return {};
782782

783+
if (m_coff_header.machine != llvm::COFF::IMAGE_FILE_MACHINE_AMD64)
784+
return {};
785+
783786
return std::make_unique<PECallFrameInfo>(*this, data_dir_exception.vmaddr,
784787
data_dir_exception.vmsize);
785788
}

0 commit comments

Comments
 (0)