kgdb utility is a debugger based on
allows debugging of kernel core files.
The options are as follows:
- Increase the annotation level. An annotation level of 1 features the
-fullname option of
This is useful when running
kgdb in Emacs. The
are supported for backward compatibility as well.
- Set the baudrate to rate.
- Suppress printing of the banner when the debugger starts. The
-quiet form is supported for compatibility as
- Increase verbosity.
- Opens kmem-based targets in read-write mode. (This is identical to what
--wcore used to do in previous gdb versions for
- 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.
- Explicitly use core as the core dump file.
- Use the kernel core dump file numbered dumpnr for
- Use device to connect
to for a remote debugging session.
-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.
- Default memory image to open if no core dump file has been specified.
- Default directory to locate kernel core dump files.
kgdb utility first appeared in its current form in