diff --git a/sys/arm/arm/gic.c b/sys/arm/arm/gic.c --- a/sys/arm/arm/gic.c +++ b/sys/arm/arm/gic.c @@ -1248,7 +1248,7 @@ sizeof(struct arm_gic_softc)); #ifdef DDB -DB_FUNC(gic, db_show_gic, db_show_table, CS_OWN, NULL) +DB_SHOW_COMMAND_FLAGS(gic, db_show_gic, CS_OWN) { device_t dev; int t; diff --git a/sys/dev/aic7xxx/aic79xx_osm.c b/sys/dev/aic7xxx/aic79xx_osm.c --- a/sys/dev/aic7xxx/aic79xx_osm.c +++ b/sys/dev/aic7xxx/aic79xx_osm.c @@ -1473,7 +1473,7 @@ } } -DB_FUNC(ahd_out, ahd_ddb_out, db_cmd_table, CS_MORE, NULL) +DB_COMMAND_FLAGS(ahd_out, ahd_ddb_out, CS_MORE) { db_expr_t old_value; db_expr_t new_value; diff --git a/sys/dev/bxe/bxe_debug.c b/sys/dev/bxe/bxe_debug.c --- a/sys/dev/bxe/bxe_debug.c +++ b/sys/dev/bxe/bxe_debug.c @@ -292,13 +292,7 @@ db_printf("Usage: bxe[/hpv] [
]\n"); } -static db_cmdfcn_t bxe_ddb; -_DB_SET(_cmd, bxe, bxe_ddb, db_cmd_table, CS_OWN, NULL); - -static void bxe_ddb(db_expr_t blah1, - boolean_t blah2, - db_expr_t blah3, - char *blah4) +DB_COMMAND_FLAGS(bxe, bxe_ddb, CS_OWN) { char if_xname[IFNAMSIZ]; if_t ifp = NULL; diff --git a/sys/gdb/netgdb.c b/sys/gdb/netgdb.c --- a/sys/gdb/netgdb.c +++ b/sys/gdb/netgdb.c @@ -333,7 +333,7 @@ * Currently, this command does not support configuring encryption or * compression. */ -DB_FUNC(netgdb, db_netgdb_cmd, db_cmd_table, CS_OWN, NULL) +DB_COMMAND_FLAGS(netgdb, db_netgdb_cmd, CS_OWN) { struct debugnet_ddb_config params; struct debugnet_conn_params dcp; diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -2970,7 +2970,7 @@ /* * Show a specific sysctl similar to sysctl (8). */ -DB_FUNC(sysctl, db_sysctl_cmd, db_cmd_table, CS_OWN, NULL) +DB_COMMAND_FLAGS(sysctl, db_sysctl_cmd, CS_OWN) { char name[TOK_STRING_SIZE]; int error, i, t, flags; diff --git a/sys/net/route/route_ddb.c b/sys/net/route/route_ddb.c --- a/sys/net/route/route_ddb.c +++ b/sys/net/route/route_ddb.c @@ -203,7 +203,7 @@ } } -_DB_FUNC(_show, route, db_show_route_cmd, db_show_table, CS_OWN, NULL) +DB_SHOW_COMMAND_FLAGS(route, db_show_route_cmd, CS_OWN) { char abuf[INET6_ADDRSTRLEN], *buf, *end; struct rib_head *rh; diff --git a/sys/netinet/netdump/netdump_client.c b/sys/netinet/netdump/netdump_client.c --- a/sys/netinet/netdump/netdump_client.c +++ b/sys/netinet/netdump/netdump_client.c @@ -689,7 +689,7 @@ * Currently, this command does not support configuring encryption or * compression. */ -DB_FUNC(netdump, db_netdump_cmd, db_cmd_table, CS_OWN, NULL) +DB_COMMAND_FLAGS(netdump, db_netdump_cmd, CS_OWN) { static struct diocskerneldump_arg conf; static char blockbuf[NETDUMP_DATASIZE]; diff --git a/sys/x86/iommu/intel_drv.c b/sys/x86/iommu/intel_drv.c --- a/sys/x86/iommu/intel_drv.c +++ b/sys/x86/iommu/intel_drv.c @@ -1172,7 +1172,7 @@ } } -DB_FUNC(dmar_domain, db_dmar_print_domain, db_show_table, CS_OWN, NULL) +DB_SHOW_COMMAND_FLAGS(dmar_domain, db_dmar_print_domain, CS_OWN) { struct dmar_unit *unit; struct dmar_domain *domain;