src/commands/swifi/ddb.h File Reference
#include "db_machdep.h"
Go to the source code of this file.
|
Classes |
| struct | command |
Defines |
| #define | __P(protos) protos |
| #define | DB_COMMAND(cmd_name, func_name) DB_SET(cmd_name, func_name, db_cmd_set) |
| #define | DB_SHOW_COMMAND(cmd_name, func_name) DB_SET(cmd_name, func_name, db_show_cmd_set) |
| #define | DB_SET(cmd_name, func_name, set) |
| #define | db_error printk |
| #define | db_strcpy strcpy |
| #define | CS_OWN 0x1 |
| #define | CS_MORE 0x2 |
| #define | CS_SET_DOT 0x100 |
Typedefs |
| typedef int | boolean_t |
| typedef unsigned long | vm_offset_t |
| typedef void db_cmdfcn_t | __P ((db_expr_t addr, boolean_t have_addr, db_expr_t count, char *modif)) |
Functions |
| unsigned long random | __P ((void)) |
| void srandom | __P ((unsigned long)) |
| void cnpollc | __P ((int)) |
| db_addr_t db_disasm | __P ((db_addr_t loc, boolean_t altfmt)) |
| int db_expression | __P ((db_expr_t *valuep)) |
| void db_iprintf | __P ((const char *,...)) |
| boolean_t db_map_current | __P ((struct vm_map *)) |
| boolean_t db_map_equal | __P ((struct vm_map *, struct vm_map *)) |
| void db_print_loc_and_inst | __P ((db_addr_t loc)) |
| void db_printf | __P ((const char *fmt,...)) |
| void db_read_bytes | __P ((vm_offset_t addr, int size, char *data)) |
| int db_readline | __P ((char *lstart, int lsize)) |
| void db_restart_at_pc | __P ((boolean_t watchpt)) |
| boolean_t db_stop_at_pc | __P ((boolean_t *is_breakpoint)) |
| void db_trap | __P ((int type, int code)) |
| int db_value_of_name | __P ((char *name, db_expr_t *valuep)) |
| db_addr_t | my_disasm (db_addr_t loc, boolean_t altfmt) |
Variables |
| char * | esym |
| unsigned int | db_maxoff |
| int | db_indent |
| int | db_inst_count |
| int | db_load_count |
| int | db_store_count |
| int | db_radix |
| int | db_max_width |
| int | db_tab_stop_width |
| db_cmdfcn_t | db_breakpoint_cmd |
| db_cmdfcn_t | db_continue_cmd |
| db_cmdfcn_t | db_delete_cmd |
| db_cmdfcn_t | db_deletewatch_cmd |
| db_cmdfcn_t | db_examine_cmd |
| db_cmdfcn_t | db_listbreak_cmd |
| db_cmdfcn_t | db_listwatch_cmd |
| db_cmdfcn_t | db_print_cmd |
| db_cmdfcn_t | db_ps |
| db_cmdfcn_t | db_search_cmd |
| db_cmdfcn_t | db_set_cmd |
| db_cmdfcn_t | db_show_regs |
| db_cmdfcn_t | db_single_step_cmd |
| db_cmdfcn_t | db_stack_trace_cmd |
| db_cmdfcn_t | db_trace_until_call_cmd |
| db_cmdfcn_t | db_trace_until_matching_cmd |
| db_cmdfcn_t | db_watchpoint_cmd |
| db_cmdfcn_t | db_write_cmd |
Define Documentation
| #define __P |
( |
protos |
|
) |
protos |
Definition at line 40 of file ddb.h.
| #define DB_COMMAND |
( |
cmd_name, |
|
|
func_name |
|
) |
DB_SET(cmd_name, func_name, db_cmd_set) |
Definition at line 51 of file ddb.h.
Definition at line 94 of file ddb.h.
| #define DB_SET |
( |
cmd_name, |
|
|
func_name, |
|
|
set |
|
) |
|
Value:
static db_cmdfcn_t func_name; \
\
static const struct command __CONCAT(func_name,_cmd) = { \
__STRING(cmd_name), \
func_name, \
0, \
0, \
}; \
TEXT_SET(set, __CONCAT(func_name,_cmd)); \
\
static void \
func_name(addr, have_addr, count, modif) \
db_expr_t addr; \
boolean_t have_addr; \
db_expr_t count; \
char *modif;
Definition at line 56 of file ddb.h.
| #define DB_SHOW_COMMAND |
( |
cmd_name, |
|
|
func_name |
|
) |
DB_SET(cmd_name, func_name, db_show_cmd_set) |
Definition at line 53 of file ddb.h.
Typedef Documentation
Definition at line 48 of file ddb.h.
Definition at line 41 of file ddb.h.
Definition at line 42 of file ddb.h.
Function Documentation
| void db_trap __P |
( |
(int type, int code) |
|
) |
|
| void db_restart_at_pc __P |
( |
(boolean_t watchpt) |
|
) |
|
| int db_readline __P |
( |
(char *lstart, int lsize) |
|
) |
|
| void db_printf __P |
( |
(const char *fmt,...) |
|
) |
|
| void db_print_loc_and_inst __P |
( |
(db_addr_t loc) |
|
) |
|
| boolean_t db_map_equal __P |
( |
(struct vm_map *, struct vm_map *) |
|
) |
|
| boolean_t db_map_current __P |
( |
(struct vm_map *) |
|
) |
|
| void db_iprintf __P |
( |
(const char *,...) |
|
) |
|
| int db_expression __P |
( |
(db_expr_t *valuep) |
|
) |
|
| void cnpollc __P |
( |
(int) |
|
) |
|
| void srandom __P |
( |
(unsigned long) |
|
) |
|
| unsigned long random __P |
( |
(void) |
|
) |
|
Variable Documentation