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