--- Gnu-Mach/ddb/db_write_cmd.c 2020/09/02 04:36:57 1.1 +++ Gnu-Mach/ddb/db_write_cmd.c 2020/09/02 04:48:16 1.1.1.4 @@ -1,25 +1,25 @@ -/* +/* * Mach Operating System * Copyright (c) 1992,1991,1990 Carnegie Mellon University * All Rights Reserved. - * + * * Permission to use, copy, modify and distribute this software and its * documentation is hereby granted, provided that both the copyright * notice and this permission notice appear in all copies of the * software, derivative works or modified versions, and any portions * thereof, and that both notices appear in supporting documentation. - * + * * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * + * * Carnegie Mellon requests users of this software to return to - * + * * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU * School of Computer Science * Carnegie Mellon University * Pittsburgh PA 15213-3890 - * + * * any improvements or extensions that they make and grant Carnegie Mellon * the rights to redistribute these changes. */ @@ -28,7 +28,6 @@ * Date: 7/90 */ -#include "mach_kdb.h" #if MACH_KDB #include @@ -40,6 +39,8 @@ #include #include #include +#include +#include #include #include @@ -54,12 +55,12 @@ db_write_cmd(address, have_addr, count, db_expr_t address; boolean_t have_addr; db_expr_t count; - char * modif; + const char * modif; { - register db_addr_t addr; - register db_expr_t old_value; + db_addr_t addr; + db_expr_t old_value; db_expr_t new_value; - register int size; + int size; boolean_t wrote_one = FALSE; boolean_t t_opt, u_opt; thread_t thread; @@ -68,7 +69,7 @@ db_write_cmd(address, have_addr, count, addr = (db_addr_t) address; size = db_size_option(modif, &u_opt, &t_opt); - if (t_opt) + if (t_opt) { if (!db_get_next_thread(&thread, 0)) return; @@ -76,8 +77,8 @@ db_write_cmd(address, have_addr, count, } else task = db_current_task(); - - /* if user space is not explicitly specified, + + /* if user space is not explicitly specified, look in the kernel */ if (!u_opt) task = TASK_NULL; @@ -106,4 +107,4 @@ db_write_cmd(address, have_addr, count, db_prev = addr - size; } -#endif MACH_KDB +#endif /* MACH_KDB */