mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-25 08:37:38 +01:00
Nuke HAVE_BACKTRACE
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.
This commit is contained in:
parent
848ad53a47
commit
58354c94d7
3 changed files with 1 additions and 5 deletions
|
@ -311,7 +311,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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue