summaryrefslogtreecommitdiff
path: root/ddb
diff options
context:
space:
mode:
Diffstat (limited to 'ddb')
-rw-r--r--ddb/db_aout.c1
-rw-r--r--ddb/db_command.c2
-rw-r--r--ddb/db_lex.c2
-rw-r--r--ddb/db_macro.c1
-rw-r--r--ddb/db_output.c6
-rw-r--r--ddb/db_print.c2
-rw-r--r--ddb/db_sym.c2
7 files changed, 7 insertions, 9 deletions
diff --git a/ddb/db_aout.c b/ddb/db_aout.c
index c47d37a..03c9790 100644
--- a/ddb/db_aout.c
+++ b/ddb/db_aout.c
@@ -34,6 +34,7 @@
* Symbol table routines for a.out format files.
*/
+#include <string.h>
#include <mach/std_types.h>
#include <machine/db_machdep.h> /* data types */
#include <ddb/db_sym.h>
diff --git a/ddb/db_command.c b/ddb/db_command.c
index 573c697..b6927e6 100644
--- a/ddb/db_command.c
+++ b/ddb/db_command.c
@@ -34,8 +34,8 @@
* Command dispatcher.
*/
+#include <string.h>
#include <mach/boolean.h>
-#include <kern/strings.h>
#include <machine/db_machdep.h>
#include <ddb/db_lex.h>
diff --git a/ddb/db_lex.c b/ddb/db_lex.c
index f770eaf..3d05404 100644
--- a/ddb/db_lex.c
+++ b/ddb/db_lex.c
@@ -33,8 +33,8 @@
/*
* Lexical analyzer.
*/
+#include <string.h>
#include <machine/db_machdep.h>
-#include <kern/strings.h>
#include <ddb/db_lex.h>
char db_line[DB_LEX_LINE_SIZE];
diff --git a/ddb/db_macro.c b/ddb/db_macro.c
index e71e83b..83c30ce 100644
--- a/ddb/db_macro.c
+++ b/ddb/db_macro.c
@@ -26,6 +26,7 @@
#if MACH_KDB
+#include <string.h>
#include <kern/thread.h>
#include <machine/db_machdep.h>
diff --git a/ddb/db_output.c b/ddb/db_output.c
index daf141d..1506bcd 100644
--- a/ddb/db_output.c
+++ b/ddb/db_output.c
@@ -34,6 +34,7 @@
* Printf and character output for debugger.
*/
+#include <printf.h>
#include <stdarg.h>
#include <mach/boolean.h>
#include <machine/db_machdep.h>
@@ -201,11 +202,6 @@ void db_end_line()
db_printf("\n");
}
-/*
- * Printing
- */
-extern void _doprnt();
-
/*VARARGS1*/
void
db_printf(const char *fmt, ...)
diff --git a/ddb/db_print.c b/ddb/db_print.c
index 5c15d00..e9d8e4b 100644
--- a/ddb/db_print.c
+++ b/ddb/db_print.c
@@ -33,8 +33,8 @@
/*
* Miscellaneous printing.
*/
+#include <string.h>
#include <mach/port.h>
-#include <kern/strings.h>
#include <kern/task.h>
#include <kern/thread.h>
#include <kern/queue.h>
diff --git a/ddb/db_sym.c b/ddb/db_sym.c
index ab2cd1f..cd4632f 100644
--- a/ddb/db_sym.c
+++ b/ddb/db_sym.c
@@ -30,8 +30,8 @@
#if MACH_KDB
+#include <string.h>
#include <mach/std_types.h>
-#include <kern/strings.h>
#include <machine/db_machdep.h>
#include <ddb/db_sym.h>
#include <ddb/db_task_thread.h>