Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stephane Carrez <stcarrez@nerim.fr>
To: Ton van Overbeek <v-overbeek@cistron.nl>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [PATCH]: TUI, secondary prompts do not work
Date: Sat, 26 Oct 2002 03:51:00 -0000	[thread overview]
Message-ID: <3DBA8FAF.4070801@nerim.fr> (raw)
In-Reply-To: <Pine.LNX.4.33.0210011558390.4999-200000@picard.cistron.nl>

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



  reply	other threads:[~2002-10-26 10:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-01  7:03 Ton van Overbeek
2002-10-26  3:51 ` Stephane Carrez [this message]
2002-10-28 13:49   ` Ton van Overbeek
2002-10-29  8:03     ` Christopher Faylor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DBA8FAF.4070801@nerim.fr \
    --to=stcarrez@nerim.fr \
    --cc=gdb-patches@sources.redhat.com \
    --cc=v-overbeek@cistron.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox