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