Firefly Open Source Community

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

  1. "/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)

my gdb debug proceedure:
  1. TARGET SETUP:
  2. $ adb shell
  3. #gdbserver localhost:2345 service list

  4. HOST SETUP:
  5. $adb forward tcp:2345 tcp:2345
  6. $~/proj/firefly-rk3399/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-gdb

  7. (gdb) file ~/proj/firefly-rk3399/out/target/product/rk3399_firefly_box/symbols/system/bin/service
Copy the 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: 1/10/2026 15:09
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!
Author: nicksmi310    Time: 1/18/2026 07:51
Jeder in der IT-Branche hat seinen eigenen Traum: das Zertifikat von Juniper JN0-224 zu erhalten, berufliche Beförderung oder Gehaltserhöhung zu bekommen. Traum unseres ZertSoft ist es, Ihnen dabei zu helfen, die Juniper JN0-224 Zertifizierungsprüfung zu bestehen. Nachdem Sie unsere Schulungsunterlagen gekauft haben, können Sie einjährige Aktualisierung kostenlos genießen. Falls Sie die JN0-224 Prüfung leider nicht bestehen, versprechen wir Ihnen eine volle Rückerstattung.
Author: andrewb641    Time: 1/22/2026 21:35
ExamPassdump에서 최고최신버전의SAP인증C_THR88_2505시험덤프 즉 문제와 답을 받으실 수 있습니다. 빨리 소지한다면 좋겠죠. 그래야 여러분은 빨리 한번에SAP인증C_THR88_2505시험을 패스하실 수 있습니다.SAP인증C_THR88_2505관련 최고의 자료는 현재까지는ExamPassdump덤프가 최고라고 자신 있습니다.
Author: scottke781    Time: 1/29/2026 02:59
ここで説明したいのはCertJukenにあるコアバリューです。全てのSAPのC_TS4FI_2023-JPN「SAP Certified Associate - SAP S/4HANA Cloud Private Edition, Financial Accounting (C_TS4FI_2023日本語版)」試験は非常に大切ですが、この情報技術が急速に発展している時代に、CertJukenはただその中の一つだけです。ではなぜほとんどの人々はCertJukenを選んだのですか。それはCertJukenが提供する問題資料は絶対あなたが試験に受かることを助けられるからです。CertJukenが提供する資料は最新のトレーニングツールが常にアップデートして認証試験の目標を変換するの結果です。CertJuken はあなたに最新の試験研究資料を提供しますから、CertJuken SAPのC_TS4FI_2023-JPN問題集を持っていたら、試験に直面する自信に満ちることができ、合格しないなんて全然心配することはなく気楽に試験に受かることができます。
Author: nedston718    Time: 2/7/2026 19:06
It’s truly amazing, thank you for the fantastic share! The Valid exam L5M6 book helped me get promoted and earn a raise, and now it’s open for free. Wishing you all rapid career growth!




Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1