Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Jul 2014 14:58:24 -0700
From:      Nidal Khalil <nedmath@gmail.com>
To:        Benjamin Kaduk <bjk@freebsd.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Remote kernel debugging question
Message-ID:  <CADoY-6hcD6ACwFVgX-LJ2cXHL35-bO%2BF8NYZ69vf3VDpg0DAAA@mail.gmail.com>
In-Reply-To: <alpine.GSO.1.10.1407211754470.21571@multics.mit.edu>
References:  <CADoY-6j0d9pBn-TDoMf5gysE8QiGz42DCFGLDWASig-wqLiMbg@mail.gmail.com> <alpine.GSO.1.10.1407211754470.21571@multics.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ben,
Yes I am familiar with the doc. As


On Mon, Jul 21, 2014 at 2:55 PM, Benjamin Kaduk <bjk@freebsd.org> wrote:

> On Mon, 21 Jul 2014, Nidal Khalil wrote:
>
>  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. I appreciate the help.
>>
>
> I do not think I have actually used remote GDB kernel debugging on my own
> machines, but I wanted to make sure that you had seen the documentation for
> doing so, available at http://www.freebsd.org/doc/en/
> books/developers-handbook/kerneldebug-online-gdb.html .  If it is
> incorrect, we should update it to be correct.
>
> Thanks,
>
> Ben Kaduk
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADoY-6hcD6ACwFVgX-LJ2cXHL35-bO%2BF8NYZ69vf3VDpg0DAAA>