[PATCH 0/2] Reimplement redirection for MI

Adrian Sendroiu
2014-07-23T14:26:36Z

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(-)

--
1.7.9.5