Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2002-11-22 16:32:59 +0000
committerAlain Magloire2002-11-22 16:32:59 +0000
commit51ca3415af532a32ab587d22d7108381e20a2919 (patch)
treef54e1676f69c1671f739bfb0a06e9699811e408b /core/org.eclipse.cdt.core/utils
parentf35c3e86445a14fe41083b95e4679fd69e77711f (diff)
downloadorg.eclipse.cdt-51ca3415af532a32ab587d22d7108381e20a2919.tar.gz
org.eclipse.cdt-51ca3415af532a32ab587d22d7108381e20a2919.tar.xz
org.eclipse.cdt-51ca3415af532a32ab587d22d7108381e20a2919.zip
check for core
Diffstat (limited to 'core/org.eclipse.cdt.core/utils')
-rw-r--r--core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/elf/Elf.java5
1 files changed, 5 insertions, 0 deletions
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 5bcda6d58d4..5328a230f41 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
@@ -587,6 +587,8 @@ public class Elf {
public static final int ELF_TYPE_EXE = 1;
public static final int ELF_TYPE_SHLIB = 2;
public static final int ELF_TYPE_OBJ = 3;
+ public static final int ELF_TYPE_CORE = 4;
+
String cpu;
int type;
boolean bDebug;
@@ -614,6 +616,9 @@ public class Elf {
Attribute attrib = new Attribute();
switch( ehdr.e_type ) {
+ case Elf.ELFhdr.ET_CORE:
+ attrib.type = attrib.ELF_TYPE_CORE;
+ break;
case Elf.ELFhdr.ET_EXEC:
attrib.type = attrib.ELF_TYPE_EXE;
break;

Back to the top