In addition to the addr2line tool, if you are using Eclipse as your
IDE for NDK, then you can configure it to automatically do that for
you also.
In order to do that:
- Set Project - Settings - C/C++ General - Paths and Symbols - Output
Location to the $(ANDROID_NDK)/out/apps/dtme/armeabi
- Set Project - Settings - C/C++ Build - Settings - Binary Parsers to
have GNU ELF Parser enabled. You can also have the paths set to use
the addr2line and c++filt from the NDK package as well. On Linux, I
didn't have to, but on Windows it makes sense.
On C/C++ perspective, you will see the Binary group with the output
dynamic libraries, and if you open them it will give you a mixed
output with the address and the actual content of the line. It is
easier to use most of the time.
Regards,
-onur
---
www.zdo.com