This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/2] Reimplement redirection for MI


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]