Index: lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp =================================================================== --- lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp +++ lldb/source/Plugins/ObjectFile/PECOFF/PECallFrameInfo.cpp @@ -4,6 +4,7 @@ #include "Plugins/Process/Utility/lldb-x86-register-enums.h" #include "lldb/Symbol/UnwindPlan.h" +#include "lldb/Utility/ArchSpec.h" #include "llvm/Support/Win64EH.h" using namespace lldb; @@ -437,9 +438,11 @@ PECallFrameInfo::PECallFrameInfo(ObjectFilePECOFF &object_file, uint32_t exception_dir_rva, uint32_t exception_dir_size) - : m_object_file(object_file), - m_exception_dir(object_file.ReadImageDataByRVA(exception_dir_rva, - exception_dir_size)) {} + : m_object_file(object_file) { + if (m_object_file.GetArchitecture().GetMachine() == llvm::Triple::x86_64) + m_exception_dir = object_file.ReadImageDataByRVA(exception_dir_rva, + exception_dir_size); +} bool PECallFrameInfo::GetAddressRange(Address addr, AddressRange &range) { range.Clear();