I followed a couple of tutorials on line, trying to setup gdb to debug native code:
None of them got my debugger working completely.
I now have a specific problem by following steps, which are agreed by all the above tutorials as the correct steps to debug native code:
Then I got an error dialog say:
Error creating session
Process Terminated
Process Terminated
Process Terminated
(Solved by the OP in a question edit. Converted to a community wiki answer. See Question with no answers, but issue solved in the comments (or extended in chat) )
The OP wrote:
Solved this myself:
I put the wrong gdb debugger in my C++ debug configuration (under Debugger tab).
- The one should've been in there (NDK r7b):
$NDKROOT/toolchains/$ARCH/prebuilt//bin/arm-linux-androideabi-gdb- The one I wrongly put in there:
${PROJECT_DIR}/obj/local/armeabi/app_process, which should be only put in the C/C++ Application under Main tab.Fixing this solved my problem, and now I can debug native code using gdb in Eclipse!!