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 CS_MORE   0x2

Definition at line 153 of file ddb.h.

#define CS_OWN   0x1

Definition at line 152 of file ddb.h.

#define CS_SET_DOT   0x100

Definition at line 155 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.

#define db_error   printk

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.

#define db_strcpy   strcpy

Definition at line 110 of file ddb.h.


Typedef Documentation

void SHA512_Update __P ( (db_expr_t addr, boolean_t have_addr, db_expr_t count, char *modif)   )  [read]

Definition at line 48 of file ddb.h.

typedef int boolean_t

Definition at line 41 of file ddb.h.

typedef unsigned long vm_offset_t

Definition at line 42 of file ddb.h.


Function Documentation

int db_value_of_name __P ( (char *name, db_expr_t *valuep)   ) 

void db_trap __P ( (int type, int code  ) 

boolean_t db_stop_at_pc __P ( (boolean_t *is_breakpoint)   ) 

void db_restart_at_pc __P ( (boolean_t watchpt)   ) 

int db_readline __P ( (char *lstart, int lsize)   ) 

void db_read_bytes __P ( (vm_offset_t addr, int size, char *data  ) 

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)   ) 

db_addr_t db_disasm __P ( (db_addr_t loc, boolean_t altfmt)   ) 

void cnpollc __P ( (int)   ) 

void srandom __P ( (unsigned long)   ) 

unsigned long random __P ( (void)   ) 

db_addr_t my_disasm ( db_addr_t  loc,
boolean_t  altfmt 
)

Definition at line 1049 of file db_disasm.c.


Variable Documentation

db_cmdfcn_t db_breakpoint_cmd

Definition at line 118 of file ddb.h.

db_cmdfcn_t db_continue_cmd

Definition at line 119 of file ddb.h.

db_cmdfcn_t db_delete_cmd

Definition at line 120 of file ddb.h.

db_cmdfcn_t db_deletewatch_cmd

Definition at line 121 of file ddb.h.

db_cmdfcn_t db_examine_cmd

Definition at line 122 of file ddb.h.

int db_indent

db_cmdfcn_t db_listbreak_cmd

Definition at line 123 of file ddb.h.

db_cmdfcn_t db_listwatch_cmd

Definition at line 124 of file ddb.h.

unsigned int db_maxoff

Definition at line 325 of file db_sym.c.

db_cmdfcn_t db_print_cmd

Definition at line 125 of file ddb.h.

db_cmdfcn_t db_ps

Definition at line 126 of file ddb.h.

int db_radix

db_cmdfcn_t db_search_cmd

Definition at line 127 of file ddb.h.

db_cmdfcn_t db_set_cmd

Definition at line 128 of file ddb.h.

db_cmdfcn_t db_show_regs

Definition at line 129 of file ddb.h.

db_cmdfcn_t db_single_step_cmd

Definition at line 130 of file ddb.h.

db_cmdfcn_t db_stack_trace_cmd

Definition at line 131 of file ddb.h.

Definition at line 132 of file ddb.h.

Definition at line 133 of file ddb.h.

db_cmdfcn_t db_watchpoint_cmd

Definition at line 134 of file ddb.h.

db_cmdfcn_t db_write_cmd

Definition at line 135 of file ddb.h.

char* esym


Generated on Tue Mar 9 04:36:44 2010 for Minix by  doxygen 1.5.8