michael schuster wrote:
Tom Chen wrote:
Hello,
I am searching a good debugger to debug my network driver. Which do
you guys use?
kmdb looks better than DTrace, in that it enables breakpoint, step
in, step over. However, on my x86, nv61, the [b]mdb -K[/b] command
does not invoke it. "
#mdb -K
mdb:-F must also be supplied to start kmdb from non-console tty "
but, mdb -K -F makes server hang up.
kmdb can be started from a non-console tty ... but it cannot talk to
one, AFAIK. What that amounts to is that as long as you're not
connected to such a tty, you won't be able to interact with kmdb.
If the server has an asy port, then connect it the asy port in another
machine with a DB9 serial line, and do like this:
#tip -9600 /dev/ttya ---in one terminal in another machine which is
connected by the serial line.
then in your server,
#eeprom console=ttya
#reboot
...
#tip -9600 /dev/ttya ---in one terminal
#mdb -KF --- in another terminal
you can step debug now.
Alternatively, if you have no DB9 serial line, you can run kmdb with
command-line login.
BTW, then 'mdb -K -F makes server hang up', :c can recover it.
--Brian
HTH
Michael
_______________________________________________
networking-discuss mailing list
[email protected]