From 24f59a092f7724dfe058fa6894f95e7cf1bb047a Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Thu, 25 Jan 2007 08:27:05 +0000 Subject: [PATCH] Fix for Bug 171421 - CDT ELF parser do not detect COLDFIRE cpu from ELF machine id (patch by Uwe Stieber) --- .../utils/org/eclipse/cdt/utils/elf/Elf.java | 4 ++++ 1 file changed, 4 insertions(+) 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 92d32542cab..dc14ecdb500 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 @@ -108,6 +108,7 @@ public class Elf { public final static int EM_H8_300 = 46; public final static int EM_H8_300H = 47; public final static int EM_IA_64 = 50; + public final static int EM_COLDFIRE = 52; public final static int EM_X86_64 = 62; public final static int EM_ST100 = 60; public final static int EM_AVR = 83; @@ -817,6 +818,9 @@ public class Elf { case Elf.ELFhdr.EM_IA_64 : attrib.cpu = "ia64"; //$NON-NLS-1$ break; + case Elf.ELFhdr.EM_COLDFIRE: + attrib.cpu = "coldfire"; //$NON-NLS-1$ + break; case Elf.ELFhdr.EM_AVR : attrib.cpu = "avr"; //$NON-NLS-1$ break;