nkd debug problemsl

nkd debug problemsl
0.0 0



I’m trying to debug an android cocos2dx game, but I’m having a lot of problems.
After launch the game and stop the execution with a breakpoint in the java code. I launch the cygwin console and write the command:

Juanal@Juanal-PC /cygdrive/C/Users/Juanal/Desktop/cocos2d-1.0.1-x-0.11.0/MyGameAndroid/android
$ /cygdrive/C/develop/android-ndk-r7/ndk-gdb

but the result is this:

cygwin warning:
MS-DOS style path detected: C:~~ndk-r7
Preferred POSIX equivalent is: /cygdrive/c/develop/android-ndk-r7
CYGWIN environment variable option “nodosfilewarning” turns off this warning.
Consult the user’s guide for more details about POSIX paths:
awk: fatal: can’t open source file `/cygdrive/C/Users/Juanal/Desktop/cocos2d-1.0.1-x-0.11.0/MyGameAndroid/android/C:~~ndk-r7/build/awk/check-awk.awk’ for reading (No such file or directory)
ERROR: Could not run ‘awk’ command. Do you have it installed properly?

Of course, this path isn’t correct:
since it’s a mixture of the cygwin path of my project:
and the windows path of my ndk:

How can I resolve this problem?

Thanks in advance.



Sorry, I have little experience about ndk-gdb, maybe you can refer http://www.cocos2d-x.org/boards/6/topics/567.
There is a article describes how to debug with eclipse.


How can I resolve this problem?

Did you work out a solution?