From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23617 invoked by alias); 29 Dec 2014 16:20:07 -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 23606 invoked by uid 89); 29 Dec 2014 16:20:06 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: nm24-vm2.bullet.mail.ir2.yahoo.com Received: from nm24-vm2.bullet.mail.ir2.yahoo.com (HELO nm24-vm2.bullet.mail.ir2.yahoo.com) (212.82.97.26) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 29 Dec 2014 16:20:05 +0000 Received: from [212.82.98.51] by nm24.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 16:20:02 -0000 Received: from [212.82.98.108] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 16:20:02 -0000 Received: from [127.0.0.1] by omp1045.mail.ir2.yahoo.com with NNFMP; 29 Dec 2014 16:20:02 -0000 Received: by 217.12.8.245; Mon, 29 Dec 2014 16:20:02 +0000 Date: Mon, 29 Dec 2014 16:20:00 -0000 From: Hannes Domani Reply-To: Hannes Domani To: "gdb@sourceware.org" Message-ID: <286245854.2393939.1419870001817.JavaMail.yahoo@jws11133.mail.ir2.yahoo.com> In-Reply-To: <946370725.2390231.1419869855237.JavaMail.yahoo@jws11110.mail.ir2.yahoo.com> References: <946370725.2390231.1419869855237.JavaMail.yahoo@jws11110.mail.ir2.yahoo.com> 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/msg00059.txt.bz2 Ofir Cohen schrieb am 16:28 Montag, 29.Dezember 2014: > Hi Hannes, > Thanks again for the reply =]. > > > You are aware that with the arrow keys in TUI mode you move in the source > window, and not in the history? > > Yes, ofc, I'm therefore moving the window focus from source to the > interpreter's CLI window (Ctrl+x, o), > and only then issue the arrow up/down/left/right commands. > Unfortunately, it doesn't work, I have to get out of TUI mode (Ctrl+x, > a), to make the arrow keys respond. > > On Linux, when you do the above mentioned steps, it works flawlessly. > > A shallow investigation, debugging of gdb with gdb, showed that > wgetch() function (deep in the call-stack, invoked indirectly by > stdin_event_handler), is blocking and doesn't return when the > arrow-keys are issued. > > When gdb is not in TUI mode, however, getch() is called instead, > returns promptly and issues > the associated dispatch handler. I forgot you could move the focus to the CLI window. You're right, the arrow keys don't work there. I'm always using CTRL+P/N/F/B instead of the arrow keys, regardless of if I'm in TUI mode or not. > I'm interested in knowing how does it work for you, > and/or comparing the Linux flow (step-by-step debugging of gdb) with > the Windows's one. Except that CTRL+C might not work, I don't really have any problems.