Package: libunwind / 1.3.2-2

Metadata

Package Version Patches format
libunwind 1.3.2-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
20140507 ppc_lib64.patch | (download)

configure.ac | 6 0 + 6 - 0 !
1 file changed, 6 deletions(-)

---
0001 aarch64 Use __asm__ instead of asm 89.patch | (download)

include/libunwind-aarch64.h | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 aarch64: use __asm__ instead of asm (#89)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Otherwise this fails to compile with -stc=c99 like:

  $ cat <<EOF > bla.c
  #include <libunwind.h>

  int main()
  {
      unw_tdep_context_t *uc = NULL;
      unw_tdep_getcontext(uc);
  }
  EOF

  # This works
  $ gcc bla.c

  # This does not
  $ gcc -std=c99 bla.c
  In file included from /usr/include/aarch64-linux-gnu/libunwind.h:7,
                   from bla.c:1:
  bla.c: In function ‘main’:
  bla.c:6:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘asm’
       unw_tdep_getcontext(uc);
       ^~~~~~~~~~~~~~~~~~~
  bla.c:6:5: error: ‘mcontext_t’ {aka ‘struct <anonymous>’} has no member named ‘regs’; did you mean ‘__regs’?
       unw_tdep_getcontext(uc);
       ^~~~~~~~~~~~~~~~~~~
  bla.c:6:5: error: ‘unw_base’ undeclared (first use in this function); did you mean ‘unw_ctx’?
       unw_tdep_getcontext(uc);
       ^~~~~~~~~~~~~~~~~~~
  bla.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
  bla.c:6:5: error: invalid lvalue in asm output 0
       unw_tdep_getcontext(uc);
       ^~~~~~~~~~~~~~~~~~~

See https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html:

   The asm keyword is a GNU extension. When writing code that can be
   compiled with -ansi and the various -std options, use __asm__ instead of
   asm (see Alternate Keywords).

0001 Fix compilation with fno common.patch | (download)

src/aarch64/Ginit.c | 15 7 + 8 - 0 !
src/arm/Ginit.c | 15 7 + 8 - 0 !
src/coredump/_UPT_get_dyn_info_list_addr.c | 5 5 + 0 - 0 !
src/hppa/Ginit.c | 15 7 + 8 - 0 !
src/ia64/Ginit.c | 1 1 + 0 - 0 !
src/mi/Gfind_dynamic_proc_info.c | 1 1 + 0 - 0 !
src/mips/Ginit.c | 15 7 + 8 - 0 !
src/ppc32/Ginit.c | 11 7 + 4 - 0 !
src/ppc64/Ginit.c | 11 7 + 4 - 0 !
src/ptrace/_UPT_get_dyn_info_list_addr.c | 5 5 + 0 - 0 !
src/sh/Ginit.c | 15 7 + 8 - 0 !
src/tilegx/Ginit.c | 15 7 + 8 - 0 !
src/x86/Ginit.c | 15 7 + 8 - 0 !
src/x86_64/Ginit.c | 15 7 + 8 - 0 !
14 files changed, 82 insertions(+), 72 deletions(-)

 fix compilation with -fno-common.

Making all other archs consistent with IA64 which should not have this problem.
Also move the FIXME to the correct place.

Also add some minimum comments about this...

0001 Link Ltest cxx exceptions with libunwind.patch | (download)

tests/Makefile.am | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 link ltest-cxx-exceptions with libunwind
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Bernhard Übelacker noticed that Ltest-cxx-exceptions was actually
testing the gcc implementation due to not linking with libunwind.

Fixes: #129

0001 tests Include wait related headers for Ltest mem val.patch | (download)

tests/Ltest-mem-validate.c | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 tests: include wait-related headers for ltest-mem-validate (#74)

Without these, I was getting errors from this test set claiming that
wait, WIFCONTINUED, et al. were undefined on FreeBSD 11.1.

0001 fix compile issue on SH platform 137.patch | (download)

src/sh/Ginit_local.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fix compile issue on sh platform (#137)

The name must be unw_init_local_common

libunwind 1.2 coredump regs.patch | (download)

src/coredump/_UCD_access_reg_linux.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

---
libunwind 1.2 ia64 missing.patch | (download)

src/ia64/mk_Gcursor_i.c | 65 65 + 0 - 0 !
src/ia64/mk_Lcursor_i.c | 2 2 + 0 - 0 !
src/ia64/mk_cursor_i | 7 7 + 0 - 0 !
3 files changed, 74 insertions(+)

---
libunwind 1.2 ia64 ptrace coredump.patch | (download)

src/coredump/_UPT_get_dyn_info_list_addr.c | 11 5 + 6 - 0 !
1 file changed, 5 insertions(+), 6 deletions(-)

---
0001 ia64 Fix dyn_info_list.S with newer binutils.patch | (download)

src/ia64/dyn_info_list.S | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 ia64: fix dyn_info_list.s with newer binutils

Using binutils 2.34 or 2.35, libunwind fails to link on ia64 with:

  /usr/bin/ld: .IA_64.unwind has both ordered [`.IA_64.unwind' in unwind/.libs/GetIPInfo.o] and unordered [`.IA_64.unwind' in ia64/.libs/dyn_info_list.o] sections

Fix this by using the right flags and type for the section, taken from
binutils's gas/testsuite/gas/ia64/unwind.s.

0001 Gia64 test nat.c include signal.h for sigaction.patch | (download)

tests/Gia64-test-nat.c | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 gia64-test-nat.c: #include <signal.h> for sigaction()


0001 Disable Ltest init local signal on ia64.patch | (download)

tests/Makefile.am | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 disable ltest-init-local-signal on ia64