This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Don't assume the name of Windows serial devices?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Carlos O'Donell <carlos at codesourcery dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Fri, 28 Mar 2008 10:45:21 -0400
- Subject: Re: [RFC] Don't assume the name of Windows serial devices?
- References: <47ED02B6.8010805@codesourcery.com>
On Fri, Mar 28, 2008 at 10:37:42AM -0400, Carlos O'Donell wrote:
>
> Is there any reason we restrict the Windows serial device names to "COM?"
> A user could have serial boards, com ports higher than 9 (\\.\COMX), or
> weird file devices that act like serial ports.
>
> The following patch removes the code that rejects devices that don't
> start with the word "COM".
>
> Comments?
I don't think weird file devices will act enough like serial ports for
things to work just right, but I don't see the need for the
restriction either - hopefully no one tries to open random junk
with target remote :-)
> 2008-03-28 Carlos O'Donell <carlos@codesourcery.com>
>
> * ser-mingw.c (ser_windows_open): Open requested name.
OK.
--
Daniel Jacobowitz
CodeSourcery