* [RFA] Fix observer.sh when the argument includes a drive letter
@ 2005-05-12 16:07 Eli Zaretskii
2005-05-12 16:08 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2005-05-12 16:07 UTC (permalink / raw)
To: gdb-patches
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Fix observer.sh when the argument includes a drive letter
2005-05-12 16:07 [RFA] Fix observer.sh when the argument includes a drive letter Eli Zaretskii
@ 2005-05-12 16:08 ` Daniel Jacobowitz
2005-05-12 20:43 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2005-05-12 16:08 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
On Thu, May 12, 2005 at 07:00:06PM +0300, Eli Zaretskii wrote:
> 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.
Clever. This is OK; would you mind adding a period after "trouble" in
the comment?
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFA] Fix observer.sh when the argument includes a drive letter
2005-05-12 16:08 ` Daniel Jacobowitz
@ 2005-05-12 20:43 ` Eli Zaretskii
0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2005-05-12 20:43 UTC (permalink / raw)
To: gdb-patches
> Date: Thu, 12 May 2005 12:06:31 -0400
> From: Daniel Jacobowitz <drow@false.org>
> Cc: gdb-patches@sourceware.org
>
> > 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.
>
> Clever. This is OK; would you mind adding a period after "trouble" in
> the comment?
Fixed and committed. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-05-12 20:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-12 16:07 [RFA] Fix observer.sh when the argument includes a drive letter Eli Zaretskii
2005-05-12 16:08 ` Daniel Jacobowitz
2005-05-12 20:43 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox