From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31351 invoked by alias); 26 Oct 2002 10:51:09 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 31240 invoked from network); 26 Oct 2002 10:51:05 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.82) by sources.redhat.com with SMTP; 26 Oct 2002 10:51:05 -0000 Received: from nerim.fr (stcarrez.net1.nerim.net [62.212.108.40]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 6277162E51; Sat, 26 Oct 2002 12:51:03 +0200 (CEST) Message-ID: <3DBA8FAF.4070801@nerim.fr> Date: Sat, 26 Oct 2002 03:51:00 -0000 From: Stephane Carrez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4.1) Gecko/20020508 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 To: Ton van Overbeek Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH]: TUI, secondary prompts do not work References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00562.txt.bz2 Hi Ton, Ton van Overbeek wrote: > I have been following the TUI developments on the gdb-5.3 branch. > My interest is in using TUI for a cross debugger (m68k-palmos, see > http://prc-tools.sourceforge.net). > I found some problems with the current state of the TUI. > > This post is concerned with secondary prompts. > When tui is active, secondary prompts do not work. > Try to do a command with many lines of output, i.e. 'show copying'. > You will not get the '---Type to continue, or q to quit---' > prompt, but just the normal (gdb) prompt. > Same is true when prompting for commands in the 'commands' command > for commands to be executed at a breakpoint. > Tui relies on the prompt stack. However this stack is not used > for these cases. I 'fixed' it by adding a push_prompt/pop_prompt > pair around the readline() call in gdb_readline_wrapper. > Also had to fix the pop_prompt logic for the changing annotation level > case as a consequence. > > I do not know if this has repercussions in other areas of gdb, so I > happily accept criticisms or proposals to fix this in a better way. > > Here is the Changelog entry for my fix (and patch attached). > Diff is against the branch snapshot from today (2002-10-01). > Thanks for the report. It was a bug in the TUI and not in the way gdb manages prompts. See http://sources.redhat.com/ml/gdb-patches/2002-10/msg00561.html Stephane ----------------------------------------------------------------------- Home Office E-mail: stcarrez@nerim.fr Stephane.Carrez@solsoft.fr WWW: http://stcarrez.nerim.net http://www.solsoft.com Free the Software! Visual Security Policy Management