From patchwork Wed Nov 25 00:34:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 9818 Received: (qmail 87193 invoked by alias); 25 Nov 2015 00:34:55 -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 87057 invoked by uid 89); 25 Nov 2015 00:34:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-wm0-f48.google.com Received: from mail-wm0-f48.google.com (HELO mail-wm0-f48.google.com) (74.125.82.48) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Wed, 25 Nov 2015 00:34:50 +0000 Received: by wmvv187 with SMTP id v187so234388857wmv.1 for ; Tue, 24 Nov 2015 16:34:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=6LKnvS+J095anEoOFReTWq8+MWPIM0yukT5mqGdxrMA=; b=LPJ52BbM8wN/STr3exVXMjcnd15IE/da46FyqevpNNQ17dpUJB3J8nALyzpiZAqnIv kYRqqvv+kRWMWb8Wm4oH0lSijdMFz790+aWo76mBOLnPyDnNqy7K0+6zPbkrmJf8Z9+0 shGCEp0LiNYYqe3jl9zdj4YuOJ9eL1qX6sSjaXBcDR9KyVGGyUe9ROxPJueLj1MP5PCD n8yqL0Yo9yun9we8FiWNdU43BympzDlzDZVp7Ayj/XzdakyOAOabvP/BtU5LgYkajN2+ PACAaWeBic2nKwPcRDYfiYvInMOfx7OJM88VJxQg66SaRDEs++VEKoOV2FY8nSMKyID5 QJAw== X-Gm-Message-State: ALoCoQnmbgms4vc2XJeGShTNG39d5JBXsmhuLwg/Dknb6SVaLlQGuIuK83Ma6m6+r10Df+kRcsJT X-Received: by 10.194.9.169 with SMTP id a9mr7212010wjb.60.1448411687633; Tue, 24 Nov 2015 16:34:47 -0800 (PST) Received: from localhost (host86-138-95-213.range86-138.btcentralplus.com. [86.138.95.213]) by smtp.gmail.com with ESMTPSA id cl5sm20545039wjc.29.2015.11.24.16.34.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Nov 2015 16:34:47 -0800 (PST) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 7/7] gdb: Extend help text for 'list' command. Date: Wed, 25 Nov 2015 00:34:32 +0000 Message-Id: In-Reply-To: References: In-Reply-To: References: X-IsSubscribed: yes Reference the 'listsize' setting in the help text for the 'list' command to help users find this setting. gdb/ChangeLog: * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for 'list' command. --- gdb/ChangeLog | 5 +++++ gdb/cli/cli-cmds.c | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 278acb5..d9e91c2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-11-24 Andrew Burgess + * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for + 'list' command. + +2015-11-24 Andrew Burgess + * cli/cli-cmds.c (list_command): Add an error when trying to use '-' to scan read off the start of the source file. diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 5e7ef0a..0b3b091 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1901,7 +1901,11 @@ Lines can be specified in these ways:\n\ FILE:FUNCTION, to distinguish among like-named static functions.\n\ *ADDRESS, to list around the line containing that address.\n\ With two args if one is empty it stands for ten lines away from \ -the other arg.")); +the other arg.\n\ +\n\ +By default when a single location is given list displays ten lines,\n\ +this can be changed using \"set listsize\", and the current value\n\ +shown by using \"show listsize\".")); add_com_alias ("l", "list", class_files, 1);