bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 10/68] ddb/db_command.c: remove forward declaration


From: Marin Ramesa
Subject: [PATCH 10/68] ddb/db_command.c: remove forward declaration
Date: Fri, 29 Nov 2013 22:53:35 +0100

* ddb/db_command.c (db_reset_cpu): Remove forward declaration.
* i386/i386/db_interface.h (db_reset_cpu): Add prototype.
* i386/i386at/model_dep.c: Include i386/db_interface.h.

---
 ddb/db_command.c         | 2 --
 i386/i386/db_interface.h | 3 +++
 i386/i386at/model_dep.c  | 1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ddb/db_command.c b/ddb/db_command.c
index c44e18c..833b720 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -332,8 +332,6 @@ struct db_command db_show_cmds[] = {
        { (char *)0, }
 };
 
-extern void    db_reset_cpu();
-
 struct db_command db_command_table[] = {
 #ifdef DB_MACHINE_COMMANDS
   /* this must be the first entry, if it exists */
diff --git a/i386/i386/db_interface.h b/i386/i386/db_interface.h
index b0b11cf..e4ae140 100644
--- a/i386/i386/db_interface.h
+++ b/i386/i386/db_interface.h
@@ -96,6 +96,9 @@ db_stack_trace_cmd(
        db_expr_t       count,
        char            *modif);
 
+extern void
+db_reset_cpu(void);
+
 #endif
 
 extern void db_get_debug_state(
diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index 1a3aee8..5606639 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -78,6 +78,7 @@
    Both of these are 0 if none is available.  */
 #if MACH_KDB
 #include <ddb/db_sym.h>
+#include <i386/db_interface.h>
 static vm_offset_t kern_sym_start, kern_sym_end;
 #else /* MACH_KDB */
 #define kern_sym_start 0
-- 
1.8.1.4




reply via email to

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