mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-22 07:37:38 +01:00
Use unw_context_t instead of ucontext_t in tests/Gtest-trace.c and tests/Gtest-bt.c
At least on ARM unw_context_t and ucontext_t are not the same types, so
use unw_context_t.
See also commit 24112f6d9b
("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 *'
This commit is contained in:
parent
9158e522db
commit
4bf1b71952
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue