aboutsummaryrefslogtreecommitdiff
path: root/gdb/NEWS
diff options
context:
space:
mode:
authorBruno Larsen <blarsen@redhat.com>2023-06-15 12:14:22 +0200
committerBruno Larsen <blarsen@redhat.com>2023-07-14 10:58:17 +0200
commit3e3a1874fcec34bcf51b4baf4be09aebab561bff (patch)
tree28291dbcba9467ac6cf0a882be94b441b60d24a7 /gdb/NEWS
parent0f819434f242abef3cdbdd3b6f1d94317bc1e81a (diff)
downloadgdb-3e3a1874fcec34bcf51b4baf4be09aebab561bff.zip
gdb-3e3a1874fcec34bcf51b4baf4be09aebab561bff.tar.gz
gdb-3e3a1874fcec34bcf51b4baf4be09aebab561bff.tar.bz2
gdb/cli: add '.' as an argument for 'list' command
Currently, after the user has used the list command once, there is no self-contained way to ask GDB to print the location where the inferior is stopped. The current best options require either using a separate command to scope out where the inferior is stopped, or using "list *$pc" requiring knowledge of GDB standard registers. This commit adds a way to do that using '.' as a new argument for the 'list' command. If the inferior isn't running, the command prints around the main function. Because this necessitated having the inferior running and the test was (seemingly unnecessarily) using printf in a non-essential way and it would make the resulting log harder to read for no benefit, it was replaced by a different statement. Reviewed-By: Eli Zaretskii <eliz@gnu.org> Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/NEWS')
-rw-r--r--gdb/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/NEWS b/gdb/NEWS
index 7e61c23..c5bbd4f 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -86,6 +86,10 @@
* The Ada 2022 Enum_Rep and Enum_Val attributes are now supported.
+* The 'list' command now accepts '.' as an argument, which tells GDB to
+ print the location where the inferior is stopped. If the inferior hasn't
+ started yet, the command will print around the main function.
+
* New commands
maintenance print record-instruction [ N ]