From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 560 invoked by alias); 30 May 2003 17:48:22 -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 522 invoked from network); 30 May 2003 17:48:21 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 30 May 2003 17:48:21 -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 NAA17505 for ; Fri, 30 May 2003 13:43:24 -0400 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id NAA01089 for ; Fri, 30 May 2003 13:48:20 -0400 Message-ID: <027201c326d3$b480a2f0$0202040a@catdog> From: "Kris Warkentin" To: "Gdb@Sources.Redhat.Com" Subject: ui-out question Date: Fri, 30 May 2003 17:48: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.1165 X-SW-Source: 2003-05/txt/msg00417.txt.bz2 I'm seeing that much of the generated text in gdb is using ui-out routines rather that printf_unfiltered, etc. Is this the 'state of the art' that should be used at all times? That is, should I be converting my output routines to use that? The question that arises from that is the whole 'from_tty' argument that gets passed around everywhere. Would it make more sense, if we're using the ui-out routines anyway, to just let them make the decision about whether or not to display stuff? Or am I misreading the purpose of from_tty. If false, does it mean, "Do NO output", or does it mean, "Be less verbose."? 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. cheers, Kris