libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 0/6] Enhance portability of libuwind


From: Ken Werner
Subject: [Libunwind-devel] [PATCH 0/6] Enhance portability of libuwind
Date: Thu, 27 Oct 2011 10:38:06 +0200

Hi,

These patches enhance the portability of libunwind. Especially for targets
that don't provide ucontext.h and dl_iterate_phdr functionality like Android. 
Most of them are straight forward and very small. The third patch focuses on
removing dependencies to <link.h> in case of remote unwinding. Since it's
technically not required it can (and should) be avoided. This patch also fixes
some corner-case-bugs when the address ranges (start/end) are calculated. With 
these patches applied I was able to sucessfully build libunwind with remote
unwinding capabilities for Gingerbread on ARM. I've also tested these patches
on X86_64 and Linux on ARM without regressions. As usual the changes can be 
pulled from the following git tree:
  git://git.linaro.org/people/kwerner/libunwind.git

Ken Werner (6):
  Include <sys/mman.h> to have MAP_ANONYMOUS defined
  UNW_REMOTE_ONLY fixes
  Prevent the use of struct dl_phdr_info outside of dl_iterate_phdr
  [ARM] Add support for systems that don't support ucontext.h
  Define GNU and processor specific values for the Phdr p_type field
  Add missing <signal.h> include directive

 include/dwarf.h                  |    8 +++-
 include/libunwind-arm.h          |   18 +++++---
 include/libunwind_i.h            |   11 +++++
 include/tdep-arm/libunwind_i.h   |    2 +-
 src/arm/Gglobal.c                |    6 ++-
 src/arm/Ginit.c                  |   37 ++++--------------
 src/arm/Ginit_local.c            |    4 +-
 src/arm/Gresume.c                |   54 +++++++++++++-------------
 src/arm/init.h                   |   36 +++++++++---------
 src/dwarf/Gfind_proc_info-lsb.c  |   76 +++++++++++++++++++-------------------
 src/ptrace/_UPT_find_proc_info.c |   50 ++++++++++---------------
 tests/Gtest-dyn1.c               |    2 +-
 12 files changed, 148 insertions(+), 156 deletions(-)

Regards
Ken
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]