149d8c9ecSmrg /* 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 */ 377affcd9Smrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 449d8c9ecSmrg 549d8c9ecSmrg /* backtrace-supported.h.in -- Whether stack backtrace is supported. 6*cf89d143Smrg Copyright (C) 2012-2022 Free Software Foundation, Inc. 749d8c9ecSmrg Written by Ian Lance Taylor, Google. 849d8c9ecSmrg 949d8c9ecSmrg Redistribution and use in source and binary forms, with or without 1049d8c9ecSmrg modification, are permitted provided that the following conditions are 1149d8c9ecSmrg met: 1249d8c9ecSmrg 1349d8c9ecSmrg (1) Redistributions of source code must retain the above copyright 1449d8c9ecSmrg notice, this list of conditions and the following disclaimer. 1549d8c9ecSmrg 1649d8c9ecSmrg (2) Redistributions in binary form must reproduce the above copyright 1749d8c9ecSmrg notice, this list of conditions and the following disclaimer in 1849d8c9ecSmrg the documentation and/or other materials provided with the 1949d8c9ecSmrg distribution. 2049d8c9ecSmrg 2149d8c9ecSmrg (3) The name of the author may not be used to 2249d8c9ecSmrg endorse or promote products derived from this software without 2349d8c9ecSmrg specific prior written permission. 2449d8c9ecSmrg 2549d8c9ecSmrg THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2649d8c9ecSmrg IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2749d8c9ecSmrg WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2849d8c9ecSmrg DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 2949d8c9ecSmrg INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 3049d8c9ecSmrg (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 3149d8c9ecSmrg SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3249d8c9ecSmrg HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 3349d8c9ecSmrg STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 3449d8c9ecSmrg IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 3549d8c9ecSmrg POSSIBILITY OF SUCH DAMAGE. */ 3649d8c9ecSmrg 3749d8c9ecSmrg /* The file backtrace-supported.h.in is used by configure to generate 3849d8c9ecSmrg the file backtrace-supported.h. The file backtrace-supported.h may 3949d8c9ecSmrg be #include'd to see whether the backtrace library will be able to 4049d8c9ecSmrg get a backtrace and produce symbolic information. */ 4149d8c9ecSmrg 4249d8c9ecSmrg 4349d8c9ecSmrg /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library 4449d8c9ecSmrg should work, 0 if it will not. Libraries may #include this to make 4549d8c9ecSmrg other arrangements. */ 4649d8c9ecSmrg 475c10ef7eSmrg #define BACKTRACE_SUPPORTED 1 4849d8c9ecSmrg 4949d8c9ecSmrg /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace 5049d8c9ecSmrg library will call malloc as it works, 0 if it will call mmap 5149d8c9ecSmrg instead. This may be used to determine whether it is safe to call 5249d8c9ecSmrg the backtrace functions from a signal handler. In general this 5349d8c9ecSmrg only applies to calls like backtrace and backtrace_pcinfo. It does 5449d8c9ecSmrg not apply to backtrace_simple, which never calls malloc. It does 5549d8c9ecSmrg not apply to backtrace_print, which always calls fprintf and 5649d8c9ecSmrg therefore malloc. */ 5749d8c9ecSmrg 5849d8c9ecSmrg #define BACKTRACE_USES_MALLOC 0 5949d8c9ecSmrg 6049d8c9ecSmrg /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace 6149d8c9ecSmrg library is configured with threading support, 0 if not. If this is 6249d8c9ecSmrg 0, the threaded parameter to backtrace_create_state must be passed 6349d8c9ecSmrg as 0. */ 6449d8c9ecSmrg 65b5a718eaSmrg #define BACKTRACE_SUPPORTS_THREADS 1 663d95d378Smrg 673d95d378Smrg /* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo 683d95d378Smrg will work for variables. It will always work for functions. */ 693d95d378Smrg 703d95d378Smrg #define BACKTRACE_SUPPORTS_DATA 1 71