Title: Debuging C code on android with gdb ? [Print This Page] Author: cmi Time: 7/26/2017 10:41 Title: Debuging C code on android with gdb ? I am attempting to debug the android native code using gdb over adb. However when trying to load a file to debug i get a error
"/home/dan/proj/firefly-rk3399/out/target/product/rk3399_firefly_box/symbols/system/bin/service": not in executable format: File format not recognized
Copy the code
from what Ive been able to find in order to debug this adding LOCAL_CFLAGS += -ggdb and LOCAL_STRIP_MODULE = false to android.mk is required. however i am not sure im adding to the correct android.mk file. ive added it to /frameworks/native/cmds/android.mk
Id like to know if i am adding those flags to the correct android.mk file or
if there is a diffrent debug procedure (that allows me to create breakpoints and step through code)
For now im just trying to debug from terminal, from what ive read later on you can link it to eclipse
Author: ryanyou205 Time: 3 day before
Thank you for your wonderful share; this article really opened my eyes! Free 300-220 reliable exam objectives available for improving your IT skills. Wishing you the best!
Welcome Firefly Open Source Community (https://bbs.t-firefly.com/)