From 5e13bd89ecaf59fd247bdfb49a23e162cd229691 Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 5 Jul 2009 22:02:39 +0000 Subject: [PATCH] * coff-pe-read.c (read_pe_exported_syms): Recognize "pe-arm-wince-little" and "pei-arm-wince-little" bfd targets as PE targets. --- gdb/ChangeLog | 6 ++++++ gdb/coff-pe-read.c | 17 ++++++++++------- 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 609fd7227e5..412ac3afadd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-07-05 Pedro Alves + + * 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 * arm-wince-tdep.c (arm_wince_skip_main_prologue): New. 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; } -- 2.30.2