diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-11-21 12:13:07 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-12-11 23:07:00 +0000 |
commit | 4fdd372d502d241eb42032844836ae031830237a (patch) | |
tree | d86e8090864f0977093064288205d47bd061d944 | |
parent | 3b2464a8d39b8b787664438253b8fdf7625cac32 (diff) | |
download | gdb-4fdd372d502d241eb42032844836ae031830237a.zip gdb-4fdd372d502d241eb42032844836ae031830237a.tar.gz gdb-4fdd372d502d241eb42032844836ae031830237a.tar.bz2 |
gdb: Extend help text for 'list' command.
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.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/cli/cli-cmds.c | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 960a304..a63d9c5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com> + * cli/cli-cmds.c (_initialize_cli_cmds): Extend help text for + 'list' command. + +2015-12-11 Andrew Burgess <andrew.burgess@embecosm.com> + * 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 a6935bf..4f1a710 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1896,8 +1896,12 @@ Lines can be specified in these ways:\n\ FUNCTION, to list around beginning of that function,\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.")); +With two args, if one is empty, it stands for ten lines away from\n\ +the other arg.\n\ +\n\ +By default, when a single location is given, display ten lines.\n\ +This can be changed using \"set listsize\", and the current value\n\ +can be shown using \"show listsize\".")); add_com_alias ("l", "list", class_files, 1); |