From: Bruno Larsen Date: Tue, 20 Jun 2023 14:57:38 +0000 (+0200) Subject: gdb/doc: document '+' argument for 'list' command X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4e5901bb1681d1d36e49697e680fc98e7a10442;p=binutils-gdb.git gdb/doc: document '+' argument for 'list' command The command 'list' has accepted the argument '+' for many years already, but this option wasn't documented either in the texinfo docs or in the help text for the command. This commit documents it. Reviewed-By: Eli Zaretskii Approved-By: Tom Tromey --- diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index 3a1902a0c82..0fa24fd3df9 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -2806,6 +2806,7 @@ and send its output to SHELL_COMMAND.")); List specified function or line.\n\ With no argument, lists ten more lines after or around previous listing.\n\ \"list .\" lists ten lines arond where the inferior is stopped.\n\ +\"list +\" lists the ten lines following a previous ten-line listing.\n\ \"list -\" lists the ten lines before a previous ten-line listing.\n\ One argument specifies a line, and ten lines are listed around that line.\n\ Two arguments with comma between specify starting and ending lines to list.\n\ diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 20c9b24400d..cd86da50f46 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -9148,6 +9148,9 @@ Stack}), this prints lines centered around that line. If no @code{list} command has been used and no solitary line was printed, it prints the lines around the function @code{main}. +@item list + +Same as using with no arguments. + @item list - Print lines just before the lines last printed.