From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 76617 invoked by alias); 17 Aug 2015 18:47:21 -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 76607 invoked by uid 89); 17 Aug 2015 18:47:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f178.google.com Received: from mail-ig0-f178.google.com (HELO mail-ig0-f178.google.com) (209.85.213.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 17 Aug 2015 18:47:19 +0000 Received: by igui7 with SMTP id i7so64505969igu.1 for ; Mon, 17 Aug 2015 11:47:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=zeBlkgbJ4h2QK2Mag2u6YM9rVoKIjT7Pq3zg3fHrS+A=; b=OKDWAnr1QyNwtgE0e4B9VN5wL3wc6scdsgjDMWQjRVkSeczLndRLBRQQ2OL6CfipgO 6SJVl8twnb9Qae+FL5f6/ff8TzRAwLdj0AQA5dLFc0Uo1vUThpXzJj7LEpa5OepKbPPL xdqrjP2Ke9As4rJy3pOsUI8/33YDypFdVgCgUa8AffBu/hYELS899tSRU+OAX7TQgbg3 fK+++93hm0riXY8/0Ob6BDpGRDLD+b5wBZcCk0fXzc2iAEaEoTCUJfv2t8b+WwJGxWQv rAb6bIGBsfA107BncvbGGCZt0WziPfg7laYZW8E2J5509KOazy1C5C99fJNeRDWpw/fe 3FEQ== X-Gm-Message-State: ALoCoQmdnjVFxTXuZnrGr3aP33yI+JIRwaUZTX6zxXfp/TiM2825Se5ZCnr1oeTgN0XBrNlSC8kl X-Received: by 10.50.97.33 with SMTP id dx1mr16812742igb.1.1439837237129; Mon, 17 Aug 2015 11:47:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.19.130 with HTTP; Mon, 17 Aug 2015 11:46:37 -0700 (PDT) In-Reply-To: <1406125575-28311-1-git-send-email-adrian.sendroiu@freescale.com> References: <1406125575-28311-1-git-send-email-adrian.sendroiu@freescale.com> From: Doug Evans Date: Mon, 17 Aug 2015 18:47:00 -0000 Message-ID: Subject: Re: [PATCH 0/2] Reimplement redirection for MI To: Adrian Sendroiu Cc: gdb-patches Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00438.txt.bz2 On Wed, Jul 23, 2014 at 7:26 AM, Adrian Sendroiu wrote: > The current implementation uses a "saved_buffer" field to save the current > stream when doing a redirection, which will not function correctly in the case > of nested mi_redirect calls. These patches reimplement the redirection using a > stack of streams, in a manner similar with the one in the cli interpreter. > > Adrian Sendroiu (2): > cli/cli-logging.c: don't call ui_out_redirect for MI when disabling > logging > mi-out: Implement mi redirection using a stack. > > gdb/cli/cli-logging.c | 3 +- > gdb/mi/mi-out.c | 75 +++++++++++++++++++++++++++++-------------------- > 2 files changed, 46 insertions(+), 32 deletions(-) Hi. Filing for reference sake: This is pr 18833. https://sourceware.org/bugzilla/show_bug.cgi?id=18833 Also for reference sake: threads for 1/2 and 2/2 are here: https://sourceware.org/ml/gdb-patches/2014-07/msg00574.html https://sourceware.org/ml/gdb-patches/2014-07/msg00573.html 2/2 v2: https://sourceware.org/ml/gdb-patches/2014-07/msg00665.html