Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Follow-up on patch to ser-tcp.c
@ 2005-04-05 18:07 Mark Mitchell
  2005-04-06  7:41 ` Mark Kettenis
  0 siblings, 1 reply; 4+ messages in thread
From: Mark Mitchell @ 2005-04-05 18:07 UTC (permalink / raw)
  To: gdb-patches; +Cc: Mark Kettenis

Mark --

A while back, I posted a patch to change ser-tcp.c to support Windows, here:

http://sources.redhat.com/ml/gdb-patches/2005-03/msg00331.html

You had some objections:

1. The configury change to link with -lws2_23 on Windows.

2. The use of #ifdef WINAPI.

3. The asymmetry I introduced by adding the "read_prim" member to 
"struct serial" without a corresponding "write_prim" member.

4. Changes to support differences between BSD and Windows socket APIs.

5. Modifications to strerror.

I don't see a way around (1).  The question is really not whether the 
library is available; the question is whether we should use it.  On 
MinGW, we should; on Cygwin, we should not.

The impact of (2) can be mitigated by using __MINGW32__ instead of 
WINAPI.  That will avoid the defs.h change, and localize the changes to 
the actual conditional code.

In my local version of the patch, I've corrected (3); the symmetry is 
now complete.  I've also mitigated (4), in that I've determined that 
send/recv should work fine on all targets.  That means that we don't 
need an #ifdef to decide whether to use "read" or "recv"; we can just 
always use "recv", as that function is available both on Windows and 
elsewhere.

I can drop (5) from the patch, and we can come back to that later.

With the set of changes described here, would you be willing to consider 
the patch again?  If so, I will post the modified version.

Thanks,

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-07  7:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-05 18:07 Follow-up on patch to ser-tcp.c Mark Mitchell
2005-04-06  7:41 ` Mark Kettenis
2005-04-06 17:52   ` Mark Mitchell
2005-04-07  7:20   ` Kai Henningsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox