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