Initialize the DDB command list when initializing DDB so that the basic
commands are available from 'boot -d'. Suggested by: dfr
This commit is contained in:
parent
59c47d99be
commit
93d4804b62
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183360
@ -181,8 +181,8 @@ static void db_command(struct command **last_cmdp,
|
||||
/*
|
||||
* Initialize the command lists from the static tables.
|
||||
*/
|
||||
static void
|
||||
db_cmd_init(void)
|
||||
void
|
||||
db_command_init(void)
|
||||
{
|
||||
#define N(a) (sizeof(a) / sizeof(a[0]))
|
||||
int i;
|
||||
@ -195,7 +195,6 @@ db_cmd_init(void)
|
||||
db_command_register(&db_show_all_table, &db_show_all_cmds[i]);
|
||||
#undef N
|
||||
}
|
||||
SYSINIT(_cmd_init, SI_SUB_KLD, SI_ORDER_FIRST, db_cmd_init, NULL);
|
||||
|
||||
/*
|
||||
* Register a command.
|
||||
|
@ -37,6 +37,7 @@
|
||||
* Command loop declarations.
|
||||
*/
|
||||
|
||||
void db_command_init(void);
|
||||
void db_command_loop(void);
|
||||
void db_command_script(const char *command);
|
||||
|
||||
|
@ -172,6 +172,7 @@ db_init(void)
|
||||
uintptr_t symtab, strtab;
|
||||
Elf_Size tabsz, strsz;
|
||||
|
||||
db_command_init();
|
||||
if (ksym_end > ksym_start && ksym_start != 0) {
|
||||
symtab = ksym_start;
|
||||
tabsz = *((Elf_Size*)symtab);
|
||||
|
Loading…
Reference in New Issue
Block a user