From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18371 invoked by alias); 3 Nov 2015 12:34:14 -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 18360 invoked by uid 89); 3 Nov 2015 12:34:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 03 Nov 2015 12:34:12 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id AE6848F277; Tue, 3 Nov 2015 12:34:11 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id tA3CYAxc002239; Tue, 3 Nov 2015 07:34:10 -0500 Message-ID: <5638A9C1.7030600@redhat.com> Date: Tue, 03 Nov 2015 12:34:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: fracting@gmail.com CC: gdb-patches@sourceware.org Subject: Re: [PATCH 00/11] C++/MinGW patches References: <1446492970-21432-1-git-send-email-palves@redhat.com> <5637C1FA.2060708@redhat.com> <5637CB96.4010106@redhat.com> <563899DB.10205@redhat.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-11/txt/msg00071.txt.bz2 On 11/03/2015 11:40 AM, Qian Hong wrote: > Hi Pedro, > > Thanks for testing Wine Staging. > > On Tue, Nov 3, 2015 at 7:26 PM, Pedro Alves wrote: >> I've actually tried Wine multiple times before over the years. I've managed >> to run gdbserver under Wine (in the past, haven't tried recently), and connect >> to it with a GNU/Linux-hosted cross debugger (--host=linux --target=mingw), >> but gdb running under Wine has never worked for me. The problem for >> me is that input does not work. > > I can confirm the behavior you described. > > I think this is related to a known bug I want to fix: > https://bugs.wine-staging.com/show_bug.cgi?id=290 > > At this time, there is two solution to make input works. > > Solution A: start wineconsole before using gdb: > $ wineconsole > > C:\path\to\gdb.exe > > Solution B: use MinTTY as a replacement of wineconsole, from MSYS2 > project: https://msys2.github.io/ > (note: `export STAGING_WRITECOPY=1` is required before using MSYS2, > see https://github.com/fracting/wine-fracting/wiki/MSYS2-on-Wine#build-status > ) > > The advantage of solution A is, no third party software required, > however, the disadvantage is, wineconsole itself is not nice, things > like copy&paste doesn't work, it is not a good terminal emulator in > practice. The advantage of solution B is, mintty is a full working > terminal emulator, also with some tweaking we can use Linux like > shortcut (ctrl+shift+c/v) inside mintty, in addition there are a > couple of other GNU/Linux tools available in MSYS2 repo, but the > disadvantage is we need to install third party software ;-) > > If you have chance to try either wineconsole or mintty, please let me > know if it solve your input, that's great appreciated. Thanks! I'll try this when I have a chance. Thanks, Pedro Alves