Questions tagged [ndk-gdb]

A helper shell script named 'ndk-gdb' to easily launch a native debugging session for your NDK-generated machine code.

The script is located at the top-level directory of the NDK, and shall be invoked from the command-line when in your application project directory, or any of its sub-directories. For example:

cd $PROJECT
$NDK/ndk-gdb
40 questions
2
votes
2 answers

ndk-gdb cannot find gdb.setup but it is there under x86

Cocos2d-x 3.7.1 + ndk r10e project on Mac trying to debug in Eclipse. Days pass and the errors keep coming... I can build and run using cocos compile and cocos run with -p android -m debug --ndk-mode NDK_DEBUG=1 from the terminal in proj.android. …
AndyF.
  • 51
  • 8
2
votes
1 answer

ant debug failed to include gdb.setup in the apk file

I've been building (from a mac terminal) this native application successfully for a long time but today I've run across an error I can't seem to pin down. After tiring from all the javac warnings I upgraded to a newer version of ant. I'm not sure…
rabidcat
  • 45
  • 6
2
votes
0 answers

ndk-gdb with Android Studio

I was previously able to use eclipse to build an android app with ndk-build and I was able to debug using the ndk-gdb. When I do the same on the app built using Android Studio, I get this error: ERROR: Non-debuggable application installed on the…
ssk
  • 9,045
  • 26
  • 96
  • 169
2
votes
2 answers

Debugging Android native application using ndk-gdb

I am trying to debug my android application having some native(c++) code using ndk-gdb in eclipse.It seems that by gdb server starts successfully from command line and is taking commands. But in eclipse it is showing this error : Error while…
Fayaz Ali
  • 61
  • 1
  • 6
1
vote
0 answers

Can I run ndk-gdb connected to two devices?

I am trying to run two instances of ndk-gdb attached to two devices. but based on this page, I can not find a way to do that... https://developer.android.com/ndk/guides/ndk-gdb.html Is it even possible to have two separate devices connected to two…
Scorb
  • 1,654
  • 13
  • 70
  • 144
1
vote
0 answers

Android NDK Debugging in an included library module

I am currently working on an Android app that is using a library that is using the NDK. The library and the app are maintained in separate repositories and are worked on as separate projects. The library is compiled on its own with Gradle and the…
AdaJane
  • 97
  • 3
  • 8
1
vote
1 answer

How to attach gdb to android emulator in chrome ARC

I need to attach gdb to debug my android app in chrome ARC. After loading the adb plugin, I can see the device listed in "adb devices" however I can't start a gdb server on this emulator. Same thing happens with Android studio which is not able to…
Ashish
  • 11
  • 3
1
vote
0 answers

Get ndk-gdb to work: Your APP_BUILD_SCRIPT points to an unknown file: Android.mk

There are several questions about this, and I've tried a couple of the solutions, but I'm still getting the above error. My Project root is /Users/me/main/src/task/task2/apps/MyApp My jni folder is…
Nematode7
  • 127
  • 1
  • 1
  • 10
1
vote
1 answer

ndk-gdb with gradle flavor

In my android project I have a default flavor with a default package name for example: And in my build.gradle I've added…
jayatubi
  • 1,972
  • 1
  • 21
  • 51
1
vote
1 answer

Gdbserver strange error while debugging native app

I'm trying to debug an native app on my android device. I followed this tutorial: http://blog.thecobraden.com/2012/02/debugging-apps-with-native-code-part-1_09.html And everything went good, I built the app and installed it, once I wanted to debug…
1
vote
0 answers

Android NDK: enabling pretty print when debugging Android native code?

When debugging Android native code, it's quite a mess when you want to see things inside c++ containers(like std::vector), I know there is pretty print, but how to integrate it with Android native code debugging?
CarmeloS
  • 7,868
  • 8
  • 56
  • 103
1
vote
1 answer

ndk-gdb debugging fails to load symbols : says Unable to get location for thread creation breakpoint

I have a Android native code, which comprises of a static library(XXX.a) and the final ndk-build command(with NDK_DEBUG set to 1) takes the above prebuilt static library and creates a shared object. I use the nm command to look into the shared…
learn_develop
  • 1,735
  • 4
  • 15
  • 33
1
vote
1 answer

Android Application ABI and Native Debugging

I was getting 'Unable to detect application ABI's' when trying to natively debug in Eclipse. I didn't get anywhere so I tried ndk-gdb (ndk-gdb.py as I am on Windows). But using ndk-gdb gives me : ERROR: The device does not support the application's…
Funky Oordvork
  • 403
  • 4
  • 15
1
vote
1 answer

Android ndk debug on sumsung phones

some days ago, I bought a phone Sumsung s4.then I find that I couldn't use ndk debug on the phone. I have surching lots of infomation , but not get a solution. The question is Sumsung have changed some code for the system./data/system/packages.list…
1
vote
0 answers

Unable to attach ndk-gdb to android process

I have two processes in the Android application- main application process and a remote service process. The native libraries are loaded from the remote service process. I want to debug the native library code. The application is debuggable. The…
user802467
  • 951
  • 2
  • 14
  • 22