diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-20 02:37:02 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-20 02:43:48 +0100 |
commit | 84bf93fa103eb9e2ed914b67cd5d2c7058d30b42 (patch) | |
tree | 0a347a557ed9e16fd7fd901b3cf6537be633c2ca /ddb | |
parent | 0410dd9e3fe657ef3d8334394180eac5956d407d (diff) |
Use long types
* ddb/db_examine.c (db_xcdump): Do not cast addr before passing to
db_read_bytes.
* ddb/db_macro.c (db_arg_variable): Return long.
* ddb/db_macro.h (db_arg_variable): Likewise.
* ddb/db_sym.c (db_maxoff): Set type to unsigned long.
* ddb/db_task_thread.c (db_set_default_thread, db_get_task_thread): Return
long.
* ddb/db_variables.h (db_variable): Make fcn function field to return long.
(FCN_NULL): Make function type return long.
* i386/i386/db_interface.c (int_regs): Set field sizes to long.
* i386/i386/db_machdep.h (db_expr_t): Set type to long.
* i386/i386/db_trace.c (db_i386_reg_value): Return long. Use long types.
(i386_frame, i386_kregs, interrupt_frame, db_nextframe): Set field sizes to
long.
(db_regs, i386_kregs): Use long * pointers.
(db_lookup_i386_kreg): Return long *.
(db_numargs, db_nextframe, db_stack_trace_cmd, db_i386_stack_trace): Use long
types.
* i386/i386/debug_i386.c (dump_ss): Fix format.
* i386/i386/ktss.c (ktss_init): Use long type.
* i386/i386/pcb.c (set_user_regs): Likewise.
* i386/i386/thread.h (i386_saved_state, v86_segs, i386_kernel_state,
i386_interrupt_state): Set field sizes to long.
* i386/i386/trap.c (kernel_trap, user_trap): Fix formats.
* kern/ast.h (ast_t): Set type to long.
* kern/boot_script.c (create_task, resume_task, prompt_resume_task,
boot_script_set_variable): Use long types.
* kern/boot_script.h (boot_script_set_variable): Use long type.
* kern/bootstrap.c (bootstrap_create): Pass long type.
* kern/lock.c (simple_lock, simple_lock_try): Use long type.
* linux/dev/kernel/softirq.c (linux_soft_intr): Fix format.
Diffstat (limited to 'ddb')
-rw-r--r-- | ddb/db_examine.c | 2 | ||||
-rw-r--r-- | ddb/db_macro.c | 2 | ||||
-rw-r--r-- | ddb/db_macro.h | 2 | ||||
-rw-r--r-- | ddb/db_sym.c | 2 | ||||
-rw-r--r-- | ddb/db_task_thread.c | 4 | ||||
-rw-r--r-- | ddb/db_variables.h | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/ddb/db_examine.c b/ddb/db_examine.c index 2df261f..96c5eee 100644 --- a/ddb/db_examine.c +++ b/ddb/db_examine.c @@ -480,7 +480,7 @@ db_xcdump(addr, size, count, task) if (!DB_CHECK_ACCESS(next_page_addr, sizeof(int), task)) bcount = next_page_addr - addr; } - db_read_bytes((char *)addr, bcount, data, task); + db_read_bytes(addr, bcount, data, task); for (i = 0; i < bcount && off != 0; i += size) { if (i % 4 == 0) db_printf(" "); diff --git a/ddb/db_macro.c b/ddb/db_macro.c index e372c23..43bb583 100644 --- a/ddb/db_macro.c +++ b/ddb/db_macro.c @@ -165,7 +165,7 @@ db_exec_macro(name) return(0); } -int +long /* ARGSUSED */ db_arg_variable(vp, valuep, flag, ap) struct db_variable *vp; diff --git a/ddb/db_macro.h b/ddb/db_macro.h index 12ed16e..da5626f 100644 --- a/ddb/db_macro.h +++ b/ddb/db_macro.h @@ -32,7 +32,7 @@ extern void db_show_macro (void); extern int db_exec_macro (char *name); -extern int db_arg_variable ( +extern long db_arg_variable ( struct db_variable *vp, db_expr_t *valuep, int flag, diff --git a/ddb/db_sym.c b/ddb/db_sym.c index dd72138..5c5f700 100644 --- a/ddb/db_sym.c +++ b/ddb/db_sym.c @@ -445,7 +445,7 @@ db_symbol_values(stab, sym, namep, valuep) * not accept symbols whose value is zero (and use plain hex). */ -unsigned int db_maxoff = 0x4000; +unsigned long db_maxoff = 0x4000; void db_task_printsym(off, strategy, task) diff --git a/ddb/db_task_thread.c b/ddb/db_task_thread.c index 3762942..1146223 100644 --- a/ddb/db_task_thread.c +++ b/ddb/db_task_thread.c @@ -245,7 +245,7 @@ db_init_default_thread(void) * in the command line */ /* ARGSUSED */ -int +long db_set_default_thread(vp, valuep, flag) struct db_variable *vp; db_expr_t *valuep; @@ -270,7 +270,7 @@ db_set_default_thread(vp, valuep, flag) /* * convert $taskXXX[.YYY] type DDB variable to task or thread address */ -int +long db_get_task_thread(vp, valuep, flag, ap) struct db_variable *vp; db_expr_t *valuep; diff --git a/ddb/db_variables.h b/ddb/db_variables.h index c01a5e2..5249d18 100644 --- a/ddb/db_variables.h +++ b/ddb/db_variables.h @@ -42,7 +42,7 @@ 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)(struct 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 */ @@ -50,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 */ |