Date: Sun, 20 Jul 2014 23:24:46 -0700 From: Nidal Khalil <nedmath@gmail.com> To: freebsd-questions@freebsd.org Subject: Remote kernel debugging question Message-ID: <CADoY-6jtj9COEiKvu2m2xjeGvY-Uir=r4ioUy86%2BaYpJ9_1ovw@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello All, I am somewhat new to BSD kernel but I am trying to debug a kernel module using remote debugging. I am using 9.2 RELEASE. I setup and compiled the kernel with the following: makeoptions DEBUG=-g options KDB options KDB_TRACE options DDB_CTF options DDB options GDB options ALT_BREAK_TO_DEBUGGER I setup the uart for serial1 flags to 0x90 and I can read and write to the serial from either machine Both machines have the same kernel booted. I can enter ddb but I can not launch gdb The remote GDB backend could not be selected. sysctl -a | grep debug.kdb debug.kdb.available: ddb Is that correct or it should be: debug.kdb.available: ddb gdb How do I enable gdb backend. Thanks Nidal
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADoY-6jtj9COEiKvu2m2xjeGvY-Uir=r4ioUy86%2BaYpJ9_1ovw>