1*36ac495dSmrg /* This file is automatically generated. DO NOT EDIT! */ 2*36ac495dSmrg /* Generated from: NetBSD: mknative-gcc,v 1.79 2014/05/29 16:27:50 skrll Exp */ 3*36ac495dSmrg /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp */ 4*36ac495dSmrg 5*36ac495dSmrg /* backtrace-supported.h.in -- Whether stack backtrace is supported. 6*36ac495dSmrg Copyright (C) 2012-2013 Free Software Foundation, Inc. 7*36ac495dSmrg Written by Ian Lance Taylor, Google. 8*36ac495dSmrg 9*36ac495dSmrg Redistribution and use in source and binary forms, with or without 10*36ac495dSmrg modification, are permitted provided that the following conditions are 11*36ac495dSmrg met: 12*36ac495dSmrg 13*36ac495dSmrg (1) Redistributions of source code must retain the above copyright 14*36ac495dSmrg notice, this list of conditions and the following disclaimer. 15*36ac495dSmrg 16*36ac495dSmrg (2) Redistributions in binary form must reproduce the above copyright 17*36ac495dSmrg notice, this list of conditions and the following disclaimer in 18*36ac495dSmrg the documentation and/or other materials provided with the 19*36ac495dSmrg distribution. 20*36ac495dSmrg 21*36ac495dSmrg (3) The name of the author may not be used to 22*36ac495dSmrg endorse or promote products derived from this software without 23*36ac495dSmrg specific prior written permission. 24*36ac495dSmrg 25*36ac495dSmrg THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 26*36ac495dSmrg IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 27*36ac495dSmrg WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 28*36ac495dSmrg DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 29*36ac495dSmrg INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 30*36ac495dSmrg (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31*36ac495dSmrg SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32*36ac495dSmrg HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33*36ac495dSmrg STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 34*36ac495dSmrg IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35*36ac495dSmrg POSSIBILITY OF SUCH DAMAGE. */ 36*36ac495dSmrg 37*36ac495dSmrg /* The file backtrace-supported.h.in is used by configure to generate 38*36ac495dSmrg the file backtrace-supported.h. The file backtrace-supported.h may 39*36ac495dSmrg be #include'd to see whether the backtrace library will be able to 40*36ac495dSmrg get a backtrace and produce symbolic information. */ 41*36ac495dSmrg 42*36ac495dSmrg 43*36ac495dSmrg /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library 44*36ac495dSmrg should work, 0 if it will not. Libraries may #include this to make 45*36ac495dSmrg other arrangements. */ 46*36ac495dSmrg 47*36ac495dSmrg #define BACKTRACE_SUPPORTED 1 48*36ac495dSmrg 49*36ac495dSmrg /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace 50*36ac495dSmrg library will call malloc as it works, 0 if it will call mmap 51*36ac495dSmrg instead. This may be used to determine whether it is safe to call 52*36ac495dSmrg the backtrace functions from a signal handler. In general this 53*36ac495dSmrg only applies to calls like backtrace and backtrace_pcinfo. It does 54*36ac495dSmrg not apply to backtrace_simple, which never calls malloc. It does 55*36ac495dSmrg not apply to backtrace_print, which always calls fprintf and 56*36ac495dSmrg therefore malloc. */ 57*36ac495dSmrg 58*36ac495dSmrg #define BACKTRACE_USES_MALLOC 0 59*36ac495dSmrg 60*36ac495dSmrg /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace 61*36ac495dSmrg library is configured with threading support, 0 if not. If this is 62*36ac495dSmrg 0, the threaded parameter to backtrace_create_state must be passed 63*36ac495dSmrg as 0. */ 64*36ac495dSmrg 65*36ac495dSmrg #define BACKTRACE_SUPPORTS_THREADS 1 66