This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

little gdb/coffread.c fix


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]