ddb: simplify machine command handling
authornaddy <naddy@openbsd.org>
Tue, 12 Apr 2022 19:44:31 +0000 (19:44 +0000)
committernaddy <naddy@openbsd.org>
Tue, 12 Apr 2022 19:44:31 +0000 (19:44 +0000)
commitd03db17a454f2e50a4836738000e20dd446c9aaa
tree2c9b0b56f46399e8db84e547465b02fe7c34efde
parent8f1d17e8fb514061e1b62b502ae120c6131aabd2
ddb: simplify machine command handling

Define a consistently named db_machine_command_table[] across all
archs that implement the MD "machine" command, and hook this into
the main command table instead of patching it at runtime.

ok mpi@ jca@
14 files changed:
sys/arch/alpha/alpha/db_interface.c
sys/arch/amd64/amd64/db_interface.c
sys/arch/arm/arm/db_interface.c
sys/arch/arm64/arm64/db_interface.c
sys/arch/i386/i386/db_interface.c
sys/arch/m88k/m88k/db_interface.c
sys/arch/mips64/mips64/db_machdep.c
sys/arch/powerpc/ddb/db_interface.c
sys/arch/powerpc64/powerpc64/db_interface.c
sys/arch/riscv64/riscv64/db_interface.c
sys/arch/sh/sh/db_interface.c
sys/arch/sparc64/sparc64/db_interface.c
sys/ddb/db_command.c
sys/ddb/db_command.h