How do you debug with ndk-gdb?

I was trying to follow this tutorial: http://stackoverflow.com/questions/24334080/how-to-debug-cocos2d-x-3-native-code-on-android-device to basically debug Cocos2dx android project on Eclipse but I ran into this error:

"The program can’t start because cyggmp-3.dll is missing from your computer. Try inresintalling the program to fix this problem"

Can someone tell me how to resolve this? Or direct me to a better debugging tutorial? It doesn’t have to be in Eclipse, I just want to be able to debug it…

I’ve used adb logcat ndk-stack too but the information it provides me barely makes any sense.