1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-19 06:17:37 +01:00
Commit graph

69 commits

Author SHA1 Message Date
Ken Werner
d589e20506 Add the appropriate libraries to the *_LDADD variables.
The test-async-sig.c, test-flush-cache.c and Ltest_resume_sig.c define
UNW_LOCAL_ONLY and therefore only need LIBUNWIND_local. Gtest-dyn1.c is
calling '_U_dyn_cancel' and test-trace.c is using 'unw_backtrace' which
are in LIBUNWIND_local.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
2011-04-21 17:25:42 +02:00
Arun Sharma
d86155f72e Add a test to catch calls to calloc from libunwind
We'd like to avoid calls to all malloc related functions
so libunwind is still usable from such allocators.

Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>
2011-04-05 20:59:03 -07:00
Arun Sharma
4dc222cf8a Undo parts of 2f9b04e9c2
Linking to local unwind library seems to be unrelated to
failures seen earlier.
2011-04-05 13:41:29 -07:00
Arun Sharma
2f9b04e9c2 Mark slow_backtrace() ALWAYS_INLINE
Also fix Makefile.am so remote unwinding tests such Gtest-trace
don't link with the local unwind library (libunwind.a).
2011-03-31 22:58:07 -07:00
Arun Sharma
741a5a2149 Add some performance tests for fast backtracing. 2011-03-25 00:20:46 -07:00
Arun Sharma
7ff83c051e Fix up compilation and test failures 2011-03-24 23:32:25 -07:00
Lassi Tuura
9e98f15e9a Fast back-trace for x86_64 for only collecting the call stack.
Adds new function to perform a pure stack walk without unwinding,
functionally similar to backtrace() but accelerated by an address
attribute cache the caller maintains across calls.
2011-03-24 22:33:17 -07:00
Arun Sharma
6c1a58fd06 Remove the unused arm_extbl_test_LDADD from Makefile.am 2011-03-24 21:49:17 -07:00
Ken Werner
6e25c11505 Remove the arm-extbl-test.
This test case relies on old libunwind internals such as the arm_stackframe.
Since the ARM extbtl-parser now operates on the DWARF model directly the
arm-extbl-test isn't of any particular use anymore.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
2011-03-24 20:42:01 -07:00
Konstantin Belousov
04fc88fa31 Fix build and distribution on the FreeBSD.
Signed-off-by: Konstantin Belousov <kostikbel@gmail.com>
2011-03-24 20:41:07 -07:00
Arun Sharma
0613d4c680 Fixup trailing whitespace
Signed-off-by: Arun Sharma <asharma@fb.com>
2011-03-22 08:40:49 -07:00
Arun Sharma
57695518b3 Replace libuwind-elf32.la with $(LIBUNWIND_ELF)
This was needed to fix build errors on x86_64.

Signed-off-by: Arun Sharma <asharma@fb.com>
2011-03-22 08:34:33 -07:00
Zachary T Welch
4870386087 Add test of backtracing using ARM-specific tables
Uses .ARM.exidx and .ARM.extbl sections to produce a backtrace.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
2011-03-22 08:15:03 -07:00
Ken Werner
c2cc122a62 Explicitly add dependent shared libraries.
This adds support for linkers that do not pull in the dependent shared
libraries of libunwind-$(arch).la and libunwind-setjmp.la implicitly.

Signed-off-by: Ken Werner <ken.werner@linaro.org>
2011-03-07 21:24:50 -08:00
Zachary T Welch
7e767a2838 Improve test LDADD settings.
Eliminates unused libraries from test program linking.  Substitutes
'$(top_builddir)' for '..' to clarify library locations.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2010-11-29 11:28:35 -08:00
Zachary T Welch
651e9bb4fd Add MAINTAINERCLEANFILES to Makefile.am files.
Ensures 'make maintainer-clean' removes files generated by autotools.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
2010-11-08 09:06:09 -08:00
Arun Sharma
982d590ddb Add Gtest-nomalloc.c to EXTRA_DIST so we pass "make check" 2010-08-04 15:11:19 -07:00
Konstantin Belousov
74677edb23 Reverse local change 2010-04-20 17:54:16 +03:00
Konstantin Belousov
ee99dbec87 Use mincore instead of msync when available 2010-04-20 17:45:18 +03:00
Arun Sharma
c2d78041cc GCC compatibility on x86 for C++ exception handling 2010-04-12 12:08:43 -07:00
Konstantin Belousov
59d38aaccd Properly handle -ldl and -lutil 2010-03-07 12:46:05 +02:00
Paul Pluzhnikov
9626d66019 Fix a race condition in dwarf unwinding.
Original code was accessing rs_cache memory without holding a lock
in some cases. If there was sufficient cache pressure, entry being
accessed may be overwritten by another thread, resulting in a data
race.

We now make a thread local copy of the data, before releasing the
lock. If we end up supporting UNW_CACHE_PER_THREAD properly
in the future, this memcpy should be unnecessary.
2009-11-24 15:18:48 -08:00
Arun Sharma
576b59e4b1 Verify that we don't call malloc when unwinding locally. 2009-03-16 21:34:48 -07:00
Jose Flavio Aguilar Paulino
a1e7ee4836 Just a small patch to build system, it helps if you build in a power
without altivec.
2007-08-06 20:23:42 -06:00
Jose Flavio Aguilar Paulino
b33021e4b2 Add PPC64 support. 2007-08-02 09:59:43 -06:00
hp.com!davidm
f60827dc5c (LIBUNWIND_local): New macro.
(LIBUNWIND): Mention $(LIBUNWIND_local).
(test_setjmp_LDADD): Likewise.
(ia64_teset_setjmp_LDADD): Likewise.

(Logical change 1.290)
2005-05-03 09:13:17 +00:00
hp.com!davidm
b4f1459444 (EXTRA_DIST): Mention run-ptrace-misc.
(check_SCRIPTS_cdep): Mention run-ptrace-misc.
(noinst_PROGRAMS_cdep): Mention test-ptrace-misc.
(Gtest_bt_SOURCES): New macro.
(Ltest_bt_SOURCES): Likewise.
(test_ptrace_misc_SOURCES)L: Likewise.

(Logical change 1.276)
2004-10-15 13:48:38 +00:00
hp.com!davidm
dfa582a2df (noinst_PROGRAMS_cdep): Move bt to...
(check_PROGRAMS_cdep): ...here as Gtest-bt/Ltest-bt.

(Logical change 1.270)
2004-09-15 11:37:04 +00:00
hp.com!davidm
8f2272c097 (noinst_PROGRAMS_arch): Move ia64-test-sig to...
(check_PROGRAMS_arch): ...here.  Mention ia64-test-setjmp.
(ia64_test_setjmp_LDADD): Mention libunwind-setjmp.la.

(Logical change 1.259)
2004-08-31 13:59:10 +00:00
homeip.net!davidm
3eb739d290 (check_PROGRAMS_cdep): Move test-init-remote from check_PROGRAMS_common to here
so it doesn't get built in the REMOTE_ONLY-case.

(Logical change 1.252)
2004-08-19 14:03:54 +00:00
bea.com!thallgre
42a90f14d5 (check_PROGRAMS_common): Mention test-strerror.
(Logical change 1.245)
2004-08-18 15:16:46 +00:00
hp.com!davidm
d5933d6e74 (check_PROGRAMS_common): Mention test-init-remote.
(Logical change 1.243)
2004-08-18 10:50:12 +00:00
hp.com!davidm
86bef150e4 (check_PROGRAMS_cdep): Mention Gia64-test-readonly and Lia64-test-readonly.
(Lia64_test_readonly_SOURCES): New macro.
(Gia64_test_readonly_SOURCES): Likewise.

(Logical change 1.231)
2004-05-06 20:26:29 +00:00
mostang.com!davidm
0c8baa7a79 (EXTRA_DIST): Also mention run-check-namespace.
(Logical change 1.227)
2004-05-05 05:03:20 +00:00
mostang.com!davidm
5a468e30cc (EXTRA_DIST): Mention check-namespace.sh.in.
(check_SCRIPTS_common): Mention run-check-namespace.

(Logical change 1.225)
2004-05-05 01:58:44 +00:00
mostang.com!davidm
4de259b49f (EXTRA_DIST): Mention run-ptrade-mapper.
(test_static_link_LDFLAGS): Replace -all-static with -static.
	The former doesn't work on HP-UX because libc doesn't appear
	to be availabale in archive format (only libc.so is available).
(forker_LDFLAGS): Likewise.

(Logical change 1.223)
2004-05-04 22:24:50 +00:00
mostang.com!davidm
6cb58ac940 (check_SCRIPTS_cdep): Mention run-ptrace-mapper.
(noinst_PROGRAMS_cdep): Mention mapper.

(Logical change 1.209)
2004-04-21 07:24:35 +00:00
hp.com!davidm
deb3c645a4 Auto merged
2004/04/20 09:53:04-07:00 hp.com!davidm
(forker_LDFLAGS): Mention -all-static.

(Logical change 1.205)
2004-04-20 16:53:44 +00:00
mostang.com!davidm
5de8024488 (check_PROGRAMS_cdep): Mention test-async-sig.
(test_async_sig_LDADD): New macro.

(Logical change 1.204)
2004-04-01 08:11:21 +00:00
mostang.com!davidm
69052ef3ea (Lperf_simple_LDADD): Delete.
(Gperf_simple_LDADD): Likewise.

(Logical change 1.197)
2004-03-31 01:53:04 +00:00
mostang.com!davidm
8e8fe50029 (Lperf_simple_LDADD): Mention -lrt.
(Gperf_simple_LDADD): Likewise.

(Logical change 1.186)
2004-03-20 09:54:28 +00:00
mostang.com!davidm
899323c996 (check_PROGRAMS_arch): Mention Gia64-test-nat and Lia64-test-nat.
(Lia64_test_nat_SOURCES): New macro.
(Gia64_test_nat_SOURCES): Likewise.

(Logical change 1.168)
2004-02-14 07:53:31 +00:00
mostang.com!davidm
0378f95492 (check_PROGRAMS_common): Mention test-static-link.
(perf): New target.
(test_static_link_SOURCES): New macro.
(test_static_link_LDFLAGS): Likewise.

(Logical change 1.157)
2004-01-21 06:36:35 +00:00
hp.com!davidm
32f19d0e09 (test_ptrace_LDADD): New macro.
(Logical change 1.151)
2004-01-03 10:50:24 +00:00
hp.com!davidm
d154b86e84 (check_PROGRAMS_cdep): Mention test-mem.
(Logical change 1.137)
2003-12-05 00:45:03 +00:00
mostang.com!davidm
00f05d607b (check_PROGRAMS_cdep): Mention Gtest-concurrent and Ltest-concurrent.
(Ltest_concurrent_LDADD): New macro.
(Gtest_concurrent_LDADD): Ditto.

(Logical change 1.114)
2003-11-20 01:10:03 +00:00
hp.com!davidm
a237717fd7 (check_PROGRAMS_cdep): Move Gtest-init, Ltest-init, and
test-flush-cache to here from check_PROGRAMS_common.
	They cannot be compiled/used for REMOTE_ONLY configurations.

(Logical change 1.104)
2003-09-25 05:29:14 +00:00
mostang.com!davidm
e1bdc44e0f (noinst_PROGRAMS_cdep): Add Gperf-simple and Lperf-simple.
(Logical change 1.98)
2003-09-24 05:02:14 +00:00
mostang.com!davidm
29358553a9 (check_PROGRAMS_common): Mention test-flush-cache.
(Logical change 1.96)
2003-09-19 06:56:12 +00:00
mostang.com!davidm
6f01170a26 (check_PROGRAMS_common): Mention test-proc-info.
(Logical change 1.95)
2003-09-18 06:09:22 +00:00