Changeset View
Changeset View
Standalone View
Standalone View
sys/ddb/ddb.h
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
*/ | */ | ||||
struct command { | struct command { | ||||
char * name; /* command name */ | char * name; /* command name */ | ||||
db_cmdfcn_t *fcn; /* function to call */ | db_cmdfcn_t *fcn; /* function to call */ | ||||
int flag; /* extra info: */ | int flag; /* extra info: */ | ||||
#define CS_OWN 0x1 /* non-standard syntax */ | #define CS_OWN 0x1 /* non-standard syntax */ | ||||
#define CS_MORE 0x2 /* standard syntax, but may have other words | #define CS_MORE 0x2 /* standard syntax, but may have other words | ||||
* at end */ | * at end */ | ||||
#define CS_LEX_SPACE 0x4 /* Switch the lexer to explicitly yield | |||||
whitespace (tWSPACE) during cmd. */ | |||||
#define CS_SET_DOT 0x100 /* set dot after command */ | #define CS_SET_DOT 0x100 /* set dot after command */ | ||||
struct command_table *more; /* another level of command */ | struct command_table *more; /* another level of command */ | ||||
LIST_ENTRY(command) next; /* next entry in the command table */ | LIST_ENTRY(command) next; /* next entry in the command table */ | ||||
}; | }; | ||||
/* | /* | ||||
* Arrange for the specified ddb command to be defined and | * Arrange for the specified ddb command to be defined and | ||||
* bound to the specified function. Commands can be defined | * bound to the specified function. Commands can be defined | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | |||||
extern db_expr_t db_maxoff; | extern db_expr_t db_maxoff; | ||||
extern int db_indent; | extern int db_indent; | ||||
extern int db_inst_count; | extern int db_inst_count; | ||||
extern int db_load_count; | extern int db_load_count; | ||||
extern int db_store_count; | extern int db_store_count; | ||||
extern volatile int db_pager_quit; | extern volatile int db_pager_quit; | ||||
extern db_expr_t db_radix; | extern db_expr_t db_radix; | ||||
extern db_expr_t db_cmd_radix; | |||||
extern db_expr_t db_max_width; | extern db_expr_t db_max_width; | ||||
extern db_expr_t db_tab_stop_width; | extern db_expr_t db_tab_stop_width; | ||||
extern db_expr_t db_lines_per_page; | extern db_expr_t db_lines_per_page; | ||||
struct thread; | struct thread; | ||||
struct vm_map; | struct vm_map; | ||||
void db_check_interrupt(void); | void db_check_interrupt(void); | ||||
▲ Show 20 Lines • Show All 104 Lines • Show Last 20 Lines |