Hi Daniel,
Thanks for sharing the patch. I wasn’t
aware of the libunwind project before now and it certainly looks like something
that mpatrol could make use of in the future for other processors.
Thanks again,
Graeme.
From:
mpatrol@yahoogroups.com [mailto:mpatrol@yahoogroups.com] On Behalf Of Daniel Jacobowitz
Sent: 16 May 2008 14:56
To: mpatrol@yahoogroups.com
Subject: [mpatrol] mpatrol port
using libunwind
Hi all,
On behalf of MontaVista, CodeSourcery recently added support to
mpatrol to use libunwind (http://www.nongnu.
to provide backtraces for ARM and MIPS. We also ported libunwind to
ARM and MIPS targets, and added support to libunwind to read DWARF-2
..debug_frame in addition to the already supported .eh_frame. Those
libunwind changes are in the tip of the libunwind development
repository now.
Here's the patch which adds libunwind support to mpatrol. In addition
to support for libunwind this patch:
- Improves Linux shared library support on current systems, by using
dl_iterate_phdr instead of _DYNAMIC - the old mechanism was not
working on any of our test platforms.
- Fixes a problem we discovered when building mpatrol with -O0;
initsection'
defined.
- Teaches mpatrol about the ".gnu_debuglink" section supported by
current binutils (objcopy --only-keep-
In order to use this patch, you will need to build and install
libunwind before mpatrol. Use of libunwind is controlled by
MP_LIBUNWIND_
and enabled MP_LIBUNWIND_
Applications using mpatrol will need to link with or LD_PR
libunwind.so in addition to any current libraries like libbfd.so. The
mpatrol wrapper has been updated to do this automatically.
Hope this is useful! Feel free to include it in future releases.
--
Daniel Jacobowitz
CodeSourcery