[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH, gnumach] ddb: fix implicit declarations
From: |
Marin Ramesa |
Subject: |
[PATCH, gnumach] ddb: fix implicit declarations |
Date: |
Wed, 03 Jul 2013 11:35:31 +0200 |
When building with --enable-kdb.
* ddb/db_break.c: Include ddb/db_access.h.
* ddb/db_examine.h (db_xcdump): Add prototype.
* ddb/db_ext_symtab.c: Include vm/vm_user.h.
* ddb/db_input.c: Include device/cons.h.
* ddb/db_output.c: Likewise.
* ddb/db_command.c: Add extern _setjmp.
* ddb/db_cond.c: Likewise.
diff -Nurp ../gnumach/ddb/db_break.c ../gnumach1/ddb/db_break.c
--- ../gnumach/ddb/db_break.c 2013-07-03 10:03:16.939154126 +0200
+++ ../gnumach1/ddb/db_break.c 2013-07-03 10:13:39.172293546 +0200
@@ -46,6 +46,7 @@
#include <ddb/db_output.h>
#include <ddb/db_cond.h>
#include <ddb/db_expr.h>
+#include <ddb/db_access.h>
#define NBREAKPOINTS 100
#define NTHREAD_LIST (NBREAKPOINTS*3)
diff -Nurp ../gnumach/ddb/db_command.c ../gnumach1/ddb/db_command.c
--- ../gnumach/ddb/db_command.c 2013-07-03 10:03:16.939154126 +0200
+++ ../gnumach1/ddb/db_command.c 2013-07-03 11:10:49.201495677 +0200
@@ -80,6 +80,8 @@ boolean_t db_ed_style = TRUE;
#define CMD_AMBIGUOUS 3
#define CMD_HELP 4
+extern int _setjmp();
+
/*
* Search for command prefix.
*/
diff -Nurp ../gnumach/ddb/db_cond.c ../gnumach1/ddb/db_cond.c
--- ../gnumach/ddb/db_cond.c 2013-07-03 10:03:16.939154126 +0200
+++ ../gnumach1/ddb/db_cond.c 2013-07-03 11:11:02.679288690 +0200
@@ -47,6 +47,8 @@ struct db_cond {
char c_cond_cmd[DB_LEX_LINE_SIZE]; /* cond & cmd */
} db_cond[DB_MAX_COND];
+extern int _setjmp();
+
void
db_cond_free(bkpt)
db_thread_breakpoint_t bkpt;
diff -Nurp ../gnumach/ddb/db_examine.h ../gnumach1/ddb/db_examine.h
--- ../gnumach/ddb/db_examine.h 2013-07-03 10:03:16.940154106 +0200
+++ ../gnumach1/ddb/db_examine.h 2013-07-03 10:27:57.205341927 +0200
@@ -26,8 +26,8 @@
#include <ddb/db_expr.h>
extern void db_examine_cmd (
- db_expr_t addr,
- int have_addr,
+ db_expr_t addr,
+ int have_addr,
db_expr_t count,
char *modif);
@@ -43,4 +43,10 @@ extern void db_print_loc_and_inst (
db_addr_t loc,
task_t task);
+int db_xcdump(
+ db_addr_t addr,
+ int size,
+ int count,
+ task_t task);
+
#endif /* _DDB_DB_EXAMINE_H_ */
diff -Nurp ../gnumach/ddb/db_ext_symtab.c ../gnumach1/ddb/db_ext_symtab.c
--- ../gnumach/ddb/db_ext_symtab.c 2013-07-03 10:03:16.940154106 +0200
+++ ../gnumach1/ddb/db_ext_symtab.c 2013-07-03 10:41:16.416638500 +0200
@@ -33,6 +33,7 @@
#include <mach/vm_param.h>
#include <vm/vm_map.h>
#include <vm/vm_kern.h>
+#include <vm/vm_user.h>
#include <kern/host.h>
#include <kern/task.h>
#include <ddb/db_sym.h>
diff -Nurp ../gnumach/ddb/db_input.c ../gnumach1/ddb/db_input.c
--- ../gnumach/ddb/db_input.c 2013-07-03 10:03:16.940154106 +0200
+++ ../gnumach1/ddb/db_input.c 2013-07-03 10:45:21.153823789 +0200
@@ -32,6 +32,7 @@
#include <mach/boolean.h>
#include <machine/db_machdep.h>
+#include <device/cons.h>
#include <ddb/db_command.h>
#include <ddb/db_input.h>
#include <ddb/db_output.h>
diff -Nurp ../gnumach/ddb/db_output.c ../gnumach1/ddb/db_output.c
--- ../gnumach/ddb/db_output.c 2013-07-03 10:03:16.942154067 +0200
+++ ../gnumach1/ddb/db_output.c 2013-07-03 10:48:22.804996979 +0200
@@ -38,6 +38,7 @@
#include <stdarg.h>
#include <mach/boolean.h>
#include <machine/db_machdep.h>
+#include <device/cons.h>
#include <ddb/db_command.h>
#include <ddb/db_lex.h>
#include <ddb/db_output.h>
- [PATCH, gnumach] ddb: fix implicit declarations,
Marin Ramesa <=