[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/7] ddb: move forward declarations into a header file
From: |
Marin Ramesa |
Subject: |
[PATCH 2/7] ddb: move forward declarations into a header file |
Date: |
Fri, 22 Nov 2013 18:30:35 +0100 |
* ddb/db_run.c (db_set_task_single_step, db_clear_task_single_step): Remove
forward declarations.
* ddb/db_run.h (db_set_task_single_step, db_clear_task_single_step): Add
prototypes.
---
ddb/db_run.c | 11 -----------
ddb/db_run.h | 11 +++++++++++
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/ddb/db_run.c b/ddb/db_run.c
index f528b39..acd5586 100644
--- a/ddb/db_run.c
+++ b/ddb/db_run.c
@@ -59,17 +59,6 @@ int db_last_inst_count;
int db_load_count;
int db_store_count;
-#ifndef db_set_single_step
-void db_set_task_single_step(/* db_regs_t *, task_t */);/* forward */
-#else
-#define db_set_task_single_step(regs,task) db_set_single_step(regs)
-#endif
-#ifndef db_clear_single_step
-void db_clear_task_single_step(/* db_regs_t *, task_t */);
-#else
-#define db_clear_task_single_step(regs,task) db_clear_single_step(regs)
-#endif
-
boolean_t
db_stop_at_pc(is_breakpoint, task)
boolean_t *is_breakpoint;
diff --git a/ddb/db_run.h b/ddb/db_run.h
index ee6e6f5..241852f 100644
--- a/ddb/db_run.h
+++ b/ddb/db_run.h
@@ -68,6 +68,17 @@ void db_continue_cmd(
db_expr_t count,
char * modif);
+#ifndef db_set_single_step
+void db_set_task_single_step(db_regs_t *, task_t);
+#else
+#define db_set_task_single_step(regs, task) db_set_single_step(regs)
+#endif
+#ifndef db_clear_single_step
+void db_clear_task_single_step(db_regs_t *, task_t);
+#else
+#define db_clear_task_single_step(regs, task) db_clear_single_step(regs)
+#endif
+
extern boolean_t db_in_single_step(void);
#endif /* _DDB_DB_RUN_H_ */
--
1.8.1.4
- [PATCH 1/7] ddb/db_mp.c: include kd.h for kdb_kintr(), Marin Ramesa, 2013/11/22
- [PATCH 2/7] ddb: move forward declarations into a header file,
Marin Ramesa <=
- [PATCH 3/7] ddb: create new header file db_mp.h, Marin Ramesa, 2013/11/22
- [PATCH 4/7] ddb: move forward declaration into a header file, Marin Ramesa, 2013/11/22
- [PATCH 5/7] ddb: move forward declarations into a header file, Marin Ramesa, 2013/11/22
- [PATCH 6/7] ddb/db_examine.c: trivial stylistic fix for consistency, Marin Ramesa, 2013/11/22
- [PATCH 7/7] device: new header file chario.h, Marin Ramesa, 2013/11/22
- Re: [PATCH 1/7] ddb/db_mp.c: include kd.h for kdb_kintr(), Guillem Jover, 2013/11/22