diff options
author | 2016-01-25 14:30:30 +0000 | |
---|---|---|
committer | 2016-01-25 14:30:30 +0000 | |
commit | 45b37e65cdafd132228e2196908bea608c4aa0c2 (patch) | |
tree | 4adb3bad50e5e02d4ed5e0a97da3a242c840d560 | |
parent | Add short comments explaining HT protection modes. (diff) | |
download | wireguard-openbsd-45b37e65cdafd132228e2196908bea608c4aa0c2.tar.xz wireguard-openbsd-45b37e65cdafd132228e2196908bea608c4aa0c2.zip |
Kill trailing whitespaces. No object change.
-rw-r--r-- | sys/ddb/db_access.c | 18 | ||||
-rw-r--r-- | sys/ddb/db_access.h | 14 | ||||
-rw-r--r-- | sys/ddb/db_break.c | 18 | ||||
-rw-r--r-- | sys/ddb/db_break.h | 14 | ||||
-rw-r--r-- | sys/ddb/db_command.c | 28 | ||||
-rw-r--r-- | sys/ddb/db_command.h | 14 | ||||
-rw-r--r-- | sys/ddb/db_dwarf.c | 4 | ||||
-rw-r--r-- | sys/ddb/db_elf.c | 10 | ||||
-rw-r--r-- | sys/ddb/db_expr.c | 14 | ||||
-rw-r--r-- | sys/ddb/db_input.c | 18 | ||||
-rw-r--r-- | sys/ddb/db_lex.c | 16 | ||||
-rw-r--r-- | sys/ddb/db_lex.h | 16 | ||||
-rw-r--r-- | sys/ddb/db_print.c | 14 | ||||
-rw-r--r-- | sys/ddb/db_run.c | 20 | ||||
-rw-r--r-- | sys/ddb/db_run.h | 14 | ||||
-rw-r--r-- | sys/ddb/db_sym.c | 20 | ||||
-rw-r--r-- | sys/ddb/db_sym.h | 12 | ||||
-rw-r--r-- | sys/ddb/db_trap.c | 14 | ||||
-rw-r--r-- | sys/ddb/db_variables.c | 14 | ||||
-rw-r--r-- | sys/ddb/db_variables.h | 14 | ||||
-rw-r--r-- | sys/ddb/db_watch.c | 14 | ||||
-rw-r--r-- | sys/ddb/db_watch.h | 14 |
22 files changed, 167 insertions, 167 deletions
diff --git a/sys/ddb/db_access.c b/sys/ddb/db_access.c index 6bac42b48ab..ad0134d1a5b 100644 --- a/sys/ddb/db_access.c +++ b/sys/ddb/db_access.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_access.c,v 1.13 2014/12/19 22:44:58 guenther Exp $ */ +/* $OpenBSD: db_access.c,v 1.14 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_access.c,v 1.8 1994/10/09 08:37:35 mycroft Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 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 + * + * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS * 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 the * the rights to redistribute these changes. * @@ -63,7 +63,7 @@ db_get_value(db_addr_t addr, size_t size, boolean_t is_signed) for (i = 0; i < size; i++) #endif /* BYTE_ORDER */ value = (value << 8) + (data[i] & 0xFF); - + if (size < sizeof(db_expr_t) && is_signed && (value & extend)) value |= extend; return (value); diff --git a/sys/ddb/db_access.h b/sys/ddb/db_access.h index 540ed72a5da..1f779903c7d 100644 --- a/sys/ddb/db_access.h +++ b/sys/ddb/db_access.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_access.h,v 1.5 2002/03/14 01:26:51 millert Exp $ */ +/* $OpenBSD: db_access.h,v 1.6 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_access.h,v 1.6 1994/10/09 08:29:57 mycroft Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_break.c b/sys/ddb/db_break.c index ca3ec1e45c6..554ec27c138 100644 --- a/sys/ddb/db_break.c +++ b/sys/ddb/db_break.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_break.c,v 1.17 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_break.c,v 1.18 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_break.c,v 1.7 1996/03/30 22:30:03 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * @@ -89,7 +89,7 @@ db_set_breakpoint(db_addr_t addr, int count) if (!DB_VALID_BREAKPOINT(addr)) { db_printf("Not a valid address for a breakpoint.\n"); return; - } + } #endif bkpt = db_breakpoint_alloc(); @@ -184,7 +184,7 @@ db_set_temp_breakpoint(db_addr_t addr) if (!DB_VALID_BREAKPOINT(addr)) { db_printf("Not a valid address for a breakpoint.\n"); return (0); - } + } #endif bkpt = db_breakpoint_alloc(); diff --git a/sys/ddb/db_break.h b/sys/ddb/db_break.h index 27f411b4859..4f11106d63e 100644 --- a/sys/ddb/db_break.h +++ b/sys/ddb/db_break.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_break.h,v 1.9 2010/11/27 19:59:11 miod Exp $ */ +/* $OpenBSD: db_break.h,v 1.10 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_break.h,v 1.8 1996/02/05 01:56:52 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c index ef9d3709d0b..cdccdc80dd6 100644 --- a/sys/ddb/db_command.c +++ b/sys/ddb/db_command.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_command.c,v 1.67 2016/01/15 11:21:58 dlg Exp $ */ +/* $OpenBSD: db_command.c,v 1.68 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_command.c,v 1.20 1996/03/30 22:30:05 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. */ @@ -289,7 +289,7 @@ db_buf_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) if (modif[0] == 'f') full = TRUE; - + vfs_buf_print((void *) addr, full, db_printf); } @@ -298,7 +298,7 @@ void db_map_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { boolean_t full = FALSE; - + if (modif[0] == 'f') full = TRUE; @@ -389,7 +389,7 @@ void db_object_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { boolean_t full = FALSE; - + if (modif[0] == 'f') full = TRUE; @@ -401,7 +401,7 @@ void db_page_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { boolean_t full = FALSE; - + if (modif[0] == 'f') full = TRUE; @@ -409,7 +409,7 @@ db_page_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) } /*ARGSUSED*/ -void +void db_vnode_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { boolean_t full = FALSE; @@ -422,7 +422,7 @@ db_vnode_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) #ifdef NFSCLIENT /*ARGSUSED*/ -void +void db_nfsreq_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { @@ -435,7 +435,7 @@ db_nfsreq_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, } /*ARGSUSED*/ -void +void db_nfsnode_print_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) { diff --git a/sys/ddb/db_command.h b/sys/ddb/db_command.h index 087e5e87145..0803aae41ac 100644 --- a/sys/ddb/db_command.h +++ b/sys/ddb/db_command.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_command.h,v 1.30 2010/11/05 15:17:50 claudio Exp $ */ +/* $OpenBSD: db_command.h,v 1.31 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_command.h,v 1.8 1996/02/05 01:56:55 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_dwarf.c b/sys/ddb/db_dwarf.c index 6c14828e3c7..83620061e44 100644 --- a/sys/ddb/db_dwarf.c +++ b/sys/ddb/db_dwarf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_dwarf.c,v 1.2 2015/07/07 19:31:02 matthew Exp $ */ +/* $OpenBSD: db_dwarf.c,v 1.3 2016/01/25 14:30:30 mpi Exp $ */ /* * Copyright (c) 2014 Matthew Dempsky <matthew@dempsky.org> * @@ -18,7 +18,7 @@ #ifdef _KERNEL #include <sys/param.h> #include <sys/stdint.h> -#include <sys/systm.h> +#include <sys/systm.h> #include <sys/types.h> #include <ddb/db_dwarf.h> #ifdef DIAGNOSTIC diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c index c5bc1546d01..8d8aac80d66 100644 --- a/sys/ddb/db_elf.c +++ b/sys/ddb/db_elf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_elf.c,v 1.13 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_elf.c,v 1.14 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_elf.c,v 1.13 2000/07/07 21:55:18 jhawk Exp $ */ /*- @@ -34,7 +34,7 @@ #include <sys/types.h> #include <sys/stdint.h> #include <sys/param.h> -#include <sys/systm.h> +#include <sys/systm.h> #include <sys/exec.h> #include <machine/db_machdep.h> @@ -170,9 +170,9 @@ db_elf_sym_init(int symsize, void *symtab, void *esymtab, const char *name) strtab_end = (char *)symtab + shp[i].sh_offset + shp[i].sh_size; } else if (strcmp(".symtab", shstrtab+shp[i].sh_name) == 0) { - symtab_start = (Elf_Sym *)((char *)symtab + + symtab_start = (Elf_Sym *)((char *)symtab + shp[i].sh_offset); - symtab_end = (Elf_Sym *)((char *)symtab + + symtab_end = (Elf_Sym *)((char *)symtab + shp[i].sh_offset + shp[i].sh_size); } } @@ -198,7 +198,7 @@ db_elf_sym_init(int symsize, void *symtab, void *esymtab, const char *name) if (db_add_symbol_table((char *)symtab_start, (char *)symtab_end, name, (char *)symtab) != -1) { db_printf("[ using %lu bytes of %s ELF symbol table ]\n", - (u_long)roundup(((char *)esymtab - (char *)symtab), + (u_long)roundup(((char *)esymtab - (char *)symtab), sizeof(u_long)), name); return (TRUE); } diff --git a/sys/ddb/db_expr.c b/sys/ddb/db_expr.c index 20c7d432c10..8eddf3fd282 100644 --- a/sys/ddb/db_expr.c +++ b/sys/ddb/db_expr.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_expr.c,v 1.11 2014/09/14 14:17:24 jsg Exp $ */ +/* $OpenBSD: db_expr.c,v 1.12 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_expr.c,v 1.5 1996/02/05 01:56:58 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c index 729311ef75d..2adae7316de 100644 --- a/sys/ddb/db_input.c +++ b/sys/ddb/db_input.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_input.c,v 1.14 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_input.c,v 1.15 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_input.c,v 1.7 1996/02/05 01:57:02 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * @@ -62,7 +62,7 @@ char * db_history_curr = db_history; /* start of current line */ char * db_history_last = db_history; /* start of last line */ char * db_history_prev = (char *) 0; /* start of previous line */ #endif - + #define CTRL(c) ((c) & 0x1f) #define isspace(c) ((c) == ' ' || (c) == '\t') @@ -130,7 +130,7 @@ db_delete_line(void) db_history_size - 1; \ } while (0) #endif - + /* returns TRUE at end-of-line */ int db_inputchar(int c) diff --git a/sys/ddb/db_lex.c b/sys/ddb/db_lex.c index 4cd2297f297..6f9e25a2cfe 100644 --- a/sys/ddb/db_lex.c +++ b/sys/ddb/db_lex.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_lex.c,v 1.12 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_lex.c,v 1.13 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_lex.c,v 1.8 1996/02/05 01:57:05 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * @@ -83,7 +83,7 @@ db_read_char(void) } else if (db_lp >= db_endlp) c = -1; - else + else c = *db_lp++; return (c); } diff --git a/sys/ddb/db_lex.h b/sys/ddb/db_lex.h index 79571bb866f..359e7493d86 100644 --- a/sys/ddb/db_lex.h +++ b/sys/ddb/db_lex.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_lex.h,v 1.7 2002/07/01 21:56:55 miod Exp $ */ +/* $OpenBSD: db_lex.h,v 1.8 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_lex.h,v 1.7 1996/02/05 01:57:07 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * @@ -43,7 +43,7 @@ void db_flush_lex(void); int db_lex(void); extern db_expr_t db_tok_number; -#define TOK_STRING_SIZE 120 +#define TOK_STRING_SIZE 120 extern char db_tok_string[TOK_STRING_SIZE]; #define tEOF (-1) diff --git a/sys/ddb/db_print.c b/sys/ddb/db_print.c index 8879af7a30c..a5b0028a511 100644 --- a/sys/ddb/db_print.c +++ b/sys/ddb/db_print.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_print.c,v 1.15 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_print.c,v 1.16 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_print.c,v 1.5 1996/02/05 01:57:11 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_run.c b/sys/ddb/db_run.c index fb427ad47ff..f301c1cb40c 100644 --- a/sys/ddb/db_run.c +++ b/sys/ddb/db_run.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_run.c,v 1.25 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_run.c,v 1.26 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_run.c,v 1.8 1996/02/05 01:57:12 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * @@ -118,7 +118,7 @@ db_stop_at_pc(db_regs_t *regs, boolean_t *is_breakpoint) #endif } db_clear_single_step(regs); - + *is_breakpoint = FALSE; if (db_run_mode == STEP_INVISIBLE) { @@ -315,7 +315,7 @@ db_continue_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) * getreg_val(regs, reg), return the value of a user register, * as indicated in the hardware instruction * encoding, e.g. 8 for r8 - * + * * next_instr_address(pc, bd) returns the address of the first * instruction following the one at "pc", * which is either in the taken path of @@ -327,7 +327,7 @@ db_continue_cmd(db_expr_t addr, int have_addr, db_expr_t count, char *modif) * If one of these addresses does not already have a breakpoint, * we allocate a breakpoint and save it here. * These breakpoints are deleted on return. - */ + */ void db_set_single_step(db_regs_t *regs) diff --git a/sys/ddb/db_run.h b/sys/ddb/db_run.h index 0f9004f0f66..35351cdd151 100644 --- a/sys/ddb/db_run.h +++ b/sys/ddb/db_run.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_run.h,v 1.10 2010/11/27 19:57:23 miod Exp $ */ +/* $OpenBSD: db_run.h,v 1.11 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_run.h,v 1.3 1996/02/05 01:57:14 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index 60224dc2552..c9876cbb132 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_sym.c,v 1.39 2015/12/23 01:39:02 mmcc Exp $ */ +/* $OpenBSD: db_sym.c,v 1.40 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. */ @@ -295,7 +295,7 @@ db_lookup(char *symstr) * Return on first match. */ for (i = symtab_start; i < symtab_end; i++) { - if (db_symtabs[i].name && + if (db_symtabs[i].name && (sp = X_db_lookup(&db_symtabs[i], symstr))) { db_last_symtab = &db_symtabs[i]; return sp; @@ -328,7 +328,7 @@ db_sift(db_symtab_t *stab, db_sym_t sym, char *name, char *suffix, int prefix, find = dsa->symstr; /* String we're looking for. */ p = name; /* String we're searching within. */ - + /* Matching algorithm cribbed from strstr(), which is not in the kernel. */ if ((c = *find++) != 0) { @@ -584,7 +584,7 @@ X_db_symbol_values(db_symtab_t *stab, db_sym_t sym, char **namep, db_expr_t *valuep) { - if (db_symformat != NULL) + if (db_symformat != NULL) (*db_symformat->sym_value)(stab, sym, namep, valuep); } diff --git a/sys/ddb/db_sym.h b/sys/ddb/db_sym.h index d171c701395..976dab9e46e 100644 --- a/sys/ddb/db_sym.h +++ b/sys/ddb/db_sym.h @@ -1,27 +1,27 @@ /* $NetBSD: db_sym.h,v 1.13 2000/05/25 19:57:36 jhawk Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_trap.c b/sys/ddb/db_trap.c index 0c8cb5adf7c..bea2d8d693e 100644 --- a/sys/ddb/db_trap.c +++ b/sys/ddb/db_trap.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_trap.c,v 1.23 2015/09/13 08:28:10 guenther Exp $ */ +/* $OpenBSD: db_trap.c,v 1.24 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_trap.c,v 1.9 1996/02/05 01:57:18 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_variables.c b/sys/ddb/db_variables.c index 1d05b3f8e26..3e3f41b3ac7 100644 --- a/sys/ddb/db_variables.c +++ b/sys/ddb/db_variables.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_variables.c,v 1.17 2015/03/14 05:48:17 tedu Exp $ */ +/* $OpenBSD: db_variables.c,v 1.18 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_variables.c,v 1.8 1996/02/05 01:57:19 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. */ diff --git a/sys/ddb/db_variables.h b/sys/ddb/db_variables.h index 92426c3da0b..ca58c4161f9 100644 --- a/sys/ddb/db_variables.h +++ b/sys/ddb/db_variables.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_variables.h,v 1.7 2006/07/06 19:05:58 miod Exp $ */ +/* $OpenBSD: db_variables.h,v 1.8 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_variables.h,v 1.5 1996/02/05 01:57:21 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_watch.c b/sys/ddb/db_watch.c index b08c4c986c7..adec2582db9 100644 --- a/sys/ddb/db_watch.c +++ b/sys/ddb/db_watch.c @@ -1,28 +1,28 @@ -/* $OpenBSD: db_watch.c,v 1.14 2015/03/14 03:38:46 jsg Exp $ */ +/* $OpenBSD: db_watch.c,v 1.15 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_watch.c,v 1.9 1996/03/30 22:30:12 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * diff --git a/sys/ddb/db_watch.h b/sys/ddb/db_watch.h index 1c14f78c431..850aa9aec93 100644 --- a/sys/ddb/db_watch.h +++ b/sys/ddb/db_watch.h @@ -1,28 +1,28 @@ -/* $OpenBSD: db_watch.h,v 1.9 2010/11/27 19:59:11 miod Exp $ */ +/* $OpenBSD: db_watch.h,v 1.10 2016/01/25 14:30:30 mpi Exp $ */ /* $NetBSD: db_watch.h,v 1.9 1996/02/05 01:57:24 christos Exp $ */ -/* +/* * Mach Operating System * Copyright (c) 1993,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. * |