summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-22 18:30:35 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-11-24 23:08:07 +0100
commit8abd38165bc354ab709042d560c948e845e19279 (patch)
tree3c592ad59da23cf0b6dcd8351bd844946404f6df /ddb
parent9eedb4a3bef454d79f1309f963f0faeb7ca0efa0 (diff)
ddb: move forward declarations into a header file
* 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.
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_run.c11
-rw-r--r--ddb/db_run.h11
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_ */