gdb/cli: fixes to newly added "list ." command
authorGuinevere Larsen <blarsen@redhat.com>
Tue, 19 Sep 2023 12:06:49 +0000 (14:06 +0200)
committerGuinevere Larsen <blarsen@redhat.com>
Tue, 19 Sep 2023 12:06:49 +0000 (14:06 +0200)
commit12f567bcb640285b0afab74e2ac8d471a175722d
tree1a9dd294547fd00c16f8d307a9dd141f2154281b
parent5d69d9edc4fa357ab20a3eba6dd072f176505919
gdb/cli: fixes to newly added "list ." command

After the series that added this command was pushed, Pedro mentioned
that the news description could easily be misinterpreted, as well as
some code and test improvements that should be made.

While fixing the test, I realized that code repetition wasn't
happening as it should, so I took care of that too.

Approved-By: Andrew Burgess <aburgess@redhat.com>
Reviewed-By: Eli Zaretskii <eliz@gnu.org>
gdb/NEWS
gdb/cli/cli-cmds.c
gdb/doc/gdb.texinfo
gdb/testsuite/gdb.base/list.exp