From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58892 invoked by alias); 31 Mar 2015 16:18:53 -0000 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 Received: (qmail 58882 invoked by uid 89); 31 Mar 2015 16:18:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL autolearn=no version=3.3.2 X-HELO: mtaout26.012.net.il Received: from mtaout26.012.net.il (HELO mtaout26.012.net.il) (80.179.55.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 31 Mar 2015 16:18:51 +0000 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NM3003003MV7S00@mtaout26.012.net.il> for gdb-patches@sourceware.org; Tue, 31 Mar 2015 19:19:54 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NM300OYQ4166C40@mtaout26.012.net.il>; Tue, 31 Mar 2015 19:19:54 +0300 (IDT) Date: Tue, 31 Mar 2015 16:18:00 -0000 From: Eli Zaretskii Subject: Re: [PATCH v3 2/3] GDBServer: introduce --server-output command line option In-reply-to: <1427816947-25750-3-git-send-email-crosa@redhat.com> To: Cleber Rosa Cc: gdb-patches@sourceware.org, areis@redhat.com, crosa@redhat.com Reply-to: Eli Zaretskii Message-id: <83y4mdrvhe.fsf@gnu.org> References: <1427816947-25750-1-git-send-email-crosa@redhat.com> <1427816947-25750-3-git-send-email-crosa@redhat.com> X-IsSubscribed: yes X-SW-Source: 2015-03/txt/msg01055.txt.bz2 > From: Cleber Rosa > Cc: areis@redhat.com, Cleber Rosa > Date: Tue, 31 Mar 2015 12:49:06 -0300 > > This command line option will redirect all of the gdbserver's own > output (always sent to stderr) to a separate file. This feature makes > it possible to distinguish between the inferior process stderr and > gdbserver's own stderr. Example use case: > > $ gdbserver --server-output=log :2222 bin >bin.out 2>bin.err > > Server output will be sent to file named "log", and the inferior > output and error messages will be on files "bin.out" and "bin.err", > respectively. > > gdb/Changelog: > 2015-03-31 Cleber Rosa > > * NEWS: New feature in the GDBserver: --server-output. > > gdb/doc/ChangeLog: > 2015-03-31 Cleber Rosa > > * gdb.texinfo (info): Added section on command line and monitor > commands. > (gdbserver man): Added section on new command line option. > > gdb/gdbserver/ChangeLog: > 2015-03-31 Cleber Rosa > > * server.c (set_server_output): New utility function. > (gdbserver_usage): Add help on '--server-output' option. > (captured_main): Add command line option parsing for > '--server-output'. OK for the documentation parts. Thanks.