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