From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18790 invoked by alias); 3 Sep 2010 15:33:51 -0000 Received: (qmail 18768 invoked by uid 22791); 3 Sep 2010 15:33:49 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 03 Sep 2010 15:33:27 +0000 Received: (qmail 18058 invoked from network); 3 Sep 2010 15:33:25 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 3 Sep 2010 15:33:25 -0000 From: Pedro Alves To: Jan Kratochvil Subject: Re: [patch] Fix nesting of ui_out_redirect Date: Fri, 03 Sep 2010 15:40:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.33-29-realtime; KDE/4.4.2; x86_64; ; ) Cc: gdb-patches@sourceware.org, pebolle@tiscali.nl References: <20100903112139.GA20855@host1.dyn.jankratochvil.net> <201009031404.23364.pedro@codesourcery.com> <20100903152332.GA30657@host1.dyn.jankratochvil.net> In-Reply-To: <20100903152332.GA30657@host1.dyn.jankratochvil.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201009031633.23542.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-09/txt/msg00126.txt.bz2 On Friday 03 September 2010 16:23:32, Jan Kratochvil wrote: > gdb/ > 2010-09-03 Jan Kratochvil > > * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL. > * cli-out.c: Include vec.h. > (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New > variable stream, initialize it, use it. > (cli_redirect): New function comment. Replace the stream and > original_stream fields by the new streams field. Remove the > original_stream != NULL conditional, assert error on NULL instead. > (out_field_fmt, field_separator): New variable stream, initialize it, use it. > (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and > original_stream fields by the new streams field. > (cli_out_set_stream): Replace the stream field by the new streams > field. > * cli-out.h: Include vec.h. > (ui_filep): New typedef, call DEF_VEC_P for it. > (struct cli_ui_out_data): Replace the stream and original_stream > fields by the new streams field. > * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with > NULL first. Extend the comment. > (handle_redirections): Call ui_out_redirect with output. > * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect > calls outside of the TRY_CATCH block. > > gdb/testsuite/ > 2010-09-03 Jan Kratochvil > > * gdb.base/ui-redirect.exp: New file. Okay. -- Pedro Alves