Hi JD, My experience with Kernel + PPC bit out-dated. It is very difficult
blindly debug the kernel code. I use ksymoops script, which parse the panic
text and map the address to symbol, to narrow down my focus/debug area. HTH
:)
On Mon, Mar 17, 2014 at 5:45 PM, PrasannaKumar Muralidharan <
prasa
Hope https://www.kernel.org/pub/linux/kernel/people/jwessel/kgdb/ch03s04.html
will help. Please google for the kgdboe patch. I am not sure whether
it got merged with the mainline kernel already.
Note: I have tried this only with x86. But I guess it should work with
PowerPC also.
Regards,
Prasanna
Can you forward the steps to debug over ethernet? I hope in this case also,
we will end up in doing triggering which will reboot. Isn't it? Please also
mention about the patch.
On Mon, Mar 17, 2014 at 1:47 PM, PrasannaKumar Muralidharan <
prasannatsmku...@gmail.com> wrote:
> I have debugged linu
I have debugged linux kernel over ethernet. Thought it would be
similar. Debugging over ethernet is faster but required an out of tree
patch (when I used it).
Generally it is easier to go through the code and fix issues if any.
Even Linus prefers this instead of debugging a kernel.
Thanks,
Prasan
Prasanna,
According to the documentation given by official KGDB, I have been asked to
try connect KGDB only after triggering.
https://www.kernel.org/doc/htmldocs/kgdb/EnableKGDB.html
Once the trigger is done, it is supposed to hang and I need to connect. But
in my case it reboots.
I also tried
This is what is expected I guess. With "echo g > /proc/sysrq-trigger"
you are triggering a kernel panic. You should have connected the
target to gdb before a kernel panic. Try connecting the target to gdb
and then trigger kernel panic.
Hope this helps,
PrasannaKumar
___
I am using Linux Kernel Version 2.6.34.6 SMP for powerPC 64 bit. I tried to
debug kernel using KGDB and ended up in Kernel panic reboot issue. Here is
the list of steps I did.
1) I enabled the following in the config file
CONFIG_DEBUG_PAGEALLOC=y
CONFIG_DEBUG_KERNEL=y
CONFIG_DEBUG_INFO=y
CONFIG_K