From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3682 invoked by alias); 29 Dec 2014 00:41:31 -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 3667 invoked by uid 89); 29 Dec 2014 00:41:30 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: nm38-vm3.bullet.mail.ir2.yahoo.com Received: from nm38-vm3.bullet.mail.ir2.yahoo.com (HELO nm38-vm3.bullet.mail.ir2.yahoo.com) (212.82.97.153) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 29 Dec 2014 00:41:29 +0000 Received: from [212.82.98.124] by nm38.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 00:41:26 -0000 Received: from [212.82.98.86] by tm17.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 00:41:26 -0000 Received: from [127.0.0.1] by omp1023.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 00:41:26 -0000 Received: by 217.12.9.9; Mon, 29 Dec 2014 00:41:26 +0000 Date: Mon, 29 Dec 2014 00:41:00 -0000 From: Hannes Domani Reply-To: Hannes Domani To: "gdb@sourceware.org" Message-ID: <1776056521.2146797.1419813685734.JavaMail.yahoo@jws11121.mail.ir2.yahoo.com> In-Reply-To: References: Subject: Re: building gdb with TUI support on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00054.txt.bz2 Ofir Cohen schrieb am 0:34 Montag, 29.Dezember 2014: > Hi Hannes, > I followed your advice, but I get compilation errors. > > 1) build pdcurses (with patched tputs) > a. copy term.h/curses.h to /mingw64/include and /mingw64/include/ncurses > b. copy libncurses.a to /mingw64/lib/ > 1) cd gdb-7.8 > 2) mkdir build; cd build > 3) .././configure --enable-tui --with-expat --build=x86_64-w64-mingw32 > 4) make > 5) from DOS: > a) set PATH=c:\msys64\mingw64\bin\;%PATH% > b) d:\gdb-7.8\build\gdb\gdb --tui > > and even tried more to force use the ncurses termcap with: > .././configure --enable-tui --with-curses --with-expat > --build=x86_64-w64-mingw32 > > But on TUI mode, the left/right/up arrows still don't work. > Neither does the CTRL+R (history lookup). So you had some compilation errors which you fixed yourself? > Though when you quit TUI mode (CTRL +x, a), the arrows start functioning, > and then when you go back to TUI mode (same keys combination), they don't work. > > Do the arrow keys work for you when you're in TUI mode? > What do you think is the problem? > > Note: the samples that come with pdcurses work, and the arrow keys > function there. > So it seems to be a gdb per se problem, and not some lack of support > from the library. I just retried CTRL+R and the arrow keys in TUI and normal mode, all works. You are aware that with the arrow keys in TUI mode you move in the source window, and not in the history? But I can't explain why CTRL+R doesn't work for you. Does it work in normal mode? My build uses libiconv as well (to display unicode strings), but I don't think this makes any difference for this case.