From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 49906 invoked by alias); 23 Nov 2019 14:19:28 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 49882 invoked by uid 89); 23 Nov 2019 14:19:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-13.2 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL autolearn=no version=3.3.1 spammy=decent, sk:65d1cd5, INTERP_CONSOLE, sk:tui_on_ X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 23 Nov 2019 14:19:25 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:60038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iYWFv-0007Ce-Hi for gdb@sourceware.org; Sat, 23 Nov 2019 09:19:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44270) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iYWFu-00034S-Fm for gdb@gnu.org; Sat, 23 Nov 2019 09:19:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYWFr-0007BR-JF for gdb@gnu.org; Sat, 23 Nov 2019 09:19:22 -0500 Received: from mailsec107.isp.belgacom.be ([195.238.20.103]:58166) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYWFp-00078l-A1 for gdb@gnu.org; Sat, 23 Nov 2019 09:19:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1574518757; x=1606054757; h=message-id:subject:from:to:date:in-reply-to:references: mime-version:content-transfer-encoding; bh=glMJB+JGOQWQtVUWkrwdPZO5UMTglC7MgXjxFMAv6YU=; b=lOjGYD7XV1A2c11wpfXjlmIG9YcxymXNYhdPW/fXNJOF5t4dxzmlzQ0v mi7oMzypVwrLmsK8mcz7u2qUlVlOSQ==; IronPort-SDR: 9gATexME7sncE3wSfh+vjemLtmL7IFYUBtcea3uZp9NGDbGoqb/IrVMdWCsZi1UXI9hiYHZgzb FjdeuQxZ3kpg7tzVLZ5+myQIk+VhKsnWnTomiQHJeuEs9Zoi3HC2KDMB62y3pmO3L77DQ9oesN HINowtmr0QshgjcQCqIqCOdbJykrarPjbXbFJK+VJGbCZYzmR6j7bZ8gR9a+oe54ziiqWy5QWr fwSVU5Sqr/a/l20/dnx3QU3Zk4VHR4mxDc0nhQQzLehU8LdaDose2K1s0qjjomMvEzIuoaE+bx eak= Received: from 161.68-136-217.adsl-dyn.isp.belgacom.be (HELO md) ([217.136.68.161]) by relay.skynet.be with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 23 Nov 2019 15:19:12 +0100 Message-ID: Subject: Re: using pipe with command From: Philippe Waroquiers To: Christof Warlich , gdb@gnu.org Date: Sat, 23 Nov 2019 14:19:00 -0000 In-Reply-To: <6a8daa7a-f01f-949e-65ea-b047a0c73892@gmx.de> References: <1564352023.1435.1.camel@skynet.be> <6a8daa7a-f01f-949e-65ea-b047a0c73892@gmx.de> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 195.238.20.103 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg00040.txt.bz2 On Mon, 2019-07-29 at 21:32 +0200, Christof Warlich wrote: > Am 29.07.19 um 00:13 schrieb Philippe Waroquiers: > > > I have not (yet) understood how GDB handles stdout > > redirection when tui is enabled, and so I have no idea yet how > > to fix that. > > > > Redirecting to a string or to a file/pipe probably should also > > redirect tui_old_uiout. > > Or possibly tui_on_user_selected_context_changed should do > > some redirections like mi_user_selected_context_changed ? > > > > Suggestions welcome :) > > > > Philippe > Many thanks for looking into this issue. I'm definitely not of much use > w.r.t. some decent suggestions but I'd be glad if I could help otherwise. As far as I can see, this is fixed in recent git master. Not too sure what fixed the problem, maybe a side effect of: 65d1cd5f9cbcbb2df0b187cb7623949c1668728f [gdb] Only force INTERP_CONSOLE ui_out for breakpoint commands in MI mode Philippe