11d163c8dSmatt /* 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 */ 39ba37f97Smrg /* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */ 41d163c8dSmatt 51d163c8dSmatt /* backtrace-supported.h.in -- Whether stack backtrace is supported. 6*cf89d143Smrg Copyright (C) 2012-2022 Free Software Foundation, Inc. 71d163c8dSmatt Written by Ian Lance Taylor, Google. 81d163c8dSmatt 91d163c8dSmatt Redistribution and use in source and binary forms, with or without 101d163c8dSmatt modification, are permitted provided that the following conditions are 111d163c8dSmatt met: 121d163c8dSmatt 131d163c8dSmatt (1) Redistributions of source code must retain the above copyright 141d163c8dSmatt notice, this list of conditions and the following disclaimer. 151d163c8dSmatt 161d163c8dSmatt (2) Redistributions in binary form must reproduce the above copyright 171d163c8dSmatt notice, this list of conditions and the following disclaimer in 181d163c8dSmatt the documentation and/or other materials provided with the 191d163c8dSmatt distribution. 201d163c8dSmatt 211d163c8dSmatt (3) The name of the author may not be used to 221d163c8dSmatt endorse or promote products derived from this software without 231d163c8dSmatt specific prior written permission. 241d163c8dSmatt 251d163c8dSmatt THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 261d163c8dSmatt IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 271d163c8dSmatt WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 281d163c8dSmatt DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 291d163c8dSmatt INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 301d163c8dSmatt (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 311d163c8dSmatt SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 321d163c8dSmatt HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 331d163c8dSmatt STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING 341d163c8dSmatt IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 351d163c8dSmatt POSSIBILITY OF SUCH DAMAGE. */ 361d163c8dSmatt 371d163c8dSmatt /* The file backtrace-supported.h.in is used by configure to generate 381d163c8dSmatt the file backtrace-supported.h. The file backtrace-supported.h may 391d163c8dSmatt be #include'd to see whether the backtrace library will be able to 401d163c8dSmatt get a backtrace and produce symbolic information. */ 411d163c8dSmatt 421d163c8dSmatt 431d163c8dSmatt /* BACKTRACE_SUPPORTED will be #define'd as 1 if the backtrace library 441d163c8dSmatt should work, 0 if it will not. Libraries may #include this to make 451d163c8dSmatt other arrangements. */ 461d163c8dSmatt 475c10ef7eSmrg #define BACKTRACE_SUPPORTED 1 481d163c8dSmatt 491d163c8dSmatt /* BACKTRACE_USES_MALLOC will be #define'd as 1 if the backtrace 501d163c8dSmatt library will call malloc as it works, 0 if it will call mmap 511d163c8dSmatt instead. This may be used to determine whether it is safe to call 521d163c8dSmatt the backtrace functions from a signal handler. In general this 531d163c8dSmatt only applies to calls like backtrace and backtrace_pcinfo. It does 541d163c8dSmatt not apply to backtrace_simple, which never calls malloc. It does 551d163c8dSmatt not apply to backtrace_print, which always calls fprintf and 561d163c8dSmatt therefore malloc. */ 571d163c8dSmatt 581d163c8dSmatt #define BACKTRACE_USES_MALLOC 0 591d163c8dSmatt 601d163c8dSmatt /* BACKTRACE_SUPPORTS_THREADS will be #define'd as 1 if the backtrace 611d163c8dSmatt library is configured with threading support, 0 if not. If this is 621d163c8dSmatt 0, the threaded parameter to backtrace_create_state must be passed 631d163c8dSmatt as 0. */ 641d163c8dSmatt 651d163c8dSmatt #define BACKTRACE_SUPPORTS_THREADS 1 669ba37f97Smrg 679ba37f97Smrg /* BACKTRACE_SUPPORTS_DATA will be #defined'd as 1 if the backtrace_syminfo 689ba37f97Smrg will work for variables. It will always work for functions. */ 699ba37f97Smrg 709ba37f97Smrg #define BACKTRACE_SUPPORTS_DATA 1 71