[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 01/68] ddb/db_command.c: remove forward declarations
From: |
Marin Ramesa |
Subject: |
[PATCH 01/68] ddb/db_command.c: remove forward declarations |
Date: |
Fri, 29 Nov 2013 22:53:26 +0100 |
* ddb/db_command.c: Include machine/db_interface.h.
(db_help_cmd, db_stack_trace_cmd): Remove forward declarations.
* ddb/db_command.h (db_help_cmd): Add prototype.
* i386/i386/db_interface.h (db_stack_trace_cmd): Add prototype.
---
ddb/db_command.c | 3 +--
ddb/db_command.h | 2 ++
i386/i386/db_interface.h | 8 ++++++++
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 1299cfa..c44e18c 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -54,6 +54,7 @@
#include <ddb/db_cond.h>
#include <machine/setjmp.h>
+#include <machine/db_interface.h>
#include <kern/debug.h>
#include <kern/thread.h>
#include <ipc/ipc_pset.h> /* 4proto */
@@ -331,8 +332,6 @@ struct db_command db_show_cmds[] = {
{ (char *)0, }
};
-void db_help_cmd();
-extern void db_stack_trace_cmd();
extern void db_reset_cpu();
struct db_command db_command_table[] = {
diff --git a/ddb/db_command.h b/ddb/db_command.h
index 2517a90..64e3b5c 100644
--- a/ddb/db_command.h
+++ b/ddb/db_command.h
@@ -73,6 +73,8 @@ extern boolean_t db_exec_cmd_nest(char *cmd, int size);
void db_fncall();
+void db_help_cmd(void);
+
#endif /* MACH_KDB */
#endif /* _DDB_DB_COMMAND_H_ */
diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h
index 82bfec7..b0b11cf 100644
--- a/i386/i386/db_interface.h
+++ b/i386/i386/db_interface.h
@@ -88,6 +88,14 @@ extern void db_dr (
int type,
int len,
int persistence);
+
+extern void
+db_stack_trace_cmd(
+ db_expr_t addr,
+ boolean_t have_addr,
+ db_expr_t count,
+ char *modif);
+
#endif
extern void db_get_debug_state(
--
1.8.1.4
- gnumach code cleanup, Marin Ramesa, 2013/11/29
- [PATCH 01/68] ddb/db_command.c: remove forward declarations,
Marin Ramesa <=
- [PATCH 05/68] ddb/db_run.c: add comment after endif, Marin Ramesa, 2013/11/29
- [PATCH 02/68] ddb/db_input.c: add comment after endif, Marin Ramesa, 2013/11/29
- [PATCH 04/68] ddb/db_output.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 03/68] ddb/db_mp.c: add comment after else and endif, Marin Ramesa, 2013/11/29
- [PATCH 07/68] ddb: new header file db_aout.h, Marin Ramesa, 2013/11/29
- [PATCH 06/68] ddb/db_aout.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/11/29
- [PATCH 09/68] ddb/db_sym.c: fix argument list, Marin Ramesa, 2013/11/29
- [PATCH 08/68] ddb/db_sym.c: remove useless forward declarations without definitions, Marin Ramesa, 2013/11/29
- [PATCH 10/68] ddb/db_command.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 11/68] ddb/db_command.c: remove useless forward declaration without definition, Marin Ramesa, 2013/11/29