From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124204 invoked by alias); 6 Mar 2019 15:45:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 124164 invoked by uid 89); 6 Mar 2019 15:45:04 -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:825af91, Hx-languages-length:1630, screen, 2018-10 X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 06 Mar 2019 15:45:02 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Yj5-0002Dx-SD; Wed, 06 Mar 2019 10:44:59 -0500 Received: from [176.228.60.248] (port=2512 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h1Yj5-00063S-G3; Wed, 06 Mar 2019 10:44:59 -0500 Date: Wed, 06 Mar 2019 15:45:00 -0000 Message-Id: <83k1hcc8hv.fsf@gnu.org> From: Eli Zaretskii To: Jan Vrany CC: palves@redhat.com, tom@tromey.com, gdb-patches@sourceware.org, gdb@sourceware.org In-reply-to: <825af91304d4a13bb6d599c16d68411fc6f37970.camel@fit.cvut.cz> (message from Jan Vrany on Wed, 06 Mar 2019 15:09:33 +0000) Subject: Re: [PATCH v2 0/2] MI: Add new command -complete 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-03/txt/msg00011.txt.bz2 > 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?