[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 16/19] Fix implicit declaration of function
From: |
Marin Ramesa |
Subject: |
[PATCH 16/19] Fix implicit declaration of function |
Date: |
Wed, 20 Nov 2013 13:53:58 +0100 |
* ddb/db_sym.c (aout_db_sym_init): Remove forward declaration.
* ddb/db_sym.h (aout_db_sym_init): Add prototype.
* i386/i386at/model_dep.c (aout_db_sym_init): Fix call.
[MACH_KDB]: Include ddb/db_sym.h.
[MACH_KDB]: Add comment after else and endif.
---
ddb/db_sym.c | 2 +-
ddb/db_sym.h | 6 ++++++
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 dad0ead..f899217 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..9ec9581 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 */
--
1.8.1.4
- Re: [PATCH 09/19] ddb/db_run.c: move declaration of brpc into SOFTWARE_SSTEP, (continued)
- [PATCH 10/19] ddb/db_sym.c: add parentheses around assignment used as truth value, Marin Ramesa, 2013/11/20
- [PATCH 11/19] ddb/db_variables.c: fix initializations from incompatible pointer type, Marin Ramesa, 2013/11/20
- [PATCH 12/19] ipc/ipc_print.h: include ipc/ipc_pset.h for ipc_pset_t, Marin Ramesa, 2013/11/20
- [PATCH 13/19] kern/startup.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20
- [PATCH 14/19] kern/xpr.c: quiet warning about uninitialized variable, Marin Ramesa, 2013/11/20
- [PATCH 15/19] device/net_io.c: quiet the warning about uninitialized variable, Marin Ramesa, 2013/11/20
- [PATCH 16/19] Fix implicit declaration of function,
Marin Ramesa <=
- [PATCH 17/19] i386/i386at/kd.c: add forward declaration, Marin Ramesa, 2013/11/20
- [PATCH 18/19] i386/i386/db_interface.c: add forward declaration, Marin Ramesa, 2013/11/20
- [PATCH 19/19] i386/i386/db_interface.c: fix implicit declaration of function, Marin Ramesa, 2013/11/20