From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5752 invoked by alias); 28 Jun 2004 11:35:23 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 5737 invoked from network); 28 Jun 2004 11:35:22 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 28 Jun 2004 11:35:22 -0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx1.redhat.com (8.12.10/8.12.10) with ESMTP id i5SBZLe1029812 for ; Mon, 28 Jun 2004 07:35:21 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id i5SBZKw07179 for ; Mon, 28 Jun 2004 07:35:20 -0400 Received: from cygbert.vinschen.de (vpn50-35.rdu.redhat.com [172.16.50.35]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id i5SBZJP18641 for ; Mon, 28 Jun 2004 04:35:19 -0700 Received: by cygbert.vinschen.de (Postfix, from userid 500) id D7AB1582E2; Mon, 28 Jun 2004 13:35:16 +0200 (CEST) Date: Mon, 28 Jun 2004 11:35:00 -0000 From: Corinna Vinschen To: gdb-patches@sources.redhat.com Subject: [RFA] testsuite/gdb.arch/i386-prologue.c: Fix compiling on Cygwin Message-ID: <20040628113516.GA19325@cygbert.vinschen.de> Reply-To: gdb-patches@sources.redhat.com Mail-Followup-To: gdb-patches@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-SW-Source: 2004-06/txt/msg00632.txt.bz2 Hi, the gdb.arch/i386-prologue.c testcase doesn't compile on Cygwin since on Cygwin the assenmbler labels need leading underscores to match the same names in C. The below patch fixes that. Corinna * gdb.arch/i386-prologue.c: Conditionalize label names to build on Cygwin. Index: gdb.arch/i386-prologue.c =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-prologue.c,v retrieving revision 1.3 diff -u -p -r1.3 i386-prologue.c --- gdb.arch/i386-prologue.c 29 Apr 2004 18:05:31 -0000 1.3 +++ gdb.arch/i386-prologue.c 28 Jun 2004 11:32:02 -0000 @@ -15,7 +15,11 @@ main (void) asm(".text\n" " .align 8\n" +#ifdef __CYGWIN__ + "_gdb1253:\n" +#else "gdb1253:\n" +#endif " pushl %ebp\n" " xorl %ecx, %ecx\n" " movl %esp, %ebp\n" @@ -28,7 +32,11 @@ asm(".text\n" asm(".text\n" " .align 8\n" +#ifdef __CYGWIN__ + "_gdb1338:\n" +#else "gdb1338:\n" +#endif " pushl %edi\n" " pushl %esi\n" " pushl %ebx\n" @@ -44,7 +52,11 @@ asm(".text\n" asm(".text\n" " .align 8\n" +#ifdef __CYGWIN__ + "_jump_at_beginning:\n" +#else "jump_at_beginning:\n" +#endif " pushl %ebp\n" " movl %esp,%ebp\n" " jmp .gdbjump\n" -- Corinna Vinschen Cygwin Co-Project Leader Red Hat, Inc.