From patchwork Sat Mar 21 02:34:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cleber Rosa X-Patchwork-Id: 5745 Received: (qmail 46754 invoked by alias); 21 Mar 2015 02:35:18 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 46704 invoked by uid 89); 21 Mar 2015 02:35:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, SPF_HELO_PASS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Sat, 21 Mar 2015 02:35:14 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id 962BE8E6FF for ; Sat, 21 Mar 2015 02:35:13 +0000 (UTC) Received: from x220.homelab.tallawa.org.com ([10.3.112.4]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t2L2YppN029072; Fri, 20 Mar 2015 22:35:06 -0400 From: Cleber Rosa To: gdb-patches@sourceware.org Cc: crosa@redhat.com, areis@redhat.com Subject: [PATCH 2/4] GDBServer: give more complete usage information Date: Fri, 20 Mar 2015 23:34:23 -0300 Message-Id: <1426905265-8495-3-git-send-email-crosa@redhat.com> In-Reply-To: <1426905265-8495-1-git-send-email-crosa@redhat.com> References: <1426905265-8495-1-git-send-email-crosa@redhat.com> --attach/--multi are currently only mentioned on the usage info first lines, the meaning of PROG is completely absent and COMM/PID text is unstructured. The words and structure chosen may not be perfect but IMHO this is an improvement. gdb/gdbserver/ChangeLog: 2015-03-20 Cleber Rosa * server.c (gdbserver_usage): Reorganized the usage message. --- gdb/gdbserver/server.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 618e457..9dec972 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -2997,10 +2997,18 @@ gdbserver_usage (FILE *stream) "\tgdbserver [OPTIONS] --attach COMM PID\n" "\tgdbserver [OPTIONS] --multi COMM\n" "\n" - "COMM may either be a tty device (for serial debugging), or \n" - "HOST:PORT to listen for a TCP connection.\n" + "Start mode options:\n" + " --attach Attach to a given process\n" + " --multi Start server without a specific program, and\n" + " only quit when explicitly commanded\n" "\n" - "Options:\n" + " COMM tty device (for serial debugging) or HOST:PORT\n" + " to listen for a TCP connection\n" + " PROG Path to program executable\n" + " PID Process ID to attach to\n" + " ARGS Arguments to be passed to debugged program\n" + "\n" + "Other options:\n" " --debug Enable general debugging output.\n" " --debug-format=opt1[,opt2,...]\n" " Specify extra content in debugging output.\n"