[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
- gnumach code cleanup, Marin Ramesa, 2013/11/29
- [PATCH 01/68] ddb/db_command.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [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 <=
- [PATCH 11/68] ddb/db_command.c: remove useless forward declaration without definition, Marin Ramesa, 2013/11/29
- [PATCH 12/68] ddb/db_trap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 13/68] ddb/db_variables.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 14/68] device/device_init.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 15/68] i386/i386/db_trace.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 16/68] i386/i386/fpu.c, trap.c: remove forward declarations, Marin Ramesa, 2013/11/29
- [PATCH 17/68] i386/i386/fpu.c: remove (#if 1), Marin Ramesa, 2013/11/29
- [PATCH 18/68] i386/i386/io_perm.c: remove forward declaration, Marin Ramesa, 2013/11/29
- [PATCH 19/68] i386/i386/ldt.c: remove useless forward declaration without definition, Marin Ramesa, 2013/11/29