From f34cc6d5a8bad7a6c34f30917c3f137c886d29bf Mon Sep 17 00:00:00 2001 From: Samuel Thibault <samuel.thibault@ens-lyon.org> Date: Mon, 4 Feb 2013 11:56:51 +0100 Subject: Include machine/db_interface instead of hardcoding function prototypes * ddb/db_access.c: Include <machine/db_interface.h>. (db_read_bytes, db_write_bytes): Remove functions prototypes. (db_get_task_value): Fix calling db_read_bytes. (db_put_task_value): Fix calling db_write_bytes. * ddb/db_watch.c: Include <machine/db_interface.h>. (db_set_hw_watchpoint, db_clear_hw_watchpoint): Remove functions prototypes. --- ddb/db_watch.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'ddb/db_watch.c') diff --git a/ddb/db_watch.c b/ddb/db_watch.c index 7eb99953..a2f852bd 100644 --- a/ddb/db_watch.c +++ b/ddb/db_watch.c @@ -37,6 +37,7 @@ #include <vm/vm_map.h> #include <machine/db_machdep.h> +#include <machine/db_interface.h> #include <ddb/db_command.h> #include <ddb/db_lex.h> #include <ddb/db_watch.h> @@ -55,9 +56,6 @@ boolean_t db_watchpoints_inserted = TRUE; -extern boolean_t db_set_hw_watchpoint(db_watchpoint_t watch, unsigned hw_idx); -extern boolean_t db_clear_hw_watchpoint(unsigned hw_idx); - #define NWATCHPOINTS 100 struct db_watchpoint db_watch_table[NWATCHPOINTS]; db_watchpoint_t db_next_free_watchpoint = &db_watch_table[0]; -- cgit v1.2.3