Using kgdb on iMX7D (with official bsp)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using kgdb on iMX7D (with official bsp)

489 Views
dry
Senior Contributor I

I would like to confirm that kgdb is usable for single-stepping the kernel code.   What I see - on iMX7D, official NXP released kernel (i'm on bsp 4.9.11)  - this does not work (kernel doesnt resume , and some gdb errors, etc..). 

Official mainstream kernel page says, "limited execution stepping" , and I don't see more details on it ((kgdb doc on kernel org) ).  Anyone knows what does this mean, and what kind of single stepping is supported through the kgdb?

I've seen a few page references (sorry i won't give links but you can google..), that seem to suggest, that single stepping with kgdb on ARM (Cortex, Cortex A ) does not work, it's not implemented.  But those pages are few years old.  I didn't find anything newer.

Anyone can provide more details on this? I would appreciate it.

At the moment, after I did set it up, and could connect, and stop / break kernel, and get the threads/processes list, etc. Which is nice, but. One thing it felt quite slow (if not painfully slow). Then stop or break and then continue did not always work (mmm, now I'm not even sure I could stop it from gdb, and resume . .may be only with kgdb command console).  

So before I confirm for myself that it isn't much of use that kgdb, I want to make sure on those break points & single stepping. 

0 Kudos
1 Reply

365 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello D. RY,

There are some guidelines on how to enable kgdb on the following thread:

https://community.nxp.com/thread/308921

However, kgdb is not supported on the BSP and since it is dependent on Linux I’m afraid we do not have further documentation on the functionalities available for the Cortex A cores.

Regards,

0 Kudos