From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31632 invoked by alias); 3 Nov 2009 16:28:15 -0000 Received: (qmail 31619 invoked by uid 22791); 3 Nov 2009 16:28:14 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,KAM_STOCKGEN,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Nov 2009 16:28:09 +0000 Received: (qmail 19083 invoked from network); 3 Nov 2009 16:28:05 -0000 Received: from unknown (HELO ?192.168.44.101?) (nathan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Nov 2009 16:28:05 -0000 Message-ID: <4AF05A04.9010103@codesourcery.com> Date: Tue, 03 Nov 2009 16:28:00 -0000 From: Nathan Sidwell User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: gdb-patches@sourceware.org CC: Pedro Alves Subject: [mingw32] Fix some tests Content-Type: multipart/mixed; boundary="------------060502010902050205090304" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00054.txt.bz2 This is a multi-part message in MIME format. --------------060502010902050205090304 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 192 This patch of Pedro's fixes some x86-mingw tests. That target also has a leading _ on symbols. ok? nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery --------------060502010902050205090304 Content-Type: text/plain; name="mingw-test.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mingw-test.diff" Content-length: 3009 2009-11-03 Pedro Alves * gdb.arch/i386-gnu-cfi.exp: Define SYMBOL_PREFIX on *-*-mingw*. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise. Index: gdb.arch/i386-gnu-cfi.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-gnu-cfi.exp,v retrieving revision 1.4 diff -c -3 -p -r1.4 i386-gnu-cfi.exp *** gdb.arch/i386-gnu-cfi.exp 3 Jan 2009 05:58:03 -0000 1.4 --- gdb.arch/i386-gnu-cfi.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 42,48 **** # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if [istarget "i?86-*-cygwin*"] then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } --- 42,48 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } Index: gdb.arch/i386-prologue.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-prologue.exp,v retrieving revision 1.18 diff -c -3 -p -r1.18 i386-prologue.exp *** gdb.arch/i386-prologue.exp 3 Jan 2009 05:58:03 -0000 1.18 --- gdb.arch/i386-prologue.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 40,46 **** # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if [istarget "i?86-*-cygwin*"] then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } --- 40,46 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } Index: gdb.arch/i386-unwind.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.arch/i386-unwind.exp,v retrieving revision 1.9 diff -c -3 -p -r1.9 i386-unwind.exp *** gdb.arch/i386-unwind.exp 3 Jan 2009 05:58:03 -0000 1.9 --- gdb.arch/i386-unwind.exp 3 Nov 2009 16:25:27 -0000 *************** set binfile ${objdir}/${subdir}/${testfi *** 39,45 **** # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if [istarget "i?86-*-cygwin*"] then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } --- 39,45 ---- # some targets have leading underscores on assembly symbols. # TODO: detect this automatically set additional_flags "" ! if { [istarget "*-*-cygwin*"] || [istarget "*-*-mingw*"] } then { set additional_flags "additional_flags=-DSYMBOL_PREFIX=\"_\"" } --------------060502010902050205090304--