Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ndk-gdb: “No symbol table is loaded”

I'm still with ndk-gdb, now trying to solve the main problem that leaded me to do the other question I self answered xD

ndk-gdb tells me that there is no symbols table for my current lib. This is like the file I'm debugging where not the same as the file the emulator is executting. But i reuploaded the app. It says also "use file command", but file is only when I'am debugging a local program, right? It's not suitable for when I'm debugging remotely like with android.

So What should I do? I'm looking for a solution since 3 days but I'm still clueless. May be I should ask what are the other causes of this message, aside the wrong file problem?

Thanks. Some info: ndk-build and ndk-gdb called in the parent directory of the proyect. android api level 10 (2.3.3) android ndk r7b

Android.mk file content:

MY_LOCAL_PATH := $(call my-dir)
LOCAL_PATH := $(MY_LOCAL_PATH)
include $(CLEAR_VARS)
LOCAL_MODULE := wrapper
LOCAL_SRC_FILES := wrapper.c \
                aes.c \
                password.c \
                sha256.c \
                aescrypt.c
include $(BUILD_SHARED_LIBRARY)
like image 245
Adrián Pérez Avatar asked Feb 22 '23 06:02

Adrián Pérez


1 Answers

If you use Eclipse/Sequoyah, check the file obj/local/armeabi/gdb2.setup contains only valid Unix ending-line style <0A>.

With a generated file containing bad ending lines <0D><0D><0A>, I had the message:

No symbol table is loaded. Use the "file" command.

like image 147
zegzav Avatar answered Feb 23 '23 20:02

zegzav