[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Libunwind-devel] libunwind on android (UNW_LOCAL_ONLY)
From: |
Ken Werner |
Subject: |
Re: [Libunwind-devel] libunwind on android (UNW_LOCAL_ONLY) |
Date: |
Mon, 13 Feb 2012 09:45:08 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111229 Thunderbird/9.0 |
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?
Regards,
Ken
[1] I haven't really looked at the ICS sources yet. My work was based on
Gingerbread.
[2] This one covers the files required for remote unwinding on ARM:
http://git.linaro.org/gitweb?p=people/kwerner/libunwind.git;a=blob;f=Android.mk;hb=refs/heads/android
Nowadays there is also a tool called Androgenizer which might be worth
to look at:
http://cgit.collabora.com/git/user/derek/androgenizer.git/