Re: [PATCH 0/2] Reimplement redirection for MI

Doug Evans
2015-08-17T18:47:21Z

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: