Ndk-gdb cannot find gdb.setup, but it is under x86

The Cocos2d-x 3.7.1 + ndk r10e project on Mac is trying to debug in Eclipse. Days pass and errors continue ...

I can create and run using coconut compilation and coconuts running with -p android -m debug -ndk-mode NDK_DEBUG = 1 from the terminal in proj.android.

My application runs fine (eventually) on my x86 emulator without any problems.

Entering "ndk-gdb" in the terminal from. /proj.android and I get an error

ERROR: Could not find gdb.setup in. / libs /

BUT the gdb.setup file (and gdbserver and libcocos2dcpp.so) can be seen in. /proj.android/libs/x86 !?

My AndroidManifest.xml includes android: debuggable = "true"

My jni / Application.mk includes APP_ABI: = x86 (only)

If someone tells me how I can diagnose or fix this problem, then I suppose I owe them a beer (in Yorkshire by the way)

UPDATE: I tried to start GDB using the --verbose flag. The output is displayed

Using gdb setup init: ./ libs / armeabi / gdb.setup

Using application directory: ./ obj / local / armeabi

Guess I need to change the settings / initialization file somewhere?

+2
source share
2 answers

I ran into the same problem. Something seems to have changed in the latest version of the Android Build tools.

Trick:

ERROR: Could not find gdb.setup under ./libs/

He expects gdb.setup to be in the libs directory , but NOT libs / armeabi

- gdb.setup gdbserver "libs/cpu" "libs", !

+4
  • , adb android sdk. 191085: ndk-gdb - gdb.setup ./libs/( )

  • adb, 1.0.35 - .

  • adb 1.0.31. ndk-gdb: if [ $? = 0 ]; then, adb_var_shell BCFILES run-as $PACKAGE_NAME /system/bin/sh -c "ls lib/*.bc" if [ $? = 1 ]; then
0

Source: https://habr.com/ru/post/1610429/


All Articles