Changeset 8a8771


Ignore:
Timestamp:
2009-12-03 12:18:28 (4 years ago)
Author:
Tollef Fog Heen <tfheen@…>
Branches:
2.1, tags/varnish-2.1.0, tags/varnish-2.1.1, tags/varnish-2.1.2, tags/varnish-2.1.3, tags/varnish-2.1.4
Children:
28ba0d
Parents:
89674e
git-author:
Tollef Fog Heen <tfheen@…> (2009-12-03 12:18:28)
git-committer:
Tollef Fog Heen <tfheen@…> (2009-12-03 12:18:28)
Message:

Use built-in backtrace function if one exists

This gives us backtraces on panic on when you're not using GCC.

git-svn-id:  http://www.varnish-cache.org/svn/trunk@4382 d4fa192b-c00b-0410-8231-f00ffab90ce4

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rcb519e r8a8771  
    214214AC_CHECK_FUNCS([strlcat strlcpy]) 
    215215AC_CHECK_FUNCS([strndup]) 
     216AC_CHECK_FUNCS([backtrace]) 
    216217# white lie - we don't actually test it 
    217218AC_MSG_CHECKING([whether daemon() works]) 
  • lib/libvarnishcompat/execinfo.c

    r181c28 r8a8771  
    2929#include "svnid.h" 
    3030SVNID("$Id: execinfo.c,v 1.3 2004/07/19 05:21:09 sobomax Exp $") 
     31 
     32#ifndef HAVE_BACKTRACE 
    3133 
    3234#include "compat/execinfo.h" 
     
    429431} 
    430432 
    431 #endif 
     433#endif /*  (__GNUC__) && __GNUC__ >= 4 */ 
     434#endif /* HAVE_BACKTRACE */ 
Note: See TracChangeset for help on using the changeset viewer.