forked from OSchip/llvm-project
[LLDB][MIPS] Added support for MIPS1, MIPS2, MIPS3, MIPS4 and MIPS5 instruction sets
Patch by Nitesh Jain. Summary: This Patch will allowed LLDB to debug respective instruction sets binaries. Reviewers: jaydeep, clayborg Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan Differential: http://reviews.llvm.org/D15487 llvm-svn: 255619
This commit is contained in:
parent
9f69cc024b
commit
40fc2e391a
|
@ -328,6 +328,11 @@ mipsVariantFromElfFlags(const elf::elf_word e_flags, uint32_t endian)
|
|||
|
||||
switch (mips_arch)
|
||||
{
|
||||
case llvm::ELF::EF_MIPS_ARCH_1:
|
||||
case llvm::ELF::EF_MIPS_ARCH_2:
|
||||
case llvm::ELF::EF_MIPS_ARCH_3:
|
||||
case llvm::ELF::EF_MIPS_ARCH_4:
|
||||
case llvm::ELF::EF_MIPS_ARCH_5:
|
||||
case llvm::ELF::EF_MIPS_ARCH_32:
|
||||
return (endian == ELFDATA2LSB) ? ArchSpec::eMIPSSubType_mips32el : ArchSpec::eMIPSSubType_mips32;
|
||||
case llvm::ELF::EF_MIPS_ARCH_32R2:
|
||||
|
|
Loading…
Reference in New Issue