From: Mark Mitchell <mark@codesourcery.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sources.redhat.com, Christopher Faylor <me@cgf.cx>
Subject: Re: PATCH: MinGW readline -- revised
Date: Sun, 24 Jul 2005 22:50:00 -0000 [thread overview]
Message-ID: <42E41B2B.4080103@codesourcery.com> (raw)
In-Reply-To: <20050724211016.GA798@nevyn.them.org>
Daniel Jacobowitz wrote:
>>1) Minor bit-rot in remote-sim.c and ser-tcp.c on MinGW. In
>> particular, SIGTRAP is being used unconditionally in the former,
>> and the MinGW definition of "close" (in terms of "closesocket")
>> needs to be a function-like macro, so as to avoid confusion in
>> code like "ops->close = net_close".
>
> I'm not sure why you call this "bit-rot".
This configuration worked in the past for me, but does not work now.
Perhaps that's due to something in my environment that has changed, or
use of some other patch to the source code I was testing, or a different
--target setting, or something. In any case, I hereby withdraw the use
of the word bit-rot!
> I am inclined to go with Paul's patch for the nonce.
OK; consider that hunk withrdrawn until we figure out what to do instead.
> Similarly the reference to ops->close is from 2002.
Independently of that, may I check in the change that fixes it? This
change is entirely within MinGW-#ifdef'd code, and is purely syntactic
in nature.
For clarity, here is the patch:
2005-07-18 Mark Mitchell <mark@codesourcery.com>
* ser-tcp.c (close): Define as a function-like macro on MinGW.
Index: ser-tcp.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-tcp.c,v
retrieving revision 1.23
diff -c -5 -p -r1.23 ser-tcp.c
*** ser-tcp.c 13 Jun 2005 21:31:57 -0000 1.23
--- ser-tcp.c 24 Jul 2005 22:45:25 -0000
***************
*** 37,47 ****
#include <sys/time.h>
#ifdef USE_WIN32API
#include <winsock2.h>
#define ETIMEDOUT WSAETIMEDOUT
! #define close closesocket
#define ioctl ioctlsocket
#else
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
--- 37,47 ----
#include <sys/time.h>
#ifdef USE_WIN32API
#include <winsock2.h>
#define ETIMEDOUT WSAETIMEDOUT
! #define close(fd) closesocket (fd)
#define ioctl ioctlsocket
#else
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
--
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304
next prev parent reply other threads:[~2005-07-24 22:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-19 0:11 Mark Mitchell
2005-07-22 7:29 ` Kai Henningsen
2005-07-24 21:10 ` Daniel Jacobowitz
2005-07-24 22:50 ` Mark Mitchell [this message]
2005-07-24 23:00 ` Daniel Jacobowitz
2005-07-24 23:03 ` Mark Mitchell
2005-07-25 0:39 ` Christopher Faylor
2005-07-25 0:41 ` Daniel Jacobowitz
2005-07-25 14:54 ` Christopher Faylor
2005-07-25 14:55 ` Mark Mitchell
2005-07-25 15:01 ` Daniel Jacobowitz
2005-07-25 15:02 ` Mark Mitchell
2005-07-25 15:10 ` Mark Mitchell
2005-07-25 0:41 ` Mark Mitchell
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=42E41B2B.4080103@codesourcery.com \
--to=mark@codesourcery.com \
--cc=drow@false.org \
--cc=gdb-patches@sources.redhat.com \
--cc=me@cgf.cx \
/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