This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: ui-out question
- From: "Kris Warkentin" <kewarken at qnx dot com>
- To: "Andrew Cagney" <ac131313 at redhat dot com>
- Cc: "Gdb at Sources dot Redhat dot Com" <gdb at sources dot redhat dot com>
- Date: Tue, 3 Jun 2003 07:45:32 -0400
- Subject: Re: ui-out question
- References: <027201c326d3$b480a2f0$0202040a@catdog> <3EDA3B0A.10603@redhat.com>
> > I'm thinking that the from_tty might be useful for functions that want
to
> > silently call other functions regardless of the overall setting.
Something
> > like ui_out_push_output_state(0), ui_out_pop_output_state() would work
for
> > temporarily shutting down output in this case which I believe is
somewhat
> > rare.
>
> It could. Do you have more details of the problem at hand.
It's not that big of a problem but it's inconvenient. I'm monkeying around
with our target_create_inferior hook so that it will load a different
executable (set by the user) when the run command is issued. I'd like to
report that to the user along the lines of:
Starting program: /cygdrive/k/test/float.x86
Remote: /home/kewarken/61/test/float.x86
The only problem is that targ_create_inf doesn't take a from_tty argument so
my only option is just to print it blindly. I thought it would be nice if
the ui_out functions would automatically censor themselves if need be.
cheers,
Kris