Ticket #63 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

issues with ndk-gdb

Reported by: alesko Owned by: dmc
Priority: normal Milestone: r7-crystax-5
Component: ndk Version: r7-crystax-4
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

I'm trying to build the hello-jni sample application.
When I start ndk-gdb, it fails with:

======================================================

#$ ndk-build
cp: target `./obj/local/armeabi/gdb.setup' is not a directory
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 673: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 674: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 678: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: ABI='armeabi': not found

======================================================

A strange file is created in the project directory: ABI='armeabi'
which contains some executable code, I think.

Debug is enabled in the project and is built successfully. The apk file is copied to the device but I'm just not able to start the debugger.

I can provide more information if you need it.

regards

Change History

comment:1 Changed 3 months ago by alesko

sorry, the right command is ndk-gdb (not ndk-build).

#$ ndk-gdb
cp: target `./obj/local/armeabi/gdb.setup' is not a directory
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 673: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 674: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: cannot create ABI='armeabi'
ABI='armeabi-v7a'
ABI='x86'
./obj/local/armeabi/gdb.setup: Directory nonexistent
/home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: 678: /home/alesko/Downloads/android-ndk-r7-crystax-4/ndk-gdb: ABI='armeabi': not found
======================================================

comment:3 Changed 3 months ago by alesko

  • Status changed from new to closed
  • Resolution set to fixed

This works just perfect!

Thank you.

Note: See TracTickets for help on using tickets.