[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 31/57] Nuke HAVE_BACKTRACE
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 31/57] Nuke HAVE_BACKTRACE |
Date: |
Fri, 21 Sep 2012 14:11:32 +0300 |
We do not really need to care if the system provides `backtrace()',
since we will want to test the one provided in libunwind, not the one
that is provided by the system. The `backtrace()' calls should already
be aliased to `unw_backtrace()', but if that is not working for whatever
reason, we can call `unw_backtrace()' explicitly.
---
configure.ac | 1 -
tests/Gperf-trace.c | 3 +--
tests/Makefile.am | 2 --
3 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/configure.ac b/configure.ac
index 0176c24..0312b24 100644
--- a/configure.ac
+++ b/configure.ac
@@ -310,7 +310,6 @@ PKG_MAINTAINER=pkg_maintainer
old_LIBS="$LIBS"
LIBS=""
AC_SEARCH_LIBS(backtrace, execinfo)
-AM_CONDITIONAL(HAVE_BACKTRACE, test "x$ac_cv_search_backtrace" != xno)
LIBS="$old_LIBS"
AC_SUBST(build_arch)
diff --git a/tests/Gperf-trace.c b/tests/Gperf-trace.c
index 87dd5b2..7baf466 100644
--- a/tests/Gperf-trace.c
+++ b/tests/Gperf-trace.c
@@ -21,7 +21,6 @@ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
-#include <execinfo.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
@@ -62,7 +61,7 @@ measure_unwind (int maxlevel, double *step)
void *buffer[128];
start = gettime ();
- level = backtrace(buffer, 128);
+ level = unw_backtrace(buffer, 128);
stop = gettime ();
if (level <= maxlevel)
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 4bbba40..a367eed 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -50,9 +50,7 @@ endif #!ARCH_IA64
noinst_PROGRAMS_cdep = forker crasher mapper test-ptrace-misc \
Gperf-simple Lperf-simple
-if HAVE_BACKTRACE
noinst_PROGRAMS_cdep += Gperf-trace Lperf-trace
-endif
if SUPPORT_CXX_EXCEPTIONS
check_PROGRAMS_cdep += Ltest-cxx-exceptions
--
1.7.9.5
- [Libunwind-devel] [PATCH 24/57] Rename `test-varargs' to `Ltest-varargs', (continued)
- [Libunwind-devel] [PATCH 24/57] Rename `test-varargs' to `Ltest-varargs', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 29/57] Roll `test-nocalloc' into `Ltest-nocalloc.c', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 27/57] Rename `rs-race' to `Lrs-race', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 28/57] Call `unw_backtrace()' explicitly in test-flush-cache.c, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 25/57] Remove unneeded `config.h' inclusion in Gtest-nomalloc, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 23/57] Drop `optimize' attribute in tests/test-varargs.c, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 30/57] Call snprintf() from signal handler only if required in test-async-sig, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 32/57] Stop including `memory.h', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 31/57] Nuke HAVE_BACKTRACE,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 34/57] Enable coredump library build on ARM by default, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 33/57] MIPS coredump support, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 36/57] ppc32: include `compiler.h' for UNUSED in ucontext_i.h, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 40/57] Constify `dwarf_to_unw_regnum_map', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 37/57] ppc32: `UNW_PPC32_REGS' fixlet, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 38/57] IA64: give prototype for `ia64_find_unwind_table()', Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 39/57] Set `_UPT_reg_offset' read only, Tommi Rantala, 2012/09/21
- [Libunwind-devel] [PATCH 41/57] Constify `operands' in src/dwarf/Gexpr.c, Tommi Rantala, 2012/09/21