This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
little gdb/coffread.c fix
- To: gdb at sourceware dot cygnus dot com, cygwin-developers at sourceware dot cygnus dot com
- Subject: little gdb/coffread.c fix
- From: Egor Duda <deo at logos-m dot ru>
- Date: Sun, 9 Jan 2000 16:58:45 +0300
- Organization: DEO
- Reply-To: Egor Duda <deo at logos-m dot ru>
Hi!
Current coffread.c fails to recognize pei-i386 target as pe_file.
As an effect, gdb incorrectly handles global symbols in
cygwin-complied win32 executables. Here's the fix.
Index: coffread.c
===================================================================
RCS file: /usr/home/deo/cvsroot/cygnus/cygwin/gdb/coffread.c,v
retrieving revision 1.1.2.1
diff -c -3 -r1.1.2.1 coffread.c
*** coffread.c 1999/12/30 11:42:59 1.1.2.1
--- coffread.c 2000/01/09 13:36:43
***************
*** 647,653 ****
this problem. */
pe_file = !
( strncmp (bfd_get_target (objfile->obfd), "pe", 2)
! | strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7));
/* End of warning */
--- 647,653 ----
this problem. */
pe_file = !
( strncmp (bfd_get_target (objfile->obfd), "pe", 2)
! && strncmp (bfd_get_target (objfile->obfd), "epoc-pe", 7));
/* End of warning */
Egor. mailto:deo@logos-m.ru ICQ 5165414 FidoNet 2:5020/496.19