public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* set prompt & MI
@ 2003-04-11 11:56 Bob Rossi
  2003-04-11 14:32 ` Andrew Cagney
  0 siblings, 1 reply; 2+ messages in thread
From: Bob Rossi @ 2003-04-11 11:56 UTC (permalink / raw)
  To: gdb

Does gdb plan on providing the 'set prompt' command with MI?

example below.

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


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) "

Bob Rossi

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: set prompt & MI
  2003-04-11 11:56 set prompt & MI Bob Rossi
@ 2003-04-11 14:32 ` Andrew Cagney
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cagney @ 2003-04-11 14:32 UTC (permalink / raw)
  To: Bob Rossi; +Cc: gdb

> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-11 14:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-11 11:56 set prompt & MI Bob Rossi
2003-04-11 14:32 ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).