From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51931 invoked by alias); 6 Mar 2019 17:36:03 -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 51897 invoked by uid 89); 6 Mar 2019 17:36:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_00,DNS_FROM_AHBL_RHSBL,SPF_PASS,TIME_LIMIT_EXCEEDED,T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.1 spammy=communicates, H*f:sk:0834b13, screen, customization 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 17:35:52 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1Zzw-0006c7-9z; Wed, 06 Mar 2019 12:06:28 -0500 Received: from [176.228.60.248] (port=3642 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1h1Zzv-0000z4-QD; Wed, 06 Mar 2019 12:06:28 -0500 Date: Wed, 06 Mar 2019 17:36:00 -0000 Message-Id: <83bm2oc4q3.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: <0834b1321a1fc8fe6448d106d11a5d7be9e23933.camel@fit.cvut.cz> (message from Jan Vrany on Wed, 06 Mar 2019 16:36:39 +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> <83k1hcc8hv.fsf@gnu.org> <0834b1321a1fc8fe6448d106d11a5d7be9e23933.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/msg00100.txt.bz2 > From: Jan Vrany > Cc: palves@redhat.com, tom@tromey.com, gdb-patches@sourceware.org, > gdb@sourceware.org > Date: Wed, 06 Mar 2019 16:36:39 +0000 > > > > 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 But this doesn't create any pipes to communicate with GDB. Instead, this communicates via the default stdin/stdout connected to the console, and GDB should recognize it as such. So all the problems you describe should not happen, and indeed don't happen for me when I invoke GDB from cmd.exe. Do you perhaps have a ~/.inputrc file, or some other local customization, which might affect how Readline works? because what you describe surely sounds like broken Readline.