step 1: setting eclipse
Programming Guide: Eclipse setting for ubuntu imx6 android
step 2: setting openocd
Programming Guide: Openocd with Eclipse debug u-boot & kernel on i.mx6
demo photo:
1. https://picasaweb.google.com/106185541018774360364/IMx6#6233220201048247058
2. https://picasaweb.google.com/106185541018774360364/IMx6#6240074819468163938
3. https://picasaweb.google.com/106185541018774360364/IMx6#6239524844608161106
step 3: setting kgdb
Programming Guide: KGDB + Eclipse debug Kernel on i.mx6 Android
stpe 4:
Programming Guide: Debug android jni C++ with eclipse on linux 64 bits