From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8296 invoked by alias); 26 Dec 2014 00:13:42 -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 8283 invoked by uid 89); 26 Dec 2014 00:13:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f50.google.com Received: from mail-wg0-f50.google.com (HELO mail-wg0-f50.google.com) (74.125.82.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Fri, 26 Dec 2014 00:13:39 +0000 Received: by mail-wg0-f50.google.com with SMTP id a1so13743474wgh.9 for ; Thu, 25 Dec 2014 16:13:36 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.180.104.9 with SMTP id ga9mr65735703wib.9.1419552816297; Thu, 25 Dec 2014 16:13:36 -0800 (PST) Received: by 10.194.165.106 with HTTP; Thu, 25 Dec 2014 16:13:36 -0800 (PST) Date: Fri, 26 Dec 2014 00:13:00 -0000 Message-ID: Subject: building gdb with TUI support on Windows From: Ofir Cohen To: gdb@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-12/txt/msg00038.txt.bz2 Hi guys, I'm trying to build gdb from source with TUI support on Windows. I'm using msys2 with MinGWx64. It seems non-trivial, and is accompanied by undesired behavior. I'm addressing this mailing list after a long period of trying by myself and because I couldn't find a decent place where this could be solved. I manage to build by commenting out tputs() implementation in gdb/windows-termcap.c (so the ncurses tputs is used instead). However, when I run: "gdb --tui" from msys2 I get a "TUI mode not supported". When I run it from DOS (with mingw64 paths in the PATH), it runs but I cannot move the text cursor to left arrow and right arrow), and even more annoying, I can't use the CTRL+R (history lookup). I saw some post about gdb with TUI support on Windows: http://migeel.sk/blog/2009/04/15/compiling-gdb-under-windows/ But it didn't help. Do you have any idea how to get it done right? P.S. this is how I build export FLAGS="--enable-tui=no --with-expat --disable-gdbserver --with-sysroot=\"remote:\" --build=x86_64-w64-mingw32" ./configure $FLAGS make -j 8 Your help is very much appreciated =]. Thanks, Ofir Cohen