[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 03/14] ddb/db_cond.c: move struct definition to a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 03/14] ddb/db_cond.c: move struct definition to a header file |
Date: |
Mon, 2 Dec 2013 22:54:41 +0100 |
* ddb/db_cond.c (db_cond): Move struct definition to ddb/db_cond.h.
---
ddb/db_cond.c | 7 -------
ddb/db_cond.h | 7 +++++++
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ddb/db_cond.c b/ddb/db_cond.c
index 82ec0d6..b8e661b 100644
--- a/ddb/db_cond.c
+++ b/ddb/db_cond.c
@@ -38,14 +38,7 @@
#include <kern/debug.h>
-
-#define DB_MAX_COND 10 /* maximum conditions to be set */
-
int db_ncond_free = DB_MAX_COND; /* free condition */
-struct db_cond {
- int c_size; /* size of cond */
- char c_cond_cmd[DB_LEX_LINE_SIZE]; /* cond & cmd */
-} db_cond[DB_MAX_COND];
void
db_cond_free(bkpt)
diff --git a/ddb/db_cond.h b/ddb/db_cond.h
index dec4967..161a0d9 100644
--- a/ddb/db_cond.h
+++ b/ddb/db_cond.h
@@ -24,6 +24,13 @@
#include <sys/types.h>
#include <machine/db_machdep.h>
+#define DB_MAX_COND 10 /* maximum conditions to be set */
+
+struct db_cond {
+ int c_size; /* size of cond */
+ char c_cond_cmd[DB_LEX_LINE_SIZE]; /* cond & cmd */
+} db_cond[DB_MAX_COND];
+
extern void db_cond_free (db_thread_breakpoint_t bkpt);
extern boolean_t db_cond_check (db_thread_breakpoint_t bkpt);
--
1.8.1.4
- [PATCH 01/14] i386/i386at/kd.c: fix signed overflow (a warning from GCC), Marin Ramesa, 2013/12/02
- [PATCH 04/14] ddb/db_macro.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 05/14] i386/i386/idt.c: move struct definition to a header file, Marin Ramesa, 2013/12/02
- [PATCH 06/14] i386/intel/pmap.c: move struct definitions to a header file, Marin Ramesa, 2013/12/02
- [PATCH 07/14] ipc/ipc_hash.c: move struct definition to a header file, Marin Ramesa, 2013/12/02