From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 123711 invoked by alias); 25 Sep 2019 08:36:49 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 123694 invoked by uid 89); 25 Sep 2019 08:36:48 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,UNSUBSCRIBE_BODY autolearn=no version=3.3.1 spammy=explanation, screen X-HELO: mail-wr1-f65.google.com Received: from mail-wr1-f65.google.com (HELO mail-wr1-f65.google.com) (209.85.221.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 25 Sep 2019 08:36:46 +0000 Received: by mail-wr1-f65.google.com with SMTP id r3so5543429wrj.6 for ; Wed, 25 Sep 2019 01:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embecosm.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=HXfKI5tUCEnNuU5XBAqiYvnP3mVcUu7iV7EUTYPOQQI=; b=MqzjCv6RQeJAfVO/zczWpt2sF4jWRhJUjgIBW/gG/GWuLMeqldCOKZuPq+aj8UcThd BTeHYO8mX8UqFnRpC2H5UvE1c34xeRRFhbNy83jlO/7/lJ4zigYYOQB3NqZUrVLt2h9L hpBH8vmdjE+619pTO8kn9RjPyKyr5WPFeCeATNKG0ZHfnHwLaTx9hg53BLaj77qHANi0 eGc7/MmX1EjIdT7AS6V7cSgfL/VWMX0D5yqQa6KFKR03rtPIPHu7see0Jfi7+tUIQRru z2wctrQI75ysPnx8P7OacuiIL2fn9LFjW7SNE0tOWxEPzvxTpr+vQZnl6uxad0Rg43k1 60rA== Return-Path: Received: from localhost (host86-128-12-122.range86-128.btcentralplus.com. [86.128.12.122]) by smtp.gmail.com with ESMTPSA id g185sm5059494wme.10.2019.09.25.01.36.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Sep 2019 01:36:44 -0700 (PDT) Date: Wed, 25 Sep 2019 08:36:00 -0000 From: Andrew Burgess To: Tom de Vries Cc: gdb-patches@sourceware.org, Tom Tromey Subject: Re: [PATCH][gdb] Make INTERP_TUI's default ui_out the INTERP_CONSOLE ui_out Message-ID: <20190925083642.GO4962@embecosm.com> References: <20190905095815.GA27717@delia> <20190924173122.GN4962@embecosm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Fortune: we need to split main into"core" and "wtf-uses-this" X-Editor: GNU Emacs [ http://www.gnu.org/software/emacs ] User-Agent: Mutt/1.9.2 (2017-12-15) X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00480.txt.bz2 * Tom de Vries [2019-09-25 01:20:22 +0200]: > On 24-09-19 19:31, Andrew Burgess wrote: > > With this patch applied I see the fixed behaviour you describe at the > > CLI, however, if I do: > > > > (gdb) define mybt > > bt > > end > > (gdb) start > > (gdb) set logging redirect on > > (gdb) tui enable > > (gdb) set logging on > > (gdb) mybt > > > > The I see output appear on both the console and in the log file. > > I can't reproduce this. Are you sure you removed the gdb.txt file before > starting gdb? You're absolutely right, nothing goes to the log for `mybt`, this was a silly mistake on my side. Apologies. However... With tui enabled and logging on and redirect on, the 'bt' __does__ write to the log, while 'mybt' writes to the screen. This is the same bug you're fixing for non-tui mode, correct? Any solution should ideally address both cases, or at least be accompanied with an explanation for why these problems are distinct and should be solved separately. Thanks, Andrew > > Thanks, > - Tom