summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <marin.ramesa@gmail.com>2013-07-05 00:13:52 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-05 00:13:52 +0200
commit89701c6b02abcdfed54277ed5dd388d954621043 (patch)
tree92e9113972ba9cefaee80311508568763f5007f2
parent69de4284334d34064b4b212734a2aab604acfe29 (diff)
ddb: use and cleanup db_print.h
* ddb/db_command.c: Include db_print.h. Remove extern db_show_regs(). Remove extern db_show_one_task(). Remove extern db_show_port_id(). * ddb/db_print.c: Include db_print.h * ddb/db_print.h (db_show_all_acts): Remove prototype. (db_show_one_act): Likewise. (db_show_shuttle): Likewise. (db_show_one_task_vm): Likewise. (db_show_all_task_vm): Likewise. (db_show_one_space): Likewise. (db_show_all_spaces): Likewise. (db_sys): Likewise. (db_port_kmsg_count): Likewise. (db_show_one_simple_lock): Likewise. (db_show_one_mutex): Likewise. (db_show_subsystem): Likewise. (db_show_runq): Likewise.
-rw-r--r--ddb/db_command.c4
-rw-r--r--ddb/db_print.c1
-rw-r--r--ddb/db_print.h71
3 files changed, 3 insertions, 73 deletions
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 1593e86..bcc507d 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -45,6 +45,7 @@
#include <ddb/db_macro.h>
#include <ddb/db_expr.h>
#include <ddb/db_examine.h>
+#include <ddb/db_print.h>
#include <machine/setjmp.h>
#include <kern/debug.h>
@@ -301,14 +302,13 @@ db_command_list(last_cmdp, cmd_table)
*/
extern void db_listbreak_cmd();
extern void db_listwatch_cmd();
-extern void db_show_regs(), db_show_one_thread(), db_show_one_task();
+extern void db_show_one_thread();
extern void db_show_all_threads();
extern void db_show_macro();
extern void vm_map_print(), vm_object_print(), vm_page_print();
extern void vm_map_copy_print();
extern void ipc_port_print(), ipc_pset_print(), db_show_all_slocks();
extern void ipc_kmsg_print(), ipc_msg_print();
-extern void db_show_port_id();
void db_show_help();
struct db_command db_show_all_cmds[] = {
diff --git a/ddb/db_print.c b/ddb/db_print.c
index 5d0f150..4692e4c 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -51,6 +51,7 @@
#include <ddb/db_variables.h>
#include <ddb/db_sym.h>
#include <ddb/db_task_thread.h>
+#include <ddb/db_print.h>
extern unsigned int db_maxoff;
diff --git a/ddb/db_print.h b/ddb/db_print.h
index 634c5be..5f7a146 100644
--- a/ddb/db_print.h
+++ b/ddb/db_print.h
@@ -20,91 +20,20 @@ void db_show_regs(
db_expr_t count,
char *modif);
-void db_show_all_acts(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_show_one_act(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
void db_show_one_task(
db_expr_t addr,
boolean_t have_addr,
db_expr_t count,
char * modif);
-void db_show_shuttle(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
void db_show_port_id(
db_expr_t addr,
boolean_t have_addr,
db_expr_t count,
char * modif);
-void db_show_one_task_vm(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char *modif);
-
-void db_show_all_task_vm(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char *modif);
-
-void db_show_one_space(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_show_all_spaces(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_sys(void);
-
-int db_port_kmsg_count(
- ipc_port_t port);
-
db_addr_t db_task_from_space(
ipc_space_t space,
int *task_id);
-void db_show_one_simple_lock(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_show_one_mutex(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_show_subsystem(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
-void db_show_runq(
- db_expr_t addr,
- boolean_t have_addr,
- db_expr_t count,
- char * modif);
-
#endif /* !_DDB_DB_PRINT_H_ */