From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 46759 invoked by alias); 17 Nov 2019 10:46:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 46742 invoked by uid 89); 17 Nov 2019 10:46:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-15.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=H*c:alternative, HX-Received:Sun X-HELO: mail-oi1-f195.google.com Received: from mail-oi1-f195.google.com (HELO mail-oi1-f195.google.com) (209.85.167.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 17 Nov 2019 10:46:31 +0000 Received: by mail-oi1-f195.google.com with SMTP id s71so12644759oih.11 for ; Sun, 17 Nov 2019 02:46:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=QFgAQ7aUcLFjZlwhGr+HPWHudpTjg/5b/EXCUcrQUVg=; b=P7h01xeJx/IVIDiav/4alZwkH1je+snz16+Fw7fStfMk13I8JC0Qm/SirhIc62vQy5 wdqXuFzWJlAJQY86owM1z/U9/mPSUE0ufW/JEkBjqu8uKNxAqnsuq72rcJB/xWJ3SDf7 ZGOFX2tNRVqrtOTk4K3jFUid9/bG/hVlInFiVBql7YLI0gBzregUUPwhXN6fl2t9guui L1D5X3kTLVqBgZdCAJbu4PZ99WxheXsTZEpiCYQfYEsKEUtanMCsrUNqv3RjeVonPvYq vv+H9COJ90Jo7KP51+AdRGT2t2UaJY336jqQWvkkPArR3HKfPZI8E7L74X403EgHcdt6 JoCg== MIME-Version: 1.0 From: Orgad Shaneh Date: Sun, 17 Nov 2019 10:46:00 -0000 Message-ID: Subject: [PATCH] mingw: Fix wrong error message on connection timeout To: gdb-patches@sourceware.org Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-11/txt/msg00504.txt.bz2 ETIMEDOUT is defined as 138. Translating this error code to a readable message gives "The system tried to join a drive to a directory on a joined drive." Since GDB assigns this value directly, it should use a value that the system recognizes correctly. --- gdb/ser-tcp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c index 37f64b5d08..a1baa7729e 100644 --- a/gdb/ser-tcp.c +++ b/gdb/ser-tcp.c @@ -40,9 +40,8 @@ #ifdef USE_WIN32API #include -#ifndef ETIMEDOUT +#undef ETIMEDOUT #define ETIMEDOUT WSAETIMEDOUT -#endif /* Gnulib defines close too, but gnulib's replacement doesn't call closesocket unless we import the socketlib module. */ -- 2.24.0.windows.1.2.g59df941196