Revert "[lldb] Fix ppc64 detection in lldb"
This reverts commit f114f00948.
Due to hitting an assert on our lldb bots:
https://lab.llvm.org/buildbot/#/builders/96/builds/22715
../llvm-project/lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp:170:
virtual lldb::RegisterContextSP ThreadElfCore::CreateRegisterContextForFrame(
lldb_private::StackFrame *): Assertion `false && "Architecture or OS not supported"' failed.
This commit is contained in:
@@ -310,19 +310,9 @@ static uint32_t riscvVariantFromElfFlags(const elf::ELFHeader &header) {
|
||||
}
|
||||
}
|
||||
|
||||
static uint32_t ppc64VariantFromElfFlags(const elf::ELFHeader &header) {
|
||||
uint32_t endian = header.e_ident[EI_DATA];
|
||||
if (endian == ELFDATA2LSB)
|
||||
return ArchSpec::eCore_ppc64le_generic;
|
||||
else
|
||||
return ArchSpec::eCore_ppc64_generic;
|
||||
}
|
||||
|
||||
static uint32_t subTypeFromElfHeader(const elf::ELFHeader &header) {
|
||||
if (header.e_machine == llvm::ELF::EM_MIPS)
|
||||
return mipsVariantFromElfFlags(header);
|
||||
else if (header.e_machine == llvm::ELF::EM_PPC64)
|
||||
return ppc64VariantFromElfFlags(header);
|
||||
else if (header.e_machine == llvm::ELF::EM_RISCV)
|
||||
return riscvVariantFromElfFlags(header);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user