This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: show inferior-tty
On Sun, Jul 10, 2005 at 11:32:29PM -0400, Bob Rossi wrote:
> > Incidentally, I don't see the need for this MI command or -inferior-tty-set
> > because:
> >
> > (gdb)
> > -gdb-set inferior-tty /dev/pts/1
> > ^done
> > (gdb)
> > -gdb-show inferior-tty
> > ^done,value="/dev/pts/1"
> > (gdb)
>
> I was told that it would be a good idea not to bring/use the set/show
> variables in GDB/MI. Although, I could have misunderstood the advice
> given to me.
Yes. I asked Bob to do this. The set of values accessible by -gdb-set
is not documented in the MI section of the manual; we generally treat
them as part of the CLI. The example for -gdb-set shows $foo, which is
a convenience or "internal" variable, not a setting [although the
example for -gdb-show does show annotate...].
I don't think incorporating the values controllable by -gdb-set in a
stable interface is a good idea for compatibility.
--
Daniel Jacobowitz
CodeSourcery, LLC