-.\" $OpenBSD: options.4,v 1.248 2017/04/22 11:05:04 visa Exp $
+.\" $OpenBSD: options.4,v 1.249 2017/04/30 20:09:28 mpi Exp $
.\" $NetBSD: options.4,v 1.21 1997/06/25 03:13:00 thorpej Exp $
.\"
.\" Copyright (c) 1998 Theo de Raadt
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\"
-.Dd $Mdocdate: April 22 2017 $
+.Dd $Mdocdate: April 30 2017 $
.Dt OPTIONS 4
.Os
.Sh NAME
.It Cd option GPROF
Adds code to the kernel for kernel profiling with
.Xr kgmon 8 .
-.It Cd option KGDB
-Compiles in a remote kernel debugger stub for diagnosing kernel problems
-using the
-.Dq remote target
-feature of gdb.
-See
-.Xr kgdb 7
-for details.
-.Em Note:
-not available on all architectures.
.It Cd option KTRACE
Adds hooks for the system call tracing facility, which allows users to
watch the system call invocation behavior of processes.
-# $OpenBSD: Makefile,v 1.23 2015/11/14 15:01:39 jmc Exp $
+# $OpenBSD: Makefile,v 1.24 2017/04/30 20:09:28 mpi Exp $
# $NetBSD: Makefile,v 1.6 1994/12/22 10:50:05 cgd Exp $
# missing: term.7
-MAN= ascii.7 eqn.7 environ.7 glob.7 hier.7 hostname.7 intro.7 kgdb.7 \
+MAN= ascii.7 eqn.7 environ.7 glob.7 hier.7 hostname.7 intro.7 \
library-specs.7 mailaddr.7 \
man.7 mandoc_char.7 mdoc.7 mirroring-ports.7 \
operator.7 packages.7 packages-specs.7 pkgpath.7 ports.7 roff.7 \
+++ /dev/null
-.\" $OpenBSD: kgdb.7,v 1.7 2007/05/31 19:19:58 jmc Exp $
-.\"
-.\" Copyright (c) 2001 Hugh Graham
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
-.\" WARRANTIES, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
-.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-.\" IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
-.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
-.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
-.\" IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd $Mdocdate: May 31 2007 $
-.Dt KGDB 7
-.Os
-.Sh NAME
-.Nm kgdb
-.Nd remote kernel debugging with gdb
-.Sh DESCRIPTION
-Should a programmer be dissatisfied with the
-.Ox
-kernel's internal debugger
-.Xr ddb 4 ,
-and have appropriate hardware available, a kernel with
-.Cm option KGDB
-may be built to effect remote debugging with
-.Xr gdb 1
-instead.
-.Pp
-To prepare for debugging over serial line one would:
-.Pp
-.Bl -bullet -offset 3n -compact
-.It
-Obtain a second system and a crossover serial cable.
-.It
-Connect the systems and test the cable.
-.It
-Build a kernel with
-.Cm option KGDB
-and
-.Cm makeoptions DEBUG="-g" .
-.It
-Copy the resultant
-.Pa bsd.gdb
-to the control system, and boot the corresponding
-.Pa bsd
-on the target system.
-.It
-On the control system, run gdb on the kernel just copied.
-.It
-Issue the command "target remote /dev/<serial port>" within gdb.
-The target system should enter
-.Nm
-at this point.
-.It
-Debug as normal and detach when done, the target should resume normal operation.
-.El
-.Sh SEE ALSO
-.Xr gdb 1 ,
-.Xr ddb 4 ,
-.Xr options 4
-.Pp
-gdb info documents and online documentation.
-.Sh CAVEATS
-The remote connection will introduce certain latencies a local debugger
-would not see.
-.Pp
-Not available on all architectures.
-.\" $OpenBSD: uvm.9,v 1.64 2015/11/25 16:20:36 jmc Exp $
+.\" $OpenBSD: uvm.9,v 1.65 2017/04/30 20:09:28 mpi Exp $
.\" $NetBSD: uvm.9,v 1.14 2000/06/29 06:08:44 mrg Exp $
.\"
.\" Copyright (c) 1998 Matthew R. Green
.\" XXX this manual sets nS to 1 or 0 in the description, to obtain
.\" synopsis-like function prototypes. any better way?
.\"
-.Dd $Mdocdate: November 25 2015 $
+.Dd $Mdocdate: April 30 2017 $
.Dt UVM_INIT 9
.Os
.Sh NAME
it if removing the last reference.
.Pp
The
-.Fn uvm_chgkprot
-function changes the protection of kernel memory from
-.Fa addr
-to
-.Fa addr + len
-to the value of
-.Fa rw .
-This is primarily useful for debuggers, for setting breakpoints.
-This function is only available with options
-.Dv KGDB .
-.Pp
-The
.Fn uvm_kernacc
function checks the access at address
.Fa addr
-.\" $OpenBSD: config.8,v 1.61 2016/03/13 08:39:29 jmc Exp $
+.\" $OpenBSD: config.8,v 1.62 2017/04/30 20:09:27 mpi Exp $
.\" $NetBSD: config.8,v 1.10 1996/08/31 20:58:16 mycroft Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\"
.\" from: @(#)config.8 8.2 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: March 13 2016 $
+.Dd $Mdocdate: April 30 2017 $
.Dt CONFIG 8
.Os
.Sh NAME
To debug kernels and their crash dumps with gdb, add
.Dq makeoptions DEBUG="-g"
to the kernel configuration file, along with (typically)
-.Dq option KGDB .
-Refer to
-.Xr options 4
-for further details.
.Pp
Many other statements exist, and the file format is fairly rich; for more
information see the various configuration files included in the system, as