Android NDK debugging: armeabi-v7a not working

前端 未结 1 1724
生来不讨喜
生来不讨喜 2021-02-15 01:01

Eclipse / Cygwin

NDK 8c

Building a shared library

I can\'t get gdbserver to start anymore after switching to armeabi-v7a. I\'ve searched online for hours

相关标签:
1条回答
  • 2021-02-15 01:14

    I had the same issue. I configured eclipse following this article. Then I change from armeabi to armeabi-v7a. Then I couldn't debug.

    I fixed this issue:
    1) You must fix the folders in "Debug configurations"

    • Main tab change ...obj/local/armeabi/app_process to ...obj/local/armeabi-v7a/app_process
    • Debugger tab change ...obj/local/armeabi/gdb2.setup to obj/local/armeabi-v7a/gdb2.setup
    • Debugger tab change .../toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb to toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gdb

    2) May be this is workaround but it works. In "Debug configurations" ->Debugger->Shared Libraries add <project path>/obj/local/armeabi-v7a and check "Load shared library symbols automatically"

    0 讨论(0)
提交回复
热议问题