binutils-gdb/gdb/cli
Bruno Larsen 3e3a1874fc 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>
2023-07-14 10:58:17 +02:00
..
cli-cmds.c gdb/cli: add '.' as an argument for 'list' command 2023-07-14 10:58:17 +02:00
cli-cmds.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-decode.c [gdb] Fix more typos 2023-06-05 12:53:15 +02:00
cli-decode.h gdb: remove unused parameters in print_doc_of_command, apropos_cmd 2023-04-02 14:11:33 -04:00
cli-dump.c Remove deprecated_lval_hack 2023-02-13 15:22:20 -07:00
cli-interp.c gdb: add interp::on_user_selected_context_changed method 2023-05-30 15:07:26 -04:00
cli-interp.h gdb: add interp::on_user_selected_context_changed method 2023-05-30 15:07:26 -04:00
cli-logging.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-option.c GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-option.h GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-script.c gdb: move struct ui and related things to ui.{c,h} 2023-05-01 15:40:54 -04:00
cli-script.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-setshow.c Use std::string in do_set_command 2023-06-20 07:52:28 -06:00
cli-setshow.h GDB: Allow arbitrary keywords in integer set commands 2023-01-19 21:15:56 +00:00
cli-style.c Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-style.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00
cli-utils.c Turn value_type into method 2023-02-13 15:21:06 -07:00
cli-utils.h Update copyright year range in header of all files managed by GDB 2023-01-01 17:01:16 +04:00