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