summaryrefslogtreecommitdiff
path: root/gdb/coff-pe-read.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-07-05 22:02:38 +0000
committerPedro Alves <pedro@codesourcery.com>2009-07-05 22:02:38 +0000
commite0a70543a3a6880bb1250c7ce73c7c648bb16bb8 (patch)
treef536f46ae8467be2819a793fb7cc64c0289e107e /gdb/coff-pe-read.c
parent03e79191600f82c821aefb7f10b47a6d2f7369d9 (diff)
downloadgdb-e0a70543a3a6880bb1250c7ce73c7c648bb16bb8.tar.gz
* coff-pe-read.c (read_pe_exported_syms): Recognize
"pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE targets.
Diffstat (limited to 'gdb/coff-pe-read.c')
-rw-r--r--gdb/coff-pe-read.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/gdb/coff-pe-read.c b/gdb/coff-pe-read.c
index d35c9dc6bef..d00a3b5c573 100644
--- a/gdb/coff-pe-read.c
+++ b/gdb/coff-pe-read.c
@@ -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;
}