Android NDK Debugging

前端 未结 3 684
梦如初夏
梦如初夏 2020-12-30 11:51

The Android NDK documentation doesn\'t seem all that clear to me as to what sequence of commands you run to get debugging information into, and out of the ndk-gdb executable

相关标签:
3条回答
  • 2020-12-30 11:56

    Specifically addressing "is there a specification somewhere":

    ndk-gdb is basically traditional GDB that talks to NDK applications, the GDB documentation at http://www.gnu.org/software/gdb/documentation/ is the best reference for command syntax - it's far too big a topic to cover here.

    0 讨论(0)
  • 2020-12-30 11:56

    There are a couple of web pages that provide instruction:

    http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-development/

    http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging/#more-23

    I know others have gotten this to work - but I'm stuck on the issue described here:

    ndk-gdb fails with message: Invalid attribute name: package

    0 讨论(0)
  • 2020-12-30 12:12

    Try this tutorial. It explains how to set up your eclipse environment for debugging NDK code even if this code is part of android library. (Most of the tutorial I found explain only how to setup Eclipse for debugging android application projects that have native code).

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