[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 7/8] Use unw_context_t instead of ucontext_t in
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 7/8] Use unw_context_t instead of ucontext_t in tests/Gtest-trace.c and tests/Gtest-bt.c |
Date: |
Tue, 31 Jul 2012 23:06:33 +0300 |
At least on ARM unw_context_t and ucontext_t are not the same types, so
use unw_context_t.
See also commit 24112f6d9b87554fe18b1ca0f939f30c76ac38fa ("Fix some test
failures on x86_64 on distros with small default stacks.")
Gtest-trace.c: In function 'do_backtrace':
Gtest-trace.c:66:3: warning: initialization from incompatible pointer type
[enabled by default]
Gtest-trace.c:67:3: warning: passing argument 2 of '_Uarm_init_local' from
incompatible pointer type [enabled by default]
../include/libunwind-common.h:239:1: note: expected 'struct unw_context_t *'
but argument is of type 'struct ucontext_t *'
Gtest-bt.c: In function 'do_backtrace':
Gtest-bt.c:65:3: warning: initialization from incompatible pointer type
[enabled by default]
Gtest-bt.c:66:3: warning: passing argument 2 of '_Uarm_init_local' from
incompatible pointer type [enabled by default]
../include/libunwind-common.h:239:1: note: expected 'struct unw_context_t *'
but argument is of type 'struct ucontext_t *'
---
tests/Gtest-bt.c | 2 +-
tests/Gtest-trace.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/Gtest-bt.c b/tests/Gtest-bt.c
index fb5b396..b5f4439 100644
--- a/tests/Gtest-bt.c
+++ b/tests/Gtest-bt.c
@@ -50,7 +50,7 @@ int num_errors;
* cause the signal stack to overflow */
char buf[512], name[256];
unw_cursor_t cursor;
-ucontext_t uc;
+unw_context_t uc;
static void
do_backtrace (void)
diff --git a/tests/Gtest-trace.c b/tests/Gtest-trace.c
index ed34e58..7488ee6 100644
--- a/tests/Gtest-trace.c
+++ b/tests/Gtest-trace.c
@@ -50,7 +50,7 @@ int num_errors;
char buf[512], name[256];
void *addresses[3][128];
unw_cursor_t cursor;
-ucontext_t uc;
+unw_context_t uc;
static void
do_backtrace (void)
--
1.7.9.5
- [Libunwind-devel] [PATCH 0/8] misc fixes, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 1/8] Rip out AC_TYPE_SIGNAL and sighandler_t check, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 3/8] IA64: use tdep_find_unwind_table() in coredump lib, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 2/8] Allow IA64 cross-compilation, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 4/8] Fix --enable-debug-frame build, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 5/8] IA64: `ent' needed conditionally in Gtables.c, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 6/8] Fix IP vs. PC confusion in tests on ARM, Tommi Rantala, 2012/07/31
- [Libunwind-devel] [PATCH 7/8] Use unw_context_t instead of ucontext_t in tests/Gtest-trace.c and tests/Gtest-bt.c,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 8/8] Fix typo in unw_get_proc_name documentation, Tommi Rantala, 2012/07/31