From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30504 invoked by alias); 28 Dec 2014 17:09:46 -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 30491 invoked by uid 89); 28 Dec 2014 17:09:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: nm20-vm5.bullet.mail.ir2.yahoo.com Received: from nm20-vm5.bullet.mail.ir2.yahoo.com (HELO nm20-vm5.bullet.mail.ir2.yahoo.com) (212.82.96.247) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sun, 28 Dec 2014 17:09:44 +0000 Received: from [212.82.98.59] by nm20.bullet.mail.ir2.yahoo.com with NNFMP; 28 Dec 2014 17:09:40 -0000 Received: from [212.82.98.79] by tm12.bullet.mail.ir2.yahoo.com with NNFMP; 28 Dec 2014 17:09:40 -0000 Received: from [127.0.0.1] by omp1016.mail.ir2.yahoo.com with NNFMP; 28 Dec 2014 17:09:40 -0000 Received: by 217.12.9.11; Sun, 28 Dec 2014 17:09:40 +0000 Date: Sun, 28 Dec 2014 17:09:00 -0000 From: Hannes Domani Reply-To: Hannes Domani To: "gdb@sourceware.org" Message-ID: <1750170338.2037036.1419786533157.JavaMail.yahoo@jws11163.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/msg00050.txt.bz2 > Ofir Cohen schrieb am 17:41 Sonntag, 28.Dezember 2014: > Hi Hannes, > Thanks a lot for the reply. > > It seems like one has to hack his own way through the code, > and concrete steps / further description will be very helpful in my case. > > > I only had to change tputs() a bit. > Could you please describe what changes are required there? > I just commented it out, but I'm not sure that's enough. I just changed it so that it actually does something: --- a/pdcurses/terminfo.c +++ b/pdcurses/terminfo.c @@ -211,5 +211,8 @@ int tputs(const char *str, int affcnt, int (*putfunc)(int)) { PDC_LOG(("tputs() - called\n")); - return ERR; + while (*str) + putfunc(*str++); + + return 0; } > > Since then I switched to pdcurses, it works much better (+faster) on windows. > What environment and configuration did you use for building it? > Do you just: > ./configure --prefix=/mingw > make > make install > > and build gdb (in my case it's msys/msys2)? > > Or you needed to hack a little bit more (since PDCurses will not be > found by default by configure) > by adding for example some symbolic links from pdcurses libraries to ncurses? I used the win32/gccwin32.mak: make -f win32/gccwin32.mak pdcurses.a After renaming pdcurses.a to libcurses.a, I moved curses.h/term.h/libcurses.a where gdb-configure needed it. I think that's all.