6b55e0ab51eee7dbea679fda2b37ecf61f0025e5 |
|
19-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Use `UNUSED' in tests
/external/libunwind/tests/Gtest-bt.c
|
0d7738ed4f7dae1b6b77d1a4dd25c5ea765de81f |
|
17-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Cleanup dynamically allocated memory before exit in tests Cleanup dynamically allocated memory before exit in tests in a few places where missing. While such cleanups right before exit do not usually make much sense (as the operating system would cleanup anyway, so manual cleanups only burn CPU cycles), we will want to catch any potential problems in libunwind related to the cleanups. This also stops valgrind complaining about unreleased memory.
/external/libunwind/tests/Gtest-bt.c
|
0c838c4d4406ddfcc38c9cbaa088ab60570d4cc0 |
|
12-Sep-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Annotate potentially unused variable in tests/Gtest-bt.c tests/Gtest-bt.c: In function 'sighandler': tests/Gtest-bt.c:158:15: warning: unused variable 'uc' [-Wunused-variable]
/external/libunwind/tests/Gtest-bt.c
|
1c1dbbe2966b0dd8c2cf259b0ff61d0f99f6c2df |
|
23-Aug-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Do not print garbage proc info in tests/Gtest-bt.c Check the return value of the unw_get_proc_info() call to avoid printing garbage if the call fails.
/external/libunwind/tests/Gtest-bt.c
|
f42a8de0fa4b99c04e38a35bb5fd48a1ba9188b8 |
|
02-Aug-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Annotate unused parameters in tests Compiling the tests with -Wextra results to lots of warnings for unused parameters. Annotate these cases with the `unused' attribute to avoid the warnings.
/external/libunwind/tests/Gtest-bt.c
|
4bf1b7195223ea68c7ed6a24f4f826be02d8bec0 |
|
31-Jul-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
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 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 *'
/external/libunwind/tests/Gtest-bt.c
|
a06f189baf4080374729299516b3b9f8ce60dd25 |
|
31-Jul-2012 |
Tommi Rantala <tt.rantala@gmail.com> |
Rip out AC_TYPE_SIGNAL and sighandler_t check AC_TYPE_SIGNAL is an obsolete autoconf macro, and we were not using sighandler_t or RETSIGTYPE for anything anyways.
/external/libunwind/tests/Gtest-bt.c
|
e4593e2493923f93dfa6c92ee5327b4ce577a818 |
|
01-Apr-2011 |
Ken Werner <ken.werner@linaro.org> |
Increase alternate signal stack size. Creating an alternate signal stack with a size of SIGSTKSZ (usually 8k) is not enough on some targets because unw_cursor_t is bigger than that already. Since the size of unw_cursor_t is part of the ABI the UNW_TDEP_CURSOR_LEN can't be changed without breaking existent code. Therefore size of the alternate signal stack has been increased to 1 MiB. Signed-off-by: Ken Werner <ken.werner@linaro.org>
/external/libunwind/tests/Gtest-bt.c
|
9bb9c972e6f0a776740ad17ee230973bdefad553 |
|
31-Mar-2010 |
Konstantin Belousov <kostik@pooma.home> |
Merge with origin/master
|
24112f6d9b87554fe18b1ca0f939f30c76ac38fa |
|
11-Mar-2010 |
Arun Sharma <aruns@google.com> |
Fix some test failures on x86_64 on distros with small default stacks.
/external/libunwind/tests/Gtest-bt.c
|
d7377096400e73db989ebb6b0985a84754a413ca |
|
10-Mar-2010 |
Konstantin Belousov <kostikbel@gmail.com> |
Close #if
/external/libunwind/tests/Gtest-bt.c
|
3b026a7ed8e4c03e7d0177ac198b2649427f80d1 |
|
10-Mar-2010 |
Konstantin Belousov <kostik@pooma.home> |
Fix i386 distinctions between freebsd and linux for mcontext.
/external/libunwind/tests/Gtest-bt.c
|
b56375e76a0e23b6e464d994bc6a790e086b91db |
|
07-Oct-2009 |
Paul Pluzhnikov <ppluzhnikov@google.com> |
Reduce stack use and apply CONFIG_DEBUG_FRAME to more code. Currently, libunwind allocates several PATH_MAX entries on stack, while trying to find a binary via /proc/.../maps. However stack space may be at premium (especially when sigaltstack is used), and PATH_MAX on Linux is 4096, while SIGSTKSZ is only 8192 on x86. Attached patch eliminates multiple PATH_MAX stack allocations, and simplifies code in maps_next, at the cost of being unable to do anything if we can't mmap one page. It appears to me that under such low-memory conditions, libunwind will fail shortly elsewhere anyway. This patch also disables more of debug_frame-handling code when CONFIG_DEBUG_FRAME is undefined. Tested on Linux/x86_64 with and without CONFIG_DEBUG_FRAME, no regressions.
/external/libunwind/tests/Gtest-bt.c
|
6f282a00f55d0bc11f131da5d3591a1a4030a9f9 |
|
21-Apr-2008 |
Bruna Moreira <bruna.moreira@openbossa.org> |
[ARM] This patch fix some testsuite issues on ARM: - Gtest-bt: like on x86/-64, the stack size passed to sigaltstack() is too small for ARM thus causing segmentation fault due to stack overflow. - Gtest-dyn1: code size definition of dynamic function (template()) on testcase is too big for ARM architecture so memcpy() reads invalid memory causing random crashes (segmentation fault). A better solution would be to compile the function in a separate binary, mmap() it and memcpy() from it instead, so maximum size is known for sure. - check-name-space.in: fix some "bashisms", it causes the script to fail to run on N8XX's busybox shell. Signed-off-by: Anderson Lizardo <anderson.lizardo@indt.org.br> Signed-off-by: Bruna Moreira <bruna.moreira@indt.org.br>
/external/libunwind/tests/Gtest-bt.c
|
1ee6b0ac74da477a52ce589bed83db3908dcc4f7 |
|
03-May-2005 |
mostang.com!davidm <mostang.com!davidm> |
(STACK_SIZE): SIGSTKSZ is also ridiculously small on x86-64 (at least for SuSE LES 9) so use 128KB instead. (do_backtrace): Also print backtrace obtained via backtrace(). (foo): Remove backtrace() call---now done in do_backtrace(). (Logical change 1.290)
/external/libunwind/tests/Gtest-bt.c
|
9d47ce5331e7ad49e95a630567d821e845c4ac02 |
|
15-Oct-2004 |
hp.com!davidm <hp.com!davidm> |
(f): Move it to ident.c so the optimizer can't get rid of it. (Logical change 1.276)
/external/libunwind/tests/Gtest-bt.c
|
186cbb2957d4ffc4269fe788bf8650ee3b629d27 |
|
15-Sep-2004 |
hp.com!davidm <hp.com!davidm> |
(verbose): New variable. (num_errors): Likewise. (do_backtrace): Only print info if verbose is set. (foo): Likewise. (sighandler): Likewise. (main): Likewise. (bar): New function which is attempting to trigger a bug reported by Anthony Brewer which is caused by GAS apparently generating bad offsets for the psprel directive. (f): New function. 2004/09/15 04:24:29-07:00 hp.com!davidm Rename: tests/bt.c -> tests/Gtest-bt.c (Logical change 1.270)
/external/libunwind/tests/Gtest-bt.c
|
373a106072c9686d5ead26c0ef5e0833249730d9 |
|
15-Sep-2004 |
hp.com!davidm <hp.com!davidm> |
Initial revision
/external/libunwind/tests/Gtest-bt.c
|