From 3527b78c645a5898c7ddbeb3128a49c21514cb1c Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sat, 6 Jan 2007 14:27:21 +0000 Subject: 2006-01-06 Thomas Schwinge * ddb/db_break.c (db_delete_thread_breakpoint): Don't declare `db_cond_free'. * ddb/db_run.c: Include . (db_stop_at_pc): Don't declare `db_cond_check'. * ddb/db_input.c: Include . * ddb/db_macro.c: Include . * ddb/db_trap.c: Include . * i386/i386/db_interface.h: Include . * i386/i386/db_interface.c: Include . * i386/i386/db_machdep.h: Include . (db_check_access, db_phys_eq, db_task_name): Remove declarations. 2006-01-06 Barry deFreese * ddb/db_aout.c: Include . * ddb/db_break.c: Include , and . (db_delete_cmd, db_breakpoint_cmd): Explicitly define untyped variables as `int'. * ddb/db_command.c: Include , and . * ddb/db_command.h (db_exec_cmd_nest): New declaration. * ddb/db_cond.c: Include , and . (db_cond_cmd): Explicitly define untyped variable as `int'. * ddb/db_cond.h: New file. * ddb/db_examine.c: Include , and . (db_strcpy, db_examine): Remove forward declarations. (db_xcdump): Explicitly define untyped variables as `int'. * ddb/db_examine.h: New file. * ddb/db_expr.c: Include , , and . * ddb/db_input.c: Include . * ddb/db_input.h: New file. * ddb/db_lex.c: Include , , and . (db_skip_to_eol, db_lex): Explicitly define untyped variables as `int'. * ddb/db_lex.h (db_lex): New declaration. * ddb/db_macro.c: Include , and . (db_def_macro_cmd, db_exec_macro): Explicitly define untyped variables as `int'. * ddb/db_macro.h: New file. * ddb/db_output.c: Include . * ddb/db_output.h (db_putchar): New declaration. * ddb/db_print.c: Include , and . (db_show_regs): Explicitly define untyped variables as `int'. * ddb/db_run.c: Include , , and . * ddb/db_run.h: Include and . (db_single_step, db_single_step_cmd, db_in_single_step): New declarations. * ddb/db_sym.c: Include and . (db_sym_parse_and_lookup): Explicitly define untyped variables as `int'. * ddb/db_sym.h (db_line_at_pc): New declaration. * ddb/db_task_thread.c: Include , , and . (db_lookup_task, db_lookup_task_thread, db_lookup_thread) (db_lookup_task_id, db_lookup_thread_id): Explicitly define untyped variables as `int'. * ddb/db_trap.c: Include and . * ddb/db_trap.h: New file. * ddb/db_variables.c: Include , , and . (db_get_suffix, db_cmp_variable_name): Explicitly define untyped variables as `int'. * ddb/db_variables.h (db_get_variable): New declaration. * ddb/db_watch.c: Include , , and . * ddb/db_write_cmd.c: Include and . * i386/i386/db_interface.c: Include , , , , and . (kdbprinttrap): Add `void' return type. (db_user_to_kernel_address, db_task_name): Explicitly define untyped variables as `int'. * i386/i386/db_interface.h: New file. * i386/i386/db_trace.c (db_i386_reg_value): Add `int' return type. * i386/i386/trap.c [MACH_KDB]: Include and . * ipc/ipc_kmsg.c [MACH_KDB]: Include . * kern/lock.c [MACH_KDB]: Include . --- ddb/db_break.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'ddb/db_break.c') diff --git a/ddb/db_break.c b/ddb/db_break.c index 777ad34..f07e2cc 100644 --- a/ddb/db_break.c +++ b/ddb/db_break.c @@ -43,6 +43,9 @@ #include #include #include +#include +#include +#include #define NBREAKPOINTS 100 #define NTHREAD_LIST (NBREAKPOINTS*3) @@ -122,7 +125,6 @@ db_delete_thread_breakpoint(bkpt, task_thd) { register db_thread_breakpoint_t tp; register db_thread_breakpoint_t *tpp; - void db_cond_free(); if (task_thd == 0) { /* delete all the thread-breakpoints */ @@ -594,7 +596,7 @@ db_list_breakpoints() void db_delete_cmd() { - register n; + register int n; thread_t thread; vm_offset_t task_thd; boolean_t user_global = FALSE; @@ -677,7 +679,7 @@ db_breakpoint_cmd(addr, have_addr, count, modif) db_expr_t count; char * modif; { - register n; + register int n; thread_t thread; boolean_t user_global = db_option(modif, 'U'); boolean_t task_bpt = db_option(modif, 'T'); -- cgit v1.2.3