1901e7e84Schristos /* This file is automatically generated. DO NOT EDIT! */ 2*22ebeae4Schristos /* Generated from: NetBSD: mknative-gdb,v 1.17 2024/08/18 03:47:55 rin Exp */ 3901e7e84Schristos /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 4901e7e84Schristos 5901e7e84Schristos /* backtrace-supported.h.in -- Whether stack backtrace is supported. 6*22ebeae4Schristos Copyright (C) 2012-2024 Free Software Foundation, Inc. 7901e7e84Schristos Written by Ian Lance Taylor, Google. 8901e7e84Schristos 9901e7e84Schristos Redistribution and use in source and binary forms, with or without 10901e7e84Schristos modification, are permitted provided that the following conditions are 11901e7e84Schristos met: 12901e7e84Schristos 13901e7e84Schristos (1) Redistributions of source code must retain the above copyright 14901e7e84Schristos notice, this list of conditions and the following disclaimer. 15901e7e84Schristos 16901e7e84Schristos (2) Redistributions in binary form must reproduce the above copyright 17901e7e84Schristos notice, this list of conditions and the following disclaimer in 18901e7e84Schristos the documentation and/or other materials provided with the 19901e7e84Schristos distribution. 20901e7e84Schristos 21901e7e84Schristos (3) The name of the author may not be used to 22901e7e84Schristos endorse or promote products derived from this software without 23901e7e84Schristos specific prior written permission. 24901e7e84Schristos 25901e7e84Schristos THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 26901e7e84Schristos IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 27901e7e84Schristos WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 28901e7e84Schristos DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 29901e7e84Schristos INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 30901e7e84Schristos (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31901e7e84Schristos SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32901e7e84Schristos HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 33901e7e84Schristos STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 34901e7e84Schristos IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35901e7e84Schristos POSSIBILITY OF SUCH DAMAGE. */ 36901e7e84Schristos 37901e7e84Schristos /* The file backtrace-supported.h.in is used by configure to generate 38901e7e84Schristos the file backtrace-supported.h. The file backtrace-supported.h may 39901e7e84Schristos be #include'd to see whether the backtrace library will be able to 40901e7e84Schristos get a backtrace and produce symbolic information. */ 41901e7e84Schristos 42901e7e84Schristos 43901e7e84Schristos /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library 44901e7e84Schristos should work, 0 if it will not. Libraries may #include this to make 45901e7e84Schristos other arrangements. */ 46901e7e84Schristos 47901e7e84Schristos #define BACKTRACE_SUPPORTED 1 48901e7e84Schristos 49901e7e84Schristos /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace 50901e7e84Schristos library will call malloc as it works, 0 if it will call mmap 51901e7e84Schristos instead. This may be used to determine whether it is safe to call 52901e7e84Schristos the backtrace functions from a signal handler. In general this 53901e7e84Schristos only applies to calls like backtrace and backtrace_pcinfo. It does 54901e7e84Schristos not apply to backtrace_simple, which never calls malloc. It does 55901e7e84Schristos not apply to backtrace_print, which always calls fprintf and 56901e7e84Schristos therefore malloc. */ 57901e7e84Schristos 58901e7e84Schristos #define BACKTRACE_USES_MALLOC 0 59901e7e84Schristos 60901e7e84Schristos /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace 61901e7e84Schristos library is configured with threading support, 0 if not. If this is 62901e7e84Schristos 0, the threaded parameter to backtrace_create_state must be passed 63901e7e84Schristos as 0. */ 64901e7e84Schristos 65901e7e84Schristos #define BACKTRACE_SUPPORTS_THREADS 1 66901e7e84Schristos 67901e7e84Schristos /* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo 68901e7e84Schristos will work for variables. It will always work for functions. */ 69901e7e84Schristos 70901e7e84Schristos #define BACKTRACE_SUPPORTS_DATA 1 71