* coff-pe-read.c (read_pe_exported_syms): Recognize
authorPedro Alves <palves@redhat.com>
Sun, 5 Jul 2009 22:02:39 +0000 (22:02 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 5 Jul 2009 22:02:39 +0000 (22:02 +0000)
"pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
targets.

gdb/ChangeLog
gdb/coff-pe-read.c

index 609fd72..412ac3a 100644 (file)
@@ -1,5 +1,11 @@
 2009-07-05  Pedro Alves  <pedro@codesourcery.com>
 
+       * coff-pe-read.c (read_pe_exported_syms): Recognize
+       "pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE
+       targets.
+
+2009-07-05  Pedro Alves  <pedro@codesourcery.com>
+
        * arm-wince-tdep.c (arm_wince_skip_main_prologue): New.
        (arm_wince_init_abi): Register it as gdbarch_skip_main_prologue
        callback.
index d35c9dc..d00a3b5 100644 (file)
@@ -207,15 +207,18 @@ read_pe_exported_syms (struct objfile *objfile)
 
   char const *target = bfd_get_target (objfile->obfd);
 
-  is_pe64 = ((strcmp (target, "pe-x86-64") == 0)
-             || (strcmp (target, "pei-x86-64") == 0));
-  is_pe32 = ((strcmp (target, "pe-i386") == 0)
-             || (strcmp (target, "pei-i386") == 0));
+  is_pe64 = (strcmp (target, "pe-x86-64") == 0
+            || strcmp (target, "pei-x86-64") == 0);
+  is_pe32 = (strcmp (target, "pe-i386") == 0
+            || strcmp (target, "pei-i386") == 0
+            || strcmp (target, "pe-arm-wince-little") == 0
+            || strcmp (target, "pei-arm-wince-little") == 0);
+
   if (!is_pe32 && !is_pe64)
     {
-      /* This is not an i386 format file. Abort now, because the code
-         is untested on anything else. *FIXME* test on further
-         architectures and loosen or remove this test. */
+      /* This is not a recognized PE format file.  Abort now, because
+        the code is untested on anything else.  *FIXME* test on
+        further architectures and loosen or remove this test. */
       return;
     }