From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 117275 invoked by alias); 6 Mar 2019 16:37:00 -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 117248 invoked by uid 89); 6 Mar 2019 16:37:00 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:83k1hcc, H*i:sk:83k1hcc, screen, 2018-10 X-HELO: relay.fit.cvut.cz Received: from relay.fit.cvut.cz (HELO relay.fit.cvut.cz) (147.32.232.237) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Mar 2019 16:36:57 +0000 Received: from imap.fit.cvut.cz (imap.fit.cvut.cz [147.32.232.238]) by relay.fit.cvut.cz (8.15.2/8.15.2) with ESMTPS id x26GaflY007358 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 6 Mar 2019 17:36:42 +0100 (CET) (envelope-from jan.vrany@fit.cvut.cz) Received: from sao (02d97c6d.bb.sky.com [2.217.124.109] (may be forged)) (authenticated bits=0 as user vranyj1) by imap.fit.cvut.cz (8.15.2/8.15.2) with ESMTPSA id x26Gadk6060865 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Wed, 6 Mar 2019 17:36:40 +0100 (CET) (envelope-from jan.vrany@fit.cvut.cz) Message-ID: <0834b1321a1fc8fe6448d106d11a5d7be9e23933.camel@fit.cvut.cz> Subject: Re: [PATCH v2 0/2] MI: Add new command -complete From: Jan Vrany To: Eli Zaretskii Cc: palves@redhat.com, tom@tromey.com, gdb-patches@sourceware.org, gdb@sourceware.org Date: Wed, 06 Mar 2019 16:37:00 -0000 In-Reply-To: <83k1hcc8hv.fsf@gnu.org> References: <87imynm3ia.fsf@tromey.com> <20190128124101.26243-1-jan.vrany@fit.cvut.cz> <87pnrmnolt.fsf@tromey.com> <6de282dee73cb44ae2016cb31254aa35c04e9816.camel@fit.cvut.cz> <87mumie3e2.fsf@tromey.com> <08b77764c3236cf652d981b3df1e78c185f6673e.camel@fit.cvut.cz> <825af91304d4a13bb6d599c16d68411fc6f37970.camel@fit.cvut.cz> <83k1hcc8hv.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SW-Source: 2019-03/txt/msg00099.txt.bz2 On Wed, 2019-03-06 at 17:45 +0200, Eli Zaretskii wrote: > > From: Jan Vrany > > Cc: gdb-patches@sourceware.org, "gdb@sourceware.org" > > Date: Wed, 06 Mar 2019 15:09:33 +0000 > > > > > > 1) Completion CLI is AFAIK implemented using readline which has problems > > > > working over pipes. Actually, I never got CLI working satisfactorily > > > > on Windows even when I just run GDB "normally" from Windows command shell (`cmd.exe`), > > > > let alone over pipes or alike. > > > > > > Curious. AFAIK native Windows gdb over cmd.exe should work fine. > > > > Maybe I just don't know how to compile it properly. I have just compiled > > fresh c3734e093aab1ce from git (only with this patch > > https://sourceware.org/ml/gdb-patches/2018-10/msg00614.html to make it compile > > with Python 3) using using MSYS2 MINGW64 toolchain on Windows 10. > > This is the exact configure command: > > > > bash ../configure --build=x86_64-w64-mingw32 --disable-werror --with-guile=no --with-python=C:\msys64\mingw64\bin\python3 --enable-targets="i686-w64-mingw32,x86_64-w64-mingw32" > > > > Completion by tab seem to work. > > > > Backspace practially does not, it deletes the character in the line > > buffer (presumably) but not on the screen. Instead, it moves the caret > > one character on the right. Therefore what use see on the screen is not > > what it sent to GDB when she presses enter. > > > > Moving cursor by left arrow followed by typing has similar issues. > > Same for delete. Same for pressing Ctrl-R for searching the history. > > How did you invoke GDB from cmd.exe, to make these problems appear? > Can you show your exact invocation command line? Just like: H:\Projects\gdb\master\build-x86_64-msys2\gdb>gdb.exe HTH, Jan