bug-hurd
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]