diff --git a/core/org.eclipse.cdt.core/ChangeLog b/core/org.eclipse.cdt.core/ChangeLog index 0edf1f1a65d..c6f977d16eb 100644 --- a/core/org.eclipse.cdt.core/ChangeLog +++ b/core/org.eclipse.cdt.core/ChangeLog @@ -1,3 +1,8 @@ +2002-11-01 David Inglis + + * utils/org/eclipse/cdt/utils/elf/Elf.java + change getCPU to return cpu only and not append endian ("le" or "be"). + 2002-10-31 Alain Magloire * src/.../ErrorParserManager.java (findFilePath): diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java index d33b8267313..9f51a1cd2ed 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java @@ -611,7 +611,6 @@ public class Elf { public Attribute getAttributes() throws IOException { - boolean bSkipElfData = false; Attribute attrib = new Attribute(); switch( ehdr.e_type ) { @@ -630,7 +629,6 @@ public class Elf { case Elf.ELFhdr.EM_386 : case Elf.ELFhdr.EM_486 : attrib.cpu = new String("x86"); - bSkipElfData = true; break; case Elf.ELFhdr.EM_PPC : attrib.cpu = new String("ppc"); @@ -654,17 +652,13 @@ public class Elf { default: attrib.cpu = "none"; } - if (!bSkipElfData) { - switch (ehdr.e_ident[Elf.ELFhdr.EI_DATA]) { - case Elf.ELFhdr.ELFDATA2LSB : - attrib.cpu+= "le"; - attrib.isle = true; - break; - case Elf.ELFhdr.ELFDATA2MSB : - attrib.cpu += "be"; - attrib.isle = false; - break; - } + switch (ehdr.e_ident[Elf.ELFhdr.EI_DATA]) { + case Elf.ELFhdr.ELFDATA2LSB : + attrib.isle = true; + break; + case Elf.ELFhdr.ELFDATA2MSB : + attrib.isle = false; + break; } // getSections // find .debug using toString