This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/2] Reimplement redirection for MI
- From: Doug Evans <dje at google dot com>
- To: Adrian Sendroiu <adrian dot sendroiu at freescale dot com>
- Cc: gdb-patches <gdb-patches at sourceware dot org>
- Date: Mon, 17 Aug 2015 11:46:37 -0700
- Subject: Re: [PATCH 0/2] Reimplement redirection for MI
- Authentication-results: sourceware.org; auth=none
- References: <1406125575-28311-1-git-send-email-adrian dot sendroiu at freescale dot com>
On Wed, Jul 23, 2014 at 7:26 AM, Adrian Sendroiu
<adrian.sendroiu@freescale.com> 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