Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@redhat.com>
To: Bob Rossi <bob_rossi@cox.net>
Cc: gdb@sources.redhat.com
Subject: Re: set prompt & MI
Date: Fri, 11 Apr 2003 14:32:00 -0000	[thread overview]
Message-ID: <3E96D1E9.7060700@redhat.com> (raw)
In-Reply-To: <20030411115633.GA1783@white>

> Does gdb plan on providing the 'set prompt' command with MI?
> 
> example below.
> 
> (gdb) 
> -interpreter-exec console "set prompt (foo) "
> ^done
> (gdb) 

The "(gdb)\n" in the above is the MI output terminator:
http://sources.redhat.com/gdb/current/onlinedocs/gdb_25.html#SEC213
and not CLI prompt.  The CLI's prompt will have been changed, it just 
isn't possible to directly see it.  Last time this came it, it was 
suggested that the MI "(gdb)\n" be replaced with "(mi)\n".

> Also, I kind of think that the prompt should be separated from what the
> user/front end sees. Maybe do prompt= to tell the front end that the prompt 
> has been reached and what it is. That way front ends are not looking for 
> the string "(gdb) ".
> 
> ^done,prompt="(gdb) "

Two possabilities, the -interpreter-exec console output include the CLI 
prompt vis:

(gdb)
-interpreter-exec console "set prompt (foo) "
~"(foo) "
^done
(gdb)

or, MI notify the GUI of changes to internal variables vis:

(gdb)
-interpreter-exec console "set prompt (foo) "
*set,prompt="(foo) "
^done
(gdb)

or, both.  I'm not sure how robust or feasible a generic "*set" event is 
though.

Andrew



      reply	other threads:[~2003-04-11 14:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-11 11:56 Bob Rossi
2003-04-11 14:32 ` Andrew Cagney [this message]

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=3E96D1E9.7060700@redhat.com \
    --to=ac131313@redhat.com \
    --cc=bob_rossi@cox.net \
    --cc=gdb@sources.redhat.com \
    /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