Guide to contribute to kernel video drivers
Jean-Sébastien Pédron
jean-sebastien.pedron at dumbbell.fr
Mon Feb 22 10:55:32 UTC 2016
On 22/02/2016 11:32, Tommi Pernila wrote:
> > Do I right understand that the only way to debug a kernel is to crash
> > it and then analyze a dump using gdb? Is it possible to attach to a
> > running kernel remotely?
>
> It's probably possible to debug a live kernel, but I never did this
> because I don't have a working serial remote access.
>
> Wouldn't this be possible over ssh?
Hi!
This would be the same as connecting to the host with ssh then run kgdb
locally. You need to have a working sshd on the tested host and a
working network stack. Depending on what you do in the kernel, this may
not be the case.
Gdb over serial line works because it's far easier for the kernel to
maintain a working state for a simple serial link than a NIC and
userland applications.
--
Jean-Sébastien Pédron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20160222/bc8de7a9/attachment.sig>
More information about the freebsd-x11
mailing list