gdb: add add_setshow_prefix_cmd
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 22 Sep 2021 17:43:25 +0000 (13:43 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 28 Oct 2021 14:44:18 +0000 (10:44 -0400)
commitf54bdb6d2799c658e076f10e42222949dc51032d
treebd9804255bf472e93740a8b47b2f90d5bde939c3
parent5ad2694b1ebe123ea92fcee094a69bcdc9769985
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
34 files changed:
gdb/ada-lang.c
gdb/arm-tdep.c
gdb/breakpoint.c
gdb/btrace.c
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-logging.c
gdb/cli/cli-style.c
gdb/command.h
gdb/dcache.c
gdb/dwarf2/read.c
gdb/f-lang.c
gdb/frame.c
gdb/guile/guile.c
gdb/i386-tdep.c
gdb/language.c
gdb/maint-test-settings.c
gdb/memattr.c
gdb/mips-tdep.c
gdb/python/python.c
gdb/ravenscar-thread.c
gdb/record-btrace.c
gdb/record-full.c
gdb/record.c
gdb/riscv-tdep.c
gdb/rs6000-tdep.c
gdb/ser-tcp.c
gdb/serial.c
gdb/sh-tdep.c
gdb/target-descriptions.c
gdb/tui/tui-win.c
gdb/typeprint.c
gdb/utils.c
gdb/valprint.c