Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com Date: Sun, 9 Jan 2000 16:58:45 +0300 From: Egor Duda X-Mailer: The Bat! (v1.029) S/N A0F2A05A Reply-To: Egor Duda Organization: DEO Message-ID: <10707.000109@logos-m.ru> To: gdb AT sourceware DOT cygnus DOT com, cygwin-developers AT sourceware DOT cygnus DOT com Subject: little gdb/coffread.c fix Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit 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 AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19