CVS: gdb/gdb-5.1.1/bfd archures.c, 1.1.1.1, 1.2 bfd-in2.h, 1.1.1.1, 1.2 cpu-msp430.c, 1.1.1.1, 1.2 elf32-msp430.c, 1.1.1.1, 1.2

Chris Liechti <[email protected]> Wed, 14 May 2008 17:56:50 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/gdb/gdb-5.1.1/bfd
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6427/gdb-5.1.1/bfd

Modified Files:
	archures.c bfd-in2.h cpu-msp430.c elf32-msp430.c 
Log Message:
add support for 24xx devices


Index: archures.c
===================================================================
RCS file: /cvsroot/mspgcc/gdb/gdb-5.1.1/bfd/archures.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- archures.c	4 Jun 2003 12:55:17 -0000	1.1.1.1
+++ archures.c	15 May 2008 00:56:43 -0000	1.2
@@ -255,11 +255,21 @@
 .#define bfd_mach_avr4		4
 .#define bfd_mach_avr5		5
 .  bfd_arch_msp430,
-.#define bfd_mach_msp110           110
-.#define bfd_mach_msp11            11
-.#define bfd_mach_msp12          12
-.#define bfd_mach_msp13          13
-.##define bfd_mach_msp14            14
+#define bfd_mach_msp110         110
+#define bfd_mach_msp11          11
+#define bfd_mach_msp12          12
+#define bfd_mach_msp13          13
+#define bfd_mach_msp14          14
+#define bfd_mach_msp41          41
+#define bfd_mach_msp31          31 
+#define bfd_mach_msp32          32  
+#define bfd_mach_msp33          33
+#define bfd_mach_msp20          20
+#define bfd_mach_msp21          21
+#define bfd_mach_msp22          22
+#define bfd_mach_msp24          24
+#define bfd_mach_msp241         241
+#define bfd_mach_msp26          26
 .  bfd_arch_cris,      {* Axis CRIS *}
 .  bfd_arch_s390,      {* IBM s390 *}
 .#define bfd_mach_s390_esa      0

Index: bfd-in2.h
===================================================================
RCS file: /cvsroot/mspgcc/gdb/gdb-5.1.1/bfd/bfd-in2.h,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- bfd-in2.h	4 Jun 2003 12:55:18 -0000	1.1.1.1
+++ bfd-in2.h	15 May 2008 00:56:44 -0000	1.2
@@ -1553,8 +1553,12 @@
 #define bfd_mach_msp31          31 
 #define bfd_mach_msp32          32  
 #define bfd_mach_msp33          33
-  
-  
+#define bfd_mach_msp20          20
+#define bfd_mach_msp21          21
+#define bfd_mach_msp22          22
+#define bfd_mach_msp24          24
+#define bfd_mach_msp241         241
+#define bfd_mach_msp26          26
   bfd_arch_cris,      /* Axis CRIS */
   bfd_arch_s390,      /* IBM s390 */
 #define bfd_mach_s390_esa      0

Index: cpu-msp430.c
===================================================================
RCS file: /cvsroot/mspgcc/gdb/gdb-5.1.1/bfd/cpu-msp430.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- cpu-msp430.c	4 Jun 2003 12:55:19 -0000	1.1.1.1
+++ cpu-msp430.c	15 May 2008 00:56:44 -0000	1.2
@@ -68,7 +68,26 @@
   N (16, bfd_mach_msp41, "msp:41", false, & arch_info_struct[8]),
   
   /* msp430x11x1 */
-  N (16, bfd_mach_msp110, "msp:110", false, NULL)
+  N (16, bfd_mach_msp110, "msp:110", false, & arch_info_struct[9]),
+
+  /* msp430x20x */
+  N (16, bfd_mach_msp20, "msp:20", false, & arch_info_struct[10]),
+
+  /* msp430x21x */
+  N (16, bfd_mach_msp110, "msp:21", false, & arch_info_struct[11]),
+
+  /* msp430x22x */
+  N (16, bfd_mach_msp22, "msp:22", false, & arch_info_struct[12]),
+
+  /* msp430x24x, msp430x24x1, msp430x2410  */
+  N (16, bfd_mach_msp24, "msp:24", false, & arch_info_struct[13]),
+
+  /* msp430x241x */
+  N (16, bfd_mach_msp241, "msp:241", false, & arch_info_struct[14]),
+
+  /* msp430x26x */
+  N (16, bfd_mach_msp26, "msp:26", false, NULL)
+
 
 };
 

Index: elf32-msp430.c
===================================================================
RCS file: /cvsroot/mspgcc/gdb/gdb-5.1.1/bfd/elf32-msp430.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -w -d -r1.1.1.1 -r1.2
--- elf32-msp430.c	4 Jun 2003 12:55:21 -0000	1.1.1.1
+++ elf32-msp430.c	15 May 2008 00:56:45 -0000	1.2
@@ -552,6 +552,30 @@
       val = E_MSP430_MACH_MSP430x33;
       break;
 
+    case bfd_mach_msp20:
+      val = E_MSP430_MACH_MSP430x20;
+      break;
+
+    case bfd_mach_msp21:
+      val = E_MSP430_MACH_MSP430x21;
+      break;
+
+    case bfd_mach_msp22:
+      val = E_MSP430_MACH_MSP430x22;
+      break;
+
+    case bfd_mach_msp24:
+      val = E_MSP430_MACH_MSP430x24;
+      break;
+
+    case bfd_mach_msp241:
+      val = E_MSP430_MACH_MSP430x241;
+      break;
+
+    case bfd_mach_msp26:
+      val = E_MSP430_MACH_MSP430x26;
+      break;
+
     }
 
   elf_elfheader (abfd)->e_machine = EM_MSP430;
@@ -609,6 +633,30 @@
 	  e_set = bfd_mach_msp33;
 	  break;
 
+	case E_MSP430_MACH_MSP430x20:
+	  e_set = bfd_mach_msp20;
+	  break;
+
+	case E_MSP430_MACH_MSP430x21:
+	  e_set = bfd_mach_msp21;
+	  break;
+
+	case E_MSP430_MACH_MSP430x22:
+	  e_set = bfd_mach_msp22;
+	  break;
+
+	case E_MSP430_MACH_MSP430x24:
+	  e_set = bfd_mach_msp24;
+	  break;
+
+	case E_MSP430_MACH_MSP430x241:
+	  e_set = bfd_mach_msp241;
+	  break;
+
+	case E_MSP430_MACH_MSP430x26:
+	  e_set = bfd_mach_msp26;
+	  break;
+
 	}
     }
   return bfd_default_set_arch_mach (abfd, bfd_arch_msp430,


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/