diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-08 12:40:29 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-09 00:59:06 +0900 |
commit | f2ceb891968886c2e1804b57070fe1376be6d646 (patch) | |
tree | 43e1f6b7bc2d06b826c7a51e19cdc308f37bcf56 /ddb/db_sym.h | |
parent | 8d2e05732d773546714a78dbc603b09d2504f1de (diff) | |
download | gnumach-f2ceb891968886c2e1804b57070fe1376be6d646.tar.gz gnumach-f2ceb891968886c2e1804b57070fe1376be6d646.tar.bz2 gnumach-f2ceb891968886c2e1804b57070fe1376be6d646.zip |
Use db_addr_t instead of db_expr_t
In this way everything falls into place and there is one cast less.
Function db_task_printsym() is already always called with the cast to
db_addr_t in the first argument.
* ddb/db_aout.c (aout_db_line_at_pc): Use db_addr_t instead of db_expr_t.
(aout_db_search_by_addr): Don't cast to vm_offset_t. Argument is already
db_addr_t.
* ddb/db_aout.h (aout_db_line_at_pc): Use db_addr_t instead of db_expr_t.
* ddb/db_sym.c (db_task_printsym): Likewise.
(db_line_at_pc): Likewise.
* ddb/db_sym.h (db_task_printsym): Likewise.
(db_line_at_pc): Likewise.
* i386/i386/db_trace.c (db_task_printsym): Cast to db_addr_t instead of db_expr_t.
Member swap_func is a pointer to void.
Diffstat (limited to 'ddb/db_sym.h')
-rw-r--r-- | ddb/db_sym.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ddb/db_sym.h b/ddb/db_sym.h index e3409e22..cb574dd4 100644 --- a/ddb/db_sym.h +++ b/ddb/db_sym.h @@ -164,7 +164,7 @@ extern void db_symbol_values( db_symtab_t *stab, extern boolean_t db_eqname( char* src, char* dst, char c ); /* print closest symbol to a value */ -extern void db_task_printsym( db_expr_t off, +extern void db_task_printsym( db_addr_t off, db_strategy_t strategy, task_t task); @@ -205,7 +205,7 @@ extern struct db_sym_switch { db_sym_t sym, char **file, int *line, - db_expr_t pc + db_addr_t pc ); void (*symbol_values)( @@ -235,7 +235,7 @@ extern boolean_t db_line_at_pc( db_sym_t sym, char **filename, int *linenum, - db_expr_t pc); + db_addr_t pc); extern boolean_t aout_db_sym_init( char *symtab, |