On 31/07/2012 15:02, bleubleu wrote:
> yes, on both projects.
>
> On Tuesday, July 31, 2012 2:57:59 PM UTC+2, Baodong Chen wrote:
>
>> On Tue, Jul 31, 2012 at 8:28 PM, bleubleu wrote:
>>
>>> Hello,
>>>
>>> I am trying to debug a application that uses jni, but I encounter
>>>
>> problems
>>
>>> for 'complex' projects.
>>>
>>> For my test, I begun with the sample gl2jni included in the ndk.
>>> It works well, and I can attach gdb to it. When running ndk-gdb:
>>> Found device gdbserver: /data/data/com.android.gl2jni/lib/gdbserver
It's obvious for you but what is your environment: OS, adt, sdk,ndk ?
>>>
>>>
>>> But, if i modify this project to a library, and I create another project
>>> application that will use this library,
>>> everything works fine (compilation, execution),
>>> but if i try to execute ndk-gdb in the library directory, i get this:
>>> ERROR: Non-debuggable application installed on the target device.
>>>
what command line did you use ?
Do you use eclipse ?
>> have you tried to set debugable=true in yor AndroidManifest.xml?
>>
Maybe your problem is related to this:
http://stackoverflow.com/questions/8266852/not-able-to-attach-the-ndk-gdb-to-the-android-application