--- Gnu-Mach/ddb/db_variables.h 2020/09/02 04:36:57 1.1.1.1 +++ Gnu-Mach/ddb/db_variables.h 2020/09/02 04:45:52 1.1.1.2 @@ -36,11 +36,13 @@ /* * Debugger variables. */ +struct db_var_aux_param; /* forward */ +typedef struct db_var_aux_param *db_var_aux_param_t; /* forward */ struct db_variable { char *name; /* Name of variable */ db_expr_t *valuep; /* pointer to value of variable */ /* function to call when reading/writing */ - int (*fcn)(/* db_variable, db_expr_t, int, db_var_aux_param_t */); + long (*fcn)(struct db_variable *, db_expr_t *, int, db_var_aux_param_t); short min_level; /* number of minimum suffix levels */ short max_level; /* number of maximum suffix levels */ short low; /* low value of level 1 suffix */ @@ -48,7 +50,7 @@ struct db_variable { #define DB_VAR_GET 0 #define DB_VAR_SET 1 }; -#define FCN_NULL ((int (*)())0) +#define FCN_NULL ((long (*)())0) #define DB_VAR_LEVEL 3 /* maximum number of suffix level */ @@ -67,7 +69,8 @@ struct db_var_aux_param { thread_t thread; /* target task */ }; -typedef struct db_var_aux_param *db_var_aux_param_t; +/* Already defined above. */ +/* typedef struct db_var_aux_param *db_var_aux_param_t; */ extern struct db_variable db_vars[]; /* debugger variables */ @@ -75,4 +78,8 @@ extern struct db_variable *db_evars; extern struct db_variable db_regs[]; /* machine registers */ extern struct db_variable *db_eregs; +extern int db_get_variable(db_expr_t *valuep); + +void db_set_cmd(); + #endif /* _DB_VARIABLES_H_ */