From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23254 invoked by alias); 24 Nov 2019 15:54:36 -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 23246 invoked by uid 89); 24 Nov 2019 15:54:36 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,SPF_FAIL autolearn=no version=3.3.1 spammy=Suggestions, decent, H*r:192.168.0, H*r:gdb@gnu.org 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; Sun, 24 Nov 2019 15:54:35 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iYuDZ-0001qY-6a for gdb@sourceware.org; Sun, 24 Nov 2019 10:54:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38294) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iYuDY-0000o7-JL for gdb@gnu.org; Sun, 24 Nov 2019 10:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iYuDX-0001qM-Jz for gdb@gnu.org; Sun, 24 Nov 2019 10:54:32 -0500 Received: from mout.gmx.net ([212.227.15.18]:36541) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iYuDX-0001pU-B4 for gdb@gnu.org; Sun, 24 Nov 2019 10:54:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1574610868; bh=WMjIzljwvLLf1rnv8g0f5EkPcx+mV7bu6e3ACEsJDXQ=; h=X-UI-Sender-Class:Subject:To:References:From:Date:In-Reply-To; b=T5irclmu9I51Cnh9u1Vvw5+RHuGfTKcS509S5UogMlJ/K/Yb9A/p9vm6UBJhi/q/m yhy5rbtoeSoydBFB4f2HS0/4ebdIRCXn5gSe+PgQATLvHGKEA0Z7QFJGTpiFWkJi6K ch5KZ1RftfrK+NfhUojbhIgXI1PjNpCT7IRaXcNU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.0.72] ([80.132.242.219]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MvsEn-1hirEC3svv-00srsx; Sun, 24 Nov 2019 16:54:27 +0100 Subject: Re: using pipe with command To: Philippe Waroquiers , gdb@gnu.org References: <1564352023.1435.1.camel@skynet.be> <6a8daa7a-f01f-949e-65ea-b047a0c73892@gmx.de> From: Christof Warlich Message-ID: <38232948-ceac-ca4c-4ddd-13f414bea540@gmx.de> Date: Sun, 24 Nov 2019 15:54:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.18 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-SW-Source: 2019-11/txt/msg00041.txt.bz2 Am 23.11.19 um 15:19 schrieb Philippe Waroquiers: > 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. Thanks for the update. > 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 Yes, I can confirm your guess: The issue remains to be seen until commit 65d1cd5f9cbcbb2df0b187cb7623949c1668728 and vanishes with that very commit :-). Cheers, Chris