Terminal Handling by kmdb
kmdb
always uses the system console for interaction.
kmdb
determines the appropriate terminal type according to the following rules:
-
If the system being debugged uses an attached keyboard and monitor for its console and the debugger is loaded at boot, the terminal type is determined automatically based upon the platform architecture and console terminal settings.
-
If the system being debugged uses a serial console and the debugger is loaded at boot, the default terminal type is
vt100
. -
If the debugger is loaded by running one of the
mdb -K
commands on the console, the debugger uses the value of the$TERM
environment variable as the terminal type.For information about the various
mdb -K
commands, see kmdb Debugger Entry. -
If the debugger is loaded by running one of the
mdb -K
commands on a terminal that is not the console, the debugger uses the terminal type that is configured for use with the system console login prompt. When you run this command from the terminal, you must include the-F
option on the command line.For information about the
-F
option, see themdb
(1) man page.
You can use the ::term
dcmd from within kmdb
to display the terminal type.