diff options
-rw-r--r-- | ddb/db_sym.c | 2 | ||||
-rw-r--r-- | ddb/db_sym.h | 6 | ||||
-rw-r--r-- | i386/i386at/model_dep.c | 7 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ddb/db_sym.c b/ddb/db_sym.c index 98f265e..0819e08 100644 --- a/ddb/db_sym.c +++ b/ddb/db_sym.c @@ -511,7 +511,7 @@ void db_free_symbol(db_sym_t s) * Switch into symbol-table specific routines */ -extern boolean_t aout_db_sym_init(), aout_db_line_at_pc(); +extern boolean_t aout_db_line_at_pc(); extern db_sym_t aout_db_lookup(), aout_db_search_symbol(); extern void aout_db_symbol_values(); diff --git a/ddb/db_sym.h b/ddb/db_sym.h index d3cfec7..650822d 100644 --- a/ddb/db_sym.h +++ b/ddb/db_sym.h @@ -237,4 +237,10 @@ extern boolean_t db_line_at_pc( int *linenum, db_expr_t pc); +extern boolean_t aout_db_sym_init( + char *symtab, + char *esymtab, + char *name, + char *task_addr); + #endif /* _DDB_DB_SYM_H_ */ diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c index 2bc1996..1a3aee8 100644 --- a/i386/i386at/model_dep.c +++ b/i386/i386at/model_dep.c @@ -77,11 +77,12 @@ /* Location of the kernel's symbol table. Both of these are 0 if none is available. */ #if MACH_KDB +#include <ddb/db_sym.h> static vm_offset_t kern_sym_start, kern_sym_end; -#else +#else /* MACH_KDB */ #define kern_sym_start 0 #define kern_sym_end 0 -#endif +#endif /* MACH_KDB */ /* These indicate the total extent of physical memory addresses we're using. They are page-aligned. */ @@ -581,7 +582,7 @@ void c_boot_entry(vm_offset_t bi) */ if (kern_sym_start) { - aout_db_sym_init(kern_sym_start, kern_sym_end, "mach", 0); + aout_db_sym_init((char *)kern_sym_start, (char *)kern_sym_end, "mach", (char *)0); } #endif /* MACH_KDB */ |