KGDB(1) | MidnightBSD General Commands Manual | KGDB(1) |
kgdb
— kernel
debugger
kgdb |
[-a | -f |
-fullname ] [-b
rate] [-q |
-quiet ] [-v ]
[-w ] [-d
crashdir] [-c
core | -n
dumpnr | -r
device] [kernel
[core]] |
This version of kgdb
is deprecated and
will be removed from future versions of the FreeBSD
base system. A newer version of kgdb
is available
from ports or packages (devel/gdb).
The kgdb
utility is a debugger based on
gdb(1) that allows debugging
of kernel core files.
The options are as follows:
-a
-fullname
option of
gdb(1). This is useful
when running kgdb
in Emacs. The
-f
or -fullname
options
are supported for backward compatibility as well.-b
rate-q
-quiet
form is supported for compatibility as
well.-v
-w
--wcore
used to do in previous gdb versions for
FreeBSD.)-d
crashdir-c
core-n
dumpnr-r
devicekgdb
to for a remote debugging session.The -c
, -n
, and
-r
options are mutually exclusive.
Optionally, the name of the kernel symbol file and the name of the core dump file can be supplied on the command-line as positional arguments. If no kernel symbol file name has been given, the symbol file of the currently running kernel will be used. If no core dump file has been specified through either of the options or the last command-line argument, /dev/mem will be opened to allow debugging the currently running kernel.
The kgdb
utility first appeared in its
current form in FreeBSD 5.3.
July 5, 2017 | midnightbsd-3.1 |