From: mpi Date: Sun, 30 Apr 2017 20:09:27 +0000 (+0000) Subject: Remove KGDB references. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b4458f21240b8c6707ee326ae6d58eac71c07d5c;p=openbsd Remove KGDB references. --- diff --git a/share/man/man4/options.4 b/share/man/man4/options.4 index 2ea72033236..5890430914e 100644 --- a/share/man/man4/options.4 +++ b/share/man/man4/options.4 @@ -1,4 +1,4 @@ -.\" $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 @@ -34,7 +34,7 @@ .\" 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 @@ -114,16 +114,6 @@ structures is detected. .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. diff --git a/share/man/man7/Makefile b/share/man/man7/Makefile index b7b6b002961..35d2686d0ae 100644 --- a/share/man/man7/Makefile +++ b/share/man/man7/Makefile @@ -1,9 +1,9 @@ -# $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 \ diff --git a/share/man/man7/kgdb.7 b/share/man/man7/kgdb.7 deleted file mode 100644 index 26d731ef6fa..00000000000 --- a/share/man/man7/kgdb.7 +++ /dev/null @@ -1,81 +0,0 @@ -.\" $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/" 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. diff --git a/share/man/man9/uvm.9 b/share/man/man9/uvm.9 index 4624f2c10f4..9a8009389c8 100644 --- a/share/man/man9/uvm.9 +++ b/share/man/man9/uvm.9 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" 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 @@ -860,18 +860,6 @@ removes a reference from the named anonymous memory object, destroying 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 diff --git a/usr.sbin/config/config.8 b/usr.sbin/config/config.8 index 3b479f4c327..8e158a55ba2 100644 --- a/usr.sbin/config/config.8 +++ b/usr.sbin/config/config.8 @@ -1,4 +1,4 @@ -.\" $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 @@ -30,7 +30,7 @@ .\" .\" 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 @@ -218,10 +218,6 @@ decide what should happen. 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