GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
KGDB(1) FreeBSD 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]]

The kgdb utility is a debugger based on gdb(1) that allows debugging of kernel core files.

The options are as follows:

Increase the annotation level. An annotation level of 1 features the historical -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.
rate
Set the baudrate to rate.
Suppress printing of the banner when the debugger starts. The -quiet form is supported for compatibility as well.
Increase verbosity.
Opens kmem-based targets in read-write mode. (This is identical to what --wcore used to do in previous gdb versions for FreeBSD.)
crashdir
Use crashdir instead of the default, /var/crash to locate kernel core dump files in. The name vmcore. plus the dump number will be appended to determine the actual dump file name.
core
Explicitly use core as the core dump file.
dumpnr
Use the kernel core dump file numbered dumpnr for debugging.
device
Use device to connect kgdb 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.

/dev/mem
Default memory image to open if no core dump file has been specified.
/var/crash
Default directory to locate kernel core dump files.

gdb(1)

The kgdb utility first appeared in its current form in FreeBSD 5.3.
October 11, 2006 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.