[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[cdt-patch] IBinary/Elf changes
|
getCPU will now just return the cpu string not including the endian use
isLittleEndian for that.
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.15
diff -u -r1.15 ChangeLog
--- ChangeLog 31 Oct 2002 14:53:27 -0000 1.15
+++ ChangeLog 1 Nov 2002 17:36:38 -0000
@@ -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):
Index: utils/org/eclipse/cdt/utils/elf/Elf.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java,v
retrieving revision 1.4
diff -u -r1.4 Elf.java
--- utils/org/eclipse/cdt/utils/elf/Elf.java 25 Oct 2002 18:38:19 -0000 1.4
+++ utils/org/eclipse/cdt/utils/elf/Elf.java 1 Nov 2002 17:36:38 -0000
@@ -611,7 +611,6 @@
public Attribute getAttributes() throws IOException {
- boolean bSkipElfData = false;
Attribute attrib = new Attribute();
switch( ehdr.e_type ) {
@@ -630,7 +629,6 @@
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 @@
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