[PATCH]: TUI, secondary prompts do not work

Stephane Carrez stcarrez@nerim.fr
Sat Oct 26 03:51:00 GMT 2002


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 <return> to continue, or q <return> 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




More information about the Gdb-patches mailing list