This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2 0/2] MI: Add new command -complete
- From: Jan Vrany <jan dot vrany at fit dot cvut dot cz>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: palves at redhat dot com, tom at tromey dot com, gdb-patches at sourceware dot org, gdb at sourceware dot org
- Date: 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> <f4bd9fd7-ff54-3ac2-e6e3-30a67e0233d8@redhat.com> <08b77764c3236cf652d981b3df1e78c185f6673e.camel@fit.cvut.cz> <b4f7d9f8-3b11-0050-8be0-1388cf37b113@redhat.com> <825af91304d4a13bb6d599c16d68411fc6f37970.camel@fit.cvut.cz> <83k1hcc8hv.fsf@gnu.org>
On Wed, 2019-03-06 at 17:45 +0200, Eli Zaretskii wrote:
> > From: Jan Vrany <jan.vrany@fit.cvut.cz>
> > Cc: gdb-patches@sourceware.org, "gdb@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