On 02/13/2012 03:57 AM, Jordan Schidlowsky wrote:
I've been following Ken Werner's work on getting libunwind ported to
the android platform. I was delighted to see an Android.mk on his
branch!
I've followed through the instructions listed here:
https://wiki.linaro.org/WorkingGroups/ToolChain/Outputs/LibunwindDebuggerd
I have been trying to get the library built however I've been running
into brick wall after brick wall. Has anyone successfully built the
library and used it locally in a native android application? Any
help would be appreciated.
Hi Jordan,
Local unwinding relies on 'dl_iterate_phdr'- a functionality that
bionic (the libc) doesn't seem to provide[1] to external users. I
think, you'd have to change either bionic or libunwind. In addition,
Android uses a different build system that require you to create an
Android.mk[2].
Just out of curiosity. Why do you need local backtracing on Android
when there's the debuggerd to handle crashes?