From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21867 invoked by alias); 12 May 2005 16:04:01 -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 21461 invoked from network); 12 May 2005 16:03:41 -0000 Received: from unknown (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org with SMTP; 12 May 2005 16:03:41 -0000 Received: from zaretski (IGLD-83-130-254-105.inter.net.il [83.130.254.105]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BEY17160 (AUTH halo1); Thu, 12 May 2005 19:03:40 +0300 (IDT) Date: Thu, 12 May 2005 16:07:00 -0000 From: "Eli Zaretskii" To: gdb-patches@sourceware.org Message-ID: <01c5570b$Blat.v2.4$cfdc3860@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 Subject: [RFA] Fix observer.sh when the argument includes a drive letter Reply-to: Eli Zaretskii X-SW-Source: 2005-05/txt/msg00294.txt.bz2 This patch fixes the case where observer.texi's file name is in absolute form on DOS/Windows. Okay to commit? 2005-05-12 Eli Zaretskii * observer.sh: (texi) [DJGPP]: If the file name includes a colon, convert it to the /dev/x/ form. Index: gdb/observer.sh =================================================================== RCS file: /cvs/src/src/gdb/observer.sh,v retrieving revision 1.5 diff -u -r1.5 observer.sh --- gdb/observer.sh 12 May 2005 15:44:19 -0000 1.5 +++ gdb/observer.sh 12 May 2005 15:59:05 -0000 @@ -58,6 +58,13 @@ ;; esac +# We are about to set IFS=:, so DOS-style file names with a drive +# letter and a colon will be in trouble + +if test -n $DJGPP +then + texi=`echo $texi | sed -e 's,^\([a-zA-Z]\):/,/dev/\1/,'` +fi # generate a list of events that can be observed