Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Eli Zaretskii" <eliz@gnu.org>
To: gdb-patches@sourceware.org
Subject: [RFA] Fix observer.sh when the argument includes a drive letter
Date: Thu, 12 May 2005 16:07:00 -0000	[thread overview]
Message-ID: <01c5570b$Blat.v2.4$cfdc3860@zahav.net.il> (raw)

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  <eliz@gnu.org>

	* 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
 


             reply	other threads:[~2005-05-12 16:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-12 16:07 Eli Zaretskii [this message]
2005-05-12 16:08 ` Daniel Jacobowitz
2005-05-12 20:43   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='01c5570b$Blat.v2.4$cfdc3860@zahav.net.il' \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox