public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Reimplement redirection for MI
@ 2014-07-23 14:26 Adrian Sendroiu
  2014-07-23 14:26 ` [PATCH 2/2] mi-out: Implement mi redirection using a stack Adrian Sendroiu
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Adrian Sendroiu @ 2014-07-23 14:26 UTC (permalink / raw)
  To: gdb-patches; +Cc: Adrian Sendroiu

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

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2015-08-17 18:47 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 14:26 [PATCH 0/2] Reimplement redirection for MI Adrian Sendroiu
2014-07-23 14:26 ` [PATCH 2/2] mi-out: Implement mi redirection using a stack Adrian Sendroiu
2014-07-24 20:34   ` Tom Tromey
2014-07-25 11:43     ` [PATCH v2 " Adrian Sendroiu
2014-07-29 15:16       ` Pedro Alves
2014-07-30  8:38         ` Adrian Sendroiu
2014-07-30 12:05           ` Pedro Alves
2014-07-31 16:23             ` Adrian Sendroiu
2014-07-31 17:11               ` Pedro Alves
2014-08-05 13:54                 ` Adrian Sendroiu
2014-08-28 11:33                   ` Adrian Sendroiu
2014-09-05 16:06                   ` Pedro Alves
2014-09-07 15:45                     ` Adrian Sendroiu
2014-09-08 13:19                   ` Pedro Alves
2014-09-08 18:59                     ` Sergio Durigan Junior
2014-09-09 14:03                     ` Adrian Sendroiu
2014-09-26  9:25                       ` Adrian Sendroiu
2014-09-26 12:51                         ` Pedro Alves
2014-07-23 14:37 ` [PATCH 1/2] cli/cli-logging.c: don't call ui_out_redirect for MI when disabling logging Adrian Sendroiu
2014-07-24 18:19   ` Tom Tromey
2015-08-17 18:47 ` [PATCH 0/2] Reimplement redirection for MI Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).