This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/2] Reimplement redirection for MI
- From: Adrian Sendroiu <adrian dot sendroiu at freescale dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Adrian Sendroiu <adrian dot sendroiu at freescale dot com>
- Date: Wed, 23 Jul 2014 17:26:13 +0300
- Subject: [PATCH 0/2] Reimplement redirection for MI
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=fail (sender IP is 192.88.168.50) smtp dot mailfrom=adrian dot sendroiu at freescale dot com;
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