From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9420 invoked by alias); 19 Jun 2009 22:15:21 -0000 Received: (qmail 9410 invoked by uid 22791); 19 Jun 2009 22:15:20 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_83 X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.157) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 19 Jun 2009 22:15:13 +0000 Received: from baal.u-strasbg.fr (baal.u-strasbg.fr [IPv6:2001:660:2402::41]) by mailhost.u-strasbg.fr (8.14.2/jtpda-5.5pre1) with ESMTP id n5JMFA4S025291 for ; Sat, 20 Jun 2009 00:15:10 +0200 (CEST) Received: from mailserver.u-strasbg.fr (ms2.u-strasbg.fr [IPv6:2001:660:2402:d::11]) by baal.u-strasbg.fr (8.14.0/jtpda-5.5pre1) with ESMTP id n5JMF91P036044 for ; Sat, 20 Jun 2009 00:15:10 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) Received: from d620muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id n5JMF8PK098957 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 20 Jun 2009 00:15:09 +0200 (CEST) (envelope-from muller@ics.u-strasbg.fr) From: "Pierre Muller" To: Subject: [RFA] testsuite/gdb.base/fullname.exp fix Date: Fri, 19 Jun 2009 22:15:00 -0000 Message-ID: <000501c9f12b$68c860e0$3a5922a0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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-06/txt/msg00520.txt.bz2 fullname.exp currently fails compilation of windows targets because it tries to recompile the executable, while it is still running under GDB. This patch exits GDB before recompilation. Is this patch OK? Pierre Muller Pascal language support maintainer for GDB PS: Applying this patch to cygwin reveals a problem concerning the set_unbuffered_mode object. This file is added as an additional object for linking, but it is added without path information, and this does not work inside fullname.exp test, as the working directory is moved here on purpose to check GDB's ability to handle different relative path names for sources in debug information. Does anyone have an idea how to fix this? 2009-06-19 Pierre Muller * fullname.exp: Exit gdb before recompile as some operating systems lock the executable while it is running. Index: src/gdb/testsuite/gdb.base/fullname.exp =================================================================== RCS file: /cvs/src/src/gdb/testsuite/gdb.base/fullname.exp,v retrieving revision 1.3 diff -u -p -r1.3 fullname.exp --- src/gdb/testsuite/gdb.base/fullname.exp 3 Jan 2009 05:58:03 -0000 1.3 +++ src/gdb/testsuite/gdb.base/fullname.exp 19 Jun 2009 21:55:01 -0000 @@ -71,12 +71,12 @@ if { [gdb_breakpoint ${objdir}/${subdir} fail $msg } +gdb_exit # Build the test executable using a relative path. if { [gdb_compile "${subdir}/tmp-${srcfile}" "${binfile}" executable {debug}] != "" } { return -1 } -gdb_exit gdb_start gdb_load ${binfile} @@ -97,6 +97,7 @@ if { [gdb_breakpoint ${objdir}/${subdir} fail $msg } +gdb_exit # Build the test executable using relative paths not relative to the directory # we'll run GDB from. @@ -108,7 +109,6 @@ if { [gdb_compile "tmp-${srcfile}" "${t } cd $save_pwd -gdb_exit gdb_start gdb_load ${binfile}