binutils-gdb/gdb/cli
Simon Marchi f54bdb6d27 gdb: add add_setshow_prefix_cmd
There's a common pattern to call add_basic_prefix_cmd and
add_show_prefix_cmd to add matching set and show commands.  Add the
add_setshow_prefix_cmd function to factor that out and use it at a few
places.

Change-Id: I6e9e90a30e9efb7b255bf839cac27b85d7069cfd
2021-10-28 10:44:18 -04:00
..
cli-cmds.c gdb: add add_setshow_prefix_cmd 2021-10-28 10:44:18 -04:00
cli-cmds.h gdb: add setting to disable reading source code files 2021-09-27 11:31:35 +01:00
cli-decode.c gdb: add add_setshow_prefix_cmd 2021-10-28 10:44:18 -04:00
cli-decode.h gdb: Introduce setting construct within cmd_list_element 2021-10-03 17:53:16 +01:00
cli-dump.c gdb: change functions returning value contents to use gdb::array_view 2021-10-25 14:51:44 -04:00
cli-interp.c gdbsupport, gdb: give names to observers 2021-04-24 19:26:41 -04:00
cli-interp.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cli-logging.c gdb: add add_setshow_prefix_cmd 2021-10-28 10:44:18 -04:00
cli-option.c gdb: make string-like set show commands use std::string variable 2021-10-03 17:53:16 +01:00
cli-option.h gdb: make string-like set show commands use std::string variable 2021-10-03 17:53:16 +01:00
cli-script.c Move value_true to value.h 2021-09-24 11:58:04 -06:00
cli-script.h cli-script: use unique_ptr to not leak next struct 2021-05-20 21:03:47 +02:00
cli-setshow.c gdb: Setting setter return a bool to tell if the value changed 2021-10-03 17:53:16 +01:00
cli-setshow.h gdb: Introduce setting construct within cmd_list_element 2021-10-03 17:53:16 +01:00
cli-style.c gdb: add add_setshow_prefix_cmd 2021-10-28 10:44:18 -04:00
cli-style.h gdb: generate the prefix name for prefix commands on demand 2021-05-12 11:19:22 +01:00
cli-utils.c Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00
cli-utils.h Update copyright year range in all GDB files 2021-01-01 12:12:21 +04:00