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.