public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* [patch] fix com ports on cygwin
@ 2004-07-02 23:10 Martin M. Hunt
  0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2004-07-02 23:10 UTC (permalink / raw)
  To: insight

[-- Attachment #1: Type: text/plain, Size: 258 bytes --]

Just cleaning up.  We discussed this recently and I have now updated the
sources.

2004-07-02  Martin Hunt  <hunt@redhat.com>

	* library/targetselection.itb: Use /dev/comX for
	cygwin instead of just comX.

-- 
Martin M. Hunt <hunt@redhat.com>
Red Hat Inc.

[-- Attachment #2: com.patch --]
[-- Type: text/x-patch, Size: 1241 bytes --]

Index: gdb/gdbtk/library/targetselection.itb
===================================================================
RCS file: /cvs/src/src/gdb/gdbtk/library/targetselection.itb,v
retrieving revision 1.15
diff -u -r1.15 targetselection.itb
--- gdb/gdbtk/library/targetselection.itb	4 Feb 2003 08:03:09 -0000	1.15
+++ gdb/gdbtk/library/targetselection.itb	2 Jul 2004 23:08:41 -0000
@@ -1,5 +1,5 @@
 # Target selection dialog for Insight.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
 #
 # This program is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License (GPL) as published by
@@ -881,7 +881,7 @@
       # Failed.  Find out why.
       if {[string first "permission denied" $msg] != -1} {
 	# Port is there, but busy right now. That's OK.
-	lappend plist com$i
+	lappend plist /dev/com$i
       } elseif {$i > 4} {
 	# if we've scanned the first 4 ports, then quit when we find no more 
 	set quit 1
@@ -889,7 +889,7 @@
     } else {
       # We got it.  Now close it and add to list.
       close $fd
-      lappend plist com$i
+      lappend plist /dev/com$i
     }
   }
   return $plist

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-02 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-02 23:10 [patch] fix com ports on cygwin Martin M. Hunt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).