From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25640 invoked by alias); 3 Jun 2003 11:35:45 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 25632 invoked from network); 3 Jun 2003 11:35:44 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 3 Jun 2003 11:35:44 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3p2/8.9.3) with ESMTP id HAA20219; Tue, 3 Jun 2003 07:30:25 -0400 Received: from dash ([192.168.20.28]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id HAA15754; Tue, 3 Jun 2003 07:35:42 -0400 Message-ID: <019401c329c5$a40d5860$2a00a8c0@dash> From: "Kris Warkentin" To: "Andrew Cagney" Cc: "Gdb@Sources.Redhat.Com" References: <027201c326d3$b480a2f0$0202040a@catdog> <3EDA3B0A.10603@redhat.com> Subject: Re: ui-out question Date: Tue, 03 Jun 2003 11:35:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-06/txt/msg00025.txt.bz2 > > 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