On 14/11/14 01:29, joaoandrefe...@sapo.pt wrote:
> Citando Daniel Thompson <daniel.thomp...@linaro.org>:
> 
>> On 06/11/14 23:36, joaoandrefe...@sapo.pt wrote:
>>> Good evening,
>>>
>>> I'm wondering how complex (or possible) would be to instrument locally
>>> KGDB on the target machine, i. e., somehow remove the serial
>>> connection (and the host machine, GDB) from the setup, since on this
>>> new scenario the host (GDB) and the target (KGDB) would run on the
>>> same machine. Is this idea as absurd as it possibly seems?
>>
>> Normally if you have to do self hosted kernel debug you would enable kdb
>> instead.
>>
>> I only really bring this up because in a previous post you linked to an
>> old copy of the kgdb manual which predated the merging of kdb into the
>> kernel. Either way you might prefer to refer to this instead:
>>
>>     https://www.kernel.org/doc/htmldocs/kgdb/index.html
>>
>>
>> Daniel.
> 
> I'm using KGDB to do some fault-injection into the kernel. I found that
> link while searching for some KGDB documentation. I've heard of KDB
> before, but never really tried it. I've also read somewhere that it is
> also much less powerful than KGDB, but of course I don't know if this is
> really true, I think it will also depend on the goal we have in mind.
> Did you ever used it? And do you know if it's included in the kernel,
> like KGDB?

It's included in the kernel and uses the same debug core operations. I
guess this means, technically speaking, its equivalently powerful (same
memory access, same breakpointing approach, etc). However in practice it
is less powerful because it has no support for symbolic debugging. It is
a bits-and-bytes level debugger rather than a C code debugger.

Its key advantage is that it does not require gdb on the host nor a copy
of vmlinux which mean in some situations it is much easier to deploy.

It has all the same issues that kgdb does with regard to stopping the
target (it uses the same techniques and therefore performance will be
similar).


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
_______________________________________________
Kgdb-bugreport mailing list
Kgdb-bugreport@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to